]> git.ipfire.org Git - thirdparty/gcc.git/blame - libatomic/configure
Sync with binutils: GCC: Pass --plugin to AR and RANLIB
[thirdparty/gcc.git] / libatomic / configure
CommitLineData
48310492
RH
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69 for GNU Atomic Library 1.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
48310492 7#
48310492
RH
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.
22e05272 90as_myself=
48310492
RH
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
48310492
RH
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
48310492
RH
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
48310492
RH
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
48310492
RH
364
365
366} # as_fn_mkdir_p
22e05272
JM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
48310492
RH
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
22e05272
JM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
48310492
RH
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 415# script with STATUS, using 1 if that was 0.
48310492
RH
416as_fn_error ()
417{
22e05272
JM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
48310492 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
48310492
RH
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
22e05272
JM
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
48310492
RH
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 534 # In both cases, we have to default to `cp -pR'.
48310492 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
48310492
RH
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
48310492
RH
541 fi
542else
22e05272 543 as_ln_s='cp -pR'
48310492
RH
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
22e05272
JM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
48310492
RH
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
22e05272
JM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
48310492
RH
569
570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
48310492
RH
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='GNU Atomic Library'
589PACKAGE_TARNAME='libatomic'
590PACKAGE_VERSION='1.0'
591PACKAGE_STRING='GNU Atomic Library 1.0'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL='http://www.gnu.org/software/libatomic/'
594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
598#ifdef HAVE_SYS_TYPES_H
599# include <sys/types.h>
600#endif
601#ifdef HAVE_SYS_STAT_H
602# include <sys/stat.h>
603#endif
604#ifdef STDC_HEADERS
605# include <stdlib.h>
606# include <stddef.h>
607#else
608# ifdef HAVE_STDLIB_H
609# include <stdlib.h>
610# endif
611#endif
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614# include <memory.h>
615# endif
616# include <string.h>
617#endif
618#ifdef HAVE_STRINGS_H
619# include <strings.h>
620#endif
621#ifdef HAVE_INTTYPES_H
622# include <inttypes.h>
623#endif
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
628# include <unistd.h>
629#endif"
630
631ac_subst_vars='am__EXEEXT_FALSE
632am__EXEEXT_TRUE
633LTLIBOBJS
634LIBOBJS
3c36aa6b 635get_gcc_base_ver
48310492
RH
636ARCH_X86_64_FALSE
637ARCH_X86_64_TRUE
638ARCH_I386_FALSE
639ARCH_I386_TRUE
640ARCH_ARM_LINUX_FALSE
641ARCH_ARM_LINUX_TRUE
141abc6f
SE
642ARCH_AARCH64_LINUX_FALSE
643ARCH_AARCH64_LINUX_TRUE
48310492
RH
644HAVE_IFUNC_FALSE
645HAVE_IFUNC_TRUE
47ddb895 646tmake_file
48310492
RH
647SIZES
648XLDFLAGS
649XCFLAGS
650config_path
651LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
652LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
653LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
654LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
655LIBAT_BUILD_VERSIONED_SHLIB_FALSE
656LIBAT_BUILD_VERSIONED_SHLIB_TRUE
657OPT_LDFLAGS
658SECTION_LDFLAGS
9d0e85af 659enable_aarch64_lse
48310492 660libtool_VERSION
fa3cd3c3
RH
661MAINT
662MAINTAINER_MODE_FALSE
663MAINTAINER_MODE_TRUE
48310492
RH
664enable_static
665enable_shared
dc3368d0 666lt_host_flags
48310492
RH
667CPP
668OTOOL64
669OTOOL
670LIPO
671NMEDIT
672DSYMUTIL
673OBJDUMP
674LN_S
675ac_ct_DUMPBIN
676DUMPBIN
677LD
678FGREP
679EGREP
680GREP
681SED
682LIBTOOL
48310492
RH
683RANLIB
684NM
685AR
686am__fastdepCCAS_FALSE
687am__fastdepCCAS_TRUE
688CCASDEPMODE
689CCASFLAGS
690CCAS
691am__fastdepCC_FALSE
692am__fastdepCC_TRUE
693CCDEPMODE
dc3368d0 694am__nodep
48310492
RH
695AMDEPBACKSLASH
696AMDEP_FALSE
697AMDEP_TRUE
698am__quote
699am__include
700DEPDIR
701OBJEXT
702EXEEXT
703ac_ct_CC
704CPPFLAGS
705LDFLAGS
706CFLAGS
707CC
708toolexeclibdir
709toolexecdir
710multi_basedir
22e05272
JM
711AM_BACKSLASH
712AM_DEFAULT_VERBOSITY
713AM_DEFAULT_V
714AM_V
48310492
RH
715am__untar
716am__tar
717AMTAR
718am__leading_dot
719SET_MAKE
720AWK
721mkdir_p
722MKDIR_P
723INSTALL_STRIP_PROGRAM
724STRIP
725install_sh
726MAKEINFO
727AUTOHEADER
728AUTOMAKE
729AUTOCONF
730ACLOCAL
731VERSION
732PACKAGE
733CYGPATH_W
734am__isrc
735INSTALL_DATA
736INSTALL_SCRIPT
737INSTALL_PROGRAM
738target_os
739target_vendor
740target_cpu
741target
742host_os
743host_vendor
744host_cpu
745host
746build_os
747build_vendor
748build_cpu
749build
750GENINSRC_FALSE
751GENINSRC_TRUE
752target_alias
753host_alias
754build_alias
755LIBS
756ECHO_T
757ECHO_N
758ECHO_C
759DEFS
760mandir
761localedir
762libdir
763psdir
764pdfdir
765dvidir
766htmldir
767infodir
768docdir
769oldincludedir
770includedir
771localstatedir
772sharedstatedir
773sysconfdir
774datadir
775datarootdir
776libexecdir
777sbindir
778bindir
779program_transform_name
780prefix
781exec_prefix
782PACKAGE_URL
783PACKAGE_BUGREPORT
784PACKAGE_STRING
785PACKAGE_VERSION
786PACKAGE_TARNAME
787PACKAGE_NAME
788PATH_SEPARATOR
789SHELL'
790ac_subst_files=''
791ac_user_opts='
792enable_option_checking
793enable_version_specific_runtime_libs
794enable_generated_files_in_srcdir
22e05272 795enable_silent_rules
48310492 796enable_multilib
e8e66971 797with_toolexeclibdir
48310492
RH
798enable_dependency_tracking
799enable_shared
800enable_static
801with_pic
802enable_fast_install
803with_gnu_ld
804enable_libtool_lock
fa3cd3c3 805enable_maintainer_mode
48310492 806enable_symvers
45ba6bf2 807enable_werror
efc643e9 808enable_cet
3c36aa6b 809with_gcc_major_version_only
48310492
RH
810'
811 ac_precious_vars='build_alias
812host_alias
813target_alias
814CPP
815CPPFLAGS'
816
817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821ac_unrecognized_opts=
822ac_unrecognized_sep=
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
845# (The list follows the same order as the GNU Coding Standards.)
846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
854includedir='${prefix}/include'
855oldincludedir='/usr/include'
856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
865
866ac_prev=
867ac_dashdash=
868for ac_option
869do
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
873 ac_prev=
874 continue
875 fi
876
877 case $ac_option in
22e05272
JM
878 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *=) ac_optarg= ;;
880 *) ac_optarg=yes ;;
48310492
RH
881 esac
882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
913
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
921 -disable-* | --disable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 925 as_fn_error $? "invalid feature name: $ac_useropt"
48310492
RH
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930"enable_$ac_useropt"
931"*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
936
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
941
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
946
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 951 as_fn_error $? "invalid feature name: $ac_useropt"
48310492
RH
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956"enable_$ac_useropt"
957"*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=\$ac_optarg ;;
962
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
971
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
974 with_gas=yes ;;
975
976 -help | --help | --hel | --he | -h)
977 ac_init_help=long ;;
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
982
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
987
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 ac_prev=htmldir ;;
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 | --ht=*)
992 htmldir=$ac_optarg ;;
993
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1000
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 ac_prev=infodir ;;
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1005
1006 -libdir | --libdir | --libdi | --libd)
1007 ac_prev=libdir ;;
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1010
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1017
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1022
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
1024 | --localstate | --localstat | --localsta | --localst | --locals)
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028 localstatedir=$ac_optarg ;;
1029
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 ac_prev=mandir ;;
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1034
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1037 with_fp=no ;;
1038
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1041 no_create=yes ;;
1042
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 no_recursion=yes ;;
1046
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1055
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 ac_prev=prefix ;;
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1060
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1067
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1074
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1090 program_transform_name=$ac_optarg ;;
1091
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 ac_prev=pdfdir ;;
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1096
1097 -psdir | --psdir | --psdi | --psd | --ps)
1098 ac_prev=psdir ;;
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 psdir=$ac_optarg ;;
1101
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 silent=yes ;;
1105
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
1110 sbindir=$ac_optarg ;;
1111
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
1121 sharedstatedir=$ac_optarg ;;
1122
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
1126 site=$ac_optarg ;;
1127
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1132
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1139
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1144
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1147
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1150
1151 -with-* | --with-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1155 as_fn_error $? "invalid package name: $ac_useropt"
48310492
RH
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160"with_$ac_useropt"
1161"*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=\$ac_optarg ;;
1166
1167 -without-* | --without-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1171 as_fn_error $? "invalid package name: $ac_useropt"
48310492
RH
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176"with_$ac_useropt"
1177"*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
1182
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1186
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192 x_includes=$ac_optarg ;;
1193
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199 x_libraries=$ac_optarg ;;
1200
22e05272
JM
1201 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202Try \`$0 --help' for more information"
48310492
RH
1203 ;;
1204
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1210 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
48310492
RH
1211 esac
1212 eval $ac_envvar=\$ac_optarg
1213 export $ac_envvar ;;
1214
1215 *)
1216 # FIXME: should be removed in autoconf 3.0.
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
48310492
RH
1221 ;;
1222
1223 esac
1224done
1225
1226if test -n "$ac_prev"; then
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1228 as_fn_error $? "missing argument to $ac_option"
48310492
RH
1229fi
1230
1231if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
22e05272 1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
48310492
RH
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 esac
1237fi
1238
1239# Check all directory arguments for consistency.
1240for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1244do
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1247 case $ac_val in
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1251 esac
1252 # Be sure to have absolute directory names.
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
22e05272 1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
48310492
RH
1258done
1259
1260# There might be people who depend on the old broken behavior: `$host'
1261# used to hold the argument of --host etc.
1262# FIXME: To remove some day.
1263build=$build_alias
1264host=$host_alias
1265target=$target_alias
1266
1267# FIXME: To remove some day.
1268if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
48310492
RH
1271 elif test "x$build_alias" != "x$host_alias"; then
1272 cross_compiling=yes
1273 fi
1274fi
1275
1276ac_tool_prefix=
1277test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279test "$silent" = yes && exec 6>/dev/null
1280
1281
1282ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283ac_ls_di=`ls -di .` &&
1284ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1285 as_fn_error $? "working directory cannot be determined"
48310492 1286test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1287 as_fn_error $? "pwd does not report name of working directory"
48310492
RH
1288
1289
1290# Find the source files, if location was not specified.
1291if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$as_myself" ||
1295$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299$as_echo X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)[^/].*/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\).*/{
1313 s//\1/
1314 q
1315 }
1316 s/.*/./; q'`
1317 srcdir=$ac_confdir
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 srcdir=..
1320 fi
1321else
1322 ac_srcdir_defaulted=no
1323fi
1324if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1326 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
48310492
RH
1327fi
1328ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329ac_abs_confdir=`(
22e05272 1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
48310492
RH
1331 pwd)`
1332# When building in place, set srcdir=.
1333if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 srcdir=.
1335fi
1336# Remove unnecessary trailing slashes from srcdir.
1337# Double slashes in file names in object file debugging info
1338# mess up M-x gdb in Emacs.
1339case $srcdir in
1340*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341esac
1342for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347done
1348
1349#
1350# Report the --help message.
1351#
1352if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
1356\`configure' configures GNU Atomic Library 1.0 to adapt to many kinds of systems.
1357
1358Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361VAR=VALUE. See below for descriptions of some of the useful variables.
1362
1363Defaults for the options are specified in brackets.
1364
1365Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
22e05272 1370 -q, --quiet, --silent do not print \`checking ...' messages
48310492
RH
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375
1376Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 [PREFIX]
1381
1382By default, \`make install' will install all the files in
1383\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385for instance \`--prefix=\$HOME'.
1386
1387For better control, use the options below.
1388
1389Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1409_ACEOF
1410
1411 cat <<\_ACEOF
1412
1413Program names:
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1417
1418System types:
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 --target=TARGET configure for building compilers for TARGET [HOST]
1422_ACEOF
1423fi
1424
1425if test -n "$ac_init_help"; then
1426 case $ac_init_help in
1427 short | recursive ) echo "Configuration of GNU Atomic Library 1.0:";;
1428 esac
1429 cat <<\_ACEOF
1430
1431Optional Features:
1432 --disable-option-checking ignore unrecognized --enable/--with options
1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1435 --enable-version-specific-runtime-libs
1436 Specify that runtime libraries should be installed
1437 in a compiler-specific directory [default=no]
1438 --enable-generated-files-in-srcdir
1439 put copies of generated files in source dir intended
1440 for creating source tarballs for users without
1441 texinfo bison or flex. [default=no]
22e05272
JM
1442 --enable-silent-rules less verbose build output (undo: "make V=1")
1443 --disable-silent-rules verbose build output (undo: "make V=0")
48310492 1444 --enable-multilib build many library versions (default)
22e05272
JM
1445 --enable-dependency-tracking
1446 do not reject slow dependency extractors
1447 --disable-dependency-tracking
1448 speeds up one-time build
48310492
RH
1449 --enable-shared[=PKGS] build shared libraries [default=yes]
1450 --enable-static[=PKGS] build static libraries [default=yes]
1451 --enable-fast-install[=PKGS]
1452 optimize for fast installation [default=yes]
1453 --disable-libtool-lock avoid locking (might break parallel builds)
22e05272
JM
1454 --enable-maintainer-mode
1455 enable make rules and dependencies not useful (and
1456 sometimes confusing) to the casual installer
48310492
RH
1457 --enable-symvers=STYLE enables symbol versioning of the shared library
1458 [default=yes]
45ba6bf2 1459 --disable-werror disable building with -Werror
8d286dd1 1460 --enable-cet enable Intel CET in target libraries [default=auto]
48310492
RH
1461
1462Optional Packages:
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
e8e66971
MR
1465 --with-toolexeclibdir=DIR
1466 install libraries built with a cross compiler within
1467 DIR
48310492
RH
1468 --with-pic try to use only PIC/non-PIC objects [default=use
1469 both]
1470 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3c36aa6b
JJ
1471 --with-gcc-major-version-only
1472 use only GCC major number in filesystem paths
48310492
RH
1473
1474Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1480 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
48310492
RH
1481 you have headers in a nonstandard directory <include dir>
1482 CCAS assembler compiler command (defaults to CC)
1483 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1484 CPP C preprocessor
1485
1486Use these variables to override the choices made by `configure' or to help
1487it to find libraries and programs with nonstandard names/locations.
1488
1489Report bugs to the package provider.
1490GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
1491General help using GNU software: <http://www.gnu.org/gethelp/>.
1492_ACEOF
1493ac_status=$?
1494fi
1495
1496if test "$ac_init_help" = "recursive"; then
1497 # If there are subdirs, report their specific --help.
1498 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1499 test -d "$ac_dir" ||
1500 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1501 continue
1502 ac_builddir=.
1503
1504case "$ac_dir" in
1505.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506*)
1507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1508 # A ".." for each directory in $ac_dir_suffix.
1509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 esac ;;
1514esac
1515ac_abs_top_builddir=$ac_pwd
1516ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517# for backward compatibility:
1518ac_top_builddir=$ac_top_build_prefix
1519
1520case $srcdir in
1521 .) # We are building in place.
1522 ac_srcdir=.
1523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
1526 ac_srcdir=$srcdir$ac_dir_suffix;
1527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1529 *) # Relative name.
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533esac
1534ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535
1536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for guested configure.
1538 if test -f "$ac_srcdir/configure.gnu"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541 elif test -f "$ac_srcdir/configure"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure" --help=recursive
1544 else
1545 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 fi || ac_status=$?
1547 cd "$ac_pwd" || { ac_status=$?; break; }
1548 done
1549fi
1550
1551test -n "$ac_init_help" && exit $ac_status
1552if $ac_init_version; then
1553 cat <<\_ACEOF
1554GNU Atomic Library configure 1.0
22e05272 1555generated by GNU Autoconf 2.69
48310492 1556
22e05272 1557Copyright (C) 2012 Free Software Foundation, Inc.
48310492
RH
1558This configure script is free software; the Free Software Foundation
1559gives unlimited permission to copy, distribute and modify it.
1560_ACEOF
1561 exit
1562fi
1563
1564## ------------------------ ##
1565## Autoconf initialization. ##
1566## ------------------------ ##
1567
1568# ac_fn_c_try_compile LINENO
1569# --------------------------
1570# Try to compile conftest.$ac_ext, and return whether this succeeded.
1571ac_fn_c_try_compile ()
1572{
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 rm -f conftest.$ac_objext
1575 if { { ac_try="$ac_compile"
1576case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579esac
1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581$as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_compile") 2>conftest.err
1583 ac_status=$?
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1588 fi
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && {
1591 test -z "$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 } && test -s conftest.$ac_objext; then :
1594 ac_retval=0
1595else
1596 $as_echo "$as_me: failed program was:" >&5
1597sed 's/^/| /' conftest.$ac_ext >&5
1598
1599 ac_retval=1
1600fi
22e05272
JM
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 as_fn_set_status $ac_retval
48310492
RH
1603
1604} # ac_fn_c_try_compile
1605
1606# ac_fn_c_try_link LINENO
1607# -----------------------
1608# Try to link conftest.$ac_ext, and return whether this succeeded.
1609ac_fn_c_try_link ()
1610{
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext conftest$ac_exeext
1613 if { { ac_try="$ac_link"
1614case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617esac
1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619$as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_link") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest$ac_exeext && {
1632 test "$cross_compiling" = yes ||
22e05272 1633 test -x conftest$ac_exeext
48310492
RH
1634 }; then :
1635 ac_retval=0
1636else
1637 $as_echo "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641fi
1642 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1643 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1644 # interfere with the next link command; also delete a directory that is
1645 # left behind by Apple's compiler. We do this before executing the actions.
1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
48310492
RH
1649
1650} # ac_fn_c_try_link
1651
1652# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653# -------------------------------------------------------
1654# Tests whether HEADER exists and can be compiled using the include files in
1655# INCLUDES, setting the cache variable VAR accordingly.
1656ac_fn_c_check_header_compile ()
1657{
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660$as_echo_n "checking for $2... " >&6; }
22e05272 1661if eval \${$3+:} false; then :
48310492
RH
1662 $as_echo_n "(cached) " >&6
1663else
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665/* end confdefs.h. */
1666$4
1667#include <$2>
1668_ACEOF
1669if ac_fn_c_try_compile "$LINENO"; then :
1670 eval "$3=yes"
1671else
1672 eval "$3=no"
1673fi
1674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1675fi
1676eval ac_res=\$$3
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678$as_echo "$ac_res" >&6; }
22e05272 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
48310492
RH
1680
1681} # ac_fn_c_check_header_compile
1682
1683# ac_fn_c_try_cpp LINENO
1684# ----------------------
1685# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1686ac_fn_c_try_cpp ()
1687{
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { { ac_try="$ac_cpp conftest.$ac_ext"
1690case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1702 fi
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1704 test $ac_status = 0; } > conftest.i && {
48310492
RH
1705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 }; then :
1708 ac_retval=0
1709else
1710 $as_echo "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713 ac_retval=1
1714fi
22e05272
JM
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
48310492
RH
1717
1718} # ac_fn_c_try_cpp
1719
1720# ac_fn_c_try_run LINENO
1721# ----------------------
1722# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723# that executables *can* be run.
1724ac_fn_c_try_run ()
1725{
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_link"
1728case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1738 { { case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741esac
1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743$as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_try") 2>&5
1745 ac_status=$?
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; }; }; then :
1748 ac_retval=0
1749else
1750 $as_echo "$as_me: program exited with status $ac_status" >&5
1751 $as_echo "$as_me: failed program was:" >&5
1752sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=$ac_status
1755fi
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
48310492
RH
1759
1760} # ac_fn_c_try_run
1761
1762# ac_fn_c_check_func LINENO FUNC VAR
1763# ----------------------------------
1764# Tests whether FUNC exists, setting the cache variable VAR accordingly
1765ac_fn_c_check_func ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769$as_echo_n "checking for $2... " >&6; }
22e05272 1770if eval \${$3+:} false; then :
48310492
RH
1771 $as_echo_n "(cached) " >&6
1772else
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h. */
1775/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1777#define $2 innocuous_$2
1778
1779/* System header to define __stub macros and hopefully few prototypes,
1780 which can conflict with char $2 (); below.
1781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1782 <limits.h> exists even on freestanding compilers. */
1783
1784#ifdef __STDC__
1785# include <limits.h>
1786#else
1787# include <assert.h>
1788#endif
1789
1790#undef $2
1791
1792/* Override any GCC internal prototype to avoid an error.
1793 Use char because int might match the return type of a GCC
1794 builtin and then its argument prototype would still apply. */
1795#ifdef __cplusplus
1796extern "C"
1797#endif
1798char $2 ();
1799/* The GNU C library defines this for functions which it implements
1800 to always fail with ENOSYS. Some functions are actually named
1801 something starting with __ and the normal name is an alias. */
1802#if defined __stub_$2 || defined __stub___$2
1803choke me
1804#endif
1805
1806int
1807main ()
1808{
1809return $2 ();
1810 ;
1811 return 0;
1812}
1813_ACEOF
1814if ac_fn_c_try_link "$LINENO"; then :
1815 eval "$3=yes"
1816else
1817 eval "$3=no"
1818fi
1819rm -f core conftest.err conftest.$ac_objext \
1820 conftest$ac_exeext conftest.$ac_ext
1821fi
1822eval ac_res=\$$3
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824$as_echo "$ac_res" >&6; }
22e05272 1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
48310492
RH
1826
1827} # ac_fn_c_check_func
1828
1829# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1830# -------------------------------------------
1831# Tests whether TYPE exists after having included INCLUDES, setting cache
1832# variable VAR accordingly.
1833ac_fn_c_check_type ()
1834{
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837$as_echo_n "checking for $2... " >&6; }
22e05272 1838if eval \${$3+:} false; then :
48310492
RH
1839 $as_echo_n "(cached) " >&6
1840else
1841 eval "$3=no"
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h. */
1844$4
1845int
1846main ()
1847{
1848if (sizeof ($2))
1849 return 0;
1850 ;
1851 return 0;
1852}
1853_ACEOF
1854if ac_fn_c_try_compile "$LINENO"; then :
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856/* end confdefs.h. */
1857$4
1858int
1859main ()
1860{
1861if (sizeof (($2)))
1862 return 0;
1863 ;
1864 return 0;
1865}
1866_ACEOF
1867if ac_fn_c_try_compile "$LINENO"; then :
1868
1869else
1870 eval "$3=yes"
1871fi
1872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873fi
1874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875fi
1876eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878$as_echo "$ac_res" >&6; }
22e05272 1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
48310492
RH
1880
1881} # ac_fn_c_check_type
1882
1883# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1884# --------------------------------------------
1885# Tries to find the compile-time value of EXPR in a program that includes
1886# INCLUDES, setting VAR accordingly. Returns whether the value could be
1887# computed
1888ac_fn_c_compute_int ()
1889{
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 if test "$cross_compiling" = yes; then
1892 # Depending upon the size, compute the lo and hi bounds.
1893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h. */
1895$4
1896int
1897main ()
1898{
1899static int test_array [1 - 2 * !(($2) >= 0)];
22e05272
JM
1900test_array [0] = 0;
1901return test_array [0];
48310492
RH
1902
1903 ;
1904 return 0;
1905}
1906_ACEOF
1907if ac_fn_c_try_compile "$LINENO"; then :
1908 ac_lo=0 ac_mid=0
1909 while :; do
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911/* end confdefs.h. */
1912$4
1913int
1914main ()
1915{
1916static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
1917test_array [0] = 0;
1918return test_array [0];
48310492
RH
1919
1920 ;
1921 return 0;
1922}
1923_ACEOF
1924if ac_fn_c_try_compile "$LINENO"; then :
1925 ac_hi=$ac_mid; break
1926else
1927 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1928 if test $ac_lo -le $ac_mid; then
1929 ac_lo= ac_hi=
1930 break
1931 fi
1932 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1933fi
1934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 done
1936else
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h. */
1939$4
1940int
1941main ()
1942{
1943static int test_array [1 - 2 * !(($2) < 0)];
22e05272
JM
1944test_array [0] = 0;
1945return test_array [0];
48310492
RH
1946
1947 ;
1948 return 0;
1949}
1950_ACEOF
1951if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_hi=-1 ac_mid=-1
1953 while :; do
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955/* end confdefs.h. */
1956$4
1957int
1958main ()
1959{
1960static int test_array [1 - 2 * !(($2) >= $ac_mid)];
22e05272
JM
1961test_array [0] = 0;
1962return test_array [0];
48310492
RH
1963
1964 ;
1965 return 0;
1966}
1967_ACEOF
1968if ac_fn_c_try_compile "$LINENO"; then :
1969 ac_lo=$ac_mid; break
1970else
1971 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1972 if test $ac_mid -le $ac_hi; then
1973 ac_lo= ac_hi=
1974 break
1975 fi
1976 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1977fi
1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 done
1980else
1981 ac_lo= ac_hi=
1982fi
1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984fi
1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986# Binary search between lo and hi bounds.
1987while test "x$ac_lo" != "x$ac_hi"; do
1988 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990/* end confdefs.h. */
1991$4
1992int
1993main ()
1994{
1995static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
1996test_array [0] = 0;
1997return test_array [0];
48310492
RH
1998
1999 ;
2000 return 0;
2001}
2002_ACEOF
2003if ac_fn_c_try_compile "$LINENO"; then :
2004 ac_hi=$ac_mid
2005else
2006 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2007fi
2008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009done
2010case $ac_lo in #((
2011?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2012'') ac_retval=1 ;;
2013esac
2014 else
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */
2017$4
2018static long int longval () { return $2; }
2019static unsigned long int ulongval () { return $2; }
2020#include <stdio.h>
2021#include <stdlib.h>
2022int
2023main ()
2024{
2025
2026 FILE *f = fopen ("conftest.val", "w");
2027 if (! f)
2028 return 1;
2029 if (($2) < 0)
2030 {
2031 long int i = longval ();
2032 if (i != ($2))
2033 return 1;
2034 fprintf (f, "%ld", i);
2035 }
2036 else
2037 {
2038 unsigned long int i = ulongval ();
2039 if (i != ($2))
2040 return 1;
2041 fprintf (f, "%lu", i);
2042 }
2043 /* Do not output a trailing newline, as this causes \r\n confusion
2044 on some platforms. */
2045 return ferror (f) || fclose (f) != 0;
2046
2047 ;
2048 return 0;
2049}
2050_ACEOF
2051if ac_fn_c_try_run "$LINENO"; then :
2052 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2053else
2054 ac_retval=1
2055fi
2056rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2057 conftest.$ac_objext conftest.beam conftest.$ac_ext
2058rm -f conftest.val
2059
2060 fi
22e05272
JM
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062 as_fn_set_status $ac_retval
48310492
RH
2063
2064} # ac_fn_c_compute_int
267bac10
JM
2065
2066# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2067# -------------------------------------------------------
2068# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2069# the include files in INCLUDES and setting the cache variable VAR
2070# accordingly.
2071ac_fn_c_check_header_mongrel ()
2072{
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 2074 if eval \${$3+:} false; then :
267bac10
JM
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076$as_echo_n "checking for $2... " >&6; }
22e05272 2077if eval \${$3+:} false; then :
267bac10
JM
2078 $as_echo_n "(cached) " >&6
2079fi
2080eval ac_res=\$$3
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082$as_echo "$ac_res" >&6; }
2083else
2084 # Is the header compilable?
2085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2086$as_echo_n "checking $2 usability... " >&6; }
2087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088/* end confdefs.h. */
2089$4
2090#include <$2>
2091_ACEOF
2092if ac_fn_c_try_compile "$LINENO"; then :
2093 ac_header_compiler=yes
2094else
2095 ac_header_compiler=no
2096fi
2097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2099$as_echo "$ac_header_compiler" >&6; }
2100
2101# Is the header present?
2102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2103$as_echo_n "checking $2 presence... " >&6; }
2104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105/* end confdefs.h. */
2106#include <$2>
2107_ACEOF
2108if ac_fn_c_try_cpp "$LINENO"; then :
2109 ac_header_preproc=yes
2110else
2111 ac_header_preproc=no
2112fi
22e05272 2113rm -f conftest.err conftest.i conftest.$ac_ext
267bac10
JM
2114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2115$as_echo "$ac_header_preproc" >&6; }
2116
2117# So? What about this header?
2118case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2119 yes:no: )
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2121$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2123$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2124 ;;
2125 no:yes:* )
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2127$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2129$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2131$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2133$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2135$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2136 ;;
2137esac
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139$as_echo_n "checking for $2... " >&6; }
22e05272 2140if eval \${$3+:} false; then :
267bac10
JM
2141 $as_echo_n "(cached) " >&6
2142else
2143 eval "$3=\$ac_header_compiler"
2144fi
2145eval ac_res=\$$3
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147$as_echo "$ac_res" >&6; }
2148fi
22e05272 2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
267bac10
JM
2150
2151} # ac_fn_c_check_header_mongrel
48310492
RH
2152cat >config.log <<_ACEOF
2153This file contains any messages produced by compilers while
2154running configure, to aid debugging if configure makes a mistake.
2155
2156It was created by GNU Atomic Library $as_me 1.0, which was
22e05272 2157generated by GNU Autoconf 2.69. Invocation command line was
48310492
RH
2158
2159 $ $0 $@
2160
2161_ACEOF
2162exec 5>>config.log
2163{
2164cat <<_ASUNAME
2165## --------- ##
2166## Platform. ##
2167## --------- ##
2168
2169hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2170uname -m = `(uname -m) 2>/dev/null || echo unknown`
2171uname -r = `(uname -r) 2>/dev/null || echo unknown`
2172uname -s = `(uname -s) 2>/dev/null || echo unknown`
2173uname -v = `(uname -v) 2>/dev/null || echo unknown`
2174
2175/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2176/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2177
2178/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2179/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2180/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2181/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2182/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2183/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2184/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2185
2186_ASUNAME
2187
2188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189for as_dir in $PATH
2190do
2191 IFS=$as_save_IFS
2192 test -z "$as_dir" && as_dir=.
2193 $as_echo "PATH: $as_dir"
2194 done
2195IFS=$as_save_IFS
2196
2197} >&5
2198
2199cat >&5 <<_ACEOF
2200
2201
2202## ----------- ##
2203## Core tests. ##
2204## ----------- ##
2205
2206_ACEOF
2207
2208
2209# Keep a trace of the command line.
2210# Strip out --no-create and --no-recursion so they do not pile up.
2211# Strip out --silent because we don't want to record it for future runs.
2212# Also quote any args containing shell meta-characters.
2213# Make two passes to allow for proper duplicate-argument suppression.
2214ac_configure_args=
2215ac_configure_args0=
2216ac_configure_args1=
2217ac_must_keep_next=false
2218for ac_pass in 1 2
2219do
2220 for ac_arg
2221 do
2222 case $ac_arg in
2223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2225 | -silent | --silent | --silen | --sile | --sil)
2226 continue ;;
2227 *\'*)
2228 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2229 esac
2230 case $ac_pass in
2231 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2232 2)
2233 as_fn_append ac_configure_args1 " '$ac_arg'"
2234 if test $ac_must_keep_next = true; then
2235 ac_must_keep_next=false # Got value, back to normal.
2236 else
2237 case $ac_arg in
2238 *=* | --config-cache | -C | -disable-* | --disable-* \
2239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2241 | -with-* | --with-* | -without-* | --without-* | --x)
2242 case "$ac_configure_args0 " in
2243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2244 esac
2245 ;;
2246 -* ) ac_must_keep_next=true ;;
2247 esac
2248 fi
2249 as_fn_append ac_configure_args " '$ac_arg'"
2250 ;;
2251 esac
2252 done
2253done
2254{ ac_configure_args0=; unset ac_configure_args0;}
2255{ ac_configure_args1=; unset ac_configure_args1;}
2256
2257# When interrupted or exit'd, cleanup temporary files, and complete
2258# config.log. We remove comments because anyway the quotes in there
2259# would cause problems or look ugly.
2260# WARNING: Use '\'' to represent an apostrophe within the trap.
2261# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2262trap 'exit_status=$?
2263 # Save into config.log some information that might help in debugging.
2264 {
2265 echo
2266
22e05272 2267 $as_echo "## ---------------- ##
48310492 2268## Cache variables. ##
22e05272 2269## ---------------- ##"
48310492
RH
2270 echo
2271 # The following way of writing the cache mishandles newlines in values,
2272(
2273 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2274 eval ac_val=\$$ac_var
2275 case $ac_val in #(
2276 *${as_nl}*)
2277 case $ac_var in #(
2278 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2279$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2280 esac
2281 case $ac_var in #(
2282 _ | IFS | as_nl) ;; #(
2283 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2284 *) { eval $ac_var=; unset $ac_var;} ;;
2285 esac ;;
2286 esac
2287 done
2288 (set) 2>&1 |
2289 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2290 *${as_nl}ac_space=\ *)
2291 sed -n \
2292 "s/'\''/'\''\\\\'\'''\''/g;
2293 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2294 ;; #(
2295 *)
2296 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2297 ;;
2298 esac |
2299 sort
2300)
2301 echo
2302
22e05272 2303 $as_echo "## ----------------- ##
48310492 2304## Output variables. ##
22e05272 2305## ----------------- ##"
48310492
RH
2306 echo
2307 for ac_var in $ac_subst_vars
2308 do
2309 eval ac_val=\$$ac_var
2310 case $ac_val in
2311 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2312 esac
2313 $as_echo "$ac_var='\''$ac_val'\''"
2314 done | sort
2315 echo
2316
2317 if test -n "$ac_subst_files"; then
22e05272 2318 $as_echo "## ------------------- ##
48310492 2319## File substitutions. ##
22e05272 2320## ------------------- ##"
48310492
RH
2321 echo
2322 for ac_var in $ac_subst_files
2323 do
2324 eval ac_val=\$$ac_var
2325 case $ac_val in
2326 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2327 esac
2328 $as_echo "$ac_var='\''$ac_val'\''"
2329 done | sort
2330 echo
2331 fi
2332
2333 if test -s confdefs.h; then
22e05272 2334 $as_echo "## ----------- ##
48310492 2335## confdefs.h. ##
22e05272 2336## ----------- ##"
48310492
RH
2337 echo
2338 cat confdefs.h
2339 echo
2340 fi
2341 test "$ac_signal" != 0 &&
2342 $as_echo "$as_me: caught signal $ac_signal"
2343 $as_echo "$as_me: exit $exit_status"
2344 } >&5
2345 rm -f core *.core core.conftest.* &&
2346 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2347 exit $exit_status
2348' 0
2349for ac_signal in 1 2 13 15; do
2350 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2351done
2352ac_signal=0
2353
2354# confdefs.h avoids OS command line length limits that DEFS can exceed.
2355rm -f -r conftest* confdefs.h
2356
2357$as_echo "/* confdefs.h */" > confdefs.h
2358
2359# Predefined preprocessor variables.
2360
2361cat >>confdefs.h <<_ACEOF
2362#define PACKAGE_NAME "$PACKAGE_NAME"
2363_ACEOF
2364
2365cat >>confdefs.h <<_ACEOF
2366#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2367_ACEOF
2368
2369cat >>confdefs.h <<_ACEOF
2370#define PACKAGE_VERSION "$PACKAGE_VERSION"
2371_ACEOF
2372
2373cat >>confdefs.h <<_ACEOF
2374#define PACKAGE_STRING "$PACKAGE_STRING"
2375_ACEOF
2376
2377cat >>confdefs.h <<_ACEOF
2378#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2379_ACEOF
2380
2381cat >>confdefs.h <<_ACEOF
2382#define PACKAGE_URL "$PACKAGE_URL"
2383_ACEOF
2384
2385
2386# Let the site file select an alternate cache file if it wants to.
2387# Prefer an explicitly selected file to automatically selected ones.
2388ac_site_file1=NONE
2389ac_site_file2=NONE
2390if test -n "$CONFIG_SITE"; then
22e05272
JM
2391 # We do not want a PATH search for config.site.
2392 case $CONFIG_SITE in #((
2393 -*) ac_site_file1=./$CONFIG_SITE;;
2394 */*) ac_site_file1=$CONFIG_SITE;;
2395 *) ac_site_file1=./$CONFIG_SITE;;
2396 esac
48310492
RH
2397elif test "x$prefix" != xNONE; then
2398 ac_site_file1=$prefix/share/config.site
2399 ac_site_file2=$prefix/etc/config.site
2400else
2401 ac_site_file1=$ac_default_prefix/share/config.site
2402 ac_site_file2=$ac_default_prefix/etc/config.site
2403fi
2404for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2405do
2406 test "x$ac_site_file" = xNONE && continue
22e05272 2407 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
48310492
RH
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2409$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2410 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2411 . "$ac_site_file" \
2412 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2414as_fn_error $? "failed to load site script $ac_site_file
2415See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
2416 fi
2417done
2418
2419if test -r "$cache_file"; then
22e05272
JM
2420 # Some versions of bash will fail to source /dev/null (special files
2421 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2422 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
48310492
RH
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2424$as_echo "$as_me: loading cache $cache_file" >&6;}
2425 case $cache_file in
2426 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2427 *) . "./$cache_file";;
2428 esac
2429 fi
2430else
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2432$as_echo "$as_me: creating cache $cache_file" >&6;}
2433 >$cache_file
2434fi
2435
2436# Check that the precious variables saved in the cache have kept the same
2437# value.
2438ac_cache_corrupted=false
2439for ac_var in $ac_precious_vars; do
2440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2441 eval ac_new_set=\$ac_env_${ac_var}_set
2442 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2443 eval ac_new_val=\$ac_env_${ac_var}_value
2444 case $ac_old_set,$ac_new_set in
2445 set,)
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2447$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2448 ac_cache_corrupted=: ;;
2449 ,set)
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2451$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2452 ac_cache_corrupted=: ;;
2453 ,);;
2454 *)
2455 if test "x$ac_old_val" != "x$ac_new_val"; then
2456 # differences in whitespace do not lead to failure.
2457 ac_old_val_w=`echo x $ac_old_val`
2458 ac_new_val_w=`echo x $ac_new_val`
2459 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2461$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2462 ac_cache_corrupted=:
2463 else
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2465$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2466 eval $ac_var=\$ac_old_val
2467 fi
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2469$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2471$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2472 fi;;
2473 esac
2474 # Pass precious variables to config.status.
2475 if test "$ac_new_set" = set; then
2476 case $ac_new_val in
2477 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2478 *) ac_arg=$ac_var=$ac_new_val ;;
2479 esac
2480 case " $ac_configure_args " in
2481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2482 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2483 esac
2484 fi
2485done
2486if $ac_cache_corrupted; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2490$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2491 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
48310492
RH
2492fi
2493## -------------------- ##
2494## Main body of script. ##
2495## -------------------- ##
2496
2497ac_ext=c
2498ac_cpp='$CPP $CPPFLAGS'
2499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502
2503
2504
2505
2506
2507ac_config_headers="$ac_config_headers auto-config.h"
2508
2509
2510# -------
2511# Options
2512# -------
2513
2514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2515$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2516 # Check whether --enable-version-specific-runtime-libs was given.
2517if test "${enable_version_specific_runtime_libs+set}" = set; then :
2518 enableval=$enable_version_specific_runtime_libs;
2519 case "$enableval" in
2520 yes|no) ;;
22e05272 2521 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
48310492
RH
2522 esac
2523
2524else
2525 enable_version_specific_runtime_libs=no
2526fi
2527
2528
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2530$as_echo "$enable_version_specific_runtime_libs" >&6; }
2531
2532# We would like our source tree to be readonly. However when releases or
2533# pre-releases are generated, the flex/bison generated files as well as the
2534# various formats of manuals need to be included along with the rest of the
2535# sources. Therefore we have --enable-generated-files-in-srcdir to do
2536# just that.
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2538$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2539 # Check whether --enable-generated-files-in-srcdir was given.
2540if test "${enable_generated_files_in_srcdir+set}" = set; then :
2541 enableval=$enable_generated_files_in_srcdir;
2542 case "$enableval" in
2543 yes|no) ;;
22e05272 2544 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
48310492
RH
2545 esac
2546
2547else
2548 enable_generated_files_in_srcdir=no
2549fi
2550
2551
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2553$as_echo "$enable_generated_files_in_srcdir" >&6; }
2554 if test "$enable_generated_files_in_srcdir" = yes; then
2555 GENINSRC_TRUE=
2556 GENINSRC_FALSE='#'
2557else
2558 GENINSRC_TRUE='#'
2559 GENINSRC_FALSE=
2560fi
2561
2562
2563
2564# -------
2565
2566# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2567#
2568# You will slowly go insane if you do not grok the following fact: when
2569# building this library, the top-level /target/ becomes the library's /host/.
2570#
2571# configure then causes --target to default to --host, exactly like any
2572# other package using autoconf. Therefore, 'target' and 'host' will
2573# always be the same. This makes sense both for native and cross compilers
2574# just think about it for a little while. :-)
2575#
2576# Also, if this library is being configured as part of a cross compiler, the
2577# top-level configure script will pass the "real" host as $with_cross_host.
2578#
2579# Do not delete or change the following two lines. For why, see
2580# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2581ac_aux_dir=
2582for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2583 if test -f "$ac_dir/install-sh"; then
2584 ac_aux_dir=$ac_dir
2585 ac_install_sh="$ac_aux_dir/install-sh -c"
2586 break
2587 elif test -f "$ac_dir/install.sh"; then
2588 ac_aux_dir=$ac_dir
2589 ac_install_sh="$ac_aux_dir/install.sh -c"
2590 break
2591 elif test -f "$ac_dir/shtool"; then
2592 ac_aux_dir=$ac_dir
2593 ac_install_sh="$ac_aux_dir/shtool install -c"
2594 break
2595 fi
48310492
RH
2596done
2597if test -z "$ac_aux_dir"; then
22e05272 2598 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
48310492
RH
2599fi
2600
2601# These three variables are undocumented and unsupported,
2602# and are intended to be withdrawn in a future Autoconf release.
2603# They can cause serious problems if a builder's source tree is in a directory
2604# whose full name contains unusual characters.
2605ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2606ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2607ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2608
2609
2610# Make sure we can run config.sub.
2611$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2612 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
48310492
RH
2613
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2615$as_echo_n "checking build system type... " >&6; }
22e05272 2616if ${ac_cv_build+:} false; then :
48310492
RH
2617 $as_echo_n "(cached) " >&6
2618else
2619 ac_build_alias=$build_alias
2620test "x$ac_build_alias" = x &&
2621 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2622test "x$ac_build_alias" = x &&
22e05272 2623 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
48310492 2624ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2625 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
48310492
RH
2626
2627fi
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2629$as_echo "$ac_cv_build" >&6; }
2630case $ac_cv_build in
2631*-*-*) ;;
22e05272 2632*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
48310492
RH
2633esac
2634build=$ac_cv_build
2635ac_save_IFS=$IFS; IFS='-'
2636set x $ac_cv_build
2637shift
2638build_cpu=$1
2639build_vendor=$2
2640shift; shift
2641# Remember, the first character of IFS is used to create $*,
2642# except with old shells:
2643build_os=$*
2644IFS=$ac_save_IFS
2645case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2646
2647
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2649$as_echo_n "checking host system type... " >&6; }
22e05272 2650if ${ac_cv_host+:} false; then :
48310492
RH
2651 $as_echo_n "(cached) " >&6
2652else
2653 if test "x$host_alias" = x; then
2654 ac_cv_host=$ac_cv_build
2655else
2656 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2657 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
48310492
RH
2658fi
2659
2660fi
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2662$as_echo "$ac_cv_host" >&6; }
2663case $ac_cv_host in
2664*-*-*) ;;
22e05272 2665*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
48310492
RH
2666esac
2667host=$ac_cv_host
2668ac_save_IFS=$IFS; IFS='-'
2669set x $ac_cv_host
2670shift
2671host_cpu=$1
2672host_vendor=$2
2673shift; shift
2674# Remember, the first character of IFS is used to create $*,
2675# except with old shells:
2676host_os=$*
2677IFS=$ac_save_IFS
2678case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2679
2680
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2682$as_echo_n "checking target system type... " >&6; }
22e05272 2683if ${ac_cv_target+:} false; then :
48310492
RH
2684 $as_echo_n "(cached) " >&6
2685else
2686 if test "x$target_alias" = x; then
2687 ac_cv_target=$ac_cv_host
2688else
2689 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2690 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
48310492
RH
2691fi
2692
2693fi
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2695$as_echo "$ac_cv_target" >&6; }
2696case $ac_cv_target in
2697*-*-*) ;;
22e05272 2698*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
48310492
RH
2699esac
2700target=$ac_cv_target
2701ac_save_IFS=$IFS; IFS='-'
2702set x $ac_cv_target
2703shift
2704target_cpu=$1
2705target_vendor=$2
2706shift; shift
2707# Remember, the first character of IFS is used to create $*,
2708# except with old shells:
2709target_os=$*
2710IFS=$ac_save_IFS
2711case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2712
2713
2714# The aliases save the names the user supplied, while $host etc.
2715# will get canonicalized.
2716test -n "$target_alias" &&
2717 test "$program_prefix$program_suffix$program_transform_name" = \
2718 NONENONEs,x,x, &&
2719 program_prefix=${target_alias}-
2720
2721target_alias=${target_alias-$host_alias}
2722
2723# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2724# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2725# 1.9.0: minimum required version
2726# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2727# of other PACKAGE_* variables will, however, and there's nothing
2728# we can do about that; they come from AC_INIT).
c0758df9 2729# no-dist: we don't want 'dist' and related rules.
48310492
RH
2730# foreign: we don't follow the normal rules for GNU packages (no COPYING
2731# file in the top srcdir, etc, etc), so stop complaining.
2732# -Wall: turns on all automake warnings...
2733# -Wno-portability: ...except this one, since GNU make is required.
2734# -Wno-override: ... and this one, since we do want this in testsuite.
22e05272 2735am__api_version='1.15'
48310492
RH
2736
2737# Find a good install program. We prefer a C program (faster),
2738# so one script is as good as another. But avoid the broken or
2739# incompatible versions:
2740# SysV /etc/install, /usr/sbin/install
2741# SunOS /usr/etc/install
2742# IRIX /sbin/install
2743# AIX /bin/install
2744# AmigaOS /C/install, which installs bootblocks on floppy discs
2745# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2746# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2747# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2748# OS/2's system install, which has a completely different semantic
2749# ./install, which can be erroneously created by make from ./install.sh.
2750# Reject install programs that cannot install multiple files.
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2752$as_echo_n "checking for a BSD-compatible install... " >&6; }
2753if test -z "$INSTALL"; then
22e05272 2754if ${ac_cv_path_install+:} false; then :
48310492
RH
2755 $as_echo_n "(cached) " >&6
2756else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758for as_dir in $PATH
2759do
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 # Account for people who put trailing slashes in PATH elements.
2763case $as_dir/ in #((
2764 ./ | .// | /[cC]/* | \
2765 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2766 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2767 /usr/ucb/* ) ;;
2768 *)
2769 # OSF1 and SCO ODT 3.0 have their own names for install.
2770 # Don't use installbsd from OSF since it installs stuff as root
2771 # by default.
2772 for ac_prog in ginstall scoinst install; do
2773 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2774 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
48310492
RH
2775 if test $ac_prog = install &&
2776 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2777 # AIX install. It has an incompatible calling convention.
2778 :
2779 elif test $ac_prog = install &&
2780 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2781 # program-specific install script used by HP pwplus--don't use.
2782 :
2783 else
2784 rm -rf conftest.one conftest.two conftest.dir
2785 echo one > conftest.one
2786 echo two > conftest.two
2787 mkdir conftest.dir
2788 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2789 test -s conftest.one && test -s conftest.two &&
2790 test -s conftest.dir/conftest.one &&
2791 test -s conftest.dir/conftest.two
2792 then
2793 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2794 break 3
2795 fi
2796 fi
2797 fi
2798 done
2799 done
2800 ;;
2801esac
2802
2803 done
2804IFS=$as_save_IFS
2805
2806rm -rf conftest.one conftest.two conftest.dir
2807
2808fi
2809 if test "${ac_cv_path_install+set}" = set; then
2810 INSTALL=$ac_cv_path_install
2811 else
2812 # As a last resort, use the slow shell script. Don't cache a
2813 # value for INSTALL within a source directory, because that will
2814 # break other packages using the cache if that directory is
2815 # removed, or if the value is a relative name.
2816 INSTALL=$ac_install_sh
2817 fi
2818fi
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2820$as_echo "$INSTALL" >&6; }
2821
2822# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2823# It thinks the first close brace ends the variable substitution.
2824test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2825
2826test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2827
2828test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2829
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2831$as_echo_n "checking whether build environment is sane... " >&6; }
48310492
RH
2832# Reject unsafe characters in $srcdir or the absolute working directory
2833# name. Accept space and tab only in the latter.
2834am_lf='
2835'
2836case `pwd` in
2837 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 2838 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
48310492
RH
2839esac
2840case $srcdir in
2841 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 2842 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
48310492
RH
2843esac
2844
22e05272 2845# Do 'set' in a subshell so we don't clobber the current shell's
48310492
RH
2846# arguments. Must try -L first in case configure is actually a
2847# symlink; some systems play weird games with the mod time of symlinks
2848# (eg FreeBSD returns the mod time of the symlink's containing
2849# directory).
2850if (
22e05272
JM
2851 am_has_slept=no
2852 for am_try in 1 2; do
2853 echo "timestamp, slept: $am_has_slept" > conftest.file
2854 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2855 if test "$*" = "X"; then
2856 # -L didn't work.
2857 set X `ls -t "$srcdir/configure" conftest.file`
2858 fi
2859 if test "$*" != "X $srcdir/configure conftest.file" \
2860 && test "$*" != "X conftest.file $srcdir/configure"; then
2861
2862 # If neither matched, then we have a broken ls. This can happen
2863 # if, for instance, CONFIG_SHELL is bash and it inherits a
2864 # broken ls alias from the environment. This has actually
2865 # happened. Such a system could not be considered "sane".
2866 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2867 alias in your environment" "$LINENO" 5
2868 fi
2869 if test "$2" = conftest.file || test $am_try -eq 2; then
2870 break
2871 fi
2872 # Just in case.
2873 sleep 1
2874 am_has_slept=yes
2875 done
48310492
RH
2876 test "$2" = conftest.file
2877 )
2878then
2879 # Ok.
2880 :
2881else
22e05272 2882 as_fn_error $? "newly created file is older than distributed files!
48310492
RH
2883Check your system clock" "$LINENO" 5
2884fi
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2886$as_echo "yes" >&6; }
22e05272
JM
2887# If we didn't sleep, we still need to ensure time stamps of config.status and
2888# generated files are strictly newer.
2889am_sleep_pid=
2890if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2891 ( sleep 1 ) &
2892 am_sleep_pid=$!
2893fi
2894
2895rm -f conftest.file
2896
48310492
RH
2897test "$program_prefix" != NONE &&
2898 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2899# Use a double $ so make ignores it.
2900test "$program_suffix" != NONE &&
2901 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2902# Double any \ or $.
2903# By default was `s,x,x', remove it if useless.
2904ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2905program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2906
22e05272
JM
2907# Expand $ac_aux_dir to an absolute path.
2908am_aux_dir=`cd "$ac_aux_dir" && pwd`
48310492
RH
2909
2910if test x"${MISSING+set}" != xset; then
2911 case $am_aux_dir in
2912 *\ * | *\ *)
2913 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2914 *)
2915 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2916 esac
2917fi
2918# Use eval to expand $SHELL
22e05272
JM
2919if eval "$MISSING --is-lightweight"; then
2920 am_missing_run="$MISSING "
48310492
RH
2921else
2922 am_missing_run=
22e05272
JM
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2924$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
48310492
RH
2925fi
2926
22e05272 2927if test x"${install_sh+set}" != xset; then
48310492
RH
2928 case $am_aux_dir in
2929 *\ * | *\ *)
2930 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2931 *)
2932 install_sh="\${SHELL} $am_aux_dir/install-sh"
2933 esac
2934fi
2935
22e05272
JM
2936# Installed binaries are usually stripped using 'strip' when the user
2937# run "make install-strip". However 'strip' might not be the right
48310492 2938# tool to use in cross-compilation environments, therefore Automake
22e05272 2939# will honor the 'STRIP' environment variable to overrule this program.
48310492
RH
2940if test "$cross_compiling" != no; then
2941 if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2943set dummy ${ac_tool_prefix}strip; ac_word=$2
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2946if ${ac_cv_prog_STRIP+:} false; then :
48310492
RH
2947 $as_echo_n "(cached) " >&6
2948else
2949 if test -n "$STRIP"; then
2950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2951else
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
2959 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963done
2964 done
2965IFS=$as_save_IFS
2966
2967fi
2968fi
2969STRIP=$ac_cv_prog_STRIP
2970if test -n "$STRIP"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2972$as_echo "$STRIP" >&6; }
2973else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975$as_echo "no" >&6; }
2976fi
2977
2978
2979fi
2980if test -z "$ac_cv_prog_STRIP"; then
2981 ac_ct_STRIP=$STRIP
2982 # Extract the first word of "strip", so it can be a program name with args.
2983set dummy strip; ac_word=$2
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2986if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
48310492
RH
2987 $as_echo_n "(cached) " >&6
2988else
2989 if test -n "$ac_ct_STRIP"; then
2990 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2991else
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
2999 ac_cv_prog_ac_ct_STRIP="strip"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003done
3004 done
3005IFS=$as_save_IFS
3006
3007fi
3008fi
3009ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3010if test -n "$ac_ct_STRIP"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3012$as_echo "$ac_ct_STRIP" >&6; }
3013else
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015$as_echo "no" >&6; }
3016fi
3017
3018 if test "x$ac_ct_STRIP" = x; then
3019 STRIP=":"
3020 else
3021 case $cross_compiling:$ac_tool_warned in
3022yes:)
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3025ac_tool_warned=yes ;;
3026esac
3027 STRIP=$ac_ct_STRIP
3028 fi
3029else
3030 STRIP="$ac_cv_prog_STRIP"
3031fi
3032
3033fi
3034INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3035
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3037$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3038if test -z "$MKDIR_P"; then
22e05272 3039 if ${ac_cv_path_mkdir+:} false; then :
48310492
RH
3040 $as_echo_n "(cached) " >&6
3041else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3044do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_prog in mkdir gmkdir; do
3048 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3049 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
48310492
RH
3050 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3051 'mkdir (GNU coreutils) '* | \
3052 'mkdir (coreutils) '* | \
3053 'mkdir (fileutils) '4.1*)
3054 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3055 break 3;;
3056 esac
3057 done
3058 done
3059 done
3060IFS=$as_save_IFS
3061
3062fi
3063
22e05272 3064 test -d ./--version && rmdir ./--version
48310492
RH
3065 if test "${ac_cv_path_mkdir+set}" = set; then
3066 MKDIR_P="$ac_cv_path_mkdir -p"
3067 else
3068 # As a last resort, use the slow shell script. Don't cache a
3069 # value for MKDIR_P within a source directory, because that will
3070 # break other packages using the cache if that directory is
3071 # removed, or if the value is a relative name.
48310492
RH
3072 MKDIR_P="$ac_install_sh -d"
3073 fi
3074fi
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3076$as_echo "$MKDIR_P" >&6; }
3077
48310492
RH
3078for ac_prog in gawk mawk nawk awk
3079do
3080 # Extract the first word of "$ac_prog", so it can be a program name with args.
3081set dummy $ac_prog; ac_word=$2
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3084if ${ac_cv_prog_AWK+:} false; then :
48310492
RH
3085 $as_echo_n "(cached) " >&6
3086else
3087 if test -n "$AWK"; then
3088 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3089else
3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091for as_dir in $PATH
3092do
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3097 ac_cv_prog_AWK="$ac_prog"
3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101done
3102 done
3103IFS=$as_save_IFS
3104
3105fi
3106fi
3107AWK=$ac_cv_prog_AWK
3108if test -n "$AWK"; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3110$as_echo "$AWK" >&6; }
3111else
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113$as_echo "no" >&6; }
3114fi
3115
3116
3117 test -n "$AWK" && break
3118done
3119
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3121$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3122set x ${MAKE-make}
3123ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 3124if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
48310492
RH
3125 $as_echo_n "(cached) " >&6
3126else
3127 cat >conftest.make <<\_ACEOF
3128SHELL = /bin/sh
3129all:
3130 @echo '@@@%%%=$(MAKE)=@@@%%%'
3131_ACEOF
22e05272 3132# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
48310492
RH
3133case `${MAKE-make} -f conftest.make 2>/dev/null` in
3134 *@@@%%%=?*=@@@%%%*)
3135 eval ac_cv_prog_make_${ac_make}_set=yes;;
3136 *)
3137 eval ac_cv_prog_make_${ac_make}_set=no;;
3138esac
3139rm -f conftest.make
3140fi
3141if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3143$as_echo "yes" >&6; }
3144 SET_MAKE=
3145else
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147$as_echo "no" >&6; }
3148 SET_MAKE="MAKE=${MAKE-make}"
3149fi
3150
3151rm -rf .tst 2>/dev/null
3152mkdir .tst 2>/dev/null
3153if test -d .tst; then
3154 am__leading_dot=.
3155else
3156 am__leading_dot=_
3157fi
3158rmdir .tst 2>/dev/null
3159
22e05272
JM
3160# Check whether --enable-silent-rules was given.
3161if test "${enable_silent_rules+set}" = set; then :
3162 enableval=$enable_silent_rules;
3163fi
3164
3165case $enable_silent_rules in # (((
3166 yes) AM_DEFAULT_VERBOSITY=0;;
3167 no) AM_DEFAULT_VERBOSITY=1;;
3168 *) AM_DEFAULT_VERBOSITY=1;;
3169esac
3170am_make=${MAKE-make}
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3172$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3173if ${am_cv_make_support_nested_variables+:} false; then :
3174 $as_echo_n "(cached) " >&6
3175else
3176 if $as_echo 'TRUE=$(BAR$(V))
3177BAR0=false
3178BAR1=true
3179V=1
3180am__doit:
3181 @$(TRUE)
3182.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3183 am_cv_make_support_nested_variables=yes
3184else
3185 am_cv_make_support_nested_variables=no
3186fi
3187fi
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3189$as_echo "$am_cv_make_support_nested_variables" >&6; }
3190if test $am_cv_make_support_nested_variables = yes; then
3191 AM_V='$(V)'
3192 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3193else
3194 AM_V=$AM_DEFAULT_VERBOSITY
3195 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3196fi
3197AM_BACKSLASH='\'
3198
48310492
RH
3199if test "`cd $srcdir && pwd`" != "`pwd`"; then
3200 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3201 # is not polluted with repeated "-I."
3202 am__isrc=' -I$(srcdir)'
3203 # test to see if srcdir already configured
3204 if test -f $srcdir/config.status; then
22e05272 3205 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
48310492
RH
3206 fi
3207fi
3208
3209# test whether we have cygpath
3210if test -z "$CYGPATH_W"; then
3211 if (cygpath --version) >/dev/null 2>/dev/null; then
3212 CYGPATH_W='cygpath -w'
3213 else
3214 CYGPATH_W=echo
3215 fi
3216fi
3217
3218
3219# Define the identity of the package.
3220 PACKAGE='libatomic'
3221 VERSION='1.0'
3222
3223
3224cat >>confdefs.h <<_ACEOF
3225#define PACKAGE "$PACKAGE"
3226_ACEOF
3227
3228
3229cat >>confdefs.h <<_ACEOF
3230#define VERSION "$VERSION"
3231_ACEOF
3232
3233# Some tools Automake needs.
3234
3235ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3236
3237
3238AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3239
3240
3241AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3242
3243
3244AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3245
3246
3247MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3248
22e05272
JM
3249# For better backward compatibility. To be removed once Automake 1.9.x
3250# dies out for good. For more background, see:
3251# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3252# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3253mkdir_p='$(MKDIR_P)'
3254
3255# We need awk for the "check" target (and possibly the TAP driver). The
3256# system "awk" is bad on some platforms.
dc3368d0
KT
3257# Always define AMTAR for backward compatibility. Yes, it's still used
3258# in the wild :-( We should find a proper way to deprecate it ...
3259AMTAR='$${TAR-tar}'
48310492 3260
22e05272
JM
3261
3262# We'll loop over all known methods to create a tar archive until one works.
3263_am_tools='gnutar pax cpio none'
3264
dc3368d0 3265am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
48310492
RH
3266
3267
3268
3269
3270
22e05272
JM
3271
3272# POSIX will say in a future version that running "rm -f" with no argument
3273# is OK; and we want to be able to make that assumption in our Makefile
3274# recipes. So use an aggressive probe to check that the usage we want is
3275# actually supported "in the wild" to an acceptable degree.
3276# See automake bug#10828.
3277# To make any issue more visible, cause the running configure to be aborted
3278# by default if the 'rm' program in use doesn't match our expectations; the
3279# user can still override this though.
3280if rm -f && rm -fr && rm -rf; then : OK; else
3281 cat >&2 <<'END'
3282Oops!
3283
3284Your 'rm' program seems unable to run without file operands specified
3285on the command line, even when the '-f' option is present. This is contrary
3286to the behaviour of most rm programs out there, and not conforming with
3287the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3288
3289Please tell bug-automake@gnu.org about your system, including the value
3290of your $PATH and any error possibly output before this message. This
3291can help us improve future automake versions.
3292
3293END
3294 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3295 echo 'Configuration will proceed anyway, since you have set the' >&2
3296 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3297 echo >&2
3298 else
3299 cat >&2 <<'END'
3300Aborting the configuration process, to ensure you take notice of the issue.
3301
3302You can download and install GNU coreutils to get an 'rm' implementation
3303that behaves properly: <http://www.gnu.org/software/coreutils/>.
3304
3305If you want to complete the configuration process using your problematic
3306'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3307to "yes", and re-run configure.
3308
3309END
3310 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3311 fi
3312fi
3313
48310492
RH
3314# Default to --enable-multilib
3315# Check whether --enable-multilib was given.
3316if test "${enable_multilib+set}" = set; then :
3317 enableval=$enable_multilib; case "$enableval" in
3318 yes) multilib=yes ;;
3319 no) multilib=no ;;
22e05272 3320 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
48310492
RH
3321 esac
3322else
3323 multilib=yes
3324fi
3325
3326
3327# We may get other options which we leave undocumented:
3328# --with-target-subdir, --with-multisrctop, --with-multisubdir
3329# See config-ml.in if you want the gory details.
3330
3331if test "$srcdir" = "."; then
3332 if test "$with_target_subdir" != "."; then
3333 multi_basedir="$srcdir/$with_multisrctop../.."
3334 else
3335 multi_basedir="$srcdir/$with_multisrctop.."
3336 fi
3337else
3338 multi_basedir="$srcdir/.."
3339fi
3340
3341
3342# Even if the default multilib is not a cross compilation,
3343# it may be that some of the other multilibs are.
3344if test $cross_compiling = no && test $multilib = yes \
3345 && test "x${with_multisubdir}" != x ; then
3346 cross_compiling=maybe
3347fi
3348
3349ac_config_commands="$ac_config_commands default-1"
3350
3351
e8e66971
MR
3352
3353# Check whether --with-toolexeclibdir was given.
3354if test "${with_toolexeclibdir+set}" = set; then :
3355 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3356 /)
3357 ;;
3358 */)
3359 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3360 ;;
3361esac
3362else
3363 with_toolexeclibdir=no
3364fi
3365
3366
3367
48310492
RH
3368# Calculate toolexeclibdir
3369# Also toolexecdir, though it's only used in toolexeclibdir
3370case ${enable_version_specific_runtime_libs} in
3371 yes)
3372 # Need the gcc compiler version to know where to install libraries
3373 # and header files if --enable-version-specific-runtime-libs option
3374 # is selected.
3375 toolexecdir='$(libdir)/gcc/$(target_alias)'
3376 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3377 ;;
3378 no)
3379 if test -n "$with_cross_host" &&
3380 test x"$with_cross_host" != x"no"; then
3381 # Install a library built with a cross compiler in tooldir, not libdir.
3382 toolexecdir='$(exec_prefix)/$(target_alias)'
e8e66971
MR
3383 case ${with_toolexeclibdir} in
3384 no)
3385 toolexeclibdir='$(toolexecdir)/lib'
3386 ;;
3387 *)
3388 toolexeclibdir=${with_toolexeclibdir}
3389 ;;
3390 esac
48310492
RH
3391 else
3392 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3393 toolexeclibdir='$(libdir)'
3394 fi
3395 multi_os_directory=`$CC -print-multi-os-directory`
3396 case $multi_os_directory in
3397 .) ;; # Avoid trailing /.
3398 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3399 esac
3400 ;;
3401esac
3402
3403
3404
3405# Check the compiler.
3406# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3407# We must force CC to /not/ be precious variables; otherwise
3408# the wrong, non-multilib-adjusted value will be used in multilibs.
3409# As a side effect, we have to subst CFLAGS ourselves.
3410
3411
3412
3413ac_ext=c
3414ac_cpp='$CPP $CPPFLAGS'
3415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418if test -n "$ac_tool_prefix"; then
3419 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3420set dummy ${ac_tool_prefix}gcc; 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; }
22e05272 3423if ${ac_cv_prog_CC+:} false; then :
48310492
RH
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
22e05272 3435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3436 ac_cv_prog_CC="${ac_tool_prefix}gcc"
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
3456fi
3457if test -z "$ac_cv_prog_CC"; then
3458 ac_ct_CC=$CC
3459 # Extract the first word of "gcc", so it can be a program name with args.
3460set dummy gcc; ac_word=$2
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3463if ${ac_cv_prog_ac_ct_CC+:} false; then :
48310492
RH
3464 $as_echo_n "(cached) " >&6
3465else
3466 if test -n "$ac_ct_CC"; then
3467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3468else
3469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470for as_dir in $PATH
3471do
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3476 ac_cv_prog_ac_ct_CC="gcc"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3479 fi
3480done
3481 done
3482IFS=$as_save_IFS
3483
3484fi
3485fi
3486ac_ct_CC=$ac_cv_prog_ac_ct_CC
3487if test -n "$ac_ct_CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3489$as_echo "$ac_ct_CC" >&6; }
3490else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492$as_echo "no" >&6; }
3493fi
3494
3495 if test "x$ac_ct_CC" = x; then
3496 CC=""
3497 else
3498 case $cross_compiling:$ac_tool_warned in
3499yes:)
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502ac_tool_warned=yes ;;
3503esac
3504 CC=$ac_ct_CC
3505 fi
3506else
3507 CC="$ac_cv_prog_CC"
3508fi
3509
3510if test -z "$CC"; then
3511 if test -n "$ac_tool_prefix"; then
3512 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3513set dummy ${ac_tool_prefix}cc; ac_word=$2
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3516if ${ac_cv_prog_CC+:} false; then :
48310492
RH
3517 $as_echo_n "(cached) " >&6
3518else
3519 if test -n "$CC"; then
3520 ac_cv_prog_CC="$CC" # Let the user override the test.
3521else
3522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523for as_dir in $PATH
3524do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3529 ac_cv_prog_CC="${ac_tool_prefix}cc"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3532 fi
3533done
3534 done
3535IFS=$as_save_IFS
3536
3537fi
3538fi
3539CC=$ac_cv_prog_CC
3540if test -n "$CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542$as_echo "$CC" >&6; }
3543else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545$as_echo "no" >&6; }
3546fi
3547
3548
3549 fi
3550fi
3551if test -z "$CC"; then
3552 # Extract the first word of "cc", so it can be a program name with args.
3553set dummy cc; ac_word=$2
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3556if ${ac_cv_prog_CC+:} false; then :
48310492
RH
3557 $as_echo_n "(cached) " >&6
3558else
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC="$CC" # Let the user override the test.
3561else
3562 ac_prog_rejected=no
3563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564for as_dir in $PATH
3565do
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3570 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3571 ac_prog_rejected=yes
3572 continue
3573 fi
3574 ac_cv_prog_CC="cc"
3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 break 2
3577 fi
3578done
3579 done
3580IFS=$as_save_IFS
3581
3582if test $ac_prog_rejected = yes; then
3583 # We found a bogon in the path, so make sure we never use it.
3584 set dummy $ac_cv_prog_CC
3585 shift
3586 if test $# != 0; then
3587 # We chose a different compiler from the bogus one.
3588 # However, it has the same basename, so the bogon will be chosen
3589 # first if we set CC to just the basename; use the full file name.
3590 shift
3591 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3592 fi
3593fi
3594fi
3595fi
3596CC=$ac_cv_prog_CC
3597if test -n "$CC"; then
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3599$as_echo "$CC" >&6; }
3600else
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602$as_echo "no" >&6; }
3603fi
3604
3605
3606fi
3607if test -z "$CC"; then
3608 if test -n "$ac_tool_prefix"; then
3609 for ac_prog in cl.exe
3610 do
3611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3612set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3615if ${ac_cv_prog_CC+:} false; then :
48310492
RH
3616 $as_echo_n "(cached) " >&6
3617else
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC="$CC" # Let the user override the test.
3620else
3621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622for as_dir in $PATH
3623do
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3628 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 break 2
3631 fi
3632done
3633 done
3634IFS=$as_save_IFS
3635
3636fi
3637fi
3638CC=$ac_cv_prog_CC
3639if test -n "$CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641$as_echo "$CC" >&6; }
3642else
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644$as_echo "no" >&6; }
3645fi
3646
3647
3648 test -n "$CC" && break
3649 done
3650fi
3651if test -z "$CC"; then
3652 ac_ct_CC=$CC
3653 for ac_prog in cl.exe
3654do
3655 # Extract the first word of "$ac_prog", so it can be a program name with args.
3656set dummy $ac_prog; ac_word=$2
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3658$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3659if ${ac_cv_prog_ac_ct_CC+:} false; then :
48310492
RH
3660 $as_echo_n "(cached) " >&6
3661else
3662 if test -n "$ac_ct_CC"; then
3663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3664else
3665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666for as_dir in $PATH
3667do
3668 IFS=$as_save_IFS
3669 test -z "$as_dir" && as_dir=.
3670 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3672 ac_cv_prog_ac_ct_CC="$ac_prog"
3673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3674 break 2
3675 fi
3676done
3677 done
3678IFS=$as_save_IFS
3679
3680fi
3681fi
3682ac_ct_CC=$ac_cv_prog_ac_ct_CC
3683if test -n "$ac_ct_CC"; then
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3685$as_echo "$ac_ct_CC" >&6; }
3686else
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688$as_echo "no" >&6; }
3689fi
3690
3691
3692 test -n "$ac_ct_CC" && break
3693done
3694
3695 if test "x$ac_ct_CC" = x; then
3696 CC=""
3697 else
3698 case $cross_compiling:$ac_tool_warned in
3699yes:)
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3702ac_tool_warned=yes ;;
3703esac
3704 CC=$ac_ct_CC
3705 fi
3706fi
3707
3708fi
3709
3710
3711test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3713as_fn_error $? "no acceptable C compiler found in \$PATH
3714See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
3715
3716# Provide some information about the compiler.
3717$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3718set X $ac_compile
3719ac_compiler=$2
3720for ac_option in --version -v -V -qversion; do
3721 { { ac_try="$ac_compiler $ac_option >&5"
3722case "(($ac_try" in
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3725esac
3726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727$as_echo "$ac_try_echo"; } >&5
3728 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3729 ac_status=$?
3730 if test -s conftest.err; then
3731 sed '10a\
3732... rest of stderr output deleted ...
3733 10q' conftest.err >conftest.er1
3734 cat conftest.er1 >&5
48310492 3735 fi
22e05272 3736 rm -f conftest.er1 conftest.err
48310492
RH
3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738 test $ac_status = 0; }
3739done
3740
3741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742/* end confdefs.h. */
3743
3744int
3745main ()
3746{
3747
3748 ;
3749 return 0;
3750}
3751_ACEOF
3752ac_clean_files_save=$ac_clean_files
22e05272 3753ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
48310492
RH
3754# Try to create an executable without -o first, disregard a.out.
3755# It will help us diagnose broken compilers, and finding out an intuition
3756# of exeext.
22e05272
JM
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3758$as_echo_n "checking whether the C compiler works... " >&6; }
48310492
RH
3759ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3760
3761# The possible output files:
3762ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3763
3764ac_rmfiles=
3765for ac_file in $ac_files
3766do
3767 case $ac_file in
3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3769 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3770 esac
3771done
3772rm -f $ac_rmfiles
3773
3774if { { ac_try="$ac_link_default"
3775case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778esac
3779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780$as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_link_default") 2>&5
3782 ac_status=$?
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }; then :
3785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3786# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3787# in a Makefile. We should not override ac_cv_exeext if it was cached,
3788# so that the user can short-circuit this test for compilers unknown to
3789# Autoconf.
3790for ac_file in $ac_files ''
3791do
3792 test -f "$ac_file" || continue
3793 case $ac_file in
3794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3795 ;;
3796 [ab].out )
3797 # We found the default executable, but exeext='' is most
3798 # certainly right.
3799 break;;
3800 *.* )
3801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3802 then :; else
3803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3804 fi
3805 # We set ac_cv_exeext here because the later test for it is not
3806 # safe: cross compilers may not add the suffix if given an `-o'
3807 # argument, so we may need to know it at that point already.
3808 # Even if this section looks crufty: it has the advantage of
3809 # actually working.
3810 break;;
3811 * )
3812 break;;
3813 esac
3814done
3815test "$ac_cv_exeext" = no && ac_cv_exeext=
3816
3817else
3818 ac_file=''
3819fi
48310492 3820if test -z "$ac_file"; then :
22e05272
JM
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822$as_echo "no" >&6; }
3823$as_echo "$as_me: failed program was:" >&5
48310492
RH
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3828as_fn_error 77 "C compiler cannot create executables
3829See \`config.log' for more details" "$LINENO" 5; }
3830else
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3832$as_echo "yes" >&6; }
48310492 3833fi
22e05272
JM
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3835$as_echo_n "checking for C compiler default output file name... " >&6; }
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3837$as_echo "$ac_file" >&6; }
48310492
RH
3838ac_exeext=$ac_cv_exeext
3839
22e05272 3840rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
48310492 3841ac_clean_files=$ac_clean_files_save
48310492
RH
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3843$as_echo_n "checking for suffix of executables... " >&6; }
3844if { { ac_try="$ac_link"
3845case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848esac
3849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850$as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_link") 2>&5
3852 ac_status=$?
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }; then :
3855 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3856# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3857# work properly (i.e., refer to `conftest.exe'), while it won't with
3858# `rm'.
3859for ac_file in conftest.exe conftest conftest.*; do
3860 test -f "$ac_file" || continue
3861 case $ac_file in
3862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3863 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3864 break;;
3865 * ) break;;
3866 esac
3867done
3868else
3869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3871as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3872See \`config.log' for more details" "$LINENO" 5; }
48310492 3873fi
22e05272 3874rm -f conftest conftest$ac_cv_exeext
48310492
RH
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3876$as_echo "$ac_cv_exeext" >&6; }
3877
3878rm -f conftest.$ac_ext
3879EXEEXT=$ac_cv_exeext
3880ac_exeext=$EXEEXT
22e05272
JM
3881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882/* end confdefs.h. */
3883#include <stdio.h>
3884int
3885main ()
3886{
3887FILE *f = fopen ("conftest.out", "w");
3888 return ferror (f) || fclose (f) != 0;
3889
3890 ;
3891 return 0;
3892}
3893_ACEOF
3894ac_clean_files="$ac_clean_files conftest.out"
3895# Check that the compiler produces executables we can run. If not, either
3896# the compiler is broken, or we cross compile.
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3898$as_echo_n "checking whether we are cross compiling... " >&6; }
3899if test "$cross_compiling" != yes; then
3900 { { ac_try="$ac_link"
3901case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904esac
3905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906$as_echo "$ac_try_echo"; } >&5
3907 (eval "$ac_link") 2>&5
3908 ac_status=$?
3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910 test $ac_status = 0; }
3911 if { ac_try='./conftest$ac_cv_exeext'
3912 { { case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3915esac
3916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917$as_echo "$ac_try_echo"; } >&5
3918 (eval "$ac_try") 2>&5
3919 ac_status=$?
3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; }; }; then
3922 cross_compiling=no
3923 else
3924 if test "$cross_compiling" = maybe; then
3925 cross_compiling=yes
3926 else
3927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3929as_fn_error $? "cannot run C compiled programs.
3930If you meant to cross compile, use \`--host'.
3931See \`config.log' for more details" "$LINENO" 5; }
3932 fi
3933 fi
3934fi
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3936$as_echo "$cross_compiling" >&6; }
3937
3938rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3939ac_clean_files=$ac_clean_files_save
48310492
RH
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3941$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3942if ${ac_cv_objext+:} false; then :
48310492
RH
3943 $as_echo_n "(cached) " >&6
3944else
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946/* end confdefs.h. */
3947
3948int
3949main ()
3950{
3951
3952 ;
3953 return 0;
3954}
3955_ACEOF
3956rm -f conftest.o conftest.obj
3957if { { ac_try="$ac_compile"
3958case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961esac
3962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963$as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_compile") 2>&5
3965 ac_status=$?
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }; then :
3968 for ac_file in conftest.o conftest.obj conftest.*; do
3969 test -f "$ac_file" || continue;
3970 case $ac_file in
3971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3972 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3973 break;;
3974 esac
3975done
3976else
3977 $as_echo "$as_me: failed program was:" >&5
3978sed 's/^/| /' conftest.$ac_ext >&5
3979
3980{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3982as_fn_error $? "cannot compute suffix of object files: cannot compile
3983See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
3984fi
3985rm -f conftest.$ac_cv_objext conftest.$ac_ext
3986fi
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3988$as_echo "$ac_cv_objext" >&6; }
3989OBJEXT=$ac_cv_objext
3990ac_objext=$OBJEXT
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3992$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3993if ${ac_cv_c_compiler_gnu+:} false; then :
48310492
RH
3994 $as_echo_n "(cached) " >&6
3995else
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997/* end confdefs.h. */
3998
3999int
4000main ()
4001{
4002#ifndef __GNUC__
4003 choke me
4004#endif
4005
4006 ;
4007 return 0;
4008}
4009_ACEOF
4010if ac_fn_c_try_compile "$LINENO"; then :
4011 ac_compiler_gnu=yes
4012else
4013 ac_compiler_gnu=no
4014fi
4015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016ac_cv_c_compiler_gnu=$ac_compiler_gnu
4017
4018fi
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4020$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4021if test $ac_compiler_gnu = yes; then
4022 GCC=yes
4023else
4024 GCC=
4025fi
4026ac_test_CFLAGS=${CFLAGS+set}
4027ac_save_CFLAGS=$CFLAGS
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4029$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4030if ${ac_cv_prog_cc_g+:} false; then :
48310492
RH
4031 $as_echo_n "(cached) " >&6
4032else
4033 ac_save_c_werror_flag=$ac_c_werror_flag
4034 ac_c_werror_flag=yes
4035 ac_cv_prog_cc_g=no
4036 CFLAGS="-g"
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038/* end confdefs.h. */
4039
4040int
4041main ()
4042{
4043
4044 ;
4045 return 0;
4046}
4047_ACEOF
4048if ac_fn_c_try_compile "$LINENO"; then :
4049 ac_cv_prog_cc_g=yes
4050else
4051 CFLAGS=""
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053/* end confdefs.h. */
4054
4055int
4056main ()
4057{
4058
4059 ;
4060 return 0;
4061}
4062_ACEOF
4063if ac_fn_c_try_compile "$LINENO"; then :
4064
4065else
4066 ac_c_werror_flag=$ac_save_c_werror_flag
4067 CFLAGS="-g"
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069/* end confdefs.h. */
4070
4071int
4072main ()
4073{
4074
4075 ;
4076 return 0;
4077}
4078_ACEOF
4079if ac_fn_c_try_compile "$LINENO"; then :
4080 ac_cv_prog_cc_g=yes
4081fi
4082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083fi
4084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085fi
4086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 ac_c_werror_flag=$ac_save_c_werror_flag
4088fi
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4090$as_echo "$ac_cv_prog_cc_g" >&6; }
4091if test "$ac_test_CFLAGS" = set; then
4092 CFLAGS=$ac_save_CFLAGS
4093elif test $ac_cv_prog_cc_g = yes; then
4094 if test "$GCC" = yes; then
4095 CFLAGS="-g -O2"
4096 else
4097 CFLAGS="-g"
4098 fi
4099else
4100 if test "$GCC" = yes; then
4101 CFLAGS="-O2"
4102 else
4103 CFLAGS=
4104 fi
4105fi
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4107$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4108if ${ac_cv_prog_cc_c89+:} false; then :
48310492
RH
4109 $as_echo_n "(cached) " >&6
4110else
4111 ac_cv_prog_cc_c89=no
4112ac_save_CC=$CC
4113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114/* end confdefs.h. */
4115#include <stdarg.h>
4116#include <stdio.h>
22e05272 4117struct stat;
48310492
RH
4118/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4119struct buf { int x; };
4120FILE * (*rcsopen) (struct buf *, struct stat *, int);
4121static char *e (p, i)
4122 char **p;
4123 int i;
4124{
4125 return p[i];
4126}
4127static char *f (char * (*g) (char **, int), char **p, ...)
4128{
4129 char *s;
4130 va_list v;
4131 va_start (v,p);
4132 s = g (p, va_arg (v,int));
4133 va_end (v);
4134 return s;
4135}
4136
4137/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4138 function prototypes and stuff, but not '\xHH' hex character constants.
4139 These don't provoke an error unfortunately, instead are silently treated
4140 as 'x'. The following induces an error, until -std is added to get
4141 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4142 array size at least. It's necessary to write '\x00'==0 to get something
4143 that's true only with -std. */
4144int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4145
4146/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4147 inside strings and character constants. */
4148#define FOO(x) 'x'
4149int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4150
4151int test (int i, double x);
4152struct s1 {int (*f) (int a);};
4153struct s2 {int (*f) (double a);};
4154int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4155int argc;
4156char **argv;
4157int
4158main ()
4159{
4160return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4161 ;
4162 return 0;
4163}
4164_ACEOF
4165for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4166 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4167do
4168 CC="$ac_save_CC $ac_arg"
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170 ac_cv_prog_cc_c89=$ac_arg
4171fi
4172rm -f core conftest.err conftest.$ac_objext
4173 test "x$ac_cv_prog_cc_c89" != "xno" && break
4174done
4175rm -f conftest.$ac_ext
4176CC=$ac_save_CC
4177
4178fi
4179# AC_CACHE_VAL
4180case "x$ac_cv_prog_cc_c89" in
4181 x)
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4183$as_echo "none needed" >&6; } ;;
4184 xno)
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4186$as_echo "unsupported" >&6; } ;;
4187 *)
4188 CC="$CC $ac_cv_prog_cc_c89"
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4190$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4191esac
4192if test "x$ac_cv_prog_cc_c89" != xno; then :
4193
4194fi
4195
4196ac_ext=c
4197ac_cpp='$CPP $CPPFLAGS'
4198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200ac_compiler_gnu=$ac_cv_c_compiler_gnu
22e05272
JM
4201
4202ac_ext=c
4203ac_cpp='$CPP $CPPFLAGS'
4204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4208$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4209if ${am_cv_prog_cc_c_o+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211else
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213/* end confdefs.h. */
4214
4215int
4216main ()
4217{
4218
4219 ;
4220 return 0;
4221}
4222_ACEOF
4223 # Make sure it works both with $CC and with simple cc.
4224 # Following AC_PROG_CC_C_O, we do the test twice because some
4225 # compilers refuse to overwrite an existing .o file with -o,
4226 # though they will create one.
4227 am_cv_prog_cc_c_o=yes
4228 for am_i in 1 2; do
4229 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4230 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } \
4234 && test -f conftest2.$ac_objext; then
4235 : OK
4236 else
4237 am_cv_prog_cc_c_o=no
4238 break
4239 fi
4240 done
4241 rm -f core conftest*
4242 unset am_i
4243fi
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4245$as_echo "$am_cv_prog_cc_c_o" >&6; }
4246if test "$am_cv_prog_cc_c_o" != yes; then
4247 # Losing compiler, so override with the script.
4248 # FIXME: It is wrong to rewrite CC.
4249 # But if we don't then we get into trouble of one sort or another.
4250 # A longer-term fix would be to have automake use am__CC in this case,
4251 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4252 CC="$am_aux_dir/compile $CC"
4253fi
4254ac_ext=c
4255ac_cpp='$CPP $CPPFLAGS'
4256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259
48310492
RH
4260DEPDIR="${am__leading_dot}deps"
4261
4262ac_config_commands="$ac_config_commands depfiles"
4263
4264
4265am_make=${MAKE-make}
4266cat > confinc << 'END'
4267am__doit:
4268 @echo this is the am__doit target
4269.PHONY: am__doit
4270END
4271# If we don't find an include directive, just comment out the code.
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4273$as_echo_n "checking for style of include used by $am_make... " >&6; }
4274am__include="#"
4275am__quote=
4276_am_result=none
4277# First try GNU make style include.
4278echo "include confinc" > confmf
22e05272 4279# Ignore all kinds of additional output from 'make'.
48310492
RH
4280case `$am_make -s -f confmf 2> /dev/null` in #(
4281*the\ am__doit\ target*)
4282 am__include=include
4283 am__quote=
4284 _am_result=GNU
4285 ;;
4286esac
4287# Now try BSD make style include.
4288if test "$am__include" = "#"; then
4289 echo '.include "confinc"' > confmf
4290 case `$am_make -s -f confmf 2> /dev/null` in #(
4291 *the\ am__doit\ target*)
4292 am__include=.include
4293 am__quote="\""
4294 _am_result=BSD
4295 ;;
4296 esac
4297fi
4298
4299
4300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4301$as_echo "$_am_result" >&6; }
4302rm -f confinc confmf
4303
4304# Check whether --enable-dependency-tracking was given.
4305if test "${enable_dependency_tracking+set}" = set; then :
4306 enableval=$enable_dependency_tracking;
4307fi
4308
4309if test "x$enable_dependency_tracking" != xno; then
4310 am_depcomp="$ac_aux_dir/depcomp"
4311 AMDEPBACKSLASH='\'
dc3368d0 4312 am__nodep='_no'
48310492
RH
4313fi
4314 if test "x$enable_dependency_tracking" != xno; then
4315 AMDEP_TRUE=
4316 AMDEP_FALSE='#'
4317else
4318 AMDEP_TRUE='#'
4319 AMDEP_FALSE=
4320fi
4321
4322
4323
4324depcc="$CC" am_compiler_list=
4325
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4327$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4328if ${am_cv_CC_dependencies_compiler_type+:} false; then :
48310492
RH
4329 $as_echo_n "(cached) " >&6
4330else
4331 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4332 # We make a subdir and do the tests there. Otherwise we can end up
4333 # making bogus files that we don't know about and never remove. For
4334 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4335 # making a dummy file named 'D' -- because '-MD' means "put the output
4336 # in D".
dc3368d0 4337 rm -rf conftest.dir
48310492
RH
4338 mkdir conftest.dir
4339 # Copy depcomp to subdir because otherwise we won't find it if we're
4340 # using a relative directory.
4341 cp "$am_depcomp" conftest.dir
4342 cd conftest.dir
4343 # We will build objects and dependencies in a subdirectory because
4344 # it helps to detect inapplicable dependency modes. For instance
4345 # both Tru64's cc and ICC support -MD to output dependencies as a
4346 # side effect of compilation, but ICC will put the dependencies in
4347 # the current directory while Tru64 will put them in the object
4348 # directory.
4349 mkdir sub
4350
4351 am_cv_CC_dependencies_compiler_type=none
4352 if test "$am_compiler_list" = ""; then
4353 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4354 fi
4355 am__universal=false
4356 case " $depcc " in #(
4357 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4358 esac
4359
4360 for depmode in $am_compiler_list; do
4361 # Setup a source with many dependencies, because some compilers
4362 # like to wrap large dependency lists on column 80 (with \), and
4363 # we should not choose a depcomp mode which is confused by this.
4364 #
4365 # We need to recreate these files for each test, as the compiler may
4366 # overwrite some of them when testing with obscure command lines.
4367 # This happens at least with the AIX C compiler.
4368 : > sub/conftest.c
4369 for i in 1 2 3 4 5 6; do
4370 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4371 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4372 # Solaris 10 /bin/sh.
4373 echo '/* dummy */' > sub/conftst$i.h
48310492
RH
4374 done
4375 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4376
22e05272 4377 # We check with '-c' and '-o' for the sake of the "dashmstdout"
48310492 4378 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4379 # handle '-M -o', and we need to detect this. Also, some Intel
4380 # versions had trouble with output in subdirs.
48310492
RH
4381 am__obj=sub/conftest.${OBJEXT-o}
4382 am__minus_obj="-o $am__obj"
4383 case $depmode in
4384 gcc)
4385 # This depmode causes a compiler race in universal mode.
4386 test "$am__universal" = false || continue
4387 ;;
4388 nosideeffect)
22e05272
JM
4389 # After this tag, mechanisms are not by side-effect, so they'll
4390 # only be used when explicitly requested.
48310492
RH
4391 if test "x$enable_dependency_tracking" = xyes; then
4392 continue
4393 else
4394 break
4395 fi
4396 ;;
dc3368d0 4397 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4398 # This compiler won't grok '-c -o', but also, the minuso test has
48310492
RH
4399 # not run yet. These depmodes are late enough in the game, and
4400 # so weak that their functioning should not be impacted.
4401 am__obj=conftest.${OBJEXT-o}
4402 am__minus_obj=
4403 ;;
4404 none) break ;;
4405 esac
4406 if depmode=$depmode \
4407 source=sub/conftest.c object=$am__obj \
4408 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4409 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4410 >/dev/null 2>conftest.err &&
4411 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4412 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4413 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4414 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4415 # icc doesn't choke on unknown options, it will just issue warnings
4416 # or remarks (even with -Werror). So we grep stderr for any message
4417 # that says an option was ignored or not supported.
4418 # When given -MP, icc 7.0 and 7.1 complain thusly:
4419 # icc: Command line warning: ignoring option '-M'; no argument required
4420 # The diagnosis changed in icc 8.0:
4421 # icc: Command line remark: option '-MP' not supported
4422 if (grep 'ignoring option' conftest.err ||
4423 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4424 am_cv_CC_dependencies_compiler_type=$depmode
4425 break
4426 fi
4427 fi
4428 done
4429
4430 cd ..
4431 rm -rf conftest.dir
4432else
4433 am_cv_CC_dependencies_compiler_type=none
4434fi
4435
4436fi
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4438$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4439CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4440
4441 if
4442 test "x$enable_dependency_tracking" != xno \
4443 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4444 am__fastdepCC_TRUE=
4445 am__fastdepCC_FALSE='#'
4446else
4447 am__fastdepCC_TRUE='#'
4448 am__fastdepCC_FALSE=
4449fi
4450
4451
4452# By default we simply use the C compiler to build assembly code.
4453
4454test "${CCAS+set}" = set || CCAS=$CC
4455test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4456
4457
4458
4459depcc="$CCAS" am_compiler_list=
4460
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4462$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4463if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
48310492
RH
4464 $as_echo_n "(cached) " >&6
4465else
4466 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4467 # We make a subdir and do the tests there. Otherwise we can end up
4468 # making bogus files that we don't know about and never remove. For
4469 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4470 # making a dummy file named 'D' -- because '-MD' means "put the output
4471 # in D".
dc3368d0 4472 rm -rf conftest.dir
48310492
RH
4473 mkdir conftest.dir
4474 # Copy depcomp to subdir because otherwise we won't find it if we're
4475 # using a relative directory.
4476 cp "$am_depcomp" conftest.dir
4477 cd conftest.dir
4478 # We will build objects and dependencies in a subdirectory because
4479 # it helps to detect inapplicable dependency modes. For instance
4480 # both Tru64's cc and ICC support -MD to output dependencies as a
4481 # side effect of compilation, but ICC will put the dependencies in
4482 # the current directory while Tru64 will put them in the object
4483 # directory.
4484 mkdir sub
4485
4486 am_cv_CCAS_dependencies_compiler_type=none
4487 if test "$am_compiler_list" = ""; then
4488 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4489 fi
4490 am__universal=false
4491
4492
4493 for depmode in $am_compiler_list; do
4494 # Setup a source with many dependencies, because some compilers
4495 # like to wrap large dependency lists on column 80 (with \), and
4496 # we should not choose a depcomp mode which is confused by this.
4497 #
4498 # We need to recreate these files for each test, as the compiler may
4499 # overwrite some of them when testing with obscure command lines.
4500 # This happens at least with the AIX C compiler.
4501 : > sub/conftest.c
4502 for i in 1 2 3 4 5 6; do
4503 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4504 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4505 # Solaris 10 /bin/sh.
4506 echo '/* dummy */' > sub/conftst$i.h
48310492
RH
4507 done
4508 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4509
22e05272 4510 # We check with '-c' and '-o' for the sake of the "dashmstdout"
48310492 4511 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4512 # handle '-M -o', and we need to detect this. Also, some Intel
4513 # versions had trouble with output in subdirs.
48310492
RH
4514 am__obj=sub/conftest.${OBJEXT-o}
4515 am__minus_obj="-o $am__obj"
4516 case $depmode in
4517 gcc)
4518 # This depmode causes a compiler race in universal mode.
4519 test "$am__universal" = false || continue
4520 ;;
4521 nosideeffect)
22e05272
JM
4522 # After this tag, mechanisms are not by side-effect, so they'll
4523 # only be used when explicitly requested.
48310492
RH
4524 if test "x$enable_dependency_tracking" = xyes; then
4525 continue
4526 else
4527 break
4528 fi
4529 ;;
dc3368d0 4530 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4531 # This compiler won't grok '-c -o', but also, the minuso test has
48310492
RH
4532 # not run yet. These depmodes are late enough in the game, and
4533 # so weak that their functioning should not be impacted.
4534 am__obj=conftest.${OBJEXT-o}
4535 am__minus_obj=
4536 ;;
4537 none) break ;;
4538 esac
4539 if depmode=$depmode \
4540 source=sub/conftest.c object=$am__obj \
4541 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4542 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4543 >/dev/null 2>conftest.err &&
4544 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4545 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4546 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4547 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4548 # icc doesn't choke on unknown options, it will just issue warnings
4549 # or remarks (even with -Werror). So we grep stderr for any message
4550 # that says an option was ignored or not supported.
4551 # When given -MP, icc 7.0 and 7.1 complain thusly:
4552 # icc: Command line warning: ignoring option '-M'; no argument required
4553 # The diagnosis changed in icc 8.0:
4554 # icc: Command line remark: option '-MP' not supported
4555 if (grep 'ignoring option' conftest.err ||
4556 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4557 am_cv_CCAS_dependencies_compiler_type=$depmode
4558 break
4559 fi
4560 fi
4561 done
4562
4563 cd ..
4564 rm -rf conftest.dir
4565else
4566 am_cv_CCAS_dependencies_compiler_type=none
4567fi
4568
4569fi
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4571$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4572CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4573
4574 if
4575 test "x$enable_dependency_tracking" != xno \
4576 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4577 am__fastdepCCAS_TRUE=
4578 am__fastdepCCAS_FALSE='#'
4579else
4580 am__fastdepCCAS_TRUE='#'
4581 am__fastdepCCAS_FALSE=
4582fi
4583
4584
4585
4586
4587
4588
4589# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4590# in XCFLAGS. But we need them in CFLAGS during configury. So put them
4591# in both places for now and restore CFLAGS at the end of config.
4592save_CFLAGS="$CFLAGS"
4593
4594# Find other programs we need.
4595if test -n "$ac_tool_prefix"; then
4596 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4597set dummy ${ac_tool_prefix}ar; ac_word=$2
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4600if ${ac_cv_prog_AR+:} false; then :
48310492
RH
4601 $as_echo_n "(cached) " >&6
4602else
4603 if test -n "$AR"; then
4604 ac_cv_prog_AR="$AR" # Let the user override the test.
4605else
4606as_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
22e05272 4612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4613 ac_cv_prog_AR="${ac_tool_prefix}ar"
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
4621fi
4622fi
4623AR=$ac_cv_prog_AR
4624if test -n "$AR"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4626$as_echo "$AR" >&6; }
4627else
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629$as_echo "no" >&6; }
4630fi
4631
4632
4633fi
4634if test -z "$ac_cv_prog_AR"; then
4635 ac_ct_AR=$AR
4636 # Extract the first word of "ar", so it can be a program name with args.
4637set dummy ar; ac_word=$2
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4640if ${ac_cv_prog_ac_ct_AR+:} false; then :
48310492
RH
4641 $as_echo_n "(cached) " >&6
4642else
4643 if test -n "$ac_ct_AR"; then
4644 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4645else
4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4653 ac_cv_prog_ac_ct_AR="ar"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4656 fi
4657done
4658 done
4659IFS=$as_save_IFS
4660
4661fi
4662fi
4663ac_ct_AR=$ac_cv_prog_ac_ct_AR
4664if test -n "$ac_ct_AR"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4666$as_echo "$ac_ct_AR" >&6; }
4667else
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669$as_echo "no" >&6; }
4670fi
4671
4672 if test "x$ac_ct_AR" = x; then
4673 AR=""
4674 else
4675 case $cross_compiling:$ac_tool_warned in
4676yes:)
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4679ac_tool_warned=yes ;;
4680esac
4681 AR=$ac_ct_AR
4682 fi
4683else
4684 AR="$ac_cv_prog_AR"
4685fi
4686
4687if test -n "$ac_tool_prefix"; then
4688 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4689set dummy ${ac_tool_prefix}nm; ac_word=$2
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4692if ${ac_cv_prog_NM+:} false; then :
48310492
RH
4693 $as_echo_n "(cached) " >&6
4694else
4695 if test -n "$NM"; then
4696 ac_cv_prog_NM="$NM" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4705 ac_cv_prog_NM="${ac_tool_prefix}nm"
4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709done
4710 done
4711IFS=$as_save_IFS
4712
4713fi
4714fi
4715NM=$ac_cv_prog_NM
4716if test -n "$NM"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4718$as_echo "$NM" >&6; }
4719else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721$as_echo "no" >&6; }
4722fi
4723
4724
4725fi
4726if test -z "$ac_cv_prog_NM"; then
4727 ac_ct_NM=$NM
4728 # Extract the first word of "nm", so it can be a program name with args.
4729set dummy nm; ac_word=$2
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4731$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4732if ${ac_cv_prog_ac_ct_NM+:} false; then :
48310492
RH
4733 $as_echo_n "(cached) " >&6
4734else
4735 if test -n "$ac_ct_NM"; then
4736 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4737else
4738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739for as_dir in $PATH
4740do
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4745 ac_cv_prog_ac_ct_NM="nm"
4746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 break 2
4748 fi
4749done
4750 done
4751IFS=$as_save_IFS
4752
4753fi
4754fi
4755ac_ct_NM=$ac_cv_prog_ac_ct_NM
4756if test -n "$ac_ct_NM"; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4758$as_echo "$ac_ct_NM" >&6; }
4759else
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761$as_echo "no" >&6; }
4762fi
4763
4764 if test "x$ac_ct_NM" = x; then
4765 NM=""
4766 else
4767 case $cross_compiling:$ac_tool_warned in
4768yes:)
4769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4771ac_tool_warned=yes ;;
4772esac
4773 NM=$ac_ct_NM
4774 fi
4775else
4776 NM="$ac_cv_prog_NM"
4777fi
4778
4779if test -n "$ac_tool_prefix"; then
4780 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4781set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4784if ${ac_cv_prog_RANLIB+:} false; then :
48310492
RH
4785 $as_echo_n "(cached) " >&6
4786else
4787 if test -n "$RANLIB"; then
4788 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4789else
4790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH
4792do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4797 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4800 fi
4801done
4802 done
4803IFS=$as_save_IFS
4804
4805fi
4806fi
4807RANLIB=$ac_cv_prog_RANLIB
4808if test -n "$RANLIB"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4810$as_echo "$RANLIB" >&6; }
4811else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813$as_echo "no" >&6; }
4814fi
4815
4816
4817fi
4818if test -z "$ac_cv_prog_RANLIB"; then
4819 ac_ct_RANLIB=$RANLIB
4820 # Extract the first word of "ranlib", so it can be a program name with args.
4821set dummy ranlib; ac_word=$2
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4824if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
48310492
RH
4825 $as_echo_n "(cached) " >&6
4826else
4827 if test -n "$ac_ct_RANLIB"; then
4828 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4829else
4830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831for as_dir in $PATH
4832do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4837 ac_cv_prog_ac_ct_RANLIB="ranlib"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4840 fi
4841done
4842 done
4843IFS=$as_save_IFS
4844
4845fi
4846fi
4847ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4848if test -n "$ac_ct_RANLIB"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4850$as_echo "$ac_ct_RANLIB" >&6; }
4851else
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853$as_echo "no" >&6; }
4854fi
4855
4856 if test "x$ac_ct_RANLIB" = x; then
4857 RANLIB="ranlib-not-found-in-path-error"
4858 else
4859 case $cross_compiling:$ac_tool_warned in
4860yes:)
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4863ac_tool_warned=yes ;;
4864esac
4865 RANLIB=$ac_ct_RANLIB
4866 fi
4867else
4868 RANLIB="$ac_cv_prog_RANLIB"
4869fi
4870
48310492
RH
4871
4872
4873# Configure libtool
4874case `pwd` in
4875 *\ * | *\ *)
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4877$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4878esac
4879
4880
4881
4882macro_version='2.2.7a'
4883macro_revision='1.3134'
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897ltmain="$ac_aux_dir/ltmain.sh"
4898
4899# Backslashify metacharacters that are still active within
4900# double-quoted strings.
4901sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4902
4903# Same as above, but do not quote variable references.
4904double_quote_subst='s/\(["`\\]\)/\\\1/g'
4905
4906# Sed substitution to delay expansion of an escaped shell variable in a
4907# double_quote_subst'ed string.
4908delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4909
4910# Sed substitution to delay expansion of an escaped single quote.
4911delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4912
4913# Sed substitution to avoid accidental globbing in evaled expressions
4914no_glob_subst='s/\*/\\\*/g'
4915
4916ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4917ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4918ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4919
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4921$as_echo_n "checking how to print strings... " >&6; }
4922# Test print first, because it will be a builtin if present.
4923if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4924 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4925 ECHO='print -r --'
4926elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4927 ECHO='printf %s\n'
4928else
4929 # Use this function as a fallback that always works.
4930 func_fallback_echo ()
4931 {
4932 eval 'cat <<_LTECHO_EOF
4933$1
4934_LTECHO_EOF'
4935 }
4936 ECHO='func_fallback_echo'
4937fi
4938
4939# func_echo_all arg...
4940# Invoke $ECHO with all args, space-separated.
4941func_echo_all ()
4942{
4943 $ECHO ""
4944}
4945
4946case "$ECHO" in
4947 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4948$as_echo "printf" >&6; } ;;
4949 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4950$as_echo "print -r" >&6; } ;;
4951 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4952$as_echo "cat" >&6; } ;;
4953esac
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4969$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 4970if ${ac_cv_path_SED+:} false; then :
48310492
RH
4971 $as_echo_n "(cached) " >&6
4972else
4973 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4974 for ac_i in 1 2 3 4 5 6 7; do
4975 ac_script="$ac_script$as_nl$ac_script"
4976 done
4977 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4978 { ac_script=; unset ac_script;}
4979 if test -z "$SED"; then
4980 ac_path_SED_found=false
4981 # Loop through the user's path and test for each of PROGNAME-LIST
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983for as_dir in $PATH
4984do
4985 IFS=$as_save_IFS
4986 test -z "$as_dir" && as_dir=.
4987 for ac_prog in sed gsed; do
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4990 as_fn_executable_p "$ac_path_SED" || continue
48310492
RH
4991# Check for GNU ac_path_SED and select it if it is found.
4992 # Check for GNU $ac_path_SED
4993case `"$ac_path_SED" --version 2>&1` in
4994*GNU*)
4995 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4996*)
4997 ac_count=0
4998 $as_echo_n 0123456789 >"conftest.in"
4999 while :
5000 do
5001 cat "conftest.in" "conftest.in" >"conftest.tmp"
5002 mv "conftest.tmp" "conftest.in"
5003 cp "conftest.in" "conftest.nl"
5004 $as_echo '' >> "conftest.nl"
5005 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5007 as_fn_arith $ac_count + 1 && ac_count=$as_val
5008 if test $ac_count -gt ${ac_path_SED_max-0}; then
5009 # Best one so far, save it but keep looking for a better one
5010 ac_cv_path_SED="$ac_path_SED"
5011 ac_path_SED_max=$ac_count
5012 fi
5013 # 10*(2^10) chars as input seems more than enough
5014 test $ac_count -gt 10 && break
5015 done
5016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5017esac
5018
5019 $ac_path_SED_found && break 3
5020 done
5021 done
5022 done
5023IFS=$as_save_IFS
5024 if test -z "$ac_cv_path_SED"; then
22e05272 5025 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
48310492
RH
5026 fi
5027else
5028 ac_cv_path_SED=$SED
5029fi
5030
5031fi
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5033$as_echo "$ac_cv_path_SED" >&6; }
5034 SED="$ac_cv_path_SED"
5035 rm -f conftest.sed
5036
5037test -z "$SED" && SED=sed
5038Xsed="$SED -e 1s/^X//"
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5051$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 5052if ${ac_cv_path_GREP+:} false; then :
48310492
RH
5053 $as_echo_n "(cached) " >&6
5054else
5055 if test -z "$GREP"; then
5056 ac_path_GREP_found=false
5057 # Loop through the user's path and test for each of PROGNAME-LIST
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5060do
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5063 for ac_prog in grep ggrep; do
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5066 as_fn_executable_p "$ac_path_GREP" || continue
48310492
RH
5067# Check for GNU ac_path_GREP and select it if it is found.
5068 # Check for GNU $ac_path_GREP
5069case `"$ac_path_GREP" --version 2>&1` in
5070*GNU*)
5071 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5072*)
5073 ac_count=0
5074 $as_echo_n 0123456789 >"conftest.in"
5075 while :
5076 do
5077 cat "conftest.in" "conftest.in" >"conftest.tmp"
5078 mv "conftest.tmp" "conftest.in"
5079 cp "conftest.in" "conftest.nl"
5080 $as_echo 'GREP' >> "conftest.nl"
5081 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5082 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5083 as_fn_arith $ac_count + 1 && ac_count=$as_val
5084 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5085 # Best one so far, save it but keep looking for a better one
5086 ac_cv_path_GREP="$ac_path_GREP"
5087 ac_path_GREP_max=$ac_count
5088 fi
5089 # 10*(2^10) chars as input seems more than enough
5090 test $ac_count -gt 10 && break
5091 done
5092 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5093esac
5094
5095 $ac_path_GREP_found && break 3
5096 done
5097 done
5098 done
5099IFS=$as_save_IFS
5100 if test -z "$ac_cv_path_GREP"; then
22e05272 5101 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
48310492
RH
5102 fi
5103else
5104 ac_cv_path_GREP=$GREP
5105fi
5106
5107fi
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5109$as_echo "$ac_cv_path_GREP" >&6; }
5110 GREP="$ac_cv_path_GREP"
5111
5112
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5114$as_echo_n "checking for egrep... " >&6; }
22e05272 5115if ${ac_cv_path_EGREP+:} false; then :
48310492
RH
5116 $as_echo_n "(cached) " >&6
5117else
5118 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5119 then ac_cv_path_EGREP="$GREP -E"
5120 else
5121 if test -z "$EGREP"; then
5122 ac_path_EGREP_found=false
5123 # Loop through the user's path and test for each of PROGNAME-LIST
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5126do
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_prog in egrep; do
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5132 as_fn_executable_p "$ac_path_EGREP" || continue
48310492
RH
5133# Check for GNU ac_path_EGREP and select it if it is found.
5134 # Check for GNU $ac_path_EGREP
5135case `"$ac_path_EGREP" --version 2>&1` in
5136*GNU*)
5137 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5138*)
5139 ac_count=0
5140 $as_echo_n 0123456789 >"conftest.in"
5141 while :
5142 do
5143 cat "conftest.in" "conftest.in" >"conftest.tmp"
5144 mv "conftest.tmp" "conftest.in"
5145 cp "conftest.in" "conftest.nl"
5146 $as_echo 'EGREP' >> "conftest.nl"
5147 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5149 as_fn_arith $ac_count + 1 && ac_count=$as_val
5150 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5151 # Best one so far, save it but keep looking for a better one
5152 ac_cv_path_EGREP="$ac_path_EGREP"
5153 ac_path_EGREP_max=$ac_count
5154 fi
5155 # 10*(2^10) chars as input seems more than enough
5156 test $ac_count -gt 10 && break
5157 done
5158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5159esac
5160
5161 $ac_path_EGREP_found && break 3
5162 done
5163 done
5164 done
5165IFS=$as_save_IFS
5166 if test -z "$ac_cv_path_EGREP"; then
22e05272 5167 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
48310492
RH
5168 fi
5169else
5170 ac_cv_path_EGREP=$EGREP
5171fi
5172
5173 fi
5174fi
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5176$as_echo "$ac_cv_path_EGREP" >&6; }
5177 EGREP="$ac_cv_path_EGREP"
5178
5179
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5181$as_echo_n "checking for fgrep... " >&6; }
22e05272 5182if ${ac_cv_path_FGREP+:} false; then :
48310492
RH
5183 $as_echo_n "(cached) " >&6
5184else
5185 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5186 then ac_cv_path_FGREP="$GREP -F"
5187 else
5188 if test -z "$FGREP"; then
5189 ac_path_FGREP_found=false
5190 # Loop through the user's path and test for each of PROGNAME-LIST
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5193do
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_prog in fgrep; do
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5199 as_fn_executable_p "$ac_path_FGREP" || continue
48310492
RH
5200# Check for GNU ac_path_FGREP and select it if it is found.
5201 # Check for GNU $ac_path_FGREP
5202case `"$ac_path_FGREP" --version 2>&1` in
5203*GNU*)
5204 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5205*)
5206 ac_count=0
5207 $as_echo_n 0123456789 >"conftest.in"
5208 while :
5209 do
5210 cat "conftest.in" "conftest.in" >"conftest.tmp"
5211 mv "conftest.tmp" "conftest.in"
5212 cp "conftest.in" "conftest.nl"
5213 $as_echo 'FGREP' >> "conftest.nl"
5214 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5215 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5216 as_fn_arith $ac_count + 1 && ac_count=$as_val
5217 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5218 # Best one so far, save it but keep looking for a better one
5219 ac_cv_path_FGREP="$ac_path_FGREP"
5220 ac_path_FGREP_max=$ac_count
5221 fi
5222 # 10*(2^10) chars as input seems more than enough
5223 test $ac_count -gt 10 && break
5224 done
5225 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5226esac
5227
5228 $ac_path_FGREP_found && break 3
5229 done
5230 done
5231 done
5232IFS=$as_save_IFS
5233 if test -z "$ac_cv_path_FGREP"; then
22e05272 5234 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
48310492
RH
5235 fi
5236else
5237 ac_cv_path_FGREP=$FGREP
5238fi
5239
5240 fi
5241fi
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5243$as_echo "$ac_cv_path_FGREP" >&6; }
5244 FGREP="$ac_cv_path_FGREP"
5245
5246
5247test -z "$GREP" && GREP=grep
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267# Check whether --with-gnu-ld was given.
5268if test "${with_gnu_ld+set}" = set; then :
5269 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5270else
5271 with_gnu_ld=no
5272fi
5273
5274ac_prog=ld
5275if test "$GCC" = yes; then
5276 # Check if gcc -print-prog-name=ld gives a path.
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5278$as_echo_n "checking for ld used by $CC... " >&6; }
5279 case $host in
5280 *-*-mingw*)
5281 # gcc leaves a trailing carriage return which upsets mingw
5282 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5283 *)
5284 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5285 esac
5286 case $ac_prog in
5287 # Accept absolute paths.
5288 [\\/]* | ?:[\\/]*)
5289 re_direlt='/[^/][^/]*/\.\./'
5290 # Canonicalize the pathname of ld
5291 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5292 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5293 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5294 done
5295 test -z "$LD" && LD="$ac_prog"
5296 ;;
5297 "")
5298 # If it fails, then pretend we aren't using GCC.
5299 ac_prog=ld
5300 ;;
5301 *)
5302 # If it is relative, then search for the first ld in PATH.
5303 with_gnu_ld=unknown
5304 ;;
5305 esac
5306elif test "$with_gnu_ld" = yes; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5308$as_echo_n "checking for GNU ld... " >&6; }
5309else
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5311$as_echo_n "checking for non-GNU ld... " >&6; }
5312fi
22e05272 5313if ${lt_cv_path_LD+:} false; then :
48310492
RH
5314 $as_echo_n "(cached) " >&6
5315else
5316 if test -z "$LD"; then
5317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5318 for ac_dir in $PATH; do
5319 IFS="$lt_save_ifs"
5320 test -z "$ac_dir" && ac_dir=.
5321 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5322 lt_cv_path_LD="$ac_dir/$ac_prog"
5323 # Check to see if the program is GNU ld. I'd rather use --version,
5324 # but apparently some variants of GNU ld only accept -v.
5325 # Break only if it was the GNU/non-GNU ld that we prefer.
5326 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5327 *GNU* | *'with BFD'*)
5328 test "$with_gnu_ld" != no && break
5329 ;;
5330 *)
5331 test "$with_gnu_ld" != yes && break
5332 ;;
5333 esac
5334 fi
5335 done
5336 IFS="$lt_save_ifs"
5337else
5338 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5339fi
5340fi
5341
5342LD="$lt_cv_path_LD"
5343if test -n "$LD"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5345$as_echo "$LD" >&6; }
5346else
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348$as_echo "no" >&6; }
5349fi
22e05272 5350test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
48310492
RH
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5352$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 5353if ${lt_cv_prog_gnu_ld+:} false; then :
48310492
RH
5354 $as_echo_n "(cached) " >&6
5355else
5356 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5357case `$LD -v 2>&1 </dev/null` in
5358*GNU* | *'with BFD'*)
5359 lt_cv_prog_gnu_ld=yes
5360 ;;
5361*)
5362 lt_cv_prog_gnu_ld=no
5363 ;;
5364esac
5365fi
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5367$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5368with_gnu_ld=$lt_cv_prog_gnu_ld
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5379$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 5380if ${lt_cv_path_NM+:} false; then :
48310492
RH
5381 $as_echo_n "(cached) " >&6
5382else
5383 if test -n "$NM"; then
5384 # Let the user override the test.
5385 lt_cv_path_NM="$NM"
5386else
5387 lt_nm_to_check="${ac_tool_prefix}nm"
5388 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5389 lt_nm_to_check="$lt_nm_to_check nm"
5390 fi
5391 for lt_tmp_nm in $lt_nm_to_check; do
5392 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5393 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5394 IFS="$lt_save_ifs"
5395 test -z "$ac_dir" && ac_dir=.
5396 tmp_nm="$ac_dir/$lt_tmp_nm"
5397 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5398 # Check to see if the nm accepts a BSD-compat flag.
5399 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5400 # nm: unknown option "B" ignored
5401 # Tru64's nm complains that /dev/null is an invalid object file
5402 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5403 */dev/null* | *'Invalid file or object type'*)
5404 lt_cv_path_NM="$tmp_nm -B"
5405 break
5406 ;;
5407 *)
5408 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5409 */dev/null*)
5410 lt_cv_path_NM="$tmp_nm -p"
5411 break
5412 ;;
5413 *)
5414 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5415 continue # so that we can try to find one that supports BSD flags
5416 ;;
5417 esac
5418 ;;
5419 esac
5420 fi
5421 done
5422 IFS="$lt_save_ifs"
5423 done
5424 : ${lt_cv_path_NM=no}
5425fi
5426fi
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5428$as_echo "$lt_cv_path_NM" >&6; }
5429if test "$lt_cv_path_NM" != "no"; then
5430 NM="$lt_cv_path_NM"
5431else
5432 # Didn't find any BSD compatible name lister, look for dumpbin.
5433 if test -n "$DUMPBIN"; then :
5434 # Let the user override the test.
5435 else
5436 if test -n "$ac_tool_prefix"; then
5437 for ac_prog in dumpbin "link -dump"
5438 do
5439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5440set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5443if ${ac_cv_prog_DUMPBIN+:} false; then :
48310492
RH
5444 $as_echo_n "(cached) " >&6
5445else
5446 if test -n "$DUMPBIN"; then
5447 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5448else
5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450for as_dir in $PATH
5451do
5452 IFS=$as_save_IFS
5453 test -z "$as_dir" && as_dir=.
5454 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
5456 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 break 2
5459 fi
5460done
5461 done
5462IFS=$as_save_IFS
5463
5464fi
5465fi
5466DUMPBIN=$ac_cv_prog_DUMPBIN
5467if test -n "$DUMPBIN"; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5469$as_echo "$DUMPBIN" >&6; }
5470else
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472$as_echo "no" >&6; }
5473fi
5474
5475
5476 test -n "$DUMPBIN" && break
5477 done
5478fi
5479if test -z "$DUMPBIN"; then
5480 ac_ct_DUMPBIN=$DUMPBIN
5481 for ac_prog in dumpbin "link -dump"
5482do
5483 # Extract the first word of "$ac_prog", so it can be a program name with args.
5484set dummy $ac_prog; ac_word=$2
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5487if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
48310492
RH
5488 $as_echo_n "(cached) " >&6
5489else
5490 if test -n "$ac_ct_DUMPBIN"; then
5491 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5492else
5493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
5500 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 break 2
5503 fi
5504done
5505 done
5506IFS=$as_save_IFS
5507
5508fi
5509fi
5510ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5511if test -n "$ac_ct_DUMPBIN"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5513$as_echo "$ac_ct_DUMPBIN" >&6; }
5514else
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516$as_echo "no" >&6; }
5517fi
5518
5519
5520 test -n "$ac_ct_DUMPBIN" && break
5521done
5522
5523 if test "x$ac_ct_DUMPBIN" = x; then
5524 DUMPBIN=":"
5525 else
5526 case $cross_compiling:$ac_tool_warned in
5527yes:)
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530ac_tool_warned=yes ;;
5531esac
5532 DUMPBIN=$ac_ct_DUMPBIN
5533 fi
5534fi
5535
5536 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5537 *COFF*)
5538 DUMPBIN="$DUMPBIN -symbols"
5539 ;;
5540 *)
5541 DUMPBIN=:
5542 ;;
5543 esac
5544 fi
5545
5546 if test "$DUMPBIN" != ":"; then
5547 NM="$DUMPBIN"
5548 fi
5549fi
5550test -z "$NM" && NM=nm
5551
5552
5553
5554
5555
5556
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5558$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 5559if ${lt_cv_nm_interface+:} false; then :
48310492
RH
5560 $as_echo_n "(cached) " >&6
5561else
5562 lt_cv_nm_interface="BSD nm"
5563 echo "int some_variable = 0;" > conftest.$ac_ext
5564 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5565 (eval "$ac_compile" 2>conftest.err)
5566 cat conftest.err >&5
5567 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5568 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5569 cat conftest.err >&5
5570 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5571 cat conftest.out >&5
5572 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5573 lt_cv_nm_interface="MS dumpbin"
5574 fi
5575 rm -f conftest*
5576fi
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5578$as_echo "$lt_cv_nm_interface" >&6; }
5579
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5581$as_echo_n "checking whether ln -s works... " >&6; }
5582LN_S=$as_ln_s
5583if test "$LN_S" = "ln -s"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5585$as_echo "yes" >&6; }
5586else
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5588$as_echo "no, using $LN_S" >&6; }
5589fi
5590
5591# find the maximum length of command line arguments
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5593$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 5594if ${lt_cv_sys_max_cmd_len+:} false; then :
48310492
RH
5595 $as_echo_n "(cached) " >&6
5596else
5597 i=0
5598 teststring="ABCD"
5599
5600 case $build_os in
5601 msdosdjgpp*)
5602 # On DJGPP, this test can blow up pretty badly due to problems in libc
5603 # (any single argument exceeding 2000 bytes causes a buffer overrun
5604 # during glob expansion). Even if it were fixed, the result of this
5605 # check would be larger than it should be.
5606 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5607 ;;
5608
5609 gnu*)
5610 # Under GNU Hurd, this test is not required because there is
5611 # no limit to the length of command line arguments.
5612 # Libtool will interpret -1 as no limit whatsoever
5613 lt_cv_sys_max_cmd_len=-1;
5614 ;;
5615
5616 cygwin* | mingw* | cegcc*)
5617 # On Win9x/ME, this test blows up -- it succeeds, but takes
5618 # about 5 minutes as the teststring grows exponentially.
5619 # Worse, since 9x/ME are not pre-emptively multitasking,
5620 # you end up with a "frozen" computer, even though with patience
5621 # the test eventually succeeds (with a max line length of 256k).
5622 # Instead, let's just punt: use the minimum linelength reported by
5623 # all of the supported platforms: 8192 (on NT/2K/XP).
5624 lt_cv_sys_max_cmd_len=8192;
5625 ;;
5626
5627 mint*)
5628 # On MiNT this can take a long time and run out of memory.
5629 lt_cv_sys_max_cmd_len=8192;
5630 ;;
5631
5632 amigaos*)
5633 # On AmigaOS with pdksh, this test takes hours, literally.
5634 # So we just punt and use a minimum line length of 8192.
5635 lt_cv_sys_max_cmd_len=8192;
5636 ;;
5637
5638 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5639 # This has been around since 386BSD, at least. Likely further.
5640 if test -x /sbin/sysctl; then
5641 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5642 elif test -x /usr/sbin/sysctl; then
5643 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5644 else
5645 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5646 fi
5647 # And add a safety zone
5648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5649 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5650 ;;
5651
5652 interix*)
5653 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5654 lt_cv_sys_max_cmd_len=196608
5655 ;;
5656
5657 osf*)
5658 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5659 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5660 # nice to cause kernel panics so lets avoid the loop below.
5661 # First set a reasonable default.
5662 lt_cv_sys_max_cmd_len=16384
5663 #
5664 if test -x /sbin/sysconfig; then
5665 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5666 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5667 esac
5668 fi
5669 ;;
5670 sco3.2v5*)
5671 lt_cv_sys_max_cmd_len=102400
5672 ;;
5673 sysv5* | sco5v6* | sysv4.2uw2*)
5674 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5675 if test -n "$kargmax"; then
5676 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5677 else
5678 lt_cv_sys_max_cmd_len=32768
5679 fi
5680 ;;
5681 *)
5682 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5683 if test -n "$lt_cv_sys_max_cmd_len"; then
5684 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5686 else
5687 # Make teststring a little bigger before we do anything with it.
5688 # a 1K string should be a reasonable start.
5689 for i in 1 2 3 4 5 6 7 8 ; do
5690 teststring=$teststring$teststring
5691 done
5692 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5693 # If test is not a shell built-in, we'll probably end up computing a
5694 # maximum length that is only half of the actual maximum length, but
5695 # we can't tell.
5696 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5697 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5698 test $i != 17 # 1/2 MB should be enough
5699 do
5700 i=`expr $i + 1`
5701 teststring=$teststring$teststring
5702 done
5703 # Only check the string length outside the loop.
5704 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5705 teststring=
5706 # Add a significant safety factor because C++ compilers can tack on
5707 # massive amounts of additional arguments before passing them to the
5708 # linker. It appears as though 1/2 is a usable value.
5709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5710 fi
5711 ;;
5712 esac
5713
5714fi
5715
5716if test -n $lt_cv_sys_max_cmd_len ; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5718$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5719else
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5721$as_echo "none" >&6; }
5722fi
5723max_cmd_len=$lt_cv_sys_max_cmd_len
5724
5725
5726
5727
5728
5729
5730: ${CP="cp -f"}
5731: ${MV="mv -f"}
5732: ${RM="rm -f"}
5733
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5735$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5736# Try some XSI features
5737xsi_shell=no
5738( _lt_dummy="a/b/c"
5739 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5740 = c,a/b,, \
5741 && eval 'test $(( 1 + 1 )) -eq 2 \
5742 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5743 && xsi_shell=yes
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5745$as_echo "$xsi_shell" >&6; }
5746
5747
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5749$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5750lt_shell_append=no
5751( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5752 >/dev/null 2>&1 \
5753 && lt_shell_append=yes
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5755$as_echo "$lt_shell_append" >&6; }
5756
5757
5758if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5759 lt_unset=unset
5760else
5761 lt_unset=false
5762fi
5763
5764
5765
5766
5767
5768# test EBCDIC or ASCII
5769case `echo X|tr X '\101'` in
5770 A) # ASCII based system
5771 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5772 lt_SP2NL='tr \040 \012'
5773 lt_NL2SP='tr \015\012 \040\040'
5774 ;;
5775 *) # EBCDIC based system
5776 lt_SP2NL='tr \100 \n'
5777 lt_NL2SP='tr \r\n \100\100'
5778 ;;
5779esac
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5790$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 5791if ${lt_cv_ld_reload_flag+:} false; then :
48310492
RH
5792 $as_echo_n "(cached) " >&6
5793else
5794 lt_cv_ld_reload_flag='-r'
5795fi
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5797$as_echo "$lt_cv_ld_reload_flag" >&6; }
5798reload_flag=$lt_cv_ld_reload_flag
5799case $reload_flag in
5800"" | " "*) ;;
5801*) reload_flag=" $reload_flag" ;;
5802esac
5803reload_cmds='$LD$reload_flag -o $output$reload_objs'
5804case $host_os in
5805 darwin*)
5806 if test "$GCC" = yes; then
5807 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5808 else
5809 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5810 fi
5811 ;;
5812esac
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822if test -n "$ac_tool_prefix"; then
5823 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5824set dummy ${ac_tool_prefix}objdump; ac_word=$2
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5827if ${ac_cv_prog_OBJDUMP+:} false; then :
48310492
RH
5828 $as_echo_n "(cached) " >&6
5829else
5830 if test -n "$OBJDUMP"; then
5831 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5832else
5833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834for as_dir in $PATH
5835do
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
5840 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 break 2
5843 fi
5844done
5845 done
5846IFS=$as_save_IFS
5847
5848fi
5849fi
5850OBJDUMP=$ac_cv_prog_OBJDUMP
5851if test -n "$OBJDUMP"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5853$as_echo "$OBJDUMP" >&6; }
5854else
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856$as_echo "no" >&6; }
5857fi
5858
5859
5860fi
5861if test -z "$ac_cv_prog_OBJDUMP"; then
5862 ac_ct_OBJDUMP=$OBJDUMP
5863 # Extract the first word of "objdump", so it can be a program name with args.
5864set dummy objdump; ac_word=$2
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5867if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
48310492
RH
5868 $as_echo_n "(cached) " >&6
5869else
5870 if test -n "$ac_ct_OBJDUMP"; then
5871 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5872else
5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
5880 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 break 2
5883 fi
5884done
5885 done
5886IFS=$as_save_IFS
5887
5888fi
5889fi
5890ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5891if test -n "$ac_ct_OBJDUMP"; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5893$as_echo "$ac_ct_OBJDUMP" >&6; }
5894else
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896$as_echo "no" >&6; }
5897fi
5898
5899 if test "x$ac_ct_OBJDUMP" = x; then
5900 OBJDUMP="false"
5901 else
5902 case $cross_compiling:$ac_tool_warned in
5903yes:)
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5906ac_tool_warned=yes ;;
5907esac
5908 OBJDUMP=$ac_ct_OBJDUMP
5909 fi
5910else
5911 OBJDUMP="$ac_cv_prog_OBJDUMP"
5912fi
5913
5914test -z "$OBJDUMP" && OBJDUMP=objdump
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5925$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 5926if ${lt_cv_deplibs_check_method+:} false; then :
48310492
RH
5927 $as_echo_n "(cached) " >&6
5928else
5929 lt_cv_file_magic_cmd='$MAGIC_CMD'
5930lt_cv_file_magic_test_file=
5931lt_cv_deplibs_check_method='unknown'
5932# Need to set the preceding variable on all platforms that support
5933# interlibrary dependencies.
5934# 'none' -- dependencies not supported.
5935# `unknown' -- same as none, but documents that we really don't know.
5936# 'pass_all' -- all dependencies passed with no checks.
5937# 'test_compile' -- check by making test program.
5938# 'file_magic [[regex]]' -- check by looking for files in library path
5939# which responds to the $file_magic_cmd with a given extended regex.
5940# If you have `file' or equivalent on your system and you're not sure
5941# whether `pass_all' will *always* work, you probably want this one.
5942
5943case $host_os in
5944aix[4-9]*)
5945 lt_cv_deplibs_check_method=pass_all
5946 ;;
5947
5948beos*)
5949 lt_cv_deplibs_check_method=pass_all
5950 ;;
5951
5952bsdi[45]*)
5953 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5954 lt_cv_file_magic_cmd='/usr/bin/file -L'
5955 lt_cv_file_magic_test_file=/shlib/libc.so
5956 ;;
5957
5958cygwin*)
5959 # func_win32_libid is a shell function defined in ltmain.sh
5960 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5961 lt_cv_file_magic_cmd='func_win32_libid'
5962 ;;
5963
5964mingw* | pw32*)
5965 # Base MSYS/MinGW do not provide the 'file' command needed by
5966 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5967 # unless we find 'file', for example because we are cross-compiling.
5968 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5969 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5970 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5971 lt_cv_file_magic_cmd='func_win32_libid'
5972 else
5973 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5974 lt_cv_file_magic_cmd='$OBJDUMP -f'
5975 fi
5976 ;;
5977
5978cegcc*)
5979 # use the weaker test based on 'objdump'. See mingw*.
5980 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5981 lt_cv_file_magic_cmd='$OBJDUMP -f'
5982 ;;
5983
5984darwin* | rhapsody*)
5985 lt_cv_deplibs_check_method=pass_all
5986 ;;
5987
5988freebsd* | dragonfly*)
5989 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5990 case $host_cpu in
5991 i*86 )
5992 # Not sure whether the presence of OpenBSD here was a mistake.
5993 # Let's accept both of them until this is cleared up.
5994 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5995 lt_cv_file_magic_cmd=/usr/bin/file
5996 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5997 ;;
5998 esac
5999 else
6000 lt_cv_deplibs_check_method=pass_all
6001 fi
6002 ;;
6003
6004gnu*)
6005 lt_cv_deplibs_check_method=pass_all
6006 ;;
6007
6008haiku*)
6009 lt_cv_deplibs_check_method=pass_all
6010 ;;
6011
6012hpux10.20* | hpux11*)
6013 lt_cv_file_magic_cmd=/usr/bin/file
6014 case $host_cpu in
6015 ia64*)
6016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6017 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6018 ;;
6019 hppa*64*)
6020 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]'
6021 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6022 ;;
6023 *)
6024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6025 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6026 ;;
6027 esac
6028 ;;
6029
6030interix[3-9]*)
6031 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6033 ;;
6034
6035irix5* | irix6* | nonstopux*)
6036 case $LD in
6037 *-32|*"-32 ") libmagic=32-bit;;
6038 *-n32|*"-n32 ") libmagic=N32;;
6039 *-64|*"-64 ") libmagic=64-bit;;
6040 *) libmagic=never-match;;
6041 esac
6042 lt_cv_deplibs_check_method=pass_all
6043 ;;
6044
6045# This must be Linux ELF.
b1e21e5a 6046linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
48310492
RH
6047 lt_cv_deplibs_check_method=pass_all
6048 ;;
6049
6050netbsd*)
6051 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6053 else
6054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6055 fi
6056 ;;
6057
6058newos6*)
6059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6060 lt_cv_file_magic_cmd=/usr/bin/file
6061 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6062 ;;
6063
6064*nto* | *qnx*)
6065 lt_cv_deplibs_check_method=pass_all
6066 ;;
6067
6068openbsd*)
6069 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6071 else
6072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6073 fi
6074 ;;
6075
6076osf3* | osf4* | osf5*)
6077 lt_cv_deplibs_check_method=pass_all
6078 ;;
6079
6080rdos*)
6081 lt_cv_deplibs_check_method=pass_all
6082 ;;
6083
6084solaris*)
6085 lt_cv_deplibs_check_method=pass_all
6086 ;;
6087
6088sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6089 lt_cv_deplibs_check_method=pass_all
6090 ;;
6091
6092sysv4 | sysv4.3*)
6093 case $host_vendor in
6094 motorola)
6095 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]'
6096 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6097 ;;
6098 ncr)
6099 lt_cv_deplibs_check_method=pass_all
6100 ;;
6101 sequent)
6102 lt_cv_file_magic_cmd='/bin/file'
6103 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6104 ;;
6105 sni)
6106 lt_cv_file_magic_cmd='/bin/file'
6107 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6108 lt_cv_file_magic_test_file=/lib/libc.so
6109 ;;
6110 siemens)
6111 lt_cv_deplibs_check_method=pass_all
6112 ;;
6113 pc)
6114 lt_cv_deplibs_check_method=pass_all
6115 ;;
6116 esac
6117 ;;
6118
6119tpf*)
6120 lt_cv_deplibs_check_method=pass_all
6121 ;;
0ecd0f1c
OH
6122vxworks*)
6123 # Assume VxWorks cross toolchains are built on Linux, possibly
6124 # as canadian for Windows hosts.
6125 lt_cv_deplibs_check_method=pass_all
6126 ;;
48310492
RH
6127esac
6128
6129fi
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6131$as_echo "$lt_cv_deplibs_check_method" >&6; }
6132file_magic_cmd=$lt_cv_file_magic_cmd
6133deplibs_check_method=$lt_cv_deplibs_check_method
6134test -z "$deplibs_check_method" && deplibs_check_method=unknown
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
126f707e
L
6147plugin_option=
6148plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6149for plugin in $plugin_names; do
6150 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6151 if test x$plugin_so = x$plugin; then
6152 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6153 fi
6154 if test x$plugin_so != x$plugin; then
6155 plugin_option="--plugin $plugin_so"
6156 break
6157 fi
6158done
6159
48310492
RH
6160if test -n "$ac_tool_prefix"; then
6161 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6162set dummy ${ac_tool_prefix}ar; ac_word=$2
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6165if ${ac_cv_prog_AR+:} false; then :
48310492
RH
6166 $as_echo_n "(cached) " >&6
6167else
6168 if test -n "$AR"; then
6169 ac_cv_prog_AR="$AR" # Let the user override the test.
6170else
6171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172for as_dir in $PATH
6173do
6174 IFS=$as_save_IFS
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6178 ac_cv_prog_AR="${ac_tool_prefix}ar"
6179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 break 2
6181 fi
6182done
6183 done
6184IFS=$as_save_IFS
6185
6186fi
6187fi
6188AR=$ac_cv_prog_AR
6189if test -n "$AR"; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6191$as_echo "$AR" >&6; }
6192else
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194$as_echo "no" >&6; }
6195fi
6196
6197
6198fi
6199if test -z "$ac_cv_prog_AR"; then
6200 ac_ct_AR=$AR
6201 # Extract the first word of "ar", so it can be a program name with args.
6202set dummy ar; ac_word=$2
6203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6205if ${ac_cv_prog_ac_ct_AR+:} false; then :
48310492
RH
6206 $as_echo_n "(cached) " >&6
6207else
6208 if test -n "$ac_ct_AR"; then
6209 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6210else
6211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212for as_dir in $PATH
6213do
6214 IFS=$as_save_IFS
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6218 ac_cv_prog_ac_ct_AR="ar"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 break 2
6221 fi
6222done
6223 done
6224IFS=$as_save_IFS
6225
6226fi
6227fi
6228ac_ct_AR=$ac_cv_prog_ac_ct_AR
6229if test -n "$ac_ct_AR"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6231$as_echo "$ac_ct_AR" >&6; }
6232else
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234$as_echo "no" >&6; }
6235fi
6236
6237 if test "x$ac_ct_AR" = x; then
6238 AR="false"
6239 else
6240 case $cross_compiling:$ac_tool_warned in
6241yes:)
6242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6244ac_tool_warned=yes ;;
6245esac
6246 AR=$ac_ct_AR
6247 fi
6248else
6249 AR="$ac_cv_prog_AR"
6250fi
6251
6252test -z "$AR" && AR=ar
126f707e
L
6253if test -n "$plugin_option"; then
6254 if $AR --help 2>&1 | grep -q "\--plugin"; then
6255 AR="$AR $plugin_option"
6256 fi
6257fi
48310492
RH
6258test -z "$AR_FLAGS" && AR_FLAGS=cru
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270if test -n "$ac_tool_prefix"; then
6271 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6272set dummy ${ac_tool_prefix}strip; ac_word=$2
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6275if ${ac_cv_prog_STRIP+:} false; then :
48310492
RH
6276 $as_echo_n "(cached) " >&6
6277else
6278 if test -n "$STRIP"; then
6279 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6280else
6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6288 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 break 2
6291 fi
6292done
6293 done
6294IFS=$as_save_IFS
6295
6296fi
6297fi
6298STRIP=$ac_cv_prog_STRIP
6299if test -n "$STRIP"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6301$as_echo "$STRIP" >&6; }
6302else
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304$as_echo "no" >&6; }
6305fi
6306
6307
6308fi
6309if test -z "$ac_cv_prog_STRIP"; then
6310 ac_ct_STRIP=$STRIP
6311 # Extract the first word of "strip", so it can be a program name with args.
6312set dummy strip; ac_word=$2
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6315if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
48310492
RH
6316 $as_echo_n "(cached) " >&6
6317else
6318 if test -n "$ac_ct_STRIP"; then
6319 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6320else
6321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322for as_dir in $PATH
6323do
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6328 ac_cv_prog_ac_ct_STRIP="strip"
6329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 break 2
6331 fi
6332done
6333 done
6334IFS=$as_save_IFS
6335
6336fi
6337fi
6338ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6339if test -n "$ac_ct_STRIP"; then
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6341$as_echo "$ac_ct_STRIP" >&6; }
6342else
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344$as_echo "no" >&6; }
6345fi
6346
6347 if test "x$ac_ct_STRIP" = x; then
6348 STRIP=":"
6349 else
6350 case $cross_compiling:$ac_tool_warned in
6351yes:)
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6354ac_tool_warned=yes ;;
6355esac
6356 STRIP=$ac_ct_STRIP
6357 fi
6358else
6359 STRIP="$ac_cv_prog_STRIP"
6360fi
6361
6362test -z "$STRIP" && STRIP=:
6363
6364
6365
6366
6367
6368
6369if test -n "$ac_tool_prefix"; then
6370 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6371set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6374if ${ac_cv_prog_RANLIB+:} false; then :
48310492
RH
6375 $as_echo_n "(cached) " >&6
6376else
6377 if test -n "$RANLIB"; then
6378 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6379else
6380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381for as_dir in $PATH
6382do
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6387 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 break 2
6390 fi
6391done
6392 done
6393IFS=$as_save_IFS
6394
6395fi
6396fi
6397RANLIB=$ac_cv_prog_RANLIB
6398if test -n "$RANLIB"; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6400$as_echo "$RANLIB" >&6; }
6401else
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403$as_echo "no" >&6; }
6404fi
6405
6406
6407fi
6408if test -z "$ac_cv_prog_RANLIB"; then
6409 ac_ct_RANLIB=$RANLIB
6410 # Extract the first word of "ranlib", so it can be a program name with args.
6411set dummy ranlib; ac_word=$2
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6413$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6414if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
48310492
RH
6415 $as_echo_n "(cached) " >&6
6416else
6417 if test -n "$ac_ct_RANLIB"; then
6418 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6419else
6420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421for as_dir in $PATH
6422do
6423 IFS=$as_save_IFS
6424 test -z "$as_dir" && as_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6427 ac_cv_prog_ac_ct_RANLIB="ranlib"
6428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6429 break 2
6430 fi
6431done
6432 done
6433IFS=$as_save_IFS
6434
6435fi
6436fi
6437ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6438if test -n "$ac_ct_RANLIB"; then
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6440$as_echo "$ac_ct_RANLIB" >&6; }
6441else
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443$as_echo "no" >&6; }
6444fi
6445
6446 if test "x$ac_ct_RANLIB" = x; then
6447 RANLIB=":"
6448 else
6449 case $cross_compiling:$ac_tool_warned in
6450yes:)
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6453ac_tool_warned=yes ;;
6454esac
6455 RANLIB=$ac_ct_RANLIB
6456 fi
6457else
6458 RANLIB="$ac_cv_prog_RANLIB"
6459fi
6460
6461test -z "$RANLIB" && RANLIB=:
126f707e
L
6462if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6463 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6464 RANLIB="$RANLIB $plugin_option"
6465 fi
6466fi
48310492
RH
6467
6468
6469
6470
6471
6472
6473# Determine commands to create old-style static archives.
6474old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6475old_postinstall_cmds='chmod 644 $oldlib'
6476old_postuninstall_cmds=
6477
6478if test -n "$RANLIB"; then
6479 case $host_os in
6480 openbsd*)
6481 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6482 ;;
6483 *)
6484 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6485 ;;
6486 esac
6487 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6488fi
6489
6490case $host_os in
6491 darwin*)
6492 lock_old_archive_extraction=yes ;;
6493 *)
6494 lock_old_archive_extraction=no ;;
6495esac
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535# If no C compiler was specified, use CC.
6536LTCC=${LTCC-"$CC"}
6537
6538# If no C compiler flags were specified, use CFLAGS.
6539LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6540
6541# Allow CC to be a program name with arguments.
6542compiler=$CC
6543
6544
6545# Check for command to grab the raw symbol name followed by C symbol from nm.
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6547$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 6548if ${lt_cv_sys_global_symbol_pipe+:} false; then :
48310492
RH
6549 $as_echo_n "(cached) " >&6
6550else
6551
6552# These are sane defaults that work on at least a few old systems.
6553# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6554
6555# Character class describing NM global symbol codes.
6556symcode='[BCDEGRST]'
6557
6558# Regexp to match symbols that can be accessed directly from C.
6559sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6560
6561# Define system-specific variables.
6562case $host_os in
6563aix*)
6564 symcode='[BCDT]'
6565 ;;
6566cygwin* | mingw* | pw32* | cegcc*)
6567 symcode='[ABCDGISTW]'
6568 ;;
6569hpux*)
6570 if test "$host_cpu" = ia64; then
6571 symcode='[ABCDEGRST]'
6572 fi
6573 ;;
6574irix* | nonstopux*)
6575 symcode='[BCDEGRST]'
6576 ;;
6577osf*)
6578 symcode='[BCDEGQRST]'
6579 ;;
6580solaris*)
6581 symcode='[BDRT]'
6582 ;;
6583sco3.2v5*)
6584 symcode='[DT]'
6585 ;;
6586sysv4.2uw2*)
6587 symcode='[DT]'
6588 ;;
6589sysv5* | sco5v6* | unixware* | OpenUNIX*)
6590 symcode='[ABDT]'
6591 ;;
6592sysv4)
6593 symcode='[DFNSTU]'
6594 ;;
6595esac
6596
6597# If we're using GNU nm, then use its standard symbol codes.
6598case `$NM -V 2>&1` in
6599*GNU* | *'with BFD'*)
6600 symcode='[ABCDGIRSTW]' ;;
6601esac
6602
6603# Transform an extracted symbol line into a proper C declaration.
6604# Some systems (esp. on ia64) link data and code symbols differently,
6605# so use this general approach.
6606lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6607
6608# Transform an extracted symbol line into symbol name and symbol address
6609lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6610lt_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'"
6611
6612# Handle CRLF in mingw tool chain
6613opt_cr=
6614case $build_os in
6615mingw*)
6616 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6617 ;;
6618esac
6619
6620# Try without a prefix underscore, then with it.
6621for ac_symprfx in "" "_"; do
6622
6623 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6624 symxfrm="\\1 $ac_symprfx\\2 \\2"
6625
6626 # Write the raw and C identifiers.
6627 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6628 # Fake it for dumpbin and say T for any non-static function
6629 # and D for any global variable.
6630 # Also find C++ and __fastcall symbols from MSVC++,
6631 # which start with @ or ?.
6632 lt_cv_sys_global_symbol_pipe="$AWK '"\
6633" {last_section=section; section=\$ 3};"\
6634" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6635" \$ 0!~/External *\|/{next};"\
6636" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6637" {if(hide[section]) next};"\
6638" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6639" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6640" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6641" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6642" ' prfx=^$ac_symprfx"
6643 else
6644 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6645 fi
6646
6647 # Check to see that the pipe works correctly.
6648 pipe_works=no
6649
6650 rm -f conftest*
6651 cat > conftest.$ac_ext <<_LT_EOF
6652#ifdef __cplusplus
6653extern "C" {
6654#endif
6655char nm_test_var;
6656void nm_test_func(void);
6657void nm_test_func(void){}
6658#ifdef __cplusplus
6659}
6660#endif
6661int main(){nm_test_var='a';nm_test_func();return(0);}
6662_LT_EOF
6663
6664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6665 (eval $ac_compile) 2>&5
6666 ac_status=$?
6667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6668 test $ac_status = 0; }; then
6669 # Now try to grab the symbols.
6670 nlist=conftest.nm
6671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6672 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6673 ac_status=$?
6674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6675 test $ac_status = 0; } && test -s "$nlist"; then
6676 # Try sorting and uniquifying the output.
6677 if sort "$nlist" | uniq > "$nlist"T; then
6678 mv -f "$nlist"T "$nlist"
6679 else
6680 rm -f "$nlist"T
6681 fi
6682
6683 # Make sure that we snagged all the symbols we need.
6684 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6685 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6686 cat <<_LT_EOF > conftest.$ac_ext
6687#ifdef __cplusplus
6688extern "C" {
6689#endif
6690
6691_LT_EOF
6692 # Now generate the symbol file.
6693 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6694
6695 cat <<_LT_EOF >> conftest.$ac_ext
6696
6697/* The mapping between symbol names and symbols. */
6698const struct {
6699 const char *name;
6700 void *address;
6701}
6702lt__PROGRAM__LTX_preloaded_symbols[] =
6703{
6704 { "@PROGRAM@", (void *) 0 },
6705_LT_EOF
6706 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6707 cat <<\_LT_EOF >> conftest.$ac_ext
6708 {0, (void *) 0}
6709};
6710
6711/* This works around a problem in FreeBSD linker */
6712#ifdef FREEBSD_WORKAROUND
6713static const void *lt_preloaded_setup() {
6714 return lt__PROGRAM__LTX_preloaded_symbols;
6715}
6716#endif
6717
6718#ifdef __cplusplus
6719}
6720#endif
6721_LT_EOF
6722 # Now try linking the two files.
6723 mv conftest.$ac_objext conftstm.$ac_objext
6724 lt_save_LIBS="$LIBS"
6725 lt_save_CFLAGS="$CFLAGS"
6726 LIBS="conftstm.$ac_objext"
6727 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6729 (eval $ac_link) 2>&5
6730 ac_status=$?
6731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6732 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6733 pipe_works=yes
6734 fi
6735 LIBS="$lt_save_LIBS"
6736 CFLAGS="$lt_save_CFLAGS"
6737 else
6738 echo "cannot find nm_test_func in $nlist" >&5
6739 fi
6740 else
6741 echo "cannot find nm_test_var in $nlist" >&5
6742 fi
6743 else
6744 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6745 fi
6746 else
6747 echo "$progname: failed program was:" >&5
6748 cat conftest.$ac_ext >&5
6749 fi
6750 rm -rf conftest* conftst*
6751
6752 # Do not use the global_symbol_pipe unless it works.
6753 if test "$pipe_works" = yes; then
6754 break
6755 else
6756 lt_cv_sys_global_symbol_pipe=
6757 fi
6758done
6759
6760fi
6761
6762if test -z "$lt_cv_sys_global_symbol_pipe"; then
6763 lt_cv_sys_global_symbol_to_cdecl=
6764fi
6765if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6767$as_echo "failed" >&6; }
6768else
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6770$as_echo "ok" >&6; }
6771fi
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795# Check whether --enable-libtool-lock was given.
6796if test "${enable_libtool_lock+set}" = set; then :
6797 enableval=$enable_libtool_lock;
6798fi
6799
6800test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6801
6802# Some flags need to be propagated to the compiler or linker for good
6803# libtool support.
6804case $host in
6805ia64-*-hpux*)
6806 # Find out which ABI we are using.
6807 echo 'int i;' > conftest.$ac_ext
6808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6809 (eval $ac_compile) 2>&5
6810 ac_status=$?
6811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6812 test $ac_status = 0; }; then
6813 case `/usr/bin/file conftest.$ac_objext` in
6814 *ELF-32*)
6815 HPUX_IA64_MODE="32"
6816 ;;
6817 *ELF-64*)
6818 HPUX_IA64_MODE="64"
6819 ;;
6820 esac
6821 fi
6822 rm -rf conftest*
6823 ;;
6824*-*-irix6*)
6825 # Find out which ABI we are using.
6826 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6828 (eval $ac_compile) 2>&5
6829 ac_status=$?
6830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6831 test $ac_status = 0; }; then
6832 if test "$lt_cv_prog_gnu_ld" = yes; then
6833 case `/usr/bin/file conftest.$ac_objext` in
6834 *32-bit*)
6835 LD="${LD-ld} -melf32bsmip"
6836 ;;
6837 *N32*)
6838 LD="${LD-ld} -melf32bmipn32"
6839 ;;
6840 *64-bit*)
6841 LD="${LD-ld} -melf64bmip"
6842 ;;
6843 esac
6844 else
6845 case `/usr/bin/file conftest.$ac_objext` in
6846 *32-bit*)
6847 LD="${LD-ld} -32"
6848 ;;
6849 *N32*)
6850 LD="${LD-ld} -n32"
6851 ;;
6852 *64-bit*)
6853 LD="${LD-ld} -64"
6854 ;;
6855 esac
6856 fi
6857 fi
6858 rm -rf conftest*
6859 ;;
6860
3cbe17f7 6861x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
48310492
RH
6862s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6863 # Find out which ABI we are using.
6864 echo 'int i;' > conftest.$ac_ext
6865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6866 (eval $ac_compile) 2>&5
6867 ac_status=$?
6868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6869 test $ac_status = 0; }; then
6870 case `/usr/bin/file conftest.o` in
6871 *32-bit*)
6872 case $host in
6873 x86_64-*kfreebsd*-gnu)
6874 LD="${LD-ld} -m elf_i386_fbsd"
6875 ;;
6876 x86_64-*linux*)
e6d5f8c9
L
6877 case `/usr/bin/file conftest.o` in
6878 *x86-64*)
6879 LD="${LD-ld} -m elf32_x86_64"
6880 ;;
6881 *)
6882 LD="${LD-ld} -m elf_i386"
6883 ;;
6884 esac
48310492 6885 ;;
3cbe17f7
AM
6886 powerpc64le-*linux*)
6887 LD="${LD-ld} -m elf32lppclinux"
6888 ;;
6889 powerpc64-*linux*)
48310492
RH
6890 LD="${LD-ld} -m elf32ppclinux"
6891 ;;
6892 s390x-*linux*)
6893 LD="${LD-ld} -m elf_s390"
6894 ;;
6895 sparc64-*linux*)
6896 LD="${LD-ld} -m elf32_sparc"
6897 ;;
6898 esac
6899 ;;
6900 *64-bit*)
6901 case $host in
6902 x86_64-*kfreebsd*-gnu)
6903 LD="${LD-ld} -m elf_x86_64_fbsd"
6904 ;;
6905 x86_64-*linux*)
6906 LD="${LD-ld} -m elf_x86_64"
6907 ;;
3cbe17f7
AM
6908 powerpcle-*linux*)
6909 LD="${LD-ld} -m elf64lppc"
6910 ;;
6911 powerpc-*linux*)
48310492
RH
6912 LD="${LD-ld} -m elf64ppc"
6913 ;;
6914 s390*-*linux*|s390*-*tpf*)
6915 LD="${LD-ld} -m elf64_s390"
6916 ;;
6917 sparc*-*linux*)
6918 LD="${LD-ld} -m elf64_sparc"
6919 ;;
6920 esac
6921 ;;
6922 esac
6923 fi
6924 rm -rf conftest*
6925 ;;
6926
6927*-*-sco3.2v5*)
6928 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6929 SAVE_CFLAGS="$CFLAGS"
6930 CFLAGS="$CFLAGS -belf"
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6932$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 6933if ${lt_cv_cc_needs_belf+:} false; then :
48310492
RH
6934 $as_echo_n "(cached) " >&6
6935else
6936 ac_ext=c
6937ac_cpp='$CPP $CPPFLAGS'
6938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6940ac_compiler_gnu=$ac_cv_c_compiler_gnu
6941
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943/* end confdefs.h. */
6944
6945int
6946main ()
6947{
6948
6949 ;
6950 return 0;
6951}
6952_ACEOF
6953if ac_fn_c_try_link "$LINENO"; then :
6954 lt_cv_cc_needs_belf=yes
6955else
6956 lt_cv_cc_needs_belf=no
6957fi
6958rm -f core conftest.err conftest.$ac_objext \
6959 conftest$ac_exeext conftest.$ac_ext
6960 ac_ext=c
6961ac_cpp='$CPP $CPPFLAGS'
6962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6964ac_compiler_gnu=$ac_cv_c_compiler_gnu
6965
6966fi
6967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6968$as_echo "$lt_cv_cc_needs_belf" >&6; }
6969 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6970 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6971 CFLAGS="$SAVE_CFLAGS"
6972 fi
6973 ;;
6974sparc*-*solaris*)
6975 # Find out which ABI we are using.
6976 echo 'int i;' > conftest.$ac_ext
6977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6978 (eval $ac_compile) 2>&5
6979 ac_status=$?
6980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6981 test $ac_status = 0; }; then
6982 case `/usr/bin/file conftest.o` in
6983 *64-bit*)
6984 case $lt_cv_prog_gnu_ld in
6985 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6986 *)
6987 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6988 LD="${LD-ld} -64"
6989 fi
6990 ;;
6991 esac
6992 ;;
6993 esac
6994 fi
6995 rm -rf conftest*
6996 ;;
6997esac
6998
6999need_locks="$enable_libtool_lock"
7000
7001
7002 case $host_os in
7003 rhapsody* | darwin*)
7004 if test -n "$ac_tool_prefix"; then
7005 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7006set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7009if ${ac_cv_prog_DSYMUTIL+:} false; then :
48310492
RH
7010 $as_echo_n "(cached) " >&6
7011else
7012 if test -n "$DSYMUTIL"; then
7013 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7014else
7015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016for as_dir in $PATH
7017do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7022 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026done
7027 done
7028IFS=$as_save_IFS
7029
7030fi
7031fi
7032DSYMUTIL=$ac_cv_prog_DSYMUTIL
7033if test -n "$DSYMUTIL"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7035$as_echo "$DSYMUTIL" >&6; }
7036else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038$as_echo "no" >&6; }
7039fi
7040
7041
7042fi
7043if test -z "$ac_cv_prog_DSYMUTIL"; then
7044 ac_ct_DSYMUTIL=$DSYMUTIL
7045 # Extract the first word of "dsymutil", so it can be a program name with args.
7046set dummy dsymutil; ac_word=$2
7047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7049if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
48310492
RH
7050 $as_echo_n "(cached) " >&6
7051else
7052 if test -n "$ac_ct_DSYMUTIL"; then
7053 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7054else
7055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056for as_dir in $PATH
7057do
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7062 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7065 fi
7066done
7067 done
7068IFS=$as_save_IFS
7069
7070fi
7071fi
7072ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7073if test -n "$ac_ct_DSYMUTIL"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7075$as_echo "$ac_ct_DSYMUTIL" >&6; }
7076else
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078$as_echo "no" >&6; }
7079fi
7080
7081 if test "x$ac_ct_DSYMUTIL" = x; then
7082 DSYMUTIL=":"
7083 else
7084 case $cross_compiling:$ac_tool_warned in
7085yes:)
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7088ac_tool_warned=yes ;;
7089esac
7090 DSYMUTIL=$ac_ct_DSYMUTIL
7091 fi
7092else
7093 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7094fi
7095
7096 if test -n "$ac_tool_prefix"; then
7097 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7098set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7101if ${ac_cv_prog_NMEDIT+:} false; then :
48310492
RH
7102 $as_echo_n "(cached) " >&6
7103else
7104 if test -n "$NMEDIT"; then
7105 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7106else
7107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7114 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7117 fi
7118done
7119 done
7120IFS=$as_save_IFS
7121
7122fi
7123fi
7124NMEDIT=$ac_cv_prog_NMEDIT
7125if test -n "$NMEDIT"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7127$as_echo "$NMEDIT" >&6; }
7128else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130$as_echo "no" >&6; }
7131fi
7132
7133
7134fi
7135if test -z "$ac_cv_prog_NMEDIT"; then
7136 ac_ct_NMEDIT=$NMEDIT
7137 # Extract the first word of "nmedit", so it can be a program name with args.
7138set dummy nmedit; ac_word=$2
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7141if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
48310492
RH
7142 $as_echo_n "(cached) " >&6
7143else
7144 if test -n "$ac_ct_NMEDIT"; then
7145 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7146else
7147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148for as_dir in $PATH
7149do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7154 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7157 fi
7158done
7159 done
7160IFS=$as_save_IFS
7161
7162fi
7163fi
7164ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7165if test -n "$ac_ct_NMEDIT"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7167$as_echo "$ac_ct_NMEDIT" >&6; }
7168else
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170$as_echo "no" >&6; }
7171fi
7172
7173 if test "x$ac_ct_NMEDIT" = x; then
7174 NMEDIT=":"
7175 else
7176 case $cross_compiling:$ac_tool_warned in
7177yes:)
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180ac_tool_warned=yes ;;
7181esac
7182 NMEDIT=$ac_ct_NMEDIT
7183 fi
7184else
7185 NMEDIT="$ac_cv_prog_NMEDIT"
7186fi
7187
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7190set dummy ${ac_tool_prefix}lipo; ac_word=$2
7191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7193if ${ac_cv_prog_LIPO+:} false; then :
48310492
RH
7194 $as_echo_n "(cached) " >&6
7195else
7196 if test -n "$LIPO"; then
7197 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7198else
7199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200for as_dir in $PATH
7201do
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7206 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7209 fi
7210done
7211 done
7212IFS=$as_save_IFS
7213
7214fi
7215fi
7216LIPO=$ac_cv_prog_LIPO
7217if test -n "$LIPO"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7219$as_echo "$LIPO" >&6; }
7220else
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222$as_echo "no" >&6; }
7223fi
7224
7225
7226fi
7227if test -z "$ac_cv_prog_LIPO"; then
7228 ac_ct_LIPO=$LIPO
7229 # Extract the first word of "lipo", so it can be a program name with args.
7230set dummy lipo; ac_word=$2
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7233if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
48310492
RH
7234 $as_echo_n "(cached) " >&6
7235else
7236 if test -n "$ac_ct_LIPO"; then
7237 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7238else
7239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH
7241do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7246 ac_cv_prog_ac_ct_LIPO="lipo"
7247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7249 fi
7250done
7251 done
7252IFS=$as_save_IFS
7253
7254fi
7255fi
7256ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7257if test -n "$ac_ct_LIPO"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7259$as_echo "$ac_ct_LIPO" >&6; }
7260else
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262$as_echo "no" >&6; }
7263fi
7264
7265 if test "x$ac_ct_LIPO" = x; then
7266 LIPO=":"
7267 else
7268 case $cross_compiling:$ac_tool_warned in
7269yes:)
7270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272ac_tool_warned=yes ;;
7273esac
7274 LIPO=$ac_ct_LIPO
7275 fi
7276else
7277 LIPO="$ac_cv_prog_LIPO"
7278fi
7279
7280 if test -n "$ac_tool_prefix"; then
7281 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7282set dummy ${ac_tool_prefix}otool; ac_word=$2
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7285if ${ac_cv_prog_OTOOL+:} false; then :
48310492
RH
7286 $as_echo_n "(cached) " >&6
7287else
7288 if test -n "$OTOOL"; then
7289 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7290else
7291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292for as_dir in $PATH
7293do
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7298 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 break 2
7301 fi
7302done
7303 done
7304IFS=$as_save_IFS
7305
7306fi
7307fi
7308OTOOL=$ac_cv_prog_OTOOL
7309if test -n "$OTOOL"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7311$as_echo "$OTOOL" >&6; }
7312else
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314$as_echo "no" >&6; }
7315fi
7316
7317
7318fi
7319if test -z "$ac_cv_prog_OTOOL"; then
7320 ac_ct_OTOOL=$OTOOL
7321 # Extract the first word of "otool", so it can be a program name with args.
7322set dummy otool; ac_word=$2
7323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7325if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
48310492
RH
7326 $as_echo_n "(cached) " >&6
7327else
7328 if test -n "$ac_ct_OTOOL"; then
7329 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7330else
7331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332for as_dir in $PATH
7333do
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7338 ac_cv_prog_ac_ct_OTOOL="otool"
7339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7341 fi
7342done
7343 done
7344IFS=$as_save_IFS
7345
7346fi
7347fi
7348ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7349if test -n "$ac_ct_OTOOL"; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7351$as_echo "$ac_ct_OTOOL" >&6; }
7352else
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354$as_echo "no" >&6; }
7355fi
7356
7357 if test "x$ac_ct_OTOOL" = x; then
7358 OTOOL=":"
7359 else
7360 case $cross_compiling:$ac_tool_warned in
7361yes:)
7362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7364ac_tool_warned=yes ;;
7365esac
7366 OTOOL=$ac_ct_OTOOL
7367 fi
7368else
7369 OTOOL="$ac_cv_prog_OTOOL"
7370fi
7371
7372 if test -n "$ac_tool_prefix"; then
7373 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7374set dummy ${ac_tool_prefix}otool64; ac_word=$2
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7377if ${ac_cv_prog_OTOOL64+:} false; then :
48310492
RH
7378 $as_echo_n "(cached) " >&6
7379else
7380 if test -n "$OTOOL64"; then
7381 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7382else
7383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384for as_dir in $PATH
7385do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7390 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 break 2
7393 fi
7394done
7395 done
7396IFS=$as_save_IFS
7397
7398fi
7399fi
7400OTOOL64=$ac_cv_prog_OTOOL64
7401if test -n "$OTOOL64"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7403$as_echo "$OTOOL64" >&6; }
7404else
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406$as_echo "no" >&6; }
7407fi
7408
7409
7410fi
7411if test -z "$ac_cv_prog_OTOOL64"; then
7412 ac_ct_OTOOL64=$OTOOL64
7413 # Extract the first word of "otool64", so it can be a program name with args.
7414set dummy otool64; ac_word=$2
7415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7417if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
48310492
RH
7418 $as_echo_n "(cached) " >&6
7419else
7420 if test -n "$ac_ct_OTOOL64"; then
7421 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7422else
7423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424for as_dir in $PATH
7425do
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7430 ac_cv_prog_ac_ct_OTOOL64="otool64"
7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 break 2
7433 fi
7434done
7435 done
7436IFS=$as_save_IFS
7437
7438fi
7439fi
7440ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7441if test -n "$ac_ct_OTOOL64"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7443$as_echo "$ac_ct_OTOOL64" >&6; }
7444else
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446$as_echo "no" >&6; }
7447fi
7448
7449 if test "x$ac_ct_OTOOL64" = x; then
7450 OTOOL64=":"
7451 else
7452 case $cross_compiling:$ac_tool_warned in
7453yes:)
7454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7456ac_tool_warned=yes ;;
7457esac
7458 OTOOL64=$ac_ct_OTOOL64
7459 fi
7460else
7461 OTOOL64="$ac_cv_prog_OTOOL64"
7462fi
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7491$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 7492if ${lt_cv_apple_cc_single_mod+:} false; then :
48310492
RH
7493 $as_echo_n "(cached) " >&6
7494else
7495 lt_cv_apple_cc_single_mod=no
7496 if test -z "${LT_MULTI_MODULE}"; then
7497 # By default we will add the -single_module flag. You can override
7498 # by either setting the environment variable LT_MULTI_MODULE
7499 # non-empty at configure time, or by adding -multi_module to the
7500 # link flags.
7501 rm -rf libconftest.dylib*
7502 echo "int foo(void){return 1;}" > conftest.c
7503 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7504-dynamiclib -Wl,-single_module conftest.c" >&5
7505 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7506 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7507 _lt_result=$?
7508 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7509 lt_cv_apple_cc_single_mod=yes
7510 else
7511 cat conftest.err >&5
7512 fi
7513 rm -rf libconftest.dylib*
7514 rm -f conftest.*
7515 fi
7516fi
7517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7518$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7520$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 7521if ${lt_cv_ld_exported_symbols_list+:} false; then :
48310492
RH
7522 $as_echo_n "(cached) " >&6
7523else
7524 lt_cv_ld_exported_symbols_list=no
7525 save_LDFLAGS=$LDFLAGS
7526 echo "_main" > conftest.sym
7527 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529/* end confdefs.h. */
7530
7531int
7532main ()
7533{
7534
7535 ;
7536 return 0;
7537}
7538_ACEOF
7539if ac_fn_c_try_link "$LINENO"; then :
7540 lt_cv_ld_exported_symbols_list=yes
7541else
7542 lt_cv_ld_exported_symbols_list=no
7543fi
7544rm -f core conftest.err conftest.$ac_objext \
7545 conftest$ac_exeext conftest.$ac_ext
7546 LDFLAGS="$save_LDFLAGS"
7547
7548fi
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7550$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7552$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 7553if ${lt_cv_ld_force_load+:} false; then :
48310492
RH
7554 $as_echo_n "(cached) " >&6
7555else
7556 lt_cv_ld_force_load=no
7557 cat > conftest.c << _LT_EOF
7558int forced_loaded() { return 2;}
7559_LT_EOF
7560 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7561 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7562 echo "$AR cru libconftest.a conftest.o" >&5
7563 $AR cru libconftest.a conftest.o 2>&5
7564 cat > conftest.c << _LT_EOF
7565int main() { return 0;}
7566_LT_EOF
7567 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7568 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7569 _lt_result=$?
7570 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7571 lt_cv_ld_force_load=yes
7572 else
7573 cat conftest.err >&5
7574 fi
7575 rm -f conftest.err libconftest.a conftest conftest.c
7576 rm -rf conftest.dSYM
7577
7578fi
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7580$as_echo "$lt_cv_ld_force_load" >&6; }
1352bc88
IS
7581 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7582 # build without first building modern cctools / linker.
7583 case $host_cpu-$host_os in
7584 *-rhapsody* | *-darwin1.[012])
48310492 7585 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1352bc88 7586 *-darwin1.*)
48310492 7587 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1352bc88
IS
7588 *-darwin*)
7589 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7590 # deployment target is forced to an earlier version.
7591 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7592 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7593 ;;
ebf6d33b 7594 10.[012][,.]*)
1352bc88
IS
7595 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7596 ;;
7597 *)
7598 ;;
7599 esac
48310492
RH
7600 ;;
7601 esac
7602 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7603 _lt_dar_single_mod='$single_module'
7604 fi
7605 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7606 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7607 else
7608 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7609 fi
7610 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7611 _lt_dsymutil='~$DSYMUTIL $lib || :'
7612 else
7613 _lt_dsymutil=
7614 fi
7615 ;;
7616 esac
7617
7618ac_ext=c
7619ac_cpp='$CPP $CPPFLAGS'
7620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7622ac_compiler_gnu=$ac_cv_c_compiler_gnu
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7624$as_echo_n "checking how to run the C preprocessor... " >&6; }
7625# On Suns, sometimes $CPP names a directory.
7626if test -n "$CPP" && test -d "$CPP"; then
7627 CPP=
7628fi
7629if test -z "$CPP"; then
22e05272 7630 if ${ac_cv_prog_CPP+:} false; then :
48310492
RH
7631 $as_echo_n "(cached) " >&6
7632else
7633 # Double quotes because CPP needs to be expanded
7634 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7635 do
7636 ac_preproc_ok=false
7637for ac_c_preproc_warn_flag in '' yes
7638do
7639 # Use a header file that comes with gcc, so configuring glibc
7640 # with a fresh cross-compiler works.
7641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7642 # <limits.h> exists even on freestanding compilers.
7643 # On the NeXT, cc -E runs the code through the compiler's parser,
7644 # not just through cpp. "Syntax error" is here to catch this case.
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646/* end confdefs.h. */
7647#ifdef __STDC__
7648# include <limits.h>
7649#else
7650# include <assert.h>
7651#endif
7652 Syntax error
7653_ACEOF
7654if ac_fn_c_try_cpp "$LINENO"; then :
7655
7656else
7657 # Broken: fails on valid input.
7658continue
7659fi
22e05272 7660rm -f conftest.err conftest.i conftest.$ac_ext
48310492
RH
7661
7662 # OK, works on sane cases. Now check whether nonexistent headers
7663 # can be detected and how.
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665/* end confdefs.h. */
7666#include <ac_nonexistent.h>
7667_ACEOF
7668if ac_fn_c_try_cpp "$LINENO"; then :
7669 # Broken: success on invalid input.
7670continue
7671else
7672 # Passes both tests.
7673ac_preproc_ok=:
7674break
7675fi
22e05272 7676rm -f conftest.err conftest.i conftest.$ac_ext
48310492
RH
7677
7678done
7679# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 7680rm -f conftest.i conftest.err conftest.$ac_ext
48310492
RH
7681if $ac_preproc_ok; then :
7682 break
7683fi
7684
7685 done
7686 ac_cv_prog_CPP=$CPP
7687
7688fi
7689 CPP=$ac_cv_prog_CPP
7690else
7691 ac_cv_prog_CPP=$CPP
7692fi
7693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7694$as_echo "$CPP" >&6; }
7695ac_preproc_ok=false
7696for ac_c_preproc_warn_flag in '' yes
7697do
7698 # Use a header file that comes with gcc, so configuring glibc
7699 # with a fresh cross-compiler works.
7700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7701 # <limits.h> exists even on freestanding compilers.
7702 # On the NeXT, cc -E runs the code through the compiler's parser,
7703 # not just through cpp. "Syntax error" is here to catch this case.
7704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7705/* end confdefs.h. */
7706#ifdef __STDC__
7707# include <limits.h>
7708#else
7709# include <assert.h>
7710#endif
7711 Syntax error
7712_ACEOF
7713if ac_fn_c_try_cpp "$LINENO"; then :
7714
7715else
7716 # Broken: fails on valid input.
7717continue
7718fi
22e05272 7719rm -f conftest.err conftest.i conftest.$ac_ext
48310492
RH
7720
7721 # OK, works on sane cases. Now check whether nonexistent headers
7722 # can be detected and how.
7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724/* end confdefs.h. */
7725#include <ac_nonexistent.h>
7726_ACEOF
7727if ac_fn_c_try_cpp "$LINENO"; then :
7728 # Broken: success on invalid input.
7729continue
7730else
7731 # Passes both tests.
7732ac_preproc_ok=:
7733break
7734fi
22e05272 7735rm -f conftest.err conftest.i conftest.$ac_ext
48310492
RH
7736
7737done
7738# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 7739rm -f conftest.i conftest.err conftest.$ac_ext
48310492
RH
7740if $ac_preproc_ok; then :
7741
7742else
7743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
7745as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7746See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
7747fi
7748
7749ac_ext=c
7750ac_cpp='$CPP $CPPFLAGS'
7751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7753ac_compiler_gnu=$ac_cv_c_compiler_gnu
7754
7755
7756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7757$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 7758if ${ac_cv_header_stdc+:} false; then :
48310492
RH
7759 $as_echo_n "(cached) " >&6
7760else
7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762/* end confdefs.h. */
7763#include <stdlib.h>
7764#include <stdarg.h>
7765#include <string.h>
7766#include <float.h>
7767
7768int
7769main ()
7770{
7771
7772 ;
7773 return 0;
7774}
7775_ACEOF
7776if ac_fn_c_try_compile "$LINENO"; then :
7777 ac_cv_header_stdc=yes
7778else
7779 ac_cv_header_stdc=no
7780fi
7781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7782
7783if test $ac_cv_header_stdc = yes; then
7784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786/* end confdefs.h. */
7787#include <string.h>
7788
7789_ACEOF
7790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7791 $EGREP "memchr" >/dev/null 2>&1; then :
7792
7793else
7794 ac_cv_header_stdc=no
7795fi
7796rm -f conftest*
7797
7798fi
7799
7800if test $ac_cv_header_stdc = yes; then
7801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803/* end confdefs.h. */
7804#include <stdlib.h>
7805
7806_ACEOF
7807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7808 $EGREP "free" >/dev/null 2>&1; then :
7809
7810else
7811 ac_cv_header_stdc=no
7812fi
7813rm -f conftest*
7814
7815fi
7816
7817if test $ac_cv_header_stdc = yes; then
7818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7819 if test "$cross_compiling" = yes; then :
7820 :
7821else
7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823/* end confdefs.h. */
7824#include <ctype.h>
7825#include <stdlib.h>
7826#if ((' ' & 0x0FF) == 0x020)
7827# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7828# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7829#else
7830# define ISLOWER(c) \
7831 (('a' <= (c) && (c) <= 'i') \
7832 || ('j' <= (c) && (c) <= 'r') \
7833 || ('s' <= (c) && (c) <= 'z'))
7834# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7835#endif
7836
7837#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7838int
7839main ()
7840{
7841 int i;
7842 for (i = 0; i < 256; i++)
7843 if (XOR (islower (i), ISLOWER (i))
7844 || toupper (i) != TOUPPER (i))
7845 return 2;
7846 return 0;
7847}
7848_ACEOF
7849if ac_fn_c_try_run "$LINENO"; then :
7850
7851else
7852 ac_cv_header_stdc=no
7853fi
7854rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7855 conftest.$ac_objext conftest.beam conftest.$ac_ext
7856fi
7857
7858fi
7859fi
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7861$as_echo "$ac_cv_header_stdc" >&6; }
7862if test $ac_cv_header_stdc = yes; then
7863
7864$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7865
7866fi
7867
7868# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7869for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7870 inttypes.h stdint.h unistd.h
7871do :
7872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7873ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7874"
22e05272 7875if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
48310492
RH
7876 cat >>confdefs.h <<_ACEOF
7877#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7878_ACEOF
7879
7880fi
7881
7882done
7883
7884
7885for ac_header in dlfcn.h
7886do :
7887 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7888"
22e05272 7889if test "x$ac_cv_header_dlfcn_h" = xyes; then :
48310492
RH
7890 cat >>confdefs.h <<_ACEOF
7891#define HAVE_DLFCN_H 1
7892_ACEOF
7893
7894fi
7895
7896done
7897
7898
7899
7900
7901
7902# Set options
7903
7904
7905
7906 enable_dlopen=no
7907
7908
7909 enable_win32_dll=no
7910
7911
7912 # Check whether --enable-shared was given.
7913if test "${enable_shared+set}" = set; then :
7914 enableval=$enable_shared; p=${PACKAGE-default}
7915 case $enableval in
7916 yes) enable_shared=yes ;;
7917 no) enable_shared=no ;;
7918 *)
7919 enable_shared=no
7920 # Look at the argument we got. We use all the common list separators.
7921 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7922 for pkg in $enableval; do
7923 IFS="$lt_save_ifs"
7924 if test "X$pkg" = "X$p"; then
7925 enable_shared=yes
7926 fi
7927 done
7928 IFS="$lt_save_ifs"
7929 ;;
7930 esac
7931else
7932 enable_shared=yes
7933fi
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943 # Check whether --enable-static was given.
7944if test "${enable_static+set}" = set; then :
7945 enableval=$enable_static; p=${PACKAGE-default}
7946 case $enableval in
7947 yes) enable_static=yes ;;
7948 no) enable_static=no ;;
7949 *)
7950 enable_static=no
7951 # Look at the argument we got. We use all the common list separators.
7952 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7953 for pkg in $enableval; do
7954 IFS="$lt_save_ifs"
7955 if test "X$pkg" = "X$p"; then
7956 enable_static=yes
7957 fi
7958 done
7959 IFS="$lt_save_ifs"
7960 ;;
7961 esac
7962else
7963 enable_static=yes
7964fi
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975# Check whether --with-pic was given.
7976if test "${with_pic+set}" = set; then :
7977 withval=$with_pic; pic_mode="$withval"
7978else
7979 pic_mode=default
7980fi
7981
7982
7983test -z "$pic_mode" && pic_mode=default
7984
7985
7986
7987
7988
7989
7990
7991 # Check whether --enable-fast-install was given.
7992if test "${enable_fast_install+set}" = set; then :
7993 enableval=$enable_fast_install; p=${PACKAGE-default}
7994 case $enableval in
7995 yes) enable_fast_install=yes ;;
7996 no) enable_fast_install=no ;;
7997 *)
7998 enable_fast_install=no
7999 # Look at the argument we got. We use all the common list separators.
8000 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8001 for pkg in $enableval; do
8002 IFS="$lt_save_ifs"
8003 if test "X$pkg" = "X$p"; then
8004 enable_fast_install=yes
8005 fi
8006 done
8007 IFS="$lt_save_ifs"
8008 ;;
8009 esac
8010else
8011 enable_fast_install=yes
8012fi
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024# This can be used to rebuild libtool when needed
8025LIBTOOL_DEPS="$ltmain"
8026
8027# Always use our own libtool.
8028LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055test -z "$LN_S" && LN_S="ln -s"
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070if test -n "${ZSH_VERSION+set}" ; then
8071 setopt NO_GLOB_SUBST
8072fi
8073
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8075$as_echo_n "checking for objdir... " >&6; }
22e05272 8076if ${lt_cv_objdir+:} false; then :
48310492
RH
8077 $as_echo_n "(cached) " >&6
8078else
8079 rm -f .libs 2>/dev/null
8080mkdir .libs 2>/dev/null
8081if test -d .libs; then
8082 lt_cv_objdir=.libs
8083else
8084 # MS-DOS does not allow filenames that begin with a dot.
8085 lt_cv_objdir=_libs
8086fi
8087rmdir .libs 2>/dev/null
8088fi
8089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8090$as_echo "$lt_cv_objdir" >&6; }
8091objdir=$lt_cv_objdir
8092
8093
8094
8095
8096
8097cat >>confdefs.h <<_ACEOF
8098#define LT_OBJDIR "$lt_cv_objdir/"
8099_ACEOF
8100
8101
8102
8103
8104case $host_os in
8105aix3*)
8106 # AIX sometimes has problems with the GCC collect2 program. For some
8107 # reason, if we set the COLLECT_NAMES environment variable, the problems
8108 # vanish in a puff of smoke.
8109 if test "X${COLLECT_NAMES+set}" != Xset; then
8110 COLLECT_NAMES=
8111 export COLLECT_NAMES
8112 fi
8113 ;;
8114esac
8115
8116# Global variables:
8117ofile=libtool
8118can_build_shared=yes
8119
8120# All known linkers require a `.a' archive for static linking (except MSVC,
8121# which needs '.lib').
8122libext=a
8123
8124with_gnu_ld="$lt_cv_prog_gnu_ld"
8125
8126old_CC="$CC"
8127old_CFLAGS="$CFLAGS"
8128
8129# Set sane defaults for various variables
8130test -z "$CC" && CC=cc
8131test -z "$LTCC" && LTCC=$CC
8132test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8133test -z "$LD" && LD=ld
8134test -z "$ac_objext" && ac_objext=o
8135
8136for cc_temp in $compiler""; do
8137 case $cc_temp in
8138 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8139 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8140 \-*) ;;
8141 *) break;;
8142 esac
8143done
8144cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8145
8146
8147# Only perform the check for file, if the check method requires it
8148test -z "$MAGIC_CMD" && MAGIC_CMD=file
8149case $deplibs_check_method in
8150file_magic*)
8151 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8153$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8154if ${lt_cv_path_MAGIC_CMD+:} false; then :
48310492
RH
8155 $as_echo_n "(cached) " >&6
8156else
8157 case $MAGIC_CMD in
8158[\\/*] | ?:[\\/]*)
8159 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8160 ;;
8161*)
8162 lt_save_MAGIC_CMD="$MAGIC_CMD"
8163 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8164 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8165 for ac_dir in $ac_dummy; do
8166 IFS="$lt_save_ifs"
8167 test -z "$ac_dir" && ac_dir=.
8168 if test -f $ac_dir/${ac_tool_prefix}file; then
8169 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8170 if test -n "$file_magic_test_file"; then
8171 case $deplibs_check_method in
8172 "file_magic "*)
8173 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8175 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8176 $EGREP "$file_magic_regex" > /dev/null; then
8177 :
8178 else
8179 cat <<_LT_EOF 1>&2
8180
8181*** Warning: the command libtool uses to detect shared libraries,
8182*** $file_magic_cmd, produces output that libtool cannot recognize.
8183*** The result is that libtool may fail to recognize shared libraries
8184*** as such. This will affect the creation of libtool libraries that
8185*** depend on shared libraries, but programs linked with such libtool
8186*** libraries will work regardless of this problem. Nevertheless, you
8187*** may want to report the problem to your system manager and/or to
8188*** bug-libtool@gnu.org
8189
8190_LT_EOF
8191 fi ;;
8192 esac
8193 fi
8194 break
8195 fi
8196 done
8197 IFS="$lt_save_ifs"
8198 MAGIC_CMD="$lt_save_MAGIC_CMD"
8199 ;;
8200esac
8201fi
8202
8203MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8204if test -n "$MAGIC_CMD"; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8206$as_echo "$MAGIC_CMD" >&6; }
8207else
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209$as_echo "no" >&6; }
8210fi
8211
8212
8213
8214
8215
8216if test -z "$lt_cv_path_MAGIC_CMD"; then
8217 if test -n "$ac_tool_prefix"; then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8219$as_echo_n "checking for file... " >&6; }
22e05272 8220if ${lt_cv_path_MAGIC_CMD+:} false; then :
48310492
RH
8221 $as_echo_n "(cached) " >&6
8222else
8223 case $MAGIC_CMD in
8224[\\/*] | ?:[\\/]*)
8225 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8226 ;;
8227*)
8228 lt_save_MAGIC_CMD="$MAGIC_CMD"
8229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8230 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8231 for ac_dir in $ac_dummy; do
8232 IFS="$lt_save_ifs"
8233 test -z "$ac_dir" && ac_dir=.
8234 if test -f $ac_dir/file; then
8235 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8236 if test -n "$file_magic_test_file"; then
8237 case $deplibs_check_method in
8238 "file_magic "*)
8239 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8241 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8242 $EGREP "$file_magic_regex" > /dev/null; then
8243 :
8244 else
8245 cat <<_LT_EOF 1>&2
8246
8247*** Warning: the command libtool uses to detect shared libraries,
8248*** $file_magic_cmd, produces output that libtool cannot recognize.
8249*** The result is that libtool may fail to recognize shared libraries
8250*** as such. This will affect the creation of libtool libraries that
8251*** depend on shared libraries, but programs linked with such libtool
8252*** libraries will work regardless of this problem. Nevertheless, you
8253*** may want to report the problem to your system manager and/or to
8254*** bug-libtool@gnu.org
8255
8256_LT_EOF
8257 fi ;;
8258 esac
8259 fi
8260 break
8261 fi
8262 done
8263 IFS="$lt_save_ifs"
8264 MAGIC_CMD="$lt_save_MAGIC_CMD"
8265 ;;
8266esac
8267fi
8268
8269MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8270if test -n "$MAGIC_CMD"; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8272$as_echo "$MAGIC_CMD" >&6; }
8273else
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275$as_echo "no" >&6; }
8276fi
8277
8278
8279 else
8280 MAGIC_CMD=:
8281 fi
8282fi
8283
8284 fi
8285 ;;
8286esac
8287
8288# Use C for the default configuration in the libtool script
8289
8290lt_save_CC="$CC"
8291ac_ext=c
8292ac_cpp='$CPP $CPPFLAGS'
8293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8295ac_compiler_gnu=$ac_cv_c_compiler_gnu
8296
8297
8298# Source file extension for C test sources.
8299ac_ext=c
8300
8301# Object file extension for compiled C test sources.
8302objext=o
8303objext=$objext
8304
8305# Code to be used in simple compile tests
8306lt_simple_compile_test_code="int some_variable = 0;"
8307
8308# Code to be used in simple link tests
8309lt_simple_link_test_code='int main(){return(0);}'
8310
8311
8312
8313
8314
8315
8316
8317# If no C compiler was specified, use CC.
8318LTCC=${LTCC-"$CC"}
8319
8320# If no C compiler flags were specified, use CFLAGS.
8321LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8322
8323# Allow CC to be a program name with arguments.
8324compiler=$CC
8325
8326# Save the default compiler, since it gets overwritten when the other
8327# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8328compiler_DEFAULT=$CC
8329
8330# save warnings/boilerplate of simple test code
8331ac_outfile=conftest.$ac_objext
8332echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8333eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8334_lt_compiler_boilerplate=`cat conftest.err`
8335$RM conftest*
8336
8337ac_outfile=conftest.$ac_objext
8338echo "$lt_simple_link_test_code" >conftest.$ac_ext
8339eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8340_lt_linker_boilerplate=`cat conftest.err`
8341$RM -r conftest*
8342
8343
8344## CAVEAT EMPTOR:
8345## There is no encapsulation within the following macros, do not change
8346## the running order or otherwise move them around unless you know exactly
8347## what you are doing...
8348if test -n "$compiler"; then
8349
8350lt_prog_compiler_no_builtin_flag=
8351
8352if test "$GCC" = yes; then
8353 case $cc_basename in
8354 nvcc*)
8355 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8356 *)
8357 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8358 esac
8359
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8361$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 8362if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
48310492
RH
8363 $as_echo_n "(cached) " >&6
8364else
8365 lt_cv_prog_compiler_rtti_exceptions=no
8366 ac_outfile=conftest.$ac_objext
8367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8368 lt_compiler_flag="-fno-rtti -fno-exceptions"
8369 # Insert the option either (1) after the last *FLAGS variable, or
8370 # (2) before a word containing "conftest.", or (3) at the end.
8371 # Note that $ac_compile itself does not contain backslashes and begins
8372 # with a dollar sign (not a hyphen), so the echo should work correctly.
8373 # The option is referenced via a variable to avoid confusing sed.
8374 lt_compile=`echo "$ac_compile" | $SED \
8375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8377 -e 's:$: $lt_compiler_flag:'`
8378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8379 (eval "$lt_compile" 2>conftest.err)
8380 ac_status=$?
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 if (exit $ac_status) && test -s "$ac_outfile"; then
8384 # The compiler can only warn and ignore the option if not recognized
8385 # So say no if there are warnings other than the usual output.
8386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8388 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8389 lt_cv_prog_compiler_rtti_exceptions=yes
8390 fi
8391 fi
8392 $RM conftest*
8393
8394fi
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8396$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8397
8398if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8399 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8400else
8401 :
8402fi
8403
8404fi
8405
8406
8407
8408
8409
8410
8411 lt_prog_compiler_wl=
8412lt_prog_compiler_pic=
8413lt_prog_compiler_static=
8414
8415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8416$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8417
8418 if test "$GCC" = yes; then
8419 lt_prog_compiler_wl='-Wl,'
8420 lt_prog_compiler_static='-static'
8421
8422 case $host_os in
8423 aix*)
8424 # All AIX code is PIC.
8425 if test "$host_cpu" = ia64; then
8426 # AIX 5 now supports IA64 processor
8427 lt_prog_compiler_static='-Bstatic'
8428 fi
00c2f0ef 8429 lt_prog_compiler_pic='-fPIC'
48310492
RH
8430 ;;
8431
8432 amigaos*)
8433 case $host_cpu in
8434 powerpc)
8435 # see comment about AmigaOS4 .so support
8436 lt_prog_compiler_pic='-fPIC'
8437 ;;
8438 m68k)
8439 # FIXME: we need at least 68020 code to build shared libraries, but
8440 # adding the `-m68020' flag to GCC prevents building anything better,
8441 # like `-m68040'.
8442 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8443 ;;
8444 esac
8445 ;;
8446
8447 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8448 # PIC is the default for these OSes.
8449 ;;
8450
8451 mingw* | cygwin* | pw32* | os2* | cegcc*)
8452 # This hack is so that the source file can tell whether it is being
8453 # built for inclusion in a dll (and should export symbols for example).
8454 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8455 # (--disable-auto-import) libraries
8456 lt_prog_compiler_pic='-DDLL_EXPORT'
8457 ;;
8458
8459 darwin* | rhapsody*)
8460 # PIC is the default on this platform
8461 # Common symbols not allowed in MH_DYLIB files
8462 lt_prog_compiler_pic='-fno-common'
8463 ;;
8464
8465 haiku*)
8466 # PIC is the default for Haiku.
8467 # The "-static" flag exists, but is broken.
8468 lt_prog_compiler_static=
8469 ;;
8470
8471 hpux*)
8472 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8473 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8474 # sets the default TLS model and affects inlining.
8475 case $host_cpu in
8476 hppa*64*)
8477 # +Z the default
8478 ;;
8479 *)
8480 lt_prog_compiler_pic='-fPIC'
8481 ;;
8482 esac
8483 ;;
8484
8485 interix[3-9]*)
8486 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8487 # Instead, we relocate shared libraries at runtime.
8488 ;;
8489
8490 msdosdjgpp*)
8491 # Just because we use GCC doesn't mean we suddenly get shared libraries
8492 # on systems that don't support them.
8493 lt_prog_compiler_can_build_shared=no
8494 enable_shared=no
8495 ;;
8496
8497 *nto* | *qnx*)
8498 # QNX uses GNU C++, but need to define -shared option too, otherwise
8499 # it will coredump.
8500 lt_prog_compiler_pic='-fPIC -shared'
8501 ;;
8502
8503 sysv4*MP*)
8504 if test -d /usr/nec; then
8505 lt_prog_compiler_pic=-Kconform_pic
8506 fi
8507 ;;
8508
8509 *)
8510 lt_prog_compiler_pic='-fPIC'
8511 ;;
8512 esac
8513
8514 case $cc_basename in
8515 nvcc*) # Cuda Compiler Driver 2.2
8516 lt_prog_compiler_wl='-Xlinker '
8517 lt_prog_compiler_pic='-Xcompiler -fPIC'
8518 ;;
8519 esac
8520 else
8521 # PORTME Check for flag to pass linker flags through the system compiler.
8522 case $host_os in
8523 aix*)
8524 lt_prog_compiler_wl='-Wl,'
8525 if test "$host_cpu" = ia64; then
8526 # AIX 5 now supports IA64 processor
8527 lt_prog_compiler_static='-Bstatic'
8528 else
8529 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8530 fi
8531 ;;
8532
8533 mingw* | cygwin* | pw32* | os2* | cegcc*)
8534 # This hack is so that the source file can tell whether it is being
8535 # built for inclusion in a dll (and should export symbols for example).
8536 lt_prog_compiler_pic='-DDLL_EXPORT'
8537 ;;
8538
8539 hpux9* | hpux10* | hpux11*)
8540 lt_prog_compiler_wl='-Wl,'
8541 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8542 # not for PA HP-UX.
8543 case $host_cpu in
8544 hppa*64*|ia64*)
8545 # +Z the default
8546 ;;
8547 *)
8548 lt_prog_compiler_pic='+Z'
8549 ;;
8550 esac
8551 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8552 lt_prog_compiler_static='${wl}-a ${wl}archive'
8553 ;;
8554
8555 irix5* | irix6* | nonstopux*)
8556 lt_prog_compiler_wl='-Wl,'
8557 # PIC (with -KPIC) is the default.
8558 lt_prog_compiler_static='-non_shared'
8559 ;;
8560
8561 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8562 case $cc_basename in
8563 # old Intel for x86_64 which still supported -KPIC.
8564 ecc*)
8565 lt_prog_compiler_wl='-Wl,'
8566 lt_prog_compiler_pic='-KPIC'
8567 lt_prog_compiler_static='-static'
8568 ;;
8569 # icc used to be incompatible with GCC.
8570 # ICC 10 doesn't accept -KPIC any more.
8571 icc* | ifort*)
8572 lt_prog_compiler_wl='-Wl,'
8573 lt_prog_compiler_pic='-fPIC'
8574 lt_prog_compiler_static='-static'
8575 ;;
8576 # Lahey Fortran 8.1.
8577 lf95*)
8578 lt_prog_compiler_wl='-Wl,'
8579 lt_prog_compiler_pic='--shared'
8580 lt_prog_compiler_static='--static'
8581 ;;
8582 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8583 # Portland Group compilers (*not* the Pentium gcc compiler,
8584 # which looks to be a dead project)
8585 lt_prog_compiler_wl='-Wl,'
8586 lt_prog_compiler_pic='-fpic'
8587 lt_prog_compiler_static='-Bstatic'
8588 ;;
8589 ccc*)
8590 lt_prog_compiler_wl='-Wl,'
8591 # All Alpha code is PIC.
8592 lt_prog_compiler_static='-non_shared'
8593 ;;
8594 xl* | bgxl* | bgf* | mpixl*)
8595 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8596 lt_prog_compiler_wl='-Wl,'
8597 lt_prog_compiler_pic='-qpic'
8598 lt_prog_compiler_static='-qstaticlink'
8599 ;;
8600 *)
8601 case `$CC -V 2>&1 | sed 5q` in
8602 *Sun\ F* | *Sun*Fortran*)
8603 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8604 lt_prog_compiler_pic='-KPIC'
8605 lt_prog_compiler_static='-Bstatic'
8606 lt_prog_compiler_wl=''
8607 ;;
8608 *Sun\ C*)
8609 # Sun C 5.9
8610 lt_prog_compiler_pic='-KPIC'
8611 lt_prog_compiler_static='-Bstatic'
8612 lt_prog_compiler_wl='-Wl,'
8613 ;;
8614 esac
8615 ;;
8616 esac
8617 ;;
8618
8619 newsos6)
8620 lt_prog_compiler_pic='-KPIC'
8621 lt_prog_compiler_static='-Bstatic'
8622 ;;
8623
8624 *nto* | *qnx*)
8625 # QNX uses GNU C++, but need to define -shared option too, otherwise
8626 # it will coredump.
8627 lt_prog_compiler_pic='-fPIC -shared'
8628 ;;
8629
8630 osf3* | osf4* | osf5*)
8631 lt_prog_compiler_wl='-Wl,'
8632 # All OSF/1 code is PIC.
8633 lt_prog_compiler_static='-non_shared'
8634 ;;
8635
8636 rdos*)
8637 lt_prog_compiler_static='-non_shared'
8638 ;;
8639
8640 solaris*)
8641 lt_prog_compiler_pic='-KPIC'
8642 lt_prog_compiler_static='-Bstatic'
8643 case $cc_basename in
8644 f77* | f90* | f95*)
8645 lt_prog_compiler_wl='-Qoption ld ';;
8646 *)
8647 lt_prog_compiler_wl='-Wl,';;
8648 esac
8649 ;;
8650
8651 sunos4*)
8652 lt_prog_compiler_wl='-Qoption ld '
8653 lt_prog_compiler_pic='-PIC'
8654 lt_prog_compiler_static='-Bstatic'
8655 ;;
8656
8657 sysv4 | sysv4.2uw2* | sysv4.3*)
8658 lt_prog_compiler_wl='-Wl,'
8659 lt_prog_compiler_pic='-KPIC'
8660 lt_prog_compiler_static='-Bstatic'
8661 ;;
8662
8663 sysv4*MP*)
8664 if test -d /usr/nec ;then
8665 lt_prog_compiler_pic='-Kconform_pic'
8666 lt_prog_compiler_static='-Bstatic'
8667 fi
8668 ;;
8669
8670 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8671 lt_prog_compiler_wl='-Wl,'
8672 lt_prog_compiler_pic='-KPIC'
8673 lt_prog_compiler_static='-Bstatic'
8674 ;;
8675
8676 unicos*)
8677 lt_prog_compiler_wl='-Wl,'
8678 lt_prog_compiler_can_build_shared=no
8679 ;;
8680
8681 uts4*)
8682 lt_prog_compiler_pic='-pic'
8683 lt_prog_compiler_static='-Bstatic'
8684 ;;
8685
8686 *)
8687 lt_prog_compiler_can_build_shared=no
8688 ;;
8689 esac
8690 fi
8691
8692case $host_os in
8693 # For platforms which do not support PIC, -DPIC is meaningless:
8694 *djgpp*)
8695 lt_prog_compiler_pic=
8696 ;;
8697 *)
8698 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8699 ;;
8700esac
8701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8702$as_echo "$lt_prog_compiler_pic" >&6; }
8703
8704
8705
8706
8707
8708
8709#
8710# Check to make sure the PIC flag actually works.
8711#
8712if test -n "$lt_prog_compiler_pic"; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8714$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 8715if ${lt_cv_prog_compiler_pic_works+:} false; then :
48310492
RH
8716 $as_echo_n "(cached) " >&6
8717else
8718 lt_cv_prog_compiler_pic_works=no
8719 ac_outfile=conftest.$ac_objext
8720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8721 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8722 # Insert the option either (1) after the last *FLAGS variable, or
8723 # (2) before a word containing "conftest.", or (3) at the end.
8724 # Note that $ac_compile itself does not contain backslashes and begins
8725 # with a dollar sign (not a hyphen), so the echo should work correctly.
8726 # The option is referenced via a variable to avoid confusing sed.
8727 lt_compile=`echo "$ac_compile" | $SED \
8728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8730 -e 's:$: $lt_compiler_flag:'`
8731 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8732 (eval "$lt_compile" 2>conftest.err)
8733 ac_status=$?
8734 cat conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 if (exit $ac_status) && test -s "$ac_outfile"; then
8737 # The compiler can only warn and ignore the option if not recognized
8738 # So say no if there are warnings other than the usual output.
8739 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8741 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8742 lt_cv_prog_compiler_pic_works=yes
8743 fi
8744 fi
8745 $RM conftest*
8746
8747fi
8748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8749$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8750
8751if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8752 case $lt_prog_compiler_pic in
8753 "" | " "*) ;;
8754 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8755 esac
8756else
8757 lt_prog_compiler_pic=
8758 lt_prog_compiler_can_build_shared=no
8759fi
8760
8761fi
8762
8763
8764
8765
8766
8767
8768#
8769# Check to make sure the static flag actually works.
8770#
8771wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8773$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 8774if ${lt_cv_prog_compiler_static_works+:} false; then :
48310492
RH
8775 $as_echo_n "(cached) " >&6
8776else
8777 lt_cv_prog_compiler_static_works=no
8778 save_LDFLAGS="$LDFLAGS"
8779 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8780 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8781 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8782 # The linker can only warn and ignore the option if not recognized
8783 # So say no if there are warnings
8784 if test -s conftest.err; then
8785 # Append any errors to the config.log.
8786 cat conftest.err 1>&5
8787 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8789 if diff conftest.exp conftest.er2 >/dev/null; then
8790 lt_cv_prog_compiler_static_works=yes
8791 fi
8792 else
8793 lt_cv_prog_compiler_static_works=yes
8794 fi
8795 fi
8796 $RM -r conftest*
8797 LDFLAGS="$save_LDFLAGS"
8798
8799fi
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8801$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8802
8803if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8804 :
8805else
8806 lt_prog_compiler_static=
8807fi
8808
8809
8810
8811
8812
8813
8814
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8816$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8817if ${lt_cv_prog_compiler_c_o+:} false; then :
48310492
RH
8818 $as_echo_n "(cached) " >&6
8819else
8820 lt_cv_prog_compiler_c_o=no
8821 $RM -r conftest 2>/dev/null
8822 mkdir conftest
8823 cd conftest
8824 mkdir out
8825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8826
8827 lt_compiler_flag="-o out/conftest2.$ac_objext"
8828 # Insert the option either (1) after the last *FLAGS variable, or
8829 # (2) before a word containing "conftest.", or (3) at the end.
8830 # Note that $ac_compile itself does not contain backslashes and begins
8831 # with a dollar sign (not a hyphen), so the echo should work correctly.
8832 lt_compile=`echo "$ac_compile" | $SED \
8833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8835 -e 's:$: $lt_compiler_flag:'`
8836 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8837 (eval "$lt_compile" 2>out/conftest.err)
8838 ac_status=$?
8839 cat out/conftest.err >&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8842 then
8843 # The compiler can only warn and ignore the option if not recognized
8844 # So say no if there are warnings
8845 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8846 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8847 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8848 lt_cv_prog_compiler_c_o=yes
8849 fi
8850 fi
8851 chmod u+w . 2>&5
8852 $RM conftest*
8853 # SGI C++ compiler will create directory out/ii_files/ for
8854 # template instantiation
8855 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8856 $RM out/* && rmdir out
8857 cd ..
8858 $RM -r conftest
8859 $RM conftest*
8860
8861fi
8862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8863$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8864
8865
8866
8867
8868
8869
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8871$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8872if ${lt_cv_prog_compiler_c_o+:} false; then :
48310492
RH
8873 $as_echo_n "(cached) " >&6
8874else
8875 lt_cv_prog_compiler_c_o=no
8876 $RM -r conftest 2>/dev/null
8877 mkdir conftest
8878 cd conftest
8879 mkdir out
8880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8881
8882 lt_compiler_flag="-o out/conftest2.$ac_objext"
8883 # Insert the option either (1) after the last *FLAGS variable, or
8884 # (2) before a word containing "conftest.", or (3) at the end.
8885 # Note that $ac_compile itself does not contain backslashes and begins
8886 # with a dollar sign (not a hyphen), so the echo should work correctly.
8887 lt_compile=`echo "$ac_compile" | $SED \
8888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8890 -e 's:$: $lt_compiler_flag:'`
8891 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8892 (eval "$lt_compile" 2>out/conftest.err)
8893 ac_status=$?
8894 cat out/conftest.err >&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8897 then
8898 # The compiler can only warn and ignore the option if not recognized
8899 # So say no if there are warnings
8900 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8901 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8902 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8903 lt_cv_prog_compiler_c_o=yes
8904 fi
8905 fi
8906 chmod u+w . 2>&5
8907 $RM conftest*
8908 # SGI C++ compiler will create directory out/ii_files/ for
8909 # template instantiation
8910 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8911 $RM out/* && rmdir out
8912 cd ..
8913 $RM -r conftest
8914 $RM conftest*
8915
8916fi
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8918$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8919
8920
8921
8922
8923hard_links="nottested"
8924if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8925 # do not overwrite the value of need_locks provided by the user
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8927$as_echo_n "checking if we can lock with hard links... " >&6; }
8928 hard_links=yes
8929 $RM conftest*
8930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8931 touch conftest.a
8932 ln conftest.a conftest.b 2>&5 || hard_links=no
8933 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8935$as_echo "$hard_links" >&6; }
8936 if test "$hard_links" = no; then
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8938$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8939 need_locks=warn
8940 fi
8941else
8942 need_locks=no
8943fi
8944
8945
8946
8947
8948
8949
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8951$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8952
8953 runpath_var=
8954 allow_undefined_flag=
8955 always_export_symbols=no
8956 archive_cmds=
8957 archive_expsym_cmds=
8958 compiler_needs_object=no
8959 enable_shared_with_static_runtimes=no
8960 export_dynamic_flag_spec=
8961 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8962 hardcode_automatic=no
8963 hardcode_direct=no
8964 hardcode_direct_absolute=no
8965 hardcode_libdir_flag_spec=
8966 hardcode_libdir_flag_spec_ld=
8967 hardcode_libdir_separator=
8968 hardcode_minus_L=no
8969 hardcode_shlibpath_var=unsupported
8970 inherit_rpath=no
8971 link_all_deplibs=unknown
8972 module_cmds=
8973 module_expsym_cmds=
8974 old_archive_from_new_cmds=
8975 old_archive_from_expsyms_cmds=
8976 thread_safe_flag_spec=
8977 whole_archive_flag_spec=
8978 # include_expsyms should be a list of space-separated symbols to be *always*
8979 # included in the symbol list
8980 include_expsyms=
8981 # exclude_expsyms can be an extended regexp of symbols to exclude
8982 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8983 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8984 # as well as any symbol that contains `d'.
8985 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8986 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8987 # platforms (ab)use it in PIC code, but their linkers get confused if
8988 # the symbol is explicitly referenced. Since portable code cannot
8989 # rely on this symbol name, it's probably fine to never include it in
8990 # preloaded symbol tables.
8991 # Exclude shared library initialization/finalization symbols.
8992 extract_expsyms_cmds=
8993
8994 case $host_os in
8995 cygwin* | mingw* | pw32* | cegcc*)
8996 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8997 # When not using gcc, we currently assume that we are using
8998 # Microsoft Visual C++.
8999 if test "$GCC" != yes; then
9000 with_gnu_ld=no
9001 fi
9002 ;;
9003 interix*)
9004 # we just hope/assume this is gcc and not c89 (= MSVC++)
9005 with_gnu_ld=yes
9006 ;;
9007 openbsd*)
9008 with_gnu_ld=no
9009 ;;
9010 esac
9011
9012 ld_shlibs=yes
9013
9014 # On some targets, GNU ld is compatible enough with the native linker
9015 # that we're better off using the native interface for both.
9016 lt_use_gnu_ld_interface=no
9017 if test "$with_gnu_ld" = yes; then
9018 case $host_os in
9019 aix*)
9020 # The AIX port of GNU ld has always aspired to compatibility
9021 # with the native linker. However, as the warning in the GNU ld
9022 # block says, versions before 2.19.5* couldn't really create working
9023 # shared libraries, regardless of the interface used.
9024 case `$LD -v 2>&1` in
9025 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9026 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9027 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9028 *)
9029 lt_use_gnu_ld_interface=yes
9030 ;;
9031 esac
9032 ;;
9033 *)
9034 lt_use_gnu_ld_interface=yes
9035 ;;
9036 esac
9037 fi
9038
9039 if test "$lt_use_gnu_ld_interface" = yes; then
9040 # If archive_cmds runs LD, not CC, wlarc should be empty
9041 wlarc='${wl}'
9042
9043 # Set some defaults for GNU ld with shared library support. These
9044 # are reset later if shared libraries are not supported. Putting them
9045 # here allows them to be overridden if necessary.
9046 runpath_var=LD_RUN_PATH
9047 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9048 export_dynamic_flag_spec='${wl}--export-dynamic'
9049 # ancient GNU ld didn't support --whole-archive et. al.
9050 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9051 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9052 else
9053 whole_archive_flag_spec=
9054 fi
9055 supports_anon_versioning=no
9056 case `$LD -v 2>&1` in
9057 *GNU\ gold*) supports_anon_versioning=yes ;;
9058 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9059 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9060 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9061 *\ 2.11.*) ;; # other 2.11 versions
9062 *) supports_anon_versioning=yes ;;
9063 esac
9064
9065 # See if GNU ld supports shared libraries.
9066 case $host_os in
9067 aix[3-9]*)
9068 # On AIX/PPC, the GNU linker is very broken
9069 if test "$host_cpu" != ia64; then
9070 ld_shlibs=no
9071 cat <<_LT_EOF 1>&2
9072
9073*** Warning: the GNU linker, at least up to release 2.19, is reported
9074*** to be unable to reliably create shared libraries on AIX.
9075*** Therefore, libtool is disabling shared libraries support. If you
9076*** really care for shared libraries, you may want to install binutils
9077*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9078*** You will then need to restart the configuration process.
9079
9080_LT_EOF
9081 fi
9082 ;;
9083
9084 amigaos*)
9085 case $host_cpu in
9086 powerpc)
9087 # see comment about AmigaOS4 .so support
9088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9089 archive_expsym_cmds=''
9090 ;;
9091 m68k)
9092 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)'
9093 hardcode_libdir_flag_spec='-L$libdir'
9094 hardcode_minus_L=yes
9095 ;;
9096 esac
9097 ;;
9098
9099 beos*)
9100 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9101 allow_undefined_flag=unsupported
9102 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9103 # support --undefined. This deserves some investigation. FIXME
9104 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9105 else
9106 ld_shlibs=no
9107 fi
9108 ;;
9109
9110 cygwin* | mingw* | pw32* | cegcc*)
9111 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9112 # as there is no search path for DLLs.
9113 hardcode_libdir_flag_spec='-L$libdir'
9114 export_dynamic_flag_spec='${wl}--export-all-symbols'
9115 allow_undefined_flag=unsupported
9116 always_export_symbols=no
9117 enable_shared_with_static_runtimes=yes
9118 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9119
9120 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9122 # If the export-symbols file already is a .def file (1st line
9123 # is EXPORTS), use it as is; otherwise, prepend...
9124 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9125 cp $export_symbols $output_objdir/$soname.def;
9126 else
9127 echo EXPORTS > $output_objdir/$soname.def;
9128 cat $export_symbols >> $output_objdir/$soname.def;
9129 fi~
9130 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9131 else
9132 ld_shlibs=no
9133 fi
9134 ;;
9135
9136 haiku*)
9137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9138 link_all_deplibs=yes
9139 ;;
9140
9141 interix[3-9]*)
9142 hardcode_direct=no
9143 hardcode_shlibpath_var=no
9144 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9145 export_dynamic_flag_spec='${wl}-E'
9146 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9147 # Instead, shared libraries are loaded at an image base (0x10000000 by
9148 # default) and relocated if they conflict, which is a slow very memory
9149 # consuming and fragmenting process. To avoid this, we pick a random,
9150 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9151 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9152 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9153 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'
9154 ;;
9155
b1e21e5a 9156 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
48310492
RH
9157 tmp_diet=no
9158 if test "$host_os" = linux-dietlibc; then
9159 case $cc_basename in
9160 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9161 esac
9162 fi
9163 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9164 && test "$tmp_diet" = no
9165 then
a699d672 9166 tmp_addflag=' $pic_flag'
48310492
RH
9167 tmp_sharedflag='-shared'
9168 case $cc_basename,$host_cpu in
9169 pgcc*) # Portland Group C compiler
9170 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'
9171 tmp_addflag=' $pic_flag'
9172 ;;
9173 pgf77* | pgf90* | pgf95* | pgfortran*)
9174 # Portland Group f77 and f90 compilers
9175 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'
9176 tmp_addflag=' $pic_flag -Mnomain' ;;
9177 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9178 tmp_addflag=' -i_dynamic' ;;
9179 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9180 tmp_addflag=' -i_dynamic -nofor_main' ;;
9181 ifc* | ifort*) # Intel Fortran compiler
9182 tmp_addflag=' -nofor_main' ;;
9183 lf95*) # Lahey Fortran 8.1
9184 whole_archive_flag_spec=
9185 tmp_sharedflag='--shared' ;;
9186 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9187 tmp_sharedflag='-qmkshrobj'
9188 tmp_addflag= ;;
9189 nvcc*) # Cuda Compiler Driver 2.2
9190 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'
9191 compiler_needs_object=yes
9192 ;;
9193 esac
9194 case `$CC -V 2>&1 | sed 5q` in
9195 *Sun\ C*) # Sun C 5.9
9196 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'
9197 compiler_needs_object=yes
9198 tmp_sharedflag='-G' ;;
9199 *Sun\ F*) # Sun Fortran 8.3
9200 tmp_sharedflag='-G' ;;
9201 esac
9202 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9203
9204 if test "x$supports_anon_versioning" = xyes; then
9205 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9206 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9207 echo "local: *; };" >> $output_objdir/$libname.ver~
9208 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9209 fi
9210
9211 case $cc_basename in
9212 xlf* | bgf* | bgxlf* | mpixlf*)
9213 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9214 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9215 hardcode_libdir_flag_spec=
9216 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9217 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9218 if test "x$supports_anon_versioning" = xyes; then
9219 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9220 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9221 echo "local: *; };" >> $output_objdir/$libname.ver~
9222 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9223 fi
9224 ;;
9225 esac
9226 else
9227 ld_shlibs=no
9228 fi
9229 ;;
9230
9231 netbsd*)
9232 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9233 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9234 wlarc=
9235 else
9236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9237 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9238 fi
9239 ;;
9240
9241 solaris*)
9242 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9243 ld_shlibs=no
9244 cat <<_LT_EOF 1>&2
9245
9246*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9247*** create shared libraries on Solaris systems. Therefore, libtool
9248*** is disabling shared libraries support. We urge you to upgrade GNU
9249*** binutils to release 2.9.1 or newer. Another option is to modify
9250*** your PATH or compiler configuration so that the native linker is
9251*** used, and then restart.
9252
9253_LT_EOF
9254 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9256 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9257 else
9258 ld_shlibs=no
9259 fi
9260 ;;
9261
9262 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9263 case `$LD -v 2>&1` in
9264 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9265 ld_shlibs=no
9266 cat <<_LT_EOF 1>&2
9267
9268*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9269*** reliably create shared libraries on SCO systems. Therefore, libtool
9270*** is disabling shared libraries support. We urge you to upgrade GNU
9271*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9272*** your PATH or compiler configuration so that the native linker is
9273*** used, and then restart.
9274
9275_LT_EOF
9276 ;;
9277 *)
9278 # For security reasons, it is highly recommended that you always
9279 # use absolute paths for naming shared libraries, and exclude the
9280 # DT_RUNPATH tag from executables and libraries. But doing so
9281 # requires that you compile everything twice, which is a pain.
9282 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9283 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9285 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9286 else
9287 ld_shlibs=no
9288 fi
9289 ;;
9290 esac
9291 ;;
9292
9293 sunos4*)
9294 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9295 wlarc=
9296 hardcode_direct=yes
9297 hardcode_shlibpath_var=no
9298 ;;
9299
9300 *)
9301 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9303 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9304 else
9305 ld_shlibs=no
9306 fi
9307 ;;
9308 esac
9309
9310 if test "$ld_shlibs" = no; then
9311 runpath_var=
9312 hardcode_libdir_flag_spec=
9313 export_dynamic_flag_spec=
9314 whole_archive_flag_spec=
9315 fi
9316 else
9317 # PORTME fill in a description of your system's linker (not GNU ld)
9318 case $host_os in
9319 aix3*)
9320 allow_undefined_flag=unsupported
9321 always_export_symbols=yes
9322 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'
9323 # Note: this linker hardcodes the directories in LIBPATH if there
9324 # are no directories specified by -L.
9325 hardcode_minus_L=yes
9326 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9327 # Neither direct hardcoding nor static linking is supported with a
9328 # broken collect2.
9329 hardcode_direct=unsupported
9330 fi
9331 ;;
9332
9333 aix[4-9]*)
9334 if test "$host_cpu" = ia64; then
9335 # On IA64, the linker does run time linking by default, so we don't
9336 # have to do anything special.
9337 aix_use_runtimelinking=no
9338 exp_sym_flag='-Bexport'
9339 no_entry_flag=""
9340 else
9341 # If we're using GNU nm, then we don't want the "-C" option.
9342 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9343 # Also, AIX nm treats weak defined symbols like other global
9344 # defined symbols, whereas GNU nm marks them as "W".
9345 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9346 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'
9347 else
84c1b9d3 9348 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
48310492
RH
9349 fi
9350 aix_use_runtimelinking=no
9351
9352 # Test if we are trying to use run time linking or normal
9353 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9354 # need to do runtime linking.
9355 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9356 for ld_flag in $LDFLAGS; do
9357 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9358 aix_use_runtimelinking=yes
9359 break
9360 fi
9361 done
9362 ;;
9363 esac
9364
9365 exp_sym_flag='-bexport'
9366 no_entry_flag='-bnoentry'
9367 fi
9368
9369 # When large executables or shared objects are built, AIX ld can
9370 # have problems creating the table of contents. If linking a library
9371 # or program results in "error TOC overflow" add -mminimal-toc to
9372 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9373 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9374
9375 archive_cmds=''
9376 hardcode_direct=yes
9377 hardcode_direct_absolute=yes
9378 hardcode_libdir_separator=':'
9379 link_all_deplibs=yes
9380 file_list_spec='${wl}-f,'
9381
9382 if test "$GCC" = yes; then
9383 case $host_os in aix4.[012]|aix4.[012].*)
9384 # We only want to do this on AIX 4.2 and lower, the check
9385 # below for broken collect2 doesn't work under 4.3+
9386 collect2name=`${CC} -print-prog-name=collect2`
9387 if test -f "$collect2name" &&
9388 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9389 then
9390 # We have reworked collect2
9391 :
9392 else
9393 # We have old collect2
9394 hardcode_direct=unsupported
9395 # It fails to find uninstalled libraries when the uninstalled
9396 # path is not listed in the libpath. Setting hardcode_minus_L
9397 # to unsupported forces relinking
9398 hardcode_minus_L=yes
9399 hardcode_libdir_flag_spec='-L$libdir'
9400 hardcode_libdir_separator=
9401 fi
9402 ;;
9403 esac
9404 shared_flag='-shared'
9405 if test "$aix_use_runtimelinking" = yes; then
9406 shared_flag="$shared_flag "'${wl}-G'
9407 fi
9408 else
9409 # not using gcc
9410 if test "$host_cpu" = ia64; then
9411 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9412 # chokes on -Wl,-G. The following line is correct:
9413 shared_flag='-G'
9414 else
9415 if test "$aix_use_runtimelinking" = yes; then
9416 shared_flag='${wl}-G'
9417 else
9418 shared_flag='${wl}-bM:SRE'
9419 fi
9420 fi
9421 fi
9422
9423 export_dynamic_flag_spec='${wl}-bexpall'
9424 # It seems that -bexpall does not export symbols beginning with
9425 # underscore (_), so it is better to generate a list of symbols to export.
9426 always_export_symbols=yes
9427 if test "$aix_use_runtimelinking" = yes; then
9428 # Warning - without using the other runtime loading flags (-brtl),
9429 # -berok will link without error, but may produce a broken library.
9430 allow_undefined_flag='-berok'
9431 # Determine the default libpath from the value encoded in an
9432 # empty executable.
9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434/* end confdefs.h. */
9435
9436int
9437main ()
9438{
9439
9440 ;
9441 return 0;
9442}
9443_ACEOF
9444if ac_fn_c_try_link "$LINENO"; then :
9445
9446lt_aix_libpath_sed='
9447 /Import File Strings/,/^$/ {
9448 /^0/ {
9449 s/^0 *\(.*\)$/\1/
9450 p
9451 }
9452 }'
9453aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9454# Check for a 64-bit object if we didn't find anything.
9455if test -z "$aix_libpath"; then
9456 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9457fi
9458fi
9459rm -f core conftest.err conftest.$ac_objext \
9460 conftest$ac_exeext conftest.$ac_ext
9461if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9462
9463 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9464 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"
9465 else
9466 if test "$host_cpu" = ia64; then
9467 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9468 allow_undefined_flag="-z nodefs"
9469 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"
9470 else
9471 # Determine the default libpath from the value encoded in an
9472 # empty executable.
9473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474/* end confdefs.h. */
9475
9476int
9477main ()
9478{
9479
9480 ;
9481 return 0;
9482}
9483_ACEOF
9484if ac_fn_c_try_link "$LINENO"; then :
9485
9486lt_aix_libpath_sed='
9487 /Import File Strings/,/^$/ {
9488 /^0/ {
9489 s/^0 *\(.*\)$/\1/
9490 p
9491 }
9492 }'
9493aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9494# Check for a 64-bit object if we didn't find anything.
9495if test -z "$aix_libpath"; then
9496 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9497fi
9498fi
9499rm -f core conftest.err conftest.$ac_objext \
9500 conftest$ac_exeext conftest.$ac_ext
9501if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9502
9503 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9504 # Warning - without using the other run time loading flags,
9505 # -berok will link without error, but may produce a broken library.
9506 no_undefined_flag=' ${wl}-bernotok'
9507 allow_undefined_flag=' ${wl}-berok'
9508 if test "$with_gnu_ld" = yes; then
9509 # We only use this code for GNU lds that support --whole-archive.
9510 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9511 else
9512 # Exported symbols can be pulled into shared objects from archives
9513 whole_archive_flag_spec='$convenience'
9514 fi
9515 archive_cmds_need_lc=yes
9516 # This is similar to how AIX traditionally builds its shared libraries.
9517 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'
9518 fi
9519 fi
9520 ;;
9521
9522 amigaos*)
9523 case $host_cpu in
9524 powerpc)
9525 # see comment about AmigaOS4 .so support
9526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9527 archive_expsym_cmds=''
9528 ;;
9529 m68k)
9530 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)'
9531 hardcode_libdir_flag_spec='-L$libdir'
9532 hardcode_minus_L=yes
9533 ;;
9534 esac
9535 ;;
9536
9537 bsdi[45]*)
9538 export_dynamic_flag_spec=-rdynamic
9539 ;;
9540
9541 cygwin* | mingw* | pw32* | cegcc*)
9542 # When not using gcc, we currently assume that we are using
9543 # Microsoft Visual C++.
9544 # hardcode_libdir_flag_spec is actually meaningless, as there is
9545 # no search path for DLLs.
9546 hardcode_libdir_flag_spec=' '
9547 allow_undefined_flag=unsupported
9548 # Tell ltmain to make .lib files, not .a files.
9549 libext=lib
9550 # Tell ltmain to make .dll files, not .so files.
9551 shrext_cmds=".dll"
9552 # FIXME: Setting linknames here is a bad hack.
9553 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9554 # The linker will automatically build a .lib file if we build a DLL.
9555 old_archive_from_new_cmds='true'
9556 # FIXME: Should let the user specify the lib program.
9557 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9558 fix_srcfile_path='`cygpath -w "$srcfile"`'
9559 enable_shared_with_static_runtimes=yes
9560 ;;
9561
9562 darwin* | rhapsody*)
9563
9564
9565 archive_cmds_need_lc=no
9566 hardcode_direct=no
9567 hardcode_automatic=yes
9568 hardcode_shlibpath_var=unsupported
9569 if test "$lt_cv_ld_force_load" = "yes"; then
9570 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\"`'
9571 else
9572 whole_archive_flag_spec=''
9573 fi
9574 link_all_deplibs=yes
9575 allow_undefined_flag="$_lt_dar_allow_undefined"
9576 case $cc_basename in
9577 ifort*) _lt_dar_can_shared=yes ;;
9578 *) _lt_dar_can_shared=$GCC ;;
9579 esac
9580 if test "$_lt_dar_can_shared" = "yes"; then
9581 output_verbose_link_cmd=func_echo_all
9582 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9583 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9584 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}"
9585 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}"
9586
9587 else
9588 ld_shlibs=no
9589 fi
9590
9591 ;;
9592
9593 dgux*)
9594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9595 hardcode_libdir_flag_spec='-L$libdir'
9596 hardcode_shlibpath_var=no
9597 ;;
9598
9599 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9600 # support. Future versions do this automatically, but an explicit c++rt0.o
9601 # does not break anything, and helps significantly (at the cost of a little
9602 # extra space).
9603 freebsd2.2*)
9604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9605 hardcode_libdir_flag_spec='-R$libdir'
9606 hardcode_direct=yes
9607 hardcode_shlibpath_var=no
9608 ;;
9609
9610 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9611 freebsd2.*)
9612 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9613 hardcode_direct=yes
9614 hardcode_minus_L=yes
9615 hardcode_shlibpath_var=no
9616 ;;
9617
9618 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9619 freebsd* | dragonfly*)
9620 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9621 hardcode_libdir_flag_spec='-R$libdir'
9622 hardcode_direct=yes
9623 hardcode_shlibpath_var=no
9624 ;;
9625
9626 hpux9*)
9627 if test "$GCC" = yes; then
9628 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'
9629 else
9630 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'
9631 fi
9632 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9633 hardcode_libdir_separator=:
9634 hardcode_direct=yes
9635
9636 # hardcode_minus_L: Not really in the search PATH,
9637 # but as the default location of the library.
9638 hardcode_minus_L=yes
9639 export_dynamic_flag_spec='${wl}-E'
9640 ;;
9641
9642 hpux10*)
9643 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9644 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9645 else
9646 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9647 fi
9648 if test "$with_gnu_ld" = no; then
9649 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9650 hardcode_libdir_flag_spec_ld='+b $libdir'
9651 hardcode_libdir_separator=:
9652 hardcode_direct=yes
9653 hardcode_direct_absolute=yes
9654 export_dynamic_flag_spec='${wl}-E'
9655 # hardcode_minus_L: Not really in the search PATH,
9656 # but as the default location of the library.
9657 hardcode_minus_L=yes
9658 fi
9659 ;;
9660
9661 hpux11*)
9662 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9663 case $host_cpu in
9664 hppa*64*)
4e4ba647 9665 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48310492
RH
9666 ;;
9667 ia64*)
9668 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9669 ;;
9670 *)
9671 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9672 ;;
9673 esac
9674 else
9675 case $host_cpu in
9676 hppa*64*)
4e4ba647 9677 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48310492
RH
9678 ;;
9679 ia64*)
9680 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9681 ;;
9682 *)
9683
9684 # Older versions of the 11.00 compiler do not understand -b yet
9685 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9687$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 9688if ${lt_cv_prog_compiler__b+:} false; then :
48310492
RH
9689 $as_echo_n "(cached) " >&6
9690else
9691 lt_cv_prog_compiler__b=no
9692 save_LDFLAGS="$LDFLAGS"
9693 LDFLAGS="$LDFLAGS -b"
9694 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9695 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9696 # The linker can only warn and ignore the option if not recognized
9697 # So say no if there are warnings
9698 if test -s conftest.err; then
9699 # Append any errors to the config.log.
9700 cat conftest.err 1>&5
9701 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9703 if diff conftest.exp conftest.er2 >/dev/null; then
9704 lt_cv_prog_compiler__b=yes
9705 fi
9706 else
9707 lt_cv_prog_compiler__b=yes
9708 fi
9709 fi
9710 $RM -r conftest*
9711 LDFLAGS="$save_LDFLAGS"
9712
9713fi
9714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9715$as_echo "$lt_cv_prog_compiler__b" >&6; }
9716
9717if test x"$lt_cv_prog_compiler__b" = xyes; then
9718 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9719else
9720 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9721fi
9722
9723 ;;
9724 esac
9725 fi
9726 if test "$with_gnu_ld" = no; then
9727 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9728 hardcode_libdir_separator=:
9729
9730 case $host_cpu in
9731 hppa*64*|ia64*)
9732 hardcode_direct=no
9733 hardcode_shlibpath_var=no
9734 ;;
9735 *)
9736 hardcode_direct=yes
9737 hardcode_direct_absolute=yes
9738 export_dynamic_flag_spec='${wl}-E'
9739
9740 # hardcode_minus_L: Not really in the search PATH,
9741 # but as the default location of the library.
9742 hardcode_minus_L=yes
9743 ;;
9744 esac
9745 fi
9746 ;;
9747
9748 irix5* | irix6* | nonstopux*)
9749 if test "$GCC" = yes; then
9750 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'
9751 # Try to use the -exported_symbol ld option, if it does not
9752 # work, assume that -exports_file does not work either and
9753 # implicitly export all symbols.
9754 save_LDFLAGS="$LDFLAGS"
9755 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757/* end confdefs.h. */
9758int foo(void) {}
9759_ACEOF
9760if ac_fn_c_try_link "$LINENO"; then :
9761 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'
9762
9763fi
9764rm -f core conftest.err conftest.$ac_objext \
9765 conftest$ac_exeext conftest.$ac_ext
9766 LDFLAGS="$save_LDFLAGS"
9767 else
9768 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'
9769 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'
9770 fi
9771 archive_cmds_need_lc='no'
9772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9773 hardcode_libdir_separator=:
9774 inherit_rpath=yes
9775 link_all_deplibs=yes
9776 ;;
9777
9778 netbsd*)
9779 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9781 else
9782 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9783 fi
9784 hardcode_libdir_flag_spec='-R$libdir'
9785 hardcode_direct=yes
9786 hardcode_shlibpath_var=no
9787 ;;
9788
9789 newsos6)
9790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9791 hardcode_direct=yes
9792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9793 hardcode_libdir_separator=:
9794 hardcode_shlibpath_var=no
9795 ;;
9796
9797 *nto* | *qnx*)
9798 ;;
9799
9800 openbsd*)
9801 if test -f /usr/libexec/ld.so; then
9802 hardcode_direct=yes
9803 hardcode_shlibpath_var=no
9804 hardcode_direct_absolute=yes
9805 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9806 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9807 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9808 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9809 export_dynamic_flag_spec='${wl}-E'
9810 else
9811 case $host_os in
9812 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9814 hardcode_libdir_flag_spec='-R$libdir'
9815 ;;
9816 *)
9817 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9818 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9819 ;;
9820 esac
9821 fi
9822 else
9823 ld_shlibs=no
9824 fi
9825 ;;
9826
9827 os2*)
9828 hardcode_libdir_flag_spec='-L$libdir'
9829 hardcode_minus_L=yes
9830 allow_undefined_flag=unsupported
9831 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'
9832 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9833 ;;
9834
9835 osf3*)
9836 if test "$GCC" = yes; then
9837 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9838 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'
9839 else
9840 allow_undefined_flag=' -expect_unresolved \*'
9841 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'
9842 fi
9843 archive_cmds_need_lc='no'
9844 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9845 hardcode_libdir_separator=:
9846 ;;
9847
9848 osf4* | osf5*) # as osf3* with the addition of -msym flag
9849 if test "$GCC" = yes; then
9850 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9851 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'
9852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9853 else
9854 allow_undefined_flag=' -expect_unresolved \*'
9855 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'
9856 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~
9857 $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'
9858
9859 # Both c and cxx compiler support -rpath directly
9860 hardcode_libdir_flag_spec='-rpath $libdir'
9861 fi
9862 archive_cmds_need_lc='no'
9863 hardcode_libdir_separator=:
9864 ;;
9865
9866 solaris*)
9867 no_undefined_flag=' -z defs'
9868 if test "$GCC" = yes; then
9869 wlarc='${wl}'
9870 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9871 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9872 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9873 else
9874 case `$CC -V 2>&1` in
9875 *"Compilers 5.0"*)
9876 wlarc=''
9877 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9878 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9879 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9880 ;;
9881 *)
9882 wlarc='${wl}'
9883 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9884 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9885 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9886 ;;
9887 esac
9888 fi
9889 hardcode_libdir_flag_spec='-R$libdir'
9890 hardcode_shlibpath_var=no
9891 case $host_os in
9892 solaris2.[0-5] | solaris2.[0-5].*) ;;
9893 *)
9894 # The compiler driver will combine and reorder linker options,
9895 # but understands `-z linker_flag'. GCC discards it without `$wl',
9896 # but is careful enough not to reorder.
9897 # Supported since Solaris 2.6 (maybe 2.5.1?)
9898 if test "$GCC" = yes; then
9899 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9900 else
9901 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9902 fi
9903 ;;
9904 esac
9905 link_all_deplibs=yes
9906 ;;
9907
9908 sunos4*)
9909 if test "x$host_vendor" = xsequent; then
9910 # Use $CC to link under sequent, because it throws in some extra .o
9911 # files that make .init and .fini sections work.
9912 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9913 else
9914 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9915 fi
9916 hardcode_libdir_flag_spec='-L$libdir'
9917 hardcode_direct=yes
9918 hardcode_minus_L=yes
9919 hardcode_shlibpath_var=no
9920 ;;
9921
9922 sysv4)
9923 case $host_vendor in
9924 sni)
9925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9926 hardcode_direct=yes # is this really true???
9927 ;;
9928 siemens)
9929 ## LD is ld it makes a PLAMLIB
9930 ## CC just makes a GrossModule.
9931 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9932 reload_cmds='$CC -r -o $output$reload_objs'
9933 hardcode_direct=no
9934 ;;
9935 motorola)
9936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9937 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9938 ;;
9939 esac
9940 runpath_var='LD_RUN_PATH'
9941 hardcode_shlibpath_var=no
9942 ;;
9943
9944 sysv4.3*)
9945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9946 hardcode_shlibpath_var=no
9947 export_dynamic_flag_spec='-Bexport'
9948 ;;
9949
9950 sysv4*MP*)
9951 if test -d /usr/nec; then
9952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9953 hardcode_shlibpath_var=no
9954 runpath_var=LD_RUN_PATH
9955 hardcode_runpath_var=yes
9956 ld_shlibs=yes
9957 fi
9958 ;;
9959
9960 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9961 no_undefined_flag='${wl}-z,text'
9962 archive_cmds_need_lc=no
9963 hardcode_shlibpath_var=no
9964 runpath_var='LD_RUN_PATH'
9965
9966 if test "$GCC" = yes; then
9967 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9968 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9969 else
9970 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9971 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9972 fi
9973 ;;
9974
9975 sysv5* | sco3.2v5* | sco5v6*)
9976 # Note: We can NOT use -z defs as we might desire, because we do not
9977 # link with -lc, and that would cause any symbols used from libc to
9978 # always be unresolved, which means just about no library would
9979 # ever link correctly. If we're not using GNU ld we use -z text
9980 # though, which does catch some bad symbols but isn't as heavy-handed
9981 # as -z defs.
9982 no_undefined_flag='${wl}-z,text'
9983 allow_undefined_flag='${wl}-z,nodefs'
9984 archive_cmds_need_lc=no
9985 hardcode_shlibpath_var=no
9986 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9987 hardcode_libdir_separator=':'
9988 link_all_deplibs=yes
9989 export_dynamic_flag_spec='${wl}-Bexport'
9990 runpath_var='LD_RUN_PATH'
9991
9992 if test "$GCC" = yes; then
9993 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9994 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9995 else
9996 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9997 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9998 fi
9999 ;;
10000
10001 uts4*)
10002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003 hardcode_libdir_flag_spec='-L$libdir'
10004 hardcode_shlibpath_var=no
10005 ;;
10006
10007 *)
10008 ld_shlibs=no
10009 ;;
10010 esac
10011
10012 if test x$host_vendor = xsni; then
10013 case $host in
10014 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10015 export_dynamic_flag_spec='${wl}-Blargedynsym'
10016 ;;
10017 esac
10018 fi
10019 fi
10020
10021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10022$as_echo "$ld_shlibs" >&6; }
10023test "$ld_shlibs" = no && can_build_shared=no
10024
10025with_gnu_ld=$with_gnu_ld
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041#
10042# Do we need to explicitly link libc?
10043#
10044case "x$archive_cmds_need_lc" in
10045x|xyes)
10046 # Assume -lc should be added
10047 archive_cmds_need_lc=yes
10048
10049 if test "$enable_shared" = yes && test "$GCC" = yes; then
10050 case $archive_cmds in
10051 *'~'*)
10052 # FIXME: we may have to deal with multi-command sequences.
10053 ;;
10054 '$CC '*)
10055 # Test whether the compiler implicitly links with -lc since on some
10056 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10057 # to ld, don't add -lc before -lgcc.
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10059$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10060if ${lt_cv_archive_cmds_need_lc+:} false; then :
48310492
RH
10061 $as_echo_n "(cached) " >&6
10062else
10063 $RM conftest*
10064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10065
10066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10067 (eval $ac_compile) 2>&5
10068 ac_status=$?
10069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10070 test $ac_status = 0; } 2>conftest.err; then
10071 soname=conftest
10072 lib=conftest
10073 libobjs=conftest.$ac_objext
10074 deplibs=
10075 wl=$lt_prog_compiler_wl
10076 pic_flag=$lt_prog_compiler_pic
10077 compiler_flags=-v
10078 linker_flags=-v
10079 verstring=
10080 output_objdir=.
10081 libname=conftest
10082 lt_save_allow_undefined_flag=$allow_undefined_flag
10083 allow_undefined_flag=
10084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10085 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10086 ac_status=$?
10087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10088 test $ac_status = 0; }
10089 then
10090 lt_cv_archive_cmds_need_lc=no
10091 else
10092 lt_cv_archive_cmds_need_lc=yes
10093 fi
10094 allow_undefined_flag=$lt_save_allow_undefined_flag
10095 else
10096 cat conftest.err 1>&5
10097 fi
10098 $RM conftest*
10099
10100fi
10101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10102$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10103 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10104 ;;
10105 esac
10106 fi
10107 ;;
10108esac
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10267$as_echo_n "checking dynamic linker characteristics... " >&6; }
10268
10269if test "$GCC" = yes; then
10270 case $host_os in
10271 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10272 *) lt_awk_arg="/^libraries:/" ;;
10273 esac
10274 case $host_os in
10275 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10276 *) lt_sed_strip_eq="s,=/,/,g" ;;
10277 esac
10278 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10279 case $lt_search_path_spec in
10280 *\;*)
10281 # if the path contains ";" then we assume it to be the separator
10282 # otherwise default to the standard path separator (i.e. ":") - it is
10283 # assumed that no part of a normal pathname contains ";" but that should
10284 # okay in the real world where ";" in dirpaths is itself problematic.
10285 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10286 ;;
10287 *)
10288 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10289 ;;
10290 esac
10291 # Ok, now we have the path, separated by spaces, we can step through it
10292 # and add multilib dir if necessary.
10293 lt_tmp_lt_search_path_spec=
10294 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10295 for lt_sys_path in $lt_search_path_spec; do
10296 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10297 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10298 else
10299 test -d "$lt_sys_path" && \
10300 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10301 fi
10302 done
10303 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10304BEGIN {RS=" "; FS="/|\n";} {
10305 lt_foo="";
10306 lt_count=0;
10307 for (lt_i = NF; lt_i > 0; lt_i--) {
10308 if ($lt_i != "" && $lt_i != ".") {
10309 if ($lt_i == "..") {
10310 lt_count++;
10311 } else {
10312 if (lt_count == 0) {
10313 lt_foo="/" $lt_i lt_foo;
10314 } else {
10315 lt_count--;
10316 }
10317 }
10318 }
10319 }
10320 if (lt_foo != "") { lt_freq[lt_foo]++; }
10321 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10322}'`
10323 # AWK program above erroneously prepends '/' to C:/dos/paths
10324 # for these hosts.
10325 case $host_os in
10326 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10327 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10328 esac
10329 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10330else
10331 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10332fi
10333library_names_spec=
10334libname_spec='lib$name'
10335soname_spec=
10336shrext_cmds=".so"
10337postinstall_cmds=
10338postuninstall_cmds=
10339finish_cmds=
10340finish_eval=
10341shlibpath_var=
10342shlibpath_overrides_runpath=unknown
10343version_type=none
10344dynamic_linker="$host_os ld.so"
10345sys_lib_dlsearch_path_spec="/lib /usr/lib"
10346need_lib_prefix=unknown
10347hardcode_into_libs=no
10348
10349# when you set need_version to no, make sure it does not cause -set_version
10350# flags to be left without arguments
10351need_version=unknown
10352
10353case $host_os in
10354aix3*)
10355 version_type=linux
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10357 shlibpath_var=LIBPATH
10358
10359 # AIX 3 has no versioning support, so we append a major version to the name.
10360 soname_spec='${libname}${release}${shared_ext}$major'
10361 ;;
10362
10363aix[4-9]*)
10364 version_type=linux
10365 need_lib_prefix=no
10366 need_version=no
10367 hardcode_into_libs=yes
10368 if test "$host_cpu" = ia64; then
10369 # AIX 5 supports IA64
10370 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10371 shlibpath_var=LD_LIBRARY_PATH
10372 else
10373 # With GCC up to 2.95.x, collect2 would create an import file
10374 # for dependence libraries. The import file would start with
10375 # the line `#! .'. This would cause the generated library to
10376 # depend on `.', always an invalid library. This was fixed in
10377 # development snapshots of GCC prior to 3.0.
10378 case $host_os in
10379 aix4 | aix4.[01] | aix4.[01].*)
10380 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10381 echo ' yes '
10382 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10383 :
10384 else
10385 can_build_shared=no
10386 fi
10387 ;;
10388 esac
10389 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10390 # soname into executable. Probably we can add versioning support to
10391 # collect2, so additional links can be useful in future.
10392 if test "$aix_use_runtimelinking" = yes; then
10393 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10394 # instead of lib<name>.a to let people know that these are not
10395 # typical AIX shared libraries.
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10397 else
10398 # We preserve .a as extension for shared libraries through AIX4.2
10399 # and later when we are not doing run time linking.
10400 library_names_spec='${libname}${release}.a $libname.a'
10401 soname_spec='${libname}${release}${shared_ext}$major'
10402 fi
10403 shlibpath_var=LIBPATH
10404 fi
10405 ;;
10406
10407amigaos*)
10408 case $host_cpu in
10409 powerpc)
10410 # Since July 2007 AmigaOS4 officially supports .so libraries.
10411 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10413 ;;
10414 m68k)
10415 library_names_spec='$libname.ixlibrary $libname.a'
10416 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10417 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'
10418 ;;
10419 esac
10420 ;;
10421
10422beos*)
10423 library_names_spec='${libname}${shared_ext}'
10424 dynamic_linker="$host_os ld.so"
10425 shlibpath_var=LIBRARY_PATH
10426 ;;
10427
10428bsdi[45]*)
10429 version_type=linux
10430 need_version=no
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10432 soname_spec='${libname}${release}${shared_ext}$major'
10433 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10434 shlibpath_var=LD_LIBRARY_PATH
10435 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10436 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10437 # the default ld.so.conf also contains /usr/contrib/lib and
10438 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10439 # libtool to hard-code these into programs
10440 ;;
10441
10442cygwin* | mingw* | pw32* | cegcc*)
10443 version_type=windows
10444 shrext_cmds=".dll"
10445 need_version=no
10446 need_lib_prefix=no
10447
10448 case $GCC,$host_os in
10449 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10450 library_names_spec='$libname.dll.a'
10451 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10452 postinstall_cmds='base_file=`basename \${file}`~
10453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10454 dldir=$destdir/`dirname \$dlpath`~
10455 test -d \$dldir || mkdir -p \$dldir~
10456 $install_prog $dir/$dlname \$dldir/$dlname~
10457 chmod a+x \$dldir/$dlname~
10458 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10459 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10460 fi'
10461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10462 dlpath=$dir/\$dldll~
10463 $RM \$dlpath'
10464 shlibpath_overrides_runpath=yes
10465
10466 case $host_os in
10467 cygwin*)
10468 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10469 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10470
10471 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10472 ;;
10473 mingw* | cegcc*)
10474 # MinGW DLLs use traditional 'lib' prefix
10475 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10476 ;;
10477 pw32*)
10478 # pw32 DLLs use 'pw' prefix rather than 'lib'
10479 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10480 ;;
10481 esac
10482 ;;
10483
10484 *)
10485 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10486 ;;
10487 esac
10488 dynamic_linker='Win32 ld.exe'
10489 # FIXME: first we should search . and the directory the executable is in
10490 shlibpath_var=PATH
10491 ;;
10492
10493darwin* | rhapsody*)
10494 dynamic_linker="$host_os dyld"
10495 version_type=darwin
10496 need_lib_prefix=no
10497 need_version=no
10498 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10499 soname_spec='${libname}${release}${major}$shared_ext'
10500 shlibpath_overrides_runpath=yes
10501 shlibpath_var=DYLD_LIBRARY_PATH
10502 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10503
10504 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10505 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10506 ;;
10507
10508dgux*)
10509 version_type=linux
10510 need_lib_prefix=no
10511 need_version=no
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10513 soname_spec='${libname}${release}${shared_ext}$major'
10514 shlibpath_var=LD_LIBRARY_PATH
10515 ;;
10516
10517freebsd* | dragonfly*)
10518 # DragonFly does not have aout. When/if they implement a new
10519 # versioning mechanism, adjust this.
10520 if test -x /usr/bin/objformat; then
10521 objformat=`/usr/bin/objformat`
10522 else
10523 case $host_os in
10524 freebsd[23].*) objformat=aout ;;
10525 *) objformat=elf ;;
10526 esac
10527 fi
10528 version_type=freebsd-$objformat
10529 case $version_type in
10530 freebsd-elf*)
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10532 need_version=no
10533 need_lib_prefix=no
10534 ;;
10535 freebsd-*)
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10537 need_version=yes
10538 ;;
10539 esac
10540 shlibpath_var=LD_LIBRARY_PATH
10541 case $host_os in
10542 freebsd2.*)
10543 shlibpath_overrides_runpath=yes
10544 ;;
10545 freebsd3.[01]* | freebsdelf3.[01]*)
10546 shlibpath_overrides_runpath=yes
10547 hardcode_into_libs=yes
10548 ;;
10549 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10550 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10551 shlibpath_overrides_runpath=no
10552 hardcode_into_libs=yes
10553 ;;
10554 *) # from 4.6 on, and DragonFly
10555 shlibpath_overrides_runpath=yes
10556 hardcode_into_libs=yes
10557 ;;
10558 esac
10559 ;;
10560
48310492
RH
10561haiku*)
10562 version_type=linux
10563 need_lib_prefix=no
10564 need_version=no
10565 dynamic_linker="$host_os runtime_loader"
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10567 soname_spec='${libname}${release}${shared_ext}$major'
10568 shlibpath_var=LIBRARY_PATH
10569 shlibpath_overrides_runpath=yes
10570 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10571 hardcode_into_libs=yes
10572 ;;
10573
10574hpux9* | hpux10* | hpux11*)
10575 # Give a soname corresponding to the major version so that dld.sl refuses to
10576 # link against other versions.
10577 version_type=sunos
10578 need_lib_prefix=no
10579 need_version=no
10580 case $host_cpu in
10581 ia64*)
10582 shrext_cmds='.so'
10583 hardcode_into_libs=yes
10584 dynamic_linker="$host_os dld.so"
10585 shlibpath_var=LD_LIBRARY_PATH
10586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588 soname_spec='${libname}${release}${shared_ext}$major'
10589 if test "X$HPUX_IA64_MODE" = X32; then
10590 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10591 else
10592 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10593 fi
10594 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10595 ;;
10596 hppa*64*)
10597 shrext_cmds='.sl'
10598 hardcode_into_libs=yes
10599 dynamic_linker="$host_os dld.sl"
10600 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10601 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10603 soname_spec='${libname}${release}${shared_ext}$major'
10604 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10606 ;;
10607 *)
10608 shrext_cmds='.sl'
10609 dynamic_linker="$host_os dld.sl"
10610 shlibpath_var=SHLIB_PATH
10611 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 soname_spec='${libname}${release}${shared_ext}$major'
10614 ;;
10615 esac
10616 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10617 postinstall_cmds='chmod 555 $lib'
10618 # or fails outright, so override atomically:
10619 install_override_mode=555
10620 ;;
10621
10622interix[3-9]*)
10623 version_type=linux
10624 need_lib_prefix=no
10625 need_version=no
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10629 shlibpath_var=LD_LIBRARY_PATH
10630 shlibpath_overrides_runpath=no
10631 hardcode_into_libs=yes
10632 ;;
10633
10634irix5* | irix6* | nonstopux*)
10635 case $host_os in
10636 nonstopux*) version_type=nonstopux ;;
10637 *)
10638 if test "$lt_cv_prog_gnu_ld" = yes; then
10639 version_type=linux
10640 else
10641 version_type=irix
10642 fi ;;
10643 esac
10644 need_lib_prefix=no
10645 need_version=no
10646 soname_spec='${libname}${release}${shared_ext}$major'
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10648 case $host_os in
10649 irix5* | nonstopux*)
10650 libsuff= shlibsuff=
10651 ;;
10652 *)
10653 case $LD in # libtool.m4 will add one of these switches to LD
10654 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10655 libsuff= shlibsuff= libmagic=32-bit;;
10656 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10657 libsuff=32 shlibsuff=N32 libmagic=N32;;
10658 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10659 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10660 *) libsuff= shlibsuff= libmagic=never-match;;
10661 esac
10662 ;;
10663 esac
10664 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10665 shlibpath_overrides_runpath=no
10666 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10667 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10668 hardcode_into_libs=yes
10669 ;;
10670
10671# No shared lib support for Linux oldld, aout, or coff.
10672linux*oldld* | linux*aout* | linux*coff*)
10673 dynamic_linker=no
10674 ;;
10675
10676# This must be Linux ELF.
b1e21e5a
CL
10677
10678# uclinux* changes (here and below) have been submitted to the libtool
10679# project, but have not yet been accepted: they are GCC-local changes
10680# for the time being. (See
10681# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
f56de355 10682linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
48310492
RH
10683 version_type=linux
10684 need_lib_prefix=no
10685 need_version=no
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687 soname_spec='${libname}${release}${shared_ext}$major'
10688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10689 shlibpath_var=LD_LIBRARY_PATH
10690 shlibpath_overrides_runpath=no
10691
10692 # Some binutils ld are patched to set DT_RUNPATH
22e05272 10693 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
48310492
RH
10694 $as_echo_n "(cached) " >&6
10695else
10696 lt_cv_shlibpath_overrides_runpath=no
10697 save_LDFLAGS=$LDFLAGS
10698 save_libdir=$libdir
10699 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10700 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702/* end confdefs.h. */
10703
10704int
10705main ()
10706{
10707
10708 ;
10709 return 0;
10710}
10711_ACEOF
10712if ac_fn_c_try_link "$LINENO"; then :
10713 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10714 lt_cv_shlibpath_overrides_runpath=yes
10715fi
10716fi
10717rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LDFLAGS=$save_LDFLAGS
10720 libdir=$save_libdir
10721
10722fi
10723
10724 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10725
10726 # This implies no fast_install, which is unacceptable.
10727 # Some rework will be needed to allow for fast_install
10728 # before this can be enabled.
10729 hardcode_into_libs=yes
10730
10731 # Append ld.so.conf contents to the search path
10732 if test -f /etc/ld.so.conf; then
10733 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' ' '`
10734 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10735 fi
10736
10737 # We used to test for /lib/ld.so.1 and disable shared libraries on
10738 # powerpc, because MkLinux only supported shared libraries with the
10739 # GNU dynamic linker. Since this was broken with cross compilers,
10740 # most powerpc-linux boxes support dynamic linking these days and
10741 # people can always --disable-shared, the test was removed, and we
10742 # assume the GNU/Linux dynamic linker is in use.
10743 dynamic_linker='GNU/Linux ld.so'
10744 ;;
10745
10746netbsd*)
10747 version_type=sunos
10748 need_lib_prefix=no
10749 need_version=no
10750 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10753 dynamic_linker='NetBSD (a.out) ld.so'
10754 else
10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10756 soname_spec='${libname}${release}${shared_ext}$major'
10757 dynamic_linker='NetBSD ld.elf_so'
10758 fi
10759 shlibpath_var=LD_LIBRARY_PATH
10760 shlibpath_overrides_runpath=yes
10761 hardcode_into_libs=yes
10762 ;;
10763
10764newsos6)
10765 version_type=linux
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767 shlibpath_var=LD_LIBRARY_PATH
10768 shlibpath_overrides_runpath=yes
10769 ;;
10770
10771*nto* | *qnx*)
10772 version_type=qnx
10773 need_lib_prefix=no
10774 need_version=no
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10776 soname_spec='${libname}${release}${shared_ext}$major'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 shlibpath_overrides_runpath=no
10779 hardcode_into_libs=yes
10780 dynamic_linker='ldqnx.so'
10781 ;;
10782
10783openbsd*)
10784 version_type=sunos
10785 sys_lib_dlsearch_path_spec="/usr/lib"
10786 need_lib_prefix=no
10787 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10788 case $host_os in
10789 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10790 *) need_version=no ;;
10791 esac
10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10796 case $host_os in
10797 openbsd2.[89] | openbsd2.[89].*)
10798 shlibpath_overrides_runpath=no
10799 ;;
10800 *)
10801 shlibpath_overrides_runpath=yes
10802 ;;
10803 esac
10804 else
10805 shlibpath_overrides_runpath=yes
10806 fi
10807 ;;
10808
10809os2*)
10810 libname_spec='$name'
10811 shrext_cmds=".dll"
10812 need_lib_prefix=no
10813 library_names_spec='$libname${shared_ext} $libname.a'
10814 dynamic_linker='OS/2 ld.exe'
10815 shlibpath_var=LIBPATH
10816 ;;
10817
10818osf3* | osf4* | osf5*)
10819 version_type=osf
10820 need_lib_prefix=no
10821 need_version=no
10822 soname_spec='${libname}${release}${shared_ext}$major'
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824 shlibpath_var=LD_LIBRARY_PATH
10825 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10826 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10827 ;;
10828
10829rdos*)
10830 dynamic_linker=no
10831 ;;
10832
10833solaris*)
10834 version_type=linux
10835 need_lib_prefix=no
10836 need_version=no
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 shlibpath_var=LD_LIBRARY_PATH
10840 shlibpath_overrides_runpath=yes
10841 hardcode_into_libs=yes
10842 # ldd complains unless libraries are executable
10843 postinstall_cmds='chmod +x $lib'
10844 ;;
10845
10846sunos4*)
10847 version_type=sunos
10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10849 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10850 shlibpath_var=LD_LIBRARY_PATH
10851 shlibpath_overrides_runpath=yes
10852 if test "$with_gnu_ld" = yes; then
10853 need_lib_prefix=no
10854 fi
10855 need_version=yes
10856 ;;
10857
10858sysv4 | sysv4.3*)
10859 version_type=linux
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861 soname_spec='${libname}${release}${shared_ext}$major'
10862 shlibpath_var=LD_LIBRARY_PATH
10863 case $host_vendor in
10864 sni)
10865 shlibpath_overrides_runpath=no
10866 need_lib_prefix=no
10867 runpath_var=LD_RUN_PATH
10868 ;;
10869 siemens)
10870 need_lib_prefix=no
10871 ;;
10872 motorola)
10873 need_lib_prefix=no
10874 need_version=no
10875 shlibpath_overrides_runpath=no
10876 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10877 ;;
10878 esac
10879 ;;
10880
10881sysv4*MP*)
10882 if test -d /usr/nec ;then
10883 version_type=linux
10884 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10885 soname_spec='$libname${shared_ext}.$major'
10886 shlibpath_var=LD_LIBRARY_PATH
10887 fi
10888 ;;
10889
10890sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10891 version_type=freebsd-elf
10892 need_lib_prefix=no
10893 need_version=no
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 shlibpath_overrides_runpath=yes
10898 hardcode_into_libs=yes
10899 if test "$with_gnu_ld" = yes; then
10900 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10901 else
10902 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10903 case $host_os in
10904 sco3.2v5*)
10905 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10906 ;;
10907 esac
10908 fi
10909 sys_lib_dlsearch_path_spec='/usr/lib'
10910 ;;
10911
10912tpf*)
10913 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10914 version_type=linux
10915 need_lib_prefix=no
10916 need_version=no
10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10918 shlibpath_var=LD_LIBRARY_PATH
10919 shlibpath_overrides_runpath=no
10920 hardcode_into_libs=yes
10921 ;;
10922
10923uts4*)
10924 version_type=linux
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926 soname_spec='${libname}${release}${shared_ext}$major'
10927 shlibpath_var=LD_LIBRARY_PATH
10928 ;;
10929
0ecd0f1c
OH
10930# Shared libraries for VwWorks, >= 7 only at this stage
10931# and (fpic) still incompatible with "large" code models
10932# in a few configurations. Only for RTP mode in any case,
10933# and upon explicit request at configure time.
10934vxworks7*)
10935 dynamic_linker=no
10936 case ${with_multisubdir}-${enable_shared} in
10937 *large*)
10938 ;;
10939 *mrtp*-yes)
10940 version_type=linux
10941 need_lib_prefix=no
10942 need_version=no
10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10944 soname_spec='${libname}${release}${shared_ext}$major'
10945 dynamic_linker="$host_os module_loader"
10946 ;;
10947 esac
10948 ;;
48310492
RH
10949*)
10950 dynamic_linker=no
10951 ;;
10952esac
10953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10954$as_echo "$dynamic_linker" >&6; }
10955test "$dynamic_linker" = no && can_build_shared=no
10956
10957variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10958if test "$GCC" = yes; then
10959 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10960fi
10961
10962if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10963 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10964fi
10965if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10966 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10967fi
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11061$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11062hardcode_action=
11063if test -n "$hardcode_libdir_flag_spec" ||
11064 test -n "$runpath_var" ||
11065 test "X$hardcode_automatic" = "Xyes" ; then
11066
11067 # We can hardcode non-existent directories.
11068 if test "$hardcode_direct" != no &&
11069 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11070 # have to relink, otherwise we might link with an installed library
11071 # when we should be linking with a yet-to-be-installed one
11072 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11073 test "$hardcode_minus_L" != no; then
11074 # Linking always hardcodes the temporary library directory.
11075 hardcode_action=relink
11076 else
11077 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11078 hardcode_action=immediate
11079 fi
11080else
11081 # We cannot hardcode anything, or else we can only hardcode existing
11082 # directories.
11083 hardcode_action=unsupported
11084fi
11085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11086$as_echo "$hardcode_action" >&6; }
11087
11088if test "$hardcode_action" = relink ||
11089 test "$inherit_rpath" = yes; then
11090 # Fast installation is not supported
11091 enable_fast_install=no
11092elif test "$shlibpath_overrides_runpath" = yes ||
11093 test "$enable_shared" = no; then
11094 # Fast installation is not necessary
11095 enable_fast_install=needless
11096fi
11097
11098
11099
11100
11101
11102
11103 if test "x$enable_dlopen" != xyes; then
11104 enable_dlopen=unknown
11105 enable_dlopen_self=unknown
11106 enable_dlopen_self_static=unknown
11107else
11108 lt_cv_dlopen=no
11109 lt_cv_dlopen_libs=
11110
11111 case $host_os in
11112 beos*)
11113 lt_cv_dlopen="load_add_on"
11114 lt_cv_dlopen_libs=
11115 lt_cv_dlopen_self=yes
11116 ;;
11117
11118 mingw* | pw32* | cegcc*)
11119 lt_cv_dlopen="LoadLibrary"
11120 lt_cv_dlopen_libs=
11121 ;;
11122
11123 cygwin*)
11124 lt_cv_dlopen="dlopen"
11125 lt_cv_dlopen_libs=
11126 ;;
11127
11128 darwin*)
11129 # if libdl is installed we need to link against it
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11131$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11132if ${ac_cv_lib_dl_dlopen+:} false; then :
48310492
RH
11133 $as_echo_n "(cached) " >&6
11134else
11135 ac_check_lib_save_LIBS=$LIBS
11136LIBS="-ldl $LIBS"
11137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11138/* end confdefs.h. */
11139
11140/* Override any GCC internal prototype to avoid an error.
11141 Use char because int might match the return type of a GCC
11142 builtin and then its argument prototype would still apply. */
11143#ifdef __cplusplus
11144extern "C"
11145#endif
11146char dlopen ();
11147int
11148main ()
11149{
11150return dlopen ();
11151 ;
11152 return 0;
11153}
11154_ACEOF
11155if ac_fn_c_try_link "$LINENO"; then :
11156 ac_cv_lib_dl_dlopen=yes
11157else
11158 ac_cv_lib_dl_dlopen=no
11159fi
11160rm -f core conftest.err conftest.$ac_objext \
11161 conftest$ac_exeext conftest.$ac_ext
11162LIBS=$ac_check_lib_save_LIBS
11163fi
11164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11165$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11166if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
48310492
RH
11167 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11168else
11169
11170 lt_cv_dlopen="dyld"
11171 lt_cv_dlopen_libs=
11172 lt_cv_dlopen_self=yes
11173
11174fi
11175
11176 ;;
11177
11178 *)
11179 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11180if test "x$ac_cv_func_shl_load" = xyes; then :
48310492
RH
11181 lt_cv_dlopen="shl_load"
11182else
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11184$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11185if ${ac_cv_lib_dld_shl_load+:} false; then :
48310492
RH
11186 $as_echo_n "(cached) " >&6
11187else
11188 ac_check_lib_save_LIBS=$LIBS
11189LIBS="-ldld $LIBS"
11190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11191/* end confdefs.h. */
11192
11193/* Override any GCC internal prototype to avoid an error.
11194 Use char because int might match the return type of a GCC
11195 builtin and then its argument prototype would still apply. */
11196#ifdef __cplusplus
11197extern "C"
11198#endif
11199char shl_load ();
11200int
11201main ()
11202{
11203return shl_load ();
11204 ;
11205 return 0;
11206}
11207_ACEOF
11208if ac_fn_c_try_link "$LINENO"; then :
11209 ac_cv_lib_dld_shl_load=yes
11210else
11211 ac_cv_lib_dld_shl_load=no
11212fi
11213rm -f core conftest.err conftest.$ac_objext \
11214 conftest$ac_exeext conftest.$ac_ext
11215LIBS=$ac_check_lib_save_LIBS
11216fi
11217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11218$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11219if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
48310492
RH
11220 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11221else
11222 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11223if test "x$ac_cv_func_dlopen" = xyes; then :
48310492
RH
11224 lt_cv_dlopen="dlopen"
11225else
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11227$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11228if ${ac_cv_lib_dl_dlopen+:} false; then :
48310492
RH
11229 $as_echo_n "(cached) " >&6
11230else
11231 ac_check_lib_save_LIBS=$LIBS
11232LIBS="-ldl $LIBS"
11233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234/* end confdefs.h. */
11235
11236/* Override any GCC internal prototype to avoid an error.
11237 Use char because int might match the return type of a GCC
11238 builtin and then its argument prototype would still apply. */
11239#ifdef __cplusplus
11240extern "C"
11241#endif
11242char dlopen ();
11243int
11244main ()
11245{
11246return dlopen ();
11247 ;
11248 return 0;
11249}
11250_ACEOF
11251if ac_fn_c_try_link "$LINENO"; then :
11252 ac_cv_lib_dl_dlopen=yes
11253else
11254 ac_cv_lib_dl_dlopen=no
11255fi
11256rm -f core conftest.err conftest.$ac_objext \
11257 conftest$ac_exeext conftest.$ac_ext
11258LIBS=$ac_check_lib_save_LIBS
11259fi
11260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11261$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11262if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
48310492
RH
11263 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11264else
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11266$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 11267if ${ac_cv_lib_svld_dlopen+:} false; then :
48310492
RH
11268 $as_echo_n "(cached) " >&6
11269else
11270 ac_check_lib_save_LIBS=$LIBS
11271LIBS="-lsvld $LIBS"
11272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273/* end confdefs.h. */
11274
11275/* Override any GCC internal prototype to avoid an error.
11276 Use char because int might match the return type of a GCC
11277 builtin and then its argument prototype would still apply. */
11278#ifdef __cplusplus
11279extern "C"
11280#endif
11281char dlopen ();
11282int
11283main ()
11284{
11285return dlopen ();
11286 ;
11287 return 0;
11288}
11289_ACEOF
11290if ac_fn_c_try_link "$LINENO"; then :
11291 ac_cv_lib_svld_dlopen=yes
11292else
11293 ac_cv_lib_svld_dlopen=no
11294fi
11295rm -f core conftest.err conftest.$ac_objext \
11296 conftest$ac_exeext conftest.$ac_ext
11297LIBS=$ac_check_lib_save_LIBS
11298fi
11299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11300$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 11301if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
48310492
RH
11302 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11303else
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11305$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 11306if ${ac_cv_lib_dld_dld_link+:} false; then :
48310492
RH
11307 $as_echo_n "(cached) " >&6
11308else
11309 ac_check_lib_save_LIBS=$LIBS
11310LIBS="-ldld $LIBS"
11311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312/* end confdefs.h. */
11313
11314/* Override any GCC internal prototype to avoid an error.
11315 Use char because int might match the return type of a GCC
11316 builtin and then its argument prototype would still apply. */
11317#ifdef __cplusplus
11318extern "C"
11319#endif
11320char dld_link ();
11321int
11322main ()
11323{
11324return dld_link ();
11325 ;
11326 return 0;
11327}
11328_ACEOF
11329if ac_fn_c_try_link "$LINENO"; then :
11330 ac_cv_lib_dld_dld_link=yes
11331else
11332 ac_cv_lib_dld_dld_link=no
11333fi
11334rm -f core conftest.err conftest.$ac_objext \
11335 conftest$ac_exeext conftest.$ac_ext
11336LIBS=$ac_check_lib_save_LIBS
11337fi
11338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11339$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 11340if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
48310492
RH
11341 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11342fi
11343
11344
11345fi
11346
11347
11348fi
11349
11350
11351fi
11352
11353
11354fi
11355
11356
11357fi
11358
11359 ;;
11360 esac
11361
11362 if test "x$lt_cv_dlopen" != xno; then
11363 enable_dlopen=yes
11364 else
11365 enable_dlopen=no
11366 fi
11367
11368 case $lt_cv_dlopen in
11369 dlopen)
11370 save_CPPFLAGS="$CPPFLAGS"
11371 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11372
11373 save_LDFLAGS="$LDFLAGS"
11374 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11375
11376 save_LIBS="$LIBS"
11377 LIBS="$lt_cv_dlopen_libs $LIBS"
11378
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11380$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 11381if ${lt_cv_dlopen_self+:} false; then :
48310492
RH
11382 $as_echo_n "(cached) " >&6
11383else
11384 if test "$cross_compiling" = yes; then :
11385 lt_cv_dlopen_self=cross
11386else
11387 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11388 lt_status=$lt_dlunknown
11389 cat > conftest.$ac_ext <<_LT_EOF
126f707e 11390#line 11390 "configure"
48310492
RH
11391#include "confdefs.h"
11392
11393#if HAVE_DLFCN_H
11394#include <dlfcn.h>
11395#endif
11396
11397#include <stdio.h>
11398
11399#ifdef RTLD_GLOBAL
11400# define LT_DLGLOBAL RTLD_GLOBAL
11401#else
11402# ifdef DL_GLOBAL
11403# define LT_DLGLOBAL DL_GLOBAL
11404# else
11405# define LT_DLGLOBAL 0
11406# endif
11407#endif
11408
11409/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11410 find out it does not work in some platform. */
11411#ifndef LT_DLLAZY_OR_NOW
11412# ifdef RTLD_LAZY
11413# define LT_DLLAZY_OR_NOW RTLD_LAZY
11414# else
11415# ifdef DL_LAZY
11416# define LT_DLLAZY_OR_NOW DL_LAZY
11417# else
11418# ifdef RTLD_NOW
11419# define LT_DLLAZY_OR_NOW RTLD_NOW
11420# else
11421# ifdef DL_NOW
11422# define LT_DLLAZY_OR_NOW DL_NOW
11423# else
11424# define LT_DLLAZY_OR_NOW 0
11425# endif
11426# endif
11427# endif
11428# endif
11429#endif
11430
11431/* When -fvisbility=hidden is used, assume the code has been annotated
11432 correspondingly for the symbols needed. */
11433#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11434void fnord () __attribute__((visibility("default")));
11435#endif
11436
11437void fnord () { int i=42; }
11438int main ()
11439{
11440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11441 int status = $lt_dlunknown;
11442
11443 if (self)
11444 {
11445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11446 else
11447 {
11448 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11449 else puts (dlerror ());
11450 }
11451 /* dlclose (self); */
11452 }
11453 else
11454 puts (dlerror ());
11455
11456 return status;
11457}
11458_LT_EOF
11459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11460 (eval $ac_link) 2>&5
11461 ac_status=$?
11462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11463 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11464 (./conftest; exit; ) >&5 2>/dev/null
11465 lt_status=$?
11466 case x$lt_status in
11467 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11468 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11469 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11470 esac
11471 else :
11472 # compilation failed
11473 lt_cv_dlopen_self=no
11474 fi
11475fi
11476rm -fr conftest*
11477
11478
11479fi
11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11481$as_echo "$lt_cv_dlopen_self" >&6; }
11482
11483 if test "x$lt_cv_dlopen_self" = xyes; then
11484 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11486$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 11487if ${lt_cv_dlopen_self_static+:} false; then :
48310492
RH
11488 $as_echo_n "(cached) " >&6
11489else
11490 if test "$cross_compiling" = yes; then :
11491 lt_cv_dlopen_self_static=cross
11492else
11493 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11494 lt_status=$lt_dlunknown
11495 cat > conftest.$ac_ext <<_LT_EOF
126f707e 11496#line 11496 "configure"
48310492
RH
11497#include "confdefs.h"
11498
11499#if HAVE_DLFCN_H
11500#include <dlfcn.h>
11501#endif
11502
11503#include <stdio.h>
11504
11505#ifdef RTLD_GLOBAL
11506# define LT_DLGLOBAL RTLD_GLOBAL
11507#else
11508# ifdef DL_GLOBAL
11509# define LT_DLGLOBAL DL_GLOBAL
11510# else
11511# define LT_DLGLOBAL 0
11512# endif
11513#endif
11514
11515/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11516 find out it does not work in some platform. */
11517#ifndef LT_DLLAZY_OR_NOW
11518# ifdef RTLD_LAZY
11519# define LT_DLLAZY_OR_NOW RTLD_LAZY
11520# else
11521# ifdef DL_LAZY
11522# define LT_DLLAZY_OR_NOW DL_LAZY
11523# else
11524# ifdef RTLD_NOW
11525# define LT_DLLAZY_OR_NOW RTLD_NOW
11526# else
11527# ifdef DL_NOW
11528# define LT_DLLAZY_OR_NOW DL_NOW
11529# else
11530# define LT_DLLAZY_OR_NOW 0
11531# endif
11532# endif
11533# endif
11534# endif
11535#endif
11536
11537/* When -fvisbility=hidden is used, assume the code has been annotated
11538 correspondingly for the symbols needed. */
11539#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11540void fnord () __attribute__((visibility("default")));
11541#endif
11542
11543void fnord () { int i=42; }
11544int main ()
11545{
11546 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11547 int status = $lt_dlunknown;
11548
11549 if (self)
11550 {
11551 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11552 else
11553 {
11554 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11555 else puts (dlerror ());
11556 }
11557 /* dlclose (self); */
11558 }
11559 else
11560 puts (dlerror ());
11561
11562 return status;
11563}
11564_LT_EOF
11565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11566 (eval $ac_link) 2>&5
11567 ac_status=$?
11568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11569 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11570 (./conftest; exit; ) >&5 2>/dev/null
11571 lt_status=$?
11572 case x$lt_status in
11573 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11574 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11575 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11576 esac
11577 else :
11578 # compilation failed
11579 lt_cv_dlopen_self_static=no
11580 fi
11581fi
11582rm -fr conftest*
11583
11584
11585fi
11586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11587$as_echo "$lt_cv_dlopen_self_static" >&6; }
11588 fi
11589
11590 CPPFLAGS="$save_CPPFLAGS"
11591 LDFLAGS="$save_LDFLAGS"
11592 LIBS="$save_LIBS"
11593 ;;
11594 esac
11595
11596 case $lt_cv_dlopen_self in
11597 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11598 *) enable_dlopen_self=unknown ;;
11599 esac
11600
11601 case $lt_cv_dlopen_self_static in
11602 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11603 *) enable_dlopen_self_static=unknown ;;
11604 esac
11605fi
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623striplib=
11624old_striplib=
11625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11626$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11627if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11628 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11629 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11631$as_echo "yes" >&6; }
11632else
11633# FIXME - insert some real tests, host_os isn't really good enough
11634 case $host_os in
11635 darwin*)
11636 if test -n "$STRIP" ; then
11637 striplib="$STRIP -x"
11638 old_striplib="$STRIP -S"
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11640$as_echo "yes" >&6; }
11641 else
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643$as_echo "no" >&6; }
11644 fi
11645 ;;
11646 *)
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648$as_echo "no" >&6; }
11649 ;;
11650 esac
11651fi
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664 # Report which library types will actually be built
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11666$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11668$as_echo "$can_build_shared" >&6; }
11669
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11671$as_echo_n "checking whether to build shared libraries... " >&6; }
11672 test "$can_build_shared" = "no" && enable_shared=no
11673
11674 # On AIX, shared libraries and static libraries use the same namespace, and
11675 # are all built from PIC.
11676 case $host_os in
11677 aix3*)
11678 test "$enable_shared" = yes && enable_static=no
11679 if test -n "$RANLIB"; then
11680 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11681 postinstall_cmds='$RANLIB $lib'
11682 fi
11683 ;;
11684
11685 aix[4-9]*)
11686 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11687 test "$enable_shared" = yes && enable_static=no
11688 fi
11689 ;;
11690 esac
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11692$as_echo "$enable_shared" >&6; }
11693
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11695$as_echo_n "checking whether to build static libraries... " >&6; }
11696 # Make sure either enable_shared or enable_static is yes.
11697 test "$enable_shared" = yes || enable_static=yes
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11699$as_echo "$enable_static" >&6; }
11700
11701
11702
11703
11704fi
11705ac_ext=c
11706ac_cpp='$CPP $CPPFLAGS'
11707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11709ac_compiler_gnu=$ac_cv_c_compiler_gnu
11710
11711CC="$lt_save_CC"
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725 ac_config_commands="$ac_config_commands libtool"
11726
11727
11728
11729
11730# Only expand once:
11731
11732
11733
11734
11735
dc3368d0
KT
11736case $host in
11737 *-cygwin* | *-mingw*)
11738 # 'host' will be top-level target in the case of a target lib,
11739 # we must compare to with_cross_host to decide if this is a native
11740 # or cross-compiler and select where to install dlls appropriately.
11741 if test -n "$with_cross_host" &&
11742 test x"$with_cross_host" != x"no"; then
11743 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11744 else
11745 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11746 fi
11747 ;;
11748 *)
11749 lt_host_flags=
11750 ;;
11751esac
11752
11753
11754
11755
11756
11757
fa3cd3c3
RH
11758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11759$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11760 # Check whether --enable-maintainer-mode was given.
11761if test "${enable_maintainer_mode+set}" = set; then :
11762 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11763else
11764 USE_MAINTAINER_MODE=no
11765fi
11766
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11768$as_echo "$USE_MAINTAINER_MODE" >&6; }
11769 if test $USE_MAINTAINER_MODE = yes; then
11770 MAINTAINER_MODE_TRUE=
11771 MAINTAINER_MODE_FALSE='#'
11772else
11773 MAINTAINER_MODE_TRUE='#'
11774 MAINTAINER_MODE_FALSE=
11775fi
11776
11777 MAINT=$MAINTAINER_MODE_TRUE
11778
11779
11780
48310492 11781# For libtool versioning info, format is CURRENT:REVISION:AGE
c29c36ad 11782libtool_VERSION=3:0:2
48310492
RH
11783
11784
dc3368d0
KT
11785# Check for used threading-model
11786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
11787$as_echo_n "checking for thread model used by GCC... " >&6; }
11788target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
11790$as_echo "$target_thread_file" >&6; }
11791
9d0e85af
SE
11792case "$target" in
11793 *aarch64*)
11794 ac_ext=c
11795ac_cpp='$CPP $CPPFLAGS'
11796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11798ac_compiler_gnu=$ac_cv_c_compiler_gnu
11799
11800enable_aarch64_lse=
11801save_CFLAGS="$CFLAGS"
11802for real_option in -march=armv8-a+lse; do
11803 # Do the check with the no- prefix removed since gcc silently
11804 # accepts any -Wno-* option on purpose
11805 case $real_option in
11806 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
11807 *) option=$real_option ;;
11808 esac
11809 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
11810
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
11812$as_echo_n "checking whether $CC supports $option... " >&6; }
22e05272 11813if eval \${$as_acx_Woption+:} false; then :
9d0e85af
SE
11814 $as_echo_n "(cached) " >&6
11815else
11816 CFLAGS="$option"
11817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818/* end confdefs.h. */
11819
11820int
11821main ()
11822{
11823
11824 ;
11825 return 0;
11826}
11827_ACEOF
11828if ac_fn_c_try_compile "$LINENO"; then :
11829 eval "$as_acx_Woption=yes"
11830else
11831 eval "$as_acx_Woption=no"
11832fi
11833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11834
11835fi
11836eval ac_res=\$$as_acx_Woption
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11838$as_echo "$ac_res" >&6; }
11839 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
11840 enable_aarch64_lse="$enable_aarch64_lse${enable_aarch64_lse:+ }$real_option"
11841fi
11842 done
11843CFLAGS="$save_CFLAGS"
11844ac_ext=c
11845ac_cpp='$CPP $CPPFLAGS'
11846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11848ac_compiler_gnu=$ac_cv_c_compiler_gnu
11849
11850
11851 ;;
11852esac
11853
48310492
RH
11854# Get target configury.
11855. ${srcdir}/configure.tgt
11856if test -n "$UNSUPPORTED"; then
22e05272 11857 as_fn_error $? "Configuration ${target} is unsupported." "$LINENO" 5
48310492
RH
11858fi
11859
141abc6f
SE
11860# Write out the ifunc resolver arg type.
11861
11862cat >>confdefs.h <<_ACEOF
11863#define IFUNC_RESOLVER_ARGS $IFUNC_RESOLVER_ARGS
11864_ACEOF
11865
11866
48310492
RH
11867# Disable fallbacks to __sync routines from libgcc. Otherwise we'll
11868# make silly decisions about what the cpu can do.
11869CFLAGS="$save_CFLAGS -fno-sync-libcalls $XCFLAGS"
11870
11871# Check header files.
11872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11873$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 11874if ${ac_cv_header_stdc+:} false; then :
48310492
RH
11875 $as_echo_n "(cached) " >&6
11876else
11877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878/* end confdefs.h. */
11879#include <stdlib.h>
11880#include <stdarg.h>
11881#include <string.h>
11882#include <float.h>
11883
11884int
11885main ()
11886{
11887
11888 ;
11889 return 0;
11890}
11891_ACEOF
11892if ac_fn_c_try_compile "$LINENO"; then :
11893 ac_cv_header_stdc=yes
11894else
11895 ac_cv_header_stdc=no
11896fi
11897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898
11899if test $ac_cv_header_stdc = yes; then
11900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902/* end confdefs.h. */
11903#include <string.h>
11904
11905_ACEOF
11906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11907 $EGREP "memchr" >/dev/null 2>&1; then :
11908
11909else
11910 ac_cv_header_stdc=no
11911fi
11912rm -f conftest*
11913
11914fi
11915
11916if test $ac_cv_header_stdc = yes; then
11917 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11919/* end confdefs.h. */
11920#include <stdlib.h>
11921
11922_ACEOF
11923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11924 $EGREP "free" >/dev/null 2>&1; then :
11925
11926else
11927 ac_cv_header_stdc=no
11928fi
11929rm -f conftest*
11930
11931fi
11932
11933if test $ac_cv_header_stdc = yes; then
11934 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11935 if test "$cross_compiling" = yes; then :
11936 :
11937else
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939/* end confdefs.h. */
11940#include <ctype.h>
11941#include <stdlib.h>
11942#if ((' ' & 0x0FF) == 0x020)
11943# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11944# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11945#else
11946# define ISLOWER(c) \
11947 (('a' <= (c) && (c) <= 'i') \
11948 || ('j' <= (c) && (c) <= 'r') \
11949 || ('s' <= (c) && (c) <= 'z'))
11950# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11951#endif
11952
11953#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11954int
11955main ()
11956{
11957 int i;
11958 for (i = 0; i < 256; i++)
11959 if (XOR (islower (i), ISLOWER (i))
11960 || toupper (i) != TOUPPER (i))
11961 return 2;
11962 return 0;
11963}
11964_ACEOF
11965if ac_fn_c_try_run "$LINENO"; then :
11966
11967else
11968 ac_cv_header_stdc=no
11969fi
11970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11971 conftest.$ac_objext conftest.beam conftest.$ac_ext
11972fi
11973
11974fi
11975fi
11976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11977$as_echo "$ac_cv_header_stdc" >&6; }
11978if test $ac_cv_header_stdc = yes; then
11979
11980$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11981
11982fi
11983
11984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
11985$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
22e05272 11986if ${gcc_cv_header_string+:} false; then :
48310492
RH
11987 $as_echo_n "(cached) " >&6
11988else
11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990/* end confdefs.h. */
11991#include <string.h>
11992#include <strings.h>
11993int
11994main ()
11995{
11996
11997 ;
11998 return 0;
11999}
12000_ACEOF
12001if ac_fn_c_try_compile "$LINENO"; then :
12002 gcc_cv_header_string=yes
12003else
12004 gcc_cv_header_string=no
12005fi
12006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12007fi
12008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
12009$as_echo "$gcc_cv_header_string" >&6; }
12010if test $gcc_cv_header_string = yes; then
12011
12012$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
12013
12014fi
12015
12016
12017
12018inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12019
12020acx_cv_header_stdint=stddef.h
12021acx_cv_header_stdint_kind="(already complete)"
12022for i in stdint.h $inttype_headers; do
12023 unset ac_cv_type_uintptr_t
12024 unset ac_cv_type_uintmax_t
12025 unset ac_cv_type_int_least32_t
12026 unset ac_cv_type_int_fast32_t
12027 unset ac_cv_type_uint64_t
12028 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12029 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12030#include <$i>
12031"
22e05272 12032if test "x$ac_cv_type_uintmax_t" = xyes; then :
48310492
RH
12033 acx_cv_header_stdint=$i
12034else
12035 continue
12036fi
12037
12038 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12039#include <$i>
12040"
22e05272 12041if test "x$ac_cv_type_uintptr_t" = xyes; then :
48310492
RH
12042
12043else
12044 acx_cv_header_stdint_kind="(mostly complete)"
12045fi
12046
12047 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12048#include <$i>
12049"
22e05272 12050if test "x$ac_cv_type_int_least32_t" = xyes; then :
48310492
RH
12051
12052else
12053 acx_cv_header_stdint_kind="(mostly complete)"
12054fi
12055
12056 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12057#include <$i>
12058"
22e05272 12059if test "x$ac_cv_type_int_fast32_t" = xyes; then :
48310492
RH
12060
12061else
12062 acx_cv_header_stdint_kind="(mostly complete)"
12063fi
12064
12065 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12066#include <$i>
12067"
22e05272 12068if test "x$ac_cv_type_uint64_t" = xyes; then :
48310492
RH
12069
12070else
12071 acx_cv_header_stdint_kind="(lacks uint64_t)"
12072fi
12073
12074 break
12075done
12076if test "$acx_cv_header_stdint" = stddef.h; then
12077 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12078 for i in stdint.h $inttype_headers; do
12079 unset ac_cv_type_uintptr_t
12080 unset ac_cv_type_uint32_t
12081 unset ac_cv_type_uint64_t
12082 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12083 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12084#include <$i>
12085"
22e05272 12086if test "x$ac_cv_type_uint32_t" = xyes; then :
48310492
RH
12087 acx_cv_header_stdint=$i
12088else
12089 continue
12090fi
12091
12092 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12093#include <$i>
12094"
22e05272 12095if test "x$ac_cv_type_uint64_t" = xyes; then :
48310492
RH
12096
12097fi
12098
12099 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12100#include <$i>
12101"
22e05272 12102if test "x$ac_cv_type_uintptr_t" = xyes; then :
48310492
RH
12103
12104fi
12105
12106 break
12107 done
12108fi
12109if test "$acx_cv_header_stdint" = stddef.h; then
12110 acx_cv_header_stdint_kind="(u_intXX_t style)"
12111 for i in sys/types.h $inttype_headers; do
12112 unset ac_cv_type_u_int32_t
12113 unset ac_cv_type_u_int64_t
12114 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12115 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12116#include <$i>
12117"
22e05272 12118if test "x$ac_cv_type_u_int32_t" = xyes; then :
48310492
RH
12119 acx_cv_header_stdint=$i
12120else
12121 continue
12122fi
12123
12124 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12125#include <$i>
12126"
22e05272 12127if test "x$ac_cv_type_u_int64_t" = xyes; then :
48310492
RH
12128
12129fi
12130
12131 break
12132 done
12133fi
12134if test "$acx_cv_header_stdint" = stddef.h; then
12135 acx_cv_header_stdint_kind="(using manual detection)"
12136fi
12137
12138test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12139test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12140test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12141test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12142test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12143
12144# ----------------- Summarize what we found so far
12145
12146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12147$as_echo_n "checking what to include in gstdint.h... " >&6; }
12148
12149case `$as_basename -- gstdint.h ||
12150$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12151 Xgstdint.h : 'X\(//\)$' \| \
12152 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12153$as_echo X/gstdint.h |
12154 sed '/^.*\/\([^/][^/]*\)\/*$/{
12155 s//\1/
12156 q
12157 }
12158 /^X\/\(\/\/\)$/{
12159 s//\1/
12160 q
12161 }
12162 /^X\/\(\/\).*/{
12163 s//\1/
12164 q
12165 }
12166 s/.*/./; q'` in
12167 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12168$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12169 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12170$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12171 *) ;;
12172esac
12173
12174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12175$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12176
12177# ----------------- done included file, check C basic types --------
12178
12179# Lacking an uintptr_t? Test size of void *
12180case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12181 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12182# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12183# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12184# This bug is HP SR number 8606223364.
12185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12186$as_echo_n "checking size of void *... " >&6; }
22e05272 12187if ${ac_cv_sizeof_void_p+:} false; then :
48310492
RH
12188 $as_echo_n "(cached) " >&6
12189else
12190 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12191
12192else
12193 if test "$ac_cv_type_void_p" = yes; then
12194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12196as_fn_error 77 "cannot compute sizeof (void *)
12197See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12198 else
12199 ac_cv_sizeof_void_p=0
12200 fi
12201fi
12202
12203fi
12204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12205$as_echo "$ac_cv_sizeof_void_p" >&6; }
12206
12207
12208
12209cat >>confdefs.h <<_ACEOF
12210#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12211_ACEOF
12212
12213 ;;
12214esac
12215
12216# Lacking an uint64_t? Test size of long
12217case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12218 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12219# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12220# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12221# This bug is HP SR number 8606223364.
12222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12223$as_echo_n "checking size of long... " >&6; }
22e05272 12224if ${ac_cv_sizeof_long+:} false; then :
48310492
RH
12225 $as_echo_n "(cached) " >&6
12226else
12227 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12228
12229else
12230 if test "$ac_cv_type_long" = yes; then
12231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12233as_fn_error 77 "cannot compute sizeof (long)
12234See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12235 else
12236 ac_cv_sizeof_long=0
12237 fi
12238fi
12239
12240fi
12241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12242$as_echo "$ac_cv_sizeof_long" >&6; }
12243
12244
12245
12246cat >>confdefs.h <<_ACEOF
12247#define SIZEOF_LONG $ac_cv_sizeof_long
12248_ACEOF
12249
12250 ;;
12251esac
12252
12253if test $acx_cv_header_stdint = stddef.h; then
12254 # Lacking a good header? Test size of everything and deduce all types.
12255 # The cast to long int works around a bug in the HP C Compiler
12256# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12257# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12258# This bug is HP SR number 8606223364.
12259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12260$as_echo_n "checking size of int... " >&6; }
22e05272 12261if ${ac_cv_sizeof_int+:} false; then :
48310492
RH
12262 $as_echo_n "(cached) " >&6
12263else
12264 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12265
12266else
12267 if test "$ac_cv_type_int" = yes; then
12268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12270as_fn_error 77 "cannot compute sizeof (int)
12271See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12272 else
12273 ac_cv_sizeof_int=0
12274 fi
12275fi
12276
12277fi
12278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12279$as_echo "$ac_cv_sizeof_int" >&6; }
12280
12281
12282
12283cat >>confdefs.h <<_ACEOF
12284#define SIZEOF_INT $ac_cv_sizeof_int
12285_ACEOF
12286
12287
12288 # The cast to long int works around a bug in the HP C Compiler
12289# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12290# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12291# This bug is HP SR number 8606223364.
12292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12293$as_echo_n "checking size of short... " >&6; }
22e05272 12294if ${ac_cv_sizeof_short+:} false; then :
48310492
RH
12295 $as_echo_n "(cached) " >&6
12296else
12297 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12298
12299else
12300 if test "$ac_cv_type_short" = yes; then
12301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12303as_fn_error 77 "cannot compute sizeof (short)
12304See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12305 else
12306 ac_cv_sizeof_short=0
12307 fi
12308fi
12309
12310fi
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12312$as_echo "$ac_cv_sizeof_short" >&6; }
12313
12314
12315
12316cat >>confdefs.h <<_ACEOF
12317#define SIZEOF_SHORT $ac_cv_sizeof_short
12318_ACEOF
12319
12320
12321 # The cast to long int works around a bug in the HP C Compiler
12322# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12323# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12324# This bug is HP SR number 8606223364.
12325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12326$as_echo_n "checking size of char... " >&6; }
22e05272 12327if ${ac_cv_sizeof_char+:} false; then :
48310492
RH
12328 $as_echo_n "(cached) " >&6
12329else
12330 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12331
12332else
12333 if test "$ac_cv_type_char" = yes; then
12334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12336as_fn_error 77 "cannot compute sizeof (char)
12337See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12338 else
12339 ac_cv_sizeof_char=0
12340 fi
12341fi
12342
12343fi
12344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12345$as_echo "$ac_cv_sizeof_char" >&6; }
12346
12347
12348
12349cat >>confdefs.h <<_ACEOF
12350#define SIZEOF_CHAR $ac_cv_sizeof_char
12351_ACEOF
12352
12353
12354
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12356$as_echo_n "checking for type equivalent to int8_t... " >&6; }
12357 case "$ac_cv_sizeof_char" in
12358 1) acx_cv_type_int8_t=char ;;
22e05272 12359 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
48310492
RH
12360 esac
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12362$as_echo "$acx_cv_type_int8_t" >&6; }
12363
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12365$as_echo_n "checking for type equivalent to int16_t... " >&6; }
12366 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12367 2:*) acx_cv_type_int16_t=int ;;
12368 *:2) acx_cv_type_int16_t=short ;;
22e05272 12369 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
48310492
RH
12370 esac
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12372$as_echo "$acx_cv_type_int16_t" >&6; }
12373
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12375$as_echo_n "checking for type equivalent to int32_t... " >&6; }
12376 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12377 4:*) acx_cv_type_int32_t=int ;;
12378 *:4) acx_cv_type_int32_t=long ;;
22e05272 12379 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
48310492
RH
12380 esac
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12382$as_echo "$acx_cv_type_int32_t" >&6; }
12383fi
12384
12385# These tests are here to make the output prettier
12386
12387if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12388 case "$ac_cv_sizeof_long" in
12389 8) acx_cv_type_int64_t=long ;;
12390 esac
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12392$as_echo_n "checking for type equivalent to int64_t... " >&6; }
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12394$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12395fi
12396
12397# Now we can use the above types
12398
12399if test "$ac_cv_type_uintptr_t" != yes; then
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12401$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12402 case $ac_cv_sizeof_void_p in
12403 2) acx_cv_type_intptr_t=int16_t ;;
12404 4) acx_cv_type_intptr_t=int32_t ;;
12405 8) acx_cv_type_intptr_t=int64_t ;;
22e05272 12406 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
48310492
RH
12407 esac
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12409$as_echo "$acx_cv_type_intptr_t" >&6; }
12410fi
12411
12412# ----------------- done all checks, emit header -------------
12413ac_config_commands="$ac_config_commands gstdint.h"
12414
12415
12416
267bac10
JM
12417for ac_header in fenv.h
12418do :
12419 ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
22e05272 12420if test "x$ac_cv_header_fenv_h" = xyes; then :
267bac10
JM
12421 cat >>confdefs.h <<_ACEOF
12422#define HAVE_FENV_H 1
12423_ACEOF
12424
12425fi
12426
12427done
12428
48310492
RH
12429
12430# Check for common type sizes
12431
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 1 byte integer" >&5
12433$as_echo_n "checking for 1 byte integer... " >&6; }
22e05272 12434if ${libat_cv_have_mode_QI+:} false; then :
48310492
RH
12435 $as_echo_n "(cached) " >&6
12436else
12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438/* end confdefs.h. */
12439int x __attribute__((mode(QI)));
12440_ACEOF
12441if ac_fn_c_try_compile "$LINENO"; then :
12442 libat_cv_have_mode_QI=yes
12443else
12444 libat_cv_have_mode_QI=no
12445fi
12446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447fi
12448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_QI" >&5
12449$as_echo "$libat_cv_have_mode_QI" >&6; }
12450
12451 yesno=`echo $libat_cv_have_mode_QI | tr 'yesno' '1 0 '`
12452
12453cat >>confdefs.h <<_ACEOF
12454#define HAVE_INT1 $yesno
12455_ACEOF
12456
12457
12458 if test x$libat_cv_have_mode_QI = xyes; then
12459 SIZES="$SIZES 1"
12460 fi
12461
12462
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2 byte integer" >&5
12464$as_echo_n "checking for 2 byte integer... " >&6; }
22e05272 12465if ${libat_cv_have_mode_HI+:} false; then :
48310492
RH
12466 $as_echo_n "(cached) " >&6
12467else
12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469/* end confdefs.h. */
12470int x __attribute__((mode(HI)));
12471_ACEOF
12472if ac_fn_c_try_compile "$LINENO"; then :
12473 libat_cv_have_mode_HI=yes
12474else
12475 libat_cv_have_mode_HI=no
12476fi
12477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12478fi
12479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_HI" >&5
12480$as_echo "$libat_cv_have_mode_HI" >&6; }
12481
12482 yesno=`echo $libat_cv_have_mode_HI | tr 'yesno' '1 0 '`
12483
12484cat >>confdefs.h <<_ACEOF
12485#define HAVE_INT2 $yesno
12486_ACEOF
12487
12488
12489 if test x$libat_cv_have_mode_HI = xyes; then
12490 SIZES="$SIZES 2"
12491 fi
12492
12493
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4 byte integer" >&5
12495$as_echo_n "checking for 4 byte integer... " >&6; }
22e05272 12496if ${libat_cv_have_mode_SI+:} false; then :
48310492
RH
12497 $as_echo_n "(cached) " >&6
12498else
12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500/* end confdefs.h. */
12501int x __attribute__((mode(SI)));
12502_ACEOF
12503if ac_fn_c_try_compile "$LINENO"; then :
12504 libat_cv_have_mode_SI=yes
12505else
12506 libat_cv_have_mode_SI=no
12507fi
12508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12509fi
12510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_SI" >&5
12511$as_echo "$libat_cv_have_mode_SI" >&6; }
12512
12513 yesno=`echo $libat_cv_have_mode_SI | tr 'yesno' '1 0 '`
12514
12515cat >>confdefs.h <<_ACEOF
12516#define HAVE_INT4 $yesno
12517_ACEOF
12518
12519
12520 if test x$libat_cv_have_mode_SI = xyes; then
12521 SIZES="$SIZES 4"
12522 fi
12523
12524
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 8 byte integer" >&5
12526$as_echo_n "checking for 8 byte integer... " >&6; }
22e05272 12527if ${libat_cv_have_mode_DI+:} false; then :
48310492
RH
12528 $as_echo_n "(cached) " >&6
12529else
12530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12531/* end confdefs.h. */
12532int x __attribute__((mode(DI)));
12533_ACEOF
12534if ac_fn_c_try_compile "$LINENO"; then :
12535 libat_cv_have_mode_DI=yes
12536else
12537 libat_cv_have_mode_DI=no
12538fi
12539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12540fi
12541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_DI" >&5
12542$as_echo "$libat_cv_have_mode_DI" >&6; }
12543
12544 yesno=`echo $libat_cv_have_mode_DI | tr 'yesno' '1 0 '`
12545
12546cat >>confdefs.h <<_ACEOF
12547#define HAVE_INT8 $yesno
12548_ACEOF
12549
12550
12551 if test x$libat_cv_have_mode_DI = xyes; then
12552 SIZES="$SIZES 8"
12553 fi
12554
12555
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16 byte integer" >&5
12557$as_echo_n "checking for 16 byte integer... " >&6; }
22e05272 12558if ${libat_cv_have_mode_TI+:} false; then :
48310492
RH
12559 $as_echo_n "(cached) " >&6
12560else
12561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562/* end confdefs.h. */
12563int x __attribute__((mode(TI)));
12564_ACEOF
12565if ac_fn_c_try_compile "$LINENO"; then :
12566 libat_cv_have_mode_TI=yes
12567else
12568 libat_cv_have_mode_TI=no
12569fi
12570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12571fi
12572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_TI" >&5
12573$as_echo "$libat_cv_have_mode_TI" >&6; }
12574
12575 yesno=`echo $libat_cv_have_mode_TI | tr 'yesno' '1 0 '`
12576
12577cat >>confdefs.h <<_ACEOF
12578#define HAVE_INT16 $yesno
12579_ACEOF
12580
12581
12582 if test x$libat_cv_have_mode_TI = xyes; then
12583 SIZES="$SIZES 16"
12584 fi
12585
12586
12587
12588# Check for compiler builtins of atomic operations.
12589
12590 # Do link tests if possible, instead asm tests, limited to some platforms
12591 # see discussion in PR target/40134, PR libstdc++/40133 and the thread
12592 # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html
12593 atomic_builtins_link_tests=no
12594 if test x$gcc_no_link != xyes; then
12595 # Can do link tests. Limit to some tested platforms
12596 case "$host" in
12597 *-*-linux* | *-*-uclinux* | *-*-kfreebsd*-gnu | *-*-gnu*)
12598 atomic_builtins_link_tests=yes
12599 ;;
12600 esac
12601 fi
12602
12603
12604
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 1" >&5
12606$as_echo_n "checking for __atomic_load/store for size 1... " >&6; }
22e05272 12607if ${libat_cv_have_at_ldst_1+:} false; then :
48310492
RH
12608 $as_echo_n "(cached) " >&6
12609else
12610
12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612/* end confdefs.h. */
12613
12614int
12615main ()
12616{
12617typedef int T __attribute__((mode(QI)));
12618 T *x; volatile T sink; asm("" : "=g"(x));
12619 sink = __atomic_load_n(x, 0);
12620 __atomic_store_n(x, sink, 0);
12621 ;
12622 return 0;
12623}
12624_ACEOF
12625 if test x$atomic_builtins_link_tests = xyes; then
12626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12627 (eval $ac_link) 2>&5
12628 ac_status=$?
12629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12630 test $ac_status = 0; }; then
12631 eval libat_cv_have_at_ldst_1=yes
12632 else
12633 eval libat_cv_have_at_ldst_1=no
12634 fi
12635 else
12636 old_CFLAGS="$CFLAGS"
12637 # Compile unoptimized.
aaea76b3 12638 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12640 (eval $ac_compile) 2>&5
12641 ac_status=$?
12642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12643 test $ac_status = 0; }; then
12644 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12645 eval libat_cv_have_at_ldst_1=no
12646 else
12647 eval libat_cv_have_at_ldst_1=yes
12648 fi
0fe5522f
RH
12649 else
12650 eval libat_cv_have_at_ldst_1=no
48310492
RH
12651 fi
12652 CFLAGS="$old_CFLAGS"
12653 fi
12654 rm -f conftest*
12655
12656fi
12657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_1" >&5
12658$as_echo "$libat_cv_have_at_ldst_1" >&6; }
12659
12660
12661 yesno=`echo $libat_cv_have_at_ldst_1 | tr 'yesno' '1 0 '`
12662
12663cat >>confdefs.h <<_ACEOF
12664#define HAVE_ATOMIC_LDST_1 $yesno
12665_ACEOF
12666
12667
12668
12669
12670
12671
bc437a56 12672
48310492
RH
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 2" >&5
12674$as_echo_n "checking for __atomic_load/store for size 2... " >&6; }
22e05272 12675if ${libat_cv_have_at_ldst_2+:} false; then :
48310492
RH
12676 $as_echo_n "(cached) " >&6
12677else
12678
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680/* end confdefs.h. */
12681
12682int
12683main ()
12684{
12685typedef int T __attribute__((mode(HI)));
12686 T *x; volatile T sink; asm("" : "=g"(x));
12687 sink = __atomic_load_n(x, 0);
12688 __atomic_store_n(x, sink, 0);
12689 ;
12690 return 0;
12691}
12692_ACEOF
12693 if test x$atomic_builtins_link_tests = xyes; then
12694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12695 (eval $ac_link) 2>&5
12696 ac_status=$?
12697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12698 test $ac_status = 0; }; then
12699 eval libat_cv_have_at_ldst_2=yes
12700 else
12701 eval libat_cv_have_at_ldst_2=no
12702 fi
12703 else
12704 old_CFLAGS="$CFLAGS"
12705 # Compile unoptimized.
aaea76b3 12706 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12708 (eval $ac_compile) 2>&5
12709 ac_status=$?
12710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12711 test $ac_status = 0; }; then
12712 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12713 eval libat_cv_have_at_ldst_2=no
12714 else
12715 eval libat_cv_have_at_ldst_2=yes
12716 fi
0fe5522f
RH
12717 else
12718 eval libat_cv_have_at_ldst_2=no
48310492
RH
12719 fi
12720 CFLAGS="$old_CFLAGS"
12721 fi
12722 rm -f conftest*
12723
12724fi
12725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_2" >&5
12726$as_echo "$libat_cv_have_at_ldst_2" >&6; }
12727
12728
12729 yesno=`echo $libat_cv_have_at_ldst_2 | tr 'yesno' '1 0 '`
12730
12731cat >>confdefs.h <<_ACEOF
12732#define HAVE_ATOMIC_LDST_2 $yesno
12733_ACEOF
12734
12735
12736
12737
12738
12739
bc437a56 12740
48310492
RH
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 4" >&5
12742$as_echo_n "checking for __atomic_load/store for size 4... " >&6; }
22e05272 12743if ${libat_cv_have_at_ldst_4+:} false; then :
48310492
RH
12744 $as_echo_n "(cached) " >&6
12745else
12746
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748/* end confdefs.h. */
12749
12750int
12751main ()
12752{
12753typedef int T __attribute__((mode(SI)));
12754 T *x; volatile T sink; asm("" : "=g"(x));
12755 sink = __atomic_load_n(x, 0);
12756 __atomic_store_n(x, sink, 0);
12757 ;
12758 return 0;
12759}
12760_ACEOF
12761 if test x$atomic_builtins_link_tests = xyes; then
12762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12763 (eval $ac_link) 2>&5
12764 ac_status=$?
12765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12766 test $ac_status = 0; }; then
12767 eval libat_cv_have_at_ldst_4=yes
12768 else
12769 eval libat_cv_have_at_ldst_4=no
12770 fi
12771 else
12772 old_CFLAGS="$CFLAGS"
12773 # Compile unoptimized.
aaea76b3 12774 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12776 (eval $ac_compile) 2>&5
12777 ac_status=$?
12778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12779 test $ac_status = 0; }; then
12780 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12781 eval libat_cv_have_at_ldst_4=no
12782 else
12783 eval libat_cv_have_at_ldst_4=yes
12784 fi
0fe5522f
RH
12785 else
12786 eval libat_cv_have_at_ldst_4=no
48310492
RH
12787 fi
12788 CFLAGS="$old_CFLAGS"
12789 fi
12790 rm -f conftest*
12791
12792fi
12793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_4" >&5
12794$as_echo "$libat_cv_have_at_ldst_4" >&6; }
12795
12796
12797 yesno=`echo $libat_cv_have_at_ldst_4 | tr 'yesno' '1 0 '`
12798
12799cat >>confdefs.h <<_ACEOF
12800#define HAVE_ATOMIC_LDST_4 $yesno
12801_ACEOF
12802
12803
12804
12805
12806
12807
bc437a56 12808
48310492
RH
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 8" >&5
12810$as_echo_n "checking for __atomic_load/store for size 8... " >&6; }
22e05272 12811if ${libat_cv_have_at_ldst_8+:} false; then :
48310492
RH
12812 $as_echo_n "(cached) " >&6
12813else
12814
12815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12816/* end confdefs.h. */
12817
12818int
12819main ()
12820{
12821typedef int T __attribute__((mode(DI)));
12822 T *x; volatile T sink; asm("" : "=g"(x));
12823 sink = __atomic_load_n(x, 0);
12824 __atomic_store_n(x, sink, 0);
12825 ;
12826 return 0;
12827}
12828_ACEOF
12829 if test x$atomic_builtins_link_tests = xyes; then
12830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12831 (eval $ac_link) 2>&5
12832 ac_status=$?
12833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12834 test $ac_status = 0; }; then
12835 eval libat_cv_have_at_ldst_8=yes
12836 else
12837 eval libat_cv_have_at_ldst_8=no
12838 fi
12839 else
12840 old_CFLAGS="$CFLAGS"
12841 # Compile unoptimized.
aaea76b3 12842 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12844 (eval $ac_compile) 2>&5
12845 ac_status=$?
12846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12847 test $ac_status = 0; }; then
12848 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12849 eval libat_cv_have_at_ldst_8=no
12850 else
12851 eval libat_cv_have_at_ldst_8=yes
12852 fi
0fe5522f
RH
12853 else
12854 eval libat_cv_have_at_ldst_8=no
48310492
RH
12855 fi
12856 CFLAGS="$old_CFLAGS"
12857 fi
12858 rm -f conftest*
12859
12860fi
12861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_8" >&5
12862$as_echo "$libat_cv_have_at_ldst_8" >&6; }
12863
12864
12865 yesno=`echo $libat_cv_have_at_ldst_8 | tr 'yesno' '1 0 '`
12866
12867cat >>confdefs.h <<_ACEOF
12868#define HAVE_ATOMIC_LDST_8 $yesno
12869_ACEOF
12870
12871
12872
12873
12874
12875
bc437a56 12876
48310492
RH
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 16" >&5
12878$as_echo_n "checking for __atomic_load/store for size 16... " >&6; }
22e05272 12879if ${libat_cv_have_at_ldst_16+:} false; then :
48310492
RH
12880 $as_echo_n "(cached) " >&6
12881else
12882
12883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884/* end confdefs.h. */
12885
12886int
12887main ()
12888{
12889typedef int T __attribute__((mode(TI)));
12890 T *x; volatile T sink; asm("" : "=g"(x));
12891 sink = __atomic_load_n(x, 0);
12892 __atomic_store_n(x, sink, 0);
12893 ;
12894 return 0;
12895}
12896_ACEOF
12897 if test x$atomic_builtins_link_tests = xyes; then
12898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12899 (eval $ac_link) 2>&5
12900 ac_status=$?
12901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12902 test $ac_status = 0; }; then
12903 eval libat_cv_have_at_ldst_16=yes
12904 else
12905 eval libat_cv_have_at_ldst_16=no
12906 fi
12907 else
12908 old_CFLAGS="$CFLAGS"
12909 # Compile unoptimized.
aaea76b3 12910 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12912 (eval $ac_compile) 2>&5
12913 ac_status=$?
12914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12915 test $ac_status = 0; }; then
12916 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12917 eval libat_cv_have_at_ldst_16=no
12918 else
12919 eval libat_cv_have_at_ldst_16=yes
12920 fi
0fe5522f
RH
12921 else
12922 eval libat_cv_have_at_ldst_16=no
48310492
RH
12923 fi
12924 CFLAGS="$old_CFLAGS"
12925 fi
12926 rm -f conftest*
12927
12928fi
12929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_16" >&5
12930$as_echo "$libat_cv_have_at_ldst_16" >&6; }
12931
12932
12933 yesno=`echo $libat_cv_have_at_ldst_16 | tr 'yesno' '1 0 '`
12934
12935cat >>confdefs.h <<_ACEOF
12936#define HAVE_ATOMIC_LDST_16 $yesno
12937_ACEOF
12938
12939
12940
12941
12942
12943
12944
bc437a56 12945
48310492
RH
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 1" >&5
12947$as_echo_n "checking for __atomic_test_and_set for size 1... " >&6; }
22e05272 12948if ${libat_cv_have_at_tas_1+:} false; then :
48310492
RH
12949 $as_echo_n "(cached) " >&6
12950else
12951
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953/* end confdefs.h. */
12954
12955int
12956main ()
12957{
12958typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
12959 __atomic_test_and_set(x, 0);
12960 ;
12961 return 0;
12962}
12963_ACEOF
12964 if test x$atomic_builtins_link_tests = xyes; then
12965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12966 (eval $ac_link) 2>&5
12967 ac_status=$?
12968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12969 test $ac_status = 0; }; then
12970 eval libat_cv_have_at_tas_1=yes
12971 else
12972 eval libat_cv_have_at_tas_1=no
12973 fi
12974 else
12975 old_CFLAGS="$CFLAGS"
12976 # Compile unoptimized.
aaea76b3 12977 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12979 (eval $ac_compile) 2>&5
12980 ac_status=$?
12981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12982 test $ac_status = 0; }; then
12983 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12984 eval libat_cv_have_at_tas_1=no
12985 else
12986 eval libat_cv_have_at_tas_1=yes
12987 fi
0fe5522f
RH
12988 else
12989 eval libat_cv_have_at_tas_1=no
48310492
RH
12990 fi
12991 CFLAGS="$old_CFLAGS"
12992 fi
12993 rm -f conftest*
12994
12995fi
12996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_1" >&5
12997$as_echo "$libat_cv_have_at_tas_1" >&6; }
12998
12999
13000 yesno=`echo $libat_cv_have_at_tas_1 | tr 'yesno' '1 0 '`
13001
13002cat >>confdefs.h <<_ACEOF
13003#define HAVE_ATOMIC_TAS_1 $yesno
13004_ACEOF
13005
13006
13007
13008
13009
13010
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 2" >&5
13012$as_echo_n "checking for __atomic_test_and_set for size 2... " >&6; }
22e05272 13013if ${libat_cv_have_at_tas_2+:} false; then :
48310492
RH
13014 $as_echo_n "(cached) " >&6
13015else
13016
13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13018/* end confdefs.h. */
13019
13020int
13021main ()
13022{
13023typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
13024 __atomic_test_and_set(x, 0);
13025 ;
13026 return 0;
13027}
13028_ACEOF
13029 if test x$atomic_builtins_link_tests = xyes; then
13030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13031 (eval $ac_link) 2>&5
13032 ac_status=$?
13033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13034 test $ac_status = 0; }; then
13035 eval libat_cv_have_at_tas_2=yes
13036 else
13037 eval libat_cv_have_at_tas_2=no
13038 fi
13039 else
13040 old_CFLAGS="$CFLAGS"
13041 # Compile unoptimized.
aaea76b3 13042 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13044 (eval $ac_compile) 2>&5
13045 ac_status=$?
13046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13047 test $ac_status = 0; }; then
13048 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13049 eval libat_cv_have_at_tas_2=no
13050 else
13051 eval libat_cv_have_at_tas_2=yes
13052 fi
0fe5522f
RH
13053 else
13054 eval libat_cv_have_at_tas_2=no
48310492
RH
13055 fi
13056 CFLAGS="$old_CFLAGS"
13057 fi
13058 rm -f conftest*
13059
13060fi
13061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_2" >&5
13062$as_echo "$libat_cv_have_at_tas_2" >&6; }
13063
13064
13065 yesno=`echo $libat_cv_have_at_tas_2 | tr 'yesno' '1 0 '`
13066
13067cat >>confdefs.h <<_ACEOF
13068#define HAVE_ATOMIC_TAS_2 $yesno
13069_ACEOF
13070
13071
13072
13073
13074
13075
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 4" >&5
13077$as_echo_n "checking for __atomic_test_and_set for size 4... " >&6; }
22e05272 13078if ${libat_cv_have_at_tas_4+:} false; then :
48310492
RH
13079 $as_echo_n "(cached) " >&6
13080else
13081
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083/* end confdefs.h. */
13084
13085int
13086main ()
13087{
13088typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
13089 __atomic_test_and_set(x, 0);
13090 ;
13091 return 0;
13092}
13093_ACEOF
13094 if test x$atomic_builtins_link_tests = xyes; then
13095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13096 (eval $ac_link) 2>&5
13097 ac_status=$?
13098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13099 test $ac_status = 0; }; then
13100 eval libat_cv_have_at_tas_4=yes
13101 else
13102 eval libat_cv_have_at_tas_4=no
13103 fi
13104 else
13105 old_CFLAGS="$CFLAGS"
13106 # Compile unoptimized.
aaea76b3 13107 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13109 (eval $ac_compile) 2>&5
13110 ac_status=$?
13111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13112 test $ac_status = 0; }; then
13113 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13114 eval libat_cv_have_at_tas_4=no
13115 else
13116 eval libat_cv_have_at_tas_4=yes
13117 fi
0fe5522f
RH
13118 else
13119 eval libat_cv_have_at_tas_4=no
48310492
RH
13120 fi
13121 CFLAGS="$old_CFLAGS"
13122 fi
13123 rm -f conftest*
13124
13125fi
13126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_4" >&5
13127$as_echo "$libat_cv_have_at_tas_4" >&6; }
13128
13129
13130 yesno=`echo $libat_cv_have_at_tas_4 | tr 'yesno' '1 0 '`
13131
13132cat >>confdefs.h <<_ACEOF
13133#define HAVE_ATOMIC_TAS_4 $yesno
13134_ACEOF
13135
13136
13137
13138
13139
13140
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 8" >&5
13142$as_echo_n "checking for __atomic_test_and_set for size 8... " >&6; }
22e05272 13143if ${libat_cv_have_at_tas_8+:} false; then :
48310492
RH
13144 $as_echo_n "(cached) " >&6
13145else
13146
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148/* end confdefs.h. */
13149
13150int
13151main ()
13152{
13153typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
13154 __atomic_test_and_set(x, 0);
13155 ;
13156 return 0;
13157}
13158_ACEOF
13159 if test x$atomic_builtins_link_tests = xyes; then
13160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13161 (eval $ac_link) 2>&5
13162 ac_status=$?
13163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13164 test $ac_status = 0; }; then
13165 eval libat_cv_have_at_tas_8=yes
13166 else
13167 eval libat_cv_have_at_tas_8=no
13168 fi
13169 else
13170 old_CFLAGS="$CFLAGS"
13171 # Compile unoptimized.
aaea76b3 13172 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13174 (eval $ac_compile) 2>&5
13175 ac_status=$?
13176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13177 test $ac_status = 0; }; then
13178 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13179 eval libat_cv_have_at_tas_8=no
13180 else
13181 eval libat_cv_have_at_tas_8=yes
13182 fi
0fe5522f
RH
13183 else
13184 eval libat_cv_have_at_tas_8=no
48310492
RH
13185 fi
13186 CFLAGS="$old_CFLAGS"
13187 fi
13188 rm -f conftest*
13189
13190fi
13191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_8" >&5
13192$as_echo "$libat_cv_have_at_tas_8" >&6; }
13193
13194
13195 yesno=`echo $libat_cv_have_at_tas_8 | tr 'yesno' '1 0 '`
13196
13197cat >>confdefs.h <<_ACEOF
13198#define HAVE_ATOMIC_TAS_8 $yesno
13199_ACEOF
13200
13201
13202
13203
13204
13205
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 16" >&5
13207$as_echo_n "checking for __atomic_test_and_set for size 16... " >&6; }
22e05272 13208if ${libat_cv_have_at_tas_16+:} false; then :
48310492
RH
13209 $as_echo_n "(cached) " >&6
13210else
13211
13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213/* end confdefs.h. */
13214
13215int
13216main ()
13217{
13218typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
13219 __atomic_test_and_set(x, 0);
13220 ;
13221 return 0;
13222}
13223_ACEOF
13224 if test x$atomic_builtins_link_tests = xyes; then
13225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13226 (eval $ac_link) 2>&5
13227 ac_status=$?
13228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13229 test $ac_status = 0; }; then
13230 eval libat_cv_have_at_tas_16=yes
13231 else
13232 eval libat_cv_have_at_tas_16=no
13233 fi
13234 else
13235 old_CFLAGS="$CFLAGS"
13236 # Compile unoptimized.
aaea76b3 13237 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13239 (eval $ac_compile) 2>&5
13240 ac_status=$?
13241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13242 test $ac_status = 0; }; then
13243 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13244 eval libat_cv_have_at_tas_16=no
13245 else
13246 eval libat_cv_have_at_tas_16=yes
13247 fi
0fe5522f
RH
13248 else
13249 eval libat_cv_have_at_tas_16=no
48310492
RH
13250 fi
13251 CFLAGS="$old_CFLAGS"
13252 fi
13253 rm -f conftest*
13254
13255fi
13256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_16" >&5
13257$as_echo "$libat_cv_have_at_tas_16" >&6; }
13258
13259
13260 yesno=`echo $libat_cv_have_at_tas_16 | tr 'yesno' '1 0 '`
13261
13262cat >>confdefs.h <<_ACEOF
13263#define HAVE_ATOMIC_TAS_16 $yesno
13264_ACEOF
13265
13266
13267
13268
13269
13270
13271
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 1" >&5
13273$as_echo_n "checking for __atomic_exchange for size 1... " >&6; }
22e05272 13274if ${libat_cv_have_at_exch_1+:} false; then :
48310492
RH
13275 $as_echo_n "(cached) " >&6
13276else
13277
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279/* end confdefs.h. */
13280
13281int
13282main ()
13283{
13284typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
13285 __atomic_exchange_n(x, 0, 0);
13286 ;
13287 return 0;
13288}
13289_ACEOF
13290 if test x$atomic_builtins_link_tests = xyes; then
13291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13292 (eval $ac_link) 2>&5
13293 ac_status=$?
13294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13295 test $ac_status = 0; }; then
13296 eval libat_cv_have_at_exch_1=yes
13297 else
13298 eval libat_cv_have_at_exch_1=no
13299 fi
13300 else
13301 old_CFLAGS="$CFLAGS"
13302 # Compile unoptimized.
aaea76b3 13303 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13305 (eval $ac_compile) 2>&5
13306 ac_status=$?
13307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13308 test $ac_status = 0; }; then
13309 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13310 eval libat_cv_have_at_exch_1=no
13311 else
13312 eval libat_cv_have_at_exch_1=yes
13313 fi
0fe5522f
RH
13314 else
13315 eval libat_cv_have_at_exch_1=no
48310492
RH
13316 fi
13317 CFLAGS="$old_CFLAGS"
13318 fi
13319 rm -f conftest*
13320
13321fi
13322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_1" >&5
13323$as_echo "$libat_cv_have_at_exch_1" >&6; }
13324
13325
13326 yesno=`echo $libat_cv_have_at_exch_1 | tr 'yesno' '1 0 '`
13327
13328cat >>confdefs.h <<_ACEOF
13329#define HAVE_ATOMIC_EXCHANGE_1 $yesno
13330_ACEOF
13331
13332
13333
13334
13335
13336
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 2" >&5
13338$as_echo_n "checking for __atomic_exchange for size 2... " >&6; }
22e05272 13339if ${libat_cv_have_at_exch_2+:} false; then :
48310492
RH
13340 $as_echo_n "(cached) " >&6
13341else
13342
13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344/* end confdefs.h. */
13345
13346int
13347main ()
13348{
13349typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
13350 __atomic_exchange_n(x, 0, 0);
13351 ;
13352 return 0;
13353}
13354_ACEOF
13355 if test x$atomic_builtins_link_tests = xyes; then
13356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13357 (eval $ac_link) 2>&5
13358 ac_status=$?
13359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13360 test $ac_status = 0; }; then
13361 eval libat_cv_have_at_exch_2=yes
13362 else
13363 eval libat_cv_have_at_exch_2=no
13364 fi
13365 else
13366 old_CFLAGS="$CFLAGS"
13367 # Compile unoptimized.
aaea76b3 13368 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13370 (eval $ac_compile) 2>&5
13371 ac_status=$?
13372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13373 test $ac_status = 0; }; then
13374 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13375 eval libat_cv_have_at_exch_2=no
13376 else
13377 eval libat_cv_have_at_exch_2=yes
13378 fi
0fe5522f
RH
13379 else
13380 eval libat_cv_have_at_exch_2=no
48310492
RH
13381 fi
13382 CFLAGS="$old_CFLAGS"
13383 fi
13384 rm -f conftest*
13385
13386fi
13387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_2" >&5
13388$as_echo "$libat_cv_have_at_exch_2" >&6; }
13389
13390
13391 yesno=`echo $libat_cv_have_at_exch_2 | tr 'yesno' '1 0 '`
13392
13393cat >>confdefs.h <<_ACEOF
13394#define HAVE_ATOMIC_EXCHANGE_2 $yesno
13395_ACEOF
13396
13397
13398
13399
13400
13401
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 4" >&5
13403$as_echo_n "checking for __atomic_exchange for size 4... " >&6; }
22e05272 13404if ${libat_cv_have_at_exch_4+:} false; then :
48310492
RH
13405 $as_echo_n "(cached) " >&6
13406else
13407
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409/* end confdefs.h. */
13410
13411int
13412main ()
13413{
13414typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
13415 __atomic_exchange_n(x, 0, 0);
13416 ;
13417 return 0;
13418}
13419_ACEOF
13420 if test x$atomic_builtins_link_tests = xyes; then
13421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13422 (eval $ac_link) 2>&5
13423 ac_status=$?
13424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13425 test $ac_status = 0; }; then
13426 eval libat_cv_have_at_exch_4=yes
13427 else
13428 eval libat_cv_have_at_exch_4=no
13429 fi
13430 else
13431 old_CFLAGS="$CFLAGS"
13432 # Compile unoptimized.
aaea76b3 13433 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13435 (eval $ac_compile) 2>&5
13436 ac_status=$?
13437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13438 test $ac_status = 0; }; then
13439 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13440 eval libat_cv_have_at_exch_4=no
13441 else
13442 eval libat_cv_have_at_exch_4=yes
13443 fi
0fe5522f
RH
13444 else
13445 eval libat_cv_have_at_exch_4=no
48310492
RH
13446 fi
13447 CFLAGS="$old_CFLAGS"
13448 fi
13449 rm -f conftest*
13450
13451fi
13452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_4" >&5
13453$as_echo "$libat_cv_have_at_exch_4" >&6; }
13454
13455
13456 yesno=`echo $libat_cv_have_at_exch_4 | tr 'yesno' '1 0 '`
13457
13458cat >>confdefs.h <<_ACEOF
13459#define HAVE_ATOMIC_EXCHANGE_4 $yesno
13460_ACEOF
13461
13462
13463
13464
13465
13466
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 8" >&5
13468$as_echo_n "checking for __atomic_exchange for size 8... " >&6; }
22e05272 13469if ${libat_cv_have_at_exch_8+:} false; then :
48310492
RH
13470 $as_echo_n "(cached) " >&6
13471else
13472
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474/* end confdefs.h. */
13475
13476int
13477main ()
13478{
13479typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
13480 __atomic_exchange_n(x, 0, 0);
13481 ;
13482 return 0;
13483}
13484_ACEOF
13485 if test x$atomic_builtins_link_tests = xyes; then
13486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13487 (eval $ac_link) 2>&5
13488 ac_status=$?
13489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13490 test $ac_status = 0; }; then
13491 eval libat_cv_have_at_exch_8=yes
13492 else
13493 eval libat_cv_have_at_exch_8=no
13494 fi
13495 else
13496 old_CFLAGS="$CFLAGS"
13497 # Compile unoptimized.
aaea76b3 13498 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13500 (eval $ac_compile) 2>&5
13501 ac_status=$?
13502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13503 test $ac_status = 0; }; then
13504 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13505 eval libat_cv_have_at_exch_8=no
13506 else
13507 eval libat_cv_have_at_exch_8=yes
13508 fi
0fe5522f
RH
13509 else
13510 eval libat_cv_have_at_exch_8=no
48310492
RH
13511 fi
13512 CFLAGS="$old_CFLAGS"
13513 fi
13514 rm -f conftest*
13515
13516fi
13517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_8" >&5
13518$as_echo "$libat_cv_have_at_exch_8" >&6; }
13519
13520
13521 yesno=`echo $libat_cv_have_at_exch_8 | tr 'yesno' '1 0 '`
13522
13523cat >>confdefs.h <<_ACEOF
13524#define HAVE_ATOMIC_EXCHANGE_8 $yesno
13525_ACEOF
13526
13527
13528
13529
13530
13531
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 16" >&5
13533$as_echo_n "checking for __atomic_exchange for size 16... " >&6; }
22e05272 13534if ${libat_cv_have_at_exch_16+:} false; then :
48310492
RH
13535 $as_echo_n "(cached) " >&6
13536else
13537
13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539/* end confdefs.h. */
13540
13541int
13542main ()
13543{
13544typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
13545 __atomic_exchange_n(x, 0, 0);
13546 ;
13547 return 0;
13548}
13549_ACEOF
13550 if test x$atomic_builtins_link_tests = xyes; then
13551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13552 (eval $ac_link) 2>&5
13553 ac_status=$?
13554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13555 test $ac_status = 0; }; then
13556 eval libat_cv_have_at_exch_16=yes
13557 else
13558 eval libat_cv_have_at_exch_16=no
13559 fi
13560 else
13561 old_CFLAGS="$CFLAGS"
13562 # Compile unoptimized.
aaea76b3 13563 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13565 (eval $ac_compile) 2>&5
13566 ac_status=$?
13567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13568 test $ac_status = 0; }; then
13569 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13570 eval libat_cv_have_at_exch_16=no
13571 else
13572 eval libat_cv_have_at_exch_16=yes
13573 fi
0fe5522f
RH
13574 else
13575 eval libat_cv_have_at_exch_16=no
48310492
RH
13576 fi
13577 CFLAGS="$old_CFLAGS"
13578 fi
13579 rm -f conftest*
13580
13581fi
13582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_16" >&5
13583$as_echo "$libat_cv_have_at_exch_16" >&6; }
13584
13585
13586 yesno=`echo $libat_cv_have_at_exch_16 | tr 'yesno' '1 0 '`
13587
13588cat >>confdefs.h <<_ACEOF
13589#define HAVE_ATOMIC_EXCHANGE_16 $yesno
13590_ACEOF
13591
13592
13593
13594
13595
13596
13597
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 1" >&5
13599$as_echo_n "checking for __atomic_compare_exchange for size 1... " >&6; }
22e05272 13600if ${libat_cv_have_at_cas_1+:} false; then :
48310492
RH
13601 $as_echo_n "(cached) " >&6
13602else
13603
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605/* end confdefs.h. */
13606
13607int
13608main ()
13609{
13610typedef int T __attribute__((mode(QI))); T *x, *y;
13611 asm("" : "=g"(x), "=g"(y));
13612 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13613 ;
13614 return 0;
13615}
13616_ACEOF
13617 if test x$atomic_builtins_link_tests = xyes; then
13618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13619 (eval $ac_link) 2>&5
13620 ac_status=$?
13621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13622 test $ac_status = 0; }; then
13623 eval libat_cv_have_at_cas_1=yes
13624 else
13625 eval libat_cv_have_at_cas_1=no
13626 fi
13627 else
13628 old_CFLAGS="$CFLAGS"
13629 # Compile unoptimized.
aaea76b3 13630 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13632 (eval $ac_compile) 2>&5
13633 ac_status=$?
13634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13635 test $ac_status = 0; }; then
13636 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13637 eval libat_cv_have_at_cas_1=no
13638 else
13639 eval libat_cv_have_at_cas_1=yes
13640 fi
0fe5522f
RH
13641 else
13642 eval libat_cv_have_at_cas_1=no
48310492
RH
13643 fi
13644 CFLAGS="$old_CFLAGS"
13645 fi
13646 rm -f conftest*
13647
13648fi
13649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_1" >&5
13650$as_echo "$libat_cv_have_at_cas_1" >&6; }
13651
13652
13653 yesno=`echo $libat_cv_have_at_cas_1 | tr 'yesno' '1 0 '`
13654
13655cat >>confdefs.h <<_ACEOF
13656#define HAVE_ATOMIC_CAS_1 $yesno
13657_ACEOF
13658
13659
13660
13661
13662
13663
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 2" >&5
13665$as_echo_n "checking for __atomic_compare_exchange for size 2... " >&6; }
22e05272 13666if ${libat_cv_have_at_cas_2+:} false; then :
48310492
RH
13667 $as_echo_n "(cached) " >&6
13668else
13669
13670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671/* end confdefs.h. */
13672
13673int
13674main ()
13675{
13676typedef int T __attribute__((mode(HI))); T *x, *y;
13677 asm("" : "=g"(x), "=g"(y));
13678 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13679 ;
13680 return 0;
13681}
13682_ACEOF
13683 if test x$atomic_builtins_link_tests = xyes; then
13684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13685 (eval $ac_link) 2>&5
13686 ac_status=$?
13687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13688 test $ac_status = 0; }; then
13689 eval libat_cv_have_at_cas_2=yes
13690 else
13691 eval libat_cv_have_at_cas_2=no
13692 fi
13693 else
13694 old_CFLAGS="$CFLAGS"
13695 # Compile unoptimized.
aaea76b3 13696 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13698 (eval $ac_compile) 2>&5
13699 ac_status=$?
13700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13701 test $ac_status = 0; }; then
13702 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13703 eval libat_cv_have_at_cas_2=no
13704 else
13705 eval libat_cv_have_at_cas_2=yes
13706 fi
0fe5522f
RH
13707 else
13708 eval libat_cv_have_at_cas_2=no
48310492
RH
13709 fi
13710 CFLAGS="$old_CFLAGS"
13711 fi
13712 rm -f conftest*
13713
13714fi
13715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_2" >&5
13716$as_echo "$libat_cv_have_at_cas_2" >&6; }
13717
13718
13719 yesno=`echo $libat_cv_have_at_cas_2 | tr 'yesno' '1 0 '`
13720
13721cat >>confdefs.h <<_ACEOF
13722#define HAVE_ATOMIC_CAS_2 $yesno
13723_ACEOF
13724
13725
13726
13727
13728
13729
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 4" >&5
13731$as_echo_n "checking for __atomic_compare_exchange for size 4... " >&6; }
22e05272 13732if ${libat_cv_have_at_cas_4+:} false; then :
48310492
RH
13733 $as_echo_n "(cached) " >&6
13734else
13735
13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737/* end confdefs.h. */
13738
13739int
13740main ()
13741{
13742typedef int T __attribute__((mode(SI))); T *x, *y;
13743 asm("" : "=g"(x), "=g"(y));
13744 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13745 ;
13746 return 0;
13747}
13748_ACEOF
13749 if test x$atomic_builtins_link_tests = xyes; then
13750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13751 (eval $ac_link) 2>&5
13752 ac_status=$?
13753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13754 test $ac_status = 0; }; then
13755 eval libat_cv_have_at_cas_4=yes
13756 else
13757 eval libat_cv_have_at_cas_4=no
13758 fi
13759 else
13760 old_CFLAGS="$CFLAGS"
13761 # Compile unoptimized.
aaea76b3 13762 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13764 (eval $ac_compile) 2>&5
13765 ac_status=$?
13766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13767 test $ac_status = 0; }; then
13768 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13769 eval libat_cv_have_at_cas_4=no
13770 else
13771 eval libat_cv_have_at_cas_4=yes
13772 fi
0fe5522f
RH
13773 else
13774 eval libat_cv_have_at_cas_4=no
48310492
RH
13775 fi
13776 CFLAGS="$old_CFLAGS"
13777 fi
13778 rm -f conftest*
13779
13780fi
13781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_4" >&5
13782$as_echo "$libat_cv_have_at_cas_4" >&6; }
13783
13784
13785 yesno=`echo $libat_cv_have_at_cas_4 | tr 'yesno' '1 0 '`
13786
13787cat >>confdefs.h <<_ACEOF
13788#define HAVE_ATOMIC_CAS_4 $yesno
13789_ACEOF
13790
13791
13792
13793
13794
13795
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 8" >&5
13797$as_echo_n "checking for __atomic_compare_exchange for size 8... " >&6; }
22e05272 13798if ${libat_cv_have_at_cas_8+:} false; then :
48310492
RH
13799 $as_echo_n "(cached) " >&6
13800else
13801
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803/* end confdefs.h. */
13804
13805int
13806main ()
13807{
13808typedef int T __attribute__((mode(DI))); T *x, *y;
13809 asm("" : "=g"(x), "=g"(y));
13810 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13811 ;
13812 return 0;
13813}
13814_ACEOF
13815 if test x$atomic_builtins_link_tests = xyes; then
13816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13817 (eval $ac_link) 2>&5
13818 ac_status=$?
13819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13820 test $ac_status = 0; }; then
13821 eval libat_cv_have_at_cas_8=yes
13822 else
13823 eval libat_cv_have_at_cas_8=no
13824 fi
13825 else
13826 old_CFLAGS="$CFLAGS"
13827 # Compile unoptimized.
aaea76b3 13828 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13830 (eval $ac_compile) 2>&5
13831 ac_status=$?
13832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13833 test $ac_status = 0; }; then
13834 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13835 eval libat_cv_have_at_cas_8=no
13836 else
13837 eval libat_cv_have_at_cas_8=yes
13838 fi
0fe5522f
RH
13839 else
13840 eval libat_cv_have_at_cas_8=no
48310492
RH
13841 fi
13842 CFLAGS="$old_CFLAGS"
13843 fi
13844 rm -f conftest*
13845
13846fi
13847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_8" >&5
13848$as_echo "$libat_cv_have_at_cas_8" >&6; }
13849
13850
13851 yesno=`echo $libat_cv_have_at_cas_8 | tr 'yesno' '1 0 '`
13852
13853cat >>confdefs.h <<_ACEOF
13854#define HAVE_ATOMIC_CAS_8 $yesno
13855_ACEOF
13856
13857
13858
13859
13860
13861
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 16" >&5
13863$as_echo_n "checking for __atomic_compare_exchange for size 16... " >&6; }
22e05272 13864if ${libat_cv_have_at_cas_16+:} false; then :
48310492
RH
13865 $as_echo_n "(cached) " >&6
13866else
13867
13868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869/* end confdefs.h. */
13870
13871int
13872main ()
13873{
13874typedef int T __attribute__((mode(TI))); T *x, *y;
13875 asm("" : "=g"(x), "=g"(y));
13876 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13877 ;
13878 return 0;
13879}
13880_ACEOF
13881 if test x$atomic_builtins_link_tests = xyes; then
13882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13883 (eval $ac_link) 2>&5
13884 ac_status=$?
13885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13886 test $ac_status = 0; }; then
13887 eval libat_cv_have_at_cas_16=yes
13888 else
13889 eval libat_cv_have_at_cas_16=no
13890 fi
13891 else
13892 old_CFLAGS="$CFLAGS"
13893 # Compile unoptimized.
aaea76b3 13894 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13896 (eval $ac_compile) 2>&5
13897 ac_status=$?
13898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13899 test $ac_status = 0; }; then
13900 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13901 eval libat_cv_have_at_cas_16=no
13902 else
13903 eval libat_cv_have_at_cas_16=yes
13904 fi
0fe5522f
RH
13905 else
13906 eval libat_cv_have_at_cas_16=no
48310492
RH
13907 fi
13908 CFLAGS="$old_CFLAGS"
13909 fi
13910 rm -f conftest*
13911
13912fi
13913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_16" >&5
13914$as_echo "$libat_cv_have_at_cas_16" >&6; }
13915
13916
13917 yesno=`echo $libat_cv_have_at_cas_16 | tr 'yesno' '1 0 '`
13918
13919cat >>confdefs.h <<_ACEOF
13920#define HAVE_ATOMIC_CAS_16 $yesno
13921_ACEOF
13922
13923
13924
13925
13926
13927
13928
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 1" >&5
13930$as_echo_n "checking for __atomic_fetch_add for size 1... " >&6; }
22e05272 13931if ${libat_cv_have_at_fadd_1+:} false; then :
48310492
RH
13932 $as_echo_n "(cached) " >&6
13933else
13934
13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936/* end confdefs.h. */
13937
13938int
13939main ()
13940{
13941typedef int T __attribute__((mode(QI))); T *x, y;
13942 asm("" : "=g"(x), "=g"(y));
13943 __atomic_fetch_add (x, y, 0);
13944 __atomic_add_fetch (x, y, 0);
13945 ;
13946 return 0;
13947}
13948_ACEOF
13949 if test x$atomic_builtins_link_tests = xyes; then
13950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13951 (eval $ac_link) 2>&5
13952 ac_status=$?
13953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13954 test $ac_status = 0; }; then
13955 eval libat_cv_have_at_fadd_1=yes
13956 else
13957 eval libat_cv_have_at_fadd_1=no
13958 fi
13959 else
13960 old_CFLAGS="$CFLAGS"
13961 # Compile unoptimized.
aaea76b3 13962 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13964 (eval $ac_compile) 2>&5
13965 ac_status=$?
13966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13967 test $ac_status = 0; }; then
13968 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13969 eval libat_cv_have_at_fadd_1=no
13970 else
13971 eval libat_cv_have_at_fadd_1=yes
13972 fi
0fe5522f
RH
13973 else
13974 eval libat_cv_have_at_fadd_1=no
48310492
RH
13975 fi
13976 CFLAGS="$old_CFLAGS"
13977 fi
13978 rm -f conftest*
13979
13980fi
13981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_1" >&5
13982$as_echo "$libat_cv_have_at_fadd_1" >&6; }
13983
13984
13985 yesno=`echo $libat_cv_have_at_fadd_1 | tr 'yesno' '1 0 '`
13986
13987cat >>confdefs.h <<_ACEOF
13988#define HAVE_ATOMIC_FETCH_ADD_1 $yesno
13989_ACEOF
13990
13991
13992
13993
13994
13995
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 2" >&5
13997$as_echo_n "checking for __atomic_fetch_add for size 2... " >&6; }
22e05272 13998if ${libat_cv_have_at_fadd_2+:} false; then :
48310492
RH
13999 $as_echo_n "(cached) " >&6
14000else
14001
14002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14003/* end confdefs.h. */
14004
14005int
14006main ()
14007{
14008typedef int T __attribute__((mode(HI))); T *x, y;
14009 asm("" : "=g"(x), "=g"(y));
14010 __atomic_fetch_add (x, y, 0);
14011 __atomic_add_fetch (x, y, 0);
14012 ;
14013 return 0;
14014}
14015_ACEOF
14016 if test x$atomic_builtins_link_tests = xyes; then
14017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14018 (eval $ac_link) 2>&5
14019 ac_status=$?
14020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14021 test $ac_status = 0; }; then
14022 eval libat_cv_have_at_fadd_2=yes
14023 else
14024 eval libat_cv_have_at_fadd_2=no
14025 fi
14026 else
14027 old_CFLAGS="$CFLAGS"
14028 # Compile unoptimized.
aaea76b3 14029 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14031 (eval $ac_compile) 2>&5
14032 ac_status=$?
14033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14034 test $ac_status = 0; }; then
14035 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14036 eval libat_cv_have_at_fadd_2=no
14037 else
14038 eval libat_cv_have_at_fadd_2=yes
14039 fi
0fe5522f
RH
14040 else
14041 eval libat_cv_have_at_fadd_2=no
48310492
RH
14042 fi
14043 CFLAGS="$old_CFLAGS"
14044 fi
14045 rm -f conftest*
14046
14047fi
14048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_2" >&5
14049$as_echo "$libat_cv_have_at_fadd_2" >&6; }
14050
14051
14052 yesno=`echo $libat_cv_have_at_fadd_2 | tr 'yesno' '1 0 '`
14053
14054cat >>confdefs.h <<_ACEOF
14055#define HAVE_ATOMIC_FETCH_ADD_2 $yesno
14056_ACEOF
14057
14058
14059
14060
14061
14062
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 4" >&5
14064$as_echo_n "checking for __atomic_fetch_add for size 4... " >&6; }
22e05272 14065if ${libat_cv_have_at_fadd_4+:} false; then :
48310492
RH
14066 $as_echo_n "(cached) " >&6
14067else
14068
14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070/* end confdefs.h. */
14071
14072int
14073main ()
14074{
14075typedef int T __attribute__((mode(SI))); T *x, y;
14076 asm("" : "=g"(x), "=g"(y));
14077 __atomic_fetch_add (x, y, 0);
14078 __atomic_add_fetch (x, y, 0);
14079 ;
14080 return 0;
14081}
14082_ACEOF
14083 if test x$atomic_builtins_link_tests = xyes; then
14084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14085 (eval $ac_link) 2>&5
14086 ac_status=$?
14087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14088 test $ac_status = 0; }; then
14089 eval libat_cv_have_at_fadd_4=yes
14090 else
14091 eval libat_cv_have_at_fadd_4=no
14092 fi
14093 else
14094 old_CFLAGS="$CFLAGS"
14095 # Compile unoptimized.
aaea76b3 14096 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14098 (eval $ac_compile) 2>&5
14099 ac_status=$?
14100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14101 test $ac_status = 0; }; then
14102 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14103 eval libat_cv_have_at_fadd_4=no
14104 else
14105 eval libat_cv_have_at_fadd_4=yes
14106 fi
0fe5522f
RH
14107 else
14108 eval libat_cv_have_at_fadd_4=no
48310492
RH
14109 fi
14110 CFLAGS="$old_CFLAGS"
14111 fi
14112 rm -f conftest*
14113
14114fi
14115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_4" >&5
14116$as_echo "$libat_cv_have_at_fadd_4" >&6; }
14117
14118
14119 yesno=`echo $libat_cv_have_at_fadd_4 | tr 'yesno' '1 0 '`
14120
14121cat >>confdefs.h <<_ACEOF
14122#define HAVE_ATOMIC_FETCH_ADD_4 $yesno
14123_ACEOF
14124
14125
14126
14127
14128
14129
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 8" >&5
14131$as_echo_n "checking for __atomic_fetch_add for size 8... " >&6; }
22e05272 14132if ${libat_cv_have_at_fadd_8+:} false; then :
48310492
RH
14133 $as_echo_n "(cached) " >&6
14134else
14135
14136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14137/* end confdefs.h. */
14138
14139int
14140main ()
14141{
14142typedef int T __attribute__((mode(DI))); T *x, y;
14143 asm("" : "=g"(x), "=g"(y));
14144 __atomic_fetch_add (x, y, 0);
14145 __atomic_add_fetch (x, y, 0);
14146 ;
14147 return 0;
14148}
14149_ACEOF
14150 if test x$atomic_builtins_link_tests = xyes; then
14151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14152 (eval $ac_link) 2>&5
14153 ac_status=$?
14154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14155 test $ac_status = 0; }; then
14156 eval libat_cv_have_at_fadd_8=yes
14157 else
14158 eval libat_cv_have_at_fadd_8=no
14159 fi
14160 else
14161 old_CFLAGS="$CFLAGS"
14162 # Compile unoptimized.
aaea76b3 14163 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14165 (eval $ac_compile) 2>&5
14166 ac_status=$?
14167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14168 test $ac_status = 0; }; then
14169 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14170 eval libat_cv_have_at_fadd_8=no
14171 else
14172 eval libat_cv_have_at_fadd_8=yes
14173 fi
0fe5522f
RH
14174 else
14175 eval libat_cv_have_at_fadd_8=no
48310492
RH
14176 fi
14177 CFLAGS="$old_CFLAGS"
14178 fi
14179 rm -f conftest*
14180
14181fi
14182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_8" >&5
14183$as_echo "$libat_cv_have_at_fadd_8" >&6; }
14184
14185
14186 yesno=`echo $libat_cv_have_at_fadd_8 | tr 'yesno' '1 0 '`
14187
14188cat >>confdefs.h <<_ACEOF
14189#define HAVE_ATOMIC_FETCH_ADD_8 $yesno
14190_ACEOF
14191
14192
14193
14194
14195
14196
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 16" >&5
14198$as_echo_n "checking for __atomic_fetch_add for size 16... " >&6; }
22e05272 14199if ${libat_cv_have_at_fadd_16+:} false; then :
48310492
RH
14200 $as_echo_n "(cached) " >&6
14201else
14202
14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204/* end confdefs.h. */
14205
14206int
14207main ()
14208{
14209typedef int T __attribute__((mode(TI))); T *x, y;
14210 asm("" : "=g"(x), "=g"(y));
14211 __atomic_fetch_add (x, y, 0);
14212 __atomic_add_fetch (x, y, 0);
14213 ;
14214 return 0;
14215}
14216_ACEOF
14217 if test x$atomic_builtins_link_tests = xyes; then
14218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14219 (eval $ac_link) 2>&5
14220 ac_status=$?
14221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14222 test $ac_status = 0; }; then
14223 eval libat_cv_have_at_fadd_16=yes
14224 else
14225 eval libat_cv_have_at_fadd_16=no
14226 fi
14227 else
14228 old_CFLAGS="$CFLAGS"
14229 # Compile unoptimized.
aaea76b3 14230 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14232 (eval $ac_compile) 2>&5
14233 ac_status=$?
14234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14235 test $ac_status = 0; }; then
14236 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14237 eval libat_cv_have_at_fadd_16=no
14238 else
14239 eval libat_cv_have_at_fadd_16=yes
14240 fi
0fe5522f
RH
14241 else
14242 eval libat_cv_have_at_fadd_16=no
48310492
RH
14243 fi
14244 CFLAGS="$old_CFLAGS"
14245 fi
14246 rm -f conftest*
14247
14248fi
14249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_16" >&5
14250$as_echo "$libat_cv_have_at_fadd_16" >&6; }
14251
14252
14253 yesno=`echo $libat_cv_have_at_fadd_16 | tr 'yesno' '1 0 '`
14254
14255cat >>confdefs.h <<_ACEOF
14256#define HAVE_ATOMIC_FETCH_ADD_16 $yesno
14257_ACEOF
14258
14259
14260
14261
14262
14263
14264
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 1" >&5
14266$as_echo_n "checking for __atomic_fetch_op for size 1... " >&6; }
22e05272 14267if ${libat_cv_have_at_fop_1+:} false; then :
48310492
RH
14268 $as_echo_n "(cached) " >&6
14269else
14270
14271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14272/* end confdefs.h. */
14273
14274int
14275main ()
14276{
14277typedef int T __attribute__((mode(QI))); T *x, y;
14278 asm("" : "=g"(x), "=g"(y));
14279 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14280 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14281 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14282 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14283 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14284 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14285 ;
14286 return 0;
14287}
14288_ACEOF
14289 if test x$atomic_builtins_link_tests = xyes; then
14290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14291 (eval $ac_link) 2>&5
14292 ac_status=$?
14293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14294 test $ac_status = 0; }; then
14295 eval libat_cv_have_at_fop_1=yes
14296 else
14297 eval libat_cv_have_at_fop_1=no
14298 fi
14299 else
14300 old_CFLAGS="$CFLAGS"
14301 # Compile unoptimized.
aaea76b3 14302 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14304 (eval $ac_compile) 2>&5
14305 ac_status=$?
14306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14307 test $ac_status = 0; }; then
14308 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14309 eval libat_cv_have_at_fop_1=no
14310 else
14311 eval libat_cv_have_at_fop_1=yes
14312 fi
0fe5522f
RH
14313 else
14314 eval libat_cv_have_at_fop_1=no
48310492
RH
14315 fi
14316 CFLAGS="$old_CFLAGS"
14317 fi
14318 rm -f conftest*
14319
14320fi
14321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_1" >&5
14322$as_echo "$libat_cv_have_at_fop_1" >&6; }
14323
14324
14325 yesno=`echo $libat_cv_have_at_fop_1 | tr 'yesno' '1 0 '`
14326
14327cat >>confdefs.h <<_ACEOF
14328#define HAVE_ATOMIC_FETCH_OP_1 $yesno
14329_ACEOF
14330
14331
14332
14333
14334
14335
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 2" >&5
14337$as_echo_n "checking for __atomic_fetch_op for size 2... " >&6; }
22e05272 14338if ${libat_cv_have_at_fop_2+:} false; then :
48310492
RH
14339 $as_echo_n "(cached) " >&6
14340else
14341
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343/* end confdefs.h. */
14344
14345int
14346main ()
14347{
14348typedef int T __attribute__((mode(HI))); T *x, y;
14349 asm("" : "=g"(x), "=g"(y));
14350 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14351 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14352 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14353 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14354 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14355 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14356 ;
14357 return 0;
14358}
14359_ACEOF
14360 if test x$atomic_builtins_link_tests = xyes; then
14361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14362 (eval $ac_link) 2>&5
14363 ac_status=$?
14364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14365 test $ac_status = 0; }; then
14366 eval libat_cv_have_at_fop_2=yes
14367 else
14368 eval libat_cv_have_at_fop_2=no
14369 fi
14370 else
14371 old_CFLAGS="$CFLAGS"
14372 # Compile unoptimized.
aaea76b3 14373 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14375 (eval $ac_compile) 2>&5
14376 ac_status=$?
14377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14378 test $ac_status = 0; }; then
14379 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14380 eval libat_cv_have_at_fop_2=no
14381 else
14382 eval libat_cv_have_at_fop_2=yes
14383 fi
0fe5522f
RH
14384 else
14385 eval libat_cv_have_at_fop_2=no
48310492
RH
14386 fi
14387 CFLAGS="$old_CFLAGS"
14388 fi
14389 rm -f conftest*
14390
14391fi
14392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_2" >&5
14393$as_echo "$libat_cv_have_at_fop_2" >&6; }
14394
14395
14396 yesno=`echo $libat_cv_have_at_fop_2 | tr 'yesno' '1 0 '`
14397
14398cat >>confdefs.h <<_ACEOF
14399#define HAVE_ATOMIC_FETCH_OP_2 $yesno
14400_ACEOF
14401
14402
14403
14404
14405
14406
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 4" >&5
14408$as_echo_n "checking for __atomic_fetch_op for size 4... " >&6; }
22e05272 14409if ${libat_cv_have_at_fop_4+:} false; then :
48310492
RH
14410 $as_echo_n "(cached) " >&6
14411else
14412
14413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14414/* end confdefs.h. */
14415
14416int
14417main ()
14418{
14419typedef int T __attribute__((mode(SI))); T *x, y;
14420 asm("" : "=g"(x), "=g"(y));
14421 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14422 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14423 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14424 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14425 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14426 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14427 ;
14428 return 0;
14429}
14430_ACEOF
14431 if test x$atomic_builtins_link_tests = xyes; then
14432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14433 (eval $ac_link) 2>&5
14434 ac_status=$?
14435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14436 test $ac_status = 0; }; then
14437 eval libat_cv_have_at_fop_4=yes
14438 else
14439 eval libat_cv_have_at_fop_4=no
14440 fi
14441 else
14442 old_CFLAGS="$CFLAGS"
14443 # Compile unoptimized.
aaea76b3 14444 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14446 (eval $ac_compile) 2>&5
14447 ac_status=$?
14448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14449 test $ac_status = 0; }; then
14450 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14451 eval libat_cv_have_at_fop_4=no
14452 else
14453 eval libat_cv_have_at_fop_4=yes
14454 fi
0fe5522f
RH
14455 else
14456 eval libat_cv_have_at_fop_4=no
48310492
RH
14457 fi
14458 CFLAGS="$old_CFLAGS"
14459 fi
14460 rm -f conftest*
14461
14462fi
14463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_4" >&5
14464$as_echo "$libat_cv_have_at_fop_4" >&6; }
14465
14466
14467 yesno=`echo $libat_cv_have_at_fop_4 | tr 'yesno' '1 0 '`
14468
14469cat >>confdefs.h <<_ACEOF
14470#define HAVE_ATOMIC_FETCH_OP_4 $yesno
14471_ACEOF
14472
14473
14474
14475
14476
14477
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 8" >&5
14479$as_echo_n "checking for __atomic_fetch_op for size 8... " >&6; }
22e05272 14480if ${libat_cv_have_at_fop_8+:} false; then :
48310492
RH
14481 $as_echo_n "(cached) " >&6
14482else
14483
14484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485/* end confdefs.h. */
14486
14487int
14488main ()
14489{
14490typedef int T __attribute__((mode(DI))); T *x, y;
14491 asm("" : "=g"(x), "=g"(y));
14492 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14493 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14494 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14495 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14496 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14497 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14498 ;
14499 return 0;
14500}
14501_ACEOF
14502 if test x$atomic_builtins_link_tests = xyes; then
14503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14504 (eval $ac_link) 2>&5
14505 ac_status=$?
14506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14507 test $ac_status = 0; }; then
14508 eval libat_cv_have_at_fop_8=yes
14509 else
14510 eval libat_cv_have_at_fop_8=no
14511 fi
14512 else
14513 old_CFLAGS="$CFLAGS"
14514 # Compile unoptimized.
aaea76b3 14515 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14517 (eval $ac_compile) 2>&5
14518 ac_status=$?
14519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14520 test $ac_status = 0; }; then
14521 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14522 eval libat_cv_have_at_fop_8=no
14523 else
14524 eval libat_cv_have_at_fop_8=yes
14525 fi
0fe5522f
RH
14526 else
14527 eval libat_cv_have_at_fop_8=no
48310492
RH
14528 fi
14529 CFLAGS="$old_CFLAGS"
14530 fi
14531 rm -f conftest*
14532
14533fi
14534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_8" >&5
14535$as_echo "$libat_cv_have_at_fop_8" >&6; }
14536
14537
14538 yesno=`echo $libat_cv_have_at_fop_8 | tr 'yesno' '1 0 '`
14539
14540cat >>confdefs.h <<_ACEOF
14541#define HAVE_ATOMIC_FETCH_OP_8 $yesno
14542_ACEOF
14543
14544
14545
14546
14547
14548
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 16" >&5
14550$as_echo_n "checking for __atomic_fetch_op for size 16... " >&6; }
22e05272 14551if ${libat_cv_have_at_fop_16+:} false; then :
48310492
RH
14552 $as_echo_n "(cached) " >&6
14553else
14554
14555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14556/* end confdefs.h. */
14557
14558int
14559main ()
14560{
14561typedef int T __attribute__((mode(TI))); T *x, y;
14562 asm("" : "=g"(x), "=g"(y));
14563 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14564 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14565 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14566 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14567 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14568 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14569 ;
14570 return 0;
14571}
14572_ACEOF
14573 if test x$atomic_builtins_link_tests = xyes; then
14574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14575 (eval $ac_link) 2>&5
14576 ac_status=$?
14577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14578 test $ac_status = 0; }; then
14579 eval libat_cv_have_at_fop_16=yes
14580 else
14581 eval libat_cv_have_at_fop_16=no
14582 fi
14583 else
14584 old_CFLAGS="$CFLAGS"
14585 # Compile unoptimized.
aaea76b3 14586 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14588 (eval $ac_compile) 2>&5
14589 ac_status=$?
14590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14591 test $ac_status = 0; }; then
14592 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14593 eval libat_cv_have_at_fop_16=no
14594 else
14595 eval libat_cv_have_at_fop_16=yes
14596 fi
0fe5522f
RH
14597 else
14598 eval libat_cv_have_at_fop_16=no
48310492
RH
14599 fi
14600 CFLAGS="$old_CFLAGS"
14601 fi
14602 rm -f conftest*
14603
14604fi
14605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_16" >&5
14606$as_echo "$libat_cv_have_at_fop_16" >&6; }
14607
14608
14609 yesno=`echo $libat_cv_have_at_fop_16 | tr 'yesno' '1 0 '`
14610
14611cat >>confdefs.h <<_ACEOF
14612#define HAVE_ATOMIC_FETCH_OP_16 $yesno
14613_ACEOF
14614
14615
14616
14617
14618
14619
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14621$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22e05272 14622if ${ac_cv_c_bigendian+:} false; then :
48310492
RH
14623 $as_echo_n "(cached) " >&6
14624else
14625 ac_cv_c_bigendian=unknown
14626 # See if we're dealing with a universal compiler.
14627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14628/* end confdefs.h. */
14629#ifndef __APPLE_CC__
14630 not a universal capable compiler
14631 #endif
14632 typedef int dummy;
14633
14634_ACEOF
14635if ac_fn_c_try_compile "$LINENO"; then :
14636
14637 # Check for potential -arch flags. It is not universal unless
14638 # there are at least two -arch flags with different values.
14639 ac_arch=
14640 ac_prev=
14641 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14642 if test -n "$ac_prev"; then
14643 case $ac_word in
14644 i?86 | x86_64 | ppc | ppc64)
14645 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14646 ac_arch=$ac_word
14647 else
14648 ac_cv_c_bigendian=universal
14649 break
14650 fi
14651 ;;
14652 esac
14653 ac_prev=
14654 elif test "x$ac_word" = "x-arch"; then
14655 ac_prev=arch
14656 fi
14657 done
14658fi
14659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14660 if test $ac_cv_c_bigendian = unknown; then
14661 # See if sys/param.h defines the BYTE_ORDER macro.
14662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663/* end confdefs.h. */
14664#include <sys/types.h>
14665 #include <sys/param.h>
14666
14667int
14668main ()
14669{
14670#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14671 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14672 && LITTLE_ENDIAN)
14673 bogus endian macros
14674 #endif
14675
14676 ;
14677 return 0;
14678}
14679_ACEOF
14680if ac_fn_c_try_compile "$LINENO"; then :
14681 # It does; now see whether it defined to BIG_ENDIAN or not.
14682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683/* end confdefs.h. */
14684#include <sys/types.h>
14685 #include <sys/param.h>
14686
14687int
14688main ()
14689{
14690#if BYTE_ORDER != BIG_ENDIAN
14691 not big endian
14692 #endif
14693
14694 ;
14695 return 0;
14696}
14697_ACEOF
14698if ac_fn_c_try_compile "$LINENO"; then :
14699 ac_cv_c_bigendian=yes
14700else
14701 ac_cv_c_bigendian=no
14702fi
14703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14704fi
14705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14706 fi
14707 if test $ac_cv_c_bigendian = unknown; then
14708 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710/* end confdefs.h. */
14711#include <limits.h>
14712
14713int
14714main ()
14715{
14716#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14717 bogus endian macros
14718 #endif
14719
14720 ;
14721 return 0;
14722}
14723_ACEOF
14724if ac_fn_c_try_compile "$LINENO"; then :
14725 # It does; now see whether it defined to _BIG_ENDIAN or not.
14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727/* end confdefs.h. */
14728#include <limits.h>
14729
14730int
14731main ()
14732{
14733#ifndef _BIG_ENDIAN
14734 not big endian
14735 #endif
14736
14737 ;
14738 return 0;
14739}
14740_ACEOF
14741if ac_fn_c_try_compile "$LINENO"; then :
14742 ac_cv_c_bigendian=yes
14743else
14744 ac_cv_c_bigendian=no
14745fi
14746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14747fi
14748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14749 fi
14750 if test $ac_cv_c_bigendian = unknown; then
14751 # Compile a test program.
14752 if test "$cross_compiling" = yes; then :
14753 # Try to guess by grepping values from an object file.
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755/* end confdefs.h. */
14756short int ascii_mm[] =
14757 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14758 short int ascii_ii[] =
14759 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14760 int use_ascii (int i) {
14761 return ascii_mm[i] + ascii_ii[i];
14762 }
14763 short int ebcdic_ii[] =
14764 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14765 short int ebcdic_mm[] =
14766 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14767 int use_ebcdic (int i) {
14768 return ebcdic_mm[i] + ebcdic_ii[i];
14769 }
14770 extern int foo;
14771
14772int
14773main ()
14774{
14775return use_ascii (foo) == use_ebcdic (foo);
14776 ;
14777 return 0;
14778}
14779_ACEOF
14780if ac_fn_c_try_compile "$LINENO"; then :
14781 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14782 ac_cv_c_bigendian=yes
14783 fi
14784 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14785 if test "$ac_cv_c_bigendian" = unknown; then
14786 ac_cv_c_bigendian=no
14787 else
14788 # finding both strings is unlikely to happen, but who knows?
14789 ac_cv_c_bigendian=unknown
14790 fi
14791 fi
14792fi
14793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14794else
14795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14796/* end confdefs.h. */
14797$ac_includes_default
14798int
14799main ()
14800{
14801
14802 /* Are we little or big endian? From Harbison&Steele. */
14803 union
14804 {
14805 long int l;
14806 char c[sizeof (long int)];
14807 } u;
14808 u.l = 1;
14809 return u.c[sizeof (long int) - 1] == 1;
14810
14811 ;
14812 return 0;
14813}
14814_ACEOF
14815if ac_fn_c_try_run "$LINENO"; then :
14816 ac_cv_c_bigendian=no
14817else
14818 ac_cv_c_bigendian=yes
14819fi
14820rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14821 conftest.$ac_objext conftest.beam conftest.$ac_ext
14822fi
14823
14824 fi
14825fi
14826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14827$as_echo "$ac_cv_c_bigendian" >&6; }
14828 case $ac_cv_c_bigendian in #(
14829 yes)
14830 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14831;; #(
14832 no)
14833 ;; #(
14834 universal)
14835
14836$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14837
14838 ;; #(
14839 *)
22e05272 14840 as_fn_error $? "unknown endianness
48310492
RH
14841 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14842 esac
14843
14844# I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
14845
14846
14847
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the word size" >&5
14849$as_echo_n "checking for the word size... " >&6; }
22e05272 14850if ${libat_cv_wordsize+:} false; then :
48310492
RH
14851 $as_echo_n "(cached) " >&6
14852else
14853 if ac_fn_c_compute_int "$LINENO" "sizeof(word)" "libat_cv_wordsize" "typedef int word __attribute__((mode(word)));"; then :
14854
14855else
22e05272 14856 as_fn_error $? "Could not determine word size." "$LINENO" 5
48310492
RH
14857fi
14858
14859fi
14860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_wordsize" >&5
14861$as_echo "$libat_cv_wordsize" >&6; }
14862
14863cat >>confdefs.h <<_ACEOF
14864#define WORDSIZE $libat_cv_wordsize
14865_ACEOF
14866
14867
14868
14869# Check to see if -pthread or -lpthread is needed. Prefer the former.
14870# In case the pthread.h system header is not found, this test will fail.
14871case " $config_path " in
14872 *" posix "*)
14873 XPCFLAGS=""
14874 CFLAGS="$CFLAGS -pthread"
14875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14876/* end confdefs.h. */
14877#include <pthread.h>
14878 void *g(void *d) { return NULL; }
14879int
14880main ()
14881{
14882pthread_t t; pthread_create(&t,NULL,g,NULL);
14883 ;
14884 return 0;
14885}
14886_ACEOF
14887if ac_fn_c_try_link "$LINENO"; then :
14888 XPCFLAGS=" -pthread"
14889else
14890 CFLAGS="$save_CFLAGS $XCFLAGS" LIBS="-lpthread $LIBS"
14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892/* end confdefs.h. */
14893#include <pthread.h>
14894 void *g(void *d) { return NULL; }
14895int
14896main ()
14897{
14898pthread_t t; pthread_create(&t,NULL,g,NULL);
14899 ;
14900 return 0;
14901}
14902_ACEOF
14903if ac_fn_c_try_link "$LINENO"; then :
14904
14905else
22e05272 14906 as_fn_error $? "Pthreads are required to build libatomic" "$LINENO" 5
48310492
RH
14907fi
14908rm -f core conftest.err conftest.$ac_objext \
14909 conftest$ac_exeext conftest.$ac_ext
14910fi
14911rm -f core conftest.err conftest.$ac_objext \
14912 conftest$ac_exeext conftest.$ac_ext
e9885be5 14913 CFLAGS="$save_CFLAGS $XPCFLAGS"
48310492
RH
14914 ;;
14915esac
14916
14917# See what sort of export controls are available.
14918
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
14920$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
22e05272 14921if ${libat_cv_have_attribute_visibility+:} false; then :
48310492
RH
14922 $as_echo_n "(cached) " >&6
14923else
14924
14925 save_CFLAGS="$CFLAGS"
14926 CFLAGS="$CFLAGS -Werror"
14927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14928/* end confdefs.h. */
14929void __attribute__((visibility("hidden"))) foo(void) { }
14930int
14931main ()
14932{
14933
14934 ;
14935 return 0;
14936}
14937_ACEOF
14938if ac_fn_c_try_compile "$LINENO"; then :
14939 libat_cv_have_attribute_visibility=yes
14940else
14941 libat_cv_have_attribute_visibility=no
14942fi
14943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14944 CFLAGS="$save_CFLAGS"
14945fi
14946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_visibility" >&5
14947$as_echo "$libat_cv_have_attribute_visibility" >&6; }
14948 if test $libat_cv_have_attribute_visibility = yes; then
14949
14950$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
14951
14952 fi
14953
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
14955$as_echo_n "checking whether the target supports dllexport... " >&6; }
22e05272 14956if ${libat_cv_have_attribute_dllexport+:} false; then :
48310492
RH
14957 $as_echo_n "(cached) " >&6
14958else
14959
14960 save_CFLAGS="$CFLAGS"
14961 CFLAGS="$CFLAGS -Werror"
14962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14963/* end confdefs.h. */
14964void __attribute__((dllexport)) foo(void) { }
14965int
14966main ()
14967{
14968
14969 ;
14970 return 0;
14971}
14972_ACEOF
14973if ac_fn_c_try_compile "$LINENO"; then :
14974 libat_cv_have_attribute_dllexport=yes
14975else
14976 libat_cv_have_attribute_dllexport=no
14977fi
14978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14979 CFLAGS="$save_CFLAGS"
14980fi
14981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_dllexport" >&5
14982$as_echo "$libat_cv_have_attribute_dllexport" >&6; }
14983 if test $libat_cv_have_attribute_dllexport = yes; then
14984
14985$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
14986
14987 fi
14988
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
14990$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
22e05272 14991if ${libat_cv_have_attribute_alias+:} false; then :
48310492
RH
14992 $as_echo_n "(cached) " >&6
14993else
14994
14995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14996/* end confdefs.h. */
14997
14998void foo(void) { }
14999extern void bar(void) __attribute__((alias("foo")));
15000int
15001main ()
15002{
15003bar();
15004 ;
15005 return 0;
15006}
15007_ACEOF
15008if ac_fn_c_try_link "$LINENO"; then :
15009 libat_cv_have_attribute_alias=yes
15010else
15011 libat_cv_have_attribute_alias=no
15012fi
15013rm -f core conftest.err conftest.$ac_objext \
15014 conftest$ac_exeext conftest.$ac_ext
15015fi
15016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_alias" >&5
15017$as_echo "$libat_cv_have_attribute_alias" >&6; }
15018 if test $libat_cv_have_attribute_alias = yes; then
15019
15020$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15021
15022 fi
15023if test x$try_ifunc = xyes; then
15024
40448151
TS
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports the ifunc attribute" >&5
15026$as_echo_n "checking whether the target supports the ifunc attribute... " >&6; }
22e05272 15027if ${libat_cv_have_ifunc+:} false; then :
48310492
RH
15028 $as_echo_n "(cached) " >&6
15029else
15030
15031 save_CFLAGS="$CFLAGS"
15032 CFLAGS="$CFLAGS -Werror"
15033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15034/* end confdefs.h. */
15035
15036 int foo_alt(void) { return 0; }
bc437a56
MS
15037 typedef int F (void);
15038 F *foo_sel(void) { return foo_alt; }
48310492
RH
15039 int foo(void) __attribute__((ifunc("foo_sel")));
15040int
15041main ()
15042{
15043return foo();
15044 ;
15045 return 0;
15046}
15047_ACEOF
15048if ac_fn_c_try_link "$LINENO"; then :
15049 libat_cv_have_ifunc=yes
15050else
15051 libat_cv_have_ifunc=no
15052fi
15053rm -f core conftest.err conftest.$ac_objext \
15054 conftest$ac_exeext conftest.$ac_ext
15055fi
15056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_ifunc" >&5
15057$as_echo "$libat_cv_have_ifunc" >&6; }
15058
15059 yesno=`echo $libat_cv_have_ifunc | tr 'yesno' '1 0 '`
15060
15061cat >>confdefs.h <<_ACEOF
15062#define HAVE_IFUNC $yesno
15063_ACEOF
15064
15065
15066
15067fi
15068
15069# Check linker support.
15070
15071
15072# Check whether --with-gnu-ld was given.
15073if test "${with_gnu_ld+set}" = set; then :
15074 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15075else
15076 with_gnu_ld=no
15077fi
15078
15079ac_prog=ld
15080if test "$GCC" = yes; then
15081 # Check if gcc -print-prog-name=ld gives a path.
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15083$as_echo_n "checking for ld used by $CC... " >&6; }
15084 case $host in
15085 *-*-mingw*)
15086 # gcc leaves a trailing carriage return which upsets mingw
15087 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15088 *)
15089 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15090 esac
15091 case $ac_prog in
15092 # Accept absolute paths.
15093 [\\/]* | ?:[\\/]*)
15094 re_direlt='/[^/][^/]*/\.\./'
15095 # Canonicalize the pathname of ld
15096 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15097 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15098 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15099 done
15100 test -z "$LD" && LD="$ac_prog"
15101 ;;
15102 "")
15103 # If it fails, then pretend we aren't using GCC.
15104 ac_prog=ld
15105 ;;
15106 *)
15107 # If it is relative, then search for the first ld in PATH.
15108 with_gnu_ld=unknown
15109 ;;
15110 esac
15111elif test "$with_gnu_ld" = yes; then
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15113$as_echo_n "checking for GNU ld... " >&6; }
15114else
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15116$as_echo_n "checking for non-GNU ld... " >&6; }
15117fi
22e05272 15118if ${lt_cv_path_LD+:} false; then :
48310492
RH
15119 $as_echo_n "(cached) " >&6
15120else
15121 if test -z "$LD"; then
15122 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15123 for ac_dir in $PATH; do
15124 IFS="$lt_save_ifs"
15125 test -z "$ac_dir" && ac_dir=.
15126 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15127 lt_cv_path_LD="$ac_dir/$ac_prog"
15128 # Check to see if the program is GNU ld. I'd rather use --version,
15129 # but apparently some variants of GNU ld only accept -v.
15130 # Break only if it was the GNU/non-GNU ld that we prefer.
15131 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15132 *GNU* | *'with BFD'*)
15133 test "$with_gnu_ld" != no && break
15134 ;;
15135 *)
15136 test "$with_gnu_ld" != yes && break
15137 ;;
15138 esac
15139 fi
15140 done
15141 IFS="$lt_save_ifs"
15142else
15143 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15144fi
15145fi
15146
15147LD="$lt_cv_path_LD"
15148if test -n "$LD"; then
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15150$as_echo "$LD" >&6; }
15151else
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15153$as_echo "no" >&6; }
15154fi
22e05272 15155test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
48310492
RH
15156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15157$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 15158if ${lt_cv_prog_gnu_ld+:} false; then :
48310492
RH
15159 $as_echo_n "(cached) " >&6
15160else
15161 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15162case `$LD -v 2>&1 </dev/null` in
15163*GNU* | *'with BFD'*)
15164 lt_cv_prog_gnu_ld=yes
15165 ;;
15166*)
15167 lt_cv_prog_gnu_ld=no
15168 ;;
15169esac
15170fi
15171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15172$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15173with_gnu_ld=$lt_cv_prog_gnu_ld
15174
15175
15176
15177
15178
15179
15180
15181 # If we're not using GNU ld, then there's no point in even trying these
15182 # tests. Check for that first. We should have already tested for gld
15183 # by now (in libtool), but require it now just to be safe...
15184 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15185 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15186
15187
15188
15189 # The name set by libtool depends on the version of libtool. Shame on us
15190 # for depending on an impl detail, but c'est la vie. Older versions used
15191 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15192 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15193 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
15194 # set (hence we're using an older libtool), then set it.
15195 if test x${with_gnu_ld+set} != xset; then
15196 if test x${ac_cv_prog_gnu_ld+set} != xset; then
15197 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
15198 with_gnu_ld=no
15199 else
15200 with_gnu_ld=$ac_cv_prog_gnu_ld
15201 fi
15202 fi
15203
15204 # Start by getting the version number. I think the libtool test already
15205 # does some of this, but throws away the result.
15206 libat_ld_is_gold=no
c99a6eb0 15207 libat_ld_is_mold=no
48310492
RH
15208 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15209 libat_ld_is_gold=yes
c99a6eb0
ML
15210 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
15211 libat_ld_is_mold=yes
48310492
RH
15212 fi
15213
15214 ldver=`$LD --version 2>/dev/null |
c6c2d1bc 15215 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
48310492
RH
15216
15217 libat_gnu_ld_version=`echo $ldver | \
15218 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15219
15220 # Set --gc-sections.
15221 if test "$with_gnu_ld" = "notbroken"; then
15222 # GNU ld it is! Joy and bunny rabbits!
15223
15224 # All these tests are for C++; save the language and the compiler flags.
15225 # Need to do this so that g++ won't try to link in libstdc++
15226 ac_test_CFLAGS="${CFLAGS+set}"
15227 ac_save_CFLAGS="$CFLAGS"
15228 CFLAGS='-x c++ -Wl,--gc-sections'
15229
15230 # Check for -Wl,--gc-sections
15231 # XXX This test is broken at the moment, as symbols required for linking
15232 # are now in libsupc++ (not built yet). In addition, this test has
15233 # cored on solaris in the past. In addition, --gc-sections doesn't
15234 # really work at the moment (keeps on discarding used sections, first
15235 # .eh_frame and now some of the glibc sections for iconv).
15236 # Bzzzzt. Thanks for playing, maybe next time.
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15238$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15239 if test "$cross_compiling" = yes; then :
15240 ac_sectionLDflags=yes
15241else
15242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15243/* end confdefs.h. */
15244
15245 int main(void)
15246 {
15247 try { throw 1; }
15248 catch (...) { };
15249 return 0;
15250 }
15251
15252_ACEOF
15253if ac_fn_c_try_run "$LINENO"; then :
15254 ac_sectionLDflags=yes
15255else
15256 ac_sectionLDflags=no
15257fi
15258rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15259 conftest.$ac_objext conftest.beam conftest.$ac_ext
15260fi
15261
15262 if test "$ac_test_CFLAGS" = set; then
15263 CFLAGS="$ac_save_CFLAGS"
15264 else
15265 # this is the suspicious part
15266 CFLAGS=''
15267 fi
15268 if test "$ac_sectionLDflags" = "yes"; then
15269 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15270 fi
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15272$as_echo "$ac_sectionLDflags" >&6; }
15273 fi
15274
15275 # Set linker optimization flags.
15276 if test x"$with_gnu_ld" = x"yes"; then
15277 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15278 fi
15279
15280
15281
15282
15283
15284
15285 # Check whether --enable-symvers was given.
15286if test "${enable_symvers+set}" = set; then :
15287 enableval=$enable_symvers;
15288 case "$enableval" in
15289 yes|no|gnu*|sun) ;;
22e05272 15290 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
48310492
RH
15291 esac
15292
15293else
15294 enable_symvers=yes
15295fi
15296
15297
15298
15299# If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
15300# don't know enough about $LD to do tricks...
15301
15302
15303# Turn a 'yes' into a suitable default.
15304if test x$enable_symvers = xyes ; then
15305 # FIXME The following test is too strict, in theory.
15306 if test $enable_shared = no || test "x$LD" = x; then
15307 enable_symvers=no
15308 else
15309 if test $with_gnu_ld = yes ; then
15310 enable_symvers=gnu
15311 else
15312 case ${target_os} in
15313 # Sun symbol versioning exists since Solaris 2.5.
15314 solaris2.[5-9]* | solaris2.1[0-9]*)
15315 enable_symvers=sun ;;
15316 *)
15317 enable_symvers=no ;;
15318 esac
15319 fi
15320 fi
15321fi
15322
15323# Check if 'sun' was requested on non-Solaris 2 platforms.
15324if test x$enable_symvers = xsun ; then
15325 case ${target_os} in
15326 solaris2*)
15327 # All fine.
15328 ;;
15329 *)
15330 # Unlikely to work.
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
15332$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
15334$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15336$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15337 enable_symvers=no
15338 ;;
15339 esac
15340fi
15341
15342# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15343if test $enable_symvers != no; then
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15345$as_echo_n "checking for shared libgcc... " >&6; }
15346 ac_save_CFLAGS="$CFLAGS"
15347 CFLAGS=' -lgcc_s'
15348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15349/* end confdefs.h. */
15350
15351int
15352main ()
15353{
15354return 0;
15355 ;
15356 return 0;
15357}
15358_ACEOF
15359if ac_fn_c_try_link "$LINENO"; then :
15360 libat_shared_libgcc=yes
15361else
15362 libat_shared_libgcc=no
15363fi
15364rm -f core conftest.err conftest.$ac_objext \
15365 conftest$ac_exeext conftest.$ac_ext
15366 CFLAGS="$ac_save_CFLAGS"
15367 if test $libat_shared_libgcc = no; then
15368 cat > conftest.c <<EOF
15369int main (void) { return 0; }
15370EOF
15371 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15372 -shared -shared-libgcc -o conftest.so \
15373 conftest.c -v 2>&1 >/dev/null \
15374 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15375 rm -f conftest.c conftest.so
15376 if test x${libat_libgcc_s_suffix+set} = xset; then
15377 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
15378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379/* end confdefs.h. */
15380
15381int
15382main ()
15383{
15384return 0;
15385 ;
15386 return 0;
15387}
15388_ACEOF
15389if ac_fn_c_try_link "$LINENO"; then :
15390 libat_shared_libgcc=yes
15391fi
15392rm -f core conftest.err conftest.$ac_objext \
15393 conftest$ac_exeext conftest.$ac_ext
15394 CFLAGS="$ac_save_CFLAGS"
15395 fi
15396 fi
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
15398$as_echo "$libat_shared_libgcc" >&6; }
15399fi
15400
15401# For GNU ld, we need at least this version. The format is described in
15402# LIBAT_CHECK_LINKER_FEATURES above.
15403libat_min_gnu_ld_version=21400
15404# XXXXXXXXXXX libat_gnu_ld_version=21390
15405
15406# Check to see if unspecified "yes" value can win, given results above.
15407# Change "yes" into either "no" or a style name.
15408if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
15409 if test $with_gnu_ld = yes; then
15410 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
15411 enable_symvers=gnu
15412 elif test $libat_ld_is_gold = yes ; then
15413 enable_symvers=gnu
c99a6eb0
ML
15414 elif test $libat_ld_is_mold = yes ; then
15415 enable_symvers=gnu
48310492
RH
15416 else
15417 # The right tools, the right setup, but too old. Fallbacks?
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
15419$as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15421$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15423$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
15425$as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
15426 if test $libat_gnu_ld_version -ge 21200 ; then
15427 # Globbing fix is present, proper block support is not.
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15429$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15430 enable_symvers=no
15431 else
15432 # 2.11 or older.
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15434$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15435 enable_symvers=no
15436 fi
15437 fi
15438 elif test $enable_symvers = sun; then
15439 : All interesting versions of Sun ld support sun style symbol versioning.
15440 else
15441 # just fail for now
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15443$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15445$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15447$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15449$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15450 enable_symvers=no
15451 fi
15452fi
15453if test $enable_symvers = gnu; then
15454
15455$as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
15456
15457fi
15458
15459 if test $enable_symvers != no; then
15460 LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
15461 LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
15462else
15463 LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
15464 LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
15465fi
15466
15467 if test $enable_symvers = gnu; then
15468 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
15469 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
15470else
15471 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
15472 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
15473fi
15474
15475 if test $enable_symvers = sun; then
15476 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
15477 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
15478else
15479 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
15480 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
15481fi
15482
15483{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15484$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15485
15486
15487# Cleanup and exit.
15488CFLAGS="$save_CFLAGS"
15489cat >confcache <<\_ACEOF
15490# This file is a shell script that caches the results of configure
15491# tests run on this system so they can be shared between configure
15492# scripts and configure runs, see configure's option --config-cache.
15493# It is not useful on other systems. If it contains results you don't
15494# want to keep, you may remove or edit it.
15495#
15496# config.status only pays attention to the cache file if you give it
15497# the --recheck option to rerun configure.
15498#
15499# `ac_cv_env_foo' variables (set or unset) will be overridden when
15500# loading this file, other *unset* `ac_cv_foo' will be assigned the
15501# following values.
15502
15503_ACEOF
15504
15505# The following way of writing the cache mishandles newlines in values,
15506# but we know of no workaround that is simple, portable, and efficient.
15507# So, we kill variables containing newlines.
15508# Ultrix sh set writes to stderr and can't be redirected directly,
15509# and sets the high bit in the cache file unless we assign to the vars.
15510(
15511 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15512 eval ac_val=\$$ac_var
15513 case $ac_val in #(
15514 *${as_nl}*)
15515 case $ac_var in #(
15516 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15517$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15518 esac
15519 case $ac_var in #(
15520 _ | IFS | as_nl) ;; #(
15521 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15522 *) { eval $ac_var=; unset $ac_var;} ;;
15523 esac ;;
15524 esac
15525 done
15526
15527 (set) 2>&1 |
15528 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15529 *${as_nl}ac_space=\ *)
15530 # `set' does not quote correctly, so add quotes: double-quote
15531 # substitution turns \\\\ into \\, and sed turns \\ into \.
15532 sed -n \
15533 "s/'/'\\\\''/g;
15534 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15535 ;; #(
15536 *)
15537 # `set' quotes correctly as required by POSIX, so do not add quotes.
15538 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15539 ;;
15540 esac |
15541 sort
15542) |
15543 sed '
15544 /^ac_cv_env_/b end
15545 t clear
15546 :clear
15547 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15548 t end
15549 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15550 :end' >>confcache
15551if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15552 if test -w "$cache_file"; then
22e05272 15553 if test "x$cache_file" != "x/dev/null"; then
48310492
RH
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15555$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15556 if test ! -f "$cache_file" || test -h "$cache_file"; then
15557 cat confcache >"$cache_file"
15558 else
15559 case $cache_file in #(
15560 */* | ?:*)
15561 mv -f confcache "$cache_file"$$ &&
15562 mv -f "$cache_file"$$ "$cache_file" ;; #(
15563 *)
15564 mv -f confcache "$cache_file" ;;
15565 esac
15566 fi
15567 fi
48310492
RH
15568 else
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15570$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15571 fi
15572fi
15573rm -f confcache
15574
45ba6bf2
DS
15575# Check whether --enable-werror was given.
15576if test "${enable_werror+set}" = set; then :
15577 enableval=$enable_werror;
15578fi
15579
48310492 15580# Add -Wall -Werror if we are using GCC.
45ba6bf2
DS
15581if test "x$GCC" = "xyes"; then :
15582 XCFLAGS="$XCFLAGS -Wall"
15583fi
15584if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
15585 XCFLAGS="$XCFLAGS -Werror"
48310492
RH
15586fi
15587
efc643e9
IT
15588# Add CET specific flags if CET is enabled
15589 # Check whether --enable-cet was given.
15590if test "${enable_cet+set}" = set; then :
15591 enableval=$enable_cet;
15592 case "$enableval" in
a0e1df88 15593 yes|no|auto) ;;
22e05272 15594 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
efc643e9
IT
15595 esac
15596
15597else
8d286dd1 15598 enable_cet=auto
efc643e9
IT
15599fi
15600
15601
14e335ed
IT
15602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
15603$as_echo_n "checking for CET support... " >&6; }
15604
9051b548 15605# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
efc643e9
IT
15606case "$host" in
15607 i[34567]86-*-linux* | x86_64-*-linux*)
15608 case "$enable_cet" in
a0e1df88 15609 auto)
14e335ed 15610 # Check if target supports multi-byte NOPs
2755037e 15611 # and if compiler and assembler support CET insn.
9051b548 15612 cet_save_CFLAGS="$CFLAGS"
4c1a5d8b 15613 CFLAGS="$CFLAGS -fcf-protection"
efc643e9
IT
15614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15615/* end confdefs.h. */
15616
15617int
15618main ()
15619{
14e335ed
IT
15620
15621#if !defined(__SSE2__)
15622#error target does not support multi-byte NOPs
15623#else
efc643e9 15624asm ("setssbsy");
14e335ed
IT
15625#endif
15626
efc643e9
IT
15627 ;
15628 return 0;
15629}
15630_ACEOF
15631if ac_fn_c_try_compile "$LINENO"; then :
15632 enable_cet=yes
15633else
15634 enable_cet=no
15635fi
15636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051b548 15637 CFLAGS="$cet_save_CFLAGS"
efc643e9
IT
15638 ;;
15639 yes)
15640 # Check if assembler supports CET.
15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642/* end confdefs.h. */
15643
15644int
15645main ()
15646{
15647asm ("setssbsy");
15648 ;
15649 return 0;
15650}
15651_ACEOF
15652if ac_fn_c_try_compile "$LINENO"; then :
15653
15654else
22e05272 15655 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
efc643e9
IT
15656fi
15657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15658 ;;
15659 esac
15660 ;;
15661 *)
15662 enable_cet=no
15663 ;;
15664esac
15665if test x$enable_cet = xyes; then
7b47ecf2 15666 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15668$as_echo "yes" >&6; }
15669else
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15671$as_echo "no" >&6; }
efc643e9
IT
15672fi
15673
15674XCFLAGS="$XCFLAGS $CET_FLAGS"
15675
48310492
RH
15676XCFLAGS="$XCFLAGS $XPCFLAGS"
15677
15678
15679
15680
15681
15682
15683
47ddb895
DE
15684# Conditionalize the makefile for this target machine.
15685tmake_file_=
15686for f in ${tmake_file}
15687do
15688 if test -f ${srcdir}/config/$f
15689 then
15690 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
15691 fi
15692done
15693tmake_file="${tmake_file_}"
15694
15695
15696
48310492
RH
15697 if test x$libat_cv_have_ifunc = xyes; then
15698 HAVE_IFUNC_TRUE=
15699 HAVE_IFUNC_FALSE='#'
15700else
15701 HAVE_IFUNC_TRUE='#'
15702 HAVE_IFUNC_FALSE=
15703fi
15704
141abc6f
SE
15705 if expr "$config_path" : ".* linux/aarch64 .*" > /dev/null; then
15706 ARCH_AARCH64_LINUX_TRUE=
15707 ARCH_AARCH64_LINUX_FALSE='#'
15708else
15709 ARCH_AARCH64_LINUX_TRUE='#'
15710 ARCH_AARCH64_LINUX_FALSE=
15711fi
15712
48310492
RH
15713 if expr "$config_path" : ".* linux/arm .*" > /dev/null; then
15714 ARCH_ARM_LINUX_TRUE=
15715 ARCH_ARM_LINUX_FALSE='#'
15716else
15717 ARCH_ARM_LINUX_TRUE='#'
15718 ARCH_ARM_LINUX_FALSE=
15719fi
15720
15721 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x4; then
15722 ARCH_I386_TRUE=
15723 ARCH_I386_FALSE='#'
15724else
15725 ARCH_I386_TRUE='#'
15726 ARCH_I386_FALSE=
15727fi
15728
15729 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x8; then
15730 ARCH_X86_64_TRUE=
15731 ARCH_X86_64_FALSE='#'
15732else
15733 ARCH_X86_64_TRUE='#'
15734 ARCH_X86_64_FALSE=
15735fi
15736
15737
3c36aa6b
JJ
15738# Determine what GCC version number to use in filesystem paths.
15739
15740 get_gcc_base_ver="cat"
15741
15742# Check whether --with-gcc-major-version-only was given.
15743if test "${with_gcc_major_version_only+set}" = set; then :
15744 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 15745 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
15746 fi
15747
15748fi
15749
15750
15751
15752
48310492
RH
15753if test ${multilib} = yes; then
15754 multilib_arg="--enable-multilib"
15755else
15756 multilib_arg=
15757fi
15758
15759ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15760
5ff06d76
MR
15761ac_config_files="$ac_config_files testsuite/libatomic-site-extra.exp"
15762
48310492
RH
15763cat >confcache <<\_ACEOF
15764# This file is a shell script that caches the results of configure
15765# tests run on this system so they can be shared between configure
15766# scripts and configure runs, see configure's option --config-cache.
15767# It is not useful on other systems. If it contains results you don't
15768# want to keep, you may remove or edit it.
15769#
15770# config.status only pays attention to the cache file if you give it
15771# the --recheck option to rerun configure.
15772#
15773# `ac_cv_env_foo' variables (set or unset) will be overridden when
15774# loading this file, other *unset* `ac_cv_foo' will be assigned the
15775# following values.
15776
15777_ACEOF
15778
15779# The following way of writing the cache mishandles newlines in values,
15780# but we know of no workaround that is simple, portable, and efficient.
15781# So, we kill variables containing newlines.
15782# Ultrix sh set writes to stderr and can't be redirected directly,
15783# and sets the high bit in the cache file unless we assign to the vars.
15784(
15785 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15786 eval ac_val=\$$ac_var
15787 case $ac_val in #(
15788 *${as_nl}*)
15789 case $ac_var in #(
15790 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15791$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15792 esac
15793 case $ac_var in #(
15794 _ | IFS | as_nl) ;; #(
15795 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15796 *) { eval $ac_var=; unset $ac_var;} ;;
15797 esac ;;
15798 esac
15799 done
15800
15801 (set) 2>&1 |
15802 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15803 *${as_nl}ac_space=\ *)
15804 # `set' does not quote correctly, so add quotes: double-quote
15805 # substitution turns \\\\ into \\, and sed turns \\ into \.
15806 sed -n \
15807 "s/'/'\\\\''/g;
15808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15809 ;; #(
15810 *)
15811 # `set' quotes correctly as required by POSIX, so do not add quotes.
15812 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15813 ;;
15814 esac |
15815 sort
15816) |
15817 sed '
15818 /^ac_cv_env_/b end
15819 t clear
15820 :clear
15821 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15822 t end
15823 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15824 :end' >>confcache
15825if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15826 if test -w "$cache_file"; then
22e05272 15827 if test "x$cache_file" != "x/dev/null"; then
48310492
RH
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15829$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15830 if test ! -f "$cache_file" || test -h "$cache_file"; then
15831 cat confcache >"$cache_file"
15832 else
15833 case $cache_file in #(
15834 */* | ?:*)
15835 mv -f confcache "$cache_file"$$ &&
15836 mv -f "$cache_file"$$ "$cache_file" ;; #(
15837 *)
15838 mv -f confcache "$cache_file" ;;
15839 esac
15840 fi
15841 fi
48310492
RH
15842 else
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15844$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15845 fi
15846fi
15847rm -f confcache
15848
15849test "x$prefix" = xNONE && prefix=$ac_default_prefix
15850# Let make expand exec_prefix.
15851test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15852
15853DEFS=-DHAVE_CONFIG_H
15854
15855ac_libobjs=
15856ac_ltlibobjs=
22e05272 15857U=
48310492
RH
15858for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15859 # 1. Remove the extension, and $U if already installed.
15860 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15861 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15862 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15863 # will be set to the directory where LIBOBJS objects are built.
15864 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15865 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15866done
15867LIBOBJS=$ac_libobjs
15868
15869LTLIBOBJS=$ac_ltlibobjs
15870
15871
15872if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
22e05272 15873 as_fn_error $? "conditional \"GENINSRC\" was never defined.
48310492
RH
15874Usually this means the macro was only invoked conditionally." "$LINENO" 5
15875fi
22e05272
JM
15876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15877$as_echo_n "checking that generated files are newer than configure... " >&6; }
15878 if test -n "$am_sleep_pid"; then
15879 # Hide warnings about reused PIDs.
15880 wait $am_sleep_pid 2>/dev/null
15881 fi
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15883$as_echo "done" >&6; }
48310492
RH
15884 if test -n "$EXEEXT"; then
15885 am__EXEEXT_TRUE=
15886 am__EXEEXT_FALSE='#'
15887else
15888 am__EXEEXT_TRUE='#'
15889 am__EXEEXT_FALSE=
15890fi
15891
15892if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 15893 as_fn_error $? "conditional \"AMDEP\" was never defined.
48310492
RH
15894Usually this means the macro was only invoked conditionally." "$LINENO" 5
15895fi
15896if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 15897 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
48310492
RH
15898Usually this means the macro was only invoked conditionally." "$LINENO" 5
15899fi
15900if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22e05272 15901 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
48310492
RH
15902Usually this means the macro was only invoked conditionally." "$LINENO" 5
15903fi
fa3cd3c3 15904if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 15905 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
fa3cd3c3
RH
15906Usually this means the macro was only invoked conditionally." "$LINENO" 5
15907fi
48310492
RH
15908
15909if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
22e05272 15910 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
48310492
RH
15911Usually this means the macro was only invoked conditionally." "$LINENO" 5
15912fi
15913if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
22e05272 15914 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
48310492
RH
15915Usually this means the macro was only invoked conditionally." "$LINENO" 5
15916fi
15917if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
22e05272 15918 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
48310492
RH
15919Usually this means the macro was only invoked conditionally." "$LINENO" 5
15920fi
15921if test -z "${HAVE_IFUNC_TRUE}" && test -z "${HAVE_IFUNC_FALSE}"; then
22e05272 15922 as_fn_error $? "conditional \"HAVE_IFUNC\" was never defined.
48310492
RH
15923Usually this means the macro was only invoked conditionally." "$LINENO" 5
15924fi
141abc6f 15925if test -z "${ARCH_AARCH64_LINUX_TRUE}" && test -z "${ARCH_AARCH64_LINUX_FALSE}"; then
22e05272 15926 as_fn_error $? "conditional \"ARCH_AARCH64_LINUX\" was never defined.
141abc6f
SE
15927Usually this means the macro was only invoked conditionally." "$LINENO" 5
15928fi
48310492 15929if test -z "${ARCH_ARM_LINUX_TRUE}" && test -z "${ARCH_ARM_LINUX_FALSE}"; then
22e05272 15930 as_fn_error $? "conditional \"ARCH_ARM_LINUX\" was never defined.
48310492
RH
15931Usually this means the macro was only invoked conditionally." "$LINENO" 5
15932fi
15933if test -z "${ARCH_I386_TRUE}" && test -z "${ARCH_I386_FALSE}"; then
22e05272 15934 as_fn_error $? "conditional \"ARCH_I386\" was never defined.
48310492
RH
15935Usually this means the macro was only invoked conditionally." "$LINENO" 5
15936fi
15937if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
22e05272 15938 as_fn_error $? "conditional \"ARCH_X86_64\" was never defined.
48310492
RH
15939Usually this means the macro was only invoked conditionally." "$LINENO" 5
15940fi
15941
22e05272 15942: "${CONFIG_STATUS=./config.status}"
48310492
RH
15943ac_write_fail=0
15944ac_clean_files_save=$ac_clean_files
15945ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15946{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15947$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15948as_write_fail=0
15949cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15950#! $SHELL
15951# Generated by $as_me.
15952# Run this file to recreate the current configuration.
15953# Compiler output produced by configure, useful for debugging
15954# configure, is in config.log if it exists.
15955
15956debug=false
15957ac_cs_recheck=false
15958ac_cs_silent=false
15959
15960SHELL=\${CONFIG_SHELL-$SHELL}
15961export SHELL
15962_ASEOF
15963cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15964## -------------------- ##
15965## M4sh Initialization. ##
15966## -------------------- ##
15967
15968# Be more Bourne compatible
15969DUALCASE=1; export DUALCASE # for MKS sh
15970if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15971 emulate sh
15972 NULLCMD=:
15973 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15974 # is contrary to our usage. Disable this feature.
15975 alias -g '${1+"$@"}'='"$@"'
15976 setopt NO_GLOB_SUBST
15977else
15978 case `(set -o) 2>/dev/null` in #(
15979 *posix*) :
15980 set -o posix ;; #(
15981 *) :
15982 ;;
15983esac
15984fi
15985
15986
15987as_nl='
15988'
15989export as_nl
15990# Printing a long string crashes Solaris 7 /usr/bin/printf.
15991as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15992as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15993as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15994# Prefer a ksh shell builtin over an external printf program on Solaris,
15995# but without wasting forks for bash or zsh.
15996if test -z "$BASH_VERSION$ZSH_VERSION" \
15997 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15998 as_echo='print -r --'
15999 as_echo_n='print -rn --'
16000elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16001 as_echo='printf %s\n'
16002 as_echo_n='printf %s'
16003else
16004 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16005 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16006 as_echo_n='/usr/ucb/echo -n'
16007 else
16008 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16009 as_echo_n_body='eval
16010 arg=$1;
16011 case $arg in #(
16012 *"$as_nl"*)
16013 expr "X$arg" : "X\\(.*\\)$as_nl";
16014 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16015 esac;
16016 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16017 '
16018 export as_echo_n_body
16019 as_echo_n='sh -c $as_echo_n_body as_echo'
16020 fi
16021 export as_echo_body
16022 as_echo='sh -c $as_echo_body as_echo'
16023fi
16024
16025# The user is always right.
16026if test "${PATH_SEPARATOR+set}" != set; then
16027 PATH_SEPARATOR=:
16028 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16029 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16030 PATH_SEPARATOR=';'
16031 }
16032fi
16033
16034
16035# IFS
16036# We need space, tab and new line, in precisely that order. Quoting is
16037# there to prevent editors from complaining about space-tab.
16038# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16039# splitting by setting IFS to empty value.)
16040IFS=" "" $as_nl"
16041
16042# Find who we are. Look in the path if we contain no directory separator.
22e05272 16043as_myself=
48310492
RH
16044case $0 in #((
16045 *[\\/]* ) as_myself=$0 ;;
16046 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16047for as_dir in $PATH
16048do
16049 IFS=$as_save_IFS
16050 test -z "$as_dir" && as_dir=.
16051 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16052 done
16053IFS=$as_save_IFS
16054
16055 ;;
16056esac
16057# We did not find ourselves, most probably we were run as `sh COMMAND'
16058# in which case we are not to be found in the path.
16059if test "x$as_myself" = x; then
16060 as_myself=$0
16061fi
16062if test ! -f "$as_myself"; then
16063 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16064 exit 1
16065fi
16066
16067# Unset variables that we do not need and which cause bugs (e.g. in
16068# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16069# suppresses any "Segmentation fault" message there. '((' could
16070# trigger a bug in pdksh 5.2.14.
16071for as_var in BASH_ENV ENV MAIL MAILPATH
16072do eval test x\${$as_var+set} = xset \
16073 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16074done
16075PS1='$ '
16076PS2='> '
16077PS4='+ '
16078
16079# NLS nuisances.
16080LC_ALL=C
16081export LC_ALL
16082LANGUAGE=C
16083export LANGUAGE
16084
16085# CDPATH.
16086(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16087
16088
22e05272
JM
16089# as_fn_error STATUS ERROR [LINENO LOG_FD]
16090# ----------------------------------------
48310492
RH
16091# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16092# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 16093# script with STATUS, using 1 if that was 0.
48310492
RH
16094as_fn_error ()
16095{
22e05272
JM
16096 as_status=$1; test $as_status -eq 0 && as_status=1
16097 if test "$4"; then
16098 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16099 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
48310492 16100 fi
22e05272 16101 $as_echo "$as_me: error: $2" >&2
48310492
RH
16102 as_fn_exit $as_status
16103} # as_fn_error
16104
16105
16106# as_fn_set_status STATUS
16107# -----------------------
16108# Set $? to STATUS, without forking.
16109as_fn_set_status ()
16110{
16111 return $1
16112} # as_fn_set_status
16113
16114# as_fn_exit STATUS
16115# -----------------
16116# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16117as_fn_exit ()
16118{
16119 set +e
16120 as_fn_set_status $1
16121 exit $1
16122} # as_fn_exit
16123
16124# as_fn_unset VAR
16125# ---------------
16126# Portably unset VAR.
16127as_fn_unset ()
16128{
16129 { eval $1=; unset $1;}
16130}
16131as_unset=as_fn_unset
16132# as_fn_append VAR VALUE
16133# ----------------------
16134# Append the text in VALUE to the end of the definition contained in VAR. Take
16135# advantage of any shell optimizations that allow amortized linear growth over
16136# repeated appends, instead of the typical quadratic growth present in naive
16137# implementations.
16138if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16139 eval 'as_fn_append ()
16140 {
16141 eval $1+=\$2
16142 }'
16143else
16144 as_fn_append ()
16145 {
16146 eval $1=\$$1\$2
16147 }
16148fi # as_fn_append
16149
16150# as_fn_arith ARG...
16151# ------------------
16152# Perform arithmetic evaluation on the ARGs, and store the result in the
16153# global $as_val. Take advantage of shells that can avoid forks. The arguments
16154# must be portable across $(()) and expr.
16155if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16156 eval 'as_fn_arith ()
16157 {
16158 as_val=$(( $* ))
16159 }'
16160else
16161 as_fn_arith ()
16162 {
16163 as_val=`expr "$@" || test $? -eq 1`
16164 }
16165fi # as_fn_arith
16166
16167
16168if expr a : '\(a\)' >/dev/null 2>&1 &&
16169 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16170 as_expr=expr
16171else
16172 as_expr=false
16173fi
16174
16175if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16176 as_basename=basename
16177else
16178 as_basename=false
16179fi
16180
16181if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16182 as_dirname=dirname
16183else
16184 as_dirname=false
16185fi
16186
16187as_me=`$as_basename -- "$0" ||
16188$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16189 X"$0" : 'X\(//\)$' \| \
16190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16191$as_echo X/"$0" |
16192 sed '/^.*\/\([^/][^/]*\)\/*$/{
16193 s//\1/
16194 q
16195 }
16196 /^X\/\(\/\/\)$/{
16197 s//\1/
16198 q
16199 }
16200 /^X\/\(\/\).*/{
16201 s//\1/
16202 q
16203 }
16204 s/.*/./; q'`
16205
16206# Avoid depending upon Character Ranges.
16207as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16208as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16209as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16210as_cr_digits='0123456789'
16211as_cr_alnum=$as_cr_Letters$as_cr_digits
16212
16213ECHO_C= ECHO_N= ECHO_T=
16214case `echo -n x` in #(((((
16215-n*)
16216 case `echo 'xy\c'` in
16217 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16218 xy) ECHO_C='\c';;
16219 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16220 ECHO_T=' ';;
16221 esac;;
16222*)
16223 ECHO_N='-n';;
16224esac
16225
16226rm -f conf$$ conf$$.exe conf$$.file
16227if test -d conf$$.dir; then
16228 rm -f conf$$.dir/conf$$.file
16229else
16230 rm -f conf$$.dir
16231 mkdir conf$$.dir 2>/dev/null
16232fi
16233if (echo >conf$$.file) 2>/dev/null; then
16234 if ln -s conf$$.file conf$$ 2>/dev/null; then
16235 as_ln_s='ln -s'
16236 # ... but there are two gotchas:
16237 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16238 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 16239 # In both cases, we have to default to `cp -pR'.
48310492 16240 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 16241 as_ln_s='cp -pR'
48310492
RH
16242 elif ln conf$$.file conf$$ 2>/dev/null; then
16243 as_ln_s=ln
16244 else
22e05272 16245 as_ln_s='cp -pR'
48310492
RH
16246 fi
16247else
22e05272 16248 as_ln_s='cp -pR'
48310492
RH
16249fi
16250rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16251rmdir conf$$.dir 2>/dev/null
16252
16253
16254# as_fn_mkdir_p
16255# -------------
16256# Create "$as_dir" as a directory, including parents if necessary.
16257as_fn_mkdir_p ()
16258{
16259
16260 case $as_dir in #(
16261 -*) as_dir=./$as_dir;;
16262 esac
16263 test -d "$as_dir" || eval $as_mkdir_p || {
16264 as_dirs=
16265 while :; do
16266 case $as_dir in #(
16267 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16268 *) as_qdir=$as_dir;;
16269 esac
16270 as_dirs="'$as_qdir' $as_dirs"
16271 as_dir=`$as_dirname -- "$as_dir" ||
16272$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16273 X"$as_dir" : 'X\(//\)[^/]' \| \
16274 X"$as_dir" : 'X\(//\)$' \| \
16275 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16276$as_echo X"$as_dir" |
16277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16278 s//\1/
16279 q
16280 }
16281 /^X\(\/\/\)[^/].*/{
16282 s//\1/
16283 q
16284 }
16285 /^X\(\/\/\)$/{
16286 s//\1/
16287 q
16288 }
16289 /^X\(\/\).*/{
16290 s//\1/
16291 q
16292 }
16293 s/.*/./; q'`
16294 test -d "$as_dir" && break
16295 done
16296 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 16297 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
48310492
RH
16298
16299
16300} # as_fn_mkdir_p
16301if mkdir -p . 2>/dev/null; then
16302 as_mkdir_p='mkdir -p "$as_dir"'
16303else
16304 test -d ./-p && rmdir ./-p
16305 as_mkdir_p=false
16306fi
16307
22e05272
JM
16308
16309# as_fn_executable_p FILE
16310# -----------------------
16311# Test if FILE is an executable regular file.
16312as_fn_executable_p ()
16313{
16314 test -f "$1" && test -x "$1"
16315} # as_fn_executable_p
16316as_test_x='test -x'
16317as_executable_p=as_fn_executable_p
48310492
RH
16318
16319# Sed expression to map a string onto a valid CPP name.
16320as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16321
16322# Sed expression to map a string onto a valid variable name.
16323as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16324
16325
16326exec 6>&1
16327## ----------------------------------- ##
16328## Main body of $CONFIG_STATUS script. ##
16329## ----------------------------------- ##
16330_ASEOF
16331test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16332
16333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16334# Save the log message, to keep $0 and so on meaningful, and to
16335# report actual input values of CONFIG_FILES etc. instead of their
16336# values after options handling.
16337ac_log="
16338This file was extended by GNU Atomic Library $as_me 1.0, which was
22e05272 16339generated by GNU Autoconf 2.69. Invocation command line was
48310492
RH
16340
16341 CONFIG_FILES = $CONFIG_FILES
16342 CONFIG_HEADERS = $CONFIG_HEADERS
16343 CONFIG_LINKS = $CONFIG_LINKS
16344 CONFIG_COMMANDS = $CONFIG_COMMANDS
16345 $ $0 $@
16346
16347on `(hostname || uname -n) 2>/dev/null | sed 1q`
16348"
16349
16350_ACEOF
16351
16352case $ac_config_files in *"
16353"*) set x $ac_config_files; shift; ac_config_files=$*;;
16354esac
16355
16356case $ac_config_headers in *"
16357"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16358esac
16359
16360
16361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16362# Files that config.status was made for.
16363config_files="$ac_config_files"
16364config_headers="$ac_config_headers"
16365config_commands="$ac_config_commands"
16366
16367_ACEOF
16368
16369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16370ac_cs_usage="\
16371\`$as_me' instantiates files and other configuration actions
16372from templates according to the current configuration. Unless the files
16373and actions are specified as TAGs, all are instantiated by default.
16374
16375Usage: $0 [OPTION]... [TAG]...
16376
16377 -h, --help print this help, then exit
16378 -V, --version print version number and configuration settings, then exit
22e05272 16379 --config print configuration, then exit
48310492
RH
16380 -q, --quiet, --silent
16381 do not print progress messages
16382 -d, --debug don't remove temporary files
16383 --recheck update $as_me by reconfiguring in the same conditions
16384 --file=FILE[:TEMPLATE]
16385 instantiate the configuration file FILE
16386 --header=FILE[:TEMPLATE]
16387 instantiate the configuration header FILE
16388
16389Configuration files:
16390$config_files
16391
16392Configuration headers:
16393$config_headers
16394
16395Configuration commands:
16396$config_commands
16397
16398Report bugs to the package provider.
16399GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
16400General help using GNU software: <http://www.gnu.org/gethelp/>."
16401
16402_ACEOF
16403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16404ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
48310492
RH
16405ac_cs_version="\\
16406GNU Atomic Library config.status 1.0
22e05272
JM
16407configured by $0, generated by GNU Autoconf 2.69,
16408 with options \\"\$ac_cs_config\\"
48310492 16409
22e05272 16410Copyright (C) 2012 Free Software Foundation, Inc.
48310492
RH
16411This config.status script is free software; the Free Software Foundation
16412gives unlimited permission to copy, distribute and modify it."
16413
16414ac_pwd='$ac_pwd'
16415srcdir='$srcdir'
16416INSTALL='$INSTALL'
16417MKDIR_P='$MKDIR_P'
16418AWK='$AWK'
16419test -n "\$AWK" || AWK=awk
16420_ACEOF
16421
16422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16423# The default lists apply if the user does not specify any file.
16424ac_need_defaults=:
16425while test $# != 0
16426do
16427 case $1 in
22e05272 16428 --*=?*)
48310492
RH
16429 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16430 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16431 ac_shift=:
16432 ;;
22e05272
JM
16433 --*=)
16434 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16435 ac_optarg=
16436 ac_shift=:
16437 ;;
48310492
RH
16438 *)
16439 ac_option=$1
16440 ac_optarg=$2
16441 ac_shift=shift
16442 ;;
16443 esac
16444
16445 case $ac_option in
16446 # Handling of the options.
16447 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16448 ac_cs_recheck=: ;;
16449 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16450 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
16451 --config | --confi | --conf | --con | --co | --c )
16452 $as_echo "$ac_cs_config"; exit ;;
48310492
RH
16453 --debug | --debu | --deb | --de | --d | -d )
16454 debug=: ;;
16455 --file | --fil | --fi | --f )
16456 $ac_shift
16457 case $ac_optarg in
16458 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 16459 '') as_fn_error $? "missing file argument" ;;
48310492
RH
16460 esac
16461 as_fn_append CONFIG_FILES " '$ac_optarg'"
16462 ac_need_defaults=false;;
16463 --header | --heade | --head | --hea )
16464 $ac_shift
16465 case $ac_optarg in
16466 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16467 esac
16468 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16469 ac_need_defaults=false;;
16470 --he | --h)
16471 # Conflict between --help and --header
22e05272 16472 as_fn_error $? "ambiguous option: \`$1'
48310492
RH
16473Try \`$0 --help' for more information.";;
16474 --help | --hel | -h )
16475 $as_echo "$ac_cs_usage"; exit ;;
16476 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16477 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16478 ac_cs_silent=: ;;
16479
16480 # This is an error.
22e05272 16481 -*) as_fn_error $? "unrecognized option: \`$1'
48310492
RH
16482Try \`$0 --help' for more information." ;;
16483
16484 *) as_fn_append ac_config_targets " $1"
16485 ac_need_defaults=false ;;
16486
16487 esac
16488 shift
16489done
16490
16491ac_configure_extra_args=
16492
16493if $ac_cs_silent; then
16494 exec 6>/dev/null
16495 ac_configure_extra_args="$ac_configure_extra_args --silent"
16496fi
16497
16498_ACEOF
16499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16500if \$ac_cs_recheck; then
22e05272 16501 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48310492
RH
16502 shift
16503 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16504 CONFIG_SHELL='$SHELL'
16505 export CONFIG_SHELL
16506 exec "\$@"
16507fi
16508
16509_ACEOF
16510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16511exec 5>>config.log
16512{
16513 echo
16514 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16515## Running $as_me. ##
16516_ASBOX
16517 $as_echo "$ac_log"
16518} >&5
16519
16520_ACEOF
16521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16522#
16523# INIT-COMMANDS
16524#
16525
16526srcdir="$srcdir"
16527host="$host"
16528target="$target"
16529with_multisubdir="$with_multisubdir"
16530with_multisrctop="$with_multisrctop"
16531with_target_subdir="$with_target_subdir"
16532ac_configure_args="${multilib_arg} ${ac_configure_args}"
16533multi_basedir="$multi_basedir"
16534CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16535CC="$CC"
16536CXX="$CXX"
16537GFORTRAN="$GFORTRAN"
22e05272 16538GDC="$GDC"
48310492
RH
16539AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16540
16541
16542# The HP-UX ksh and POSIX shell print the target directory to stdout
16543# if CDPATH is set.
16544(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16545
16546sed_quote_subst='$sed_quote_subst'
16547double_quote_subst='$double_quote_subst'
16548delay_variable_subst='$delay_variable_subst'
16549macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16550macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16551enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16552enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16553pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16554enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16555SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16556ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16557host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16558host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16559host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16560build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16561build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16562build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16563SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16564Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16565GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16566EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16567FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16568LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16569NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16570LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16571max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16572ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16573exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16574lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16575lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16576lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16577reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16578reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16579OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16580deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16581file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16582AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16583AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16584STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16585RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16586old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16587old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16588old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16589lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16590CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16591CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16592compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16593GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16594lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16595lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16596lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16597lt_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"`'
16598objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16599MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16600lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16601lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16602lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16603lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16604lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16605need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16606DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16607NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16608LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16609OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16610OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16611libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16612shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16613extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16614archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16615enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16616export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16617whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16618compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16619old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16620old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16621archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16622archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16623module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16624module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16625with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16626allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16627no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16628hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16629hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16630hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16631hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16632hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16633hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16634hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16635hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16636inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16637link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16638fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16639always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16640export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16641exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16642include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16643prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16644file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16645variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16646need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16647need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16648version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16649runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16650shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16651shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16652libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16653library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16654soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16655install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16656postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16657postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16658finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16659finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16660hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16661sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16662sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16663hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16664enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16665enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16666enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16667old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16668striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16669
16670LTCC='$LTCC'
16671LTCFLAGS='$LTCFLAGS'
16672compiler='$compiler_DEFAULT'
16673
16674# A function that is used when there is no print builtin or printf.
16675func_fallback_echo ()
16676{
16677 eval 'cat <<_LTECHO_EOF
16678\$1
16679_LTECHO_EOF'
16680}
16681
16682# Quote evaled strings.
16683for var in SHELL \
16684ECHO \
16685SED \
16686GREP \
16687EGREP \
16688FGREP \
16689LD \
16690NM \
16691LN_S \
16692lt_SP2NL \
16693lt_NL2SP \
16694reload_flag \
16695OBJDUMP \
16696deplibs_check_method \
16697file_magic_cmd \
16698AR \
16699AR_FLAGS \
16700STRIP \
16701RANLIB \
16702CC \
16703CFLAGS \
16704compiler \
16705lt_cv_sys_global_symbol_pipe \
16706lt_cv_sys_global_symbol_to_cdecl \
16707lt_cv_sys_global_symbol_to_c_name_address \
16708lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16709lt_prog_compiler_no_builtin_flag \
16710lt_prog_compiler_wl \
16711lt_prog_compiler_pic \
16712lt_prog_compiler_static \
16713lt_cv_prog_compiler_c_o \
16714need_locks \
16715DSYMUTIL \
16716NMEDIT \
16717LIPO \
16718OTOOL \
16719OTOOL64 \
16720shrext_cmds \
16721export_dynamic_flag_spec \
16722whole_archive_flag_spec \
16723compiler_needs_object \
16724with_gnu_ld \
16725allow_undefined_flag \
16726no_undefined_flag \
16727hardcode_libdir_flag_spec \
16728hardcode_libdir_flag_spec_ld \
16729hardcode_libdir_separator \
16730fix_srcfile_path \
16731exclude_expsyms \
16732include_expsyms \
16733file_list_spec \
16734variables_saved_for_relink \
16735libname_spec \
16736library_names_spec \
16737soname_spec \
16738install_override_mode \
16739finish_eval \
16740old_striplib \
16741striplib; do
16742 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16743 *[\\\\\\\`\\"\\\$]*)
16744 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16745 ;;
16746 *)
16747 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16748 ;;
16749 esac
16750done
16751
16752# Double-quote double-evaled strings.
16753for var in reload_cmds \
16754old_postinstall_cmds \
16755old_postuninstall_cmds \
16756old_archive_cmds \
16757extract_expsyms_cmds \
16758old_archive_from_new_cmds \
16759old_archive_from_expsyms_cmds \
16760archive_cmds \
16761archive_expsym_cmds \
16762module_cmds \
16763module_expsym_cmds \
16764export_symbols_cmds \
16765prelink_cmds \
16766postinstall_cmds \
16767postuninstall_cmds \
16768finish_cmds \
16769sys_lib_search_path_spec \
16770sys_lib_dlsearch_path_spec; do
16771 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16772 *[\\\\\\\`\\"\\\$]*)
16773 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16774 ;;
16775 *)
16776 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16777 ;;
16778 esac
16779done
16780
16781ac_aux_dir='$ac_aux_dir'
16782xsi_shell='$xsi_shell'
16783lt_shell_append='$lt_shell_append'
16784
16785# See if we are running on zsh, and set the options which allow our
16786# commands through without removal of \ escapes INIT.
16787if test -n "\${ZSH_VERSION+set}" ; then
16788 setopt NO_GLOB_SUBST
16789fi
16790
16791
16792 PACKAGE='$PACKAGE'
16793 VERSION='$VERSION'
16794 TIMESTAMP='$TIMESTAMP'
16795 RM='$RM'
16796 ofile='$ofile'
16797
16798
16799
16800
16801GCC="$GCC"
16802CC="$CC"
16803acx_cv_header_stdint="$acx_cv_header_stdint"
16804acx_cv_type_int8_t="$acx_cv_type_int8_t"
16805acx_cv_type_int16_t="$acx_cv_type_int16_t"
16806acx_cv_type_int32_t="$acx_cv_type_int32_t"
16807acx_cv_type_int64_t="$acx_cv_type_int64_t"
16808acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
16809ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
16810ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
16811ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16812ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16813ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
16814ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16815ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16816ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
16817
16818
16819_ACEOF
16820
16821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16822
16823# Handling of arguments.
16824for ac_config_target in $ac_config_targets
16825do
16826 case $ac_config_target in
16827 "auto-config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-config.h" ;;
16828 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16829 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16830 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16831 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
16832 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16833 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
5ff06d76 16834 "testsuite/libatomic-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libatomic-site-extra.exp" ;;
48310492 16835
22e05272 16836 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
48310492
RH
16837 esac
16838done
16839
16840
16841# If the user did not use the arguments to specify the items to instantiate,
16842# then the envvar interface is used. Set only those that are not.
16843# We use the long form for the default assignment because of an extremely
16844# bizarre bug on SunOS 4.1.3.
16845if $ac_need_defaults; then
16846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16848 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16849fi
16850
16851# Have a temporary directory for convenience. Make it in the build tree
16852# simply because there is no reason against having it here, and in addition,
16853# creating and moving files from /tmp can sometimes cause problems.
16854# Hook for its removal unless debugging.
16855# Note that there is a small window in which the directory will not be cleaned:
16856# after its creation but before its name has been assigned to `$tmp'.
16857$debug ||
16858{
22e05272 16859 tmp= ac_tmp=
48310492 16860 trap 'exit_status=$?
22e05272
JM
16861 : "${ac_tmp:=$tmp}"
16862 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
48310492
RH
16863' 0
16864 trap 'as_fn_exit 1' 1 2 13 15
16865}
16866# Create a (secure) tmp directory for tmp files.
16867
16868{
16869 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 16870 test -d "$tmp"
48310492
RH
16871} ||
16872{
16873 tmp=./conf$$-$RANDOM
16874 (umask 077 && mkdir "$tmp")
22e05272
JM
16875} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16876ac_tmp=$tmp
48310492
RH
16877
16878# Set up the scripts for CONFIG_FILES section.
16879# No need to generate them if there are no CONFIG_FILES.
16880# This happens for instance with `./config.status config.h'.
16881if test -n "$CONFIG_FILES"; then
16882
16883
16884ac_cr=`echo X | tr X '\015'`
16885# On cygwin, bash can eat \r inside `` if the user requested igncr.
16886# But we know of no other shell where ac_cr would be empty at this
16887# point, so we can use a bashism as a fallback.
16888if test "x$ac_cr" = x; then
16889 eval ac_cr=\$\'\\r\'
16890fi
16891ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16892if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 16893 ac_cs_awk_cr='\\r'
48310492
RH
16894else
16895 ac_cs_awk_cr=$ac_cr
16896fi
16897
22e05272 16898echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
48310492
RH
16899_ACEOF
16900
16901
16902{
16903 echo "cat >conf$$subs.awk <<_ACEOF" &&
16904 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16905 echo "_ACEOF"
16906} >conf$$subs.sh ||
22e05272
JM
16907 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16908ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
48310492
RH
16909ac_delim='%!_!# '
16910for ac_last_try in false false false false false :; do
16911 . ./conf$$subs.sh ||
22e05272 16912 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
48310492
RH
16913
16914 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16915 if test $ac_delim_n = $ac_delim_num; then
16916 break
16917 elif $ac_last_try; then
22e05272 16918 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
48310492
RH
16919 else
16920 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16921 fi
16922done
16923rm -f conf$$subs.sh
16924
16925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16926cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
48310492
RH
16927_ACEOF
16928sed -n '
16929h
16930s/^/S["/; s/!.*/"]=/
16931p
16932g
16933s/^[^!]*!//
16934:repl
16935t repl
16936s/'"$ac_delim"'$//
16937t delim
16938:nl
16939h
22e05272 16940s/\(.\{148\}\)..*/\1/
48310492
RH
16941t more1
16942s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16943p
16944n
16945b repl
16946:more1
16947s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16948p
16949g
16950s/.\{148\}//
16951t nl
16952:delim
16953h
22e05272 16954s/\(.\{148\}\)..*/\1/
48310492
RH
16955t more2
16956s/["\\]/\\&/g; s/^/"/; s/$/"/
16957p
16958b
16959:more2
16960s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16961p
16962g
16963s/.\{148\}//
16964t delim
16965' <conf$$subs.awk | sed '
16966/^[^""]/{
16967 N
16968 s/\n//
16969}
16970' >>$CONFIG_STATUS || ac_write_fail=1
16971rm -f conf$$subs.awk
16972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16973_ACAWK
22e05272 16974cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
48310492
RH
16975 for (key in S) S_is_set[key] = 1
16976 FS = "\a"
16977
16978}
16979{
16980 line = $ 0
16981 nfields = split(line, field, "@")
16982 substed = 0
16983 len = length(field[1])
16984 for (i = 2; i < nfields; i++) {
16985 key = field[i]
16986 keylen = length(key)
16987 if (S_is_set[key]) {
16988 value = S[key]
16989 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16990 len += length(value) + length(field[++i])
16991 substed = 1
16992 } else
16993 len += 1 + keylen
16994 }
16995
16996 print line
16997}
16998
16999_ACAWK
17000_ACEOF
17001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17002if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17003 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17004else
17005 cat
22e05272
JM
17006fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17007 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
48310492
RH
17008_ACEOF
17009
22e05272
JM
17010# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17011# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
48310492
RH
17012# trailing colons and then remove the whole line if VPATH becomes empty
17013# (actually we leave an empty line to preserve line numbers).
17014if test "x$srcdir" = x.; then
22e05272
JM
17015 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17016h
17017s///
17018s/^/:/
17019s/[ ]*$/:/
17020s/:\$(srcdir):/:/g
17021s/:\${srcdir}:/:/g
17022s/:@srcdir@:/:/g
17023s/^:*//
48310492 17024s/:*$//
22e05272
JM
17025x
17026s/\(=[ ]*\).*/\1/
17027G
17028s/\n//
48310492
RH
17029s/^[^=]*=[ ]*$//
17030}'
17031fi
17032
17033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17034fi # test -n "$CONFIG_FILES"
17035
17036# Set up the scripts for CONFIG_HEADERS section.
17037# No need to generate them if there are no CONFIG_HEADERS.
17038# This happens for instance with `./config.status Makefile'.
17039if test -n "$CONFIG_HEADERS"; then
22e05272 17040cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
48310492
RH
17041BEGIN {
17042_ACEOF
17043
17044# Transform confdefs.h into an awk script `defines.awk', embedded as
17045# here-document in config.status, that substitutes the proper values into
17046# config.h.in to produce config.h.
17047
17048# Create a delimiter string that does not exist in confdefs.h, to ease
17049# handling of long lines.
17050ac_delim='%!_!# '
17051for ac_last_try in false false :; do
22e05272
JM
17052 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17053 if test -z "$ac_tt"; then
48310492
RH
17054 break
17055 elif $ac_last_try; then
22e05272 17056 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
48310492
RH
17057 else
17058 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17059 fi
17060done
17061
17062# For the awk script, D is an array of macro values keyed by name,
17063# likewise P contains macro parameters if any. Preserve backslash
17064# newline sequences.
17065
17066ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17067sed -n '
17068s/.\{148\}/&'"$ac_delim"'/g
17069t rset
17070:rset
17071s/^[ ]*#[ ]*define[ ][ ]*/ /
17072t def
17073d
17074:def
17075s/\\$//
17076t bsnl
17077s/["\\]/\\&/g
17078s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17079D["\1"]=" \3"/p
17080s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17081d
17082:bsnl
17083s/["\\]/\\&/g
17084s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17085D["\1"]=" \3\\\\\\n"\\/p
17086t cont
17087s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17088t cont
17089d
17090:cont
17091n
17092s/.\{148\}/&'"$ac_delim"'/g
17093t clear
17094:clear
17095s/\\$//
17096t bsnlc
17097s/["\\]/\\&/g; s/^/"/; s/$/"/p
17098d
17099:bsnlc
17100s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17101b cont
17102' <confdefs.h | sed '
17103s/'"$ac_delim"'/"\\\
17104"/g' >>$CONFIG_STATUS || ac_write_fail=1
17105
17106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17107 for (key in D) D_is_set[key] = 1
17108 FS = "\a"
17109}
17110/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17111 line = \$ 0
17112 split(line, arg, " ")
17113 if (arg[1] == "#") {
17114 defundef = arg[2]
17115 mac1 = arg[3]
17116 } else {
17117 defundef = substr(arg[1], 2)
17118 mac1 = arg[2]
17119 }
17120 split(mac1, mac2, "(") #)
17121 macro = mac2[1]
17122 prefix = substr(line, 1, index(line, defundef) - 1)
17123 if (D_is_set[macro]) {
17124 # Preserve the white space surrounding the "#".
17125 print prefix "define", macro P[macro] D[macro]
17126 next
17127 } else {
17128 # Replace #undef with comments. This is necessary, for example,
17129 # in the case of _POSIX_SOURCE, which is predefined and required
17130 # on some systems where configure will not decide to define it.
17131 if (defundef == "undef") {
17132 print "/*", prefix defundef, macro, "*/"
17133 next
17134 }
17135 }
17136}
17137{ print }
17138_ACAWK
17139_ACEOF
17140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 17141 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
48310492
RH
17142fi # test -n "$CONFIG_HEADERS"
17143
17144
17145eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17146shift
17147for ac_tag
17148do
17149 case $ac_tag in
17150 :[FHLC]) ac_mode=$ac_tag; continue;;
17151 esac
17152 case $ac_mode$ac_tag in
17153 :[FHL]*:*);;
22e05272 17154 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
48310492
RH
17155 :[FH]-) ac_tag=-:-;;
17156 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17157 esac
17158 ac_save_IFS=$IFS
17159 IFS=:
17160 set x $ac_tag
17161 IFS=$ac_save_IFS
17162 shift
17163 ac_file=$1
17164 shift
17165
17166 case $ac_mode in
17167 :L) ac_source=$1;;
17168 :[FH])
17169 ac_file_inputs=
17170 for ac_f
17171 do
17172 case $ac_f in
22e05272 17173 -) ac_f="$ac_tmp/stdin";;
48310492
RH
17174 *) # Look for the file first in the build tree, then in the source tree
17175 # (if the path is not absolute). The absolute path cannot be DOS-style,
17176 # because $ac_f cannot contain `:'.
17177 test -f "$ac_f" ||
17178 case $ac_f in
17179 [\\/$]*) false;;
17180 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17181 esac ||
22e05272 17182 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
48310492
RH
17183 esac
17184 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17185 as_fn_append ac_file_inputs " '$ac_f'"
17186 done
17187
17188 # Let's still pretend it is `configure' which instantiates (i.e., don't
17189 # use $as_me), people would be surprised to read:
17190 # /* config.h. Generated by config.status. */
17191 configure_input='Generated from '`
17192 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17193 `' by configure.'
17194 if test x"$ac_file" != x-; then
17195 configure_input="$ac_file. $configure_input"
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17197$as_echo "$as_me: creating $ac_file" >&6;}
17198 fi
17199 # Neutralize special characters interpreted by sed in replacement strings.
17200 case $configure_input in #(
17201 *\&* | *\|* | *\\* )
17202 ac_sed_conf_input=`$as_echo "$configure_input" |
17203 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17204 *) ac_sed_conf_input=$configure_input;;
17205 esac
17206
17207 case $ac_tag in
22e05272
JM
17208 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
48310492
RH
17210 esac
17211 ;;
17212 esac
17213
17214 ac_dir=`$as_dirname -- "$ac_file" ||
17215$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17216 X"$ac_file" : 'X\(//\)[^/]' \| \
17217 X"$ac_file" : 'X\(//\)$' \| \
17218 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17219$as_echo X"$ac_file" |
17220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17221 s//\1/
17222 q
17223 }
17224 /^X\(\/\/\)[^/].*/{
17225 s//\1/
17226 q
17227 }
17228 /^X\(\/\/\)$/{
17229 s//\1/
17230 q
17231 }
17232 /^X\(\/\).*/{
17233 s//\1/
17234 q
17235 }
17236 s/.*/./; q'`
17237 as_dir="$ac_dir"; as_fn_mkdir_p
17238 ac_builddir=.
17239
17240case "$ac_dir" in
17241.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17242*)
17243 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17244 # A ".." for each directory in $ac_dir_suffix.
17245 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17246 case $ac_top_builddir_sub in
17247 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17248 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17249 esac ;;
17250esac
17251ac_abs_top_builddir=$ac_pwd
17252ac_abs_builddir=$ac_pwd$ac_dir_suffix
17253# for backward compatibility:
17254ac_top_builddir=$ac_top_build_prefix
17255
17256case $srcdir in
17257 .) # We are building in place.
17258 ac_srcdir=.
17259 ac_top_srcdir=$ac_top_builddir_sub
17260 ac_abs_top_srcdir=$ac_pwd ;;
17261 [\\/]* | ?:[\\/]* ) # Absolute name.
17262 ac_srcdir=$srcdir$ac_dir_suffix;
17263 ac_top_srcdir=$srcdir
17264 ac_abs_top_srcdir=$srcdir ;;
17265 *) # Relative name.
17266 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17267 ac_top_srcdir=$ac_top_build_prefix$srcdir
17268 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17269esac
17270ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17271
17272
17273 case $ac_mode in
17274 :F)
17275 #
17276 # CONFIG_FILE
17277 #
17278
17279 case $INSTALL in
17280 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17281 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17282 esac
17283 ac_MKDIR_P=$MKDIR_P
17284 case $MKDIR_P in
17285 [\\/$]* | ?:[\\/]* ) ;;
17286 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17287 esac
17288_ACEOF
17289
17290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17291# If the template does not know about datarootdir, expand it.
17292# FIXME: This hack should be removed a few years after 2.60.
17293ac_datarootdir_hack=; ac_datarootdir_seen=
17294ac_sed_dataroot='
17295/datarootdir/ {
17296 p
17297 q
17298}
17299/@datadir@/p
17300/@docdir@/p
17301/@infodir@/p
17302/@localedir@/p
17303/@mandir@/p'
17304case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17305*datarootdir*) ac_datarootdir_seen=yes;;
17306*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17308$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17309_ACEOF
17310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17311 ac_datarootdir_hack='
17312 s&@datadir@&$datadir&g
17313 s&@docdir@&$docdir&g
17314 s&@infodir@&$infodir&g
17315 s&@localedir@&$localedir&g
17316 s&@mandir@&$mandir&g
17317 s&\\\${datarootdir}&$datarootdir&g' ;;
17318esac
17319_ACEOF
17320
17321# Neutralize VPATH when `$srcdir' = `.'.
17322# Shell code in configure.ac might set extrasub.
17323# FIXME: do we really want to maintain this feature?
17324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17325ac_sed_extra="$ac_vpsub
17326$extrasub
17327_ACEOF
17328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17329:t
17330/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17331s|@configure_input@|$ac_sed_conf_input|;t t
17332s&@top_builddir@&$ac_top_builddir_sub&;t t
17333s&@top_build_prefix@&$ac_top_build_prefix&;t t
17334s&@srcdir@&$ac_srcdir&;t t
17335s&@abs_srcdir@&$ac_abs_srcdir&;t t
17336s&@top_srcdir@&$ac_top_srcdir&;t t
17337s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17338s&@builddir@&$ac_builddir&;t t
17339s&@abs_builddir@&$ac_abs_builddir&;t t
17340s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17341s&@INSTALL@&$ac_INSTALL&;t t
17342s&@MKDIR_P@&$ac_MKDIR_P&;t t
17343$ac_datarootdir_hack
17344"
22e05272
JM
17345eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17346 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48310492
RH
17347
17348test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
17349 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17350 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17351 "$ac_tmp/out"`; test -z "$ac_out"; } &&
48310492 17352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17353which seems to be undefined. Please make sure it is defined" >&5
48310492 17354$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17355which seems to be undefined. Please make sure it is defined" >&2;}
48310492 17356
22e05272 17357 rm -f "$ac_tmp/stdin"
48310492 17358 case $ac_file in
22e05272
JM
17359 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17360 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
48310492 17361 esac \
22e05272 17362 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48310492
RH
17363 ;;
17364 :H)
17365 #
17366 # CONFIG_HEADER
17367 #
17368 if test x"$ac_file" != x-; then
17369 {
17370 $as_echo "/* $configure_input */" \
22e05272
JM
17371 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17372 } >"$ac_tmp/config.h" \
17373 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17374 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
48310492
RH
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17376$as_echo "$as_me: $ac_file is unchanged" >&6;}
17377 else
17378 rm -f "$ac_file"
22e05272
JM
17379 mv "$ac_tmp/config.h" "$ac_file" \
17380 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48310492
RH
17381 fi
17382 else
17383 $as_echo "/* $configure_input */" \
22e05272
JM
17384 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17385 || as_fn_error $? "could not create -" "$LINENO" 5
48310492
RH
17386 fi
17387# Compute "$ac_file"'s index in $config_headers.
17388_am_arg="$ac_file"
17389_am_stamp_count=1
17390for _am_header in $config_headers :; do
17391 case $_am_header in
17392 $_am_arg | $_am_arg:* )
17393 break ;;
17394 * )
17395 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17396 esac
17397done
17398echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17399$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17400 X"$_am_arg" : 'X\(//\)[^/]' \| \
17401 X"$_am_arg" : 'X\(//\)$' \| \
17402 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17403$as_echo X"$_am_arg" |
17404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17405 s//\1/
17406 q
17407 }
17408 /^X\(\/\/\)[^/].*/{
17409 s//\1/
17410 q
17411 }
17412 /^X\(\/\/\)$/{
17413 s//\1/
17414 q
17415 }
17416 /^X\(\/\).*/{
17417 s//\1/
17418 q
17419 }
17420 s/.*/./; q'`/stamp-h$_am_stamp_count
17421 ;;
17422
17423 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17424$as_echo "$as_me: executing $ac_file commands" >&6;}
17425 ;;
17426 esac
17427
17428
17429 case $ac_file$ac_mode in
17430 "default-1":C)
17431# Only add multilib support code if we just rebuilt the top-level
17432# Makefile.
17433case " $CONFIG_FILES " in
17434 *" Makefile "*)
17435 ac_file=Makefile . ${multi_basedir}/config-ml.in
17436 ;;
17437esac ;;
17438 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 17439 # Older Autoconf quotes --file arguments for eval, but not when files
48310492
RH
17440 # are listed without --file. Let's play safe and only enable the eval
17441 # if we detect the quoting.
17442 case $CONFIG_FILES in
17443 *\'*) eval set x "$CONFIG_FILES" ;;
17444 *) set x $CONFIG_FILES ;;
17445 esac
17446 shift
17447 for mf
17448 do
17449 # Strip MF so we end up with the name of the file.
17450 mf=`echo "$mf" | sed -e 's/:.*$//'`
17451 # Check whether this is an Automake generated Makefile or not.
22e05272 17452 # We used to match only the files named 'Makefile.in', but
48310492
RH
17453 # some people rename them; so instead we look at the file content.
17454 # Grep'ing the first line is not enough: some people post-process
17455 # each Makefile.in and add a new line on top of each file to say so.
17456 # Grep'ing the whole file is not good either: AIX grep has a line
17457 # limit of 2048, but all sed's we know have understand at least 4000.
17458 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17459 dirpart=`$as_dirname -- "$mf" ||
17460$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17461 X"$mf" : 'X\(//\)[^/]' \| \
17462 X"$mf" : 'X\(//\)$' \| \
17463 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17464$as_echo X"$mf" |
17465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17466 s//\1/
17467 q
17468 }
17469 /^X\(\/\/\)[^/].*/{
17470 s//\1/
17471 q
17472 }
17473 /^X\(\/\/\)$/{
17474 s//\1/
17475 q
17476 }
17477 /^X\(\/\).*/{
17478 s//\1/
17479 q
17480 }
17481 s/.*/./; q'`
17482 else
17483 continue
17484 fi
17485 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 17486 # from the Makefile without running 'make'.
48310492
RH
17487 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17488 test -z "$DEPDIR" && continue
17489 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 17490 test -z "$am__include" && continue
48310492 17491 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
48310492
RH
17492 # Find all dependency output files, they are included files with
17493 # $(DEPDIR) in their names. We invoke sed twice because it is the
17494 # simplest approach to changing $(DEPDIR) to its actual value in the
17495 # expansion.
17496 for file in `sed -n "
17497 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 17498 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
48310492
RH
17499 # Make sure the directory exists.
17500 test -f "$dirpart/$file" && continue
17501 fdir=`$as_dirname -- "$file" ||
17502$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17503 X"$file" : 'X\(//\)[^/]' \| \
17504 X"$file" : 'X\(//\)$' \| \
17505 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17506$as_echo X"$file" |
17507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17508 s//\1/
17509 q
17510 }
17511 /^X\(\/\/\)[^/].*/{
17512 s//\1/
17513 q
17514 }
17515 /^X\(\/\/\)$/{
17516 s//\1/
17517 q
17518 }
17519 /^X\(\/\).*/{
17520 s//\1/
17521 q
17522 }
17523 s/.*/./; q'`
17524 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17525 # echo "creating $dirpart/$file"
17526 echo '# dummy' > "$dirpart/$file"
17527 done
17528 done
17529}
17530 ;;
17531 "libtool":C)
17532
17533 # See if we are running on zsh, and set the options which allow our
17534 # commands through without removal of \ escapes.
17535 if test -n "${ZSH_VERSION+set}" ; then
17536 setopt NO_GLOB_SUBST
17537 fi
17538
17539 cfgfile="${ofile}T"
17540 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17541 $RM "$cfgfile"
17542
17543 cat <<_LT_EOF >> "$cfgfile"
17544#! $SHELL
17545
17546# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17547# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17548# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17549# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17550#
17551# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17552# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17553# Written by Gordon Matzigkeit, 1996
17554#
17555# This file is part of GNU Libtool.
17556#
17557# GNU Libtool is free software; you can redistribute it and/or
17558# modify it under the terms of the GNU General Public License as
17559# published by the Free Software Foundation; either version 2 of
17560# the License, or (at your option) any later version.
17561#
17562# As a special exception to the GNU General Public License,
17563# if you distribute this file as part of a program or library that
17564# is built using GNU Libtool, you may include this file under the
17565# same distribution terms that you use for the rest of that program.
17566#
17567# GNU Libtool is distributed in the hope that it will be useful,
17568# but WITHOUT ANY WARRANTY; without even the implied warranty of
17569# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17570# GNU General Public License for more details.
17571#
17572# You should have received a copy of the GNU General Public License
17573# along with GNU Libtool; see the file COPYING. If not, a copy
17574# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17575# obtained by writing to the Free Software Foundation, Inc.,
17576# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17577
17578
17579# The names of the tagged configurations supported by this script.
17580available_tags=""
17581
17582# ### BEGIN LIBTOOL CONFIG
17583
17584# Which release of libtool.m4 was used?
17585macro_version=$macro_version
17586macro_revision=$macro_revision
17587
17588# Whether or not to build shared libraries.
17589build_libtool_libs=$enable_shared
17590
17591# Whether or not to build static libraries.
17592build_old_libs=$enable_static
17593
17594# What type of objects to build.
17595pic_mode=$pic_mode
17596
17597# Whether or not to optimize for fast installation.
17598fast_install=$enable_fast_install
17599
17600# Shell to use when invoking shell scripts.
17601SHELL=$lt_SHELL
17602
17603# An echo program that protects backslashes.
17604ECHO=$lt_ECHO
17605
17606# The host system.
17607host_alias=$host_alias
17608host=$host
17609host_os=$host_os
17610
17611# The build system.
17612build_alias=$build_alias
17613build=$build
17614build_os=$build_os
17615
17616# A sed program that does not truncate output.
17617SED=$lt_SED
17618
17619# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17620Xsed="\$SED -e 1s/^X//"
17621
17622# A grep program that handles long lines.
17623GREP=$lt_GREP
17624
17625# An ERE matcher.
17626EGREP=$lt_EGREP
17627
17628# A literal string matcher.
17629FGREP=$lt_FGREP
17630
17631# A BSD- or MS-compatible name lister.
17632NM=$lt_NM
17633
17634# Whether we need soft or hard links.
17635LN_S=$lt_LN_S
17636
17637# What is the maximum length of a command?
17638max_cmd_len=$max_cmd_len
17639
17640# Object file suffix (normally "o").
17641objext=$ac_objext
17642
17643# Executable file suffix (normally "").
17644exeext=$exeext
17645
17646# whether the shell understands "unset".
17647lt_unset=$lt_unset
17648
17649# turn spaces into newlines.
17650SP2NL=$lt_lt_SP2NL
17651
17652# turn newlines into spaces.
17653NL2SP=$lt_lt_NL2SP
17654
17655# An object symbol dumper.
17656OBJDUMP=$lt_OBJDUMP
17657
17658# Method to check whether dependent libraries are shared objects.
17659deplibs_check_method=$lt_deplibs_check_method
17660
17661# Command to use when deplibs_check_method == "file_magic".
17662file_magic_cmd=$lt_file_magic_cmd
17663
17664# The archiver.
17665AR=$lt_AR
17666AR_FLAGS=$lt_AR_FLAGS
17667
17668# A symbol stripping program.
17669STRIP=$lt_STRIP
17670
17671# Commands used to install an old-style archive.
17672RANLIB=$lt_RANLIB
17673old_postinstall_cmds=$lt_old_postinstall_cmds
17674old_postuninstall_cmds=$lt_old_postuninstall_cmds
17675
17676# Whether to use a lock for old archive extraction.
17677lock_old_archive_extraction=$lock_old_archive_extraction
17678
17679# A C compiler.
17680LTCC=$lt_CC
17681
17682# LTCC compiler flags.
17683LTCFLAGS=$lt_CFLAGS
17684
17685# Take the output of nm and produce a listing of raw symbols and C names.
17686global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17687
17688# Transform the output of nm in a proper C declaration.
17689global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17690
17691# Transform the output of nm in a C name address pair.
17692global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17693
17694# Transform the output of nm in a C name address pair when lib prefix is needed.
17695global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17696
17697# The name of the directory that contains temporary libtool files.
17698objdir=$objdir
17699
17700# Used to examine libraries when file_magic_cmd begins with "file".
17701MAGIC_CMD=$MAGIC_CMD
17702
17703# Must we lock files when doing compilation?
17704need_locks=$lt_need_locks
17705
17706# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17707DSYMUTIL=$lt_DSYMUTIL
17708
17709# Tool to change global to local symbols on Mac OS X.
17710NMEDIT=$lt_NMEDIT
17711
17712# Tool to manipulate fat objects and archives on Mac OS X.
17713LIPO=$lt_LIPO
17714
17715# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17716OTOOL=$lt_OTOOL
17717
17718# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17719OTOOL64=$lt_OTOOL64
17720
17721# Old archive suffix (normally "a").
17722libext=$libext
17723
17724# Shared library suffix (normally ".so").
17725shrext_cmds=$lt_shrext_cmds
17726
17727# The commands to extract the exported symbol list from a shared archive.
17728extract_expsyms_cmds=$lt_extract_expsyms_cmds
17729
17730# Variables whose values should be saved in libtool wrapper scripts and
17731# restored at link time.
17732variables_saved_for_relink=$lt_variables_saved_for_relink
17733
17734# Do we need the "lib" prefix for modules?
17735need_lib_prefix=$need_lib_prefix
17736
17737# Do we need a version for libraries?
17738need_version=$need_version
17739
17740# Library versioning type.
17741version_type=$version_type
17742
17743# Shared library runtime path variable.
17744runpath_var=$runpath_var
17745
17746# Shared library path variable.
17747shlibpath_var=$shlibpath_var
17748
17749# Is shlibpath searched before the hard-coded library search path?
17750shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17751
17752# Format of library name prefix.
17753libname_spec=$lt_libname_spec
17754
17755# List of archive names. First name is the real one, the rest are links.
17756# The last name is the one that the linker finds with -lNAME
17757library_names_spec=$lt_library_names_spec
17758
17759# The coded name of the library, if different from the real name.
17760soname_spec=$lt_soname_spec
17761
17762# Permission mode override for installation of shared libraries.
17763install_override_mode=$lt_install_override_mode
17764
17765# Command to use after installation of a shared archive.
17766postinstall_cmds=$lt_postinstall_cmds
17767
17768# Command to use after uninstallation of a shared archive.
17769postuninstall_cmds=$lt_postuninstall_cmds
17770
17771# Commands used to finish a libtool library installation in a directory.
17772finish_cmds=$lt_finish_cmds
17773
17774# As "finish_cmds", except a single script fragment to be evaled but
17775# not shown.
17776finish_eval=$lt_finish_eval
17777
17778# Whether we should hardcode library paths into libraries.
17779hardcode_into_libs=$hardcode_into_libs
17780
17781# Compile-time system search path for libraries.
17782sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17783
17784# Run-time system search path for libraries.
17785sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17786
17787# Whether dlopen is supported.
17788dlopen_support=$enable_dlopen
17789
17790# Whether dlopen of programs is supported.
17791dlopen_self=$enable_dlopen_self
17792
17793# Whether dlopen of statically linked programs is supported.
17794dlopen_self_static=$enable_dlopen_self_static
17795
17796# Commands to strip libraries.
17797old_striplib=$lt_old_striplib
17798striplib=$lt_striplib
17799
17800
17801# The linker used to build libraries.
17802LD=$lt_LD
17803
17804# How to create reloadable object files.
17805reload_flag=$lt_reload_flag
17806reload_cmds=$lt_reload_cmds
17807
17808# Commands used to build an old-style archive.
17809old_archive_cmds=$lt_old_archive_cmds
17810
17811# A language specific compiler.
17812CC=$lt_compiler
17813
17814# Is the compiler the GNU compiler?
17815with_gcc=$GCC
17816
17817# Compiler flag to turn off builtin functions.
17818no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17819
17820# How to pass a linker flag through the compiler.
17821wl=$lt_lt_prog_compiler_wl
17822
17823# Additional compiler flags for building library objects.
17824pic_flag=$lt_lt_prog_compiler_pic
17825
17826# Compiler flag to prevent dynamic linking.
17827link_static_flag=$lt_lt_prog_compiler_static
17828
17829# Does compiler simultaneously support -c and -o options?
17830compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17831
17832# Whether or not to add -lc for building shared libraries.
17833build_libtool_need_lc=$archive_cmds_need_lc
17834
17835# Whether or not to disallow shared libs when runtime libs are static.
17836allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17837
17838# Compiler flag to allow reflexive dlopens.
17839export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17840
17841# Compiler flag to generate shared objects directly from archives.
17842whole_archive_flag_spec=$lt_whole_archive_flag_spec
17843
17844# Whether the compiler copes with passing no objects directly.
17845compiler_needs_object=$lt_compiler_needs_object
17846
17847# Create an old-style archive from a shared archive.
17848old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17849
17850# Create a temporary old-style archive to link instead of a shared archive.
17851old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17852
17853# Commands used to build a shared archive.
17854archive_cmds=$lt_archive_cmds
17855archive_expsym_cmds=$lt_archive_expsym_cmds
17856
17857# Commands used to build a loadable module if different from building
17858# a shared archive.
17859module_cmds=$lt_module_cmds
17860module_expsym_cmds=$lt_module_expsym_cmds
17861
17862# Whether we are building with GNU ld or not.
17863with_gnu_ld=$lt_with_gnu_ld
17864
17865# Flag that allows shared libraries with undefined symbols to be built.
17866allow_undefined_flag=$lt_allow_undefined_flag
17867
17868# Flag that enforces no undefined symbols.
17869no_undefined_flag=$lt_no_undefined_flag
17870
17871# Flag to hardcode \$libdir into a binary during linking.
17872# This must work even if \$libdir does not exist
17873hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17874
17875# If ld is used when linking, flag to hardcode \$libdir into a binary
17876# during linking. This must work even if \$libdir does not exist.
17877hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17878
17879# Whether we need a single "-rpath" flag with a separated argument.
17880hardcode_libdir_separator=$lt_hardcode_libdir_separator
17881
17882# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17883# DIR into the resulting binary.
17884hardcode_direct=$hardcode_direct
17885
17886# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17887# DIR into the resulting binary and the resulting library dependency is
17888# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17889# library is relocated.
17890hardcode_direct_absolute=$hardcode_direct_absolute
17891
17892# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17893# into the resulting binary.
17894hardcode_minus_L=$hardcode_minus_L
17895
17896# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17897# into the resulting binary.
17898hardcode_shlibpath_var=$hardcode_shlibpath_var
17899
17900# Set to "yes" if building a shared library automatically hardcodes DIR
17901# into the library and all subsequent libraries and executables linked
17902# against it.
17903hardcode_automatic=$hardcode_automatic
17904
17905# Set to yes if linker adds runtime paths of dependent libraries
17906# to runtime path list.
17907inherit_rpath=$inherit_rpath
17908
17909# Whether libtool must link a program against all its dependency libraries.
17910link_all_deplibs=$link_all_deplibs
17911
17912# Fix the shell variable \$srcfile for the compiler.
17913fix_srcfile_path=$lt_fix_srcfile_path
17914
17915# Set to "yes" if exported symbols are required.
17916always_export_symbols=$always_export_symbols
17917
17918# The commands to list exported symbols.
17919export_symbols_cmds=$lt_export_symbols_cmds
17920
17921# Symbols that should not be listed in the preloaded symbols.
17922exclude_expsyms=$lt_exclude_expsyms
17923
17924# Symbols that must always be exported.
17925include_expsyms=$lt_include_expsyms
17926
17927# Commands necessary for linking programs (against libraries) with templates.
17928prelink_cmds=$lt_prelink_cmds
17929
17930# Specify filename containing input files.
17931file_list_spec=$lt_file_list_spec
17932
17933# How to hardcode a shared library path into an executable.
17934hardcode_action=$hardcode_action
17935
17936# ### END LIBTOOL CONFIG
17937
17938_LT_EOF
17939
17940 case $host_os in
17941 aix3*)
17942 cat <<\_LT_EOF >> "$cfgfile"
17943# AIX sometimes has problems with the GCC collect2 program. For some
17944# reason, if we set the COLLECT_NAMES environment variable, the problems
17945# vanish in a puff of smoke.
17946if test "X${COLLECT_NAMES+set}" != Xset; then
17947 COLLECT_NAMES=
17948 export COLLECT_NAMES
17949fi
17950_LT_EOF
17951 ;;
17952 esac
17953
17954
17955ltmain="$ac_aux_dir/ltmain.sh"
17956
17957
17958 # We use sed instead of cat because bash on DJGPP gets confused if
17959 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17960 # text mode, it properly converts lines to CR/LF. This bash problem
17961 # is reportedly fixed, but why not run on old versions too?
17962 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17963 || (rm -f "$cfgfile"; exit 1)
17964
17965 case $xsi_shell in
17966 yes)
17967 cat << \_LT_EOF >> "$cfgfile"
17968
17969# func_dirname file append nondir_replacement
17970# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17971# otherwise set result to NONDIR_REPLACEMENT.
17972func_dirname ()
17973{
17974 case ${1} in
17975 */*) func_dirname_result="${1%/*}${2}" ;;
17976 * ) func_dirname_result="${3}" ;;
17977 esac
17978}
17979
17980# func_basename file
17981func_basename ()
17982{
17983 func_basename_result="${1##*/}"
17984}
17985
17986# func_dirname_and_basename file append nondir_replacement
17987# perform func_basename and func_dirname in a single function
17988# call:
17989# dirname: Compute the dirname of FILE. If nonempty,
17990# add APPEND to the result, otherwise set result
17991# to NONDIR_REPLACEMENT.
17992# value returned in "$func_dirname_result"
17993# basename: Compute filename of FILE.
17994# value retuned in "$func_basename_result"
17995# Implementation must be kept synchronized with func_dirname
17996# and func_basename. For efficiency, we do not delegate to
17997# those functions but instead duplicate the functionality here.
17998func_dirname_and_basename ()
17999{
18000 case ${1} in
18001 */*) func_dirname_result="${1%/*}${2}" ;;
18002 * ) func_dirname_result="${3}" ;;
18003 esac
18004 func_basename_result="${1##*/}"
18005}
18006
18007# func_stripname prefix suffix name
18008# strip PREFIX and SUFFIX off of NAME.
18009# PREFIX and SUFFIX must not contain globbing or regex special
18010# characters, hashes, percent signs, but SUFFIX may contain a leading
18011# dot (in which case that matches only a dot).
18012func_stripname ()
18013{
18014 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18015 # positional parameters, so assign one to ordinary parameter first.
18016 func_stripname_result=${3}
18017 func_stripname_result=${func_stripname_result#"${1}"}
18018 func_stripname_result=${func_stripname_result%"${2}"}
18019}
18020
18021# func_opt_split
18022func_opt_split ()
18023{
18024 func_opt_split_opt=${1%%=*}
18025 func_opt_split_arg=${1#*=}
18026}
18027
18028# func_lo2o object
18029func_lo2o ()
18030{
18031 case ${1} in
18032 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18033 *) func_lo2o_result=${1} ;;
18034 esac
18035}
18036
18037# func_xform libobj-or-source
18038func_xform ()
18039{
18040 func_xform_result=${1%.*}.lo
18041}
18042
18043# func_arith arithmetic-term...
18044func_arith ()
18045{
18046 func_arith_result=$(( $* ))
18047}
18048
18049# func_len string
18050# STRING may not start with a hyphen.
18051func_len ()
18052{
18053 func_len_result=${#1}
18054}
18055
18056_LT_EOF
18057 ;;
18058 *) # Bourne compatible functions.
18059 cat << \_LT_EOF >> "$cfgfile"
18060
18061# func_dirname file append nondir_replacement
18062# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18063# otherwise set result to NONDIR_REPLACEMENT.
18064func_dirname ()
18065{
18066 # Extract subdirectory from the argument.
18067 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18068 if test "X$func_dirname_result" = "X${1}"; then
18069 func_dirname_result="${3}"
18070 else
18071 func_dirname_result="$func_dirname_result${2}"
18072 fi
18073}
18074
18075# func_basename file
18076func_basename ()
18077{
18078 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18079}
18080
18081
18082# func_stripname prefix suffix name
18083# strip PREFIX and SUFFIX off of NAME.
18084# PREFIX and SUFFIX must not contain globbing or regex special
18085# characters, hashes, percent signs, but SUFFIX may contain a leading
18086# dot (in which case that matches only a dot).
18087# func_strip_suffix prefix name
18088func_stripname ()
18089{
18090 case ${2} in
18091 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18092 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18093 esac
18094}
18095
18096# sed scripts:
18097my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18098my_sed_long_arg='1s/^-[^=]*=//'
18099
18100# func_opt_split
18101func_opt_split ()
18102{
18103 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18104 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18105}
18106
18107# func_lo2o object
18108func_lo2o ()
18109{
18110 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18111}
18112
18113# func_xform libobj-or-source
18114func_xform ()
18115{
18116 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18117}
18118
18119# func_arith arithmetic-term...
18120func_arith ()
18121{
18122 func_arith_result=`expr "$@"`
18123}
18124
18125# func_len string
18126# STRING may not start with a hyphen.
18127func_len ()
18128{
18129 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18130}
18131
18132_LT_EOF
18133esac
18134
18135case $lt_shell_append in
18136 yes)
18137 cat << \_LT_EOF >> "$cfgfile"
18138
18139# func_append var value
18140# Append VALUE to the end of shell variable VAR.
18141func_append ()
18142{
18143 eval "$1+=\$2"
18144}
18145_LT_EOF
18146 ;;
18147 *)
18148 cat << \_LT_EOF >> "$cfgfile"
18149
18150# func_append var value
18151# Append VALUE to the end of shell variable VAR.
18152func_append ()
18153{
18154 eval "$1=\$$1\$2"
18155}
18156
18157_LT_EOF
18158 ;;
18159 esac
18160
18161
18162 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18163 || (rm -f "$cfgfile"; exit 1)
18164
18165 mv -f "$cfgfile" "$ofile" ||
18166 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18167 chmod +x "$ofile"
18168
18169 ;;
18170 "gstdint.h":C)
18171if test "$GCC" = yes; then
18172 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18173else
18174 echo "/* generated for $CC */" > tmp-stdint.h
18175fi
18176
18177sed 's/^ *//' >> tmp-stdint.h <<EOF
18178
18179 #ifndef GCC_GENERATED_STDINT_H
18180 #define GCC_GENERATED_STDINT_H 1
18181
18182 #include <sys/types.h>
18183EOF
18184
18185if test "$acx_cv_header_stdint" != stdint.h; then
18186 echo "#include <stddef.h>" >> tmp-stdint.h
18187fi
18188if test "$acx_cv_header_stdint" != stddef.h; then
18189 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18190fi
18191
18192sed 's/^ *//' >> tmp-stdint.h <<EOF
18193 /* glibc uses these symbols as guards to prevent redefinitions. */
18194 #ifdef __int8_t_defined
18195 #define _INT8_T
18196 #define _INT16_T
18197 #define _INT32_T
18198 #endif
18199 #ifdef __uint32_t_defined
18200 #define _UINT32_T
18201 #endif
18202
18203EOF
18204
18205# ----------------- done header, emit basic int types -------------
18206if test "$acx_cv_header_stdint" = stddef.h; then
18207 sed 's/^ *//' >> tmp-stdint.h <<EOF
18208
18209 #ifndef _UINT8_T
18210 #define _UINT8_T
18211 #ifndef __uint8_t_defined
18212 #define __uint8_t_defined
18213 #ifndef uint8_t
18214 typedef unsigned $acx_cv_type_int8_t uint8_t;
18215 #endif
18216 #endif
18217 #endif
18218
18219 #ifndef _UINT16_T
18220 #define _UINT16_T
18221 #ifndef __uint16_t_defined
18222 #define __uint16_t_defined
18223 #ifndef uint16_t
18224 typedef unsigned $acx_cv_type_int16_t uint16_t;
18225 #endif
18226 #endif
18227 #endif
18228
18229 #ifndef _UINT32_T
18230 #define _UINT32_T
18231 #ifndef __uint32_t_defined
18232 #define __uint32_t_defined
18233 #ifndef uint32_t
18234 typedef unsigned $acx_cv_type_int32_t uint32_t;
18235 #endif
18236 #endif
18237 #endif
18238
18239 #ifndef _INT8_T
18240 #define _INT8_T
18241 #ifndef __int8_t_defined
18242 #define __int8_t_defined
18243 #ifndef int8_t
18244 typedef $acx_cv_type_int8_t int8_t;
18245 #endif
18246 #endif
18247 #endif
18248
18249 #ifndef _INT16_T
18250 #define _INT16_T
18251 #ifndef __int16_t_defined
18252 #define __int16_t_defined
18253 #ifndef int16_t
18254 typedef $acx_cv_type_int16_t int16_t;
18255 #endif
18256 #endif
18257 #endif
18258
18259 #ifndef _INT32_T
18260 #define _INT32_T
18261 #ifndef __int32_t_defined
18262 #define __int32_t_defined
18263 #ifndef int32_t
18264 typedef $acx_cv_type_int32_t int32_t;
18265 #endif
18266 #endif
18267 #endif
18268EOF
18269elif test "$ac_cv_type_u_int32_t" = yes; then
18270 sed 's/^ *//' >> tmp-stdint.h <<EOF
18271
18272 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18273 #ifndef _INT8_T
18274 #define _INT8_T
18275 #endif
18276 #ifndef _INT16_T
18277 #define _INT16_T
18278 #endif
18279 #ifndef _INT32_T
18280 #define _INT32_T
18281 #endif
18282
18283 #ifndef _UINT8_T
18284 #define _UINT8_T
18285 #ifndef __uint8_t_defined
18286 #define __uint8_t_defined
18287 #ifndef uint8_t
18288 typedef u_int8_t uint8_t;
18289 #endif
18290 #endif
18291 #endif
18292
18293 #ifndef _UINT16_T
18294 #define _UINT16_T
18295 #ifndef __uint16_t_defined
18296 #define __uint16_t_defined
18297 #ifndef uint16_t
18298 typedef u_int16_t uint16_t;
18299 #endif
18300 #endif
18301 #endif
18302
18303 #ifndef _UINT32_T
18304 #define _UINT32_T
18305 #ifndef __uint32_t_defined
18306 #define __uint32_t_defined
18307 #ifndef uint32_t
18308 typedef u_int32_t uint32_t;
18309 #endif
18310 #endif
18311 #endif
18312EOF
18313else
18314 sed 's/^ *//' >> tmp-stdint.h <<EOF
18315
18316 /* Some systems have guard macros to prevent redefinitions, define them. */
18317 #ifndef _INT8_T
18318 #define _INT8_T
18319 #endif
18320 #ifndef _INT16_T
18321 #define _INT16_T
18322 #endif
18323 #ifndef _INT32_T
18324 #define _INT32_T
18325 #endif
18326 #ifndef _UINT8_T
18327 #define _UINT8_T
18328 #endif
18329 #ifndef _UINT16_T
18330 #define _UINT16_T
18331 #endif
18332 #ifndef _UINT32_T
18333 #define _UINT32_T
18334 #endif
18335EOF
18336fi
18337
18338# ------------- done basic int types, emit int64_t types ------------
18339if test "$ac_cv_type_uint64_t" = yes; then
18340 sed 's/^ *//' >> tmp-stdint.h <<EOF
18341
18342 /* system headers have good uint64_t and int64_t */
18343 #ifndef _INT64_T
18344 #define _INT64_T
18345 #endif
18346 #ifndef _UINT64_T
18347 #define _UINT64_T
18348 #endif
18349EOF
18350elif test "$ac_cv_type_u_int64_t" = yes; then
18351 sed 's/^ *//' >> tmp-stdint.h <<EOF
18352
18353 /* system headers have an u_int64_t (and int64_t) */
18354 #ifndef _INT64_T
18355 #define _INT64_T
18356 #endif
18357 #ifndef _UINT64_T
18358 #define _UINT64_T
18359 #ifndef __uint64_t_defined
18360 #define __uint64_t_defined
18361 #ifndef uint64_t
18362 typedef u_int64_t uint64_t;
18363 #endif
18364 #endif
18365 #endif
18366EOF
18367elif test -n "$acx_cv_type_int64_t"; then
18368 sed 's/^ *//' >> tmp-stdint.h <<EOF
18369
18370 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18371 #ifndef _INT64_T
18372 #define _INT64_T
18373 #ifndef int64_t
18374 typedef $acx_cv_type_int64_t int64_t;
18375 #endif
18376 #endif
18377 #ifndef _UINT64_T
18378 #define _UINT64_T
18379 #ifndef __uint64_t_defined
18380 #define __uint64_t_defined
18381 #ifndef uint64_t
18382 typedef unsigned $acx_cv_type_int64_t uint64_t;
18383 #endif
18384 #endif
18385 #endif
18386EOF
18387else
18388 sed 's/^ *//' >> tmp-stdint.h <<EOF
18389
18390 /* some common heuristics for int64_t, using compiler-specific tests */
18391 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
18392 #ifndef _INT64_T
18393 #define _INT64_T
18394 #ifndef __int64_t_defined
18395 #ifndef int64_t
18396 typedef long long int64_t;
18397 #endif
18398 #endif
18399 #endif
18400 #ifndef _UINT64_T
18401 #define _UINT64_T
18402 #ifndef uint64_t
18403 typedef unsigned long long uint64_t;
18404 #endif
18405 #endif
18406
18407 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
18408 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
18409 does not implement __extension__. But that compiler doesn't define
18410 __GNUC_MINOR__. */
18411 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
18412 # define __extension__
18413 # endif
18414
18415 # ifndef _INT64_T
18416 # define _INT64_T
18417 # ifndef int64_t
18418 __extension__ typedef long long int64_t;
18419 # endif
18420 # endif
18421 # ifndef _UINT64_T
18422 # define _UINT64_T
18423 # ifndef uint64_t
18424 __extension__ typedef unsigned long long uint64_t;
18425 # endif
18426 # endif
18427
18428 #elif !defined __STRICT_ANSI__
18429 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18430
18431 # ifndef _INT64_T
18432 # define _INT64_T
18433 # ifndef int64_t
18434 typedef __int64 int64_t;
18435 # endif
18436 # endif
18437 # ifndef _UINT64_T
18438 # define _UINT64_T
18439 # ifndef uint64_t
18440 typedef unsigned __int64 uint64_t;
18441 # endif
18442 # endif
18443 # endif /* compiler */
18444
18445 #endif /* ANSI version */
18446EOF
18447fi
18448
18449# ------------- done int64_t types, emit intptr types ------------
18450if test "$ac_cv_type_uintptr_t" != yes; then
18451 sed 's/^ *//' >> tmp-stdint.h <<EOF
18452
18453 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
18454 #ifndef __uintptr_t_defined
18455 #ifndef uintptr_t
18456 typedef u$acx_cv_type_intptr_t uintptr_t;
18457 #endif
18458 #endif
18459 #ifndef __intptr_t_defined
18460 #ifndef intptr_t
18461 typedef $acx_cv_type_intptr_t intptr_t;
18462 #endif
18463 #endif
18464EOF
18465fi
18466
18467# ------------- done intptr types, emit int_least types ------------
18468if test "$ac_cv_type_int_least32_t" != yes; then
18469 sed 's/^ *//' >> tmp-stdint.h <<EOF
18470
18471 /* Define int_least types */
18472 typedef int8_t int_least8_t;
18473 typedef int16_t int_least16_t;
18474 typedef int32_t int_least32_t;
18475 #ifdef _INT64_T
18476 typedef int64_t int_least64_t;
18477 #endif
18478
18479 typedef uint8_t uint_least8_t;
18480 typedef uint16_t uint_least16_t;
18481 typedef uint32_t uint_least32_t;
18482 #ifdef _UINT64_T
18483 typedef uint64_t uint_least64_t;
18484 #endif
18485EOF
18486fi
18487
18488# ------------- done intptr types, emit int_fast types ------------
18489if test "$ac_cv_type_int_fast32_t" != yes; then
18490 sed 's/^ *//' >> tmp-stdint.h <<EOF
18491
18492 /* Define int_fast types. short is often slow */
18493 typedef int8_t int_fast8_t;
18494 typedef int int_fast16_t;
18495 typedef int32_t int_fast32_t;
18496 #ifdef _INT64_T
18497 typedef int64_t int_fast64_t;
18498 #endif
18499
18500 typedef uint8_t uint_fast8_t;
18501 typedef unsigned int uint_fast16_t;
18502 typedef uint32_t uint_fast32_t;
18503 #ifdef _UINT64_T
18504 typedef uint64_t uint_fast64_t;
18505 #endif
18506EOF
18507fi
18508
18509if test "$ac_cv_type_uintmax_t" != yes; then
18510 sed 's/^ *//' >> tmp-stdint.h <<EOF
18511
18512 /* Define intmax based on what we found */
18513 #ifndef intmax_t
18514 #ifdef _INT64_T
18515 typedef int64_t intmax_t;
18516 #else
18517 typedef long intmax_t;
18518 #endif
18519 #endif
18520 #ifndef uintmax_t
18521 #ifdef _UINT64_T
18522 typedef uint64_t uintmax_t;
18523 #else
18524 typedef unsigned long uintmax_t;
18525 #endif
18526 #endif
18527EOF
18528fi
18529
18530sed 's/^ *//' >> tmp-stdint.h <<EOF
18531
18532 #endif /* GCC_GENERATED_STDINT_H */
18533EOF
18534
18535if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
18536 rm -f tmp-stdint.h
18537else
18538 mv -f tmp-stdint.h gstdint.h
18539fi
18540
18541 ;;
18542
18543 esac
18544done # for ac_tag
18545
18546
18547as_fn_exit 0
18548_ACEOF
18549ac_clean_files=$ac_clean_files_save
18550
18551test $ac_write_fail = 0 ||
22e05272 18552 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
48310492
RH
18553
18554
18555# configure is writing to config.log, and then calls config.status.
18556# config.status does its own redirection, appending to config.log.
18557# Unfortunately, on DOS this fails, as config.log is still kept open
18558# by configure, so config.status won't be able to write to it; its
18559# output is simply discarded. So we exec the FD to /dev/null,
18560# effectively closing config.log, so it can be properly (re)opened and
18561# appended to by config.status. When coming back to configure, we
18562# need to make the FD available again.
18563if test "$no_create" != yes; then
18564 ac_cs_success=:
18565 ac_config_status_args=
18566 test "$silent" = yes &&
18567 ac_config_status_args="$ac_config_status_args --quiet"
18568 exec 5>/dev/null
18569 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18570 exec 5>>config.log
18571 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18572 # would make configure fail if this is the last instruction.
22e05272 18573 $ac_cs_success || as_fn_exit 1
48310492
RH
18574fi
18575if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18577$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18578fi
18579