]> git.ipfire.org Git - thirdparty/gcc.git/blob - libatomic/configure
8f9a5f18c65a432f6356ef6ac94b7dffa8d17bf0
[thirdparty/gcc.git] / libatomic / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Atomic Library 1.0.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
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'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
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.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='GNU Atomic Library'
558 PACKAGE_TARNAME='libatomic'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU Atomic Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libatomic/'
563
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
599
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 ARCH_X86_64_FALSE
605 ARCH_X86_64_TRUE
606 ARCH_I386_FALSE
607 ARCH_I386_TRUE
608 ARCH_ARM_LINUX_FALSE
609 ARCH_ARM_LINUX_TRUE
610 HAVE_IFUNC_FALSE
611 HAVE_IFUNC_TRUE
612 SIZES
613 XLDFLAGS
614 XCFLAGS
615 config_path
616 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
617 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
618 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
619 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
620 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
621 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
622 OPT_LDFLAGS
623 SECTION_LDFLAGS
624 libtool_VERSION
625 MAINT
626 MAINTAINER_MODE_FALSE
627 MAINTAINER_MODE_TRUE
628 enable_static
629 enable_shared
630 lt_host_flags
631 CPP
632 OTOOL64
633 OTOOL
634 LIPO
635 NMEDIT
636 DSYMUTIL
637 OBJDUMP
638 LN_S
639 ac_ct_DUMPBIN
640 DUMPBIN
641 LD
642 FGREP
643 EGREP
644 GREP
645 SED
646 LIBTOOL
647 PERL
648 RANLIB
649 NM
650 AR
651 am__fastdepCCAS_FALSE
652 am__fastdepCCAS_TRUE
653 CCASDEPMODE
654 CCASFLAGS
655 CCAS
656 am__fastdepCC_FALSE
657 am__fastdepCC_TRUE
658 CCDEPMODE
659 am__nodep
660 AMDEPBACKSLASH
661 AMDEP_FALSE
662 AMDEP_TRUE
663 am__quote
664 am__include
665 DEPDIR
666 OBJEXT
667 EXEEXT
668 ac_ct_CC
669 CPPFLAGS
670 LDFLAGS
671 CFLAGS
672 CC
673 toolexeclibdir
674 toolexecdir
675 multi_basedir
676 am__untar
677 am__tar
678 AMTAR
679 am__leading_dot
680 SET_MAKE
681 AWK
682 mkdir_p
683 MKDIR_P
684 INSTALL_STRIP_PROGRAM
685 STRIP
686 install_sh
687 MAKEINFO
688 AUTOHEADER
689 AUTOMAKE
690 AUTOCONF
691 ACLOCAL
692 VERSION
693 PACKAGE
694 CYGPATH_W
695 am__isrc
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 target_os
700 target_vendor
701 target_cpu
702 target
703 host_os
704 host_vendor
705 host_cpu
706 host
707 build_os
708 build_vendor
709 build_cpu
710 build
711 GENINSRC_FALSE
712 GENINSRC_TRUE
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 enable_version_specific_runtime_libs
755 enable_generated_files_in_srcdir
756 enable_multilib
757 enable_dependency_tracking
758 enable_shared
759 enable_static
760 with_pic
761 enable_fast_install
762 with_gnu_ld
763 enable_libtool_lock
764 enable_maintainer_mode
765 enable_symvers
766 '
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
770 CPP
771 CPPFLAGS'
772
773
774 # Initialize some variables set by options.
775 ac_init_help=
776 ac_init_version=false
777 ac_unrecognized_opts=
778 ac_unrecognized_sep=
779 # The variables have the same names as the options, with
780 # dashes changed to underlines.
781 cache_file=/dev/null
782 exec_prefix=NONE
783 no_create=
784 no_recursion=
785 prefix=NONE
786 program_prefix=NONE
787 program_suffix=NONE
788 program_transform_name=s,x,x,
789 silent=
790 site=
791 srcdir=
792 verbose=
793 x_includes=NONE
794 x_libraries=NONE
795
796 # Installation directory options.
797 # These are left unexpanded so users can "make install exec_prefix=/foo"
798 # and all the variables that are supposed to be based on exec_prefix
799 # by default will actually change.
800 # Use braces instead of parens because sh, perl, etc. also accept them.
801 # (The list follows the same order as the GNU Coding Standards.)
802 bindir='${exec_prefix}/bin'
803 sbindir='${exec_prefix}/sbin'
804 libexecdir='${exec_prefix}/libexec'
805 datarootdir='${prefix}/share'
806 datadir='${datarootdir}'
807 sysconfdir='${prefix}/etc'
808 sharedstatedir='${prefix}/com'
809 localstatedir='${prefix}/var'
810 includedir='${prefix}/include'
811 oldincludedir='/usr/include'
812 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
813 infodir='${datarootdir}/info'
814 htmldir='${docdir}'
815 dvidir='${docdir}'
816 pdfdir='${docdir}'
817 psdir='${docdir}'
818 libdir='${exec_prefix}/lib'
819 localedir='${datarootdir}/locale'
820 mandir='${datarootdir}/man'
821
822 ac_prev=
823 ac_dashdash=
824 for ac_option
825 do
826 # If the previous option needs an argument, assign it.
827 if test -n "$ac_prev"; then
828 eval $ac_prev=\$ac_option
829 ac_prev=
830 continue
831 fi
832
833 case $ac_option in
834 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
835 *) ac_optarg=yes ;;
836 esac
837
838 # Accept the important Cygnus configure options, so we can diagnose typos.
839
840 case $ac_dashdash$ac_option in
841 --)
842 ac_dashdash=yes ;;
843
844 -bindir | --bindir | --bindi | --bind | --bin | --bi)
845 ac_prev=bindir ;;
846 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847 bindir=$ac_optarg ;;
848
849 -build | --build | --buil | --bui | --bu)
850 ac_prev=build_alias ;;
851 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852 build_alias=$ac_optarg ;;
853
854 -cache-file | --cache-file | --cache-fil | --cache-fi \
855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856 ac_prev=cache_file ;;
857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859 cache_file=$ac_optarg ;;
860
861 --config-cache | -C)
862 cache_file=config.cache ;;
863
864 -datadir | --datadir | --datadi | --datad)
865 ac_prev=datadir ;;
866 -datadir=* | --datadir=* | --datadi=* | --datad=*)
867 datadir=$ac_optarg ;;
868
869 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870 | --dataroo | --dataro | --datar)
871 ac_prev=datarootdir ;;
872 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874 datarootdir=$ac_optarg ;;
875
876 -disable-* | --disable-*)
877 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878 # Reject names that are not valid shell variable names.
879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880 as_fn_error "invalid feature name: $ac_useropt"
881 ac_useropt_orig=$ac_useropt
882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
884 *"
885 "enable_$ac_useropt"
886 "*) ;;
887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888 ac_unrecognized_sep=', ';;
889 esac
890 eval enable_$ac_useropt=no ;;
891
892 -docdir | --docdir | --docdi | --doc | --do)
893 ac_prev=docdir ;;
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 docdir=$ac_optarg ;;
896
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898 ac_prev=dvidir ;;
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 dvidir=$ac_optarg ;;
901
902 -enable-* | --enable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
910 *"
911 "enable_$ac_useropt"
912 "*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=\$ac_optarg ;;
917
918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920 | --exec | --exe | --ex)
921 ac_prev=exec_prefix ;;
922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924 | --exec=* | --exe=* | --ex=*)
925 exec_prefix=$ac_optarg ;;
926
927 -gas | --gas | --ga | --g)
928 # Obsolete; use --with-gas.
929 with_gas=yes ;;
930
931 -help | --help | --hel | --he | -h)
932 ac_init_help=long ;;
933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934 ac_init_help=recursive ;;
935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936 ac_init_help=short ;;
937
938 -host | --host | --hos | --ho)
939 ac_prev=host_alias ;;
940 -host=* | --host=* | --hos=* | --ho=*)
941 host_alias=$ac_optarg ;;
942
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944 ac_prev=htmldir ;;
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946 | --ht=*)
947 htmldir=$ac_optarg ;;
948
949 -includedir | --includedir | --includedi | --included | --include \
950 | --includ | --inclu | --incl | --inc)
951 ac_prev=includedir ;;
952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953 | --includ=* | --inclu=* | --incl=* | --inc=*)
954 includedir=$ac_optarg ;;
955
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
957 ac_prev=infodir ;;
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959 infodir=$ac_optarg ;;
960
961 -libdir | --libdir | --libdi | --libd)
962 ac_prev=libdir ;;
963 -libdir=* | --libdir=* | --libdi=* | --libd=*)
964 libdir=$ac_optarg ;;
965
966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967 | --libexe | --libex | --libe)
968 ac_prev=libexecdir ;;
969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970 | --libexe=* | --libex=* | --libe=*)
971 libexecdir=$ac_optarg ;;
972
973 -localedir | --localedir | --localedi | --localed | --locale)
974 ac_prev=localedir ;;
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
977
978 -localstatedir | --localstatedir | --localstatedi | --localstated \
979 | --localstate | --localstat | --localsta | --localst | --locals)
980 ac_prev=localstatedir ;;
981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983 localstatedir=$ac_optarg ;;
984
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986 ac_prev=mandir ;;
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988 mandir=$ac_optarg ;;
989
990 -nfp | --nfp | --nf)
991 # Obsolete; use --without-fp.
992 with_fp=no ;;
993
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c | -n)
996 no_create=yes ;;
997
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 no_recursion=yes ;;
1001
1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004 | --oldin | --oldi | --old | --ol | --o)
1005 ac_prev=oldincludedir ;;
1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009 oldincludedir=$ac_optarg ;;
1010
1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012 ac_prev=prefix ;;
1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014 prefix=$ac_optarg ;;
1015
1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017 | --program-pre | --program-pr | --program-p)
1018 ac_prev=program_prefix ;;
1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021 program_prefix=$ac_optarg ;;
1022
1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024 | --program-suf | --program-su | --program-s)
1025 ac_prev=program_suffix ;;
1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028 program_suffix=$ac_optarg ;;
1029
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1032 | --program-transform-n | --program-transform- \
1033 | --program-transform | --program-transfor \
1034 | --program-transfo | --program-transf \
1035 | --program-trans | --program-tran \
1036 | --progr-tra | --program-tr | --program-t)
1037 ac_prev=program_transform_name ;;
1038 -program-transform-name=* | --program-transform-name=* \
1039 | --program-transform-nam=* | --program-transform-na=* \
1040 | --program-transform-n=* | --program-transform-=* \
1041 | --program-transform=* | --program-transfor=* \
1042 | --program-transfo=* | --program-transf=* \
1043 | --program-trans=* | --program-tran=* \
1044 | --progr-tra=* | --program-tr=* | --program-t=*)
1045 program_transform_name=$ac_optarg ;;
1046
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048 ac_prev=pdfdir ;;
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1051
1052 -psdir | --psdir | --psdi | --psd | --ps)
1053 ac_prev=psdir ;;
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 psdir=$ac_optarg ;;
1056
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1059 silent=yes ;;
1060
1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062 ac_prev=sbindir ;;
1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064 | --sbi=* | --sb=*)
1065 sbindir=$ac_optarg ;;
1066
1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069 | --sharedst | --shareds | --shared | --share | --shar \
1070 | --sha | --sh)
1071 ac_prev=sharedstatedir ;;
1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075 | --sha=* | --sh=*)
1076 sharedstatedir=$ac_optarg ;;
1077
1078 -site | --site | --sit)
1079 ac_prev=site ;;
1080 -site=* | --site=* | --sit=*)
1081 site=$ac_optarg ;;
1082
1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084 ac_prev=srcdir ;;
1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086 srcdir=$ac_optarg ;;
1087
1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089 | --syscon | --sysco | --sysc | --sys | --sy)
1090 ac_prev=sysconfdir ;;
1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093 sysconfdir=$ac_optarg ;;
1094
1095 -target | --target | --targe | --targ | --tar | --ta | --t)
1096 ac_prev=target_alias ;;
1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098 target_alias=$ac_optarg ;;
1099
1100 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101 verbose=yes ;;
1102
1103 -version | --version | --versio | --versi | --vers | -V)
1104 ac_init_version=: ;;
1105
1106 -with-* | --with-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error "invalid package name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1114 *"
1115 "with_$ac_useropt"
1116 "*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval with_$ac_useropt=\$ac_optarg ;;
1121
1122 -without-* | --without-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=no ;;
1137
1138 --x)
1139 # Obsolete; use --with-x.
1140 with_x=yes ;;
1141
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev=x_includes ;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes=$ac_optarg ;;
1148
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev=x_libraries ;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries=$ac_optarg ;;
1155
1156 -*) as_fn_error "unrecognized option: \`$ac_option'
1157 Try \`$0 --help' for more information."
1158 ;;
1159
1160 *=*)
1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 case $ac_envvar in #(
1164 '' | [0-9]* | *[!_$as_cr_alnum]* )
1165 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1166 esac
1167 eval $ac_envvar=\$ac_optarg
1168 export $ac_envvar ;;
1169
1170 *)
1171 # FIXME: should be removed in autoconf 3.0.
1172 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1176 ;;
1177
1178 esac
1179 done
1180
1181 if test -n "$ac_prev"; then
1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183 as_fn_error "missing argument to $ac_option"
1184 fi
1185
1186 if test -n "$ac_unrecognized_opts"; then
1187 case $enable_option_checking in
1188 no) ;;
1189 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1190 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191 esac
1192 fi
1193
1194 # Check all directory arguments for consistency.
1195 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196 datadir sysconfdir sharedstatedir localstatedir includedir \
1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198 libdir localedir mandir
1199 do
1200 eval ac_val=\$$ac_var
1201 # Remove trailing slashes.
1202 case $ac_val in
1203 */ )
1204 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205 eval $ac_var=\$ac_val;;
1206 esac
1207 # Be sure to have absolute directory names.
1208 case $ac_val in
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 esac
1212 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1213 done
1214
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1218 build=$build_alias
1219 host=$host_alias
1220 target=$target_alias
1221
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
1226 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used." >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1229 cross_compiling=yes
1230 fi
1231 fi
1232
1233 ac_tool_prefix=
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235
1236 test "$silent" = yes && exec 6>/dev/null
1237
1238
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 as_fn_error "working directory cannot be determined"
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244 as_fn_error "pwd does not report name of working directory"
1245
1246
1247 # Find the source files, if location was not specified.
1248 if test -z "$srcdir"; then
1249 ac_srcdir_defaulted=yes
1250 # Try the directory containing this script, then the parent directory.
1251 ac_confdir=`$as_dirname -- "$as_myself" ||
1252 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253 X"$as_myself" : 'X\(//\)[^/]' \| \
1254 X"$as_myself" : 'X\(//\)$' \| \
1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256 $as_echo X"$as_myself" |
1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\/\)[^/].*/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\).*/{
1270 s//\1/
1271 q
1272 }
1273 s/.*/./; q'`
1274 srcdir=$ac_confdir
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 srcdir=..
1277 fi
1278 else
1279 ac_srcdir_defaulted=no
1280 fi
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1284 fi
1285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 ac_abs_confdir=`(
1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1288 pwd)`
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 srcdir=.
1292 fi
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1296 case $srcdir in
1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 esac
1299 for ac_var in $ac_precious_vars; do
1300 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_env_${ac_var}_value=\$${ac_var}
1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304 done
1305
1306 #
1307 # Report the --help message.
1308 #
1309 if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1312 cat <<_ACEOF
1313 \`configure' configures GNU Atomic Library 1.0 to adapt to many kinds of systems.
1314
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1316
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE. See below for descriptions of some of the useful variables.
1319
1320 Defaults for the options are specified in brackets.
1321
1322 Configuration:
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
1327 -q, --quiet, --silent do not print \`checking...' messages
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for \`--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1332
1333 Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
1335 [$ac_default_prefix]
1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 [PREFIX]
1338
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1343
1344 For better control, use the options below.
1345
1346 Fine tuning of the installation directories:
1347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic]
1362 --htmldir=DIR html documentation [DOCDIR]
1363 --dvidir=DIR dvi documentation [DOCDIR]
1364 --pdfdir=DIR pdf documentation [DOCDIR]
1365 --psdir=DIR ps documentation [DOCDIR]
1366 _ACEOF
1367
1368 cat <<\_ACEOF
1369
1370 Program names:
1371 --program-prefix=PREFIX prepend PREFIX to installed program names
1372 --program-suffix=SUFFIX append SUFFIX to installed program names
1373 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1374
1375 System types:
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1379 _ACEOF
1380 fi
1381
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive ) echo "Configuration of GNU Atomic Library 1.0:";;
1385 esac
1386 cat <<\_ACEOF
1387
1388 Optional Features:
1389 --disable-option-checking ignore unrecognized --enable/--with options
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-version-specific-runtime-libs
1393 Specify that runtime libraries should be installed
1394 in a compiler-specific directory [default=no]
1395 --enable-generated-files-in-srcdir
1396 put copies of generated files in source dir intended
1397 for creating source tarballs for users without
1398 texinfo bison or flex. [default=no]
1399 --enable-multilib build many library versions (default)
1400 --disable-dependency-tracking speeds up one-time build
1401 --enable-dependency-tracking do not reject slow dependency extractors
1402 --enable-shared[=PKGS] build shared libraries [default=yes]
1403 --enable-static[=PKGS] build static libraries [default=yes]
1404 --enable-fast-install[=PKGS]
1405 optimize for fast installation [default=yes]
1406 --disable-libtool-lock avoid locking (might break parallel builds)
1407 --enable-maintainer-mode enable make rules and dependencies not useful
1408 (and sometimes confusing) to the casual installer
1409 --enable-symvers=STYLE enables symbol versioning of the shared library
1410 [default=yes]
1411
1412 Optional Packages:
1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1415 --with-pic try to use only PIC/non-PIC objects [default=use
1416 both]
1417 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1418
1419 Some influential environment variables:
1420 CC C compiler command
1421 CFLAGS C compiler flags
1422 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1423 nonstandard directory <lib dir>
1424 LIBS libraries to pass to the linker, e.g. -l<library>
1425 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1426 you have headers in a nonstandard directory <include dir>
1427 CCAS assembler compiler command (defaults to CC)
1428 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1429 CPP C preprocessor
1430
1431 Use these variables to override the choices made by `configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1433
1434 Report bugs to the package provider.
1435 GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
1436 General help using GNU software: <http://www.gnu.org/gethelp/>.
1437 _ACEOF
1438 ac_status=$?
1439 fi
1440
1441 if test "$ac_init_help" = "recursive"; then
1442 # If there are subdirs, report their specific --help.
1443 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1444 test -d "$ac_dir" ||
1445 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1446 continue
1447 ac_builddir=.
1448
1449 case "$ac_dir" in
1450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 *)
1452 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1453 # A ".." for each directory in $ac_dir_suffix.
1454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1455 case $ac_top_builddir_sub in
1456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1458 esac ;;
1459 esac
1460 ac_abs_top_builddir=$ac_pwd
1461 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1462 # for backward compatibility:
1463 ac_top_builddir=$ac_top_build_prefix
1464
1465 case $srcdir in
1466 .) # We are building in place.
1467 ac_srcdir=.
1468 ac_top_srcdir=$ac_top_builddir_sub
1469 ac_abs_top_srcdir=$ac_pwd ;;
1470 [\\/]* | ?:[\\/]* ) # Absolute name.
1471 ac_srcdir=$srcdir$ac_dir_suffix;
1472 ac_top_srcdir=$srcdir
1473 ac_abs_top_srcdir=$srcdir ;;
1474 *) # Relative name.
1475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1476 ac_top_srcdir=$ac_top_build_prefix$srcdir
1477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1478 esac
1479 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1480
1481 cd "$ac_dir" || { ac_status=$?; continue; }
1482 # Check for guested configure.
1483 if test -f "$ac_srcdir/configure.gnu"; then
1484 echo &&
1485 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1486 elif test -f "$ac_srcdir/configure"; then
1487 echo &&
1488 $SHELL "$ac_srcdir/configure" --help=recursive
1489 else
1490 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1491 fi || ac_status=$?
1492 cd "$ac_pwd" || { ac_status=$?; break; }
1493 done
1494 fi
1495
1496 test -n "$ac_init_help" && exit $ac_status
1497 if $ac_init_version; then
1498 cat <<\_ACEOF
1499 GNU Atomic Library configure 1.0
1500 generated by GNU Autoconf 2.64
1501
1502 Copyright (C) 2009 Free Software Foundation, Inc.
1503 This configure script is free software; the Free Software Foundation
1504 gives unlimited permission to copy, distribute and modify it.
1505 _ACEOF
1506 exit
1507 fi
1508
1509 ## ------------------------ ##
1510 ## Autoconf initialization. ##
1511 ## ------------------------ ##
1512
1513 # ac_fn_c_try_compile LINENO
1514 # --------------------------
1515 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1516 ac_fn_c_try_compile ()
1517 {
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 rm -f conftest.$ac_objext
1520 if { { ac_try="$ac_compile"
1521 case "(($ac_try" in
1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523 *) ac_try_echo=$ac_try;;
1524 esac
1525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526 $as_echo "$ac_try_echo"; } >&5
1527 (eval "$ac_compile") 2>conftest.err
1528 ac_status=$?
1529 if test -s conftest.err; then
1530 grep -v '^ *+' conftest.err >conftest.er1
1531 cat conftest.er1 >&5
1532 mv -f conftest.er1 conftest.err
1533 fi
1534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535 test $ac_status = 0; } && {
1536 test -z "$ac_c_werror_flag" ||
1537 test ! -s conftest.err
1538 } && test -s conftest.$ac_objext; then :
1539 ac_retval=0
1540 else
1541 $as_echo "$as_me: failed program was:" >&5
1542 sed 's/^/| /' conftest.$ac_ext >&5
1543
1544 ac_retval=1
1545 fi
1546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1547 return $ac_retval
1548
1549 } # ac_fn_c_try_compile
1550
1551 # ac_fn_c_try_link LINENO
1552 # -----------------------
1553 # Try to link conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_link ()
1555 {
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext conftest$ac_exeext
1558 if { { ac_try="$ac_link"
1559 case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_link") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1571 fi
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest$ac_exeext && {
1577 test "$cross_compiling" = yes ||
1578 $as_test_x conftest$ac_exeext
1579 }; then :
1580 ac_retval=0
1581 else
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1584
1585 ac_retval=1
1586 fi
1587 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1588 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1589 # interfere with the next link command; also delete a directory that is
1590 # left behind by Apple's compiler. We do this before executing the actions.
1591 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593 return $ac_retval
1594
1595 } # ac_fn_c_try_link
1596
1597 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1598 # -------------------------------------------------------
1599 # Tests whether HEADER exists and can be compiled using the include files in
1600 # INCLUDES, setting the cache variable VAR accordingly.
1601 ac_fn_c_check_header_compile ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1605 $as_echo_n "checking for $2... " >&6; }
1606 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1607 $as_echo_n "(cached) " >&6
1608 else
1609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1610 /* end confdefs.h. */
1611 $4
1612 #include <$2>
1613 _ACEOF
1614 if ac_fn_c_try_compile "$LINENO"; then :
1615 eval "$3=yes"
1616 else
1617 eval "$3=no"
1618 fi
1619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1620 fi
1621 eval ac_res=\$$3
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1623 $as_echo "$ac_res" >&6; }
1624 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1625
1626 } # ac_fn_c_check_header_compile
1627
1628 # ac_fn_c_try_cpp LINENO
1629 # ----------------------
1630 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_cpp ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_cpp conftest.$ac_ext"
1635 case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1647 fi
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } >/dev/null && {
1650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 }; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658 ac_retval=1
1659 fi
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1661 return $ac_retval
1662
1663 } # ac_fn_c_try_cpp
1664
1665 # ac_fn_c_try_run LINENO
1666 # ----------------------
1667 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1668 # that executables *can* be run.
1669 ac_fn_c_try_run ()
1670 {
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if { { ac_try="$ac_link"
1673 case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_link") 2>&5
1680 ac_status=$?
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1683 { { case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_try") 2>&5
1690 ac_status=$?
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; }; }; then :
1693 ac_retval=0
1694 else
1695 $as_echo "$as_me: program exited with status $ac_status" >&5
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=$ac_status
1700 fi
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703 return $ac_retval
1704
1705 } # ac_fn_c_try_run
1706
1707 # ac_fn_c_check_func LINENO FUNC VAR
1708 # ----------------------------------
1709 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1710 ac_fn_c_check_func ()
1711 {
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1716 $as_echo_n "(cached) " >&6
1717 else
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1720 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1722 #define $2 innocuous_$2
1723
1724 /* System header to define __stub macros and hopefully few prototypes,
1725 which can conflict with char $2 (); below.
1726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1727 <limits.h> exists even on freestanding compilers. */
1728
1729 #ifdef __STDC__
1730 # include <limits.h>
1731 #else
1732 # include <assert.h>
1733 #endif
1734
1735 #undef $2
1736
1737 /* Override any GCC internal prototype to avoid an error.
1738 Use char because int might match the return type of a GCC
1739 builtin and then its argument prototype would still apply. */
1740 #ifdef __cplusplus
1741 extern "C"
1742 #endif
1743 char $2 ();
1744 /* The GNU C library defines this for functions which it implements
1745 to always fail with ENOSYS. Some functions are actually named
1746 something starting with __ and the normal name is an alias. */
1747 #if defined __stub_$2 || defined __stub___$2
1748 choke me
1749 #endif
1750
1751 int
1752 main ()
1753 {
1754 return $2 ();
1755 ;
1756 return 0;
1757 }
1758 _ACEOF
1759 if ac_fn_c_try_link "$LINENO"; then :
1760 eval "$3=yes"
1761 else
1762 eval "$3=no"
1763 fi
1764 rm -f core conftest.err conftest.$ac_objext \
1765 conftest$ac_exeext conftest.$ac_ext
1766 fi
1767 eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771
1772 } # ac_fn_c_check_func
1773
1774 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1775 # -------------------------------------------
1776 # Tests whether TYPE exists after having included INCLUDES, setting cache
1777 # variable VAR accordingly.
1778 ac_fn_c_check_type ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1784 $as_echo_n "(cached) " >&6
1785 else
1786 eval "$3=no"
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1789 $4
1790 int
1791 main ()
1792 {
1793 if (sizeof ($2))
1794 return 0;
1795 ;
1796 return 0;
1797 }
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 $4
1803 int
1804 main ()
1805 {
1806 if (sizeof (($2)))
1807 return 0;
1808 ;
1809 return 0;
1810 }
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"; then :
1813
1814 else
1815 eval "$3=yes"
1816 fi
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 fi
1821 eval ac_res=\$$3
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825
1826 } # ac_fn_c_check_type
1827
1828 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1829 # --------------------------------------------
1830 # Tries to find the compile-time value of EXPR in a program that includes
1831 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1832 # computed
1833 ac_fn_c_compute_int ()
1834 {
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 if test "$cross_compiling" = yes; then
1837 # Depending upon the size, compute the lo and hi bounds.
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1840 $4
1841 int
1842 main ()
1843 {
1844 static int test_array [1 - 2 * !(($2) >= 0)];
1845 test_array [0] = 0
1846
1847 ;
1848 return 0;
1849 }
1850 _ACEOF
1851 if ac_fn_c_try_compile "$LINENO"; then :
1852 ac_lo=0 ac_mid=0
1853 while :; do
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1856 $4
1857 int
1858 main ()
1859 {
1860 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1861 test_array [0] = 0
1862
1863 ;
1864 return 0;
1865 }
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868 ac_hi=$ac_mid; break
1869 else
1870 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1871 if test $ac_lo -le $ac_mid; then
1872 ac_lo= ac_hi=
1873 break
1874 fi
1875 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1876 fi
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 done
1879 else
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1882 $4
1883 int
1884 main ()
1885 {
1886 static int test_array [1 - 2 * !(($2) < 0)];
1887 test_array [0] = 0
1888
1889 ;
1890 return 0;
1891 }
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894 ac_hi=-1 ac_mid=-1
1895 while :; do
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1898 $4
1899 int
1900 main ()
1901 {
1902 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1903 test_array [0] = 0
1904
1905 ;
1906 return 0;
1907 }
1908 _ACEOF
1909 if ac_fn_c_try_compile "$LINENO"; then :
1910 ac_lo=$ac_mid; break
1911 else
1912 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1913 if test $ac_mid -le $ac_hi; then
1914 ac_lo= ac_hi=
1915 break
1916 fi
1917 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 done
1921 else
1922 ac_lo= ac_hi=
1923 fi
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 fi
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 # Binary search between lo and hi bounds.
1928 while test "x$ac_lo" != "x$ac_hi"; do
1929 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1932 $4
1933 int
1934 main ()
1935 {
1936 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1937 test_array [0] = 0
1938
1939 ;
1940 return 0;
1941 }
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 ac_hi=$ac_mid
1945 else
1946 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1947 fi
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 done
1950 case $ac_lo in #((
1951 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1952 '') ac_retval=1 ;;
1953 esac
1954 else
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1957 $4
1958 static long int longval () { return $2; }
1959 static unsigned long int ulongval () { return $2; }
1960 #include <stdio.h>
1961 #include <stdlib.h>
1962 int
1963 main ()
1964 {
1965
1966 FILE *f = fopen ("conftest.val", "w");
1967 if (! f)
1968 return 1;
1969 if (($2) < 0)
1970 {
1971 long int i = longval ();
1972 if (i != ($2))
1973 return 1;
1974 fprintf (f, "%ld", i);
1975 }
1976 else
1977 {
1978 unsigned long int i = ulongval ();
1979 if (i != ($2))
1980 return 1;
1981 fprintf (f, "%lu", i);
1982 }
1983 /* Do not output a trailing newline, as this causes \r\n confusion
1984 on some platforms. */
1985 return ferror (f) || fclose (f) != 0;
1986
1987 ;
1988 return 0;
1989 }
1990 _ACEOF
1991 if ac_fn_c_try_run "$LINENO"; then :
1992 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1993 else
1994 ac_retval=1
1995 fi
1996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1997 conftest.$ac_objext conftest.beam conftest.$ac_ext
1998 rm -f conftest.val
1999
2000 fi
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2002 return $ac_retval
2003
2004 } # ac_fn_c_compute_int
2005
2006 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2007 # -------------------------------------------------------
2008 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2009 # the include files in INCLUDES and setting the cache variable VAR
2010 # accordingly.
2011 ac_fn_c_check_header_mongrel ()
2012 {
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018 $as_echo_n "(cached) " >&6
2019 fi
2020 eval ac_res=\$$3
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 else
2024 # Is the header compilable?
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2026 $as_echo_n "checking $2 usability... " >&6; }
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 $4
2030 #include <$2>
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 ac_header_compiler=yes
2034 else
2035 ac_header_compiler=no
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2039 $as_echo "$ac_header_compiler" >&6; }
2040
2041 # Is the header present?
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2043 $as_echo_n "checking $2 presence... " >&6; }
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2046 #include <$2>
2047 _ACEOF
2048 if ac_fn_c_try_cpp "$LINENO"; then :
2049 ac_header_preproc=yes
2050 else
2051 ac_header_preproc=no
2052 fi
2053 rm -f conftest.err conftest.$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2055 $as_echo "$ac_header_preproc" >&6; }
2056
2057 # So? What about this header?
2058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2059 yes:no: )
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2061 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2063 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2064 ;;
2065 no:yes:* )
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2067 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2069 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2071 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2073 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2075 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2076 ;;
2077 esac
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2081 $as_echo_n "(cached) " >&6
2082 else
2083 eval "$3=\$ac_header_compiler"
2084 fi
2085 eval ac_res=\$$3
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2088 fi
2089 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2090
2091 } # ac_fn_c_check_header_mongrel
2092 cat >config.log <<_ACEOF
2093 This file contains any messages produced by compilers while
2094 running configure, to aid debugging if configure makes a mistake.
2095
2096 It was created by GNU Atomic Library $as_me 1.0, which was
2097 generated by GNU Autoconf 2.64. Invocation command line was
2098
2099 $ $0 $@
2100
2101 _ACEOF
2102 exec 5>>config.log
2103 {
2104 cat <<_ASUNAME
2105 ## --------- ##
2106 ## Platform. ##
2107 ## --------- ##
2108
2109 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2110 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2111 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2112 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2113 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2114
2115 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2116 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2117
2118 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2119 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2120 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2121 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2122 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2123 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2124 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2125
2126 _ASUNAME
2127
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 for as_dir in $PATH
2130 do
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 $as_echo "PATH: $as_dir"
2134 done
2135 IFS=$as_save_IFS
2136
2137 } >&5
2138
2139 cat >&5 <<_ACEOF
2140
2141
2142 ## ----------- ##
2143 ## Core tests. ##
2144 ## ----------- ##
2145
2146 _ACEOF
2147
2148
2149 # Keep a trace of the command line.
2150 # Strip out --no-create and --no-recursion so they do not pile up.
2151 # Strip out --silent because we don't want to record it for future runs.
2152 # Also quote any args containing shell meta-characters.
2153 # Make two passes to allow for proper duplicate-argument suppression.
2154 ac_configure_args=
2155 ac_configure_args0=
2156 ac_configure_args1=
2157 ac_must_keep_next=false
2158 for ac_pass in 1 2
2159 do
2160 for ac_arg
2161 do
2162 case $ac_arg in
2163 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2165 | -silent | --silent | --silen | --sile | --sil)
2166 continue ;;
2167 *\'*)
2168 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2169 esac
2170 case $ac_pass in
2171 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2172 2)
2173 as_fn_append ac_configure_args1 " '$ac_arg'"
2174 if test $ac_must_keep_next = true; then
2175 ac_must_keep_next=false # Got value, back to normal.
2176 else
2177 case $ac_arg in
2178 *=* | --config-cache | -C | -disable-* | --disable-* \
2179 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2180 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2181 | -with-* | --with-* | -without-* | --without-* | --x)
2182 case "$ac_configure_args0 " in
2183 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2184 esac
2185 ;;
2186 -* ) ac_must_keep_next=true ;;
2187 esac
2188 fi
2189 as_fn_append ac_configure_args " '$ac_arg'"
2190 ;;
2191 esac
2192 done
2193 done
2194 { ac_configure_args0=; unset ac_configure_args0;}
2195 { ac_configure_args1=; unset ac_configure_args1;}
2196
2197 # When interrupted or exit'd, cleanup temporary files, and complete
2198 # config.log. We remove comments because anyway the quotes in there
2199 # would cause problems or look ugly.
2200 # WARNING: Use '\'' to represent an apostrophe within the trap.
2201 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2202 trap 'exit_status=$?
2203 # Save into config.log some information that might help in debugging.
2204 {
2205 echo
2206
2207 cat <<\_ASBOX
2208 ## ---------------- ##
2209 ## Cache variables. ##
2210 ## ---------------- ##
2211 _ASBOX
2212 echo
2213 # The following way of writing the cache mishandles newlines in values,
2214 (
2215 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2216 eval ac_val=\$$ac_var
2217 case $ac_val in #(
2218 *${as_nl}*)
2219 case $ac_var in #(
2220 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2221 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2222 esac
2223 case $ac_var in #(
2224 _ | IFS | as_nl) ;; #(
2225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2226 *) { eval $ac_var=; unset $ac_var;} ;;
2227 esac ;;
2228 esac
2229 done
2230 (set) 2>&1 |
2231 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2232 *${as_nl}ac_space=\ *)
2233 sed -n \
2234 "s/'\''/'\''\\\\'\'''\''/g;
2235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2236 ;; #(
2237 *)
2238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2239 ;;
2240 esac |
2241 sort
2242 )
2243 echo
2244
2245 cat <<\_ASBOX
2246 ## ----------------- ##
2247 ## Output variables. ##
2248 ## ----------------- ##
2249 _ASBOX
2250 echo
2251 for ac_var in $ac_subst_vars
2252 do
2253 eval ac_val=\$$ac_var
2254 case $ac_val in
2255 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2256 esac
2257 $as_echo "$ac_var='\''$ac_val'\''"
2258 done | sort
2259 echo
2260
2261 if test -n "$ac_subst_files"; then
2262 cat <<\_ASBOX
2263 ## ------------------- ##
2264 ## File substitutions. ##
2265 ## ------------------- ##
2266 _ASBOX
2267 echo
2268 for ac_var in $ac_subst_files
2269 do
2270 eval ac_val=\$$ac_var
2271 case $ac_val in
2272 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2273 esac
2274 $as_echo "$ac_var='\''$ac_val'\''"
2275 done | sort
2276 echo
2277 fi
2278
2279 if test -s confdefs.h; then
2280 cat <<\_ASBOX
2281 ## ----------- ##
2282 ## confdefs.h. ##
2283 ## ----------- ##
2284 _ASBOX
2285 echo
2286 cat confdefs.h
2287 echo
2288 fi
2289 test "$ac_signal" != 0 &&
2290 $as_echo "$as_me: caught signal $ac_signal"
2291 $as_echo "$as_me: exit $exit_status"
2292 } >&5
2293 rm -f core *.core core.conftest.* &&
2294 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2295 exit $exit_status
2296 ' 0
2297 for ac_signal in 1 2 13 15; do
2298 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2299 done
2300 ac_signal=0
2301
2302 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2303 rm -f -r conftest* confdefs.h
2304
2305 $as_echo "/* confdefs.h */" > confdefs.h
2306
2307 # Predefined preprocessor variables.
2308
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_NAME "$PACKAGE_NAME"
2311 _ACEOF
2312
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2315 _ACEOF
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2319 _ACEOF
2320
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_STRING "$PACKAGE_STRING"
2323 _ACEOF
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2327 _ACEOF
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_URL "$PACKAGE_URL"
2331 _ACEOF
2332
2333
2334 # Let the site file select an alternate cache file if it wants to.
2335 # Prefer an explicitly selected file to automatically selected ones.
2336 ac_site_file1=NONE
2337 ac_site_file2=NONE
2338 if test -n "$CONFIG_SITE"; then
2339 ac_site_file1=$CONFIG_SITE
2340 elif test "x$prefix" != xNONE; then
2341 ac_site_file1=$prefix/share/config.site
2342 ac_site_file2=$prefix/etc/config.site
2343 else
2344 ac_site_file1=$ac_default_prefix/share/config.site
2345 ac_site_file2=$ac_default_prefix/etc/config.site
2346 fi
2347 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2348 do
2349 test "x$ac_site_file" = xNONE && continue
2350 if test -r "$ac_site_file"; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2352 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2353 sed 's/^/| /' "$ac_site_file" >&5
2354 . "$ac_site_file"
2355 fi
2356 done
2357
2358 if test -r "$cache_file"; then
2359 # Some versions of bash will fail to source /dev/null (special
2360 # files actually), so we avoid doing that.
2361 if test -f "$cache_file"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2363 $as_echo "$as_me: loading cache $cache_file" >&6;}
2364 case $cache_file in
2365 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2366 *) . "./$cache_file";;
2367 esac
2368 fi
2369 else
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2371 $as_echo "$as_me: creating cache $cache_file" >&6;}
2372 >$cache_file
2373 fi
2374
2375 # Check that the precious variables saved in the cache have kept the same
2376 # value.
2377 ac_cache_corrupted=false
2378 for ac_var in $ac_precious_vars; do
2379 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2380 eval ac_new_set=\$ac_env_${ac_var}_set
2381 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2382 eval ac_new_val=\$ac_env_${ac_var}_value
2383 case $ac_old_set,$ac_new_set in
2384 set,)
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2386 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2387 ac_cache_corrupted=: ;;
2388 ,set)
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2390 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2391 ac_cache_corrupted=: ;;
2392 ,);;
2393 *)
2394 if test "x$ac_old_val" != "x$ac_new_val"; then
2395 # differences in whitespace do not lead to failure.
2396 ac_old_val_w=`echo x $ac_old_val`
2397 ac_new_val_w=`echo x $ac_new_val`
2398 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2400 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2401 ac_cache_corrupted=:
2402 else
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2404 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2405 eval $ac_var=\$ac_old_val
2406 fi
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2408 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2410 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2411 fi;;
2412 esac
2413 # Pass precious variables to config.status.
2414 if test "$ac_new_set" = set; then
2415 case $ac_new_val in
2416 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2417 *) ac_arg=$ac_var=$ac_new_val ;;
2418 esac
2419 case " $ac_configure_args " in
2420 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2421 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2422 esac
2423 fi
2424 done
2425 if $ac_cache_corrupted; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2429 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2430 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2431 fi
2432 ## -------------------- ##
2433 ## Main body of script. ##
2434 ## -------------------- ##
2435
2436 ac_ext=c
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441
2442
2443
2444
2445
2446 ac_config_headers="$ac_config_headers auto-config.h"
2447
2448
2449 # -------
2450 # Options
2451 # -------
2452
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2454 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2455 # Check whether --enable-version-specific-runtime-libs was given.
2456 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2457 enableval=$enable_version_specific_runtime_libs;
2458 case "$enableval" in
2459 yes|no) ;;
2460 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2461 esac
2462
2463 else
2464 enable_version_specific_runtime_libs=no
2465 fi
2466
2467
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2469 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2470
2471 # We would like our source tree to be readonly. However when releases or
2472 # pre-releases are generated, the flex/bison generated files as well as the
2473 # various formats of manuals need to be included along with the rest of the
2474 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2475 # just that.
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2477 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2478 # Check whether --enable-generated-files-in-srcdir was given.
2479 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2480 enableval=$enable_generated_files_in_srcdir;
2481 case "$enableval" in
2482 yes|no) ;;
2483 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2484 esac
2485
2486 else
2487 enable_generated_files_in_srcdir=no
2488 fi
2489
2490
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2492 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2493 if test "$enable_generated_files_in_srcdir" = yes; then
2494 GENINSRC_TRUE=
2495 GENINSRC_FALSE='#'
2496 else
2497 GENINSRC_TRUE='#'
2498 GENINSRC_FALSE=
2499 fi
2500
2501
2502
2503 # -------
2504
2505 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2506 #
2507 # You will slowly go insane if you do not grok the following fact: when
2508 # building this library, the top-level /target/ becomes the library's /host/.
2509 #
2510 # configure then causes --target to default to --host, exactly like any
2511 # other package using autoconf. Therefore, 'target' and 'host' will
2512 # always be the same. This makes sense both for native and cross compilers
2513 # just think about it for a little while. :-)
2514 #
2515 # Also, if this library is being configured as part of a cross compiler, the
2516 # top-level configure script will pass the "real" host as $with_cross_host.
2517 #
2518 # Do not delete or change the following two lines. For why, see
2519 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2520 ac_aux_dir=
2521 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2522 for ac_t in install-sh install.sh shtool; do
2523 if test -f "$ac_dir/$ac_t"; then
2524 ac_aux_dir=$ac_dir
2525 ac_install_sh="$ac_aux_dir/$ac_t -c"
2526 break 2
2527 fi
2528 done
2529 done
2530 if test -z "$ac_aux_dir"; then
2531 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2532 fi
2533
2534 # These three variables are undocumented and unsupported,
2535 # and are intended to be withdrawn in a future Autoconf release.
2536 # They can cause serious problems if a builder's source tree is in a directory
2537 # whose full name contains unusual characters.
2538 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2539 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2540 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2541
2542
2543 # Make sure we can run config.sub.
2544 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2545 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2546
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2548 $as_echo_n "checking build system type... " >&6; }
2549 if test "${ac_cv_build+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 ac_build_alias=$build_alias
2553 test "x$ac_build_alias" = x &&
2554 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2555 test "x$ac_build_alias" = x &&
2556 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2557 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2558 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2559
2560 fi
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2562 $as_echo "$ac_cv_build" >&6; }
2563 case $ac_cv_build in
2564 *-*-*) ;;
2565 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2566 esac
2567 build=$ac_cv_build
2568 ac_save_IFS=$IFS; IFS='-'
2569 set x $ac_cv_build
2570 shift
2571 build_cpu=$1
2572 build_vendor=$2
2573 shift; shift
2574 # Remember, the first character of IFS is used to create $*,
2575 # except with old shells:
2576 build_os=$*
2577 IFS=$ac_save_IFS
2578 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2579
2580
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2582 $as_echo_n "checking host system type... " >&6; }
2583 if test "${ac_cv_host+set}" = set; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 if test "x$host_alias" = x; then
2587 ac_cv_host=$ac_cv_build
2588 else
2589 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2590 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2591 fi
2592
2593 fi
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2595 $as_echo "$ac_cv_host" >&6; }
2596 case $ac_cv_host in
2597 *-*-*) ;;
2598 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2599 esac
2600 host=$ac_cv_host
2601 ac_save_IFS=$IFS; IFS='-'
2602 set x $ac_cv_host
2603 shift
2604 host_cpu=$1
2605 host_vendor=$2
2606 shift; shift
2607 # Remember, the first character of IFS is used to create $*,
2608 # except with old shells:
2609 host_os=$*
2610 IFS=$ac_save_IFS
2611 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2612
2613
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2615 $as_echo_n "checking target system type... " >&6; }
2616 if test "${ac_cv_target+set}" = set; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 if test "x$target_alias" = x; then
2620 ac_cv_target=$ac_cv_host
2621 else
2622 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2623 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2624 fi
2625
2626 fi
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2628 $as_echo "$ac_cv_target" >&6; }
2629 case $ac_cv_target in
2630 *-*-*) ;;
2631 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2632 esac
2633 target=$ac_cv_target
2634 ac_save_IFS=$IFS; IFS='-'
2635 set x $ac_cv_target
2636 shift
2637 target_cpu=$1
2638 target_vendor=$2
2639 shift; shift
2640 # Remember, the first character of IFS is used to create $*,
2641 # except with old shells:
2642 target_os=$*
2643 IFS=$ac_save_IFS
2644 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2645
2646
2647 # The aliases save the names the user supplied, while $host etc.
2648 # will get canonicalized.
2649 test -n "$target_alias" &&
2650 test "$program_prefix$program_suffix$program_transform_name" = \
2651 NONENONEs,x,x, &&
2652 program_prefix=${target_alias}-
2653
2654 target_alias=${target_alias-$host_alias}
2655
2656 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2657 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2658 # 1.9.0: minimum required version
2659 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2660 # of other PACKAGE_* variables will, however, and there's nothing
2661 # we can do about that; they come from AC_INIT).
2662 # no-dist: we don't want 'dist' and related rules.
2663 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2664 # file in the top srcdir, etc, etc), so stop complaining.
2665 # -Wall: turns on all automake warnings...
2666 # -Wno-portability: ...except this one, since GNU make is required.
2667 # -Wno-override: ... and this one, since we do want this in testsuite.
2668 am__api_version='1.11'
2669
2670 # Find a good install program. We prefer a C program (faster),
2671 # so one script is as good as another. But avoid the broken or
2672 # incompatible versions:
2673 # SysV /etc/install, /usr/sbin/install
2674 # SunOS /usr/etc/install
2675 # IRIX /sbin/install
2676 # AIX /bin/install
2677 # AmigaOS /C/install, which installs bootblocks on floppy discs
2678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2681 # OS/2's system install, which has a completely different semantic
2682 # ./install, which can be erroneously created by make from ./install.sh.
2683 # Reject install programs that cannot install multiple files.
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2685 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2686 if test -z "$INSTALL"; then
2687 if test "${ac_cv_path_install+set}" = set; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 # Account for people who put trailing slashes in PATH elements.
2696 case $as_dir/ in #((
2697 ./ | .// | /[cC]/* | \
2698 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2699 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2700 /usr/ucb/* ) ;;
2701 *)
2702 # OSF1 and SCO ODT 3.0 have their own names for install.
2703 # Don't use installbsd from OSF since it installs stuff as root
2704 # by default.
2705 for ac_prog in ginstall scoinst install; do
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2708 if test $ac_prog = install &&
2709 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2710 # AIX install. It has an incompatible calling convention.
2711 :
2712 elif test $ac_prog = install &&
2713 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714 # program-specific install script used by HP pwplus--don't use.
2715 :
2716 else
2717 rm -rf conftest.one conftest.two conftest.dir
2718 echo one > conftest.one
2719 echo two > conftest.two
2720 mkdir conftest.dir
2721 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2722 test -s conftest.one && test -s conftest.two &&
2723 test -s conftest.dir/conftest.one &&
2724 test -s conftest.dir/conftest.two
2725 then
2726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2727 break 3
2728 fi
2729 fi
2730 fi
2731 done
2732 done
2733 ;;
2734 esac
2735
2736 done
2737 IFS=$as_save_IFS
2738
2739 rm -rf conftest.one conftest.two conftest.dir
2740
2741 fi
2742 if test "${ac_cv_path_install+set}" = set; then
2743 INSTALL=$ac_cv_path_install
2744 else
2745 # As a last resort, use the slow shell script. Don't cache a
2746 # value for INSTALL within a source directory, because that will
2747 # break other packages using the cache if that directory is
2748 # removed, or if the value is a relative name.
2749 INSTALL=$ac_install_sh
2750 fi
2751 fi
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2753 $as_echo "$INSTALL" >&6; }
2754
2755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2756 # It thinks the first close brace ends the variable substitution.
2757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2758
2759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2760
2761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2762
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2764 $as_echo_n "checking whether build environment is sane... " >&6; }
2765 # Just in case
2766 sleep 1
2767 echo timestamp > conftest.file
2768 # Reject unsafe characters in $srcdir or the absolute working directory
2769 # name. Accept space and tab only in the latter.
2770 am_lf='
2771 '
2772 case `pwd` in
2773 *[\\\"\#\$\&\'\`$am_lf]*)
2774 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2775 esac
2776 case $srcdir in
2777 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2778 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2779 esac
2780
2781 # Do `set' in a subshell so we don't clobber the current shell's
2782 # arguments. Must try -L first in case configure is actually a
2783 # symlink; some systems play weird games with the mod time of symlinks
2784 # (eg FreeBSD returns the mod time of the symlink's containing
2785 # directory).
2786 if (
2787 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2788 if test "$*" = "X"; then
2789 # -L didn't work.
2790 set X `ls -t "$srcdir/configure" conftest.file`
2791 fi
2792 rm -f conftest.file
2793 if test "$*" != "X $srcdir/configure conftest.file" \
2794 && test "$*" != "X conftest.file $srcdir/configure"; then
2795
2796 # If neither matched, then we have a broken ls. This can happen
2797 # if, for instance, CONFIG_SHELL is bash and it inherits a
2798 # broken ls alias from the environment. This has actually
2799 # happened. Such a system could not be considered "sane".
2800 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2801 alias in your environment" "$LINENO" 5
2802 fi
2803
2804 test "$2" = conftest.file
2805 )
2806 then
2807 # Ok.
2808 :
2809 else
2810 as_fn_error "newly created file is older than distributed files!
2811 Check your system clock" "$LINENO" 5
2812 fi
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2814 $as_echo "yes" >&6; }
2815 test "$program_prefix" != NONE &&
2816 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2817 # Use a double $ so make ignores it.
2818 test "$program_suffix" != NONE &&
2819 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2820 # Double any \ or $.
2821 # By default was `s,x,x', remove it if useless.
2822 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2823 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2824
2825 # expand $ac_aux_dir to an absolute path
2826 am_aux_dir=`cd $ac_aux_dir && pwd`
2827
2828 if test x"${MISSING+set}" != xset; then
2829 case $am_aux_dir in
2830 *\ * | *\ *)
2831 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2832 *)
2833 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2834 esac
2835 fi
2836 # Use eval to expand $SHELL
2837 if eval "$MISSING --run true"; then
2838 am_missing_run="$MISSING --run "
2839 else
2840 am_missing_run=
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2842 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2843 fi
2844
2845 if test x"${install_sh}" != xset; then
2846 case $am_aux_dir in
2847 *\ * | *\ *)
2848 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2849 *)
2850 install_sh="\${SHELL} $am_aux_dir/install-sh"
2851 esac
2852 fi
2853
2854 # Installed binaries are usually stripped using `strip' when the user
2855 # run `make install-strip'. However `strip' might not be the right
2856 # tool to use in cross-compilation environments, therefore Automake
2857 # will honor the `STRIP' environment variable to overrule this program.
2858 if test "$cross_compiling" != no; then
2859 if test -n "$ac_tool_prefix"; then
2860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2861 set dummy ${ac_tool_prefix}strip; ac_word=$2
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2863 $as_echo_n "checking for $ac_word... " >&6; }
2864 if test "${ac_cv_prog_STRIP+set}" = set; then :
2865 $as_echo_n "(cached) " >&6
2866 else
2867 if test -n "$STRIP"; then
2868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2880 fi
2881 done
2882 done
2883 IFS=$as_save_IFS
2884
2885 fi
2886 fi
2887 STRIP=$ac_cv_prog_STRIP
2888 if test -n "$STRIP"; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2890 $as_echo "$STRIP" >&6; }
2891 else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2894 fi
2895
2896
2897 fi
2898 if test -z "$ac_cv_prog_STRIP"; then
2899 ac_ct_STRIP=$STRIP
2900 # Extract the first word of "strip", so it can be a program name with args.
2901 set dummy strip; ac_word=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2905 $as_echo_n "(cached) " >&6
2906 else
2907 if test -n "$ac_ct_STRIP"; then
2908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2912 do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_ac_ct_STRIP="strip"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921 done
2922 done
2923 IFS=$as_save_IFS
2924
2925 fi
2926 fi
2927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2928 if test -n "$ac_ct_STRIP"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2930 $as_echo "$ac_ct_STRIP" >&6; }
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2934 fi
2935
2936 if test "x$ac_ct_STRIP" = x; then
2937 STRIP=":"
2938 else
2939 case $cross_compiling:$ac_tool_warned in
2940 yes:)
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2943 ac_tool_warned=yes ;;
2944 esac
2945 STRIP=$ac_ct_STRIP
2946 fi
2947 else
2948 STRIP="$ac_cv_prog_STRIP"
2949 fi
2950
2951 fi
2952 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2953
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2955 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2956 if test -z "$MKDIR_P"; then
2957 if test "${ac_cv_path_mkdir+set}" = set; then :
2958 $as_echo_n "(cached) " >&6
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2962 do
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_prog in mkdir gmkdir; do
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2968 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2969 'mkdir (GNU coreutils) '* | \
2970 'mkdir (coreutils) '* | \
2971 'mkdir (fileutils) '4.1*)
2972 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2973 break 3;;
2974 esac
2975 done
2976 done
2977 done
2978 IFS=$as_save_IFS
2979
2980 fi
2981
2982 if test "${ac_cv_path_mkdir+set}" = set; then
2983 MKDIR_P="$ac_cv_path_mkdir -p"
2984 else
2985 # As a last resort, use the slow shell script. Don't cache a
2986 # value for MKDIR_P within a source directory, because that will
2987 # break other packages using the cache if that directory is
2988 # removed, or if the value is a relative name.
2989 test -d ./--version && rmdir ./--version
2990 MKDIR_P="$ac_install_sh -d"
2991 fi
2992 fi
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2994 $as_echo "$MKDIR_P" >&6; }
2995
2996 mkdir_p="$MKDIR_P"
2997 case $mkdir_p in
2998 [\\/$]* | ?:[\\/]*) ;;
2999 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3000 esac
3001
3002 for ac_prog in gawk mawk nawk awk
3003 do
3004 # Extract the first word of "$ac_prog", so it can be a program name with args.
3005 set dummy $ac_prog; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if test "${ac_cv_prog_AWK+set}" = set; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 if test -n "$AWK"; then
3012 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3016 do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021 ac_cv_prog_AWK="$ac_prog"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3024 fi
3025 done
3026 done
3027 IFS=$as_save_IFS
3028
3029 fi
3030 fi
3031 AWK=$ac_cv_prog_AWK
3032 if test -n "$AWK"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3034 $as_echo "$AWK" >&6; }
3035 else
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3038 fi
3039
3040
3041 test -n "$AWK" && break
3042 done
3043
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3045 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3046 set x ${MAKE-make}
3047 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3048 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 cat >conftest.make <<\_ACEOF
3052 SHELL = /bin/sh
3053 all:
3054 @echo '@@@%%%=$(MAKE)=@@@%%%'
3055 _ACEOF
3056 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3057 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3058 *@@@%%%=?*=@@@%%%*)
3059 eval ac_cv_prog_make_${ac_make}_set=yes;;
3060 *)
3061 eval ac_cv_prog_make_${ac_make}_set=no;;
3062 esac
3063 rm -f conftest.make
3064 fi
3065 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3067 $as_echo "yes" >&6; }
3068 SET_MAKE=
3069 else
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3072 SET_MAKE="MAKE=${MAKE-make}"
3073 fi
3074
3075 rm -rf .tst 2>/dev/null
3076 mkdir .tst 2>/dev/null
3077 if test -d .tst; then
3078 am__leading_dot=.
3079 else
3080 am__leading_dot=_
3081 fi
3082 rmdir .tst 2>/dev/null
3083
3084 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3085 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3086 # is not polluted with repeated "-I."
3087 am__isrc=' -I$(srcdir)'
3088 # test to see if srcdir already configured
3089 if test -f $srcdir/config.status; then
3090 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3091 fi
3092 fi
3093
3094 # test whether we have cygpath
3095 if test -z "$CYGPATH_W"; then
3096 if (cygpath --version) >/dev/null 2>/dev/null; then
3097 CYGPATH_W='cygpath -w'
3098 else
3099 CYGPATH_W=echo
3100 fi
3101 fi
3102
3103
3104 # Define the identity of the package.
3105 PACKAGE='libatomic'
3106 VERSION='1.0'
3107
3108
3109 cat >>confdefs.h <<_ACEOF
3110 #define PACKAGE "$PACKAGE"
3111 _ACEOF
3112
3113
3114 cat >>confdefs.h <<_ACEOF
3115 #define VERSION "$VERSION"
3116 _ACEOF
3117
3118 # Some tools Automake needs.
3119
3120 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3121
3122
3123 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3124
3125
3126 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3127
3128
3129 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3130
3131
3132 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3133
3134 # We need awk for the "check" target. The system "awk" is bad on
3135 # some platforms.
3136 # Always define AMTAR for backward compatibility. Yes, it's still used
3137 # in the wild :-( We should find a proper way to deprecate it ...
3138 AMTAR='$${TAR-tar}'
3139
3140 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3141
3142
3143
3144
3145
3146 # Default to --enable-multilib
3147 # Check whether --enable-multilib was given.
3148 if test "${enable_multilib+set}" = set; then :
3149 enableval=$enable_multilib; case "$enableval" in
3150 yes) multilib=yes ;;
3151 no) multilib=no ;;
3152 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3153 esac
3154 else
3155 multilib=yes
3156 fi
3157
3158
3159 # We may get other options which we leave undocumented:
3160 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3161 # See config-ml.in if you want the gory details.
3162
3163 if test "$srcdir" = "."; then
3164 if test "$with_target_subdir" != "."; then
3165 multi_basedir="$srcdir/$with_multisrctop../.."
3166 else
3167 multi_basedir="$srcdir/$with_multisrctop.."
3168 fi
3169 else
3170 multi_basedir="$srcdir/.."
3171 fi
3172
3173
3174 # Even if the default multilib is not a cross compilation,
3175 # it may be that some of the other multilibs are.
3176 if test $cross_compiling = no && test $multilib = yes \
3177 && test "x${with_multisubdir}" != x ; then
3178 cross_compiling=maybe
3179 fi
3180
3181 ac_config_commands="$ac_config_commands default-1"
3182
3183
3184 # Calculate toolexeclibdir
3185 # Also toolexecdir, though it's only used in toolexeclibdir
3186 case ${enable_version_specific_runtime_libs} in
3187 yes)
3188 # Need the gcc compiler version to know where to install libraries
3189 # and header files if --enable-version-specific-runtime-libs option
3190 # is selected.
3191 toolexecdir='$(libdir)/gcc/$(target_alias)'
3192 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3193 ;;
3194 no)
3195 if test -n "$with_cross_host" &&
3196 test x"$with_cross_host" != x"no"; then
3197 # Install a library built with a cross compiler in tooldir, not libdir.
3198 toolexecdir='$(exec_prefix)/$(target_alias)'
3199 toolexeclibdir='$(toolexecdir)/lib'
3200 else
3201 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3202 toolexeclibdir='$(libdir)'
3203 fi
3204 multi_os_directory=`$CC -print-multi-os-directory`
3205 case $multi_os_directory in
3206 .) ;; # Avoid trailing /.
3207 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3208 esac
3209 ;;
3210 esac
3211
3212
3213
3214 # Check the compiler.
3215 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3216 # We must force CC to /not/ be precious variables; otherwise
3217 # the wrong, non-multilib-adjusted value will be used in multilibs.
3218 # As a side effect, we have to subst CFLAGS ourselves.
3219
3220
3221
3222 ac_ext=c
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227 if test -n "$ac_tool_prefix"; then
3228 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3229 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231 $as_echo_n "checking for $ac_word... " >&6; }
3232 if test "${ac_cv_prog_CC+set}" = set; then :
3233 $as_echo_n "(cached) " >&6
3234 else
3235 if test -n "$CC"; then
3236 ac_cv_prog_CC="$CC" # Let the user override the test.
3237 else
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in $PATH
3240 do
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 break 2
3248 fi
3249 done
3250 done
3251 IFS=$as_save_IFS
3252
3253 fi
3254 fi
3255 CC=$ac_cv_prog_CC
3256 if test -n "$CC"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258 $as_echo "$CC" >&6; }
3259 else
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3262 fi
3263
3264
3265 fi
3266 if test -z "$ac_cv_prog_CC"; then
3267 ac_ct_CC=$CC
3268 # Extract the first word of "gcc", so it can be a program name with args.
3269 set dummy gcc; ac_word=$2
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 if test -n "$ac_ct_CC"; then
3276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3277 else
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3280 do
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285 ac_cv_prog_ac_ct_CC="gcc"
3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 break 2
3288 fi
3289 done
3290 done
3291 IFS=$as_save_IFS
3292
3293 fi
3294 fi
3295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3296 if test -n "$ac_ct_CC"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3298 $as_echo "$ac_ct_CC" >&6; }
3299 else
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3302 fi
3303
3304 if test "x$ac_ct_CC" = x; then
3305 CC=""
3306 else
3307 case $cross_compiling:$ac_tool_warned in
3308 yes:)
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3311 ac_tool_warned=yes ;;
3312 esac
3313 CC=$ac_ct_CC
3314 fi
3315 else
3316 CC="$ac_cv_prog_CC"
3317 fi
3318
3319 if test -z "$CC"; then
3320 if test -n "$ac_tool_prefix"; then
3321 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3322 set dummy ${ac_tool_prefix}cc; ac_word=$2
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324 $as_echo_n "checking for $ac_word... " >&6; }
3325 if test "${ac_cv_prog_CC+set}" = set; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 if test -n "$CC"; then
3329 ac_cv_prog_CC="$CC" # Let the user override the test.
3330 else
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3333 do
3334 IFS=$as_save_IFS
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338 ac_cv_prog_CC="${ac_tool_prefix}cc"
3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 break 2
3341 fi
3342 done
3343 done
3344 IFS=$as_save_IFS
3345
3346 fi
3347 fi
3348 CC=$ac_cv_prog_CC
3349 if test -n "$CC"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351 $as_echo "$CC" >&6; }
3352 else
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3355 fi
3356
3357
3358 fi
3359 fi
3360 if test -z "$CC"; then
3361 # Extract the first word of "cc", so it can be a program name with args.
3362 set dummy cc; ac_word=$2
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364 $as_echo_n "checking for $ac_word... " >&6; }
3365 if test "${ac_cv_prog_CC+set}" = set; then :
3366 $as_echo_n "(cached) " >&6
3367 else
3368 if test -n "$CC"; then
3369 ac_cv_prog_CC="$CC" # Let the user override the test.
3370 else
3371 ac_prog_rejected=no
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3380 ac_prog_rejected=yes
3381 continue
3382 fi
3383 ac_cv_prog_CC="cc"
3384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 break 2
3386 fi
3387 done
3388 done
3389 IFS=$as_save_IFS
3390
3391 if test $ac_prog_rejected = yes; then
3392 # We found a bogon in the path, so make sure we never use it.
3393 set dummy $ac_cv_prog_CC
3394 shift
3395 if test $# != 0; then
3396 # We chose a different compiler from the bogus one.
3397 # However, it has the same basename, so the bogon will be chosen
3398 # first if we set CC to just the basename; use the full file name.
3399 shift
3400 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3401 fi
3402 fi
3403 fi
3404 fi
3405 CC=$ac_cv_prog_CC
3406 if test -n "$CC"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3408 $as_echo "$CC" >&6; }
3409 else
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3412 fi
3413
3414
3415 fi
3416 if test -z "$CC"; then
3417 if test -n "$ac_tool_prefix"; then
3418 for ac_prog in cl.exe
3419 do
3420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if test "${ac_cv_prog_CC+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3440 fi
3441 done
3442 done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 CC=$ac_cv_prog_CC
3448 if test -n "$CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 $as_echo "$CC" >&6; }
3451 else
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454 fi
3455
3456
3457 test -n "$CC" && break
3458 done
3459 fi
3460 if test -z "$CC"; then
3461 ac_ct_CC=$CC
3462 for ac_prog in cl.exe
3463 do
3464 # Extract the first word of "$ac_prog", so it can be a program name with args.
3465 set dummy $ac_prog; ac_word=$2
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467 $as_echo_n "checking for $ac_word... " >&6; }
3468 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 if test -n "$ac_ct_CC"; then
3472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3473 else
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 for as_dir in $PATH
3476 do
3477 IFS=$as_save_IFS
3478 test -z "$as_dir" && as_dir=.
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3481 ac_cv_prog_ac_ct_CC="$ac_prog"
3482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 break 2
3484 fi
3485 done
3486 done
3487 IFS=$as_save_IFS
3488
3489 fi
3490 fi
3491 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3492 if test -n "$ac_ct_CC"; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3494 $as_echo "$ac_ct_CC" >&6; }
3495 else
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 $as_echo "no" >&6; }
3498 fi
3499
3500
3501 test -n "$ac_ct_CC" && break
3502 done
3503
3504 if test "x$ac_ct_CC" = x; then
3505 CC=""
3506 else
3507 case $cross_compiling:$ac_tool_warned in
3508 yes:)
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3511 ac_tool_warned=yes ;;
3512 esac
3513 CC=$ac_ct_CC
3514 fi
3515 fi
3516
3517 fi
3518
3519
3520 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522 as_fn_error "no acceptable C compiler found in \$PATH
3523 See \`config.log' for more details." "$LINENO" 5; }
3524
3525 # Provide some information about the compiler.
3526 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3527 set X $ac_compile
3528 ac_compiler=$2
3529 for ac_option in --version -v -V -qversion; do
3530 { { ac_try="$ac_compiler $ac_option >&5"
3531 case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534 esac
3535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536 $as_echo "$ac_try_echo"; } >&5
3537 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3538 ac_status=$?
3539 if test -s conftest.err; then
3540 sed '10a\
3541 ... rest of stderr output deleted ...
3542 10q' conftest.err >conftest.er1
3543 cat conftest.er1 >&5
3544 rm -f conftest.er1 conftest.err
3545 fi
3546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547 test $ac_status = 0; }
3548 done
3549
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3552
3553 int
3554 main ()
3555 {
3556
3557 ;
3558 return 0;
3559 }
3560 _ACEOF
3561 ac_clean_files_save=$ac_clean_files
3562 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3563 # Try to create an executable without -o first, disregard a.out.
3564 # It will help us diagnose broken compilers, and finding out an intuition
3565 # of exeext.
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3567 $as_echo_n "checking for C compiler default output file name... " >&6; }
3568 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3569
3570 # The possible output files:
3571 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3572
3573 ac_rmfiles=
3574 for ac_file in $ac_files
3575 do
3576 case $ac_file in
3577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3578 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3579 esac
3580 done
3581 rm -f $ac_rmfiles
3582
3583 if { { ac_try="$ac_link_default"
3584 case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587 esac
3588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589 $as_echo "$ac_try_echo"; } >&5
3590 (eval "$ac_link_default") 2>&5
3591 ac_status=$?
3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593 test $ac_status = 0; }; then :
3594 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3595 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3596 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3597 # so that the user can short-circuit this test for compilers unknown to
3598 # Autoconf.
3599 for ac_file in $ac_files ''
3600 do
3601 test -f "$ac_file" || continue
3602 case $ac_file in
3603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3604 ;;
3605 [ab].out )
3606 # We found the default executable, but exeext='' is most
3607 # certainly right.
3608 break;;
3609 *.* )
3610 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3611 then :; else
3612 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3613 fi
3614 # We set ac_cv_exeext here because the later test for it is not
3615 # safe: cross compilers may not add the suffix if given an `-o'
3616 # argument, so we may need to know it at that point already.
3617 # Even if this section looks crufty: it has the advantage of
3618 # actually working.
3619 break;;
3620 * )
3621 break;;
3622 esac
3623 done
3624 test "$ac_cv_exeext" = no && ac_cv_exeext=
3625
3626 else
3627 ac_file=''
3628 fi
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3630 $as_echo "$ac_file" >&6; }
3631 if test -z "$ac_file"; then :
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 { as_fn_set_status 77
3638 as_fn_error "C compiler cannot create executables
3639 See \`config.log' for more details." "$LINENO" 5; }; }
3640 fi
3641 ac_exeext=$ac_cv_exeext
3642
3643 # Check that the compiler produces executables we can run. If not, either
3644 # the compiler is broken, or we cross compile.
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3646 $as_echo_n "checking whether the C compiler works... " >&6; }
3647 # If not cross compiling, check that we can run a simple program.
3648 if test "$cross_compiling" != yes; then
3649 if { ac_try='./$ac_file'
3650 { { case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3653 esac
3654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3655 $as_echo "$ac_try_echo"; } >&5
3656 (eval "$ac_try") 2>&5
3657 ac_status=$?
3658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3659 test $ac_status = 0; }; }; then
3660 cross_compiling=no
3661 else
3662 if test "$cross_compiling" = maybe; then
3663 cross_compiling=yes
3664 else
3665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3667 as_fn_error "cannot run C compiled programs.
3668 If you meant to cross compile, use \`--host'.
3669 See \`config.log' for more details." "$LINENO" 5; }
3670 fi
3671 fi
3672 fi
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3674 $as_echo "yes" >&6; }
3675
3676 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3677 ac_clean_files=$ac_clean_files_save
3678 # Check that the compiler produces executables we can run. If not, either
3679 # the compiler is broken, or we cross compile.
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3681 $as_echo_n "checking whether we are cross compiling... " >&6; }
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3683 $as_echo "$cross_compiling" >&6; }
3684
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3686 $as_echo_n "checking for suffix of executables... " >&6; }
3687 if { { ac_try="$ac_link"
3688 case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691 esac
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 $as_echo "$ac_try_echo"; } >&5
3694 (eval "$ac_link") 2>&5
3695 ac_status=$?
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }; then :
3698 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3699 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3700 # work properly (i.e., refer to `conftest.exe'), while it won't with
3701 # `rm'.
3702 for ac_file in conftest.exe conftest conftest.*; do
3703 test -f "$ac_file" || continue
3704 case $ac_file in
3705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3706 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3707 break;;
3708 * ) break;;
3709 esac
3710 done
3711 else
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error "cannot compute suffix of executables: cannot compile and link
3715 See \`config.log' for more details." "$LINENO" 5; }
3716 fi
3717 rm -f conftest$ac_cv_exeext
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3719 $as_echo "$ac_cv_exeext" >&6; }
3720
3721 rm -f conftest.$ac_ext
3722 EXEEXT=$ac_cv_exeext
3723 ac_exeext=$EXEEXT
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3725 $as_echo_n "checking for suffix of object files... " >&6; }
3726 if test "${ac_cv_objext+set}" = set; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3731
3732 int
3733 main ()
3734 {
3735
3736 ;
3737 return 0;
3738 }
3739 _ACEOF
3740 rm -f conftest.o conftest.obj
3741 if { { ac_try="$ac_compile"
3742 case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745 esac
3746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747 $as_echo "$ac_try_echo"; } >&5
3748 (eval "$ac_compile") 2>&5
3749 ac_status=$?
3750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751 test $ac_status = 0; }; then :
3752 for ac_file in conftest.o conftest.obj conftest.*; do
3753 test -f "$ac_file" || continue;
3754 case $ac_file in
3755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3756 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3757 break;;
3758 esac
3759 done
3760 else
3761 $as_echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3763
3764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3766 as_fn_error "cannot compute suffix of object files: cannot compile
3767 See \`config.log' for more details." "$LINENO" 5; }
3768 fi
3769 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3770 fi
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3772 $as_echo "$ac_cv_objext" >&6; }
3773 OBJEXT=$ac_cv_objext
3774 ac_objext=$OBJEXT
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3776 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3777 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3778 $as_echo_n "(cached) " >&6
3779 else
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3782
3783 int
3784 main ()
3785 {
3786 #ifndef __GNUC__
3787 choke me
3788 #endif
3789
3790 ;
3791 return 0;
3792 }
3793 _ACEOF
3794 if ac_fn_c_try_compile "$LINENO"; then :
3795 ac_compiler_gnu=yes
3796 else
3797 ac_compiler_gnu=no
3798 fi
3799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3800 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3801
3802 fi
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3804 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3805 if test $ac_compiler_gnu = yes; then
3806 GCC=yes
3807 else
3808 GCC=
3809 fi
3810 ac_test_CFLAGS=${CFLAGS+set}
3811 ac_save_CFLAGS=$CFLAGS
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3813 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3814 if test "${ac_cv_prog_cc_g+set}" = set; then :
3815 $as_echo_n "(cached) " >&6
3816 else
3817 ac_save_c_werror_flag=$ac_c_werror_flag
3818 ac_c_werror_flag=yes
3819 ac_cv_prog_cc_g=no
3820 CFLAGS="-g"
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823
3824 int
3825 main ()
3826 {
3827
3828 ;
3829 return 0;
3830 }
3831 _ACEOF
3832 if ac_fn_c_try_compile "$LINENO"; then :
3833 ac_cv_prog_cc_g=yes
3834 else
3835 CFLAGS=""
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3838
3839 int
3840 main ()
3841 {
3842
3843 ;
3844 return 0;
3845 }
3846 _ACEOF
3847 if ac_fn_c_try_compile "$LINENO"; then :
3848
3849 else
3850 ac_c_werror_flag=$ac_save_c_werror_flag
3851 CFLAGS="-g"
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854
3855 int
3856 main ()
3857 {
3858
3859 ;
3860 return 0;
3861 }
3862 _ACEOF
3863 if ac_fn_c_try_compile "$LINENO"; then :
3864 ac_cv_prog_cc_g=yes
3865 fi
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867 fi
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 fi
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 ac_c_werror_flag=$ac_save_c_werror_flag
3872 fi
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3874 $as_echo "$ac_cv_prog_cc_g" >&6; }
3875 if test "$ac_test_CFLAGS" = set; then
3876 CFLAGS=$ac_save_CFLAGS
3877 elif test $ac_cv_prog_cc_g = yes; then
3878 if test "$GCC" = yes; then
3879 CFLAGS="-g -O2"
3880 else
3881 CFLAGS="-g"
3882 fi
3883 else
3884 if test "$GCC" = yes; then
3885 CFLAGS="-O2"
3886 else
3887 CFLAGS=
3888 fi
3889 fi
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3891 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3892 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3893 $as_echo_n "(cached) " >&6
3894 else
3895 ac_cv_prog_cc_c89=no
3896 ac_save_CC=$CC
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3899 #include <stdarg.h>
3900 #include <stdio.h>
3901 #include <sys/types.h>
3902 #include <sys/stat.h>
3903 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3904 struct buf { int x; };
3905 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3906 static char *e (p, i)
3907 char **p;
3908 int i;
3909 {
3910 return p[i];
3911 }
3912 static char *f (char * (*g) (char **, int), char **p, ...)
3913 {
3914 char *s;
3915 va_list v;
3916 va_start (v,p);
3917 s = g (p, va_arg (v,int));
3918 va_end (v);
3919 return s;
3920 }
3921
3922 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3923 function prototypes and stuff, but not '\xHH' hex character constants.
3924 These don't provoke an error unfortunately, instead are silently treated
3925 as 'x'. The following induces an error, until -std is added to get
3926 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3927 array size at least. It's necessary to write '\x00'==0 to get something
3928 that's true only with -std. */
3929 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3930
3931 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3932 inside strings and character constants. */
3933 #define FOO(x) 'x'
3934 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3935
3936 int test (int i, double x);
3937 struct s1 {int (*f) (int a);};
3938 struct s2 {int (*f) (double a);};
3939 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3940 int argc;
3941 char **argv;
3942 int
3943 main ()
3944 {
3945 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3946 ;
3947 return 0;
3948 }
3949 _ACEOF
3950 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3951 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3952 do
3953 CC="$ac_save_CC $ac_arg"
3954 if ac_fn_c_try_compile "$LINENO"; then :
3955 ac_cv_prog_cc_c89=$ac_arg
3956 fi
3957 rm -f core conftest.err conftest.$ac_objext
3958 test "x$ac_cv_prog_cc_c89" != "xno" && break
3959 done
3960 rm -f conftest.$ac_ext
3961 CC=$ac_save_CC
3962
3963 fi
3964 # AC_CACHE_VAL
3965 case "x$ac_cv_prog_cc_c89" in
3966 x)
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3968 $as_echo "none needed" >&6; } ;;
3969 xno)
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3971 $as_echo "unsupported" >&6; } ;;
3972 *)
3973 CC="$CC $ac_cv_prog_cc_c89"
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3975 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3976 esac
3977 if test "x$ac_cv_prog_cc_c89" != xno; then :
3978
3979 fi
3980
3981 ac_ext=c
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986 DEPDIR="${am__leading_dot}deps"
3987
3988 ac_config_commands="$ac_config_commands depfiles"
3989
3990
3991 am_make=${MAKE-make}
3992 cat > confinc << 'END'
3993 am__doit:
3994 @echo this is the am__doit target
3995 .PHONY: am__doit
3996 END
3997 # If we don't find an include directive, just comment out the code.
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3999 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4000 am__include="#"
4001 am__quote=
4002 _am_result=none
4003 # First try GNU make style include.
4004 echo "include confinc" > confmf
4005 # Ignore all kinds of additional output from `make'.
4006 case `$am_make -s -f confmf 2> /dev/null` in #(
4007 *the\ am__doit\ target*)
4008 am__include=include
4009 am__quote=
4010 _am_result=GNU
4011 ;;
4012 esac
4013 # Now try BSD make style include.
4014 if test "$am__include" = "#"; then
4015 echo '.include "confinc"' > confmf
4016 case `$am_make -s -f confmf 2> /dev/null` in #(
4017 *the\ am__doit\ target*)
4018 am__include=.include
4019 am__quote="\""
4020 _am_result=BSD
4021 ;;
4022 esac
4023 fi
4024
4025
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4027 $as_echo "$_am_result" >&6; }
4028 rm -f confinc confmf
4029
4030 # Check whether --enable-dependency-tracking was given.
4031 if test "${enable_dependency_tracking+set}" = set; then :
4032 enableval=$enable_dependency_tracking;
4033 fi
4034
4035 if test "x$enable_dependency_tracking" != xno; then
4036 am_depcomp="$ac_aux_dir/depcomp"
4037 AMDEPBACKSLASH='\'
4038 am__nodep='_no'
4039 fi
4040 if test "x$enable_dependency_tracking" != xno; then
4041 AMDEP_TRUE=
4042 AMDEP_FALSE='#'
4043 else
4044 AMDEP_TRUE='#'
4045 AMDEP_FALSE=
4046 fi
4047
4048
4049
4050 depcc="$CC" am_compiler_list=
4051
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4053 $as_echo_n "checking dependency style of $depcc... " >&6; }
4054 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4055 $as_echo_n "(cached) " >&6
4056 else
4057 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4058 # We make a subdir and do the tests there. Otherwise we can end up
4059 # making bogus files that we don't know about and never remove. For
4060 # instance it was reported that on HP-UX the gcc test will end up
4061 # making a dummy file named `D' -- because `-MD' means `put the output
4062 # in D'.
4063 rm -rf conftest.dir
4064 mkdir conftest.dir
4065 # Copy depcomp to subdir because otherwise we won't find it if we're
4066 # using a relative directory.
4067 cp "$am_depcomp" conftest.dir
4068 cd conftest.dir
4069 # We will build objects and dependencies in a subdirectory because
4070 # it helps to detect inapplicable dependency modes. For instance
4071 # both Tru64's cc and ICC support -MD to output dependencies as a
4072 # side effect of compilation, but ICC will put the dependencies in
4073 # the current directory while Tru64 will put them in the object
4074 # directory.
4075 mkdir sub
4076
4077 am_cv_CC_dependencies_compiler_type=none
4078 if test "$am_compiler_list" = ""; then
4079 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4080 fi
4081 am__universal=false
4082 case " $depcc " in #(
4083 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4084 esac
4085
4086 for depmode in $am_compiler_list; do
4087 # Setup a source with many dependencies, because some compilers
4088 # like to wrap large dependency lists on column 80 (with \), and
4089 # we should not choose a depcomp mode which is confused by this.
4090 #
4091 # We need to recreate these files for each test, as the compiler may
4092 # overwrite some of them when testing with obscure command lines.
4093 # This happens at least with the AIX C compiler.
4094 : > sub/conftest.c
4095 for i in 1 2 3 4 5 6; do
4096 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4097 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4098 # Solaris 8's {/usr,}/bin/sh.
4099 touch sub/conftst$i.h
4100 done
4101 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4102
4103 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4104 # mode. It turns out that the SunPro C++ compiler does not properly
4105 # handle `-M -o', and we need to detect this. Also, some Intel
4106 # versions had trouble with output in subdirs
4107 am__obj=sub/conftest.${OBJEXT-o}
4108 am__minus_obj="-o $am__obj"
4109 case $depmode in
4110 gcc)
4111 # This depmode causes a compiler race in universal mode.
4112 test "$am__universal" = false || continue
4113 ;;
4114 nosideeffect)
4115 # after this tag, mechanisms are not by side-effect, so they'll
4116 # only be used when explicitly requested
4117 if test "x$enable_dependency_tracking" = xyes; then
4118 continue
4119 else
4120 break
4121 fi
4122 ;;
4123 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4124 # This compiler won't grok `-c -o', but also, the minuso test has
4125 # not run yet. These depmodes are late enough in the game, and
4126 # so weak that their functioning should not be impacted.
4127 am__obj=conftest.${OBJEXT-o}
4128 am__minus_obj=
4129 ;;
4130 none) break ;;
4131 esac
4132 if depmode=$depmode \
4133 source=sub/conftest.c object=$am__obj \
4134 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4135 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4136 >/dev/null 2>conftest.err &&
4137 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4138 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4139 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4140 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4141 # icc doesn't choke on unknown options, it will just issue warnings
4142 # or remarks (even with -Werror). So we grep stderr for any message
4143 # that says an option was ignored or not supported.
4144 # When given -MP, icc 7.0 and 7.1 complain thusly:
4145 # icc: Command line warning: ignoring option '-M'; no argument required
4146 # The diagnosis changed in icc 8.0:
4147 # icc: Command line remark: option '-MP' not supported
4148 if (grep 'ignoring option' conftest.err ||
4149 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4150 am_cv_CC_dependencies_compiler_type=$depmode
4151 break
4152 fi
4153 fi
4154 done
4155
4156 cd ..
4157 rm -rf conftest.dir
4158 else
4159 am_cv_CC_dependencies_compiler_type=none
4160 fi
4161
4162 fi
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4164 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4165 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4166
4167 if
4168 test "x$enable_dependency_tracking" != xno \
4169 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4170 am__fastdepCC_TRUE=
4171 am__fastdepCC_FALSE='#'
4172 else
4173 am__fastdepCC_TRUE='#'
4174 am__fastdepCC_FALSE=
4175 fi
4176
4177
4178 # By default we simply use the C compiler to build assembly code.
4179
4180 test "${CCAS+set}" = set || CCAS=$CC
4181 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4182
4183
4184
4185 depcc="$CCAS" am_compiler_list=
4186
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4188 $as_echo_n "checking dependency style of $depcc... " >&6; }
4189 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4193 # We make a subdir and do the tests there. Otherwise we can end up
4194 # making bogus files that we don't know about and never remove. For
4195 # instance it was reported that on HP-UX the gcc test will end up
4196 # making a dummy file named `D' -- because `-MD' means `put the output
4197 # in D'.
4198 rm -rf conftest.dir
4199 mkdir conftest.dir
4200 # Copy depcomp to subdir because otherwise we won't find it if we're
4201 # using a relative directory.
4202 cp "$am_depcomp" conftest.dir
4203 cd conftest.dir
4204 # We will build objects and dependencies in a subdirectory because
4205 # it helps to detect inapplicable dependency modes. For instance
4206 # both Tru64's cc and ICC support -MD to output dependencies as a
4207 # side effect of compilation, but ICC will put the dependencies in
4208 # the current directory while Tru64 will put them in the object
4209 # directory.
4210 mkdir sub
4211
4212 am_cv_CCAS_dependencies_compiler_type=none
4213 if test "$am_compiler_list" = ""; then
4214 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4215 fi
4216 am__universal=false
4217
4218
4219 for depmode in $am_compiler_list; do
4220 # Setup a source with many dependencies, because some compilers
4221 # like to wrap large dependency lists on column 80 (with \), and
4222 # we should not choose a depcomp mode which is confused by this.
4223 #
4224 # We need to recreate these files for each test, as the compiler may
4225 # overwrite some of them when testing with obscure command lines.
4226 # This happens at least with the AIX C compiler.
4227 : > sub/conftest.c
4228 for i in 1 2 3 4 5 6; do
4229 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4230 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4231 # Solaris 8's {/usr,}/bin/sh.
4232 touch sub/conftst$i.h
4233 done
4234 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4235
4236 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4237 # mode. It turns out that the SunPro C++ compiler does not properly
4238 # handle `-M -o', and we need to detect this. Also, some Intel
4239 # versions had trouble with output in subdirs
4240 am__obj=sub/conftest.${OBJEXT-o}
4241 am__minus_obj="-o $am__obj"
4242 case $depmode in
4243 gcc)
4244 # This depmode causes a compiler race in universal mode.
4245 test "$am__universal" = false || continue
4246 ;;
4247 nosideeffect)
4248 # after this tag, mechanisms are not by side-effect, so they'll
4249 # only be used when explicitly requested
4250 if test "x$enable_dependency_tracking" = xyes; then
4251 continue
4252 else
4253 break
4254 fi
4255 ;;
4256 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4257 # This compiler won't grok `-c -o', but also, the minuso test has
4258 # not run yet. These depmodes are late enough in the game, and
4259 # so weak that their functioning should not be impacted.
4260 am__obj=conftest.${OBJEXT-o}
4261 am__minus_obj=
4262 ;;
4263 none) break ;;
4264 esac
4265 if depmode=$depmode \
4266 source=sub/conftest.c object=$am__obj \
4267 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4268 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4269 >/dev/null 2>conftest.err &&
4270 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4271 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4272 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4273 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4274 # icc doesn't choke on unknown options, it will just issue warnings
4275 # or remarks (even with -Werror). So we grep stderr for any message
4276 # that says an option was ignored or not supported.
4277 # When given -MP, icc 7.0 and 7.1 complain thusly:
4278 # icc: Command line warning: ignoring option '-M'; no argument required
4279 # The diagnosis changed in icc 8.0:
4280 # icc: Command line remark: option '-MP' not supported
4281 if (grep 'ignoring option' conftest.err ||
4282 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4283 am_cv_CCAS_dependencies_compiler_type=$depmode
4284 break
4285 fi
4286 fi
4287 done
4288
4289 cd ..
4290 rm -rf conftest.dir
4291 else
4292 am_cv_CCAS_dependencies_compiler_type=none
4293 fi
4294
4295 fi
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4297 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4298 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4299
4300 if
4301 test "x$enable_dependency_tracking" != xno \
4302 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4303 am__fastdepCCAS_TRUE=
4304 am__fastdepCCAS_FALSE='#'
4305 else
4306 am__fastdepCCAS_TRUE='#'
4307 am__fastdepCCAS_FALSE=
4308 fi
4309
4310
4311
4312
4313
4314
4315 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4316 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4317 # in both places for now and restore CFLAGS at the end of config.
4318 save_CFLAGS="$CFLAGS"
4319
4320 # Find other programs we need.
4321 if test -n "$ac_tool_prefix"; then
4322 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4323 set dummy ${ac_tool_prefix}ar; ac_word=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if test "${ac_cv_prog_AR+set}" = set; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 if test -n "$AR"; then
4330 ac_cv_prog_AR="$AR" # Let the user override the test.
4331 else
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4334 do
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_prog_AR="${ac_tool_prefix}ar"
4340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 break 2
4342 fi
4343 done
4344 done
4345 IFS=$as_save_IFS
4346
4347 fi
4348 fi
4349 AR=$ac_cv_prog_AR
4350 if test -n "$AR"; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4352 $as_echo "$AR" >&6; }
4353 else
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4356 fi
4357
4358
4359 fi
4360 if test -z "$ac_cv_prog_AR"; then
4361 ac_ct_AR=$AR
4362 # Extract the first word of "ar", so it can be a program name with args.
4363 set dummy ar; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if test -n "$ac_ct_AR"; then
4370 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4374 do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_ac_ct_AR="ar"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4382 fi
4383 done
4384 done
4385 IFS=$as_save_IFS
4386
4387 fi
4388 fi
4389 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4390 if test -n "$ac_ct_AR"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4392 $as_echo "$ac_ct_AR" >&6; }
4393 else
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4396 fi
4397
4398 if test "x$ac_ct_AR" = x; then
4399 AR=""
4400 else
4401 case $cross_compiling:$ac_tool_warned in
4402 yes:)
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned=yes ;;
4406 esac
4407 AR=$ac_ct_AR
4408 fi
4409 else
4410 AR="$ac_cv_prog_AR"
4411 fi
4412
4413 if test -n "$ac_tool_prefix"; then
4414 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4415 set dummy ${ac_tool_prefix}nm; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if test "${ac_cv_prog_NM+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 if test -n "$NM"; then
4422 ac_cv_prog_NM="$NM" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4426 do
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_NM="${ac_tool_prefix}nm"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4434 fi
4435 done
4436 done
4437 IFS=$as_save_IFS
4438
4439 fi
4440 fi
4441 NM=$ac_cv_prog_NM
4442 if test -n "$NM"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4444 $as_echo "$NM" >&6; }
4445 else
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4448 fi
4449
4450
4451 fi
4452 if test -z "$ac_cv_prog_NM"; then
4453 ac_ct_NM=$NM
4454 # Extract the first word of "nm", so it can be a program name with args.
4455 set dummy nm; ac_word=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 if test -n "$ac_ct_NM"; then
4462 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4466 do
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 ac_cv_prog_ac_ct_NM="nm"
4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4474 fi
4475 done
4476 done
4477 IFS=$as_save_IFS
4478
4479 fi
4480 fi
4481 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4482 if test -n "$ac_ct_NM"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4484 $as_echo "$ac_ct_NM" >&6; }
4485 else
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4488 fi
4489
4490 if test "x$ac_ct_NM" = x; then
4491 NM=""
4492 else
4493 case $cross_compiling:$ac_tool_warned in
4494 yes:)
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4497 ac_tool_warned=yes ;;
4498 esac
4499 NM=$ac_ct_NM
4500 fi
4501 else
4502 NM="$ac_cv_prog_NM"
4503 fi
4504
4505 if test -n "$ac_tool_prefix"; then
4506 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4507 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509 $as_echo_n "checking for $ac_word... " >&6; }
4510 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 if test -n "$RANLIB"; then
4514 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4515 else
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH
4518 do
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4523 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4525 break 2
4526 fi
4527 done
4528 done
4529 IFS=$as_save_IFS
4530
4531 fi
4532 fi
4533 RANLIB=$ac_cv_prog_RANLIB
4534 if test -n "$RANLIB"; then
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4536 $as_echo "$RANLIB" >&6; }
4537 else
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539 $as_echo "no" >&6; }
4540 fi
4541
4542
4543 fi
4544 if test -z "$ac_cv_prog_RANLIB"; then
4545 ac_ct_RANLIB=$RANLIB
4546 # Extract the first word of "ranlib", so it can be a program name with args.
4547 set dummy ranlib; ac_word=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 if test -n "$ac_ct_RANLIB"; then
4554 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4558 do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4563 ac_cv_prog_ac_ct_RANLIB="ranlib"
4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4566 fi
4567 done
4568 done
4569 IFS=$as_save_IFS
4570
4571 fi
4572 fi
4573 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4574 if test -n "$ac_ct_RANLIB"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4576 $as_echo "$ac_ct_RANLIB" >&6; }
4577 else
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4580 fi
4581
4582 if test "x$ac_ct_RANLIB" = x; then
4583 RANLIB="ranlib-not-found-in-path-error"
4584 else
4585 case $cross_compiling:$ac_tool_warned in
4586 yes:)
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4589 ac_tool_warned=yes ;;
4590 esac
4591 RANLIB=$ac_ct_RANLIB
4592 fi
4593 else
4594 RANLIB="$ac_cv_prog_RANLIB"
4595 fi
4596
4597 # Extract the first word of "perl", so it can be a program name with args.
4598 set dummy perl; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if test "${ac_cv_path_PERL+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 case $PERL in
4605 [\\/]* | ?:[\\/]*)
4606 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4607 ;;
4608 *)
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4611 do
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
4619 fi
4620 done
4621 done
4622 IFS=$as_save_IFS
4623
4624 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4625 ;;
4626 esac
4627 fi
4628 PERL=$ac_cv_path_PERL
4629 if test -n "$PERL"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4631 $as_echo "$PERL" >&6; }
4632 else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4635 fi
4636
4637
4638
4639
4640 # Configure libtool
4641 case `pwd` in
4642 *\ * | *\ *)
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4644 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4645 esac
4646
4647
4648
4649 macro_version='2.2.7a'
4650 macro_revision='1.3134'
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664 ltmain="$ac_aux_dir/ltmain.sh"
4665
4666 # Backslashify metacharacters that are still active within
4667 # double-quoted strings.
4668 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4669
4670 # Same as above, but do not quote variable references.
4671 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4672
4673 # Sed substitution to delay expansion of an escaped shell variable in a
4674 # double_quote_subst'ed string.
4675 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4676
4677 # Sed substitution to delay expansion of an escaped single quote.
4678 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4679
4680 # Sed substitution to avoid accidental globbing in evaled expressions
4681 no_glob_subst='s/\*/\\\*/g'
4682
4683 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4684 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4685 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4686
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4688 $as_echo_n "checking how to print strings... " >&6; }
4689 # Test print first, because it will be a builtin if present.
4690 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4691 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4692 ECHO='print -r --'
4693 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4694 ECHO='printf %s\n'
4695 else
4696 # Use this function as a fallback that always works.
4697 func_fallback_echo ()
4698 {
4699 eval 'cat <<_LTECHO_EOF
4700 $1
4701 _LTECHO_EOF'
4702 }
4703 ECHO='func_fallback_echo'
4704 fi
4705
4706 # func_echo_all arg...
4707 # Invoke $ECHO with all args, space-separated.
4708 func_echo_all ()
4709 {
4710 $ECHO ""
4711 }
4712
4713 case "$ECHO" in
4714 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4715 $as_echo "printf" >&6; } ;;
4716 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4717 $as_echo "print -r" >&6; } ;;
4718 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4719 $as_echo "cat" >&6; } ;;
4720 esac
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4736 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4737 if test "${ac_cv_path_SED+set}" = set; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4740 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4741 for ac_i in 1 2 3 4 5 6 7; do
4742 ac_script="$ac_script$as_nl$ac_script"
4743 done
4744 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4745 { ac_script=; unset ac_script;}
4746 if test -z "$SED"; then
4747 ac_path_SED_found=false
4748 # Loop through the user's path and test for each of PROGNAME-LIST
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_prog in sed gsed; do
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4757 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4758 # Check for GNU ac_path_SED and select it if it is found.
4759 # Check for GNU $ac_path_SED
4760 case `"$ac_path_SED" --version 2>&1` in
4761 *GNU*)
4762 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4763 *)
4764 ac_count=0
4765 $as_echo_n 0123456789 >"conftest.in"
4766 while :
4767 do
4768 cat "conftest.in" "conftest.in" >"conftest.tmp"
4769 mv "conftest.tmp" "conftest.in"
4770 cp "conftest.in" "conftest.nl"
4771 $as_echo '' >> "conftest.nl"
4772 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4773 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4774 as_fn_arith $ac_count + 1 && ac_count=$as_val
4775 if test $ac_count -gt ${ac_path_SED_max-0}; then
4776 # Best one so far, save it but keep looking for a better one
4777 ac_cv_path_SED="$ac_path_SED"
4778 ac_path_SED_max=$ac_count
4779 fi
4780 # 10*(2^10) chars as input seems more than enough
4781 test $ac_count -gt 10 && break
4782 done
4783 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4784 esac
4785
4786 $ac_path_SED_found && break 3
4787 done
4788 done
4789 done
4790 IFS=$as_save_IFS
4791 if test -z "$ac_cv_path_SED"; then
4792 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4793 fi
4794 else
4795 ac_cv_path_SED=$SED
4796 fi
4797
4798 fi
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4800 $as_echo "$ac_cv_path_SED" >&6; }
4801 SED="$ac_cv_path_SED"
4802 rm -f conftest.sed
4803
4804 test -z "$SED" && SED=sed
4805 Xsed="$SED -e 1s/^X//"
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4818 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4819 if test "${ac_cv_path_GREP+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 if test -z "$GREP"; then
4823 ac_path_GREP_found=false
4824 # Loop through the user's path and test for each of PROGNAME-LIST
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4827 do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_prog in grep ggrep; do
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4833 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4834 # Check for GNU ac_path_GREP and select it if it is found.
4835 # Check for GNU $ac_path_GREP
4836 case `"$ac_path_GREP" --version 2>&1` in
4837 *GNU*)
4838 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4839 *)
4840 ac_count=0
4841 $as_echo_n 0123456789 >"conftest.in"
4842 while :
4843 do
4844 cat "conftest.in" "conftest.in" >"conftest.tmp"
4845 mv "conftest.tmp" "conftest.in"
4846 cp "conftest.in" "conftest.nl"
4847 $as_echo 'GREP' >> "conftest.nl"
4848 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4849 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4850 as_fn_arith $ac_count + 1 && ac_count=$as_val
4851 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4852 # Best one so far, save it but keep looking for a better one
4853 ac_cv_path_GREP="$ac_path_GREP"
4854 ac_path_GREP_max=$ac_count
4855 fi
4856 # 10*(2^10) chars as input seems more than enough
4857 test $ac_count -gt 10 && break
4858 done
4859 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4860 esac
4861
4862 $ac_path_GREP_found && break 3
4863 done
4864 done
4865 done
4866 IFS=$as_save_IFS
4867 if test -z "$ac_cv_path_GREP"; then
4868 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4869 fi
4870 else
4871 ac_cv_path_GREP=$GREP
4872 fi
4873
4874 fi
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4876 $as_echo "$ac_cv_path_GREP" >&6; }
4877 GREP="$ac_cv_path_GREP"
4878
4879
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4881 $as_echo_n "checking for egrep... " >&6; }
4882 if test "${ac_cv_path_EGREP+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4886 then ac_cv_path_EGREP="$GREP -E"
4887 else
4888 if test -z "$EGREP"; then
4889 ac_path_EGREP_found=false
4890 # Loop through the user's path and test for each of PROGNAME-LIST
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4893 do
4894 IFS=$as_save_IFS
4895 test -z "$as_dir" && as_dir=.
4896 for ac_prog in egrep; do
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4899 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4900 # Check for GNU ac_path_EGREP and select it if it is found.
4901 # Check for GNU $ac_path_EGREP
4902 case `"$ac_path_EGREP" --version 2>&1` in
4903 *GNU*)
4904 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4905 *)
4906 ac_count=0
4907 $as_echo_n 0123456789 >"conftest.in"
4908 while :
4909 do
4910 cat "conftest.in" "conftest.in" >"conftest.tmp"
4911 mv "conftest.tmp" "conftest.in"
4912 cp "conftest.in" "conftest.nl"
4913 $as_echo 'EGREP' >> "conftest.nl"
4914 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4916 as_fn_arith $ac_count + 1 && ac_count=$as_val
4917 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4918 # Best one so far, save it but keep looking for a better one
4919 ac_cv_path_EGREP="$ac_path_EGREP"
4920 ac_path_EGREP_max=$ac_count
4921 fi
4922 # 10*(2^10) chars as input seems more than enough
4923 test $ac_count -gt 10 && break
4924 done
4925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4926 esac
4927
4928 $ac_path_EGREP_found && break 3
4929 done
4930 done
4931 done
4932 IFS=$as_save_IFS
4933 if test -z "$ac_cv_path_EGREP"; then
4934 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4935 fi
4936 else
4937 ac_cv_path_EGREP=$EGREP
4938 fi
4939
4940 fi
4941 fi
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4943 $as_echo "$ac_cv_path_EGREP" >&6; }
4944 EGREP="$ac_cv_path_EGREP"
4945
4946
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4948 $as_echo_n "checking for fgrep... " >&6; }
4949 if test "${ac_cv_path_FGREP+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4953 then ac_cv_path_FGREP="$GREP -F"
4954 else
4955 if test -z "$FGREP"; then
4956 ac_path_FGREP_found=false
4957 # Loop through the user's path and test for each of PROGNAME-LIST
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4960 do
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 for ac_prog in fgrep; do
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4966 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4967 # Check for GNU ac_path_FGREP and select it if it is found.
4968 # Check for GNU $ac_path_FGREP
4969 case `"$ac_path_FGREP" --version 2>&1` in
4970 *GNU*)
4971 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4972 *)
4973 ac_count=0
4974 $as_echo_n 0123456789 >"conftest.in"
4975 while :
4976 do
4977 cat "conftest.in" "conftest.in" >"conftest.tmp"
4978 mv "conftest.tmp" "conftest.in"
4979 cp "conftest.in" "conftest.nl"
4980 $as_echo 'FGREP' >> "conftest.nl"
4981 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4983 as_fn_arith $ac_count + 1 && ac_count=$as_val
4984 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4985 # Best one so far, save it but keep looking for a better one
4986 ac_cv_path_FGREP="$ac_path_FGREP"
4987 ac_path_FGREP_max=$ac_count
4988 fi
4989 # 10*(2^10) chars as input seems more than enough
4990 test $ac_count -gt 10 && break
4991 done
4992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4993 esac
4994
4995 $ac_path_FGREP_found && break 3
4996 done
4997 done
4998 done
4999 IFS=$as_save_IFS
5000 if test -z "$ac_cv_path_FGREP"; then
5001 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5002 fi
5003 else
5004 ac_cv_path_FGREP=$FGREP
5005 fi
5006
5007 fi
5008 fi
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5010 $as_echo "$ac_cv_path_FGREP" >&6; }
5011 FGREP="$ac_cv_path_FGREP"
5012
5013
5014 test -z "$GREP" && GREP=grep
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034 # Check whether --with-gnu-ld was given.
5035 if test "${with_gnu_ld+set}" = set; then :
5036 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5037 else
5038 with_gnu_ld=no
5039 fi
5040
5041 ac_prog=ld
5042 if test "$GCC" = yes; then
5043 # Check if gcc -print-prog-name=ld gives a path.
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5045 $as_echo_n "checking for ld used by $CC... " >&6; }
5046 case $host in
5047 *-*-mingw*)
5048 # gcc leaves a trailing carriage return which upsets mingw
5049 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5050 *)
5051 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5052 esac
5053 case $ac_prog in
5054 # Accept absolute paths.
5055 [\\/]* | ?:[\\/]*)
5056 re_direlt='/[^/][^/]*/\.\./'
5057 # Canonicalize the pathname of ld
5058 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5059 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5060 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5061 done
5062 test -z "$LD" && LD="$ac_prog"
5063 ;;
5064 "")
5065 # If it fails, then pretend we aren't using GCC.
5066 ac_prog=ld
5067 ;;
5068 *)
5069 # If it is relative, then search for the first ld in PATH.
5070 with_gnu_ld=unknown
5071 ;;
5072 esac
5073 elif test "$with_gnu_ld" = yes; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5075 $as_echo_n "checking for GNU ld... " >&6; }
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5078 $as_echo_n "checking for non-GNU ld... " >&6; }
5079 fi
5080 if test "${lt_cv_path_LD+set}" = set; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 if test -z "$LD"; then
5084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5085 for ac_dir in $PATH; do
5086 IFS="$lt_save_ifs"
5087 test -z "$ac_dir" && ac_dir=.
5088 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5089 lt_cv_path_LD="$ac_dir/$ac_prog"
5090 # Check to see if the program is GNU ld. I'd rather use --version,
5091 # but apparently some variants of GNU ld only accept -v.
5092 # Break only if it was the GNU/non-GNU ld that we prefer.
5093 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5094 *GNU* | *'with BFD'*)
5095 test "$with_gnu_ld" != no && break
5096 ;;
5097 *)
5098 test "$with_gnu_ld" != yes && break
5099 ;;
5100 esac
5101 fi
5102 done
5103 IFS="$lt_save_ifs"
5104 else
5105 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5106 fi
5107 fi
5108
5109 LD="$lt_cv_path_LD"
5110 if test -n "$LD"; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5112 $as_echo "$LD" >&6; }
5113 else
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 $as_echo "no" >&6; }
5116 fi
5117 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5119 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5120 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5124 case `$LD -v 2>&1 </dev/null` in
5125 *GNU* | *'with BFD'*)
5126 lt_cv_prog_gnu_ld=yes
5127 ;;
5128 *)
5129 lt_cv_prog_gnu_ld=no
5130 ;;
5131 esac
5132 fi
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5134 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5135 with_gnu_ld=$lt_cv_prog_gnu_ld
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5146 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5147 if test "${lt_cv_path_NM+set}" = set; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 if test -n "$NM"; then
5151 # Let the user override the test.
5152 lt_cv_path_NM="$NM"
5153 else
5154 lt_nm_to_check="${ac_tool_prefix}nm"
5155 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5156 lt_nm_to_check="$lt_nm_to_check nm"
5157 fi
5158 for lt_tmp_nm in $lt_nm_to_check; do
5159 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5160 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5161 IFS="$lt_save_ifs"
5162 test -z "$ac_dir" && ac_dir=.
5163 tmp_nm="$ac_dir/$lt_tmp_nm"
5164 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5165 # Check to see if the nm accepts a BSD-compat flag.
5166 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5167 # nm: unknown option "B" ignored
5168 # Tru64's nm complains that /dev/null is an invalid object file
5169 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5170 */dev/null* | *'Invalid file or object type'*)
5171 lt_cv_path_NM="$tmp_nm -B"
5172 break
5173 ;;
5174 *)
5175 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5176 */dev/null*)
5177 lt_cv_path_NM="$tmp_nm -p"
5178 break
5179 ;;
5180 *)
5181 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5182 continue # so that we can try to find one that supports BSD flags
5183 ;;
5184 esac
5185 ;;
5186 esac
5187 fi
5188 done
5189 IFS="$lt_save_ifs"
5190 done
5191 : ${lt_cv_path_NM=no}
5192 fi
5193 fi
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5195 $as_echo "$lt_cv_path_NM" >&6; }
5196 if test "$lt_cv_path_NM" != "no"; then
5197 NM="$lt_cv_path_NM"
5198 else
5199 # Didn't find any BSD compatible name lister, look for dumpbin.
5200 if test -n "$DUMPBIN"; then :
5201 # Let the user override the test.
5202 else
5203 if test -n "$ac_tool_prefix"; then
5204 for ac_prog in dumpbin "link -dump"
5205 do
5206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 if test -n "$DUMPBIN"; then
5214 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5226 fi
5227 done
5228 done
5229 IFS=$as_save_IFS
5230
5231 fi
5232 fi
5233 DUMPBIN=$ac_cv_prog_DUMPBIN
5234 if test -n "$DUMPBIN"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5236 $as_echo "$DUMPBIN" >&6; }
5237 else
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5240 fi
5241
5242
5243 test -n "$DUMPBIN" && break
5244 done
5245 fi
5246 if test -z "$DUMPBIN"; then
5247 ac_ct_DUMPBIN=$DUMPBIN
5248 for ac_prog in dumpbin "link -dump"
5249 do
5250 # Extract the first word of "$ac_prog", so it can be a program name with args.
5251 set dummy $ac_prog; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 if test -n "$ac_ct_DUMPBIN"; then
5258 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5259 else
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5262 do
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 break 2
5270 fi
5271 done
5272 done
5273 IFS=$as_save_IFS
5274
5275 fi
5276 fi
5277 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5278 if test -n "$ac_ct_DUMPBIN"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5280 $as_echo "$ac_ct_DUMPBIN" >&6; }
5281 else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5284 fi
5285
5286
5287 test -n "$ac_ct_DUMPBIN" && break
5288 done
5289
5290 if test "x$ac_ct_DUMPBIN" = x; then
5291 DUMPBIN=":"
5292 else
5293 case $cross_compiling:$ac_tool_warned in
5294 yes:)
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297 ac_tool_warned=yes ;;
5298 esac
5299 DUMPBIN=$ac_ct_DUMPBIN
5300 fi
5301 fi
5302
5303 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5304 *COFF*)
5305 DUMPBIN="$DUMPBIN -symbols"
5306 ;;
5307 *)
5308 DUMPBIN=:
5309 ;;
5310 esac
5311 fi
5312
5313 if test "$DUMPBIN" != ":"; then
5314 NM="$DUMPBIN"
5315 fi
5316 fi
5317 test -z "$NM" && NM=nm
5318
5319
5320
5321
5322
5323
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5325 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5326 if test "${lt_cv_nm_interface+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 lt_cv_nm_interface="BSD nm"
5330 echo "int some_variable = 0;" > conftest.$ac_ext
5331 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5332 (eval "$ac_compile" 2>conftest.err)
5333 cat conftest.err >&5
5334 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5335 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5336 cat conftest.err >&5
5337 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5338 cat conftest.out >&5
5339 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5340 lt_cv_nm_interface="MS dumpbin"
5341 fi
5342 rm -f conftest*
5343 fi
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5345 $as_echo "$lt_cv_nm_interface" >&6; }
5346
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5348 $as_echo_n "checking whether ln -s works... " >&6; }
5349 LN_S=$as_ln_s
5350 if test "$LN_S" = "ln -s"; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5352 $as_echo "yes" >&6; }
5353 else
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5355 $as_echo "no, using $LN_S" >&6; }
5356 fi
5357
5358 # find the maximum length of command line arguments
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5360 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5361 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 i=0
5365 teststring="ABCD"
5366
5367 case $build_os in
5368 msdosdjgpp*)
5369 # On DJGPP, this test can blow up pretty badly due to problems in libc
5370 # (any single argument exceeding 2000 bytes causes a buffer overrun
5371 # during glob expansion). Even if it were fixed, the result of this
5372 # check would be larger than it should be.
5373 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5374 ;;
5375
5376 gnu*)
5377 # Under GNU Hurd, this test is not required because there is
5378 # no limit to the length of command line arguments.
5379 # Libtool will interpret -1 as no limit whatsoever
5380 lt_cv_sys_max_cmd_len=-1;
5381 ;;
5382
5383 cygwin* | mingw* | cegcc*)
5384 # On Win9x/ME, this test blows up -- it succeeds, but takes
5385 # about 5 minutes as the teststring grows exponentially.
5386 # Worse, since 9x/ME are not pre-emptively multitasking,
5387 # you end up with a "frozen" computer, even though with patience
5388 # the test eventually succeeds (with a max line length of 256k).
5389 # Instead, let's just punt: use the minimum linelength reported by
5390 # all of the supported platforms: 8192 (on NT/2K/XP).
5391 lt_cv_sys_max_cmd_len=8192;
5392 ;;
5393
5394 mint*)
5395 # On MiNT this can take a long time and run out of memory.
5396 lt_cv_sys_max_cmd_len=8192;
5397 ;;
5398
5399 amigaos*)
5400 # On AmigaOS with pdksh, this test takes hours, literally.
5401 # So we just punt and use a minimum line length of 8192.
5402 lt_cv_sys_max_cmd_len=8192;
5403 ;;
5404
5405 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5406 # This has been around since 386BSD, at least. Likely further.
5407 if test -x /sbin/sysctl; then
5408 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5409 elif test -x /usr/sbin/sysctl; then
5410 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5411 else
5412 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5413 fi
5414 # And add a safety zone
5415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5417 ;;
5418
5419 interix*)
5420 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5421 lt_cv_sys_max_cmd_len=196608
5422 ;;
5423
5424 osf*)
5425 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5426 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5427 # nice to cause kernel panics so lets avoid the loop below.
5428 # First set a reasonable default.
5429 lt_cv_sys_max_cmd_len=16384
5430 #
5431 if test -x /sbin/sysconfig; then
5432 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5433 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5434 esac
5435 fi
5436 ;;
5437 sco3.2v5*)
5438 lt_cv_sys_max_cmd_len=102400
5439 ;;
5440 sysv5* | sco5v6* | sysv4.2uw2*)
5441 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5442 if test -n "$kargmax"; then
5443 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5444 else
5445 lt_cv_sys_max_cmd_len=32768
5446 fi
5447 ;;
5448 *)
5449 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5450 if test -n "$lt_cv_sys_max_cmd_len"; then
5451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5453 else
5454 # Make teststring a little bigger before we do anything with it.
5455 # a 1K string should be a reasonable start.
5456 for i in 1 2 3 4 5 6 7 8 ; do
5457 teststring=$teststring$teststring
5458 done
5459 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5460 # If test is not a shell built-in, we'll probably end up computing a
5461 # maximum length that is only half of the actual maximum length, but
5462 # we can't tell.
5463 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5464 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5465 test $i != 17 # 1/2 MB should be enough
5466 do
5467 i=`expr $i + 1`
5468 teststring=$teststring$teststring
5469 done
5470 # Only check the string length outside the loop.
5471 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5472 teststring=
5473 # Add a significant safety factor because C++ compilers can tack on
5474 # massive amounts of additional arguments before passing them to the
5475 # linker. It appears as though 1/2 is a usable value.
5476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5477 fi
5478 ;;
5479 esac
5480
5481 fi
5482
5483 if test -n $lt_cv_sys_max_cmd_len ; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5485 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5486 else
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5488 $as_echo "none" >&6; }
5489 fi
5490 max_cmd_len=$lt_cv_sys_max_cmd_len
5491
5492
5493
5494
5495
5496
5497 : ${CP="cp -f"}
5498 : ${MV="mv -f"}
5499 : ${RM="rm -f"}
5500
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5502 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5503 # Try some XSI features
5504 xsi_shell=no
5505 ( _lt_dummy="a/b/c"
5506 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5507 = c,a/b,, \
5508 && eval 'test $(( 1 + 1 )) -eq 2 \
5509 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5510 && xsi_shell=yes
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5512 $as_echo "$xsi_shell" >&6; }
5513
5514
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5516 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5517 lt_shell_append=no
5518 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5519 >/dev/null 2>&1 \
5520 && lt_shell_append=yes
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5522 $as_echo "$lt_shell_append" >&6; }
5523
5524
5525 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5526 lt_unset=unset
5527 else
5528 lt_unset=false
5529 fi
5530
5531
5532
5533
5534
5535 # test EBCDIC or ASCII
5536 case `echo X|tr X '\101'` in
5537 A) # ASCII based system
5538 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5539 lt_SP2NL='tr \040 \012'
5540 lt_NL2SP='tr \015\012 \040\040'
5541 ;;
5542 *) # EBCDIC based system
5543 lt_SP2NL='tr \100 \n'
5544 lt_NL2SP='tr \r\n \100\100'
5545 ;;
5546 esac
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5557 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5558 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 lt_cv_ld_reload_flag='-r'
5562 fi
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5564 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5565 reload_flag=$lt_cv_ld_reload_flag
5566 case $reload_flag in
5567 "" | " "*) ;;
5568 *) reload_flag=" $reload_flag" ;;
5569 esac
5570 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5571 case $host_os in
5572 darwin*)
5573 if test "$GCC" = yes; then
5574 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5575 else
5576 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5577 fi
5578 ;;
5579 esac
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589 if test -n "$ac_tool_prefix"; then
5590 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5591 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593 $as_echo_n "checking for $ac_word... " >&6; }
5594 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 if test -n "$OBJDUMP"; then
5598 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5599 else
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5602 do
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5607 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 break 2
5610 fi
5611 done
5612 done
5613 IFS=$as_save_IFS
5614
5615 fi
5616 fi
5617 OBJDUMP=$ac_cv_prog_OBJDUMP
5618 if test -n "$OBJDUMP"; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5620 $as_echo "$OBJDUMP" >&6; }
5621 else
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5624 fi
5625
5626
5627 fi
5628 if test -z "$ac_cv_prog_OBJDUMP"; then
5629 ac_ct_OBJDUMP=$OBJDUMP
5630 # Extract the first word of "objdump", so it can be a program name with args.
5631 set dummy objdump; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 if test -n "$ac_ct_OBJDUMP"; then
5638 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5639 else
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5642 do
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5650 fi
5651 done
5652 done
5653 IFS=$as_save_IFS
5654
5655 fi
5656 fi
5657 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5658 if test -n "$ac_ct_OBJDUMP"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5660 $as_echo "$ac_ct_OBJDUMP" >&6; }
5661 else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5664 fi
5665
5666 if test "x$ac_ct_OBJDUMP" = x; then
5667 OBJDUMP="false"
5668 else
5669 case $cross_compiling:$ac_tool_warned in
5670 yes:)
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5673 ac_tool_warned=yes ;;
5674 esac
5675 OBJDUMP=$ac_ct_OBJDUMP
5676 fi
5677 else
5678 OBJDUMP="$ac_cv_prog_OBJDUMP"
5679 fi
5680
5681 test -z "$OBJDUMP" && OBJDUMP=objdump
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5692 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5693 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5694 $as_echo_n "(cached) " >&6
5695 else
5696 lt_cv_file_magic_cmd='$MAGIC_CMD'
5697 lt_cv_file_magic_test_file=
5698 lt_cv_deplibs_check_method='unknown'
5699 # Need to set the preceding variable on all platforms that support
5700 # interlibrary dependencies.
5701 # 'none' -- dependencies not supported.
5702 # `unknown' -- same as none, but documents that we really don't know.
5703 # 'pass_all' -- all dependencies passed with no checks.
5704 # 'test_compile' -- check by making test program.
5705 # 'file_magic [[regex]]' -- check by looking for files in library path
5706 # which responds to the $file_magic_cmd with a given extended regex.
5707 # If you have `file' or equivalent on your system and you're not sure
5708 # whether `pass_all' will *always* work, you probably want this one.
5709
5710 case $host_os in
5711 aix[4-9]*)
5712 lt_cv_deplibs_check_method=pass_all
5713 ;;
5714
5715 beos*)
5716 lt_cv_deplibs_check_method=pass_all
5717 ;;
5718
5719 bsdi[45]*)
5720 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5721 lt_cv_file_magic_cmd='/usr/bin/file -L'
5722 lt_cv_file_magic_test_file=/shlib/libc.so
5723 ;;
5724
5725 cygwin*)
5726 # func_win32_libid is a shell function defined in ltmain.sh
5727 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5728 lt_cv_file_magic_cmd='func_win32_libid'
5729 ;;
5730
5731 mingw* | pw32*)
5732 # Base MSYS/MinGW do not provide the 'file' command needed by
5733 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5734 # unless we find 'file', for example because we are cross-compiling.
5735 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5736 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5737 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5738 lt_cv_file_magic_cmd='func_win32_libid'
5739 else
5740 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5741 lt_cv_file_magic_cmd='$OBJDUMP -f'
5742 fi
5743 ;;
5744
5745 cegcc*)
5746 # use the weaker test based on 'objdump'. See mingw*.
5747 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5748 lt_cv_file_magic_cmd='$OBJDUMP -f'
5749 ;;
5750
5751 darwin* | rhapsody*)
5752 lt_cv_deplibs_check_method=pass_all
5753 ;;
5754
5755 freebsd* | dragonfly*)
5756 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5757 case $host_cpu in
5758 i*86 )
5759 # Not sure whether the presence of OpenBSD here was a mistake.
5760 # Let's accept both of them until this is cleared up.
5761 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5762 lt_cv_file_magic_cmd=/usr/bin/file
5763 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5764 ;;
5765 esac
5766 else
5767 lt_cv_deplibs_check_method=pass_all
5768 fi
5769 ;;
5770
5771 gnu*)
5772 lt_cv_deplibs_check_method=pass_all
5773 ;;
5774
5775 haiku*)
5776 lt_cv_deplibs_check_method=pass_all
5777 ;;
5778
5779 hpux10.20* | hpux11*)
5780 lt_cv_file_magic_cmd=/usr/bin/file
5781 case $host_cpu in
5782 ia64*)
5783 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5784 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5785 ;;
5786 hppa*64*)
5787 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5788 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5789 ;;
5790 *)
5791 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5792 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5793 ;;
5794 esac
5795 ;;
5796
5797 interix[3-9]*)
5798 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5800 ;;
5801
5802 irix5* | irix6* | nonstopux*)
5803 case $LD in
5804 *-32|*"-32 ") libmagic=32-bit;;
5805 *-n32|*"-n32 ") libmagic=N32;;
5806 *-64|*"-64 ") libmagic=64-bit;;
5807 *) libmagic=never-match;;
5808 esac
5809 lt_cv_deplibs_check_method=pass_all
5810 ;;
5811
5812 # This must be Linux ELF.
5813 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5814 lt_cv_deplibs_check_method=pass_all
5815 ;;
5816
5817 netbsd*)
5818 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5819 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5820 else
5821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5822 fi
5823 ;;
5824
5825 newos6*)
5826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5827 lt_cv_file_magic_cmd=/usr/bin/file
5828 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5829 ;;
5830
5831 *nto* | *qnx*)
5832 lt_cv_deplibs_check_method=pass_all
5833 ;;
5834
5835 openbsd*)
5836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5838 else
5839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5840 fi
5841 ;;
5842
5843 osf3* | osf4* | osf5*)
5844 lt_cv_deplibs_check_method=pass_all
5845 ;;
5846
5847 rdos*)
5848 lt_cv_deplibs_check_method=pass_all
5849 ;;
5850
5851 solaris*)
5852 lt_cv_deplibs_check_method=pass_all
5853 ;;
5854
5855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5856 lt_cv_deplibs_check_method=pass_all
5857 ;;
5858
5859 sysv4 | sysv4.3*)
5860 case $host_vendor in
5861 motorola)
5862 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5864 ;;
5865 ncr)
5866 lt_cv_deplibs_check_method=pass_all
5867 ;;
5868 sequent)
5869 lt_cv_file_magic_cmd='/bin/file'
5870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5871 ;;
5872 sni)
5873 lt_cv_file_magic_cmd='/bin/file'
5874 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5875 lt_cv_file_magic_test_file=/lib/libc.so
5876 ;;
5877 siemens)
5878 lt_cv_deplibs_check_method=pass_all
5879 ;;
5880 pc)
5881 lt_cv_deplibs_check_method=pass_all
5882 ;;
5883 esac
5884 ;;
5885
5886 tpf*)
5887 lt_cv_deplibs_check_method=pass_all
5888 ;;
5889 esac
5890
5891 fi
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5893 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5894 file_magic_cmd=$lt_cv_file_magic_cmd
5895 deplibs_check_method=$lt_cv_deplibs_check_method
5896 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909 if test -n "$ac_tool_prefix"; then
5910 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5911 set dummy ${ac_tool_prefix}ar; ac_word=$2
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913 $as_echo_n "checking for $ac_word... " >&6; }
5914 if test "${ac_cv_prog_AR+set}" = set; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 if test -n "$AR"; then
5918 ac_cv_prog_AR="$AR" # Let the user override the test.
5919 else
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5922 do
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927 ac_cv_prog_AR="${ac_tool_prefix}ar"
5928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 break 2
5930 fi
5931 done
5932 done
5933 IFS=$as_save_IFS
5934
5935 fi
5936 fi
5937 AR=$ac_cv_prog_AR
5938 if test -n "$AR"; then
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5940 $as_echo "$AR" >&6; }
5941 else
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }
5944 fi
5945
5946
5947 fi
5948 if test -z "$ac_cv_prog_AR"; then
5949 ac_ct_AR=$AR
5950 # Extract the first word of "ar", so it can be a program name with args.
5951 set dummy ar; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 if test -n "$ac_ct_AR"; then
5958 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5962 do
5963 IFS=$as_save_IFS
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967 ac_cv_prog_ac_ct_AR="ar"
5968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 break 2
5970 fi
5971 done
5972 done
5973 IFS=$as_save_IFS
5974
5975 fi
5976 fi
5977 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5978 if test -n "$ac_ct_AR"; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5980 $as_echo "$ac_ct_AR" >&6; }
5981 else
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5984 fi
5985
5986 if test "x$ac_ct_AR" = x; then
5987 AR="false"
5988 else
5989 case $cross_compiling:$ac_tool_warned in
5990 yes:)
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5993 ac_tool_warned=yes ;;
5994 esac
5995 AR=$ac_ct_AR
5996 fi
5997 else
5998 AR="$ac_cv_prog_AR"
5999 fi
6000
6001 test -z "$AR" && AR=ar
6002 test -z "$AR_FLAGS" && AR_FLAGS=cru
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014 if test -n "$ac_tool_prefix"; then
6015 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6016 set dummy ${ac_tool_prefix}strip; ac_word=$2
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018 $as_echo_n "checking for $ac_word... " >&6; }
6019 if test "${ac_cv_prog_STRIP+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 if test -n "$STRIP"; then
6023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036 done
6037 done
6038 IFS=$as_save_IFS
6039
6040 fi
6041 fi
6042 STRIP=$ac_cv_prog_STRIP
6043 if test -n "$STRIP"; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6045 $as_echo "$STRIP" >&6; }
6046 else
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6049 fi
6050
6051
6052 fi
6053 if test -z "$ac_cv_prog_STRIP"; then
6054 ac_ct_STRIP=$STRIP
6055 # Extract the first word of "strip", so it can be a program name with args.
6056 set dummy strip; ac_word=$2
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058 $as_echo_n "checking for $ac_word... " >&6; }
6059 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 if test -n "$ac_ct_STRIP"; then
6063 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6067 do
6068 IFS=$as_save_IFS
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_prog_ac_ct_STRIP="strip"
6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 break 2
6075 fi
6076 done
6077 done
6078 IFS=$as_save_IFS
6079
6080 fi
6081 fi
6082 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6083 if test -n "$ac_ct_STRIP"; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6085 $as_echo "$ac_ct_STRIP" >&6; }
6086 else
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088 $as_echo "no" >&6; }
6089 fi
6090
6091 if test "x$ac_ct_STRIP" = x; then
6092 STRIP=":"
6093 else
6094 case $cross_compiling:$ac_tool_warned in
6095 yes:)
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6098 ac_tool_warned=yes ;;
6099 esac
6100 STRIP=$ac_ct_STRIP
6101 fi
6102 else
6103 STRIP="$ac_cv_prog_STRIP"
6104 fi
6105
6106 test -z "$STRIP" && STRIP=:
6107
6108
6109
6110
6111
6112
6113 if test -n "$ac_tool_prefix"; then
6114 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6115 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6119 $as_echo_n "(cached) " >&6
6120 else
6121 if test -n "$RANLIB"; then
6122 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 break 2
6134 fi
6135 done
6136 done
6137 IFS=$as_save_IFS
6138
6139 fi
6140 fi
6141 RANLIB=$ac_cv_prog_RANLIB
6142 if test -n "$RANLIB"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6144 $as_echo "$RANLIB" >&6; }
6145 else
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6148 fi
6149
6150
6151 fi
6152 if test -z "$ac_cv_prog_RANLIB"; then
6153 ac_ct_RANLIB=$RANLIB
6154 # Extract the first word of "ranlib", so it can be a program name with args.
6155 set dummy ranlib; ac_word=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 if test -n "$ac_ct_RANLIB"; then
6162 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_ac_ct_RANLIB="ranlib"
6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6174 fi
6175 done
6176 done
6177 IFS=$as_save_IFS
6178
6179 fi
6180 fi
6181 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6182 if test -n "$ac_ct_RANLIB"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6184 $as_echo "$ac_ct_RANLIB" >&6; }
6185 else
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 $as_echo "no" >&6; }
6188 fi
6189
6190 if test "x$ac_ct_RANLIB" = x; then
6191 RANLIB=":"
6192 else
6193 case $cross_compiling:$ac_tool_warned in
6194 yes:)
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6197 ac_tool_warned=yes ;;
6198 esac
6199 RANLIB=$ac_ct_RANLIB
6200 fi
6201 else
6202 RANLIB="$ac_cv_prog_RANLIB"
6203 fi
6204
6205 test -z "$RANLIB" && RANLIB=:
6206
6207
6208
6209
6210
6211
6212 # Determine commands to create old-style static archives.
6213 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6214 old_postinstall_cmds='chmod 644 $oldlib'
6215 old_postuninstall_cmds=
6216
6217 if test -n "$RANLIB"; then
6218 case $host_os in
6219 openbsd*)
6220 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6221 ;;
6222 *)
6223 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6224 ;;
6225 esac
6226 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6227 fi
6228
6229 case $host_os in
6230 darwin*)
6231 lock_old_archive_extraction=yes ;;
6232 *)
6233 lock_old_archive_extraction=no ;;
6234 esac
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274 # If no C compiler was specified, use CC.
6275 LTCC=${LTCC-"$CC"}
6276
6277 # If no C compiler flags were specified, use CFLAGS.
6278 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6279
6280 # Allow CC to be a program name with arguments.
6281 compiler=$CC
6282
6283
6284 # Check for command to grab the raw symbol name followed by C symbol from nm.
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6286 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6287 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6288 $as_echo_n "(cached) " >&6
6289 else
6290
6291 # These are sane defaults that work on at least a few old systems.
6292 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6293
6294 # Character class describing NM global symbol codes.
6295 symcode='[BCDEGRST]'
6296
6297 # Regexp to match symbols that can be accessed directly from C.
6298 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6299
6300 # Define system-specific variables.
6301 case $host_os in
6302 aix*)
6303 symcode='[BCDT]'
6304 ;;
6305 cygwin* | mingw* | pw32* | cegcc*)
6306 symcode='[ABCDGISTW]'
6307 ;;
6308 hpux*)
6309 if test "$host_cpu" = ia64; then
6310 symcode='[ABCDEGRST]'
6311 fi
6312 ;;
6313 irix* | nonstopux*)
6314 symcode='[BCDEGRST]'
6315 ;;
6316 osf*)
6317 symcode='[BCDEGQRST]'
6318 ;;
6319 solaris*)
6320 symcode='[BDRT]'
6321 ;;
6322 sco3.2v5*)
6323 symcode='[DT]'
6324 ;;
6325 sysv4.2uw2*)
6326 symcode='[DT]'
6327 ;;
6328 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6329 symcode='[ABDT]'
6330 ;;
6331 sysv4)
6332 symcode='[DFNSTU]'
6333 ;;
6334 esac
6335
6336 # If we're using GNU nm, then use its standard symbol codes.
6337 case `$NM -V 2>&1` in
6338 *GNU* | *'with BFD'*)
6339 symcode='[ABCDGIRSTW]' ;;
6340 esac
6341
6342 # Transform an extracted symbol line into a proper C declaration.
6343 # Some systems (esp. on ia64) link data and code symbols differently,
6344 # so use this general approach.
6345 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6346
6347 # Transform an extracted symbol line into symbol name and symbol address
6348 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6349 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6350
6351 # Handle CRLF in mingw tool chain
6352 opt_cr=
6353 case $build_os in
6354 mingw*)
6355 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6356 ;;
6357 esac
6358
6359 # Try without a prefix underscore, then with it.
6360 for ac_symprfx in "" "_"; do
6361
6362 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6363 symxfrm="\\1 $ac_symprfx\\2 \\2"
6364
6365 # Write the raw and C identifiers.
6366 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6367 # Fake it for dumpbin and say T for any non-static function
6368 # and D for any global variable.
6369 # Also find C++ and __fastcall symbols from MSVC++,
6370 # which start with @ or ?.
6371 lt_cv_sys_global_symbol_pipe="$AWK '"\
6372 " {last_section=section; section=\$ 3};"\
6373 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6374 " \$ 0!~/External *\|/{next};"\
6375 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6376 " {if(hide[section]) next};"\
6377 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6378 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6379 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6380 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6381 " ' prfx=^$ac_symprfx"
6382 else
6383 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6384 fi
6385
6386 # Check to see that the pipe works correctly.
6387 pipe_works=no
6388
6389 rm -f conftest*
6390 cat > conftest.$ac_ext <<_LT_EOF
6391 #ifdef __cplusplus
6392 extern "C" {
6393 #endif
6394 char nm_test_var;
6395 void nm_test_func(void);
6396 void nm_test_func(void){}
6397 #ifdef __cplusplus
6398 }
6399 #endif
6400 int main(){nm_test_var='a';nm_test_func();return(0);}
6401 _LT_EOF
6402
6403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6404 (eval $ac_compile) 2>&5
6405 ac_status=$?
6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407 test $ac_status = 0; }; then
6408 # Now try to grab the symbols.
6409 nlist=conftest.nm
6410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6411 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6412 ac_status=$?
6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6414 test $ac_status = 0; } && test -s "$nlist"; then
6415 # Try sorting and uniquifying the output.
6416 if sort "$nlist" | uniq > "$nlist"T; then
6417 mv -f "$nlist"T "$nlist"
6418 else
6419 rm -f "$nlist"T
6420 fi
6421
6422 # Make sure that we snagged all the symbols we need.
6423 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6424 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6425 cat <<_LT_EOF > conftest.$ac_ext
6426 #ifdef __cplusplus
6427 extern "C" {
6428 #endif
6429
6430 _LT_EOF
6431 # Now generate the symbol file.
6432 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6433
6434 cat <<_LT_EOF >> conftest.$ac_ext
6435
6436 /* The mapping between symbol names and symbols. */
6437 const struct {
6438 const char *name;
6439 void *address;
6440 }
6441 lt__PROGRAM__LTX_preloaded_symbols[] =
6442 {
6443 { "@PROGRAM@", (void *) 0 },
6444 _LT_EOF
6445 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6446 cat <<\_LT_EOF >> conftest.$ac_ext
6447 {0, (void *) 0}
6448 };
6449
6450 /* This works around a problem in FreeBSD linker */
6451 #ifdef FREEBSD_WORKAROUND
6452 static const void *lt_preloaded_setup() {
6453 return lt__PROGRAM__LTX_preloaded_symbols;
6454 }
6455 #endif
6456
6457 #ifdef __cplusplus
6458 }
6459 #endif
6460 _LT_EOF
6461 # Now try linking the two files.
6462 mv conftest.$ac_objext conftstm.$ac_objext
6463 lt_save_LIBS="$LIBS"
6464 lt_save_CFLAGS="$CFLAGS"
6465 LIBS="conftstm.$ac_objext"
6466 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6468 (eval $ac_link) 2>&5
6469 ac_status=$?
6470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6471 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6472 pipe_works=yes
6473 fi
6474 LIBS="$lt_save_LIBS"
6475 CFLAGS="$lt_save_CFLAGS"
6476 else
6477 echo "cannot find nm_test_func in $nlist" >&5
6478 fi
6479 else
6480 echo "cannot find nm_test_var in $nlist" >&5
6481 fi
6482 else
6483 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6484 fi
6485 else
6486 echo "$progname: failed program was:" >&5
6487 cat conftest.$ac_ext >&5
6488 fi
6489 rm -rf conftest* conftst*
6490
6491 # Do not use the global_symbol_pipe unless it works.
6492 if test "$pipe_works" = yes; then
6493 break
6494 else
6495 lt_cv_sys_global_symbol_pipe=
6496 fi
6497 done
6498
6499 fi
6500
6501 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6502 lt_cv_sys_global_symbol_to_cdecl=
6503 fi
6504 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6506 $as_echo "failed" >&6; }
6507 else
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6509 $as_echo "ok" >&6; }
6510 fi
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534 # Check whether --enable-libtool-lock was given.
6535 if test "${enable_libtool_lock+set}" = set; then :
6536 enableval=$enable_libtool_lock;
6537 fi
6538
6539 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6540
6541 # Some flags need to be propagated to the compiler or linker for good
6542 # libtool support.
6543 case $host in
6544 ia64-*-hpux*)
6545 # Find out which ABI we are using.
6546 echo 'int i;' > conftest.$ac_ext
6547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6548 (eval $ac_compile) 2>&5
6549 ac_status=$?
6550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6551 test $ac_status = 0; }; then
6552 case `/usr/bin/file conftest.$ac_objext` in
6553 *ELF-32*)
6554 HPUX_IA64_MODE="32"
6555 ;;
6556 *ELF-64*)
6557 HPUX_IA64_MODE="64"
6558 ;;
6559 esac
6560 fi
6561 rm -rf conftest*
6562 ;;
6563 *-*-irix6*)
6564 # Find out which ABI we are using.
6565 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6567 (eval $ac_compile) 2>&5
6568 ac_status=$?
6569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6570 test $ac_status = 0; }; then
6571 if test "$lt_cv_prog_gnu_ld" = yes; then
6572 case `/usr/bin/file conftest.$ac_objext` in
6573 *32-bit*)
6574 LD="${LD-ld} -melf32bsmip"
6575 ;;
6576 *N32*)
6577 LD="${LD-ld} -melf32bmipn32"
6578 ;;
6579 *64-bit*)
6580 LD="${LD-ld} -melf64bmip"
6581 ;;
6582 esac
6583 else
6584 case `/usr/bin/file conftest.$ac_objext` in
6585 *32-bit*)
6586 LD="${LD-ld} -32"
6587 ;;
6588 *N32*)
6589 LD="${LD-ld} -n32"
6590 ;;
6591 *64-bit*)
6592 LD="${LD-ld} -64"
6593 ;;
6594 esac
6595 fi
6596 fi
6597 rm -rf conftest*
6598 ;;
6599
6600 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6601 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6602 # Find out which ABI we are using.
6603 echo 'int i;' > conftest.$ac_ext
6604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6605 (eval $ac_compile) 2>&5
6606 ac_status=$?
6607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6608 test $ac_status = 0; }; then
6609 case `/usr/bin/file conftest.o` in
6610 *32-bit*)
6611 case $host in
6612 x86_64-*kfreebsd*-gnu)
6613 LD="${LD-ld} -m elf_i386_fbsd"
6614 ;;
6615 x86_64-*linux*)
6616 case `/usr/bin/file conftest.o` in
6617 *x86-64*)
6618 LD="${LD-ld} -m elf32_x86_64"
6619 ;;
6620 *)
6621 LD="${LD-ld} -m elf_i386"
6622 ;;
6623 esac
6624 ;;
6625 powerpc64le-*linux*)
6626 LD="${LD-ld} -m elf32lppclinux"
6627 ;;
6628 powerpc64-*linux*)
6629 LD="${LD-ld} -m elf32ppclinux"
6630 ;;
6631 s390x-*linux*)
6632 LD="${LD-ld} -m elf_s390"
6633 ;;
6634 sparc64-*linux*)
6635 LD="${LD-ld} -m elf32_sparc"
6636 ;;
6637 esac
6638 ;;
6639 *64-bit*)
6640 case $host in
6641 x86_64-*kfreebsd*-gnu)
6642 LD="${LD-ld} -m elf_x86_64_fbsd"
6643 ;;
6644 x86_64-*linux*)
6645 LD="${LD-ld} -m elf_x86_64"
6646 ;;
6647 powerpcle-*linux*)
6648 LD="${LD-ld} -m elf64lppc"
6649 ;;
6650 powerpc-*linux*)
6651 LD="${LD-ld} -m elf64ppc"
6652 ;;
6653 s390*-*linux*|s390*-*tpf*)
6654 LD="${LD-ld} -m elf64_s390"
6655 ;;
6656 sparc*-*linux*)
6657 LD="${LD-ld} -m elf64_sparc"
6658 ;;
6659 esac
6660 ;;
6661 esac
6662 fi
6663 rm -rf conftest*
6664 ;;
6665
6666 *-*-sco3.2v5*)
6667 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6668 SAVE_CFLAGS="$CFLAGS"
6669 CFLAGS="$CFLAGS -belf"
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6671 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6672 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 ac_ext=c
6676 ac_cpp='$CPP $CPPFLAGS'
6677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6680
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6683
6684 int
6685 main ()
6686 {
6687
6688 ;
6689 return 0;
6690 }
6691 _ACEOF
6692 if ac_fn_c_try_link "$LINENO"; then :
6693 lt_cv_cc_needs_belf=yes
6694 else
6695 lt_cv_cc_needs_belf=no
6696 fi
6697 rm -f core conftest.err conftest.$ac_objext \
6698 conftest$ac_exeext conftest.$ac_ext
6699 ac_ext=c
6700 ac_cpp='$CPP $CPPFLAGS'
6701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6704
6705 fi
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6707 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6708 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6709 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6710 CFLAGS="$SAVE_CFLAGS"
6711 fi
6712 ;;
6713 sparc*-*solaris*)
6714 # Find out which ABI we are using.
6715 echo 'int i;' > conftest.$ac_ext
6716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6717 (eval $ac_compile) 2>&5
6718 ac_status=$?
6719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6720 test $ac_status = 0; }; then
6721 case `/usr/bin/file conftest.o` in
6722 *64-bit*)
6723 case $lt_cv_prog_gnu_ld in
6724 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6725 *)
6726 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6727 LD="${LD-ld} -64"
6728 fi
6729 ;;
6730 esac
6731 ;;
6732 esac
6733 fi
6734 rm -rf conftest*
6735 ;;
6736 esac
6737
6738 need_locks="$enable_libtool_lock"
6739
6740
6741 case $host_os in
6742 rhapsody* | darwin*)
6743 if test -n "$ac_tool_prefix"; then
6744 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6745 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 if test -n "$DSYMUTIL"; then
6752 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6753 else
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 for as_dir in $PATH
6756 do
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6761 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 break 2
6764 fi
6765 done
6766 done
6767 IFS=$as_save_IFS
6768
6769 fi
6770 fi
6771 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6772 if test -n "$DSYMUTIL"; then
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6774 $as_echo "$DSYMUTIL" >&6; }
6775 else
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6778 fi
6779
6780
6781 fi
6782 if test -z "$ac_cv_prog_DSYMUTIL"; then
6783 ac_ct_DSYMUTIL=$DSYMUTIL
6784 # Extract the first word of "dsymutil", so it can be a program name with args.
6785 set dummy dsymutil; ac_word=$2
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787 $as_echo_n "checking for $ac_word... " >&6; }
6788 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6789 $as_echo_n "(cached) " >&6
6790 else
6791 if test -n "$ac_ct_DSYMUTIL"; then
6792 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6793 else
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 break 2
6804 fi
6805 done
6806 done
6807 IFS=$as_save_IFS
6808
6809 fi
6810 fi
6811 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6812 if test -n "$ac_ct_DSYMUTIL"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6814 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6815 else
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817 $as_echo "no" >&6; }
6818 fi
6819
6820 if test "x$ac_ct_DSYMUTIL" = x; then
6821 DSYMUTIL=":"
6822 else
6823 case $cross_compiling:$ac_tool_warned in
6824 yes:)
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6827 ac_tool_warned=yes ;;
6828 esac
6829 DSYMUTIL=$ac_ct_DSYMUTIL
6830 fi
6831 else
6832 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6833 fi
6834
6835 if test -n "$ac_tool_prefix"; then
6836 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6837 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6841 $as_echo_n "(cached) " >&6
6842 else
6843 if test -n "$NMEDIT"; then
6844 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849 IFS=$as_save_IFS
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 break 2
6856 fi
6857 done
6858 done
6859 IFS=$as_save_IFS
6860
6861 fi
6862 fi
6863 NMEDIT=$ac_cv_prog_NMEDIT
6864 if test -n "$NMEDIT"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6866 $as_echo "$NMEDIT" >&6; }
6867 else
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6870 fi
6871
6872
6873 fi
6874 if test -z "$ac_cv_prog_NMEDIT"; then
6875 ac_ct_NMEDIT=$NMEDIT
6876 # Extract the first word of "nmedit", so it can be a program name with args.
6877 set dummy nmedit; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6881 $as_echo_n "(cached) " >&6
6882 else
6883 if test -n "$ac_ct_NMEDIT"; then
6884 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6885 else
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6888 do
6889 IFS=$as_save_IFS
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 break 2
6896 fi
6897 done
6898 done
6899 IFS=$as_save_IFS
6900
6901 fi
6902 fi
6903 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6904 if test -n "$ac_ct_NMEDIT"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6906 $as_echo "$ac_ct_NMEDIT" >&6; }
6907 else
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6910 fi
6911
6912 if test "x$ac_ct_NMEDIT" = x; then
6913 NMEDIT=":"
6914 else
6915 case $cross_compiling:$ac_tool_warned in
6916 yes:)
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6919 ac_tool_warned=yes ;;
6920 esac
6921 NMEDIT=$ac_ct_NMEDIT
6922 fi
6923 else
6924 NMEDIT="$ac_cv_prog_NMEDIT"
6925 fi
6926
6927 if test -n "$ac_tool_prefix"; then
6928 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6929 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if test "${ac_cv_prog_LIPO+set}" = set; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 if test -n "$LIPO"; then
6936 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6937 else
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6940 do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6945 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6948 fi
6949 done
6950 done
6951 IFS=$as_save_IFS
6952
6953 fi
6954 fi
6955 LIPO=$ac_cv_prog_LIPO
6956 if test -n "$LIPO"; then
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6958 $as_echo "$LIPO" >&6; }
6959 else
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 $as_echo "no" >&6; }
6962 fi
6963
6964
6965 fi
6966 if test -z "$ac_cv_prog_LIPO"; then
6967 ac_ct_LIPO=$LIPO
6968 # Extract the first word of "lipo", so it can be a program name with args.
6969 set dummy lipo; ac_word=$2
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971 $as_echo_n "checking for $ac_word... " >&6; }
6972 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6973 $as_echo_n "(cached) " >&6
6974 else
6975 if test -n "$ac_ct_LIPO"; then
6976 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6977 else
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6980 do
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985 ac_cv_prog_ac_ct_LIPO="lipo"
6986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 break 2
6988 fi
6989 done
6990 done
6991 IFS=$as_save_IFS
6992
6993 fi
6994 fi
6995 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6996 if test -n "$ac_ct_LIPO"; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6998 $as_echo "$ac_ct_LIPO" >&6; }
6999 else
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7002 fi
7003
7004 if test "x$ac_ct_LIPO" = x; then
7005 LIPO=":"
7006 else
7007 case $cross_compiling:$ac_tool_warned in
7008 yes:)
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7011 ac_tool_warned=yes ;;
7012 esac
7013 LIPO=$ac_ct_LIPO
7014 fi
7015 else
7016 LIPO="$ac_cv_prog_LIPO"
7017 fi
7018
7019 if test -n "$ac_tool_prefix"; then
7020 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7021 set dummy ${ac_tool_prefix}otool; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7025 $as_echo_n "(cached) " >&6
7026 else
7027 if test -n "$OTOOL"; then
7028 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7029 else
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7032 do
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 break 2
7040 fi
7041 done
7042 done
7043 IFS=$as_save_IFS
7044
7045 fi
7046 fi
7047 OTOOL=$ac_cv_prog_OTOOL
7048 if test -n "$OTOOL"; then
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7050 $as_echo "$OTOOL" >&6; }
7051 else
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7054 fi
7055
7056
7057 fi
7058 if test -z "$ac_cv_prog_OTOOL"; then
7059 ac_ct_OTOOL=$OTOOL
7060 # Extract the first word of "otool", so it can be a program name with args.
7061 set dummy otool; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 if test -n "$ac_ct_OTOOL"; then
7068 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7069 else
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7072 do
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_prog_ac_ct_OTOOL="otool"
7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7080 fi
7081 done
7082 done
7083 IFS=$as_save_IFS
7084
7085 fi
7086 fi
7087 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7088 if test -n "$ac_ct_OTOOL"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7090 $as_echo "$ac_ct_OTOOL" >&6; }
7091 else
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 $as_echo "no" >&6; }
7094 fi
7095
7096 if test "x$ac_ct_OTOOL" = x; then
7097 OTOOL=":"
7098 else
7099 case $cross_compiling:$ac_tool_warned in
7100 yes:)
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103 ac_tool_warned=yes ;;
7104 esac
7105 OTOOL=$ac_ct_OTOOL
7106 fi
7107 else
7108 OTOOL="$ac_cv_prog_OTOOL"
7109 fi
7110
7111 if test -n "$ac_tool_prefix"; then
7112 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7113 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115 $as_echo_n "checking for $ac_word... " >&6; }
7116 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7117 $as_echo_n "(cached) " >&6
7118 else
7119 if test -n "$OTOOL64"; then
7120 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7121 else
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7124 do
7125 IFS=$as_save_IFS
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 break 2
7132 fi
7133 done
7134 done
7135 IFS=$as_save_IFS
7136
7137 fi
7138 fi
7139 OTOOL64=$ac_cv_prog_OTOOL64
7140 if test -n "$OTOOL64"; then
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7142 $as_echo "$OTOOL64" >&6; }
7143 else
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145 $as_echo "no" >&6; }
7146 fi
7147
7148
7149 fi
7150 if test -z "$ac_cv_prog_OTOOL64"; then
7151 ac_ct_OTOOL64=$OTOOL64
7152 # Extract the first word of "otool64", so it can be a program name with args.
7153 set dummy otool64; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 if test -n "$ac_ct_OTOOL64"; then
7160 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7161 else
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7164 do
7165 IFS=$as_save_IFS
7166 test -z "$as_dir" && as_dir=.
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169 ac_cv_prog_ac_ct_OTOOL64="otool64"
7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 break 2
7172 fi
7173 done
7174 done
7175 IFS=$as_save_IFS
7176
7177 fi
7178 fi
7179 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7180 if test -n "$ac_ct_OTOOL64"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7182 $as_echo "$ac_ct_OTOOL64" >&6; }
7183 else
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7186 fi
7187
7188 if test "x$ac_ct_OTOOL64" = x; then
7189 OTOOL64=":"
7190 else
7191 case $cross_compiling:$ac_tool_warned in
7192 yes:)
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7195 ac_tool_warned=yes ;;
7196 esac
7197 OTOOL64=$ac_ct_OTOOL64
7198 fi
7199 else
7200 OTOOL64="$ac_cv_prog_OTOOL64"
7201 fi
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7230 $as_echo_n "checking for -single_module linker flag... " >&6; }
7231 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7234 lt_cv_apple_cc_single_mod=no
7235 if test -z "${LT_MULTI_MODULE}"; then
7236 # By default we will add the -single_module flag. You can override
7237 # by either setting the environment variable LT_MULTI_MODULE
7238 # non-empty at configure time, or by adding -multi_module to the
7239 # link flags.
7240 rm -rf libconftest.dylib*
7241 echo "int foo(void){return 1;}" > conftest.c
7242 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7243 -dynamiclib -Wl,-single_module conftest.c" >&5
7244 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7245 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7246 _lt_result=$?
7247 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7248 lt_cv_apple_cc_single_mod=yes
7249 else
7250 cat conftest.err >&5
7251 fi
7252 rm -rf libconftest.dylib*
7253 rm -f conftest.*
7254 fi
7255 fi
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7257 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7259 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7260 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7261 $as_echo_n "(cached) " >&6
7262 else
7263 lt_cv_ld_exported_symbols_list=no
7264 save_LDFLAGS=$LDFLAGS
7265 echo "_main" > conftest.sym
7266 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7269
7270 int
7271 main ()
7272 {
7273
7274 ;
7275 return 0;
7276 }
7277 _ACEOF
7278 if ac_fn_c_try_link "$LINENO"; then :
7279 lt_cv_ld_exported_symbols_list=yes
7280 else
7281 lt_cv_ld_exported_symbols_list=no
7282 fi
7283 rm -f core conftest.err conftest.$ac_objext \
7284 conftest$ac_exeext conftest.$ac_ext
7285 LDFLAGS="$save_LDFLAGS"
7286
7287 fi
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7289 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7291 $as_echo_n "checking for -force_load linker flag... " >&6; }
7292 if test "${lt_cv_ld_force_load+set}" = set; then :
7293 $as_echo_n "(cached) " >&6
7294 else
7295 lt_cv_ld_force_load=no
7296 cat > conftest.c << _LT_EOF
7297 int forced_loaded() { return 2;}
7298 _LT_EOF
7299 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7300 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7301 echo "$AR cru libconftest.a conftest.o" >&5
7302 $AR cru libconftest.a conftest.o 2>&5
7303 cat > conftest.c << _LT_EOF
7304 int main() { return 0;}
7305 _LT_EOF
7306 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7307 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7308 _lt_result=$?
7309 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7310 lt_cv_ld_force_load=yes
7311 else
7312 cat conftest.err >&5
7313 fi
7314 rm -f conftest.err libconftest.a conftest conftest.c
7315 rm -rf conftest.dSYM
7316
7317 fi
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7319 $as_echo "$lt_cv_ld_force_load" >&6; }
7320 case $host_os in
7321 rhapsody* | darwin1.[012])
7322 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7323 darwin1.*)
7324 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7325 darwin*) # darwin 5.x on
7326 # if running on 10.5 or later, the deployment target defaults
7327 # to the OS version, if on x86, and 10.4, the deployment
7328 # target defaults to 10.4. Don't you love it?
7329 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7330 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7331 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7332 10.[012][,.]*)
7333 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7334 10.*)
7335 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7336 esac
7337 ;;
7338 esac
7339 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7340 _lt_dar_single_mod='$single_module'
7341 fi
7342 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7343 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7344 else
7345 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7346 fi
7347 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7348 _lt_dsymutil='~$DSYMUTIL $lib || :'
7349 else
7350 _lt_dsymutil=
7351 fi
7352 ;;
7353 esac
7354
7355 ac_ext=c
7356 ac_cpp='$CPP $CPPFLAGS'
7357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7361 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7362 # On Suns, sometimes $CPP names a directory.
7363 if test -n "$CPP" && test -d "$CPP"; then
7364 CPP=
7365 fi
7366 if test -z "$CPP"; then
7367 if test "${ac_cv_prog_CPP+set}" = set; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 # Double quotes because CPP needs to be expanded
7371 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7372 do
7373 ac_preproc_ok=false
7374 for ac_c_preproc_warn_flag in '' yes
7375 do
7376 # Use a header file that comes with gcc, so configuring glibc
7377 # with a fresh cross-compiler works.
7378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7379 # <limits.h> exists even on freestanding compilers.
7380 # On the NeXT, cc -E runs the code through the compiler's parser,
7381 # not just through cpp. "Syntax error" is here to catch this case.
7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7384 #ifdef __STDC__
7385 # include <limits.h>
7386 #else
7387 # include <assert.h>
7388 #endif
7389 Syntax error
7390 _ACEOF
7391 if ac_fn_c_try_cpp "$LINENO"; then :
7392
7393 else
7394 # Broken: fails on valid input.
7395 continue
7396 fi
7397 rm -f conftest.err conftest.$ac_ext
7398
7399 # OK, works on sane cases. Now check whether nonexistent headers
7400 # can be detected and how.
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7403 #include <ac_nonexistent.h>
7404 _ACEOF
7405 if ac_fn_c_try_cpp "$LINENO"; then :
7406 # Broken: success on invalid input.
7407 continue
7408 else
7409 # Passes both tests.
7410 ac_preproc_ok=:
7411 break
7412 fi
7413 rm -f conftest.err conftest.$ac_ext
7414
7415 done
7416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7417 rm -f conftest.err conftest.$ac_ext
7418 if $ac_preproc_ok; then :
7419 break
7420 fi
7421
7422 done
7423 ac_cv_prog_CPP=$CPP
7424
7425 fi
7426 CPP=$ac_cv_prog_CPP
7427 else
7428 ac_cv_prog_CPP=$CPP
7429 fi
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7431 $as_echo "$CPP" >&6; }
7432 ac_preproc_ok=false
7433 for ac_c_preproc_warn_flag in '' yes
7434 do
7435 # Use a header file that comes with gcc, so configuring glibc
7436 # with a fresh cross-compiler works.
7437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7438 # <limits.h> exists even on freestanding compilers.
7439 # On the NeXT, cc -E runs the code through the compiler's parser,
7440 # not just through cpp. "Syntax error" is here to catch this case.
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7443 #ifdef __STDC__
7444 # include <limits.h>
7445 #else
7446 # include <assert.h>
7447 #endif
7448 Syntax error
7449 _ACEOF
7450 if ac_fn_c_try_cpp "$LINENO"; then :
7451
7452 else
7453 # Broken: fails on valid input.
7454 continue
7455 fi
7456 rm -f conftest.err conftest.$ac_ext
7457
7458 # OK, works on sane cases. Now check whether nonexistent headers
7459 # can be detected and how.
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7462 #include <ac_nonexistent.h>
7463 _ACEOF
7464 if ac_fn_c_try_cpp "$LINENO"; then :
7465 # Broken: success on invalid input.
7466 continue
7467 else
7468 # Passes both tests.
7469 ac_preproc_ok=:
7470 break
7471 fi
7472 rm -f conftest.err conftest.$ac_ext
7473
7474 done
7475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7476 rm -f conftest.err conftest.$ac_ext
7477 if $ac_preproc_ok; then :
7478
7479 else
7480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7482 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7483 See \`config.log' for more details." "$LINENO" 5; }
7484 fi
7485
7486 ac_ext=c
7487 ac_cpp='$CPP $CPPFLAGS'
7488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7491
7492
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7494 $as_echo_n "checking for ANSI C header files... " >&6; }
7495 if test "${ac_cv_header_stdc+set}" = set; then :
7496 $as_echo_n "(cached) " >&6
7497 else
7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h. */
7500 #include <stdlib.h>
7501 #include <stdarg.h>
7502 #include <string.h>
7503 #include <float.h>
7504
7505 int
7506 main ()
7507 {
7508
7509 ;
7510 return 0;
7511 }
7512 _ACEOF
7513 if ac_fn_c_try_compile "$LINENO"; then :
7514 ac_cv_header_stdc=yes
7515 else
7516 ac_cv_header_stdc=no
7517 fi
7518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7519
7520 if test $ac_cv_header_stdc = yes; then
7521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7524 #include <string.h>
7525
7526 _ACEOF
7527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7528 $EGREP "memchr" >/dev/null 2>&1; then :
7529
7530 else
7531 ac_cv_header_stdc=no
7532 fi
7533 rm -f conftest*
7534
7535 fi
7536
7537 if test $ac_cv_header_stdc = yes; then
7538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h. */
7541 #include <stdlib.h>
7542
7543 _ACEOF
7544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7545 $EGREP "free" >/dev/null 2>&1; then :
7546
7547 else
7548 ac_cv_header_stdc=no
7549 fi
7550 rm -f conftest*
7551
7552 fi
7553
7554 if test $ac_cv_header_stdc = yes; then
7555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7556 if test "$cross_compiling" = yes; then :
7557 :
7558 else
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7561 #include <ctype.h>
7562 #include <stdlib.h>
7563 #if ((' ' & 0x0FF) == 0x020)
7564 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7565 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7566 #else
7567 # define ISLOWER(c) \
7568 (('a' <= (c) && (c) <= 'i') \
7569 || ('j' <= (c) && (c) <= 'r') \
7570 || ('s' <= (c) && (c) <= 'z'))
7571 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7572 #endif
7573
7574 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7575 int
7576 main ()
7577 {
7578 int i;
7579 for (i = 0; i < 256; i++)
7580 if (XOR (islower (i), ISLOWER (i))
7581 || toupper (i) != TOUPPER (i))
7582 return 2;
7583 return 0;
7584 }
7585 _ACEOF
7586 if ac_fn_c_try_run "$LINENO"; then :
7587
7588 else
7589 ac_cv_header_stdc=no
7590 fi
7591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7592 conftest.$ac_objext conftest.beam conftest.$ac_ext
7593 fi
7594
7595 fi
7596 fi
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7598 $as_echo "$ac_cv_header_stdc" >&6; }
7599 if test $ac_cv_header_stdc = yes; then
7600
7601 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7602
7603 fi
7604
7605 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7606 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7607 inttypes.h stdint.h unistd.h
7608 do :
7609 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7610 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7611 "
7612 eval as_val=\$$as_ac_Header
7613 if test "x$as_val" = x""yes; then :
7614 cat >>confdefs.h <<_ACEOF
7615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7616 _ACEOF
7617
7618 fi
7619
7620 done
7621
7622
7623 for ac_header in dlfcn.h
7624 do :
7625 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7626 "
7627 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7628 cat >>confdefs.h <<_ACEOF
7629 #define HAVE_DLFCN_H 1
7630 _ACEOF
7631
7632 fi
7633
7634 done
7635
7636
7637
7638
7639
7640 # Set options
7641
7642
7643
7644 enable_dlopen=no
7645
7646
7647 enable_win32_dll=no
7648
7649
7650 # Check whether --enable-shared was given.
7651 if test "${enable_shared+set}" = set; then :
7652 enableval=$enable_shared; p=${PACKAGE-default}
7653 case $enableval in
7654 yes) enable_shared=yes ;;
7655 no) enable_shared=no ;;
7656 *)
7657 enable_shared=no
7658 # Look at the argument we got. We use all the common list separators.
7659 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7660 for pkg in $enableval; do
7661 IFS="$lt_save_ifs"
7662 if test "X$pkg" = "X$p"; then
7663 enable_shared=yes
7664 fi
7665 done
7666 IFS="$lt_save_ifs"
7667 ;;
7668 esac
7669 else
7670 enable_shared=yes
7671 fi
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681 # Check whether --enable-static was given.
7682 if test "${enable_static+set}" = set; then :
7683 enableval=$enable_static; p=${PACKAGE-default}
7684 case $enableval in
7685 yes) enable_static=yes ;;
7686 no) enable_static=no ;;
7687 *)
7688 enable_static=no
7689 # Look at the argument we got. We use all the common list separators.
7690 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7691 for pkg in $enableval; do
7692 IFS="$lt_save_ifs"
7693 if test "X$pkg" = "X$p"; then
7694 enable_static=yes
7695 fi
7696 done
7697 IFS="$lt_save_ifs"
7698 ;;
7699 esac
7700 else
7701 enable_static=yes
7702 fi
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713 # Check whether --with-pic was given.
7714 if test "${with_pic+set}" = set; then :
7715 withval=$with_pic; pic_mode="$withval"
7716 else
7717 pic_mode=default
7718 fi
7719
7720
7721 test -z "$pic_mode" && pic_mode=default
7722
7723
7724
7725
7726
7727
7728
7729 # Check whether --enable-fast-install was given.
7730 if test "${enable_fast_install+set}" = set; then :
7731 enableval=$enable_fast_install; p=${PACKAGE-default}
7732 case $enableval in
7733 yes) enable_fast_install=yes ;;
7734 no) enable_fast_install=no ;;
7735 *)
7736 enable_fast_install=no
7737 # Look at the argument we got. We use all the common list separators.
7738 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7739 for pkg in $enableval; do
7740 IFS="$lt_save_ifs"
7741 if test "X$pkg" = "X$p"; then
7742 enable_fast_install=yes
7743 fi
7744 done
7745 IFS="$lt_save_ifs"
7746 ;;
7747 esac
7748 else
7749 enable_fast_install=yes
7750 fi
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762 # This can be used to rebuild libtool when needed
7763 LIBTOOL_DEPS="$ltmain"
7764
7765 # Always use our own libtool.
7766 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793 test -z "$LN_S" && LN_S="ln -s"
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808 if test -n "${ZSH_VERSION+set}" ; then
7809 setopt NO_GLOB_SUBST
7810 fi
7811
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7813 $as_echo_n "checking for objdir... " >&6; }
7814 if test "${lt_cv_objdir+set}" = set; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 rm -f .libs 2>/dev/null
7818 mkdir .libs 2>/dev/null
7819 if test -d .libs; then
7820 lt_cv_objdir=.libs
7821 else
7822 # MS-DOS does not allow filenames that begin with a dot.
7823 lt_cv_objdir=_libs
7824 fi
7825 rmdir .libs 2>/dev/null
7826 fi
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7828 $as_echo "$lt_cv_objdir" >&6; }
7829 objdir=$lt_cv_objdir
7830
7831
7832
7833
7834
7835 cat >>confdefs.h <<_ACEOF
7836 #define LT_OBJDIR "$lt_cv_objdir/"
7837 _ACEOF
7838
7839
7840
7841
7842 case $host_os in
7843 aix3*)
7844 # AIX sometimes has problems with the GCC collect2 program. For some
7845 # reason, if we set the COLLECT_NAMES environment variable, the problems
7846 # vanish in a puff of smoke.
7847 if test "X${COLLECT_NAMES+set}" != Xset; then
7848 COLLECT_NAMES=
7849 export COLLECT_NAMES
7850 fi
7851 ;;
7852 esac
7853
7854 # Global variables:
7855 ofile=libtool
7856 can_build_shared=yes
7857
7858 # All known linkers require a `.a' archive for static linking (except MSVC,
7859 # which needs '.lib').
7860 libext=a
7861
7862 with_gnu_ld="$lt_cv_prog_gnu_ld"
7863
7864 old_CC="$CC"
7865 old_CFLAGS="$CFLAGS"
7866
7867 # Set sane defaults for various variables
7868 test -z "$CC" && CC=cc
7869 test -z "$LTCC" && LTCC=$CC
7870 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7871 test -z "$LD" && LD=ld
7872 test -z "$ac_objext" && ac_objext=o
7873
7874 for cc_temp in $compiler""; do
7875 case $cc_temp in
7876 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7877 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7878 \-*) ;;
7879 *) break;;
7880 esac
7881 done
7882 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7883
7884
7885 # Only perform the check for file, if the check method requires it
7886 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7887 case $deplibs_check_method in
7888 file_magic*)
7889 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7891 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7892 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 case $MAGIC_CMD in
7896 [\\/*] | ?:[\\/]*)
7897 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7898 ;;
7899 *)
7900 lt_save_MAGIC_CMD="$MAGIC_CMD"
7901 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7902 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7903 for ac_dir in $ac_dummy; do
7904 IFS="$lt_save_ifs"
7905 test -z "$ac_dir" && ac_dir=.
7906 if test -f $ac_dir/${ac_tool_prefix}file; then
7907 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7908 if test -n "$file_magic_test_file"; then
7909 case $deplibs_check_method in
7910 "file_magic "*)
7911 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7913 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7914 $EGREP "$file_magic_regex" > /dev/null; then
7915 :
7916 else
7917 cat <<_LT_EOF 1>&2
7918
7919 *** Warning: the command libtool uses to detect shared libraries,
7920 *** $file_magic_cmd, produces output that libtool cannot recognize.
7921 *** The result is that libtool may fail to recognize shared libraries
7922 *** as such. This will affect the creation of libtool libraries that
7923 *** depend on shared libraries, but programs linked with such libtool
7924 *** libraries will work regardless of this problem. Nevertheless, you
7925 *** may want to report the problem to your system manager and/or to
7926 *** bug-libtool@gnu.org
7927
7928 _LT_EOF
7929 fi ;;
7930 esac
7931 fi
7932 break
7933 fi
7934 done
7935 IFS="$lt_save_ifs"
7936 MAGIC_CMD="$lt_save_MAGIC_CMD"
7937 ;;
7938 esac
7939 fi
7940
7941 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7942 if test -n "$MAGIC_CMD"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7944 $as_echo "$MAGIC_CMD" >&6; }
7945 else
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7948 fi
7949
7950
7951
7952
7953
7954 if test -z "$lt_cv_path_MAGIC_CMD"; then
7955 if test -n "$ac_tool_prefix"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7957 $as_echo_n "checking for file... " >&6; }
7958 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 case $MAGIC_CMD in
7962 [\\/*] | ?:[\\/]*)
7963 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7964 ;;
7965 *)
7966 lt_save_MAGIC_CMD="$MAGIC_CMD"
7967 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7968 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7969 for ac_dir in $ac_dummy; do
7970 IFS="$lt_save_ifs"
7971 test -z "$ac_dir" && ac_dir=.
7972 if test -f $ac_dir/file; then
7973 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7974 if test -n "$file_magic_test_file"; then
7975 case $deplibs_check_method in
7976 "file_magic "*)
7977 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7978 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7979 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7980 $EGREP "$file_magic_regex" > /dev/null; then
7981 :
7982 else
7983 cat <<_LT_EOF 1>&2
7984
7985 *** Warning: the command libtool uses to detect shared libraries,
7986 *** $file_magic_cmd, produces output that libtool cannot recognize.
7987 *** The result is that libtool may fail to recognize shared libraries
7988 *** as such. This will affect the creation of libtool libraries that
7989 *** depend on shared libraries, but programs linked with such libtool
7990 *** libraries will work regardless of this problem. Nevertheless, you
7991 *** may want to report the problem to your system manager and/or to
7992 *** bug-libtool@gnu.org
7993
7994 _LT_EOF
7995 fi ;;
7996 esac
7997 fi
7998 break
7999 fi
8000 done
8001 IFS="$lt_save_ifs"
8002 MAGIC_CMD="$lt_save_MAGIC_CMD"
8003 ;;
8004 esac
8005 fi
8006
8007 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8008 if test -n "$MAGIC_CMD"; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8010 $as_echo "$MAGIC_CMD" >&6; }
8011 else
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8014 fi
8015
8016
8017 else
8018 MAGIC_CMD=:
8019 fi
8020 fi
8021
8022 fi
8023 ;;
8024 esac
8025
8026 # Use C for the default configuration in the libtool script
8027
8028 lt_save_CC="$CC"
8029 ac_ext=c
8030 ac_cpp='$CPP $CPPFLAGS'
8031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8034
8035
8036 # Source file extension for C test sources.
8037 ac_ext=c
8038
8039 # Object file extension for compiled C test sources.
8040 objext=o
8041 objext=$objext
8042
8043 # Code to be used in simple compile tests
8044 lt_simple_compile_test_code="int some_variable = 0;"
8045
8046 # Code to be used in simple link tests
8047 lt_simple_link_test_code='int main(){return(0);}'
8048
8049
8050
8051
8052
8053
8054
8055 # If no C compiler was specified, use CC.
8056 LTCC=${LTCC-"$CC"}
8057
8058 # If no C compiler flags were specified, use CFLAGS.
8059 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8060
8061 # Allow CC to be a program name with arguments.
8062 compiler=$CC
8063
8064 # Save the default compiler, since it gets overwritten when the other
8065 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8066 compiler_DEFAULT=$CC
8067
8068 # save warnings/boilerplate of simple test code
8069 ac_outfile=conftest.$ac_objext
8070 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8071 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8072 _lt_compiler_boilerplate=`cat conftest.err`
8073 $RM conftest*
8074
8075 ac_outfile=conftest.$ac_objext
8076 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8077 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8078 _lt_linker_boilerplate=`cat conftest.err`
8079 $RM -r conftest*
8080
8081
8082 ## CAVEAT EMPTOR:
8083 ## There is no encapsulation within the following macros, do not change
8084 ## the running order or otherwise move them around unless you know exactly
8085 ## what you are doing...
8086 if test -n "$compiler"; then
8087
8088 lt_prog_compiler_no_builtin_flag=
8089
8090 if test "$GCC" = yes; then
8091 case $cc_basename in
8092 nvcc*)
8093 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8094 *)
8095 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8096 esac
8097
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8099 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8100 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 lt_cv_prog_compiler_rtti_exceptions=no
8104 ac_outfile=conftest.$ac_objext
8105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8106 lt_compiler_flag="-fno-rtti -fno-exceptions"
8107 # Insert the option either (1) after the last *FLAGS variable, or
8108 # (2) before a word containing "conftest.", or (3) at the end.
8109 # Note that $ac_compile itself does not contain backslashes and begins
8110 # with a dollar sign (not a hyphen), so the echo should work correctly.
8111 # The option is referenced via a variable to avoid confusing sed.
8112 lt_compile=`echo "$ac_compile" | $SED \
8113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8115 -e 's:$: $lt_compiler_flag:'`
8116 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8117 (eval "$lt_compile" 2>conftest.err)
8118 ac_status=$?
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 if (exit $ac_status) && test -s "$ac_outfile"; then
8122 # The compiler can only warn and ignore the option if not recognized
8123 # So say no if there are warnings other than the usual output.
8124 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8126 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8127 lt_cv_prog_compiler_rtti_exceptions=yes
8128 fi
8129 fi
8130 $RM conftest*
8131
8132 fi
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8134 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8135
8136 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8137 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8138 else
8139 :
8140 fi
8141
8142 fi
8143
8144
8145
8146
8147
8148
8149 lt_prog_compiler_wl=
8150 lt_prog_compiler_pic=
8151 lt_prog_compiler_static=
8152
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8154 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8155
8156 if test "$GCC" = yes; then
8157 lt_prog_compiler_wl='-Wl,'
8158 lt_prog_compiler_static='-static'
8159
8160 case $host_os in
8161 aix*)
8162 # All AIX code is PIC.
8163 if test "$host_cpu" = ia64; then
8164 # AIX 5 now supports IA64 processor
8165 lt_prog_compiler_static='-Bstatic'
8166 fi
8167 lt_prog_compiler_pic='-fPIC'
8168 ;;
8169
8170 amigaos*)
8171 case $host_cpu in
8172 powerpc)
8173 # see comment about AmigaOS4 .so support
8174 lt_prog_compiler_pic='-fPIC'
8175 ;;
8176 m68k)
8177 # FIXME: we need at least 68020 code to build shared libraries, but
8178 # adding the `-m68020' flag to GCC prevents building anything better,
8179 # like `-m68040'.
8180 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8181 ;;
8182 esac
8183 ;;
8184
8185 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8186 # PIC is the default for these OSes.
8187 ;;
8188
8189 mingw* | cygwin* | pw32* | os2* | cegcc*)
8190 # This hack is so that the source file can tell whether it is being
8191 # built for inclusion in a dll (and should export symbols for example).
8192 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8193 # (--disable-auto-import) libraries
8194 lt_prog_compiler_pic='-DDLL_EXPORT'
8195 ;;
8196
8197 darwin* | rhapsody*)
8198 # PIC is the default on this platform
8199 # Common symbols not allowed in MH_DYLIB files
8200 lt_prog_compiler_pic='-fno-common'
8201 ;;
8202
8203 haiku*)
8204 # PIC is the default for Haiku.
8205 # The "-static" flag exists, but is broken.
8206 lt_prog_compiler_static=
8207 ;;
8208
8209 hpux*)
8210 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8211 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8212 # sets the default TLS model and affects inlining.
8213 case $host_cpu in
8214 hppa*64*)
8215 # +Z the default
8216 ;;
8217 *)
8218 lt_prog_compiler_pic='-fPIC'
8219 ;;
8220 esac
8221 ;;
8222
8223 interix[3-9]*)
8224 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8225 # Instead, we relocate shared libraries at runtime.
8226 ;;
8227
8228 msdosdjgpp*)
8229 # Just because we use GCC doesn't mean we suddenly get shared libraries
8230 # on systems that don't support them.
8231 lt_prog_compiler_can_build_shared=no
8232 enable_shared=no
8233 ;;
8234
8235 *nto* | *qnx*)
8236 # QNX uses GNU C++, but need to define -shared option too, otherwise
8237 # it will coredump.
8238 lt_prog_compiler_pic='-fPIC -shared'
8239 ;;
8240
8241 sysv4*MP*)
8242 if test -d /usr/nec; then
8243 lt_prog_compiler_pic=-Kconform_pic
8244 fi
8245 ;;
8246
8247 *)
8248 lt_prog_compiler_pic='-fPIC'
8249 ;;
8250 esac
8251
8252 case $cc_basename in
8253 nvcc*) # Cuda Compiler Driver 2.2
8254 lt_prog_compiler_wl='-Xlinker '
8255 lt_prog_compiler_pic='-Xcompiler -fPIC'
8256 ;;
8257 esac
8258 else
8259 # PORTME Check for flag to pass linker flags through the system compiler.
8260 case $host_os in
8261 aix*)
8262 lt_prog_compiler_wl='-Wl,'
8263 if test "$host_cpu" = ia64; then
8264 # AIX 5 now supports IA64 processor
8265 lt_prog_compiler_static='-Bstatic'
8266 else
8267 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8268 fi
8269 ;;
8270
8271 mingw* | cygwin* | pw32* | os2* | cegcc*)
8272 # This hack is so that the source file can tell whether it is being
8273 # built for inclusion in a dll (and should export symbols for example).
8274 lt_prog_compiler_pic='-DDLL_EXPORT'
8275 ;;
8276
8277 hpux9* | hpux10* | hpux11*)
8278 lt_prog_compiler_wl='-Wl,'
8279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8280 # not for PA HP-UX.
8281 case $host_cpu in
8282 hppa*64*|ia64*)
8283 # +Z the default
8284 ;;
8285 *)
8286 lt_prog_compiler_pic='+Z'
8287 ;;
8288 esac
8289 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8290 lt_prog_compiler_static='${wl}-a ${wl}archive'
8291 ;;
8292
8293 irix5* | irix6* | nonstopux*)
8294 lt_prog_compiler_wl='-Wl,'
8295 # PIC (with -KPIC) is the default.
8296 lt_prog_compiler_static='-non_shared'
8297 ;;
8298
8299 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8300 case $cc_basename in
8301 # old Intel for x86_64 which still supported -KPIC.
8302 ecc*)
8303 lt_prog_compiler_wl='-Wl,'
8304 lt_prog_compiler_pic='-KPIC'
8305 lt_prog_compiler_static='-static'
8306 ;;
8307 # icc used to be incompatible with GCC.
8308 # ICC 10 doesn't accept -KPIC any more.
8309 icc* | ifort*)
8310 lt_prog_compiler_wl='-Wl,'
8311 lt_prog_compiler_pic='-fPIC'
8312 lt_prog_compiler_static='-static'
8313 ;;
8314 # Lahey Fortran 8.1.
8315 lf95*)
8316 lt_prog_compiler_wl='-Wl,'
8317 lt_prog_compiler_pic='--shared'
8318 lt_prog_compiler_static='--static'
8319 ;;
8320 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8321 # Portland Group compilers (*not* the Pentium gcc compiler,
8322 # which looks to be a dead project)
8323 lt_prog_compiler_wl='-Wl,'
8324 lt_prog_compiler_pic='-fpic'
8325 lt_prog_compiler_static='-Bstatic'
8326 ;;
8327 ccc*)
8328 lt_prog_compiler_wl='-Wl,'
8329 # All Alpha code is PIC.
8330 lt_prog_compiler_static='-non_shared'
8331 ;;
8332 xl* | bgxl* | bgf* | mpixl*)
8333 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8334 lt_prog_compiler_wl='-Wl,'
8335 lt_prog_compiler_pic='-qpic'
8336 lt_prog_compiler_static='-qstaticlink'
8337 ;;
8338 *)
8339 case `$CC -V 2>&1 | sed 5q` in
8340 *Sun\ F* | *Sun*Fortran*)
8341 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8342 lt_prog_compiler_pic='-KPIC'
8343 lt_prog_compiler_static='-Bstatic'
8344 lt_prog_compiler_wl=''
8345 ;;
8346 *Sun\ C*)
8347 # Sun C 5.9
8348 lt_prog_compiler_pic='-KPIC'
8349 lt_prog_compiler_static='-Bstatic'
8350 lt_prog_compiler_wl='-Wl,'
8351 ;;
8352 esac
8353 ;;
8354 esac
8355 ;;
8356
8357 newsos6)
8358 lt_prog_compiler_pic='-KPIC'
8359 lt_prog_compiler_static='-Bstatic'
8360 ;;
8361
8362 *nto* | *qnx*)
8363 # QNX uses GNU C++, but need to define -shared option too, otherwise
8364 # it will coredump.
8365 lt_prog_compiler_pic='-fPIC -shared'
8366 ;;
8367
8368 osf3* | osf4* | osf5*)
8369 lt_prog_compiler_wl='-Wl,'
8370 # All OSF/1 code is PIC.
8371 lt_prog_compiler_static='-non_shared'
8372 ;;
8373
8374 rdos*)
8375 lt_prog_compiler_static='-non_shared'
8376 ;;
8377
8378 solaris*)
8379 lt_prog_compiler_pic='-KPIC'
8380 lt_prog_compiler_static='-Bstatic'
8381 case $cc_basename in
8382 f77* | f90* | f95*)
8383 lt_prog_compiler_wl='-Qoption ld ';;
8384 *)
8385 lt_prog_compiler_wl='-Wl,';;
8386 esac
8387 ;;
8388
8389 sunos4*)
8390 lt_prog_compiler_wl='-Qoption ld '
8391 lt_prog_compiler_pic='-PIC'
8392 lt_prog_compiler_static='-Bstatic'
8393 ;;
8394
8395 sysv4 | sysv4.2uw2* | sysv4.3*)
8396 lt_prog_compiler_wl='-Wl,'
8397 lt_prog_compiler_pic='-KPIC'
8398 lt_prog_compiler_static='-Bstatic'
8399 ;;
8400
8401 sysv4*MP*)
8402 if test -d /usr/nec ;then
8403 lt_prog_compiler_pic='-Kconform_pic'
8404 lt_prog_compiler_static='-Bstatic'
8405 fi
8406 ;;
8407
8408 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8409 lt_prog_compiler_wl='-Wl,'
8410 lt_prog_compiler_pic='-KPIC'
8411 lt_prog_compiler_static='-Bstatic'
8412 ;;
8413
8414 unicos*)
8415 lt_prog_compiler_wl='-Wl,'
8416 lt_prog_compiler_can_build_shared=no
8417 ;;
8418
8419 uts4*)
8420 lt_prog_compiler_pic='-pic'
8421 lt_prog_compiler_static='-Bstatic'
8422 ;;
8423
8424 *)
8425 lt_prog_compiler_can_build_shared=no
8426 ;;
8427 esac
8428 fi
8429
8430 case $host_os in
8431 # For platforms which do not support PIC, -DPIC is meaningless:
8432 *djgpp*)
8433 lt_prog_compiler_pic=
8434 ;;
8435 *)
8436 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8437 ;;
8438 esac
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8440 $as_echo "$lt_prog_compiler_pic" >&6; }
8441
8442
8443
8444
8445
8446
8447 #
8448 # Check to make sure the PIC flag actually works.
8449 #
8450 if test -n "$lt_prog_compiler_pic"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8452 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8453 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8454 $as_echo_n "(cached) " >&6
8455 else
8456 lt_cv_prog_compiler_pic_works=no
8457 ac_outfile=conftest.$ac_objext
8458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8459 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8460 # Insert the option either (1) after the last *FLAGS variable, or
8461 # (2) before a word containing "conftest.", or (3) at the end.
8462 # Note that $ac_compile itself does not contain backslashes and begins
8463 # with a dollar sign (not a hyphen), so the echo should work correctly.
8464 # The option is referenced via a variable to avoid confusing sed.
8465 lt_compile=`echo "$ac_compile" | $SED \
8466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8468 -e 's:$: $lt_compiler_flag:'`
8469 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8470 (eval "$lt_compile" 2>conftest.err)
8471 ac_status=$?
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 if (exit $ac_status) && test -s "$ac_outfile"; then
8475 # The compiler can only warn and ignore the option if not recognized
8476 # So say no if there are warnings other than the usual output.
8477 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8479 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8480 lt_cv_prog_compiler_pic_works=yes
8481 fi
8482 fi
8483 $RM conftest*
8484
8485 fi
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8487 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8488
8489 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8490 case $lt_prog_compiler_pic in
8491 "" | " "*) ;;
8492 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8493 esac
8494 else
8495 lt_prog_compiler_pic=
8496 lt_prog_compiler_can_build_shared=no
8497 fi
8498
8499 fi
8500
8501
8502
8503
8504
8505
8506 #
8507 # Check to make sure the static flag actually works.
8508 #
8509 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8511 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8512 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 lt_cv_prog_compiler_static_works=no
8516 save_LDFLAGS="$LDFLAGS"
8517 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8518 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8519 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8520 # The linker can only warn and ignore the option if not recognized
8521 # So say no if there are warnings
8522 if test -s conftest.err; then
8523 # Append any errors to the config.log.
8524 cat conftest.err 1>&5
8525 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8527 if diff conftest.exp conftest.er2 >/dev/null; then
8528 lt_cv_prog_compiler_static_works=yes
8529 fi
8530 else
8531 lt_cv_prog_compiler_static_works=yes
8532 fi
8533 fi
8534 $RM -r conftest*
8535 LDFLAGS="$save_LDFLAGS"
8536
8537 fi
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8539 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8540
8541 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8542 :
8543 else
8544 lt_prog_compiler_static=
8545 fi
8546
8547
8548
8549
8550
8551
8552
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8554 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8555 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 lt_cv_prog_compiler_c_o=no
8559 $RM -r conftest 2>/dev/null
8560 mkdir conftest
8561 cd conftest
8562 mkdir out
8563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8564
8565 lt_compiler_flag="-o out/conftest2.$ac_objext"
8566 # Insert the option either (1) after the last *FLAGS variable, or
8567 # (2) before a word containing "conftest.", or (3) at the end.
8568 # Note that $ac_compile itself does not contain backslashes and begins
8569 # with a dollar sign (not a hyphen), so the echo should work correctly.
8570 lt_compile=`echo "$ac_compile" | $SED \
8571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8573 -e 's:$: $lt_compiler_flag:'`
8574 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8575 (eval "$lt_compile" 2>out/conftest.err)
8576 ac_status=$?
8577 cat out/conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8580 then
8581 # The compiler can only warn and ignore the option if not recognized
8582 # So say no if there are warnings
8583 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8584 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8585 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8586 lt_cv_prog_compiler_c_o=yes
8587 fi
8588 fi
8589 chmod u+w . 2>&5
8590 $RM conftest*
8591 # SGI C++ compiler will create directory out/ii_files/ for
8592 # template instantiation
8593 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8594 $RM out/* && rmdir out
8595 cd ..
8596 $RM -r conftest
8597 $RM conftest*
8598
8599 fi
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8601 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8602
8603
8604
8605
8606
8607
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8609 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8610 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8611 $as_echo_n "(cached) " >&6
8612 else
8613 lt_cv_prog_compiler_c_o=no
8614 $RM -r conftest 2>/dev/null
8615 mkdir conftest
8616 cd conftest
8617 mkdir out
8618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8619
8620 lt_compiler_flag="-o out/conftest2.$ac_objext"
8621 # Insert the option either (1) after the last *FLAGS variable, or
8622 # (2) before a word containing "conftest.", or (3) at the end.
8623 # Note that $ac_compile itself does not contain backslashes and begins
8624 # with a dollar sign (not a hyphen), so the echo should work correctly.
8625 lt_compile=`echo "$ac_compile" | $SED \
8626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8628 -e 's:$: $lt_compiler_flag:'`
8629 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8630 (eval "$lt_compile" 2>out/conftest.err)
8631 ac_status=$?
8632 cat out/conftest.err >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8635 then
8636 # The compiler can only warn and ignore the option if not recognized
8637 # So say no if there are warnings
8638 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8639 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8640 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8641 lt_cv_prog_compiler_c_o=yes
8642 fi
8643 fi
8644 chmod u+w . 2>&5
8645 $RM conftest*
8646 # SGI C++ compiler will create directory out/ii_files/ for
8647 # template instantiation
8648 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8649 $RM out/* && rmdir out
8650 cd ..
8651 $RM -r conftest
8652 $RM conftest*
8653
8654 fi
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8656 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8657
8658
8659
8660
8661 hard_links="nottested"
8662 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8663 # do not overwrite the value of need_locks provided by the user
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8665 $as_echo_n "checking if we can lock with hard links... " >&6; }
8666 hard_links=yes
8667 $RM conftest*
8668 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8669 touch conftest.a
8670 ln conftest.a conftest.b 2>&5 || hard_links=no
8671 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8673 $as_echo "$hard_links" >&6; }
8674 if test "$hard_links" = no; then
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8676 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8677 need_locks=warn
8678 fi
8679 else
8680 need_locks=no
8681 fi
8682
8683
8684
8685
8686
8687
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8689 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8690
8691 runpath_var=
8692 allow_undefined_flag=
8693 always_export_symbols=no
8694 archive_cmds=
8695 archive_expsym_cmds=
8696 compiler_needs_object=no
8697 enable_shared_with_static_runtimes=no
8698 export_dynamic_flag_spec=
8699 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8700 hardcode_automatic=no
8701 hardcode_direct=no
8702 hardcode_direct_absolute=no
8703 hardcode_libdir_flag_spec=
8704 hardcode_libdir_flag_spec_ld=
8705 hardcode_libdir_separator=
8706 hardcode_minus_L=no
8707 hardcode_shlibpath_var=unsupported
8708 inherit_rpath=no
8709 link_all_deplibs=unknown
8710 module_cmds=
8711 module_expsym_cmds=
8712 old_archive_from_new_cmds=
8713 old_archive_from_expsyms_cmds=
8714 thread_safe_flag_spec=
8715 whole_archive_flag_spec=
8716 # include_expsyms should be a list of space-separated symbols to be *always*
8717 # included in the symbol list
8718 include_expsyms=
8719 # exclude_expsyms can be an extended regexp of symbols to exclude
8720 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8721 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8722 # as well as any symbol that contains `d'.
8723 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8724 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8725 # platforms (ab)use it in PIC code, but their linkers get confused if
8726 # the symbol is explicitly referenced. Since portable code cannot
8727 # rely on this symbol name, it's probably fine to never include it in
8728 # preloaded symbol tables.
8729 # Exclude shared library initialization/finalization symbols.
8730 extract_expsyms_cmds=
8731
8732 case $host_os in
8733 cygwin* | mingw* | pw32* | cegcc*)
8734 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8735 # When not using gcc, we currently assume that we are using
8736 # Microsoft Visual C++.
8737 if test "$GCC" != yes; then
8738 with_gnu_ld=no
8739 fi
8740 ;;
8741 interix*)
8742 # we just hope/assume this is gcc and not c89 (= MSVC++)
8743 with_gnu_ld=yes
8744 ;;
8745 openbsd*)
8746 with_gnu_ld=no
8747 ;;
8748 esac
8749
8750 ld_shlibs=yes
8751
8752 # On some targets, GNU ld is compatible enough with the native linker
8753 # that we're better off using the native interface for both.
8754 lt_use_gnu_ld_interface=no
8755 if test "$with_gnu_ld" = yes; then
8756 case $host_os in
8757 aix*)
8758 # The AIX port of GNU ld has always aspired to compatibility
8759 # with the native linker. However, as the warning in the GNU ld
8760 # block says, versions before 2.19.5* couldn't really create working
8761 # shared libraries, regardless of the interface used.
8762 case `$LD -v 2>&1` in
8763 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8764 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8765 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8766 *)
8767 lt_use_gnu_ld_interface=yes
8768 ;;
8769 esac
8770 ;;
8771 *)
8772 lt_use_gnu_ld_interface=yes
8773 ;;
8774 esac
8775 fi
8776
8777 if test "$lt_use_gnu_ld_interface" = yes; then
8778 # If archive_cmds runs LD, not CC, wlarc should be empty
8779 wlarc='${wl}'
8780
8781 # Set some defaults for GNU ld with shared library support. These
8782 # are reset later if shared libraries are not supported. Putting them
8783 # here allows them to be overridden if necessary.
8784 runpath_var=LD_RUN_PATH
8785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8786 export_dynamic_flag_spec='${wl}--export-dynamic'
8787 # ancient GNU ld didn't support --whole-archive et. al.
8788 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8789 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8790 else
8791 whole_archive_flag_spec=
8792 fi
8793 supports_anon_versioning=no
8794 case `$LD -v 2>&1` in
8795 *GNU\ gold*) supports_anon_versioning=yes ;;
8796 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8797 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8798 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8799 *\ 2.11.*) ;; # other 2.11 versions
8800 *) supports_anon_versioning=yes ;;
8801 esac
8802
8803 # See if GNU ld supports shared libraries.
8804 case $host_os in
8805 aix[3-9]*)
8806 # On AIX/PPC, the GNU linker is very broken
8807 if test "$host_cpu" != ia64; then
8808 ld_shlibs=no
8809 cat <<_LT_EOF 1>&2
8810
8811 *** Warning: the GNU linker, at least up to release 2.19, is reported
8812 *** to be unable to reliably create shared libraries on AIX.
8813 *** Therefore, libtool is disabling shared libraries support. If you
8814 *** really care for shared libraries, you may want to install binutils
8815 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8816 *** You will then need to restart the configuration process.
8817
8818 _LT_EOF
8819 fi
8820 ;;
8821
8822 amigaos*)
8823 case $host_cpu in
8824 powerpc)
8825 # see comment about AmigaOS4 .so support
8826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8827 archive_expsym_cmds=''
8828 ;;
8829 m68k)
8830 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8831 hardcode_libdir_flag_spec='-L$libdir'
8832 hardcode_minus_L=yes
8833 ;;
8834 esac
8835 ;;
8836
8837 beos*)
8838 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8839 allow_undefined_flag=unsupported
8840 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8841 # support --undefined. This deserves some investigation. FIXME
8842 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8843 else
8844 ld_shlibs=no
8845 fi
8846 ;;
8847
8848 cygwin* | mingw* | pw32* | cegcc*)
8849 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8850 # as there is no search path for DLLs.
8851 hardcode_libdir_flag_spec='-L$libdir'
8852 export_dynamic_flag_spec='${wl}--export-all-symbols'
8853 allow_undefined_flag=unsupported
8854 always_export_symbols=no
8855 enable_shared_with_static_runtimes=yes
8856 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8857
8858 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8860 # If the export-symbols file already is a .def file (1st line
8861 # is EXPORTS), use it as is; otherwise, prepend...
8862 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8863 cp $export_symbols $output_objdir/$soname.def;
8864 else
8865 echo EXPORTS > $output_objdir/$soname.def;
8866 cat $export_symbols >> $output_objdir/$soname.def;
8867 fi~
8868 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8869 else
8870 ld_shlibs=no
8871 fi
8872 ;;
8873
8874 haiku*)
8875 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8876 link_all_deplibs=yes
8877 ;;
8878
8879 interix[3-9]*)
8880 hardcode_direct=no
8881 hardcode_shlibpath_var=no
8882 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8883 export_dynamic_flag_spec='${wl}-E'
8884 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8885 # Instead, shared libraries are loaded at an image base (0x10000000 by
8886 # default) and relocated if they conflict, which is a slow very memory
8887 # consuming and fragmenting process. To avoid this, we pick a random,
8888 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8889 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8890 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8891 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8892 ;;
8893
8894 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8895 tmp_diet=no
8896 if test "$host_os" = linux-dietlibc; then
8897 case $cc_basename in
8898 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8899 esac
8900 fi
8901 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8902 && test "$tmp_diet" = no
8903 then
8904 tmp_addflag=' $pic_flag'
8905 tmp_sharedflag='-shared'
8906 case $cc_basename,$host_cpu in
8907 pgcc*) # Portland Group C compiler
8908 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8909 tmp_addflag=' $pic_flag'
8910 ;;
8911 pgf77* | pgf90* | pgf95* | pgfortran*)
8912 # Portland Group f77 and f90 compilers
8913 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8914 tmp_addflag=' $pic_flag -Mnomain' ;;
8915 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8916 tmp_addflag=' -i_dynamic' ;;
8917 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8918 tmp_addflag=' -i_dynamic -nofor_main' ;;
8919 ifc* | ifort*) # Intel Fortran compiler
8920 tmp_addflag=' -nofor_main' ;;
8921 lf95*) # Lahey Fortran 8.1
8922 whole_archive_flag_spec=
8923 tmp_sharedflag='--shared' ;;
8924 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8925 tmp_sharedflag='-qmkshrobj'
8926 tmp_addflag= ;;
8927 nvcc*) # Cuda Compiler Driver 2.2
8928 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8929 compiler_needs_object=yes
8930 ;;
8931 esac
8932 case `$CC -V 2>&1 | sed 5q` in
8933 *Sun\ C*) # Sun C 5.9
8934 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8935 compiler_needs_object=yes
8936 tmp_sharedflag='-G' ;;
8937 *Sun\ F*) # Sun Fortran 8.3
8938 tmp_sharedflag='-G' ;;
8939 esac
8940 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8941
8942 if test "x$supports_anon_versioning" = xyes; then
8943 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8944 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8945 echo "local: *; };" >> $output_objdir/$libname.ver~
8946 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8947 fi
8948
8949 case $cc_basename in
8950 xlf* | bgf* | bgxlf* | mpixlf*)
8951 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8952 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8953 hardcode_libdir_flag_spec=
8954 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8955 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8956 if test "x$supports_anon_versioning" = xyes; then
8957 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8958 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8959 echo "local: *; };" >> $output_objdir/$libname.ver~
8960 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8961 fi
8962 ;;
8963 esac
8964 else
8965 ld_shlibs=no
8966 fi
8967 ;;
8968
8969 netbsd*)
8970 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8971 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8972 wlarc=
8973 else
8974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8975 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8976 fi
8977 ;;
8978
8979 solaris*)
8980 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8981 ld_shlibs=no
8982 cat <<_LT_EOF 1>&2
8983
8984 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8985 *** create shared libraries on Solaris systems. Therefore, libtool
8986 *** is disabling shared libraries support. We urge you to upgrade GNU
8987 *** binutils to release 2.9.1 or newer. Another option is to modify
8988 *** your PATH or compiler configuration so that the native linker is
8989 *** used, and then restart.
8990
8991 _LT_EOF
8992 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8994 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8995 else
8996 ld_shlibs=no
8997 fi
8998 ;;
8999
9000 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9001 case `$LD -v 2>&1` in
9002 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9003 ld_shlibs=no
9004 cat <<_LT_EOF 1>&2
9005
9006 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9007 *** reliably create shared libraries on SCO systems. Therefore, libtool
9008 *** is disabling shared libraries support. We urge you to upgrade GNU
9009 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9010 *** your PATH or compiler configuration so that the native linker is
9011 *** used, and then restart.
9012
9013 _LT_EOF
9014 ;;
9015 *)
9016 # For security reasons, it is highly recommended that you always
9017 # use absolute paths for naming shared libraries, and exclude the
9018 # DT_RUNPATH tag from executables and libraries. But doing so
9019 # requires that you compile everything twice, which is a pain.
9020 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9023 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9024 else
9025 ld_shlibs=no
9026 fi
9027 ;;
9028 esac
9029 ;;
9030
9031 sunos4*)
9032 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9033 wlarc=
9034 hardcode_direct=yes
9035 hardcode_shlibpath_var=no
9036 ;;
9037
9038 *)
9039 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9041 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9042 else
9043 ld_shlibs=no
9044 fi
9045 ;;
9046 esac
9047
9048 if test "$ld_shlibs" = no; then
9049 runpath_var=
9050 hardcode_libdir_flag_spec=
9051 export_dynamic_flag_spec=
9052 whole_archive_flag_spec=
9053 fi
9054 else
9055 # PORTME fill in a description of your system's linker (not GNU ld)
9056 case $host_os in
9057 aix3*)
9058 allow_undefined_flag=unsupported
9059 always_export_symbols=yes
9060 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9061 # Note: this linker hardcodes the directories in LIBPATH if there
9062 # are no directories specified by -L.
9063 hardcode_minus_L=yes
9064 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9065 # Neither direct hardcoding nor static linking is supported with a
9066 # broken collect2.
9067 hardcode_direct=unsupported
9068 fi
9069 ;;
9070
9071 aix[4-9]*)
9072 if test "$host_cpu" = ia64; then
9073 # On IA64, the linker does run time linking by default, so we don't
9074 # have to do anything special.
9075 aix_use_runtimelinking=no
9076 exp_sym_flag='-Bexport'
9077 no_entry_flag=""
9078 else
9079 # If we're using GNU nm, then we don't want the "-C" option.
9080 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9081 # Also, AIX nm treats weak defined symbols like other global
9082 # defined symbols, whereas GNU nm marks them as "W".
9083 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9084 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9085 else
9086 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9087 fi
9088 aix_use_runtimelinking=no
9089
9090 # Test if we are trying to use run time linking or normal
9091 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9092 # need to do runtime linking.
9093 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9094 for ld_flag in $LDFLAGS; do
9095 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9096 aix_use_runtimelinking=yes
9097 break
9098 fi
9099 done
9100 ;;
9101 esac
9102
9103 exp_sym_flag='-bexport'
9104 no_entry_flag='-bnoentry'
9105 fi
9106
9107 # When large executables or shared objects are built, AIX ld can
9108 # have problems creating the table of contents. If linking a library
9109 # or program results in "error TOC overflow" add -mminimal-toc to
9110 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9111 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9112
9113 archive_cmds=''
9114 hardcode_direct=yes
9115 hardcode_direct_absolute=yes
9116 hardcode_libdir_separator=':'
9117 link_all_deplibs=yes
9118 file_list_spec='${wl}-f,'
9119
9120 if test "$GCC" = yes; then
9121 case $host_os in aix4.[012]|aix4.[012].*)
9122 # We only want to do this on AIX 4.2 and lower, the check
9123 # below for broken collect2 doesn't work under 4.3+
9124 collect2name=`${CC} -print-prog-name=collect2`
9125 if test -f "$collect2name" &&
9126 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9127 then
9128 # We have reworked collect2
9129 :
9130 else
9131 # We have old collect2
9132 hardcode_direct=unsupported
9133 # It fails to find uninstalled libraries when the uninstalled
9134 # path is not listed in the libpath. Setting hardcode_minus_L
9135 # to unsupported forces relinking
9136 hardcode_minus_L=yes
9137 hardcode_libdir_flag_spec='-L$libdir'
9138 hardcode_libdir_separator=
9139 fi
9140 ;;
9141 esac
9142 shared_flag='-shared'
9143 if test "$aix_use_runtimelinking" = yes; then
9144 shared_flag="$shared_flag "'${wl}-G'
9145 fi
9146 else
9147 # not using gcc
9148 if test "$host_cpu" = ia64; then
9149 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9150 # chokes on -Wl,-G. The following line is correct:
9151 shared_flag='-G'
9152 else
9153 if test "$aix_use_runtimelinking" = yes; then
9154 shared_flag='${wl}-G'
9155 else
9156 shared_flag='${wl}-bM:SRE'
9157 fi
9158 fi
9159 fi
9160
9161 export_dynamic_flag_spec='${wl}-bexpall'
9162 # It seems that -bexpall does not export symbols beginning with
9163 # underscore (_), so it is better to generate a list of symbols to export.
9164 always_export_symbols=yes
9165 if test "$aix_use_runtimelinking" = yes; then
9166 # Warning - without using the other runtime loading flags (-brtl),
9167 # -berok will link without error, but may produce a broken library.
9168 allow_undefined_flag='-berok'
9169 # Determine the default libpath from the value encoded in an
9170 # empty executable.
9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172 /* end confdefs.h. */
9173
9174 int
9175 main ()
9176 {
9177
9178 ;
9179 return 0;
9180 }
9181 _ACEOF
9182 if ac_fn_c_try_link "$LINENO"; then :
9183
9184 lt_aix_libpath_sed='
9185 /Import File Strings/,/^$/ {
9186 /^0/ {
9187 s/^0 *\(.*\)$/\1/
9188 p
9189 }
9190 }'
9191 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9192 # Check for a 64-bit object if we didn't find anything.
9193 if test -z "$aix_libpath"; then
9194 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9195 fi
9196 fi
9197 rm -f core conftest.err conftest.$ac_objext \
9198 conftest$ac_exeext conftest.$ac_ext
9199 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9200
9201 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9202 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9203 else
9204 if test "$host_cpu" = ia64; then
9205 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9206 allow_undefined_flag="-z nodefs"
9207 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9208 else
9209 # Determine the default libpath from the value encoded in an
9210 # empty executable.
9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9213
9214 int
9215 main ()
9216 {
9217
9218 ;
9219 return 0;
9220 }
9221 _ACEOF
9222 if ac_fn_c_try_link "$LINENO"; then :
9223
9224 lt_aix_libpath_sed='
9225 /Import File Strings/,/^$/ {
9226 /^0/ {
9227 s/^0 *\(.*\)$/\1/
9228 p
9229 }
9230 }'
9231 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9232 # Check for a 64-bit object if we didn't find anything.
9233 if test -z "$aix_libpath"; then
9234 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9235 fi
9236 fi
9237 rm -f core conftest.err conftest.$ac_objext \
9238 conftest$ac_exeext conftest.$ac_ext
9239 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9240
9241 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9242 # Warning - without using the other run time loading flags,
9243 # -berok will link without error, but may produce a broken library.
9244 no_undefined_flag=' ${wl}-bernotok'
9245 allow_undefined_flag=' ${wl}-berok'
9246 if test "$with_gnu_ld" = yes; then
9247 # We only use this code for GNU lds that support --whole-archive.
9248 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9249 else
9250 # Exported symbols can be pulled into shared objects from archives
9251 whole_archive_flag_spec='$convenience'
9252 fi
9253 archive_cmds_need_lc=yes
9254 # This is similar to how AIX traditionally builds its shared libraries.
9255 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9256 fi
9257 fi
9258 ;;
9259
9260 amigaos*)
9261 case $host_cpu in
9262 powerpc)
9263 # see comment about AmigaOS4 .so support
9264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9265 archive_expsym_cmds=''
9266 ;;
9267 m68k)
9268 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9269 hardcode_libdir_flag_spec='-L$libdir'
9270 hardcode_minus_L=yes
9271 ;;
9272 esac
9273 ;;
9274
9275 bsdi[45]*)
9276 export_dynamic_flag_spec=-rdynamic
9277 ;;
9278
9279 cygwin* | mingw* | pw32* | cegcc*)
9280 # When not using gcc, we currently assume that we are using
9281 # Microsoft Visual C++.
9282 # hardcode_libdir_flag_spec is actually meaningless, as there is
9283 # no search path for DLLs.
9284 hardcode_libdir_flag_spec=' '
9285 allow_undefined_flag=unsupported
9286 # Tell ltmain to make .lib files, not .a files.
9287 libext=lib
9288 # Tell ltmain to make .dll files, not .so files.
9289 shrext_cmds=".dll"
9290 # FIXME: Setting linknames here is a bad hack.
9291 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9292 # The linker will automatically build a .lib file if we build a DLL.
9293 old_archive_from_new_cmds='true'
9294 # FIXME: Should let the user specify the lib program.
9295 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9296 fix_srcfile_path='`cygpath -w "$srcfile"`'
9297 enable_shared_with_static_runtimes=yes
9298 ;;
9299
9300 darwin* | rhapsody*)
9301
9302
9303 archive_cmds_need_lc=no
9304 hardcode_direct=no
9305 hardcode_automatic=yes
9306 hardcode_shlibpath_var=unsupported
9307 if test "$lt_cv_ld_force_load" = "yes"; then
9308 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9309 else
9310 whole_archive_flag_spec=''
9311 fi
9312 link_all_deplibs=yes
9313 allow_undefined_flag="$_lt_dar_allow_undefined"
9314 case $cc_basename in
9315 ifort*) _lt_dar_can_shared=yes ;;
9316 *) _lt_dar_can_shared=$GCC ;;
9317 esac
9318 if test "$_lt_dar_can_shared" = "yes"; then
9319 output_verbose_link_cmd=func_echo_all
9320 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9321 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9322 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9323 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9324
9325 else
9326 ld_shlibs=no
9327 fi
9328
9329 ;;
9330
9331 dgux*)
9332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333 hardcode_libdir_flag_spec='-L$libdir'
9334 hardcode_shlibpath_var=no
9335 ;;
9336
9337 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9338 # support. Future versions do this automatically, but an explicit c++rt0.o
9339 # does not break anything, and helps significantly (at the cost of a little
9340 # extra space).
9341 freebsd2.2*)
9342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9343 hardcode_libdir_flag_spec='-R$libdir'
9344 hardcode_direct=yes
9345 hardcode_shlibpath_var=no
9346 ;;
9347
9348 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9349 freebsd2.*)
9350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9351 hardcode_direct=yes
9352 hardcode_minus_L=yes
9353 hardcode_shlibpath_var=no
9354 ;;
9355
9356 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9357 freebsd* | dragonfly*)
9358 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9359 hardcode_libdir_flag_spec='-R$libdir'
9360 hardcode_direct=yes
9361 hardcode_shlibpath_var=no
9362 ;;
9363
9364 hpux9*)
9365 if test "$GCC" = yes; then
9366 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9367 else
9368 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9369 fi
9370 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9371 hardcode_libdir_separator=:
9372 hardcode_direct=yes
9373
9374 # hardcode_minus_L: Not really in the search PATH,
9375 # but as the default location of the library.
9376 hardcode_minus_L=yes
9377 export_dynamic_flag_spec='${wl}-E'
9378 ;;
9379
9380 hpux10*)
9381 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9382 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9383 else
9384 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9385 fi
9386 if test "$with_gnu_ld" = no; then
9387 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9388 hardcode_libdir_flag_spec_ld='+b $libdir'
9389 hardcode_libdir_separator=:
9390 hardcode_direct=yes
9391 hardcode_direct_absolute=yes
9392 export_dynamic_flag_spec='${wl}-E'
9393 # hardcode_minus_L: Not really in the search PATH,
9394 # but as the default location of the library.
9395 hardcode_minus_L=yes
9396 fi
9397 ;;
9398
9399 hpux11*)
9400 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9401 case $host_cpu in
9402 hppa*64*)
9403 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9404 ;;
9405 ia64*)
9406 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9407 ;;
9408 *)
9409 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9410 ;;
9411 esac
9412 else
9413 case $host_cpu in
9414 hppa*64*)
9415 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9416 ;;
9417 ia64*)
9418 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9419 ;;
9420 *)
9421
9422 # Older versions of the 11.00 compiler do not understand -b yet
9423 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9425 $as_echo_n "checking if $CC understands -b... " >&6; }
9426 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9427 $as_echo_n "(cached) " >&6
9428 else
9429 lt_cv_prog_compiler__b=no
9430 save_LDFLAGS="$LDFLAGS"
9431 LDFLAGS="$LDFLAGS -b"
9432 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9433 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9434 # The linker can only warn and ignore the option if not recognized
9435 # So say no if there are warnings
9436 if test -s conftest.err; then
9437 # Append any errors to the config.log.
9438 cat conftest.err 1>&5
9439 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9441 if diff conftest.exp conftest.er2 >/dev/null; then
9442 lt_cv_prog_compiler__b=yes
9443 fi
9444 else
9445 lt_cv_prog_compiler__b=yes
9446 fi
9447 fi
9448 $RM -r conftest*
9449 LDFLAGS="$save_LDFLAGS"
9450
9451 fi
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9453 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9454
9455 if test x"$lt_cv_prog_compiler__b" = xyes; then
9456 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9457 else
9458 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9459 fi
9460
9461 ;;
9462 esac
9463 fi
9464 if test "$with_gnu_ld" = no; then
9465 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9466 hardcode_libdir_separator=:
9467
9468 case $host_cpu in
9469 hppa*64*|ia64*)
9470 hardcode_direct=no
9471 hardcode_shlibpath_var=no
9472 ;;
9473 *)
9474 hardcode_direct=yes
9475 hardcode_direct_absolute=yes
9476 export_dynamic_flag_spec='${wl}-E'
9477
9478 # hardcode_minus_L: Not really in the search PATH,
9479 # but as the default location of the library.
9480 hardcode_minus_L=yes
9481 ;;
9482 esac
9483 fi
9484 ;;
9485
9486 irix5* | irix6* | nonstopux*)
9487 if test "$GCC" = yes; then
9488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9489 # Try to use the -exported_symbol ld option, if it does not
9490 # work, assume that -exports_file does not work either and
9491 # implicitly export all symbols.
9492 save_LDFLAGS="$LDFLAGS"
9493 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9496 int foo(void) {}
9497 _ACEOF
9498 if ac_fn_c_try_link "$LINENO"; then :
9499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9500
9501 fi
9502 rm -f core conftest.err conftest.$ac_objext \
9503 conftest$ac_exeext conftest.$ac_ext
9504 LDFLAGS="$save_LDFLAGS"
9505 else
9506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9507 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9508 fi
9509 archive_cmds_need_lc='no'
9510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9511 hardcode_libdir_separator=:
9512 inherit_rpath=yes
9513 link_all_deplibs=yes
9514 ;;
9515
9516 netbsd*)
9517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9519 else
9520 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9521 fi
9522 hardcode_libdir_flag_spec='-R$libdir'
9523 hardcode_direct=yes
9524 hardcode_shlibpath_var=no
9525 ;;
9526
9527 newsos6)
9528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9529 hardcode_direct=yes
9530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9531 hardcode_libdir_separator=:
9532 hardcode_shlibpath_var=no
9533 ;;
9534
9535 *nto* | *qnx*)
9536 ;;
9537
9538 openbsd*)
9539 if test -f /usr/libexec/ld.so; then
9540 hardcode_direct=yes
9541 hardcode_shlibpath_var=no
9542 hardcode_direct_absolute=yes
9543 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9545 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9546 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9547 export_dynamic_flag_spec='${wl}-E'
9548 else
9549 case $host_os in
9550 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9552 hardcode_libdir_flag_spec='-R$libdir'
9553 ;;
9554 *)
9555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9557 ;;
9558 esac
9559 fi
9560 else
9561 ld_shlibs=no
9562 fi
9563 ;;
9564
9565 os2*)
9566 hardcode_libdir_flag_spec='-L$libdir'
9567 hardcode_minus_L=yes
9568 allow_undefined_flag=unsupported
9569 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9570 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9571 ;;
9572
9573 osf3*)
9574 if test "$GCC" = yes; then
9575 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9576 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9577 else
9578 allow_undefined_flag=' -expect_unresolved \*'
9579 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9580 fi
9581 archive_cmds_need_lc='no'
9582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9583 hardcode_libdir_separator=:
9584 ;;
9585
9586 osf4* | osf5*) # as osf3* with the addition of -msym flag
9587 if test "$GCC" = yes; then
9588 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9589 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9590 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9591 else
9592 allow_undefined_flag=' -expect_unresolved \*'
9593 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9594 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9595 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9596
9597 # Both c and cxx compiler support -rpath directly
9598 hardcode_libdir_flag_spec='-rpath $libdir'
9599 fi
9600 archive_cmds_need_lc='no'
9601 hardcode_libdir_separator=:
9602 ;;
9603
9604 solaris*)
9605 no_undefined_flag=' -z defs'
9606 if test "$GCC" = yes; then
9607 wlarc='${wl}'
9608 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9609 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9610 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9611 else
9612 case `$CC -V 2>&1` in
9613 *"Compilers 5.0"*)
9614 wlarc=''
9615 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9616 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9617 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9618 ;;
9619 *)
9620 wlarc='${wl}'
9621 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9622 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9623 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9624 ;;
9625 esac
9626 fi
9627 hardcode_libdir_flag_spec='-R$libdir'
9628 hardcode_shlibpath_var=no
9629 case $host_os in
9630 solaris2.[0-5] | solaris2.[0-5].*) ;;
9631 *)
9632 # The compiler driver will combine and reorder linker options,
9633 # but understands `-z linker_flag'. GCC discards it without `$wl',
9634 # but is careful enough not to reorder.
9635 # Supported since Solaris 2.6 (maybe 2.5.1?)
9636 if test "$GCC" = yes; then
9637 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9638 else
9639 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9640 fi
9641 ;;
9642 esac
9643 link_all_deplibs=yes
9644 ;;
9645
9646 sunos4*)
9647 if test "x$host_vendor" = xsequent; then
9648 # Use $CC to link under sequent, because it throws in some extra .o
9649 # files that make .init and .fini sections work.
9650 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9651 else
9652 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9653 fi
9654 hardcode_libdir_flag_spec='-L$libdir'
9655 hardcode_direct=yes
9656 hardcode_minus_L=yes
9657 hardcode_shlibpath_var=no
9658 ;;
9659
9660 sysv4)
9661 case $host_vendor in
9662 sni)
9663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664 hardcode_direct=yes # is this really true???
9665 ;;
9666 siemens)
9667 ## LD is ld it makes a PLAMLIB
9668 ## CC just makes a GrossModule.
9669 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9670 reload_cmds='$CC -r -o $output$reload_objs'
9671 hardcode_direct=no
9672 ;;
9673 motorola)
9674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9676 ;;
9677 esac
9678 runpath_var='LD_RUN_PATH'
9679 hardcode_shlibpath_var=no
9680 ;;
9681
9682 sysv4.3*)
9683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9684 hardcode_shlibpath_var=no
9685 export_dynamic_flag_spec='-Bexport'
9686 ;;
9687
9688 sysv4*MP*)
9689 if test -d /usr/nec; then
9690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691 hardcode_shlibpath_var=no
9692 runpath_var=LD_RUN_PATH
9693 hardcode_runpath_var=yes
9694 ld_shlibs=yes
9695 fi
9696 ;;
9697
9698 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9699 no_undefined_flag='${wl}-z,text'
9700 archive_cmds_need_lc=no
9701 hardcode_shlibpath_var=no
9702 runpath_var='LD_RUN_PATH'
9703
9704 if test "$GCC" = yes; then
9705 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9707 else
9708 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9709 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9710 fi
9711 ;;
9712
9713 sysv5* | sco3.2v5* | sco5v6*)
9714 # Note: We can NOT use -z defs as we might desire, because we do not
9715 # link with -lc, and that would cause any symbols used from libc to
9716 # always be unresolved, which means just about no library would
9717 # ever link correctly. If we're not using GNU ld we use -z text
9718 # though, which does catch some bad symbols but isn't as heavy-handed
9719 # as -z defs.
9720 no_undefined_flag='${wl}-z,text'
9721 allow_undefined_flag='${wl}-z,nodefs'
9722 archive_cmds_need_lc=no
9723 hardcode_shlibpath_var=no
9724 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9725 hardcode_libdir_separator=':'
9726 link_all_deplibs=yes
9727 export_dynamic_flag_spec='${wl}-Bexport'
9728 runpath_var='LD_RUN_PATH'
9729
9730 if test "$GCC" = yes; then
9731 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9732 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9733 else
9734 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9736 fi
9737 ;;
9738
9739 uts4*)
9740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741 hardcode_libdir_flag_spec='-L$libdir'
9742 hardcode_shlibpath_var=no
9743 ;;
9744
9745 *)
9746 ld_shlibs=no
9747 ;;
9748 esac
9749
9750 if test x$host_vendor = xsni; then
9751 case $host in
9752 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9753 export_dynamic_flag_spec='${wl}-Blargedynsym'
9754 ;;
9755 esac
9756 fi
9757 fi
9758
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9760 $as_echo "$ld_shlibs" >&6; }
9761 test "$ld_shlibs" = no && can_build_shared=no
9762
9763 with_gnu_ld=$with_gnu_ld
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779 #
9780 # Do we need to explicitly link libc?
9781 #
9782 case "x$archive_cmds_need_lc" in
9783 x|xyes)
9784 # Assume -lc should be added
9785 archive_cmds_need_lc=yes
9786
9787 if test "$enable_shared" = yes && test "$GCC" = yes; then
9788 case $archive_cmds in
9789 *'~'*)
9790 # FIXME: we may have to deal with multi-command sequences.
9791 ;;
9792 '$CC '*)
9793 # Test whether the compiler implicitly links with -lc since on some
9794 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9795 # to ld, don't add -lc before -lgcc.
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9797 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9798 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 $RM conftest*
9802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9803
9804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9805 (eval $ac_compile) 2>&5
9806 ac_status=$?
9807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9808 test $ac_status = 0; } 2>conftest.err; then
9809 soname=conftest
9810 lib=conftest
9811 libobjs=conftest.$ac_objext
9812 deplibs=
9813 wl=$lt_prog_compiler_wl
9814 pic_flag=$lt_prog_compiler_pic
9815 compiler_flags=-v
9816 linker_flags=-v
9817 verstring=
9818 output_objdir=.
9819 libname=conftest
9820 lt_save_allow_undefined_flag=$allow_undefined_flag
9821 allow_undefined_flag=
9822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9823 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9824 ac_status=$?
9825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9826 test $ac_status = 0; }
9827 then
9828 lt_cv_archive_cmds_need_lc=no
9829 else
9830 lt_cv_archive_cmds_need_lc=yes
9831 fi
9832 allow_undefined_flag=$lt_save_allow_undefined_flag
9833 else
9834 cat conftest.err 1>&5
9835 fi
9836 $RM conftest*
9837
9838 fi
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9840 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9841 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9842 ;;
9843 esac
9844 fi
9845 ;;
9846 esac
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10005 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10006
10007 if test "$GCC" = yes; then
10008 case $host_os in
10009 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10010 *) lt_awk_arg="/^libraries:/" ;;
10011 esac
10012 case $host_os in
10013 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10014 *) lt_sed_strip_eq="s,=/,/,g" ;;
10015 esac
10016 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10017 case $lt_search_path_spec in
10018 *\;*)
10019 # if the path contains ";" then we assume it to be the separator
10020 # otherwise default to the standard path separator (i.e. ":") - it is
10021 # assumed that no part of a normal pathname contains ";" but that should
10022 # okay in the real world where ";" in dirpaths is itself problematic.
10023 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10024 ;;
10025 *)
10026 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10027 ;;
10028 esac
10029 # Ok, now we have the path, separated by spaces, we can step through it
10030 # and add multilib dir if necessary.
10031 lt_tmp_lt_search_path_spec=
10032 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10033 for lt_sys_path in $lt_search_path_spec; do
10034 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10035 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10036 else
10037 test -d "$lt_sys_path" && \
10038 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10039 fi
10040 done
10041 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10042 BEGIN {RS=" "; FS="/|\n";} {
10043 lt_foo="";
10044 lt_count=0;
10045 for (lt_i = NF; lt_i > 0; lt_i--) {
10046 if ($lt_i != "" && $lt_i != ".") {
10047 if ($lt_i == "..") {
10048 lt_count++;
10049 } else {
10050 if (lt_count == 0) {
10051 lt_foo="/" $lt_i lt_foo;
10052 } else {
10053 lt_count--;
10054 }
10055 }
10056 }
10057 }
10058 if (lt_foo != "") { lt_freq[lt_foo]++; }
10059 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10060 }'`
10061 # AWK program above erroneously prepends '/' to C:/dos/paths
10062 # for these hosts.
10063 case $host_os in
10064 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10065 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10066 esac
10067 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10068 else
10069 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10070 fi
10071 library_names_spec=
10072 libname_spec='lib$name'
10073 soname_spec=
10074 shrext_cmds=".so"
10075 postinstall_cmds=
10076 postuninstall_cmds=
10077 finish_cmds=
10078 finish_eval=
10079 shlibpath_var=
10080 shlibpath_overrides_runpath=unknown
10081 version_type=none
10082 dynamic_linker="$host_os ld.so"
10083 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10084 need_lib_prefix=unknown
10085 hardcode_into_libs=no
10086
10087 # when you set need_version to no, make sure it does not cause -set_version
10088 # flags to be left without arguments
10089 need_version=unknown
10090
10091 case $host_os in
10092 aix3*)
10093 version_type=linux
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10095 shlibpath_var=LIBPATH
10096
10097 # AIX 3 has no versioning support, so we append a major version to the name.
10098 soname_spec='${libname}${release}${shared_ext}$major'
10099 ;;
10100
10101 aix[4-9]*)
10102 version_type=linux
10103 need_lib_prefix=no
10104 need_version=no
10105 hardcode_into_libs=yes
10106 if test "$host_cpu" = ia64; then
10107 # AIX 5 supports IA64
10108 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10109 shlibpath_var=LD_LIBRARY_PATH
10110 else
10111 # With GCC up to 2.95.x, collect2 would create an import file
10112 # for dependence libraries. The import file would start with
10113 # the line `#! .'. This would cause the generated library to
10114 # depend on `.', always an invalid library. This was fixed in
10115 # development snapshots of GCC prior to 3.0.
10116 case $host_os in
10117 aix4 | aix4.[01] | aix4.[01].*)
10118 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10119 echo ' yes '
10120 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10121 :
10122 else
10123 can_build_shared=no
10124 fi
10125 ;;
10126 esac
10127 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10128 # soname into executable. Probably we can add versioning support to
10129 # collect2, so additional links can be useful in future.
10130 if test "$aix_use_runtimelinking" = yes; then
10131 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10132 # instead of lib<name>.a to let people know that these are not
10133 # typical AIX shared libraries.
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135 else
10136 # We preserve .a as extension for shared libraries through AIX4.2
10137 # and later when we are not doing run time linking.
10138 library_names_spec='${libname}${release}.a $libname.a'
10139 soname_spec='${libname}${release}${shared_ext}$major'
10140 fi
10141 shlibpath_var=LIBPATH
10142 fi
10143 ;;
10144
10145 amigaos*)
10146 case $host_cpu in
10147 powerpc)
10148 # Since July 2007 AmigaOS4 officially supports .so libraries.
10149 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10151 ;;
10152 m68k)
10153 library_names_spec='$libname.ixlibrary $libname.a'
10154 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10155 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10156 ;;
10157 esac
10158 ;;
10159
10160 beos*)
10161 library_names_spec='${libname}${shared_ext}'
10162 dynamic_linker="$host_os ld.so"
10163 shlibpath_var=LIBRARY_PATH
10164 ;;
10165
10166 bsdi[45]*)
10167 version_type=linux
10168 need_version=no
10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10170 soname_spec='${libname}${release}${shared_ext}$major'
10171 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10174 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10175 # the default ld.so.conf also contains /usr/contrib/lib and
10176 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10177 # libtool to hard-code these into programs
10178 ;;
10179
10180 cygwin* | mingw* | pw32* | cegcc*)
10181 version_type=windows
10182 shrext_cmds=".dll"
10183 need_version=no
10184 need_lib_prefix=no
10185
10186 case $GCC,$host_os in
10187 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10188 library_names_spec='$libname.dll.a'
10189 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10190 postinstall_cmds='base_file=`basename \${file}`~
10191 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10192 dldir=$destdir/`dirname \$dlpath`~
10193 test -d \$dldir || mkdir -p \$dldir~
10194 $install_prog $dir/$dlname \$dldir/$dlname~
10195 chmod a+x \$dldir/$dlname~
10196 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10197 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10198 fi'
10199 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10200 dlpath=$dir/\$dldll~
10201 $RM \$dlpath'
10202 shlibpath_overrides_runpath=yes
10203
10204 case $host_os in
10205 cygwin*)
10206 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10207 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10208
10209 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10210 ;;
10211 mingw* | cegcc*)
10212 # MinGW DLLs use traditional 'lib' prefix
10213 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10214 ;;
10215 pw32*)
10216 # pw32 DLLs use 'pw' prefix rather than 'lib'
10217 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10218 ;;
10219 esac
10220 ;;
10221
10222 *)
10223 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10224 ;;
10225 esac
10226 dynamic_linker='Win32 ld.exe'
10227 # FIXME: first we should search . and the directory the executable is in
10228 shlibpath_var=PATH
10229 ;;
10230
10231 darwin* | rhapsody*)
10232 dynamic_linker="$host_os dyld"
10233 version_type=darwin
10234 need_lib_prefix=no
10235 need_version=no
10236 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10237 soname_spec='${libname}${release}${major}$shared_ext'
10238 shlibpath_overrides_runpath=yes
10239 shlibpath_var=DYLD_LIBRARY_PATH
10240 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10241
10242 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10243 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10244 ;;
10245
10246 dgux*)
10247 version_type=linux
10248 need_lib_prefix=no
10249 need_version=no
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 ;;
10254
10255 freebsd* | dragonfly*)
10256 # DragonFly does not have aout. When/if they implement a new
10257 # versioning mechanism, adjust this.
10258 if test -x /usr/bin/objformat; then
10259 objformat=`/usr/bin/objformat`
10260 else
10261 case $host_os in
10262 freebsd[23].*) objformat=aout ;;
10263 *) objformat=elf ;;
10264 esac
10265 fi
10266 version_type=freebsd-$objformat
10267 case $version_type in
10268 freebsd-elf*)
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10270 need_version=no
10271 need_lib_prefix=no
10272 ;;
10273 freebsd-*)
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10275 need_version=yes
10276 ;;
10277 esac
10278 shlibpath_var=LD_LIBRARY_PATH
10279 case $host_os in
10280 freebsd2.*)
10281 shlibpath_overrides_runpath=yes
10282 ;;
10283 freebsd3.[01]* | freebsdelf3.[01]*)
10284 shlibpath_overrides_runpath=yes
10285 hardcode_into_libs=yes
10286 ;;
10287 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10288 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10289 shlibpath_overrides_runpath=no
10290 hardcode_into_libs=yes
10291 ;;
10292 *) # from 4.6 on, and DragonFly
10293 shlibpath_overrides_runpath=yes
10294 hardcode_into_libs=yes
10295 ;;
10296 esac
10297 ;;
10298
10299 gnu*)
10300 version_type=linux
10301 need_lib_prefix=no
10302 need_version=no
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 hardcode_into_libs=yes
10307 ;;
10308
10309 haiku*)
10310 version_type=linux
10311 need_lib_prefix=no
10312 need_version=no
10313 dynamic_linker="$host_os runtime_loader"
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10315 soname_spec='${libname}${release}${shared_ext}$major'
10316 shlibpath_var=LIBRARY_PATH
10317 shlibpath_overrides_runpath=yes
10318 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10319 hardcode_into_libs=yes
10320 ;;
10321
10322 hpux9* | hpux10* | hpux11*)
10323 # Give a soname corresponding to the major version so that dld.sl refuses to
10324 # link against other versions.
10325 version_type=sunos
10326 need_lib_prefix=no
10327 need_version=no
10328 case $host_cpu in
10329 ia64*)
10330 shrext_cmds='.so'
10331 hardcode_into_libs=yes
10332 dynamic_linker="$host_os dld.so"
10333 shlibpath_var=LD_LIBRARY_PATH
10334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 if test "X$HPUX_IA64_MODE" = X32; then
10338 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10339 else
10340 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10341 fi
10342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10343 ;;
10344 hppa*64*)
10345 shrext_cmds='.sl'
10346 hardcode_into_libs=yes
10347 dynamic_linker="$host_os dld.sl"
10348 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10352 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10354 ;;
10355 *)
10356 shrext_cmds='.sl'
10357 dynamic_linker="$host_os dld.sl"
10358 shlibpath_var=SHLIB_PATH
10359 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 ;;
10363 esac
10364 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10365 postinstall_cmds='chmod 555 $lib'
10366 # or fails outright, so override atomically:
10367 install_override_mode=555
10368 ;;
10369
10370 interix[3-9]*)
10371 version_type=linux
10372 need_lib_prefix=no
10373 need_version=no
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10375 soname_spec='${libname}${release}${shared_ext}$major'
10376 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10377 shlibpath_var=LD_LIBRARY_PATH
10378 shlibpath_overrides_runpath=no
10379 hardcode_into_libs=yes
10380 ;;
10381
10382 irix5* | irix6* | nonstopux*)
10383 case $host_os in
10384 nonstopux*) version_type=nonstopux ;;
10385 *)
10386 if test "$lt_cv_prog_gnu_ld" = yes; then
10387 version_type=linux
10388 else
10389 version_type=irix
10390 fi ;;
10391 esac
10392 need_lib_prefix=no
10393 need_version=no
10394 soname_spec='${libname}${release}${shared_ext}$major'
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10396 case $host_os in
10397 irix5* | nonstopux*)
10398 libsuff= shlibsuff=
10399 ;;
10400 *)
10401 case $LD in # libtool.m4 will add one of these switches to LD
10402 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10403 libsuff= shlibsuff= libmagic=32-bit;;
10404 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10405 libsuff=32 shlibsuff=N32 libmagic=N32;;
10406 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10407 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10408 *) libsuff= shlibsuff= libmagic=never-match;;
10409 esac
10410 ;;
10411 esac
10412 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10413 shlibpath_overrides_runpath=no
10414 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10415 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10416 hardcode_into_libs=yes
10417 ;;
10418
10419 # No shared lib support for Linux oldld, aout, or coff.
10420 linux*oldld* | linux*aout* | linux*coff*)
10421 dynamic_linker=no
10422 ;;
10423
10424 # This must be Linux ELF.
10425 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10426 version_type=linux
10427 need_lib_prefix=no
10428 need_version=no
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430 soname_spec='${libname}${release}${shared_ext}$major'
10431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10432 shlibpath_var=LD_LIBRARY_PATH
10433 shlibpath_overrides_runpath=no
10434
10435 # Some binutils ld are patched to set DT_RUNPATH
10436 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10437 $as_echo_n "(cached) " >&6
10438 else
10439 lt_cv_shlibpath_overrides_runpath=no
10440 save_LDFLAGS=$LDFLAGS
10441 save_libdir=$libdir
10442 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10443 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10445 /* end confdefs.h. */
10446
10447 int
10448 main ()
10449 {
10450
10451 ;
10452 return 0;
10453 }
10454 _ACEOF
10455 if ac_fn_c_try_link "$LINENO"; then :
10456 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10457 lt_cv_shlibpath_overrides_runpath=yes
10458 fi
10459 fi
10460 rm -f core conftest.err conftest.$ac_objext \
10461 conftest$ac_exeext conftest.$ac_ext
10462 LDFLAGS=$save_LDFLAGS
10463 libdir=$save_libdir
10464
10465 fi
10466
10467 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10468
10469 # This implies no fast_install, which is unacceptable.
10470 # Some rework will be needed to allow for fast_install
10471 # before this can be enabled.
10472 hardcode_into_libs=yes
10473
10474 # Append ld.so.conf contents to the search path
10475 if test -f /etc/ld.so.conf; then
10476 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10477 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10478 fi
10479
10480 # We used to test for /lib/ld.so.1 and disable shared libraries on
10481 # powerpc, because MkLinux only supported shared libraries with the
10482 # GNU dynamic linker. Since this was broken with cross compilers,
10483 # most powerpc-linux boxes support dynamic linking these days and
10484 # people can always --disable-shared, the test was removed, and we
10485 # assume the GNU/Linux dynamic linker is in use.
10486 dynamic_linker='GNU/Linux ld.so'
10487 ;;
10488
10489 netbsd*)
10490 version_type=sunos
10491 need_lib_prefix=no
10492 need_version=no
10493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10496 dynamic_linker='NetBSD (a.out) ld.so'
10497 else
10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10499 soname_spec='${libname}${release}${shared_ext}$major'
10500 dynamic_linker='NetBSD ld.elf_so'
10501 fi
10502 shlibpath_var=LD_LIBRARY_PATH
10503 shlibpath_overrides_runpath=yes
10504 hardcode_into_libs=yes
10505 ;;
10506
10507 newsos6)
10508 version_type=linux
10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10510 shlibpath_var=LD_LIBRARY_PATH
10511 shlibpath_overrides_runpath=yes
10512 ;;
10513
10514 *nto* | *qnx*)
10515 version_type=qnx
10516 need_lib_prefix=no
10517 need_version=no
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 shlibpath_var=LD_LIBRARY_PATH
10521 shlibpath_overrides_runpath=no
10522 hardcode_into_libs=yes
10523 dynamic_linker='ldqnx.so'
10524 ;;
10525
10526 openbsd*)
10527 version_type=sunos
10528 sys_lib_dlsearch_path_spec="/usr/lib"
10529 need_lib_prefix=no
10530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10531 case $host_os in
10532 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10533 *) need_version=no ;;
10534 esac
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10537 shlibpath_var=LD_LIBRARY_PATH
10538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10539 case $host_os in
10540 openbsd2.[89] | openbsd2.[89].*)
10541 shlibpath_overrides_runpath=no
10542 ;;
10543 *)
10544 shlibpath_overrides_runpath=yes
10545 ;;
10546 esac
10547 else
10548 shlibpath_overrides_runpath=yes
10549 fi
10550 ;;
10551
10552 os2*)
10553 libname_spec='$name'
10554 shrext_cmds=".dll"
10555 need_lib_prefix=no
10556 library_names_spec='$libname${shared_ext} $libname.a'
10557 dynamic_linker='OS/2 ld.exe'
10558 shlibpath_var=LIBPATH
10559 ;;
10560
10561 osf3* | osf4* | osf5*)
10562 version_type=osf
10563 need_lib_prefix=no
10564 need_version=no
10565 soname_spec='${libname}${release}${shared_ext}$major'
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567 shlibpath_var=LD_LIBRARY_PATH
10568 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10569 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10570 ;;
10571
10572 rdos*)
10573 dynamic_linker=no
10574 ;;
10575
10576 solaris*)
10577 version_type=linux
10578 need_lib_prefix=no
10579 need_version=no
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 shlibpath_var=LD_LIBRARY_PATH
10583 shlibpath_overrides_runpath=yes
10584 hardcode_into_libs=yes
10585 # ldd complains unless libraries are executable
10586 postinstall_cmds='chmod +x $lib'
10587 ;;
10588
10589 sunos4*)
10590 version_type=sunos
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10592 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10593 shlibpath_var=LD_LIBRARY_PATH
10594 shlibpath_overrides_runpath=yes
10595 if test "$with_gnu_ld" = yes; then
10596 need_lib_prefix=no
10597 fi
10598 need_version=yes
10599 ;;
10600
10601 sysv4 | sysv4.3*)
10602 version_type=linux
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604 soname_spec='${libname}${release}${shared_ext}$major'
10605 shlibpath_var=LD_LIBRARY_PATH
10606 case $host_vendor in
10607 sni)
10608 shlibpath_overrides_runpath=no
10609 need_lib_prefix=no
10610 runpath_var=LD_RUN_PATH
10611 ;;
10612 siemens)
10613 need_lib_prefix=no
10614 ;;
10615 motorola)
10616 need_lib_prefix=no
10617 need_version=no
10618 shlibpath_overrides_runpath=no
10619 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10620 ;;
10621 esac
10622 ;;
10623
10624 sysv4*MP*)
10625 if test -d /usr/nec ;then
10626 version_type=linux
10627 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10628 soname_spec='$libname${shared_ext}.$major'
10629 shlibpath_var=LD_LIBRARY_PATH
10630 fi
10631 ;;
10632
10633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10634 version_type=freebsd-elf
10635 need_lib_prefix=no
10636 need_version=no
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath=yes
10641 hardcode_into_libs=yes
10642 if test "$with_gnu_ld" = yes; then
10643 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10644 else
10645 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10646 case $host_os in
10647 sco3.2v5*)
10648 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10649 ;;
10650 esac
10651 fi
10652 sys_lib_dlsearch_path_spec='/usr/lib'
10653 ;;
10654
10655 tpf*)
10656 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10657 version_type=linux
10658 need_lib_prefix=no
10659 need_version=no
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 shlibpath_var=LD_LIBRARY_PATH
10662 shlibpath_overrides_runpath=no
10663 hardcode_into_libs=yes
10664 ;;
10665
10666 uts4*)
10667 version_type=linux
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669 soname_spec='${libname}${release}${shared_ext}$major'
10670 shlibpath_var=LD_LIBRARY_PATH
10671 ;;
10672
10673 *)
10674 dynamic_linker=no
10675 ;;
10676 esac
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10678 $as_echo "$dynamic_linker" >&6; }
10679 test "$dynamic_linker" = no && can_build_shared=no
10680
10681 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10682 if test "$GCC" = yes; then
10683 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10684 fi
10685
10686 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10687 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10688 fi
10689 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10690 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10691 fi
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10785 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10786 hardcode_action=
10787 if test -n "$hardcode_libdir_flag_spec" ||
10788 test -n "$runpath_var" ||
10789 test "X$hardcode_automatic" = "Xyes" ; then
10790
10791 # We can hardcode non-existent directories.
10792 if test "$hardcode_direct" != no &&
10793 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10794 # have to relink, otherwise we might link with an installed library
10795 # when we should be linking with a yet-to-be-installed one
10796 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10797 test "$hardcode_minus_L" != no; then
10798 # Linking always hardcodes the temporary library directory.
10799 hardcode_action=relink
10800 else
10801 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10802 hardcode_action=immediate
10803 fi
10804 else
10805 # We cannot hardcode anything, or else we can only hardcode existing
10806 # directories.
10807 hardcode_action=unsupported
10808 fi
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10810 $as_echo "$hardcode_action" >&6; }
10811
10812 if test "$hardcode_action" = relink ||
10813 test "$inherit_rpath" = yes; then
10814 # Fast installation is not supported
10815 enable_fast_install=no
10816 elif test "$shlibpath_overrides_runpath" = yes ||
10817 test "$enable_shared" = no; then
10818 # Fast installation is not necessary
10819 enable_fast_install=needless
10820 fi
10821
10822
10823
10824
10825
10826
10827 if test "x$enable_dlopen" != xyes; then
10828 enable_dlopen=unknown
10829 enable_dlopen_self=unknown
10830 enable_dlopen_self_static=unknown
10831 else
10832 lt_cv_dlopen=no
10833 lt_cv_dlopen_libs=
10834
10835 case $host_os in
10836 beos*)
10837 lt_cv_dlopen="load_add_on"
10838 lt_cv_dlopen_libs=
10839 lt_cv_dlopen_self=yes
10840 ;;
10841
10842 mingw* | pw32* | cegcc*)
10843 lt_cv_dlopen="LoadLibrary"
10844 lt_cv_dlopen_libs=
10845 ;;
10846
10847 cygwin*)
10848 lt_cv_dlopen="dlopen"
10849 lt_cv_dlopen_libs=
10850 ;;
10851
10852 darwin*)
10853 # if libdl is installed we need to link against it
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10855 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10856 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10857 $as_echo_n "(cached) " >&6
10858 else
10859 ac_check_lib_save_LIBS=$LIBS
10860 LIBS="-ldl $LIBS"
10861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862 /* end confdefs.h. */
10863
10864 /* Override any GCC internal prototype to avoid an error.
10865 Use char because int might match the return type of a GCC
10866 builtin and then its argument prototype would still apply. */
10867 #ifdef __cplusplus
10868 extern "C"
10869 #endif
10870 char dlopen ();
10871 int
10872 main ()
10873 {
10874 return dlopen ();
10875 ;
10876 return 0;
10877 }
10878 _ACEOF
10879 if ac_fn_c_try_link "$LINENO"; then :
10880 ac_cv_lib_dl_dlopen=yes
10881 else
10882 ac_cv_lib_dl_dlopen=no
10883 fi
10884 rm -f core conftest.err conftest.$ac_objext \
10885 conftest$ac_exeext conftest.$ac_ext
10886 LIBS=$ac_check_lib_save_LIBS
10887 fi
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10889 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10890 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10892 else
10893
10894 lt_cv_dlopen="dyld"
10895 lt_cv_dlopen_libs=
10896 lt_cv_dlopen_self=yes
10897
10898 fi
10899
10900 ;;
10901
10902 *)
10903 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10904 if test "x$ac_cv_func_shl_load" = x""yes; then :
10905 lt_cv_dlopen="shl_load"
10906 else
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10908 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10909 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10910 $as_echo_n "(cached) " >&6
10911 else
10912 ac_check_lib_save_LIBS=$LIBS
10913 LIBS="-ldld $LIBS"
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10916
10917 /* Override any GCC internal prototype to avoid an error.
10918 Use char because int might match the return type of a GCC
10919 builtin and then its argument prototype would still apply. */
10920 #ifdef __cplusplus
10921 extern "C"
10922 #endif
10923 char shl_load ();
10924 int
10925 main ()
10926 {
10927 return shl_load ();
10928 ;
10929 return 0;
10930 }
10931 _ACEOF
10932 if ac_fn_c_try_link "$LINENO"; then :
10933 ac_cv_lib_dld_shl_load=yes
10934 else
10935 ac_cv_lib_dld_shl_load=no
10936 fi
10937 rm -f core conftest.err conftest.$ac_objext \
10938 conftest$ac_exeext conftest.$ac_ext
10939 LIBS=$ac_check_lib_save_LIBS
10940 fi
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10942 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10943 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10944 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10945 else
10946 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10947 if test "x$ac_cv_func_dlopen" = x""yes; then :
10948 lt_cv_dlopen="dlopen"
10949 else
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10951 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10952 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10953 $as_echo_n "(cached) " >&6
10954 else
10955 ac_check_lib_save_LIBS=$LIBS
10956 LIBS="-ldl $LIBS"
10957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958 /* end confdefs.h. */
10959
10960 /* Override any GCC internal prototype to avoid an error.
10961 Use char because int might match the return type of a GCC
10962 builtin and then its argument prototype would still apply. */
10963 #ifdef __cplusplus
10964 extern "C"
10965 #endif
10966 char dlopen ();
10967 int
10968 main ()
10969 {
10970 return dlopen ();
10971 ;
10972 return 0;
10973 }
10974 _ACEOF
10975 if ac_fn_c_try_link "$LINENO"; then :
10976 ac_cv_lib_dl_dlopen=yes
10977 else
10978 ac_cv_lib_dl_dlopen=no
10979 fi
10980 rm -f core conftest.err conftest.$ac_objext \
10981 conftest$ac_exeext conftest.$ac_ext
10982 LIBS=$ac_check_lib_save_LIBS
10983 fi
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10985 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10986 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10987 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10988 else
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10990 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10991 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
10993 else
10994 ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-lsvld $LIBS"
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10998
10999 /* Override any GCC internal prototype to avoid an error.
11000 Use char because int might match the return type of a GCC
11001 builtin and then its argument prototype would still apply. */
11002 #ifdef __cplusplus
11003 extern "C"
11004 #endif
11005 char dlopen ();
11006 int
11007 main ()
11008 {
11009 return dlopen ();
11010 ;
11011 return 0;
11012 }
11013 _ACEOF
11014 if ac_fn_c_try_link "$LINENO"; then :
11015 ac_cv_lib_svld_dlopen=yes
11016 else
11017 ac_cv_lib_svld_dlopen=no
11018 fi
11019 rm -f core conftest.err conftest.$ac_objext \
11020 conftest$ac_exeext conftest.$ac_ext
11021 LIBS=$ac_check_lib_save_LIBS
11022 fi
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11024 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11025 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11027 else
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11029 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11030 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11033 ac_check_lib_save_LIBS=$LIBS
11034 LIBS="-ldld $LIBS"
11035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11037
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 char dld_link ();
11045 int
11046 main ()
11047 {
11048 return dld_link ();
11049 ;
11050 return 0;
11051 }
11052 _ACEOF
11053 if ac_fn_c_try_link "$LINENO"; then :
11054 ac_cv_lib_dld_dld_link=yes
11055 else
11056 ac_cv_lib_dld_dld_link=no
11057 fi
11058 rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11060 LIBS=$ac_check_lib_save_LIBS
11061 fi
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11063 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11064 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11065 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11066 fi
11067
11068
11069 fi
11070
11071
11072 fi
11073
11074
11075 fi
11076
11077
11078 fi
11079
11080
11081 fi
11082
11083 ;;
11084 esac
11085
11086 if test "x$lt_cv_dlopen" != xno; then
11087 enable_dlopen=yes
11088 else
11089 enable_dlopen=no
11090 fi
11091
11092 case $lt_cv_dlopen in
11093 dlopen)
11094 save_CPPFLAGS="$CPPFLAGS"
11095 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11096
11097 save_LDFLAGS="$LDFLAGS"
11098 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11099
11100 save_LIBS="$LIBS"
11101 LIBS="$lt_cv_dlopen_libs $LIBS"
11102
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11104 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11105 if test "${lt_cv_dlopen_self+set}" = set; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11108 if test "$cross_compiling" = yes; then :
11109 lt_cv_dlopen_self=cross
11110 else
11111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11112 lt_status=$lt_dlunknown
11113 cat > conftest.$ac_ext <<_LT_EOF
11114 #line 11114 "configure"
11115 #include "confdefs.h"
11116
11117 #if HAVE_DLFCN_H
11118 #include <dlfcn.h>
11119 #endif
11120
11121 #include <stdio.h>
11122
11123 #ifdef RTLD_GLOBAL
11124 # define LT_DLGLOBAL RTLD_GLOBAL
11125 #else
11126 # ifdef DL_GLOBAL
11127 # define LT_DLGLOBAL DL_GLOBAL
11128 # else
11129 # define LT_DLGLOBAL 0
11130 # endif
11131 #endif
11132
11133 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11134 find out it does not work in some platform. */
11135 #ifndef LT_DLLAZY_OR_NOW
11136 # ifdef RTLD_LAZY
11137 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11138 # else
11139 # ifdef DL_LAZY
11140 # define LT_DLLAZY_OR_NOW DL_LAZY
11141 # else
11142 # ifdef RTLD_NOW
11143 # define LT_DLLAZY_OR_NOW RTLD_NOW
11144 # else
11145 # ifdef DL_NOW
11146 # define LT_DLLAZY_OR_NOW DL_NOW
11147 # else
11148 # define LT_DLLAZY_OR_NOW 0
11149 # endif
11150 # endif
11151 # endif
11152 # endif
11153 #endif
11154
11155 /* When -fvisbility=hidden is used, assume the code has been annotated
11156 correspondingly for the symbols needed. */
11157 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11158 void fnord () __attribute__((visibility("default")));
11159 #endif
11160
11161 void fnord () { int i=42; }
11162 int main ()
11163 {
11164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11165 int status = $lt_dlunknown;
11166
11167 if (self)
11168 {
11169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11170 else
11171 {
11172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11173 else puts (dlerror ());
11174 }
11175 /* dlclose (self); */
11176 }
11177 else
11178 puts (dlerror ());
11179
11180 return status;
11181 }
11182 _LT_EOF
11183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11184 (eval $ac_link) 2>&5
11185 ac_status=$?
11186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11187 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11188 (./conftest; exit; ) >&5 2>/dev/null
11189 lt_status=$?
11190 case x$lt_status in
11191 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11192 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11193 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11194 esac
11195 else :
11196 # compilation failed
11197 lt_cv_dlopen_self=no
11198 fi
11199 fi
11200 rm -fr conftest*
11201
11202
11203 fi
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11205 $as_echo "$lt_cv_dlopen_self" >&6; }
11206
11207 if test "x$lt_cv_dlopen_self" = xyes; then
11208 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11210 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11211 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
11213 else
11214 if test "$cross_compiling" = yes; then :
11215 lt_cv_dlopen_self_static=cross
11216 else
11217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11218 lt_status=$lt_dlunknown
11219 cat > conftest.$ac_ext <<_LT_EOF
11220 #line 11220 "configure"
11221 #include "confdefs.h"
11222
11223 #if HAVE_DLFCN_H
11224 #include <dlfcn.h>
11225 #endif
11226
11227 #include <stdio.h>
11228
11229 #ifdef RTLD_GLOBAL
11230 # define LT_DLGLOBAL RTLD_GLOBAL
11231 #else
11232 # ifdef DL_GLOBAL
11233 # define LT_DLGLOBAL DL_GLOBAL
11234 # else
11235 # define LT_DLGLOBAL 0
11236 # endif
11237 #endif
11238
11239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11240 find out it does not work in some platform. */
11241 #ifndef LT_DLLAZY_OR_NOW
11242 # ifdef RTLD_LAZY
11243 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11244 # else
11245 # ifdef DL_LAZY
11246 # define LT_DLLAZY_OR_NOW DL_LAZY
11247 # else
11248 # ifdef RTLD_NOW
11249 # define LT_DLLAZY_OR_NOW RTLD_NOW
11250 # else
11251 # ifdef DL_NOW
11252 # define LT_DLLAZY_OR_NOW DL_NOW
11253 # else
11254 # define LT_DLLAZY_OR_NOW 0
11255 # endif
11256 # endif
11257 # endif
11258 # endif
11259 #endif
11260
11261 /* When -fvisbility=hidden is used, assume the code has been annotated
11262 correspondingly for the symbols needed. */
11263 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11264 void fnord () __attribute__((visibility("default")));
11265 #endif
11266
11267 void fnord () { int i=42; }
11268 int main ()
11269 {
11270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11271 int status = $lt_dlunknown;
11272
11273 if (self)
11274 {
11275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11276 else
11277 {
11278 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11279 else puts (dlerror ());
11280 }
11281 /* dlclose (self); */
11282 }
11283 else
11284 puts (dlerror ());
11285
11286 return status;
11287 }
11288 _LT_EOF
11289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11290 (eval $ac_link) 2>&5
11291 ac_status=$?
11292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11293 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11294 (./conftest; exit; ) >&5 2>/dev/null
11295 lt_status=$?
11296 case x$lt_status in
11297 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11298 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11299 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11300 esac
11301 else :
11302 # compilation failed
11303 lt_cv_dlopen_self_static=no
11304 fi
11305 fi
11306 rm -fr conftest*
11307
11308
11309 fi
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11311 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11312 fi
11313
11314 CPPFLAGS="$save_CPPFLAGS"
11315 LDFLAGS="$save_LDFLAGS"
11316 LIBS="$save_LIBS"
11317 ;;
11318 esac
11319
11320 case $lt_cv_dlopen_self in
11321 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11322 *) enable_dlopen_self=unknown ;;
11323 esac
11324
11325 case $lt_cv_dlopen_self_static in
11326 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11327 *) enable_dlopen_self_static=unknown ;;
11328 esac
11329 fi
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347 striplib=
11348 old_striplib=
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11350 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11351 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11352 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11353 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11355 $as_echo "yes" >&6; }
11356 else
11357 # FIXME - insert some real tests, host_os isn't really good enough
11358 case $host_os in
11359 darwin*)
11360 if test -n "$STRIP" ; then
11361 striplib="$STRIP -x"
11362 old_striplib="$STRIP -S"
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11364 $as_echo "yes" >&6; }
11365 else
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11368 fi
11369 ;;
11370 *)
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11373 ;;
11374 esac
11375 fi
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388 # Report which library types will actually be built
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11390 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11392 $as_echo "$can_build_shared" >&6; }
11393
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11395 $as_echo_n "checking whether to build shared libraries... " >&6; }
11396 test "$can_build_shared" = "no" && enable_shared=no
11397
11398 # On AIX, shared libraries and static libraries use the same namespace, and
11399 # are all built from PIC.
11400 case $host_os in
11401 aix3*)
11402 test "$enable_shared" = yes && enable_static=no
11403 if test -n "$RANLIB"; then
11404 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11405 postinstall_cmds='$RANLIB $lib'
11406 fi
11407 ;;
11408
11409 aix[4-9]*)
11410 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11411 test "$enable_shared" = yes && enable_static=no
11412 fi
11413 ;;
11414 esac
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11416 $as_echo "$enable_shared" >&6; }
11417
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11419 $as_echo_n "checking whether to build static libraries... " >&6; }
11420 # Make sure either enable_shared or enable_static is yes.
11421 test "$enable_shared" = yes || enable_static=yes
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11423 $as_echo "$enable_static" >&6; }
11424
11425
11426
11427
11428 fi
11429 ac_ext=c
11430 ac_cpp='$CPP $CPPFLAGS'
11431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11434
11435 CC="$lt_save_CC"
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449 ac_config_commands="$ac_config_commands libtool"
11450
11451
11452
11453
11454 # Only expand once:
11455
11456
11457
11458
11459
11460 case $host in
11461 *-cygwin* | *-mingw*)
11462 # 'host' will be top-level target in the case of a target lib,
11463 # we must compare to with_cross_host to decide if this is a native
11464 # or cross-compiler and select where to install dlls appropriately.
11465 if test -n "$with_cross_host" &&
11466 test x"$with_cross_host" != x"no"; then
11467 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11468 else
11469 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11470 fi
11471 ;;
11472 *)
11473 lt_host_flags=
11474 ;;
11475 esac
11476
11477
11478
11479
11480
11481
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11483 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11484 # Check whether --enable-maintainer-mode was given.
11485 if test "${enable_maintainer_mode+set}" = set; then :
11486 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11487 else
11488 USE_MAINTAINER_MODE=no
11489 fi
11490
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11492 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11493 if test $USE_MAINTAINER_MODE = yes; then
11494 MAINTAINER_MODE_TRUE=
11495 MAINTAINER_MODE_FALSE='#'
11496 else
11497 MAINTAINER_MODE_TRUE='#'
11498 MAINTAINER_MODE_FALSE=
11499 fi
11500
11501 MAINT=$MAINTAINER_MODE_TRUE
11502
11503
11504
11505 # For libtool versioning info, format is CURRENT:REVISION:AGE
11506 libtool_VERSION=3:0:2
11507
11508
11509 # Check for used threading-model
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
11511 $as_echo_n "checking for thread model used by GCC... " >&6; }
11512 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
11514 $as_echo "$target_thread_file" >&6; }
11515
11516 # Get target configury.
11517 . ${srcdir}/configure.tgt
11518 if test -n "$UNSUPPORTED"; then
11519 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
11520 fi
11521
11522 # Disable fallbacks to __sync routines from libgcc. Otherwise we'll
11523 # make silly decisions about what the cpu can do.
11524 CFLAGS="$save_CFLAGS -fno-sync-libcalls $XCFLAGS"
11525
11526 # Check header files.
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11528 $as_echo_n "checking for ANSI C header files... " >&6; }
11529 if test "${ac_cv_header_stdc+set}" = set; then :
11530 $as_echo_n "(cached) " >&6
11531 else
11532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h. */
11534 #include <stdlib.h>
11535 #include <stdarg.h>
11536 #include <string.h>
11537 #include <float.h>
11538
11539 int
11540 main ()
11541 {
11542
11543 ;
11544 return 0;
11545 }
11546 _ACEOF
11547 if ac_fn_c_try_compile "$LINENO"; then :
11548 ac_cv_header_stdc=yes
11549 else
11550 ac_cv_header_stdc=no
11551 fi
11552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11553
11554 if test $ac_cv_header_stdc = yes; then
11555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557 /* end confdefs.h. */
11558 #include <string.h>
11559
11560 _ACEOF
11561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11562 $EGREP "memchr" >/dev/null 2>&1; then :
11563
11564 else
11565 ac_cv_header_stdc=no
11566 fi
11567 rm -f conftest*
11568
11569 fi
11570
11571 if test $ac_cv_header_stdc = yes; then
11572 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h. */
11575 #include <stdlib.h>
11576
11577 _ACEOF
11578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11579 $EGREP "free" >/dev/null 2>&1; then :
11580
11581 else
11582 ac_cv_header_stdc=no
11583 fi
11584 rm -f conftest*
11585
11586 fi
11587
11588 if test $ac_cv_header_stdc = yes; then
11589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11590 if test "$cross_compiling" = yes; then :
11591 :
11592 else
11593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11594 /* end confdefs.h. */
11595 #include <ctype.h>
11596 #include <stdlib.h>
11597 #if ((' ' & 0x0FF) == 0x020)
11598 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11599 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11600 #else
11601 # define ISLOWER(c) \
11602 (('a' <= (c) && (c) <= 'i') \
11603 || ('j' <= (c) && (c) <= 'r') \
11604 || ('s' <= (c) && (c) <= 'z'))
11605 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11606 #endif
11607
11608 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11609 int
11610 main ()
11611 {
11612 int i;
11613 for (i = 0; i < 256; i++)
11614 if (XOR (islower (i), ISLOWER (i))
11615 || toupper (i) != TOUPPER (i))
11616 return 2;
11617 return 0;
11618 }
11619 _ACEOF
11620 if ac_fn_c_try_run "$LINENO"; then :
11621
11622 else
11623 ac_cv_header_stdc=no
11624 fi
11625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11626 conftest.$ac_objext conftest.beam conftest.$ac_ext
11627 fi
11628
11629 fi
11630 fi
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11632 $as_echo "$ac_cv_header_stdc" >&6; }
11633 if test $ac_cv_header_stdc = yes; then
11634
11635 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11636
11637 fi
11638
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
11640 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
11641 if test "${gcc_cv_header_string+set}" = set; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11646 #include <string.h>
11647 #include <strings.h>
11648 int
11649 main ()
11650 {
11651
11652 ;
11653 return 0;
11654 }
11655 _ACEOF
11656 if ac_fn_c_try_compile "$LINENO"; then :
11657 gcc_cv_header_string=yes
11658 else
11659 gcc_cv_header_string=no
11660 fi
11661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11662 fi
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
11664 $as_echo "$gcc_cv_header_string" >&6; }
11665 if test $gcc_cv_header_string = yes; then
11666
11667 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
11668
11669 fi
11670
11671
11672
11673 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11674
11675 acx_cv_header_stdint=stddef.h
11676 acx_cv_header_stdint_kind="(already complete)"
11677 for i in stdint.h $inttype_headers; do
11678 unset ac_cv_type_uintptr_t
11679 unset ac_cv_type_uintmax_t
11680 unset ac_cv_type_int_least32_t
11681 unset ac_cv_type_int_fast32_t
11682 unset ac_cv_type_uint64_t
11683 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
11684 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
11685 #include <$i>
11686 "
11687 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
11688 acx_cv_header_stdint=$i
11689 else
11690 continue
11691 fi
11692
11693 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11694 #include <$i>
11695 "
11696 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
11697
11698 else
11699 acx_cv_header_stdint_kind="(mostly complete)"
11700 fi
11701
11702 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
11703 #include <$i>
11704 "
11705 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
11706
11707 else
11708 acx_cv_header_stdint_kind="(mostly complete)"
11709 fi
11710
11711 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
11712 #include <$i>
11713 "
11714 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
11715
11716 else
11717 acx_cv_header_stdint_kind="(mostly complete)"
11718 fi
11719
11720 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11721 #include <$i>
11722 "
11723 if test "x$ac_cv_type_uint64_t" = x""yes; then :
11724
11725 else
11726 acx_cv_header_stdint_kind="(lacks uint64_t)"
11727 fi
11728
11729 break
11730 done
11731 if test "$acx_cv_header_stdint" = stddef.h; then
11732 acx_cv_header_stdint_kind="(lacks uintmax_t)"
11733 for i in stdint.h $inttype_headers; do
11734 unset ac_cv_type_uintptr_t
11735 unset ac_cv_type_uint32_t
11736 unset ac_cv_type_uint64_t
11737 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
11738 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
11739 #include <$i>
11740 "
11741 if test "x$ac_cv_type_uint32_t" = x""yes; then :
11742 acx_cv_header_stdint=$i
11743 else
11744 continue
11745 fi
11746
11747 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11748 #include <$i>
11749 "
11750 if test "x$ac_cv_type_uint64_t" = x""yes; then :
11751
11752 fi
11753
11754 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11755 #include <$i>
11756 "
11757 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
11758
11759 fi
11760
11761 break
11762 done
11763 fi
11764 if test "$acx_cv_header_stdint" = stddef.h; then
11765 acx_cv_header_stdint_kind="(u_intXX_t style)"
11766 for i in sys/types.h $inttype_headers; do
11767 unset ac_cv_type_u_int32_t
11768 unset ac_cv_type_u_int64_t
11769 $as_echo_n "looking for u_intXX_t types in $i, " >&6
11770 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
11771 #include <$i>
11772 "
11773 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
11774 acx_cv_header_stdint=$i
11775 else
11776 continue
11777 fi
11778
11779 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
11780 #include <$i>
11781 "
11782 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
11783
11784 fi
11785
11786 break
11787 done
11788 fi
11789 if test "$acx_cv_header_stdint" = stddef.h; then
11790 acx_cv_header_stdint_kind="(using manual detection)"
11791 fi
11792
11793 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
11794 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
11795 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
11796 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
11797 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
11798
11799 # ----------------- Summarize what we found so far
11800
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
11802 $as_echo_n "checking what to include in gstdint.h... " >&6; }
11803
11804 case `$as_basename -- gstdint.h ||
11805 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
11806 Xgstdint.h : 'X\(//\)$' \| \
11807 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
11808 $as_echo X/gstdint.h |
11809 sed '/^.*\/\([^/][^/]*\)\/*$/{
11810 s//\1/
11811 q
11812 }
11813 /^X\/\(\/\/\)$/{
11814 s//\1/
11815 q
11816 }
11817 /^X\/\(\/\).*/{
11818 s//\1/
11819 q
11820 }
11821 s/.*/./; q'` in
11822 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
11823 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11824 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
11825 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11826 *) ;;
11827 esac
11828
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
11830 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
11831
11832 # ----------------- done included file, check C basic types --------
11833
11834 # Lacking an uintptr_t? Test size of void *
11835 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
11836 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
11837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11839 # This bug is HP SR number 8606223364.
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
11841 $as_echo_n "checking size of void *... " >&6; }
11842 if test "${ac_cv_sizeof_void_p+set}" = set; then :
11843 $as_echo_n "(cached) " >&6
11844 else
11845 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
11846
11847 else
11848 if test "$ac_cv_type_void_p" = yes; then
11849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11851 { as_fn_set_status 77
11852 as_fn_error "cannot compute sizeof (void *)
11853 See \`config.log' for more details." "$LINENO" 5; }; }
11854 else
11855 ac_cv_sizeof_void_p=0
11856 fi
11857 fi
11858
11859 fi
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
11861 $as_echo "$ac_cv_sizeof_void_p" >&6; }
11862
11863
11864
11865 cat >>confdefs.h <<_ACEOF
11866 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
11867 _ACEOF
11868
11869 ;;
11870 esac
11871
11872 # Lacking an uint64_t? Test size of long
11873 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
11874 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
11875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11877 # This bug is HP SR number 8606223364.
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11879 $as_echo_n "checking size of long... " >&6; }
11880 if test "${ac_cv_sizeof_long+set}" = set; then :
11881 $as_echo_n "(cached) " >&6
11882 else
11883 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
11884
11885 else
11886 if test "$ac_cv_type_long" = yes; then
11887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11889 { as_fn_set_status 77
11890 as_fn_error "cannot compute sizeof (long)
11891 See \`config.log' for more details." "$LINENO" 5; }; }
11892 else
11893 ac_cv_sizeof_long=0
11894 fi
11895 fi
11896
11897 fi
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11899 $as_echo "$ac_cv_sizeof_long" >&6; }
11900
11901
11902
11903 cat >>confdefs.h <<_ACEOF
11904 #define SIZEOF_LONG $ac_cv_sizeof_long
11905 _ACEOF
11906
11907 ;;
11908 esac
11909
11910 if test $acx_cv_header_stdint = stddef.h; then
11911 # Lacking a good header? Test size of everything and deduce all types.
11912 # The cast to long int works around a bug in the HP C Compiler
11913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11915 # This bug is HP SR number 8606223364.
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11917 $as_echo_n "checking size of int... " >&6; }
11918 if test "${ac_cv_sizeof_int+set}" = set; then :
11919 $as_echo_n "(cached) " >&6
11920 else
11921 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
11922
11923 else
11924 if test "$ac_cv_type_int" = yes; then
11925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11927 { as_fn_set_status 77
11928 as_fn_error "cannot compute sizeof (int)
11929 See \`config.log' for more details." "$LINENO" 5; }; }
11930 else
11931 ac_cv_sizeof_int=0
11932 fi
11933 fi
11934
11935 fi
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11937 $as_echo "$ac_cv_sizeof_int" >&6; }
11938
11939
11940
11941 cat >>confdefs.h <<_ACEOF
11942 #define SIZEOF_INT $ac_cv_sizeof_int
11943 _ACEOF
11944
11945
11946 # The cast to long int works around a bug in the HP C Compiler
11947 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11948 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11949 # This bug is HP SR number 8606223364.
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
11951 $as_echo_n "checking size of short... " >&6; }
11952 if test "${ac_cv_sizeof_short+set}" = set; then :
11953 $as_echo_n "(cached) " >&6
11954 else
11955 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
11956
11957 else
11958 if test "$ac_cv_type_short" = yes; then
11959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11961 { as_fn_set_status 77
11962 as_fn_error "cannot compute sizeof (short)
11963 See \`config.log' for more details." "$LINENO" 5; }; }
11964 else
11965 ac_cv_sizeof_short=0
11966 fi
11967 fi
11968
11969 fi
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
11971 $as_echo "$ac_cv_sizeof_short" >&6; }
11972
11973
11974
11975 cat >>confdefs.h <<_ACEOF
11976 #define SIZEOF_SHORT $ac_cv_sizeof_short
11977 _ACEOF
11978
11979
11980 # The cast to long int works around a bug in the HP C Compiler
11981 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11982 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11983 # This bug is HP SR number 8606223364.
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
11985 $as_echo_n "checking size of char... " >&6; }
11986 if test "${ac_cv_sizeof_char+set}" = set; then :
11987 $as_echo_n "(cached) " >&6
11988 else
11989 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
11990
11991 else
11992 if test "$ac_cv_type_char" = yes; then
11993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11995 { as_fn_set_status 77
11996 as_fn_error "cannot compute sizeof (char)
11997 See \`config.log' for more details." "$LINENO" 5; }; }
11998 else
11999 ac_cv_sizeof_char=0
12000 fi
12001 fi
12002
12003 fi
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12005 $as_echo "$ac_cv_sizeof_char" >&6; }
12006
12007
12008
12009 cat >>confdefs.h <<_ACEOF
12010 #define SIZEOF_CHAR $ac_cv_sizeof_char
12011 _ACEOF
12012
12013
12014
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12016 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
12017 case "$ac_cv_sizeof_char" in
12018 1) acx_cv_type_int8_t=char ;;
12019 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
12020 esac
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12022 $as_echo "$acx_cv_type_int8_t" >&6; }
12023
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12025 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
12026 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12027 2:*) acx_cv_type_int16_t=int ;;
12028 *:2) acx_cv_type_int16_t=short ;;
12029 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
12030 esac
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12032 $as_echo "$acx_cv_type_int16_t" >&6; }
12033
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12035 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
12036 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12037 4:*) acx_cv_type_int32_t=int ;;
12038 *:4) acx_cv_type_int32_t=long ;;
12039 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
12040 esac
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12042 $as_echo "$acx_cv_type_int32_t" >&6; }
12043 fi
12044
12045 # These tests are here to make the output prettier
12046
12047 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12048 case "$ac_cv_sizeof_long" in
12049 8) acx_cv_type_int64_t=long ;;
12050 esac
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12052 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12054 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12055 fi
12056
12057 # Now we can use the above types
12058
12059 if test "$ac_cv_type_uintptr_t" != yes; then
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12061 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12062 case $ac_cv_sizeof_void_p in
12063 2) acx_cv_type_intptr_t=int16_t ;;
12064 4) acx_cv_type_intptr_t=int32_t ;;
12065 8) acx_cv_type_intptr_t=int64_t ;;
12066 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
12067 esac
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12069 $as_echo "$acx_cv_type_intptr_t" >&6; }
12070 fi
12071
12072 # ----------------- done all checks, emit header -------------
12073 ac_config_commands="$ac_config_commands gstdint.h"
12074
12075
12076
12077 for ac_header in fenv.h
12078 do :
12079 ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
12080 if test "x$ac_cv_header_fenv_h" = x""yes; then :
12081 cat >>confdefs.h <<_ACEOF
12082 #define HAVE_FENV_H 1
12083 _ACEOF
12084
12085 fi
12086
12087 done
12088
12089
12090 # Check for common type sizes
12091
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 1 byte integer" >&5
12093 $as_echo_n "checking for 1 byte integer... " >&6; }
12094 if test "${libat_cv_have_mode_QI+set}" = set; then :
12095 $as_echo_n "(cached) " >&6
12096 else
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12099 int x __attribute__((mode(QI)));
12100 _ACEOF
12101 if ac_fn_c_try_compile "$LINENO"; then :
12102 libat_cv_have_mode_QI=yes
12103 else
12104 libat_cv_have_mode_QI=no
12105 fi
12106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12107 fi
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_QI" >&5
12109 $as_echo "$libat_cv_have_mode_QI" >&6; }
12110
12111 yesno=`echo $libat_cv_have_mode_QI | tr 'yesno' '1 0 '`
12112
12113 cat >>confdefs.h <<_ACEOF
12114 #define HAVE_INT1 $yesno
12115 _ACEOF
12116
12117
12118 if test x$libat_cv_have_mode_QI = xyes; then
12119 SIZES="$SIZES 1"
12120 fi
12121
12122
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2 byte integer" >&5
12124 $as_echo_n "checking for 2 byte integer... " >&6; }
12125 if test "${libat_cv_have_mode_HI+set}" = set; then :
12126 $as_echo_n "(cached) " >&6
12127 else
12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h. */
12130 int x __attribute__((mode(HI)));
12131 _ACEOF
12132 if ac_fn_c_try_compile "$LINENO"; then :
12133 libat_cv_have_mode_HI=yes
12134 else
12135 libat_cv_have_mode_HI=no
12136 fi
12137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12138 fi
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_HI" >&5
12140 $as_echo "$libat_cv_have_mode_HI" >&6; }
12141
12142 yesno=`echo $libat_cv_have_mode_HI | tr 'yesno' '1 0 '`
12143
12144 cat >>confdefs.h <<_ACEOF
12145 #define HAVE_INT2 $yesno
12146 _ACEOF
12147
12148
12149 if test x$libat_cv_have_mode_HI = xyes; then
12150 SIZES="$SIZES 2"
12151 fi
12152
12153
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4 byte integer" >&5
12155 $as_echo_n "checking for 4 byte integer... " >&6; }
12156 if test "${libat_cv_have_mode_SI+set}" = set; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160 /* end confdefs.h. */
12161 int x __attribute__((mode(SI)));
12162 _ACEOF
12163 if ac_fn_c_try_compile "$LINENO"; then :
12164 libat_cv_have_mode_SI=yes
12165 else
12166 libat_cv_have_mode_SI=no
12167 fi
12168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12169 fi
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_SI" >&5
12171 $as_echo "$libat_cv_have_mode_SI" >&6; }
12172
12173 yesno=`echo $libat_cv_have_mode_SI | tr 'yesno' '1 0 '`
12174
12175 cat >>confdefs.h <<_ACEOF
12176 #define HAVE_INT4 $yesno
12177 _ACEOF
12178
12179
12180 if test x$libat_cv_have_mode_SI = xyes; then
12181 SIZES="$SIZES 4"
12182 fi
12183
12184
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 8 byte integer" >&5
12186 $as_echo_n "checking for 8 byte integer... " >&6; }
12187 if test "${libat_cv_have_mode_DI+set}" = set; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12192 int x __attribute__((mode(DI)));
12193 _ACEOF
12194 if ac_fn_c_try_compile "$LINENO"; then :
12195 libat_cv_have_mode_DI=yes
12196 else
12197 libat_cv_have_mode_DI=no
12198 fi
12199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200 fi
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_DI" >&5
12202 $as_echo "$libat_cv_have_mode_DI" >&6; }
12203
12204 yesno=`echo $libat_cv_have_mode_DI | tr 'yesno' '1 0 '`
12205
12206 cat >>confdefs.h <<_ACEOF
12207 #define HAVE_INT8 $yesno
12208 _ACEOF
12209
12210
12211 if test x$libat_cv_have_mode_DI = xyes; then
12212 SIZES="$SIZES 8"
12213 fi
12214
12215
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16 byte integer" >&5
12217 $as_echo_n "checking for 16 byte integer... " >&6; }
12218 if test "${libat_cv_have_mode_TI+set}" = set; then :
12219 $as_echo_n "(cached) " >&6
12220 else
12221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222 /* end confdefs.h. */
12223 int x __attribute__((mode(TI)));
12224 _ACEOF
12225 if ac_fn_c_try_compile "$LINENO"; then :
12226 libat_cv_have_mode_TI=yes
12227 else
12228 libat_cv_have_mode_TI=no
12229 fi
12230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12231 fi
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_TI" >&5
12233 $as_echo "$libat_cv_have_mode_TI" >&6; }
12234
12235 yesno=`echo $libat_cv_have_mode_TI | tr 'yesno' '1 0 '`
12236
12237 cat >>confdefs.h <<_ACEOF
12238 #define HAVE_INT16 $yesno
12239 _ACEOF
12240
12241
12242 if test x$libat_cv_have_mode_TI = xyes; then
12243 SIZES="$SIZES 16"
12244 fi
12245
12246
12247
12248 # Check for compiler builtins of atomic operations.
12249
12250 # Do link tests if possible, instead asm tests, limited to some platforms
12251 # see discussion in PR target/40134, PR libstdc++/40133 and the thread
12252 # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html
12253 atomic_builtins_link_tests=no
12254 if test x$gcc_no_link != xyes; then
12255 # Can do link tests. Limit to some tested platforms
12256 case "$host" in
12257 *-*-linux* | *-*-uclinux* | *-*-kfreebsd*-gnu | *-*-gnu*)
12258 atomic_builtins_link_tests=yes
12259 ;;
12260 esac
12261 fi
12262
12263
12264
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 1" >&5
12266 $as_echo_n "checking for __atomic_load/store for size 1... " >&6; }
12267 if test "${libat_cv_have_at_ldst_1+set}" = set; then :
12268 $as_echo_n "(cached) " >&6
12269 else
12270
12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h. */
12273
12274 int
12275 main ()
12276 {
12277 typedef int T __attribute__((mode(QI)));
12278 T *x; volatile T sink; asm("" : "=g"(x));
12279 sink = __atomic_load_n(x, 0);
12280 __atomic_store_n(x, sink, 0);
12281 ;
12282 return 0;
12283 }
12284 _ACEOF
12285 if test x$atomic_builtins_link_tests = xyes; then
12286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12287 (eval $ac_link) 2>&5
12288 ac_status=$?
12289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12290 test $ac_status = 0; }; then
12291 eval libat_cv_have_at_ldst_1=yes
12292 else
12293 eval libat_cv_have_at_ldst_1=no
12294 fi
12295 else
12296 old_CFLAGS="$CFLAGS"
12297 # Compile unoptimized.
12298 CFLAGS="$CFLAGS -O0 -S"
12299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12300 (eval $ac_compile) 2>&5
12301 ac_status=$?
12302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12303 test $ac_status = 0; }; then
12304 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12305 eval libat_cv_have_at_ldst_1=no
12306 else
12307 eval libat_cv_have_at_ldst_1=yes
12308 fi
12309 else
12310 eval libat_cv_have_at_ldst_1=no
12311 fi
12312 CFLAGS="$old_CFLAGS"
12313 fi
12314 rm -f conftest*
12315
12316 fi
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_1" >&5
12318 $as_echo "$libat_cv_have_at_ldst_1" >&6; }
12319
12320
12321 yesno=`echo $libat_cv_have_at_ldst_1 | tr 'yesno' '1 0 '`
12322
12323 cat >>confdefs.h <<_ACEOF
12324 #define HAVE_ATOMIC_LDST_1 $yesno
12325 _ACEOF
12326
12327
12328
12329
12330
12331
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 2" >&5
12333 $as_echo_n "checking for __atomic_load/store for size 2... " >&6; }
12334 if test "${libat_cv_have_at_ldst_2+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12340
12341 int
12342 main ()
12343 {
12344 typedef int T __attribute__((mode(HI)));
12345 T *x; volatile T sink; asm("" : "=g"(x));
12346 sink = __atomic_load_n(x, 0);
12347 __atomic_store_n(x, sink, 0);
12348 ;
12349 return 0;
12350 }
12351 _ACEOF
12352 if test x$atomic_builtins_link_tests = xyes; then
12353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12354 (eval $ac_link) 2>&5
12355 ac_status=$?
12356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12357 test $ac_status = 0; }; then
12358 eval libat_cv_have_at_ldst_2=yes
12359 else
12360 eval libat_cv_have_at_ldst_2=no
12361 fi
12362 else
12363 old_CFLAGS="$CFLAGS"
12364 # Compile unoptimized.
12365 CFLAGS="$CFLAGS -O0 -S"
12366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12367 (eval $ac_compile) 2>&5
12368 ac_status=$?
12369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12370 test $ac_status = 0; }; then
12371 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12372 eval libat_cv_have_at_ldst_2=no
12373 else
12374 eval libat_cv_have_at_ldst_2=yes
12375 fi
12376 else
12377 eval libat_cv_have_at_ldst_2=no
12378 fi
12379 CFLAGS="$old_CFLAGS"
12380 fi
12381 rm -f conftest*
12382
12383 fi
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_2" >&5
12385 $as_echo "$libat_cv_have_at_ldst_2" >&6; }
12386
12387
12388 yesno=`echo $libat_cv_have_at_ldst_2 | tr 'yesno' '1 0 '`
12389
12390 cat >>confdefs.h <<_ACEOF
12391 #define HAVE_ATOMIC_LDST_2 $yesno
12392 _ACEOF
12393
12394
12395
12396
12397
12398
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 4" >&5
12400 $as_echo_n "checking for __atomic_load/store for size 4... " >&6; }
12401 if test "${libat_cv_have_at_ldst_4+set}" = set; then :
12402 $as_echo_n "(cached) " >&6
12403 else
12404
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12407
12408 int
12409 main ()
12410 {
12411 typedef int T __attribute__((mode(SI)));
12412 T *x; volatile T sink; asm("" : "=g"(x));
12413 sink = __atomic_load_n(x, 0);
12414 __atomic_store_n(x, sink, 0);
12415 ;
12416 return 0;
12417 }
12418 _ACEOF
12419 if test x$atomic_builtins_link_tests = xyes; then
12420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12421 (eval $ac_link) 2>&5
12422 ac_status=$?
12423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12424 test $ac_status = 0; }; then
12425 eval libat_cv_have_at_ldst_4=yes
12426 else
12427 eval libat_cv_have_at_ldst_4=no
12428 fi
12429 else
12430 old_CFLAGS="$CFLAGS"
12431 # Compile unoptimized.
12432 CFLAGS="$CFLAGS -O0 -S"
12433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12434 (eval $ac_compile) 2>&5
12435 ac_status=$?
12436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12437 test $ac_status = 0; }; then
12438 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12439 eval libat_cv_have_at_ldst_4=no
12440 else
12441 eval libat_cv_have_at_ldst_4=yes
12442 fi
12443 else
12444 eval libat_cv_have_at_ldst_4=no
12445 fi
12446 CFLAGS="$old_CFLAGS"
12447 fi
12448 rm -f conftest*
12449
12450 fi
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_4" >&5
12452 $as_echo "$libat_cv_have_at_ldst_4" >&6; }
12453
12454
12455 yesno=`echo $libat_cv_have_at_ldst_4 | tr 'yesno' '1 0 '`
12456
12457 cat >>confdefs.h <<_ACEOF
12458 #define HAVE_ATOMIC_LDST_4 $yesno
12459 _ACEOF
12460
12461
12462
12463
12464
12465
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 8" >&5
12467 $as_echo_n "checking for __atomic_load/store for size 8... " >&6; }
12468 if test "${libat_cv_have_at_ldst_8+set}" = set; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12471
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12474
12475 int
12476 main ()
12477 {
12478 typedef int T __attribute__((mode(DI)));
12479 T *x; volatile T sink; asm("" : "=g"(x));
12480 sink = __atomic_load_n(x, 0);
12481 __atomic_store_n(x, sink, 0);
12482 ;
12483 return 0;
12484 }
12485 _ACEOF
12486 if test x$atomic_builtins_link_tests = xyes; then
12487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12488 (eval $ac_link) 2>&5
12489 ac_status=$?
12490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12491 test $ac_status = 0; }; then
12492 eval libat_cv_have_at_ldst_8=yes
12493 else
12494 eval libat_cv_have_at_ldst_8=no
12495 fi
12496 else
12497 old_CFLAGS="$CFLAGS"
12498 # Compile unoptimized.
12499 CFLAGS="$CFLAGS -O0 -S"
12500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12501 (eval $ac_compile) 2>&5
12502 ac_status=$?
12503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12504 test $ac_status = 0; }; then
12505 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12506 eval libat_cv_have_at_ldst_8=no
12507 else
12508 eval libat_cv_have_at_ldst_8=yes
12509 fi
12510 else
12511 eval libat_cv_have_at_ldst_8=no
12512 fi
12513 CFLAGS="$old_CFLAGS"
12514 fi
12515 rm -f conftest*
12516
12517 fi
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_8" >&5
12519 $as_echo "$libat_cv_have_at_ldst_8" >&6; }
12520
12521
12522 yesno=`echo $libat_cv_have_at_ldst_8 | tr 'yesno' '1 0 '`
12523
12524 cat >>confdefs.h <<_ACEOF
12525 #define HAVE_ATOMIC_LDST_8 $yesno
12526 _ACEOF
12527
12528
12529
12530
12531
12532
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 16" >&5
12534 $as_echo_n "checking for __atomic_load/store for size 16... " >&6; }
12535 if test "${libat_cv_have_at_ldst_16+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12541
12542 int
12543 main ()
12544 {
12545 typedef int T __attribute__((mode(TI)));
12546 T *x; volatile T sink; asm("" : "=g"(x));
12547 sink = __atomic_load_n(x, 0);
12548 __atomic_store_n(x, sink, 0);
12549 ;
12550 return 0;
12551 }
12552 _ACEOF
12553 if test x$atomic_builtins_link_tests = xyes; then
12554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12555 (eval $ac_link) 2>&5
12556 ac_status=$?
12557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12558 test $ac_status = 0; }; then
12559 eval libat_cv_have_at_ldst_16=yes
12560 else
12561 eval libat_cv_have_at_ldst_16=no
12562 fi
12563 else
12564 old_CFLAGS="$CFLAGS"
12565 # Compile unoptimized.
12566 CFLAGS="$CFLAGS -O0 -S"
12567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12568 (eval $ac_compile) 2>&5
12569 ac_status=$?
12570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12571 test $ac_status = 0; }; then
12572 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12573 eval libat_cv_have_at_ldst_16=no
12574 else
12575 eval libat_cv_have_at_ldst_16=yes
12576 fi
12577 else
12578 eval libat_cv_have_at_ldst_16=no
12579 fi
12580 CFLAGS="$old_CFLAGS"
12581 fi
12582 rm -f conftest*
12583
12584 fi
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_16" >&5
12586 $as_echo "$libat_cv_have_at_ldst_16" >&6; }
12587
12588
12589 yesno=`echo $libat_cv_have_at_ldst_16 | tr 'yesno' '1 0 '`
12590
12591 cat >>confdefs.h <<_ACEOF
12592 #define HAVE_ATOMIC_LDST_16 $yesno
12593 _ACEOF
12594
12595
12596
12597
12598
12599
12600
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 1" >&5
12602 $as_echo_n "checking for __atomic_test_and_set for size 1... " >&6; }
12603 if test "${libat_cv_have_at_tas_1+set}" = set; then :
12604 $as_echo_n "(cached) " >&6
12605 else
12606
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12609
12610 int
12611 main ()
12612 {
12613 typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
12614 __atomic_test_and_set(x, 0);
12615 ;
12616 return 0;
12617 }
12618 _ACEOF
12619 if test x$atomic_builtins_link_tests = xyes; then
12620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12621 (eval $ac_link) 2>&5
12622 ac_status=$?
12623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12624 test $ac_status = 0; }; then
12625 eval libat_cv_have_at_tas_1=yes
12626 else
12627 eval libat_cv_have_at_tas_1=no
12628 fi
12629 else
12630 old_CFLAGS="$CFLAGS"
12631 # Compile unoptimized.
12632 CFLAGS="$CFLAGS -O0 -S"
12633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12634 (eval $ac_compile) 2>&5
12635 ac_status=$?
12636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12637 test $ac_status = 0; }; then
12638 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12639 eval libat_cv_have_at_tas_1=no
12640 else
12641 eval libat_cv_have_at_tas_1=yes
12642 fi
12643 else
12644 eval libat_cv_have_at_tas_1=no
12645 fi
12646 CFLAGS="$old_CFLAGS"
12647 fi
12648 rm -f conftest*
12649
12650 fi
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_1" >&5
12652 $as_echo "$libat_cv_have_at_tas_1" >&6; }
12653
12654
12655 yesno=`echo $libat_cv_have_at_tas_1 | tr 'yesno' '1 0 '`
12656
12657 cat >>confdefs.h <<_ACEOF
12658 #define HAVE_ATOMIC_TAS_1 $yesno
12659 _ACEOF
12660
12661
12662
12663
12664
12665
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 2" >&5
12667 $as_echo_n "checking for __atomic_test_and_set for size 2... " >&6; }
12668 if test "${libat_cv_have_at_tas_2+set}" = set; then :
12669 $as_echo_n "(cached) " >&6
12670 else
12671
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12674
12675 int
12676 main ()
12677 {
12678 typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
12679 __atomic_test_and_set(x, 0);
12680 ;
12681 return 0;
12682 }
12683 _ACEOF
12684 if test x$atomic_builtins_link_tests = xyes; then
12685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12686 (eval $ac_link) 2>&5
12687 ac_status=$?
12688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12689 test $ac_status = 0; }; then
12690 eval libat_cv_have_at_tas_2=yes
12691 else
12692 eval libat_cv_have_at_tas_2=no
12693 fi
12694 else
12695 old_CFLAGS="$CFLAGS"
12696 # Compile unoptimized.
12697 CFLAGS="$CFLAGS -O0 -S"
12698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12699 (eval $ac_compile) 2>&5
12700 ac_status=$?
12701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12702 test $ac_status = 0; }; then
12703 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12704 eval libat_cv_have_at_tas_2=no
12705 else
12706 eval libat_cv_have_at_tas_2=yes
12707 fi
12708 else
12709 eval libat_cv_have_at_tas_2=no
12710 fi
12711 CFLAGS="$old_CFLAGS"
12712 fi
12713 rm -f conftest*
12714
12715 fi
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_2" >&5
12717 $as_echo "$libat_cv_have_at_tas_2" >&6; }
12718
12719
12720 yesno=`echo $libat_cv_have_at_tas_2 | tr 'yesno' '1 0 '`
12721
12722 cat >>confdefs.h <<_ACEOF
12723 #define HAVE_ATOMIC_TAS_2 $yesno
12724 _ACEOF
12725
12726
12727
12728
12729
12730
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 4" >&5
12732 $as_echo_n "checking for __atomic_test_and_set for size 4... " >&6; }
12733 if test "${libat_cv_have_at_tas_4+set}" = set; then :
12734 $as_echo_n "(cached) " >&6
12735 else
12736
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12739
12740 int
12741 main ()
12742 {
12743 typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
12744 __atomic_test_and_set(x, 0);
12745 ;
12746 return 0;
12747 }
12748 _ACEOF
12749 if test x$atomic_builtins_link_tests = xyes; then
12750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12751 (eval $ac_link) 2>&5
12752 ac_status=$?
12753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12754 test $ac_status = 0; }; then
12755 eval libat_cv_have_at_tas_4=yes
12756 else
12757 eval libat_cv_have_at_tas_4=no
12758 fi
12759 else
12760 old_CFLAGS="$CFLAGS"
12761 # Compile unoptimized.
12762 CFLAGS="$CFLAGS -O0 -S"
12763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12764 (eval $ac_compile) 2>&5
12765 ac_status=$?
12766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12767 test $ac_status = 0; }; then
12768 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12769 eval libat_cv_have_at_tas_4=no
12770 else
12771 eval libat_cv_have_at_tas_4=yes
12772 fi
12773 else
12774 eval libat_cv_have_at_tas_4=no
12775 fi
12776 CFLAGS="$old_CFLAGS"
12777 fi
12778 rm -f conftest*
12779
12780 fi
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_4" >&5
12782 $as_echo "$libat_cv_have_at_tas_4" >&6; }
12783
12784
12785 yesno=`echo $libat_cv_have_at_tas_4 | tr 'yesno' '1 0 '`
12786
12787 cat >>confdefs.h <<_ACEOF
12788 #define HAVE_ATOMIC_TAS_4 $yesno
12789 _ACEOF
12790
12791
12792
12793
12794
12795
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 8" >&5
12797 $as_echo_n "checking for __atomic_test_and_set for size 8... " >&6; }
12798 if test "${libat_cv_have_at_tas_8+set}" = set; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12804
12805 int
12806 main ()
12807 {
12808 typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
12809 __atomic_test_and_set(x, 0);
12810 ;
12811 return 0;
12812 }
12813 _ACEOF
12814 if test x$atomic_builtins_link_tests = xyes; then
12815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12816 (eval $ac_link) 2>&5
12817 ac_status=$?
12818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12819 test $ac_status = 0; }; then
12820 eval libat_cv_have_at_tas_8=yes
12821 else
12822 eval libat_cv_have_at_tas_8=no
12823 fi
12824 else
12825 old_CFLAGS="$CFLAGS"
12826 # Compile unoptimized.
12827 CFLAGS="$CFLAGS -O0 -S"
12828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12829 (eval $ac_compile) 2>&5
12830 ac_status=$?
12831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12832 test $ac_status = 0; }; then
12833 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12834 eval libat_cv_have_at_tas_8=no
12835 else
12836 eval libat_cv_have_at_tas_8=yes
12837 fi
12838 else
12839 eval libat_cv_have_at_tas_8=no
12840 fi
12841 CFLAGS="$old_CFLAGS"
12842 fi
12843 rm -f conftest*
12844
12845 fi
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_8" >&5
12847 $as_echo "$libat_cv_have_at_tas_8" >&6; }
12848
12849
12850 yesno=`echo $libat_cv_have_at_tas_8 | tr 'yesno' '1 0 '`
12851
12852 cat >>confdefs.h <<_ACEOF
12853 #define HAVE_ATOMIC_TAS_8 $yesno
12854 _ACEOF
12855
12856
12857
12858
12859
12860
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 16" >&5
12862 $as_echo_n "checking for __atomic_test_and_set for size 16... " >&6; }
12863 if test "${libat_cv_have_at_tas_16+set}" = set; then :
12864 $as_echo_n "(cached) " >&6
12865 else
12866
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12869
12870 int
12871 main ()
12872 {
12873 typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
12874 __atomic_test_and_set(x, 0);
12875 ;
12876 return 0;
12877 }
12878 _ACEOF
12879 if test x$atomic_builtins_link_tests = xyes; then
12880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12881 (eval $ac_link) 2>&5
12882 ac_status=$?
12883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12884 test $ac_status = 0; }; then
12885 eval libat_cv_have_at_tas_16=yes
12886 else
12887 eval libat_cv_have_at_tas_16=no
12888 fi
12889 else
12890 old_CFLAGS="$CFLAGS"
12891 # Compile unoptimized.
12892 CFLAGS="$CFLAGS -O0 -S"
12893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12894 (eval $ac_compile) 2>&5
12895 ac_status=$?
12896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12897 test $ac_status = 0; }; then
12898 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12899 eval libat_cv_have_at_tas_16=no
12900 else
12901 eval libat_cv_have_at_tas_16=yes
12902 fi
12903 else
12904 eval libat_cv_have_at_tas_16=no
12905 fi
12906 CFLAGS="$old_CFLAGS"
12907 fi
12908 rm -f conftest*
12909
12910 fi
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_16" >&5
12912 $as_echo "$libat_cv_have_at_tas_16" >&6; }
12913
12914
12915 yesno=`echo $libat_cv_have_at_tas_16 | tr 'yesno' '1 0 '`
12916
12917 cat >>confdefs.h <<_ACEOF
12918 #define HAVE_ATOMIC_TAS_16 $yesno
12919 _ACEOF
12920
12921
12922
12923
12924
12925
12926
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 1" >&5
12928 $as_echo_n "checking for __atomic_exchange for size 1... " >&6; }
12929 if test "${libat_cv_have_at_exch_1+set}" = set; then :
12930 $as_echo_n "(cached) " >&6
12931 else
12932
12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h. */
12935
12936 int
12937 main ()
12938 {
12939 typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
12940 __atomic_exchange_n(x, 0, 0);
12941 ;
12942 return 0;
12943 }
12944 _ACEOF
12945 if test x$atomic_builtins_link_tests = xyes; then
12946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12947 (eval $ac_link) 2>&5
12948 ac_status=$?
12949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12950 test $ac_status = 0; }; then
12951 eval libat_cv_have_at_exch_1=yes
12952 else
12953 eval libat_cv_have_at_exch_1=no
12954 fi
12955 else
12956 old_CFLAGS="$CFLAGS"
12957 # Compile unoptimized.
12958 CFLAGS="$CFLAGS -O0 -S"
12959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12960 (eval $ac_compile) 2>&5
12961 ac_status=$?
12962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12963 test $ac_status = 0; }; then
12964 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12965 eval libat_cv_have_at_exch_1=no
12966 else
12967 eval libat_cv_have_at_exch_1=yes
12968 fi
12969 else
12970 eval libat_cv_have_at_exch_1=no
12971 fi
12972 CFLAGS="$old_CFLAGS"
12973 fi
12974 rm -f conftest*
12975
12976 fi
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_1" >&5
12978 $as_echo "$libat_cv_have_at_exch_1" >&6; }
12979
12980
12981 yesno=`echo $libat_cv_have_at_exch_1 | tr 'yesno' '1 0 '`
12982
12983 cat >>confdefs.h <<_ACEOF
12984 #define HAVE_ATOMIC_EXCHANGE_1 $yesno
12985 _ACEOF
12986
12987
12988
12989
12990
12991
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 2" >&5
12993 $as_echo_n "checking for __atomic_exchange for size 2... " >&6; }
12994 if test "${libat_cv_have_at_exch_2+set}" = set; then :
12995 $as_echo_n "(cached) " >&6
12996 else
12997
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13000
13001 int
13002 main ()
13003 {
13004 typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
13005 __atomic_exchange_n(x, 0, 0);
13006 ;
13007 return 0;
13008 }
13009 _ACEOF
13010 if test x$atomic_builtins_link_tests = xyes; then
13011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13012 (eval $ac_link) 2>&5
13013 ac_status=$?
13014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13015 test $ac_status = 0; }; then
13016 eval libat_cv_have_at_exch_2=yes
13017 else
13018 eval libat_cv_have_at_exch_2=no
13019 fi
13020 else
13021 old_CFLAGS="$CFLAGS"
13022 # Compile unoptimized.
13023 CFLAGS="$CFLAGS -O0 -S"
13024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13025 (eval $ac_compile) 2>&5
13026 ac_status=$?
13027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13028 test $ac_status = 0; }; then
13029 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13030 eval libat_cv_have_at_exch_2=no
13031 else
13032 eval libat_cv_have_at_exch_2=yes
13033 fi
13034 else
13035 eval libat_cv_have_at_exch_2=no
13036 fi
13037 CFLAGS="$old_CFLAGS"
13038 fi
13039 rm -f conftest*
13040
13041 fi
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_2" >&5
13043 $as_echo "$libat_cv_have_at_exch_2" >&6; }
13044
13045
13046 yesno=`echo $libat_cv_have_at_exch_2 | tr 'yesno' '1 0 '`
13047
13048 cat >>confdefs.h <<_ACEOF
13049 #define HAVE_ATOMIC_EXCHANGE_2 $yesno
13050 _ACEOF
13051
13052
13053
13054
13055
13056
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 4" >&5
13058 $as_echo_n "checking for __atomic_exchange for size 4... " >&6; }
13059 if test "${libat_cv_have_at_exch_4+set}" = set; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13065
13066 int
13067 main ()
13068 {
13069 typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
13070 __atomic_exchange_n(x, 0, 0);
13071 ;
13072 return 0;
13073 }
13074 _ACEOF
13075 if test x$atomic_builtins_link_tests = xyes; then
13076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13077 (eval $ac_link) 2>&5
13078 ac_status=$?
13079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13080 test $ac_status = 0; }; then
13081 eval libat_cv_have_at_exch_4=yes
13082 else
13083 eval libat_cv_have_at_exch_4=no
13084 fi
13085 else
13086 old_CFLAGS="$CFLAGS"
13087 # Compile unoptimized.
13088 CFLAGS="$CFLAGS -O0 -S"
13089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13090 (eval $ac_compile) 2>&5
13091 ac_status=$?
13092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13093 test $ac_status = 0; }; then
13094 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13095 eval libat_cv_have_at_exch_4=no
13096 else
13097 eval libat_cv_have_at_exch_4=yes
13098 fi
13099 else
13100 eval libat_cv_have_at_exch_4=no
13101 fi
13102 CFLAGS="$old_CFLAGS"
13103 fi
13104 rm -f conftest*
13105
13106 fi
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_4" >&5
13108 $as_echo "$libat_cv_have_at_exch_4" >&6; }
13109
13110
13111 yesno=`echo $libat_cv_have_at_exch_4 | tr 'yesno' '1 0 '`
13112
13113 cat >>confdefs.h <<_ACEOF
13114 #define HAVE_ATOMIC_EXCHANGE_4 $yesno
13115 _ACEOF
13116
13117
13118
13119
13120
13121
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 8" >&5
13123 $as_echo_n "checking for __atomic_exchange for size 8... " >&6; }
13124 if test "${libat_cv_have_at_exch_8+set}" = set; then :
13125 $as_echo_n "(cached) " >&6
13126 else
13127
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13130
13131 int
13132 main ()
13133 {
13134 typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
13135 __atomic_exchange_n(x, 0, 0);
13136 ;
13137 return 0;
13138 }
13139 _ACEOF
13140 if test x$atomic_builtins_link_tests = xyes; then
13141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13142 (eval $ac_link) 2>&5
13143 ac_status=$?
13144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13145 test $ac_status = 0; }; then
13146 eval libat_cv_have_at_exch_8=yes
13147 else
13148 eval libat_cv_have_at_exch_8=no
13149 fi
13150 else
13151 old_CFLAGS="$CFLAGS"
13152 # Compile unoptimized.
13153 CFLAGS="$CFLAGS -O0 -S"
13154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13155 (eval $ac_compile) 2>&5
13156 ac_status=$?
13157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13158 test $ac_status = 0; }; then
13159 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13160 eval libat_cv_have_at_exch_8=no
13161 else
13162 eval libat_cv_have_at_exch_8=yes
13163 fi
13164 else
13165 eval libat_cv_have_at_exch_8=no
13166 fi
13167 CFLAGS="$old_CFLAGS"
13168 fi
13169 rm -f conftest*
13170
13171 fi
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_8" >&5
13173 $as_echo "$libat_cv_have_at_exch_8" >&6; }
13174
13175
13176 yesno=`echo $libat_cv_have_at_exch_8 | tr 'yesno' '1 0 '`
13177
13178 cat >>confdefs.h <<_ACEOF
13179 #define HAVE_ATOMIC_EXCHANGE_8 $yesno
13180 _ACEOF
13181
13182
13183
13184
13185
13186
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 16" >&5
13188 $as_echo_n "checking for __atomic_exchange for size 16... " >&6; }
13189 if test "${libat_cv_have_at_exch_16+set}" = set; then :
13190 $as_echo_n "(cached) " >&6
13191 else
13192
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13195
13196 int
13197 main ()
13198 {
13199 typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
13200 __atomic_exchange_n(x, 0, 0);
13201 ;
13202 return 0;
13203 }
13204 _ACEOF
13205 if test x$atomic_builtins_link_tests = xyes; then
13206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13207 (eval $ac_link) 2>&5
13208 ac_status=$?
13209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13210 test $ac_status = 0; }; then
13211 eval libat_cv_have_at_exch_16=yes
13212 else
13213 eval libat_cv_have_at_exch_16=no
13214 fi
13215 else
13216 old_CFLAGS="$CFLAGS"
13217 # Compile unoptimized.
13218 CFLAGS="$CFLAGS -O0 -S"
13219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13220 (eval $ac_compile) 2>&5
13221 ac_status=$?
13222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13223 test $ac_status = 0; }; then
13224 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13225 eval libat_cv_have_at_exch_16=no
13226 else
13227 eval libat_cv_have_at_exch_16=yes
13228 fi
13229 else
13230 eval libat_cv_have_at_exch_16=no
13231 fi
13232 CFLAGS="$old_CFLAGS"
13233 fi
13234 rm -f conftest*
13235
13236 fi
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_16" >&5
13238 $as_echo "$libat_cv_have_at_exch_16" >&6; }
13239
13240
13241 yesno=`echo $libat_cv_have_at_exch_16 | tr 'yesno' '1 0 '`
13242
13243 cat >>confdefs.h <<_ACEOF
13244 #define HAVE_ATOMIC_EXCHANGE_16 $yesno
13245 _ACEOF
13246
13247
13248
13249
13250
13251
13252
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 1" >&5
13254 $as_echo_n "checking for __atomic_compare_exchange for size 1... " >&6; }
13255 if test "${libat_cv_have_at_cas_1+set}" = set; then :
13256 $as_echo_n "(cached) " >&6
13257 else
13258
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13261
13262 int
13263 main ()
13264 {
13265 typedef int T __attribute__((mode(QI))); T *x, *y;
13266 asm("" : "=g"(x), "=g"(y));
13267 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13268 ;
13269 return 0;
13270 }
13271 _ACEOF
13272 if test x$atomic_builtins_link_tests = xyes; then
13273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13274 (eval $ac_link) 2>&5
13275 ac_status=$?
13276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13277 test $ac_status = 0; }; then
13278 eval libat_cv_have_at_cas_1=yes
13279 else
13280 eval libat_cv_have_at_cas_1=no
13281 fi
13282 else
13283 old_CFLAGS="$CFLAGS"
13284 # Compile unoptimized.
13285 CFLAGS="$CFLAGS -O0 -S"
13286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13287 (eval $ac_compile) 2>&5
13288 ac_status=$?
13289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13290 test $ac_status = 0; }; then
13291 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13292 eval libat_cv_have_at_cas_1=no
13293 else
13294 eval libat_cv_have_at_cas_1=yes
13295 fi
13296 else
13297 eval libat_cv_have_at_cas_1=no
13298 fi
13299 CFLAGS="$old_CFLAGS"
13300 fi
13301 rm -f conftest*
13302
13303 fi
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_1" >&5
13305 $as_echo "$libat_cv_have_at_cas_1" >&6; }
13306
13307
13308 yesno=`echo $libat_cv_have_at_cas_1 | tr 'yesno' '1 0 '`
13309
13310 cat >>confdefs.h <<_ACEOF
13311 #define HAVE_ATOMIC_CAS_1 $yesno
13312 _ACEOF
13313
13314
13315
13316
13317
13318
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 2" >&5
13320 $as_echo_n "checking for __atomic_compare_exchange for size 2... " >&6; }
13321 if test "${libat_cv_have_at_cas_2+set}" = set; then :
13322 $as_echo_n "(cached) " >&6
13323 else
13324
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13327
13328 int
13329 main ()
13330 {
13331 typedef int T __attribute__((mode(HI))); T *x, *y;
13332 asm("" : "=g"(x), "=g"(y));
13333 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13334 ;
13335 return 0;
13336 }
13337 _ACEOF
13338 if test x$atomic_builtins_link_tests = xyes; then
13339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13340 (eval $ac_link) 2>&5
13341 ac_status=$?
13342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13343 test $ac_status = 0; }; then
13344 eval libat_cv_have_at_cas_2=yes
13345 else
13346 eval libat_cv_have_at_cas_2=no
13347 fi
13348 else
13349 old_CFLAGS="$CFLAGS"
13350 # Compile unoptimized.
13351 CFLAGS="$CFLAGS -O0 -S"
13352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13353 (eval $ac_compile) 2>&5
13354 ac_status=$?
13355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13356 test $ac_status = 0; }; then
13357 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13358 eval libat_cv_have_at_cas_2=no
13359 else
13360 eval libat_cv_have_at_cas_2=yes
13361 fi
13362 else
13363 eval libat_cv_have_at_cas_2=no
13364 fi
13365 CFLAGS="$old_CFLAGS"
13366 fi
13367 rm -f conftest*
13368
13369 fi
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_2" >&5
13371 $as_echo "$libat_cv_have_at_cas_2" >&6; }
13372
13373
13374 yesno=`echo $libat_cv_have_at_cas_2 | tr 'yesno' '1 0 '`
13375
13376 cat >>confdefs.h <<_ACEOF
13377 #define HAVE_ATOMIC_CAS_2 $yesno
13378 _ACEOF
13379
13380
13381
13382
13383
13384
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 4" >&5
13386 $as_echo_n "checking for __atomic_compare_exchange for size 4... " >&6; }
13387 if test "${libat_cv_have_at_cas_4+set}" = set; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13390
13391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392 /* end confdefs.h. */
13393
13394 int
13395 main ()
13396 {
13397 typedef int T __attribute__((mode(SI))); T *x, *y;
13398 asm("" : "=g"(x), "=g"(y));
13399 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13400 ;
13401 return 0;
13402 }
13403 _ACEOF
13404 if test x$atomic_builtins_link_tests = xyes; then
13405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13406 (eval $ac_link) 2>&5
13407 ac_status=$?
13408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13409 test $ac_status = 0; }; then
13410 eval libat_cv_have_at_cas_4=yes
13411 else
13412 eval libat_cv_have_at_cas_4=no
13413 fi
13414 else
13415 old_CFLAGS="$CFLAGS"
13416 # Compile unoptimized.
13417 CFLAGS="$CFLAGS -O0 -S"
13418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13419 (eval $ac_compile) 2>&5
13420 ac_status=$?
13421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13422 test $ac_status = 0; }; then
13423 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13424 eval libat_cv_have_at_cas_4=no
13425 else
13426 eval libat_cv_have_at_cas_4=yes
13427 fi
13428 else
13429 eval libat_cv_have_at_cas_4=no
13430 fi
13431 CFLAGS="$old_CFLAGS"
13432 fi
13433 rm -f conftest*
13434
13435 fi
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_4" >&5
13437 $as_echo "$libat_cv_have_at_cas_4" >&6; }
13438
13439
13440 yesno=`echo $libat_cv_have_at_cas_4 | tr 'yesno' '1 0 '`
13441
13442 cat >>confdefs.h <<_ACEOF
13443 #define HAVE_ATOMIC_CAS_4 $yesno
13444 _ACEOF
13445
13446
13447
13448
13449
13450
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 8" >&5
13452 $as_echo_n "checking for __atomic_compare_exchange for size 8... " >&6; }
13453 if test "${libat_cv_have_at_cas_8+set}" = set; then :
13454 $as_echo_n "(cached) " >&6
13455 else
13456
13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13459
13460 int
13461 main ()
13462 {
13463 typedef int T __attribute__((mode(DI))); T *x, *y;
13464 asm("" : "=g"(x), "=g"(y));
13465 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13466 ;
13467 return 0;
13468 }
13469 _ACEOF
13470 if test x$atomic_builtins_link_tests = xyes; then
13471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13472 (eval $ac_link) 2>&5
13473 ac_status=$?
13474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13475 test $ac_status = 0; }; then
13476 eval libat_cv_have_at_cas_8=yes
13477 else
13478 eval libat_cv_have_at_cas_8=no
13479 fi
13480 else
13481 old_CFLAGS="$CFLAGS"
13482 # Compile unoptimized.
13483 CFLAGS="$CFLAGS -O0 -S"
13484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13485 (eval $ac_compile) 2>&5
13486 ac_status=$?
13487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13488 test $ac_status = 0; }; then
13489 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13490 eval libat_cv_have_at_cas_8=no
13491 else
13492 eval libat_cv_have_at_cas_8=yes
13493 fi
13494 else
13495 eval libat_cv_have_at_cas_8=no
13496 fi
13497 CFLAGS="$old_CFLAGS"
13498 fi
13499 rm -f conftest*
13500
13501 fi
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_8" >&5
13503 $as_echo "$libat_cv_have_at_cas_8" >&6; }
13504
13505
13506 yesno=`echo $libat_cv_have_at_cas_8 | tr 'yesno' '1 0 '`
13507
13508 cat >>confdefs.h <<_ACEOF
13509 #define HAVE_ATOMIC_CAS_8 $yesno
13510 _ACEOF
13511
13512
13513
13514
13515
13516
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 16" >&5
13518 $as_echo_n "checking for __atomic_compare_exchange for size 16... " >&6; }
13519 if test "${libat_cv_have_at_cas_16+set}" = set; then :
13520 $as_echo_n "(cached) " >&6
13521 else
13522
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13525
13526 int
13527 main ()
13528 {
13529 typedef int T __attribute__((mode(TI))); T *x, *y;
13530 asm("" : "=g"(x), "=g"(y));
13531 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13532 ;
13533 return 0;
13534 }
13535 _ACEOF
13536 if test x$atomic_builtins_link_tests = xyes; then
13537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13538 (eval $ac_link) 2>&5
13539 ac_status=$?
13540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13541 test $ac_status = 0; }; then
13542 eval libat_cv_have_at_cas_16=yes
13543 else
13544 eval libat_cv_have_at_cas_16=no
13545 fi
13546 else
13547 old_CFLAGS="$CFLAGS"
13548 # Compile unoptimized.
13549 CFLAGS="$CFLAGS -O0 -S"
13550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13551 (eval $ac_compile) 2>&5
13552 ac_status=$?
13553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13554 test $ac_status = 0; }; then
13555 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13556 eval libat_cv_have_at_cas_16=no
13557 else
13558 eval libat_cv_have_at_cas_16=yes
13559 fi
13560 else
13561 eval libat_cv_have_at_cas_16=no
13562 fi
13563 CFLAGS="$old_CFLAGS"
13564 fi
13565 rm -f conftest*
13566
13567 fi
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_16" >&5
13569 $as_echo "$libat_cv_have_at_cas_16" >&6; }
13570
13571
13572 yesno=`echo $libat_cv_have_at_cas_16 | tr 'yesno' '1 0 '`
13573
13574 cat >>confdefs.h <<_ACEOF
13575 #define HAVE_ATOMIC_CAS_16 $yesno
13576 _ACEOF
13577
13578
13579
13580
13581
13582
13583
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 1" >&5
13585 $as_echo_n "checking for __atomic_fetch_add for size 1... " >&6; }
13586 if test "${libat_cv_have_at_fadd_1+set}" = set; then :
13587 $as_echo_n "(cached) " >&6
13588 else
13589
13590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591 /* end confdefs.h. */
13592
13593 int
13594 main ()
13595 {
13596 typedef int T __attribute__((mode(QI))); T *x, y;
13597 asm("" : "=g"(x), "=g"(y));
13598 __atomic_fetch_add (x, y, 0);
13599 __atomic_add_fetch (x, y, 0);
13600 ;
13601 return 0;
13602 }
13603 _ACEOF
13604 if test x$atomic_builtins_link_tests = xyes; then
13605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13606 (eval $ac_link) 2>&5
13607 ac_status=$?
13608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13609 test $ac_status = 0; }; then
13610 eval libat_cv_have_at_fadd_1=yes
13611 else
13612 eval libat_cv_have_at_fadd_1=no
13613 fi
13614 else
13615 old_CFLAGS="$CFLAGS"
13616 # Compile unoptimized.
13617 CFLAGS="$CFLAGS -O0 -S"
13618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13619 (eval $ac_compile) 2>&5
13620 ac_status=$?
13621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13622 test $ac_status = 0; }; then
13623 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13624 eval libat_cv_have_at_fadd_1=no
13625 else
13626 eval libat_cv_have_at_fadd_1=yes
13627 fi
13628 else
13629 eval libat_cv_have_at_fadd_1=no
13630 fi
13631 CFLAGS="$old_CFLAGS"
13632 fi
13633 rm -f conftest*
13634
13635 fi
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_1" >&5
13637 $as_echo "$libat_cv_have_at_fadd_1" >&6; }
13638
13639
13640 yesno=`echo $libat_cv_have_at_fadd_1 | tr 'yesno' '1 0 '`
13641
13642 cat >>confdefs.h <<_ACEOF
13643 #define HAVE_ATOMIC_FETCH_ADD_1 $yesno
13644 _ACEOF
13645
13646
13647
13648
13649
13650
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 2" >&5
13652 $as_echo_n "checking for __atomic_fetch_add for size 2... " >&6; }
13653 if test "${libat_cv_have_at_fadd_2+set}" = set; then :
13654 $as_echo_n "(cached) " >&6
13655 else
13656
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13659
13660 int
13661 main ()
13662 {
13663 typedef int T __attribute__((mode(HI))); T *x, y;
13664 asm("" : "=g"(x), "=g"(y));
13665 __atomic_fetch_add (x, y, 0);
13666 __atomic_add_fetch (x, y, 0);
13667 ;
13668 return 0;
13669 }
13670 _ACEOF
13671 if test x$atomic_builtins_link_tests = xyes; then
13672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13673 (eval $ac_link) 2>&5
13674 ac_status=$?
13675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13676 test $ac_status = 0; }; then
13677 eval libat_cv_have_at_fadd_2=yes
13678 else
13679 eval libat_cv_have_at_fadd_2=no
13680 fi
13681 else
13682 old_CFLAGS="$CFLAGS"
13683 # Compile unoptimized.
13684 CFLAGS="$CFLAGS -O0 -S"
13685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13686 (eval $ac_compile) 2>&5
13687 ac_status=$?
13688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13689 test $ac_status = 0; }; then
13690 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13691 eval libat_cv_have_at_fadd_2=no
13692 else
13693 eval libat_cv_have_at_fadd_2=yes
13694 fi
13695 else
13696 eval libat_cv_have_at_fadd_2=no
13697 fi
13698 CFLAGS="$old_CFLAGS"
13699 fi
13700 rm -f conftest*
13701
13702 fi
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_2" >&5
13704 $as_echo "$libat_cv_have_at_fadd_2" >&6; }
13705
13706
13707 yesno=`echo $libat_cv_have_at_fadd_2 | tr 'yesno' '1 0 '`
13708
13709 cat >>confdefs.h <<_ACEOF
13710 #define HAVE_ATOMIC_FETCH_ADD_2 $yesno
13711 _ACEOF
13712
13713
13714
13715
13716
13717
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 4" >&5
13719 $as_echo_n "checking for __atomic_fetch_add for size 4... " >&6; }
13720 if test "${libat_cv_have_at_fadd_4+set}" = set; then :
13721 $as_echo_n "(cached) " >&6
13722 else
13723
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13726
13727 int
13728 main ()
13729 {
13730 typedef int T __attribute__((mode(SI))); T *x, y;
13731 asm("" : "=g"(x), "=g"(y));
13732 __atomic_fetch_add (x, y, 0);
13733 __atomic_add_fetch (x, y, 0);
13734 ;
13735 return 0;
13736 }
13737 _ACEOF
13738 if test x$atomic_builtins_link_tests = xyes; then
13739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13740 (eval $ac_link) 2>&5
13741 ac_status=$?
13742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13743 test $ac_status = 0; }; then
13744 eval libat_cv_have_at_fadd_4=yes
13745 else
13746 eval libat_cv_have_at_fadd_4=no
13747 fi
13748 else
13749 old_CFLAGS="$CFLAGS"
13750 # Compile unoptimized.
13751 CFLAGS="$CFLAGS -O0 -S"
13752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13753 (eval $ac_compile) 2>&5
13754 ac_status=$?
13755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13756 test $ac_status = 0; }; then
13757 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13758 eval libat_cv_have_at_fadd_4=no
13759 else
13760 eval libat_cv_have_at_fadd_4=yes
13761 fi
13762 else
13763 eval libat_cv_have_at_fadd_4=no
13764 fi
13765 CFLAGS="$old_CFLAGS"
13766 fi
13767 rm -f conftest*
13768
13769 fi
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_4" >&5
13771 $as_echo "$libat_cv_have_at_fadd_4" >&6; }
13772
13773
13774 yesno=`echo $libat_cv_have_at_fadd_4 | tr 'yesno' '1 0 '`
13775
13776 cat >>confdefs.h <<_ACEOF
13777 #define HAVE_ATOMIC_FETCH_ADD_4 $yesno
13778 _ACEOF
13779
13780
13781
13782
13783
13784
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 8" >&5
13786 $as_echo_n "checking for __atomic_fetch_add for size 8... " >&6; }
13787 if test "${libat_cv_have_at_fadd_8+set}" = set; then :
13788 $as_echo_n "(cached) " >&6
13789 else
13790
13791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h. */
13793
13794 int
13795 main ()
13796 {
13797 typedef int T __attribute__((mode(DI))); T *x, y;
13798 asm("" : "=g"(x), "=g"(y));
13799 __atomic_fetch_add (x, y, 0);
13800 __atomic_add_fetch (x, y, 0);
13801 ;
13802 return 0;
13803 }
13804 _ACEOF
13805 if test x$atomic_builtins_link_tests = xyes; then
13806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13807 (eval $ac_link) 2>&5
13808 ac_status=$?
13809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13810 test $ac_status = 0; }; then
13811 eval libat_cv_have_at_fadd_8=yes
13812 else
13813 eval libat_cv_have_at_fadd_8=no
13814 fi
13815 else
13816 old_CFLAGS="$CFLAGS"
13817 # Compile unoptimized.
13818 CFLAGS="$CFLAGS -O0 -S"
13819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13820 (eval $ac_compile) 2>&5
13821 ac_status=$?
13822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13823 test $ac_status = 0; }; then
13824 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13825 eval libat_cv_have_at_fadd_8=no
13826 else
13827 eval libat_cv_have_at_fadd_8=yes
13828 fi
13829 else
13830 eval libat_cv_have_at_fadd_8=no
13831 fi
13832 CFLAGS="$old_CFLAGS"
13833 fi
13834 rm -f conftest*
13835
13836 fi
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_8" >&5
13838 $as_echo "$libat_cv_have_at_fadd_8" >&6; }
13839
13840
13841 yesno=`echo $libat_cv_have_at_fadd_8 | tr 'yesno' '1 0 '`
13842
13843 cat >>confdefs.h <<_ACEOF
13844 #define HAVE_ATOMIC_FETCH_ADD_8 $yesno
13845 _ACEOF
13846
13847
13848
13849
13850
13851
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 16" >&5
13853 $as_echo_n "checking for __atomic_fetch_add for size 16... " >&6; }
13854 if test "${libat_cv_have_at_fadd_16+set}" = set; then :
13855 $as_echo_n "(cached) " >&6
13856 else
13857
13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13860
13861 int
13862 main ()
13863 {
13864 typedef int T __attribute__((mode(TI))); T *x, y;
13865 asm("" : "=g"(x), "=g"(y));
13866 __atomic_fetch_add (x, y, 0);
13867 __atomic_add_fetch (x, y, 0);
13868 ;
13869 return 0;
13870 }
13871 _ACEOF
13872 if test x$atomic_builtins_link_tests = xyes; then
13873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13874 (eval $ac_link) 2>&5
13875 ac_status=$?
13876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13877 test $ac_status = 0; }; then
13878 eval libat_cv_have_at_fadd_16=yes
13879 else
13880 eval libat_cv_have_at_fadd_16=no
13881 fi
13882 else
13883 old_CFLAGS="$CFLAGS"
13884 # Compile unoptimized.
13885 CFLAGS="$CFLAGS -O0 -S"
13886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13887 (eval $ac_compile) 2>&5
13888 ac_status=$?
13889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13890 test $ac_status = 0; }; then
13891 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13892 eval libat_cv_have_at_fadd_16=no
13893 else
13894 eval libat_cv_have_at_fadd_16=yes
13895 fi
13896 else
13897 eval libat_cv_have_at_fadd_16=no
13898 fi
13899 CFLAGS="$old_CFLAGS"
13900 fi
13901 rm -f conftest*
13902
13903 fi
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_16" >&5
13905 $as_echo "$libat_cv_have_at_fadd_16" >&6; }
13906
13907
13908 yesno=`echo $libat_cv_have_at_fadd_16 | tr 'yesno' '1 0 '`
13909
13910 cat >>confdefs.h <<_ACEOF
13911 #define HAVE_ATOMIC_FETCH_ADD_16 $yesno
13912 _ACEOF
13913
13914
13915
13916
13917
13918
13919
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 1" >&5
13921 $as_echo_n "checking for __atomic_fetch_op for size 1... " >&6; }
13922 if test "${libat_cv_have_at_fop_1+set}" = set; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13925
13926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13927 /* end confdefs.h. */
13928
13929 int
13930 main ()
13931 {
13932 typedef int T __attribute__((mode(QI))); T *x, y;
13933 asm("" : "=g"(x), "=g"(y));
13934 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
13935 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
13936 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
13937 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
13938 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
13939 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
13940 ;
13941 return 0;
13942 }
13943 _ACEOF
13944 if test x$atomic_builtins_link_tests = xyes; then
13945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13946 (eval $ac_link) 2>&5
13947 ac_status=$?
13948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13949 test $ac_status = 0; }; then
13950 eval libat_cv_have_at_fop_1=yes
13951 else
13952 eval libat_cv_have_at_fop_1=no
13953 fi
13954 else
13955 old_CFLAGS="$CFLAGS"
13956 # Compile unoptimized.
13957 CFLAGS="$CFLAGS -O0 -S"
13958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13959 (eval $ac_compile) 2>&5
13960 ac_status=$?
13961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13962 test $ac_status = 0; }; then
13963 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13964 eval libat_cv_have_at_fop_1=no
13965 else
13966 eval libat_cv_have_at_fop_1=yes
13967 fi
13968 else
13969 eval libat_cv_have_at_fop_1=no
13970 fi
13971 CFLAGS="$old_CFLAGS"
13972 fi
13973 rm -f conftest*
13974
13975 fi
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_1" >&5
13977 $as_echo "$libat_cv_have_at_fop_1" >&6; }
13978
13979
13980 yesno=`echo $libat_cv_have_at_fop_1 | tr 'yesno' '1 0 '`
13981
13982 cat >>confdefs.h <<_ACEOF
13983 #define HAVE_ATOMIC_FETCH_OP_1 $yesno
13984 _ACEOF
13985
13986
13987
13988
13989
13990
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 2" >&5
13992 $as_echo_n "checking for __atomic_fetch_op for size 2... " >&6; }
13993 if test "${libat_cv_have_at_fop_2+set}" = set; then :
13994 $as_echo_n "(cached) " >&6
13995 else
13996
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
13999
14000 int
14001 main ()
14002 {
14003 typedef int T __attribute__((mode(HI))); T *x, y;
14004 asm("" : "=g"(x), "=g"(y));
14005 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14006 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14007 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14008 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14009 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14010 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14011 ;
14012 return 0;
14013 }
14014 _ACEOF
14015 if test x$atomic_builtins_link_tests = xyes; then
14016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14017 (eval $ac_link) 2>&5
14018 ac_status=$?
14019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14020 test $ac_status = 0; }; then
14021 eval libat_cv_have_at_fop_2=yes
14022 else
14023 eval libat_cv_have_at_fop_2=no
14024 fi
14025 else
14026 old_CFLAGS="$CFLAGS"
14027 # Compile unoptimized.
14028 CFLAGS="$CFLAGS -O0 -S"
14029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14030 (eval $ac_compile) 2>&5
14031 ac_status=$?
14032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14033 test $ac_status = 0; }; then
14034 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14035 eval libat_cv_have_at_fop_2=no
14036 else
14037 eval libat_cv_have_at_fop_2=yes
14038 fi
14039 else
14040 eval libat_cv_have_at_fop_2=no
14041 fi
14042 CFLAGS="$old_CFLAGS"
14043 fi
14044 rm -f conftest*
14045
14046 fi
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_2" >&5
14048 $as_echo "$libat_cv_have_at_fop_2" >&6; }
14049
14050
14051 yesno=`echo $libat_cv_have_at_fop_2 | tr 'yesno' '1 0 '`
14052
14053 cat >>confdefs.h <<_ACEOF
14054 #define HAVE_ATOMIC_FETCH_OP_2 $yesno
14055 _ACEOF
14056
14057
14058
14059
14060
14061
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 4" >&5
14063 $as_echo_n "checking for __atomic_fetch_op for size 4... " >&6; }
14064 if test "${libat_cv_have_at_fop_4+set}" = set; then :
14065 $as_echo_n "(cached) " >&6
14066 else
14067
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070
14071 int
14072 main ()
14073 {
14074 typedef int T __attribute__((mode(SI))); T *x, y;
14075 asm("" : "=g"(x), "=g"(y));
14076 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14077 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14078 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14079 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14080 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14081 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14082 ;
14083 return 0;
14084 }
14085 _ACEOF
14086 if test x$atomic_builtins_link_tests = xyes; then
14087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14088 (eval $ac_link) 2>&5
14089 ac_status=$?
14090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14091 test $ac_status = 0; }; then
14092 eval libat_cv_have_at_fop_4=yes
14093 else
14094 eval libat_cv_have_at_fop_4=no
14095 fi
14096 else
14097 old_CFLAGS="$CFLAGS"
14098 # Compile unoptimized.
14099 CFLAGS="$CFLAGS -O0 -S"
14100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14101 (eval $ac_compile) 2>&5
14102 ac_status=$?
14103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14104 test $ac_status = 0; }; then
14105 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14106 eval libat_cv_have_at_fop_4=no
14107 else
14108 eval libat_cv_have_at_fop_4=yes
14109 fi
14110 else
14111 eval libat_cv_have_at_fop_4=no
14112 fi
14113 CFLAGS="$old_CFLAGS"
14114 fi
14115 rm -f conftest*
14116
14117 fi
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_4" >&5
14119 $as_echo "$libat_cv_have_at_fop_4" >&6; }
14120
14121
14122 yesno=`echo $libat_cv_have_at_fop_4 | tr 'yesno' '1 0 '`
14123
14124 cat >>confdefs.h <<_ACEOF
14125 #define HAVE_ATOMIC_FETCH_OP_4 $yesno
14126 _ACEOF
14127
14128
14129
14130
14131
14132
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 8" >&5
14134 $as_echo_n "checking for __atomic_fetch_op for size 8... " >&6; }
14135 if test "${libat_cv_have_at_fop_8+set}" = set; then :
14136 $as_echo_n "(cached) " >&6
14137 else
14138
14139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14140 /* end confdefs.h. */
14141
14142 int
14143 main ()
14144 {
14145 typedef int T __attribute__((mode(DI))); T *x, y;
14146 asm("" : "=g"(x), "=g"(y));
14147 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14148 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14149 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14150 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14151 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14152 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14153 ;
14154 return 0;
14155 }
14156 _ACEOF
14157 if test x$atomic_builtins_link_tests = xyes; then
14158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14159 (eval $ac_link) 2>&5
14160 ac_status=$?
14161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14162 test $ac_status = 0; }; then
14163 eval libat_cv_have_at_fop_8=yes
14164 else
14165 eval libat_cv_have_at_fop_8=no
14166 fi
14167 else
14168 old_CFLAGS="$CFLAGS"
14169 # Compile unoptimized.
14170 CFLAGS="$CFLAGS -O0 -S"
14171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14172 (eval $ac_compile) 2>&5
14173 ac_status=$?
14174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14175 test $ac_status = 0; }; then
14176 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14177 eval libat_cv_have_at_fop_8=no
14178 else
14179 eval libat_cv_have_at_fop_8=yes
14180 fi
14181 else
14182 eval libat_cv_have_at_fop_8=no
14183 fi
14184 CFLAGS="$old_CFLAGS"
14185 fi
14186 rm -f conftest*
14187
14188 fi
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_8" >&5
14190 $as_echo "$libat_cv_have_at_fop_8" >&6; }
14191
14192
14193 yesno=`echo $libat_cv_have_at_fop_8 | tr 'yesno' '1 0 '`
14194
14195 cat >>confdefs.h <<_ACEOF
14196 #define HAVE_ATOMIC_FETCH_OP_8 $yesno
14197 _ACEOF
14198
14199
14200
14201
14202
14203
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 16" >&5
14205 $as_echo_n "checking for __atomic_fetch_op for size 16... " >&6; }
14206 if test "${libat_cv_have_at_fop_16+set}" = set; then :
14207 $as_echo_n "(cached) " >&6
14208 else
14209
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14212
14213 int
14214 main ()
14215 {
14216 typedef int T __attribute__((mode(TI))); T *x, y;
14217 asm("" : "=g"(x), "=g"(y));
14218 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14219 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14220 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14221 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14222 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14223 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14224 ;
14225 return 0;
14226 }
14227 _ACEOF
14228 if test x$atomic_builtins_link_tests = xyes; then
14229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14230 (eval $ac_link) 2>&5
14231 ac_status=$?
14232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14233 test $ac_status = 0; }; then
14234 eval libat_cv_have_at_fop_16=yes
14235 else
14236 eval libat_cv_have_at_fop_16=no
14237 fi
14238 else
14239 old_CFLAGS="$CFLAGS"
14240 # Compile unoptimized.
14241 CFLAGS="$CFLAGS -O0 -S"
14242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14243 (eval $ac_compile) 2>&5
14244 ac_status=$?
14245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14246 test $ac_status = 0; }; then
14247 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14248 eval libat_cv_have_at_fop_16=no
14249 else
14250 eval libat_cv_have_at_fop_16=yes
14251 fi
14252 else
14253 eval libat_cv_have_at_fop_16=no
14254 fi
14255 CFLAGS="$old_CFLAGS"
14256 fi
14257 rm -f conftest*
14258
14259 fi
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_16" >&5
14261 $as_echo "$libat_cv_have_at_fop_16" >&6; }
14262
14263
14264 yesno=`echo $libat_cv_have_at_fop_16 | tr 'yesno' '1 0 '`
14265
14266 cat >>confdefs.h <<_ACEOF
14267 #define HAVE_ATOMIC_FETCH_OP_16 $yesno
14268 _ACEOF
14269
14270
14271
14272
14273
14274
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14276 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14277 if test "${ac_cv_c_bigendian+set}" = set; then :
14278 $as_echo_n "(cached) " >&6
14279 else
14280 ac_cv_c_bigendian=unknown
14281 # See if we're dealing with a universal compiler.
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14284 #ifndef __APPLE_CC__
14285 not a universal capable compiler
14286 #endif
14287 typedef int dummy;
14288
14289 _ACEOF
14290 if ac_fn_c_try_compile "$LINENO"; then :
14291
14292 # Check for potential -arch flags. It is not universal unless
14293 # there are at least two -arch flags with different values.
14294 ac_arch=
14295 ac_prev=
14296 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14297 if test -n "$ac_prev"; then
14298 case $ac_word in
14299 i?86 | x86_64 | ppc | ppc64)
14300 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14301 ac_arch=$ac_word
14302 else
14303 ac_cv_c_bigendian=universal
14304 break
14305 fi
14306 ;;
14307 esac
14308 ac_prev=
14309 elif test "x$ac_word" = "x-arch"; then
14310 ac_prev=arch
14311 fi
14312 done
14313 fi
14314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14315 if test $ac_cv_c_bigendian = unknown; then
14316 # See if sys/param.h defines the BYTE_ORDER macro.
14317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14318 /* end confdefs.h. */
14319 #include <sys/types.h>
14320 #include <sys/param.h>
14321
14322 int
14323 main ()
14324 {
14325 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14326 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14327 && LITTLE_ENDIAN)
14328 bogus endian macros
14329 #endif
14330
14331 ;
14332 return 0;
14333 }
14334 _ACEOF
14335 if ac_fn_c_try_compile "$LINENO"; then :
14336 # It does; now see whether it defined to BIG_ENDIAN or not.
14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h. */
14339 #include <sys/types.h>
14340 #include <sys/param.h>
14341
14342 int
14343 main ()
14344 {
14345 #if BYTE_ORDER != BIG_ENDIAN
14346 not big endian
14347 #endif
14348
14349 ;
14350 return 0;
14351 }
14352 _ACEOF
14353 if ac_fn_c_try_compile "$LINENO"; then :
14354 ac_cv_c_bigendian=yes
14355 else
14356 ac_cv_c_bigendian=no
14357 fi
14358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14359 fi
14360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14361 fi
14362 if test $ac_cv_c_bigendian = unknown; then
14363 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h. */
14366 #include <limits.h>
14367
14368 int
14369 main ()
14370 {
14371 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14372 bogus endian macros
14373 #endif
14374
14375 ;
14376 return 0;
14377 }
14378 _ACEOF
14379 if ac_fn_c_try_compile "$LINENO"; then :
14380 # It does; now see whether it defined to _BIG_ENDIAN or not.
14381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382 /* end confdefs.h. */
14383 #include <limits.h>
14384
14385 int
14386 main ()
14387 {
14388 #ifndef _BIG_ENDIAN
14389 not big endian
14390 #endif
14391
14392 ;
14393 return 0;
14394 }
14395 _ACEOF
14396 if ac_fn_c_try_compile "$LINENO"; then :
14397 ac_cv_c_bigendian=yes
14398 else
14399 ac_cv_c_bigendian=no
14400 fi
14401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14402 fi
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14404 fi
14405 if test $ac_cv_c_bigendian = unknown; then
14406 # Compile a test program.
14407 if test "$cross_compiling" = yes; then :
14408 # Try to guess by grepping values from an object file.
14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h. */
14411 short int ascii_mm[] =
14412 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14413 short int ascii_ii[] =
14414 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14415 int use_ascii (int i) {
14416 return ascii_mm[i] + ascii_ii[i];
14417 }
14418 short int ebcdic_ii[] =
14419 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14420 short int ebcdic_mm[] =
14421 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14422 int use_ebcdic (int i) {
14423 return ebcdic_mm[i] + ebcdic_ii[i];
14424 }
14425 extern int foo;
14426
14427 int
14428 main ()
14429 {
14430 return use_ascii (foo) == use_ebcdic (foo);
14431 ;
14432 return 0;
14433 }
14434 _ACEOF
14435 if ac_fn_c_try_compile "$LINENO"; then :
14436 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14437 ac_cv_c_bigendian=yes
14438 fi
14439 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14440 if test "$ac_cv_c_bigendian" = unknown; then
14441 ac_cv_c_bigendian=no
14442 else
14443 # finding both strings is unlikely to happen, but who knows?
14444 ac_cv_c_bigendian=unknown
14445 fi
14446 fi
14447 fi
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449 else
14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h. */
14452 $ac_includes_default
14453 int
14454 main ()
14455 {
14456
14457 /* Are we little or big endian? From Harbison&Steele. */
14458 union
14459 {
14460 long int l;
14461 char c[sizeof (long int)];
14462 } u;
14463 u.l = 1;
14464 return u.c[sizeof (long int) - 1] == 1;
14465
14466 ;
14467 return 0;
14468 }
14469 _ACEOF
14470 if ac_fn_c_try_run "$LINENO"; then :
14471 ac_cv_c_bigendian=no
14472 else
14473 ac_cv_c_bigendian=yes
14474 fi
14475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14476 conftest.$ac_objext conftest.beam conftest.$ac_ext
14477 fi
14478
14479 fi
14480 fi
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14482 $as_echo "$ac_cv_c_bigendian" >&6; }
14483 case $ac_cv_c_bigendian in #(
14484 yes)
14485 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14486 ;; #(
14487 no)
14488 ;; #(
14489 universal)
14490
14491 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14492
14493 ;; #(
14494 *)
14495 as_fn_error "unknown endianness
14496 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14497 esac
14498
14499 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
14500
14501
14502
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the word size" >&5
14504 $as_echo_n "checking for the word size... " >&6; }
14505 if test "${libat_cv_wordsize+set}" = set; then :
14506 $as_echo_n "(cached) " >&6
14507 else
14508 if ac_fn_c_compute_int "$LINENO" "sizeof(word)" "libat_cv_wordsize" "typedef int word __attribute__((mode(word)));"; then :
14509
14510 else
14511 as_fn_error "Could not determine word size." "$LINENO" 5
14512 fi
14513
14514 fi
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_wordsize" >&5
14516 $as_echo "$libat_cv_wordsize" >&6; }
14517
14518 cat >>confdefs.h <<_ACEOF
14519 #define WORDSIZE $libat_cv_wordsize
14520 _ACEOF
14521
14522
14523
14524 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14525 # In case the pthread.h system header is not found, this test will fail.
14526 case " $config_path " in
14527 *" posix "*)
14528 XPCFLAGS=""
14529 CFLAGS="$CFLAGS -pthread"
14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h. */
14532 #include <pthread.h>
14533 void *g(void *d) { return NULL; }
14534 int
14535 main ()
14536 {
14537 pthread_t t; pthread_create(&t,NULL,g,NULL);
14538 ;
14539 return 0;
14540 }
14541 _ACEOF
14542 if ac_fn_c_try_link "$LINENO"; then :
14543 XPCFLAGS=" -pthread"
14544 else
14545 CFLAGS="$save_CFLAGS $XCFLAGS" LIBS="-lpthread $LIBS"
14546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14547 /* end confdefs.h. */
14548 #include <pthread.h>
14549 void *g(void *d) { return NULL; }
14550 int
14551 main ()
14552 {
14553 pthread_t t; pthread_create(&t,NULL,g,NULL);
14554 ;
14555 return 0;
14556 }
14557 _ACEOF
14558 if ac_fn_c_try_link "$LINENO"; then :
14559
14560 else
14561 as_fn_error "Pthreads are required to build libatomic" "$LINENO" 5
14562 fi
14563 rm -f core conftest.err conftest.$ac_objext \
14564 conftest$ac_exeext conftest.$ac_ext
14565 fi
14566 rm -f core conftest.err conftest.$ac_objext \
14567 conftest$ac_exeext conftest.$ac_ext
14568 CFLAGS="$save_CFLAGS $XPCFLAGS"
14569 ;;
14570 esac
14571
14572 # See what sort of export controls are available.
14573
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
14575 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
14576 if test "${libat_cv_have_attribute_visibility+set}" = set; then :
14577 $as_echo_n "(cached) " >&6
14578 else
14579
14580 save_CFLAGS="$CFLAGS"
14581 CFLAGS="$CFLAGS -Werror"
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 void __attribute__((visibility("hidden"))) foo(void) { }
14585 int
14586 main ()
14587 {
14588
14589 ;
14590 return 0;
14591 }
14592 _ACEOF
14593 if ac_fn_c_try_compile "$LINENO"; then :
14594 libat_cv_have_attribute_visibility=yes
14595 else
14596 libat_cv_have_attribute_visibility=no
14597 fi
14598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599 CFLAGS="$save_CFLAGS"
14600 fi
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_visibility" >&5
14602 $as_echo "$libat_cv_have_attribute_visibility" >&6; }
14603 if test $libat_cv_have_attribute_visibility = yes; then
14604
14605 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
14606
14607 fi
14608
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
14610 $as_echo_n "checking whether the target supports dllexport... " >&6; }
14611 if test "${libat_cv_have_attribute_dllexport+set}" = set; then :
14612 $as_echo_n "(cached) " >&6
14613 else
14614
14615 save_CFLAGS="$CFLAGS"
14616 CFLAGS="$CFLAGS -Werror"
14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14619 void __attribute__((dllexport)) foo(void) { }
14620 int
14621 main ()
14622 {
14623
14624 ;
14625 return 0;
14626 }
14627 _ACEOF
14628 if ac_fn_c_try_compile "$LINENO"; then :
14629 libat_cv_have_attribute_dllexport=yes
14630 else
14631 libat_cv_have_attribute_dllexport=no
14632 fi
14633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14634 CFLAGS="$save_CFLAGS"
14635 fi
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_dllexport" >&5
14637 $as_echo "$libat_cv_have_attribute_dllexport" >&6; }
14638 if test $libat_cv_have_attribute_dllexport = yes; then
14639
14640 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
14641
14642 fi
14643
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
14645 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
14646 if test "${libat_cv_have_attribute_alias+set}" = set; then :
14647 $as_echo_n "(cached) " >&6
14648 else
14649
14650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14652
14653 void foo(void) { }
14654 extern void bar(void) __attribute__((alias("foo")));
14655 int
14656 main ()
14657 {
14658 bar();
14659 ;
14660 return 0;
14661 }
14662 _ACEOF
14663 if ac_fn_c_try_link "$LINENO"; then :
14664 libat_cv_have_attribute_alias=yes
14665 else
14666 libat_cv_have_attribute_alias=no
14667 fi
14668 rm -f core conftest.err conftest.$ac_objext \
14669 conftest$ac_exeext conftest.$ac_ext
14670 fi
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_alias" >&5
14672 $as_echo "$libat_cv_have_attribute_alias" >&6; }
14673 if test $libat_cv_have_attribute_alias = yes; then
14674
14675 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
14676
14677 fi
14678 if test x$try_ifunc = xyes; then
14679
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports the ifunc attribute" >&5
14681 $as_echo_n "checking whether the target supports the ifunc attribute... " >&6; }
14682 if test "${libat_cv_have_ifunc+set}" = set; then :
14683 $as_echo_n "(cached) " >&6
14684 else
14685
14686 save_CFLAGS="$CFLAGS"
14687 CFLAGS="$CFLAGS -Werror"
14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h. */
14690
14691 int foo_alt(void) { return 0; }
14692 void *foo_sel(void) { return foo_alt; }
14693 int foo(void) __attribute__((ifunc("foo_sel")));
14694 int
14695 main ()
14696 {
14697 return foo();
14698 ;
14699 return 0;
14700 }
14701 _ACEOF
14702 if ac_fn_c_try_link "$LINENO"; then :
14703 libat_cv_have_ifunc=yes
14704 else
14705 libat_cv_have_ifunc=no
14706 fi
14707 rm -f core conftest.err conftest.$ac_objext \
14708 conftest$ac_exeext conftest.$ac_ext
14709 fi
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_ifunc" >&5
14711 $as_echo "$libat_cv_have_ifunc" >&6; }
14712
14713 yesno=`echo $libat_cv_have_ifunc | tr 'yesno' '1 0 '`
14714
14715 cat >>confdefs.h <<_ACEOF
14716 #define HAVE_IFUNC $yesno
14717 _ACEOF
14718
14719
14720
14721 fi
14722
14723 # Check linker support.
14724
14725
14726 # Check whether --with-gnu-ld was given.
14727 if test "${with_gnu_ld+set}" = set; then :
14728 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14729 else
14730 with_gnu_ld=no
14731 fi
14732
14733 ac_prog=ld
14734 if test "$GCC" = yes; then
14735 # Check if gcc -print-prog-name=ld gives a path.
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14737 $as_echo_n "checking for ld used by $CC... " >&6; }
14738 case $host in
14739 *-*-mingw*)
14740 # gcc leaves a trailing carriage return which upsets mingw
14741 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14742 *)
14743 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14744 esac
14745 case $ac_prog in
14746 # Accept absolute paths.
14747 [\\/]* | ?:[\\/]*)
14748 re_direlt='/[^/][^/]*/\.\./'
14749 # Canonicalize the pathname of ld
14750 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14751 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14752 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14753 done
14754 test -z "$LD" && LD="$ac_prog"
14755 ;;
14756 "")
14757 # If it fails, then pretend we aren't using GCC.
14758 ac_prog=ld
14759 ;;
14760 *)
14761 # If it is relative, then search for the first ld in PATH.
14762 with_gnu_ld=unknown
14763 ;;
14764 esac
14765 elif test "$with_gnu_ld" = yes; then
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14767 $as_echo_n "checking for GNU ld... " >&6; }
14768 else
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14770 $as_echo_n "checking for non-GNU ld... " >&6; }
14771 fi
14772 if test "${lt_cv_path_LD+set}" = set; then :
14773 $as_echo_n "(cached) " >&6
14774 else
14775 if test -z "$LD"; then
14776 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14777 for ac_dir in $PATH; do
14778 IFS="$lt_save_ifs"
14779 test -z "$ac_dir" && ac_dir=.
14780 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14781 lt_cv_path_LD="$ac_dir/$ac_prog"
14782 # Check to see if the program is GNU ld. I'd rather use --version,
14783 # but apparently some variants of GNU ld only accept -v.
14784 # Break only if it was the GNU/non-GNU ld that we prefer.
14785 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14786 *GNU* | *'with BFD'*)
14787 test "$with_gnu_ld" != no && break
14788 ;;
14789 *)
14790 test "$with_gnu_ld" != yes && break
14791 ;;
14792 esac
14793 fi
14794 done
14795 IFS="$lt_save_ifs"
14796 else
14797 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14798 fi
14799 fi
14800
14801 LD="$lt_cv_path_LD"
14802 if test -n "$LD"; then
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14804 $as_echo "$LD" >&6; }
14805 else
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14807 $as_echo "no" >&6; }
14808 fi
14809 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14811 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14812 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14813 $as_echo_n "(cached) " >&6
14814 else
14815 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14816 case `$LD -v 2>&1 </dev/null` in
14817 *GNU* | *'with BFD'*)
14818 lt_cv_prog_gnu_ld=yes
14819 ;;
14820 *)
14821 lt_cv_prog_gnu_ld=no
14822 ;;
14823 esac
14824 fi
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14826 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14827 with_gnu_ld=$lt_cv_prog_gnu_ld
14828
14829
14830
14831
14832
14833
14834
14835 # If we're not using GNU ld, then there's no point in even trying these
14836 # tests. Check for that first. We should have already tested for gld
14837 # by now (in libtool), but require it now just to be safe...
14838 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
14839 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
14840
14841
14842
14843 # The name set by libtool depends on the version of libtool. Shame on us
14844 # for depending on an impl detail, but c'est la vie. Older versions used
14845 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
14846 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
14847 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
14848 # set (hence we're using an older libtool), then set it.
14849 if test x${with_gnu_ld+set} != xset; then
14850 if test x${ac_cv_prog_gnu_ld+set} != xset; then
14851 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
14852 with_gnu_ld=no
14853 else
14854 with_gnu_ld=$ac_cv_prog_gnu_ld
14855 fi
14856 fi
14857
14858 # Start by getting the version number. I think the libtool test already
14859 # does some of this, but throws away the result.
14860 libat_ld_is_gold=no
14861 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
14862 libat_ld_is_gold=yes
14863 fi
14864
14865 ldver=`$LD --version 2>/dev/null |
14866 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
14867
14868 libat_gnu_ld_version=`echo $ldver | \
14869 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
14870
14871 # Set --gc-sections.
14872 if test "$with_gnu_ld" = "notbroken"; then
14873 # GNU ld it is! Joy and bunny rabbits!
14874
14875 # All these tests are for C++; save the language and the compiler flags.
14876 # Need to do this so that g++ won't try to link in libstdc++
14877 ac_test_CFLAGS="${CFLAGS+set}"
14878 ac_save_CFLAGS="$CFLAGS"
14879 CFLAGS='-x c++ -Wl,--gc-sections'
14880
14881 # Check for -Wl,--gc-sections
14882 # XXX This test is broken at the moment, as symbols required for linking
14883 # are now in libsupc++ (not built yet). In addition, this test has
14884 # cored on solaris in the past. In addition, --gc-sections doesn't
14885 # really work at the moment (keeps on discarding used sections, first
14886 # .eh_frame and now some of the glibc sections for iconv).
14887 # Bzzzzt. Thanks for playing, maybe next time.
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
14889 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
14890 if test "$cross_compiling" = yes; then :
14891 ac_sectionLDflags=yes
14892 else
14893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14894 /* end confdefs.h. */
14895
14896 int main(void)
14897 {
14898 try { throw 1; }
14899 catch (...) { };
14900 return 0;
14901 }
14902
14903 _ACEOF
14904 if ac_fn_c_try_run "$LINENO"; then :
14905 ac_sectionLDflags=yes
14906 else
14907 ac_sectionLDflags=no
14908 fi
14909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14910 conftest.$ac_objext conftest.beam conftest.$ac_ext
14911 fi
14912
14913 if test "$ac_test_CFLAGS" = set; then
14914 CFLAGS="$ac_save_CFLAGS"
14915 else
14916 # this is the suspicious part
14917 CFLAGS=''
14918 fi
14919 if test "$ac_sectionLDflags" = "yes"; then
14920 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
14921 fi
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
14923 $as_echo "$ac_sectionLDflags" >&6; }
14924 fi
14925
14926 # Set linker optimization flags.
14927 if test x"$with_gnu_ld" = x"yes"; then
14928 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
14929 fi
14930
14931
14932
14933
14934
14935
14936 # Check whether --enable-symvers was given.
14937 if test "${enable_symvers+set}" = set; then :
14938 enableval=$enable_symvers;
14939 case "$enableval" in
14940 yes|no|gnu*|sun) ;;
14941 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
14942 esac
14943
14944 else
14945 enable_symvers=yes
14946 fi
14947
14948
14949
14950 # If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
14951 # don't know enough about $LD to do tricks...
14952
14953
14954 # Turn a 'yes' into a suitable default.
14955 if test x$enable_symvers = xyes ; then
14956 # FIXME The following test is too strict, in theory.
14957 if test $enable_shared = no || test "x$LD" = x; then
14958 enable_symvers=no
14959 else
14960 if test $with_gnu_ld = yes ; then
14961 enable_symvers=gnu
14962 else
14963 case ${target_os} in
14964 # Sun symbol versioning exists since Solaris 2.5.
14965 solaris2.[5-9]* | solaris2.1[0-9]*)
14966 enable_symvers=sun ;;
14967 *)
14968 enable_symvers=no ;;
14969 esac
14970 fi
14971 fi
14972 fi
14973
14974 # Check if 'sun' was requested on non-Solaris 2 platforms.
14975 if test x$enable_symvers = xsun ; then
14976 case ${target_os} in
14977 solaris2*)
14978 # All fine.
14979 ;;
14980 *)
14981 # Unlikely to work.
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
14983 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
14985 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
14987 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
14988 enable_symvers=no
14989 ;;
14990 esac
14991 fi
14992
14993 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
14994 if test $enable_symvers != no; then
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
14996 $as_echo_n "checking for shared libgcc... " >&6; }
14997 ac_save_CFLAGS="$CFLAGS"
14998 CFLAGS=' -lgcc_s'
14999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h. */
15001
15002 int
15003 main ()
15004 {
15005 return 0;
15006 ;
15007 return 0;
15008 }
15009 _ACEOF
15010 if ac_fn_c_try_link "$LINENO"; then :
15011 libat_shared_libgcc=yes
15012 else
15013 libat_shared_libgcc=no
15014 fi
15015 rm -f core conftest.err conftest.$ac_objext \
15016 conftest$ac_exeext conftest.$ac_ext
15017 CFLAGS="$ac_save_CFLAGS"
15018 if test $libat_shared_libgcc = no; then
15019 cat > conftest.c <<EOF
15020 int main (void) { return 0; }
15021 EOF
15022 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15023 -shared -shared-libgcc -o conftest.so \
15024 conftest.c -v 2>&1 >/dev/null \
15025 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15026 rm -f conftest.c conftest.so
15027 if test x${libat_libgcc_s_suffix+set} = xset; then
15028 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15031
15032 int
15033 main ()
15034 {
15035 return 0;
15036 ;
15037 return 0;
15038 }
15039 _ACEOF
15040 if ac_fn_c_try_link "$LINENO"; then :
15041 libat_shared_libgcc=yes
15042 fi
15043 rm -f core conftest.err conftest.$ac_objext \
15044 conftest$ac_exeext conftest.$ac_ext
15045 CFLAGS="$ac_save_CFLAGS"
15046 fi
15047 fi
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
15049 $as_echo "$libat_shared_libgcc" >&6; }
15050 fi
15051
15052 # For GNU ld, we need at least this version. The format is described in
15053 # LIBAT_CHECK_LINKER_FEATURES above.
15054 libat_min_gnu_ld_version=21400
15055 # XXXXXXXXXXX libat_gnu_ld_version=21390
15056
15057 # Check to see if unspecified "yes" value can win, given results above.
15058 # Change "yes" into either "no" or a style name.
15059 if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
15060 if test $with_gnu_ld = yes; then
15061 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
15062 enable_symvers=gnu
15063 elif test $libat_ld_is_gold = yes ; then
15064 enable_symvers=gnu
15065 else
15066 # The right tools, the right setup, but too old. Fallbacks?
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
15068 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15070 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15072 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
15074 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
15075 if test $libat_gnu_ld_version -ge 21200 ; then
15076 # Globbing fix is present, proper block support is not.
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15078 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15079 enable_symvers=no
15080 else
15081 # 2.11 or older.
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15083 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15084 enable_symvers=no
15085 fi
15086 fi
15087 elif test $enable_symvers = sun; then
15088 : All interesting versions of Sun ld support sun style symbol versioning.
15089 else
15090 # just fail for now
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15092 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15094 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15096 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15098 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15099 enable_symvers=no
15100 fi
15101 fi
15102 if test $enable_symvers = gnu; then
15103
15104 $as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
15105
15106 fi
15107
15108 if test $enable_symvers != no; then
15109 LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
15110 LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
15111 else
15112 LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
15113 LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
15114 fi
15115
15116 if test $enable_symvers = gnu; then
15117 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
15118 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
15119 else
15120 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
15121 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
15122 fi
15123
15124 if test $enable_symvers = sun; then
15125 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
15126 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
15127 else
15128 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
15129 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
15130 fi
15131
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15133 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15134
15135
15136 # Cleanup and exit.
15137 CFLAGS="$save_CFLAGS"
15138 cat >confcache <<\_ACEOF
15139 # This file is a shell script that caches the results of configure
15140 # tests run on this system so they can be shared between configure
15141 # scripts and configure runs, see configure's option --config-cache.
15142 # It is not useful on other systems. If it contains results you don't
15143 # want to keep, you may remove or edit it.
15144 #
15145 # config.status only pays attention to the cache file if you give it
15146 # the --recheck option to rerun configure.
15147 #
15148 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15149 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15150 # following values.
15151
15152 _ACEOF
15153
15154 # The following way of writing the cache mishandles newlines in values,
15155 # but we know of no workaround that is simple, portable, and efficient.
15156 # So, we kill variables containing newlines.
15157 # Ultrix sh set writes to stderr and can't be redirected directly,
15158 # and sets the high bit in the cache file unless we assign to the vars.
15159 (
15160 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15161 eval ac_val=\$$ac_var
15162 case $ac_val in #(
15163 *${as_nl}*)
15164 case $ac_var in #(
15165 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15166 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15167 esac
15168 case $ac_var in #(
15169 _ | IFS | as_nl) ;; #(
15170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15171 *) { eval $ac_var=; unset $ac_var;} ;;
15172 esac ;;
15173 esac
15174 done
15175
15176 (set) 2>&1 |
15177 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15178 *${as_nl}ac_space=\ *)
15179 # `set' does not quote correctly, so add quotes: double-quote
15180 # substitution turns \\\\ into \\, and sed turns \\ into \.
15181 sed -n \
15182 "s/'/'\\\\''/g;
15183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15184 ;; #(
15185 *)
15186 # `set' quotes correctly as required by POSIX, so do not add quotes.
15187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15188 ;;
15189 esac |
15190 sort
15191 ) |
15192 sed '
15193 /^ac_cv_env_/b end
15194 t clear
15195 :clear
15196 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15197 t end
15198 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15199 :end' >>confcache
15200 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15201 if test -w "$cache_file"; then
15202 test "x$cache_file" != "x/dev/null" &&
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15204 $as_echo "$as_me: updating cache $cache_file" >&6;}
15205 cat confcache >$cache_file
15206 else
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15208 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15209 fi
15210 fi
15211 rm -f confcache
15212
15213 # Add -Wall -Werror if we are using GCC.
15214 if test "x$GCC" = "xyes"; then
15215 XCFLAGS="$XCFLAGS -Wall -Werror"
15216 fi
15217
15218 XCFLAGS="$XCFLAGS $XPCFLAGS"
15219
15220
15221
15222
15223
15224
15225
15226 if test x$libat_cv_have_ifunc = xyes; then
15227 HAVE_IFUNC_TRUE=
15228 HAVE_IFUNC_FALSE='#'
15229 else
15230 HAVE_IFUNC_TRUE='#'
15231 HAVE_IFUNC_FALSE=
15232 fi
15233
15234 if expr "$config_path" : ".* linux/arm .*" > /dev/null; then
15235 ARCH_ARM_LINUX_TRUE=
15236 ARCH_ARM_LINUX_FALSE='#'
15237 else
15238 ARCH_ARM_LINUX_TRUE='#'
15239 ARCH_ARM_LINUX_FALSE=
15240 fi
15241
15242 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x4; then
15243 ARCH_I386_TRUE=
15244 ARCH_I386_FALSE='#'
15245 else
15246 ARCH_I386_TRUE='#'
15247 ARCH_I386_FALSE=
15248 fi
15249
15250 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x8; then
15251 ARCH_X86_64_TRUE=
15252 ARCH_X86_64_FALSE='#'
15253 else
15254 ARCH_X86_64_TRUE='#'
15255 ARCH_X86_64_FALSE=
15256 fi
15257
15258
15259 if test ${multilib} = yes; then
15260 multilib_arg="--enable-multilib"
15261 else
15262 multilib_arg=
15263 fi
15264
15265 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15266
15267 cat >confcache <<\_ACEOF
15268 # This file is a shell script that caches the results of configure
15269 # tests run on this system so they can be shared between configure
15270 # scripts and configure runs, see configure's option --config-cache.
15271 # It is not useful on other systems. If it contains results you don't
15272 # want to keep, you may remove or edit it.
15273 #
15274 # config.status only pays attention to the cache file if you give it
15275 # the --recheck option to rerun configure.
15276 #
15277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15279 # following values.
15280
15281 _ACEOF
15282
15283 # The following way of writing the cache mishandles newlines in values,
15284 # but we know of no workaround that is simple, portable, and efficient.
15285 # So, we kill variables containing newlines.
15286 # Ultrix sh set writes to stderr and can't be redirected directly,
15287 # and sets the high bit in the cache file unless we assign to the vars.
15288 (
15289 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15290 eval ac_val=\$$ac_var
15291 case $ac_val in #(
15292 *${as_nl}*)
15293 case $ac_var in #(
15294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15295 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15296 esac
15297 case $ac_var in #(
15298 _ | IFS | as_nl) ;; #(
15299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15300 *) { eval $ac_var=; unset $ac_var;} ;;
15301 esac ;;
15302 esac
15303 done
15304
15305 (set) 2>&1 |
15306 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15307 *${as_nl}ac_space=\ *)
15308 # `set' does not quote correctly, so add quotes: double-quote
15309 # substitution turns \\\\ into \\, and sed turns \\ into \.
15310 sed -n \
15311 "s/'/'\\\\''/g;
15312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15313 ;; #(
15314 *)
15315 # `set' quotes correctly as required by POSIX, so do not add quotes.
15316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15317 ;;
15318 esac |
15319 sort
15320 ) |
15321 sed '
15322 /^ac_cv_env_/b end
15323 t clear
15324 :clear
15325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15326 t end
15327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15328 :end' >>confcache
15329 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15330 if test -w "$cache_file"; then
15331 test "x$cache_file" != "x/dev/null" &&
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15333 $as_echo "$as_me: updating cache $cache_file" >&6;}
15334 cat confcache >$cache_file
15335 else
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15337 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15338 fi
15339 fi
15340 rm -f confcache
15341
15342 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15343 # Let make expand exec_prefix.
15344 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15345
15346 DEFS=-DHAVE_CONFIG_H
15347
15348 ac_libobjs=
15349 ac_ltlibobjs=
15350 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15351 # 1. Remove the extension, and $U if already installed.
15352 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15353 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15354 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15355 # will be set to the directory where LIBOBJS objects are built.
15356 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15357 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15358 done
15359 LIBOBJS=$ac_libobjs
15360
15361 LTLIBOBJS=$ac_ltlibobjs
15362
15363
15364 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
15365 as_fn_error "conditional \"GENINSRC\" was never defined.
15366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15367 fi
15368 if test -n "$EXEEXT"; then
15369 am__EXEEXT_TRUE=
15370 am__EXEEXT_FALSE='#'
15371 else
15372 am__EXEEXT_TRUE='#'
15373 am__EXEEXT_FALSE=
15374 fi
15375
15376 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15377 as_fn_error "conditional \"AMDEP\" was never defined.
15378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15379 fi
15380 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15381 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15383 fi
15384 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15385 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
15386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15387 fi
15388 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15389 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15391 fi
15392
15393 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
15394 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
15395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15396 fi
15397 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
15398 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
15399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15400 fi
15401 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
15402 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
15403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15404 fi
15405 if test -z "${HAVE_IFUNC_TRUE}" && test -z "${HAVE_IFUNC_FALSE}"; then
15406 as_fn_error "conditional \"HAVE_IFUNC\" was never defined.
15407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15408 fi
15409 if test -z "${ARCH_ARM_LINUX_TRUE}" && test -z "${ARCH_ARM_LINUX_FALSE}"; then
15410 as_fn_error "conditional \"ARCH_ARM_LINUX\" was never defined.
15411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15412 fi
15413 if test -z "${ARCH_I386_TRUE}" && test -z "${ARCH_I386_FALSE}"; then
15414 as_fn_error "conditional \"ARCH_I386\" was never defined.
15415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15416 fi
15417 if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
15418 as_fn_error "conditional \"ARCH_X86_64\" was never defined.
15419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15420 fi
15421
15422 : ${CONFIG_STATUS=./config.status}
15423 ac_write_fail=0
15424 ac_clean_files_save=$ac_clean_files
15425 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15427 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15428 as_write_fail=0
15429 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15430 #! $SHELL
15431 # Generated by $as_me.
15432 # Run this file to recreate the current configuration.
15433 # Compiler output produced by configure, useful for debugging
15434 # configure, is in config.log if it exists.
15435
15436 debug=false
15437 ac_cs_recheck=false
15438 ac_cs_silent=false
15439
15440 SHELL=\${CONFIG_SHELL-$SHELL}
15441 export SHELL
15442 _ASEOF
15443 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15444 ## -------------------- ##
15445 ## M4sh Initialization. ##
15446 ## -------------------- ##
15447
15448 # Be more Bourne compatible
15449 DUALCASE=1; export DUALCASE # for MKS sh
15450 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15451 emulate sh
15452 NULLCMD=:
15453 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15454 # is contrary to our usage. Disable this feature.
15455 alias -g '${1+"$@"}'='"$@"'
15456 setopt NO_GLOB_SUBST
15457 else
15458 case `(set -o) 2>/dev/null` in #(
15459 *posix*) :
15460 set -o posix ;; #(
15461 *) :
15462 ;;
15463 esac
15464 fi
15465
15466
15467 as_nl='
15468 '
15469 export as_nl
15470 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15471 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15472 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15473 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15474 # Prefer a ksh shell builtin over an external printf program on Solaris,
15475 # but without wasting forks for bash or zsh.
15476 if test -z "$BASH_VERSION$ZSH_VERSION" \
15477 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15478 as_echo='print -r --'
15479 as_echo_n='print -rn --'
15480 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15481 as_echo='printf %s\n'
15482 as_echo_n='printf %s'
15483 else
15484 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15485 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15486 as_echo_n='/usr/ucb/echo -n'
15487 else
15488 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15489 as_echo_n_body='eval
15490 arg=$1;
15491 case $arg in #(
15492 *"$as_nl"*)
15493 expr "X$arg" : "X\\(.*\\)$as_nl";
15494 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15495 esac;
15496 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15497 '
15498 export as_echo_n_body
15499 as_echo_n='sh -c $as_echo_n_body as_echo'
15500 fi
15501 export as_echo_body
15502 as_echo='sh -c $as_echo_body as_echo'
15503 fi
15504
15505 # The user is always right.
15506 if test "${PATH_SEPARATOR+set}" != set; then
15507 PATH_SEPARATOR=:
15508 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15509 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15510 PATH_SEPARATOR=';'
15511 }
15512 fi
15513
15514
15515 # IFS
15516 # We need space, tab and new line, in precisely that order. Quoting is
15517 # there to prevent editors from complaining about space-tab.
15518 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15519 # splitting by setting IFS to empty value.)
15520 IFS=" "" $as_nl"
15521
15522 # Find who we are. Look in the path if we contain no directory separator.
15523 case $0 in #((
15524 *[\\/]* ) as_myself=$0 ;;
15525 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15526 for as_dir in $PATH
15527 do
15528 IFS=$as_save_IFS
15529 test -z "$as_dir" && as_dir=.
15530 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15531 done
15532 IFS=$as_save_IFS
15533
15534 ;;
15535 esac
15536 # We did not find ourselves, most probably we were run as `sh COMMAND'
15537 # in which case we are not to be found in the path.
15538 if test "x$as_myself" = x; then
15539 as_myself=$0
15540 fi
15541 if test ! -f "$as_myself"; then
15542 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15543 exit 1
15544 fi
15545
15546 # Unset variables that we do not need and which cause bugs (e.g. in
15547 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15548 # suppresses any "Segmentation fault" message there. '((' could
15549 # trigger a bug in pdksh 5.2.14.
15550 for as_var in BASH_ENV ENV MAIL MAILPATH
15551 do eval test x\${$as_var+set} = xset \
15552 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15553 done
15554 PS1='$ '
15555 PS2='> '
15556 PS4='+ '
15557
15558 # NLS nuisances.
15559 LC_ALL=C
15560 export LC_ALL
15561 LANGUAGE=C
15562 export LANGUAGE
15563
15564 # CDPATH.
15565 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15566
15567
15568 # as_fn_error ERROR [LINENO LOG_FD]
15569 # ---------------------------------
15570 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15571 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15572 # script with status $?, using 1 if that was 0.
15573 as_fn_error ()
15574 {
15575 as_status=$?; test $as_status -eq 0 && as_status=1
15576 if test "$3"; then
15577 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15578 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15579 fi
15580 $as_echo "$as_me: error: $1" >&2
15581 as_fn_exit $as_status
15582 } # as_fn_error
15583
15584
15585 # as_fn_set_status STATUS
15586 # -----------------------
15587 # Set $? to STATUS, without forking.
15588 as_fn_set_status ()
15589 {
15590 return $1
15591 } # as_fn_set_status
15592
15593 # as_fn_exit STATUS
15594 # -----------------
15595 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15596 as_fn_exit ()
15597 {
15598 set +e
15599 as_fn_set_status $1
15600 exit $1
15601 } # as_fn_exit
15602
15603 # as_fn_unset VAR
15604 # ---------------
15605 # Portably unset VAR.
15606 as_fn_unset ()
15607 {
15608 { eval $1=; unset $1;}
15609 }
15610 as_unset=as_fn_unset
15611 # as_fn_append VAR VALUE
15612 # ----------------------
15613 # Append the text in VALUE to the end of the definition contained in VAR. Take
15614 # advantage of any shell optimizations that allow amortized linear growth over
15615 # repeated appends, instead of the typical quadratic growth present in naive
15616 # implementations.
15617 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15618 eval 'as_fn_append ()
15619 {
15620 eval $1+=\$2
15621 }'
15622 else
15623 as_fn_append ()
15624 {
15625 eval $1=\$$1\$2
15626 }
15627 fi # as_fn_append
15628
15629 # as_fn_arith ARG...
15630 # ------------------
15631 # Perform arithmetic evaluation on the ARGs, and store the result in the
15632 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15633 # must be portable across $(()) and expr.
15634 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15635 eval 'as_fn_arith ()
15636 {
15637 as_val=$(( $* ))
15638 }'
15639 else
15640 as_fn_arith ()
15641 {
15642 as_val=`expr "$@" || test $? -eq 1`
15643 }
15644 fi # as_fn_arith
15645
15646
15647 if expr a : '\(a\)' >/dev/null 2>&1 &&
15648 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15649 as_expr=expr
15650 else
15651 as_expr=false
15652 fi
15653
15654 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15655 as_basename=basename
15656 else
15657 as_basename=false
15658 fi
15659
15660 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15661 as_dirname=dirname
15662 else
15663 as_dirname=false
15664 fi
15665
15666 as_me=`$as_basename -- "$0" ||
15667 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15668 X"$0" : 'X\(//\)$' \| \
15669 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15670 $as_echo X/"$0" |
15671 sed '/^.*\/\([^/][^/]*\)\/*$/{
15672 s//\1/
15673 q
15674 }
15675 /^X\/\(\/\/\)$/{
15676 s//\1/
15677 q
15678 }
15679 /^X\/\(\/\).*/{
15680 s//\1/
15681 q
15682 }
15683 s/.*/./; q'`
15684
15685 # Avoid depending upon Character Ranges.
15686 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15687 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15688 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15689 as_cr_digits='0123456789'
15690 as_cr_alnum=$as_cr_Letters$as_cr_digits
15691
15692 ECHO_C= ECHO_N= ECHO_T=
15693 case `echo -n x` in #(((((
15694 -n*)
15695 case `echo 'xy\c'` in
15696 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15697 xy) ECHO_C='\c';;
15698 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15699 ECHO_T=' ';;
15700 esac;;
15701 *)
15702 ECHO_N='-n';;
15703 esac
15704
15705 rm -f conf$$ conf$$.exe conf$$.file
15706 if test -d conf$$.dir; then
15707 rm -f conf$$.dir/conf$$.file
15708 else
15709 rm -f conf$$.dir
15710 mkdir conf$$.dir 2>/dev/null
15711 fi
15712 if (echo >conf$$.file) 2>/dev/null; then
15713 if ln -s conf$$.file conf$$ 2>/dev/null; then
15714 as_ln_s='ln -s'
15715 # ... but there are two gotchas:
15716 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15717 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15718 # In both cases, we have to default to `cp -p'.
15719 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15720 as_ln_s='cp -p'
15721 elif ln conf$$.file conf$$ 2>/dev/null; then
15722 as_ln_s=ln
15723 else
15724 as_ln_s='cp -p'
15725 fi
15726 else
15727 as_ln_s='cp -p'
15728 fi
15729 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15730 rmdir conf$$.dir 2>/dev/null
15731
15732
15733 # as_fn_mkdir_p
15734 # -------------
15735 # Create "$as_dir" as a directory, including parents if necessary.
15736 as_fn_mkdir_p ()
15737 {
15738
15739 case $as_dir in #(
15740 -*) as_dir=./$as_dir;;
15741 esac
15742 test -d "$as_dir" || eval $as_mkdir_p || {
15743 as_dirs=
15744 while :; do
15745 case $as_dir in #(
15746 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15747 *) as_qdir=$as_dir;;
15748 esac
15749 as_dirs="'$as_qdir' $as_dirs"
15750 as_dir=`$as_dirname -- "$as_dir" ||
15751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15752 X"$as_dir" : 'X\(//\)[^/]' \| \
15753 X"$as_dir" : 'X\(//\)$' \| \
15754 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15755 $as_echo X"$as_dir" |
15756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15757 s//\1/
15758 q
15759 }
15760 /^X\(\/\/\)[^/].*/{
15761 s//\1/
15762 q
15763 }
15764 /^X\(\/\/\)$/{
15765 s//\1/
15766 q
15767 }
15768 /^X\(\/\).*/{
15769 s//\1/
15770 q
15771 }
15772 s/.*/./; q'`
15773 test -d "$as_dir" && break
15774 done
15775 test -z "$as_dirs" || eval "mkdir $as_dirs"
15776 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15777
15778
15779 } # as_fn_mkdir_p
15780 if mkdir -p . 2>/dev/null; then
15781 as_mkdir_p='mkdir -p "$as_dir"'
15782 else
15783 test -d ./-p && rmdir ./-p
15784 as_mkdir_p=false
15785 fi
15786
15787 if test -x / >/dev/null 2>&1; then
15788 as_test_x='test -x'
15789 else
15790 if ls -dL / >/dev/null 2>&1; then
15791 as_ls_L_option=L
15792 else
15793 as_ls_L_option=
15794 fi
15795 as_test_x='
15796 eval sh -c '\''
15797 if test -d "$1"; then
15798 test -d "$1/.";
15799 else
15800 case $1 in #(
15801 -*)set "./$1";;
15802 esac;
15803 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15804 ???[sx]*):;;*)false;;esac;fi
15805 '\'' sh
15806 '
15807 fi
15808 as_executable_p=$as_test_x
15809
15810 # Sed expression to map a string onto a valid CPP name.
15811 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15812
15813 # Sed expression to map a string onto a valid variable name.
15814 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15815
15816
15817 exec 6>&1
15818 ## ----------------------------------- ##
15819 ## Main body of $CONFIG_STATUS script. ##
15820 ## ----------------------------------- ##
15821 _ASEOF
15822 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15823
15824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15825 # Save the log message, to keep $0 and so on meaningful, and to
15826 # report actual input values of CONFIG_FILES etc. instead of their
15827 # values after options handling.
15828 ac_log="
15829 This file was extended by GNU Atomic Library $as_me 1.0, which was
15830 generated by GNU Autoconf 2.64. Invocation command line was
15831
15832 CONFIG_FILES = $CONFIG_FILES
15833 CONFIG_HEADERS = $CONFIG_HEADERS
15834 CONFIG_LINKS = $CONFIG_LINKS
15835 CONFIG_COMMANDS = $CONFIG_COMMANDS
15836 $ $0 $@
15837
15838 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15839 "
15840
15841 _ACEOF
15842
15843 case $ac_config_files in *"
15844 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15845 esac
15846
15847 case $ac_config_headers in *"
15848 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15849 esac
15850
15851
15852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15853 # Files that config.status was made for.
15854 config_files="$ac_config_files"
15855 config_headers="$ac_config_headers"
15856 config_commands="$ac_config_commands"
15857
15858 _ACEOF
15859
15860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15861 ac_cs_usage="\
15862 \`$as_me' instantiates files and other configuration actions
15863 from templates according to the current configuration. Unless the files
15864 and actions are specified as TAGs, all are instantiated by default.
15865
15866 Usage: $0 [OPTION]... [TAG]...
15867
15868 -h, --help print this help, then exit
15869 -V, --version print version number and configuration settings, then exit
15870 -q, --quiet, --silent
15871 do not print progress messages
15872 -d, --debug don't remove temporary files
15873 --recheck update $as_me by reconfiguring in the same conditions
15874 --file=FILE[:TEMPLATE]
15875 instantiate the configuration file FILE
15876 --header=FILE[:TEMPLATE]
15877 instantiate the configuration header FILE
15878
15879 Configuration files:
15880 $config_files
15881
15882 Configuration headers:
15883 $config_headers
15884
15885 Configuration commands:
15886 $config_commands
15887
15888 Report bugs to the package provider.
15889 GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
15890 General help using GNU software: <http://www.gnu.org/gethelp/>."
15891
15892 _ACEOF
15893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15894 ac_cs_version="\\
15895 GNU Atomic Library config.status 1.0
15896 configured by $0, generated by GNU Autoconf 2.64,
15897 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15898
15899 Copyright (C) 2009 Free Software Foundation, Inc.
15900 This config.status script is free software; the Free Software Foundation
15901 gives unlimited permission to copy, distribute and modify it."
15902
15903 ac_pwd='$ac_pwd'
15904 srcdir='$srcdir'
15905 INSTALL='$INSTALL'
15906 MKDIR_P='$MKDIR_P'
15907 AWK='$AWK'
15908 test -n "\$AWK" || AWK=awk
15909 _ACEOF
15910
15911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15912 # The default lists apply if the user does not specify any file.
15913 ac_need_defaults=:
15914 while test $# != 0
15915 do
15916 case $1 in
15917 --*=*)
15918 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15919 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15920 ac_shift=:
15921 ;;
15922 *)
15923 ac_option=$1
15924 ac_optarg=$2
15925 ac_shift=shift
15926 ;;
15927 esac
15928
15929 case $ac_option in
15930 # Handling of the options.
15931 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15932 ac_cs_recheck=: ;;
15933 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15934 $as_echo "$ac_cs_version"; exit ;;
15935 --debug | --debu | --deb | --de | --d | -d )
15936 debug=: ;;
15937 --file | --fil | --fi | --f )
15938 $ac_shift
15939 case $ac_optarg in
15940 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15941 esac
15942 as_fn_append CONFIG_FILES " '$ac_optarg'"
15943 ac_need_defaults=false;;
15944 --header | --heade | --head | --hea )
15945 $ac_shift
15946 case $ac_optarg in
15947 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15948 esac
15949 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15950 ac_need_defaults=false;;
15951 --he | --h)
15952 # Conflict between --help and --header
15953 as_fn_error "ambiguous option: \`$1'
15954 Try \`$0 --help' for more information.";;
15955 --help | --hel | -h )
15956 $as_echo "$ac_cs_usage"; exit ;;
15957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15958 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15959 ac_cs_silent=: ;;
15960
15961 # This is an error.
15962 -*) as_fn_error "unrecognized option: \`$1'
15963 Try \`$0 --help' for more information." ;;
15964
15965 *) as_fn_append ac_config_targets " $1"
15966 ac_need_defaults=false ;;
15967
15968 esac
15969 shift
15970 done
15971
15972 ac_configure_extra_args=
15973
15974 if $ac_cs_silent; then
15975 exec 6>/dev/null
15976 ac_configure_extra_args="$ac_configure_extra_args --silent"
15977 fi
15978
15979 _ACEOF
15980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15981 if \$ac_cs_recheck; then
15982 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15983 shift
15984 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15985 CONFIG_SHELL='$SHELL'
15986 export CONFIG_SHELL
15987 exec "\$@"
15988 fi
15989
15990 _ACEOF
15991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15992 exec 5>>config.log
15993 {
15994 echo
15995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15996 ## Running $as_me. ##
15997 _ASBOX
15998 $as_echo "$ac_log"
15999 } >&5
16000
16001 _ACEOF
16002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16003 #
16004 # INIT-COMMANDS
16005 #
16006
16007 srcdir="$srcdir"
16008 host="$host"
16009 target="$target"
16010 with_multisubdir="$with_multisubdir"
16011 with_multisrctop="$with_multisrctop"
16012 with_target_subdir="$with_target_subdir"
16013 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16014 multi_basedir="$multi_basedir"
16015 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16016 CC="$CC"
16017 CXX="$CXX"
16018 GFORTRAN="$GFORTRAN"
16019 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16020
16021
16022 # The HP-UX ksh and POSIX shell print the target directory to stdout
16023 # if CDPATH is set.
16024 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16025
16026 sed_quote_subst='$sed_quote_subst'
16027 double_quote_subst='$double_quote_subst'
16028 delay_variable_subst='$delay_variable_subst'
16029 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16030 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16031 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16032 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16033 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16034 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16035 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16036 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16037 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16038 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16039 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16040 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16041 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16042 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16043 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16044 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16045 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16046 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16047 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16048 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16049 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16050 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16051 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16052 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16053 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16054 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16055 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16056 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16057 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16058 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16059 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16060 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16061 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16062 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16063 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16064 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16065 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16066 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16067 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16068 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16069 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16070 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16071 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16072 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16073 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16074 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16075 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16076 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16077 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16078 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16079 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16080 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16081 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16082 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16083 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16084 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16085 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16086 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16087 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16088 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16089 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16090 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16091 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16092 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16093 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16094 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16095 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16096 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16097 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16098 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16099 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16100 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16101 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16102 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16103 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16104 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16105 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16106 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16107 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16108 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16109 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16110 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16111 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16112 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16113 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16114 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16115 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16116 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16117 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16118 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16119 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16120 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16121 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16122 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16123 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16124 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16125 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16126 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16127 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16128 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16129 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16130 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16131 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16132 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16133 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16134 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16135 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16136 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16137 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16138 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16139 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16140 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16141 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16142 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16143 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16144 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16145 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16146 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16147 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16148 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16149
16150 LTCC='$LTCC'
16151 LTCFLAGS='$LTCFLAGS'
16152 compiler='$compiler_DEFAULT'
16153
16154 # A function that is used when there is no print builtin or printf.
16155 func_fallback_echo ()
16156 {
16157 eval 'cat <<_LTECHO_EOF
16158 \$1
16159 _LTECHO_EOF'
16160 }
16161
16162 # Quote evaled strings.
16163 for var in SHELL \
16164 ECHO \
16165 SED \
16166 GREP \
16167 EGREP \
16168 FGREP \
16169 LD \
16170 NM \
16171 LN_S \
16172 lt_SP2NL \
16173 lt_NL2SP \
16174 reload_flag \
16175 OBJDUMP \
16176 deplibs_check_method \
16177 file_magic_cmd \
16178 AR \
16179 AR_FLAGS \
16180 STRIP \
16181 RANLIB \
16182 CC \
16183 CFLAGS \
16184 compiler \
16185 lt_cv_sys_global_symbol_pipe \
16186 lt_cv_sys_global_symbol_to_cdecl \
16187 lt_cv_sys_global_symbol_to_c_name_address \
16188 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16189 lt_prog_compiler_no_builtin_flag \
16190 lt_prog_compiler_wl \
16191 lt_prog_compiler_pic \
16192 lt_prog_compiler_static \
16193 lt_cv_prog_compiler_c_o \
16194 need_locks \
16195 DSYMUTIL \
16196 NMEDIT \
16197 LIPO \
16198 OTOOL \
16199 OTOOL64 \
16200 shrext_cmds \
16201 export_dynamic_flag_spec \
16202 whole_archive_flag_spec \
16203 compiler_needs_object \
16204 with_gnu_ld \
16205 allow_undefined_flag \
16206 no_undefined_flag \
16207 hardcode_libdir_flag_spec \
16208 hardcode_libdir_flag_spec_ld \
16209 hardcode_libdir_separator \
16210 fix_srcfile_path \
16211 exclude_expsyms \
16212 include_expsyms \
16213 file_list_spec \
16214 variables_saved_for_relink \
16215 libname_spec \
16216 library_names_spec \
16217 soname_spec \
16218 install_override_mode \
16219 finish_eval \
16220 old_striplib \
16221 striplib; do
16222 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16223 *[\\\\\\\`\\"\\\$]*)
16224 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16225 ;;
16226 *)
16227 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16228 ;;
16229 esac
16230 done
16231
16232 # Double-quote double-evaled strings.
16233 for var in reload_cmds \
16234 old_postinstall_cmds \
16235 old_postuninstall_cmds \
16236 old_archive_cmds \
16237 extract_expsyms_cmds \
16238 old_archive_from_new_cmds \
16239 old_archive_from_expsyms_cmds \
16240 archive_cmds \
16241 archive_expsym_cmds \
16242 module_cmds \
16243 module_expsym_cmds \
16244 export_symbols_cmds \
16245 prelink_cmds \
16246 postinstall_cmds \
16247 postuninstall_cmds \
16248 finish_cmds \
16249 sys_lib_search_path_spec \
16250 sys_lib_dlsearch_path_spec; do
16251 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16252 *[\\\\\\\`\\"\\\$]*)
16253 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16254 ;;
16255 *)
16256 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16257 ;;
16258 esac
16259 done
16260
16261 ac_aux_dir='$ac_aux_dir'
16262 xsi_shell='$xsi_shell'
16263 lt_shell_append='$lt_shell_append'
16264
16265 # See if we are running on zsh, and set the options which allow our
16266 # commands through without removal of \ escapes INIT.
16267 if test -n "\${ZSH_VERSION+set}" ; then
16268 setopt NO_GLOB_SUBST
16269 fi
16270
16271
16272 PACKAGE='$PACKAGE'
16273 VERSION='$VERSION'
16274 TIMESTAMP='$TIMESTAMP'
16275 RM='$RM'
16276 ofile='$ofile'
16277
16278
16279
16280
16281 GCC="$GCC"
16282 CC="$CC"
16283 acx_cv_header_stdint="$acx_cv_header_stdint"
16284 acx_cv_type_int8_t="$acx_cv_type_int8_t"
16285 acx_cv_type_int16_t="$acx_cv_type_int16_t"
16286 acx_cv_type_int32_t="$acx_cv_type_int32_t"
16287 acx_cv_type_int64_t="$acx_cv_type_int64_t"
16288 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
16289 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
16290 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
16291 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16292 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16293 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
16294 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16295 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16296 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
16297
16298
16299 _ACEOF
16300
16301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16302
16303 # Handling of arguments.
16304 for ac_config_target in $ac_config_targets
16305 do
16306 case $ac_config_target in
16307 "auto-config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-config.h" ;;
16308 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16309 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16310 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16311 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
16312 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16313 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16314
16315 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16316 esac
16317 done
16318
16319
16320 # If the user did not use the arguments to specify the items to instantiate,
16321 # then the envvar interface is used. Set only those that are not.
16322 # We use the long form for the default assignment because of an extremely
16323 # bizarre bug on SunOS 4.1.3.
16324 if $ac_need_defaults; then
16325 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16326 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16327 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16328 fi
16329
16330 # Have a temporary directory for convenience. Make it in the build tree
16331 # simply because there is no reason against having it here, and in addition,
16332 # creating and moving files from /tmp can sometimes cause problems.
16333 # Hook for its removal unless debugging.
16334 # Note that there is a small window in which the directory will not be cleaned:
16335 # after its creation but before its name has been assigned to `$tmp'.
16336 $debug ||
16337 {
16338 tmp=
16339 trap 'exit_status=$?
16340 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16341 ' 0
16342 trap 'as_fn_exit 1' 1 2 13 15
16343 }
16344 # Create a (secure) tmp directory for tmp files.
16345
16346 {
16347 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16348 test -n "$tmp" && test -d "$tmp"
16349 } ||
16350 {
16351 tmp=./conf$$-$RANDOM
16352 (umask 077 && mkdir "$tmp")
16353 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16354
16355 # Set up the scripts for CONFIG_FILES section.
16356 # No need to generate them if there are no CONFIG_FILES.
16357 # This happens for instance with `./config.status config.h'.
16358 if test -n "$CONFIG_FILES"; then
16359
16360
16361 ac_cr=`echo X | tr X '\015'`
16362 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16363 # But we know of no other shell where ac_cr would be empty at this
16364 # point, so we can use a bashism as a fallback.
16365 if test "x$ac_cr" = x; then
16366 eval ac_cr=\$\'\\r\'
16367 fi
16368 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16369 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16370 ac_cs_awk_cr='\r'
16371 else
16372 ac_cs_awk_cr=$ac_cr
16373 fi
16374
16375 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16376 _ACEOF
16377
16378
16379 {
16380 echo "cat >conf$$subs.awk <<_ACEOF" &&
16381 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16382 echo "_ACEOF"
16383 } >conf$$subs.sh ||
16384 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16385 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16386 ac_delim='%!_!# '
16387 for ac_last_try in false false false false false :; do
16388 . ./conf$$subs.sh ||
16389 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16390
16391 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16392 if test $ac_delim_n = $ac_delim_num; then
16393 break
16394 elif $ac_last_try; then
16395 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16396 else
16397 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16398 fi
16399 done
16400 rm -f conf$$subs.sh
16401
16402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16403 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16404 _ACEOF
16405 sed -n '
16406 h
16407 s/^/S["/; s/!.*/"]=/
16408 p
16409 g
16410 s/^[^!]*!//
16411 :repl
16412 t repl
16413 s/'"$ac_delim"'$//
16414 t delim
16415 :nl
16416 h
16417 s/\(.\{148\}\).*/\1/
16418 t more1
16419 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16420 p
16421 n
16422 b repl
16423 :more1
16424 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16425 p
16426 g
16427 s/.\{148\}//
16428 t nl
16429 :delim
16430 h
16431 s/\(.\{148\}\).*/\1/
16432 t more2
16433 s/["\\]/\\&/g; s/^/"/; s/$/"/
16434 p
16435 b
16436 :more2
16437 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16438 p
16439 g
16440 s/.\{148\}//
16441 t delim
16442 ' <conf$$subs.awk | sed '
16443 /^[^""]/{
16444 N
16445 s/\n//
16446 }
16447 ' >>$CONFIG_STATUS || ac_write_fail=1
16448 rm -f conf$$subs.awk
16449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16450 _ACAWK
16451 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16452 for (key in S) S_is_set[key] = 1
16453 FS = "\a"
16454
16455 }
16456 {
16457 line = $ 0
16458 nfields = split(line, field, "@")
16459 substed = 0
16460 len = length(field[1])
16461 for (i = 2; i < nfields; i++) {
16462 key = field[i]
16463 keylen = length(key)
16464 if (S_is_set[key]) {
16465 value = S[key]
16466 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16467 len += length(value) + length(field[++i])
16468 substed = 1
16469 } else
16470 len += 1 + keylen
16471 }
16472
16473 print line
16474 }
16475
16476 _ACAWK
16477 _ACEOF
16478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16479 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16480 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16481 else
16482 cat
16483 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16484 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16485 _ACEOF
16486
16487 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16488 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16489 # trailing colons and then remove the whole line if VPATH becomes empty
16490 # (actually we leave an empty line to preserve line numbers).
16491 if test "x$srcdir" = x.; then
16492 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16493 s/:*\$(srcdir):*/:/
16494 s/:*\${srcdir}:*/:/
16495 s/:*@srcdir@:*/:/
16496 s/^\([^=]*=[ ]*\):*/\1/
16497 s/:*$//
16498 s/^[^=]*=[ ]*$//
16499 }'
16500 fi
16501
16502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16503 fi # test -n "$CONFIG_FILES"
16504
16505 # Set up the scripts for CONFIG_HEADERS section.
16506 # No need to generate them if there are no CONFIG_HEADERS.
16507 # This happens for instance with `./config.status Makefile'.
16508 if test -n "$CONFIG_HEADERS"; then
16509 cat >"$tmp/defines.awk" <<\_ACAWK ||
16510 BEGIN {
16511 _ACEOF
16512
16513 # Transform confdefs.h into an awk script `defines.awk', embedded as
16514 # here-document in config.status, that substitutes the proper values into
16515 # config.h.in to produce config.h.
16516
16517 # Create a delimiter string that does not exist in confdefs.h, to ease
16518 # handling of long lines.
16519 ac_delim='%!_!# '
16520 for ac_last_try in false false :; do
16521 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16522 if test -z "$ac_t"; then
16523 break
16524 elif $ac_last_try; then
16525 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16526 else
16527 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16528 fi
16529 done
16530
16531 # For the awk script, D is an array of macro values keyed by name,
16532 # likewise P contains macro parameters if any. Preserve backslash
16533 # newline sequences.
16534
16535 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16536 sed -n '
16537 s/.\{148\}/&'"$ac_delim"'/g
16538 t rset
16539 :rset
16540 s/^[ ]*#[ ]*define[ ][ ]*/ /
16541 t def
16542 d
16543 :def
16544 s/\\$//
16545 t bsnl
16546 s/["\\]/\\&/g
16547 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16548 D["\1"]=" \3"/p
16549 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16550 d
16551 :bsnl
16552 s/["\\]/\\&/g
16553 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16554 D["\1"]=" \3\\\\\\n"\\/p
16555 t cont
16556 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16557 t cont
16558 d
16559 :cont
16560 n
16561 s/.\{148\}/&'"$ac_delim"'/g
16562 t clear
16563 :clear
16564 s/\\$//
16565 t bsnlc
16566 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16567 d
16568 :bsnlc
16569 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16570 b cont
16571 ' <confdefs.h | sed '
16572 s/'"$ac_delim"'/"\\\
16573 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16574
16575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16576 for (key in D) D_is_set[key] = 1
16577 FS = "\a"
16578 }
16579 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16580 line = \$ 0
16581 split(line, arg, " ")
16582 if (arg[1] == "#") {
16583 defundef = arg[2]
16584 mac1 = arg[3]
16585 } else {
16586 defundef = substr(arg[1], 2)
16587 mac1 = arg[2]
16588 }
16589 split(mac1, mac2, "(") #)
16590 macro = mac2[1]
16591 prefix = substr(line, 1, index(line, defundef) - 1)
16592 if (D_is_set[macro]) {
16593 # Preserve the white space surrounding the "#".
16594 print prefix "define", macro P[macro] D[macro]
16595 next
16596 } else {
16597 # Replace #undef with comments. This is necessary, for example,
16598 # in the case of _POSIX_SOURCE, which is predefined and required
16599 # on some systems where configure will not decide to define it.
16600 if (defundef == "undef") {
16601 print "/*", prefix defundef, macro, "*/"
16602 next
16603 }
16604 }
16605 }
16606 { print }
16607 _ACAWK
16608 _ACEOF
16609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16610 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16611 fi # test -n "$CONFIG_HEADERS"
16612
16613
16614 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16615 shift
16616 for ac_tag
16617 do
16618 case $ac_tag in
16619 :[FHLC]) ac_mode=$ac_tag; continue;;
16620 esac
16621 case $ac_mode$ac_tag in
16622 :[FHL]*:*);;
16623 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16624 :[FH]-) ac_tag=-:-;;
16625 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16626 esac
16627 ac_save_IFS=$IFS
16628 IFS=:
16629 set x $ac_tag
16630 IFS=$ac_save_IFS
16631 shift
16632 ac_file=$1
16633 shift
16634
16635 case $ac_mode in
16636 :L) ac_source=$1;;
16637 :[FH])
16638 ac_file_inputs=
16639 for ac_f
16640 do
16641 case $ac_f in
16642 -) ac_f="$tmp/stdin";;
16643 *) # Look for the file first in the build tree, then in the source tree
16644 # (if the path is not absolute). The absolute path cannot be DOS-style,
16645 # because $ac_f cannot contain `:'.
16646 test -f "$ac_f" ||
16647 case $ac_f in
16648 [\\/$]*) false;;
16649 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16650 esac ||
16651 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16652 esac
16653 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16654 as_fn_append ac_file_inputs " '$ac_f'"
16655 done
16656
16657 # Let's still pretend it is `configure' which instantiates (i.e., don't
16658 # use $as_me), people would be surprised to read:
16659 # /* config.h. Generated by config.status. */
16660 configure_input='Generated from '`
16661 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16662 `' by configure.'
16663 if test x"$ac_file" != x-; then
16664 configure_input="$ac_file. $configure_input"
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16666 $as_echo "$as_me: creating $ac_file" >&6;}
16667 fi
16668 # Neutralize special characters interpreted by sed in replacement strings.
16669 case $configure_input in #(
16670 *\&* | *\|* | *\\* )
16671 ac_sed_conf_input=`$as_echo "$configure_input" |
16672 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16673 *) ac_sed_conf_input=$configure_input;;
16674 esac
16675
16676 case $ac_tag in
16677 *:-:* | *:-) cat >"$tmp/stdin" \
16678 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16679 esac
16680 ;;
16681 esac
16682
16683 ac_dir=`$as_dirname -- "$ac_file" ||
16684 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16685 X"$ac_file" : 'X\(//\)[^/]' \| \
16686 X"$ac_file" : 'X\(//\)$' \| \
16687 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16688 $as_echo X"$ac_file" |
16689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16690 s//\1/
16691 q
16692 }
16693 /^X\(\/\/\)[^/].*/{
16694 s//\1/
16695 q
16696 }
16697 /^X\(\/\/\)$/{
16698 s//\1/
16699 q
16700 }
16701 /^X\(\/\).*/{
16702 s//\1/
16703 q
16704 }
16705 s/.*/./; q'`
16706 as_dir="$ac_dir"; as_fn_mkdir_p
16707 ac_builddir=.
16708
16709 case "$ac_dir" in
16710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16711 *)
16712 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16713 # A ".." for each directory in $ac_dir_suffix.
16714 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16715 case $ac_top_builddir_sub in
16716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16718 esac ;;
16719 esac
16720 ac_abs_top_builddir=$ac_pwd
16721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16722 # for backward compatibility:
16723 ac_top_builddir=$ac_top_build_prefix
16724
16725 case $srcdir in
16726 .) # We are building in place.
16727 ac_srcdir=.
16728 ac_top_srcdir=$ac_top_builddir_sub
16729 ac_abs_top_srcdir=$ac_pwd ;;
16730 [\\/]* | ?:[\\/]* ) # Absolute name.
16731 ac_srcdir=$srcdir$ac_dir_suffix;
16732 ac_top_srcdir=$srcdir
16733 ac_abs_top_srcdir=$srcdir ;;
16734 *) # Relative name.
16735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16736 ac_top_srcdir=$ac_top_build_prefix$srcdir
16737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16738 esac
16739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16740
16741
16742 case $ac_mode in
16743 :F)
16744 #
16745 # CONFIG_FILE
16746 #
16747
16748 case $INSTALL in
16749 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16750 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16751 esac
16752 ac_MKDIR_P=$MKDIR_P
16753 case $MKDIR_P in
16754 [\\/$]* | ?:[\\/]* ) ;;
16755 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16756 esac
16757 _ACEOF
16758
16759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16760 # If the template does not know about datarootdir, expand it.
16761 # FIXME: This hack should be removed a few years after 2.60.
16762 ac_datarootdir_hack=; ac_datarootdir_seen=
16763 ac_sed_dataroot='
16764 /datarootdir/ {
16765 p
16766 q
16767 }
16768 /@datadir@/p
16769 /@docdir@/p
16770 /@infodir@/p
16771 /@localedir@/p
16772 /@mandir@/p'
16773 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16774 *datarootdir*) ac_datarootdir_seen=yes;;
16775 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16777 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16778 _ACEOF
16779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16780 ac_datarootdir_hack='
16781 s&@datadir@&$datadir&g
16782 s&@docdir@&$docdir&g
16783 s&@infodir@&$infodir&g
16784 s&@localedir@&$localedir&g
16785 s&@mandir@&$mandir&g
16786 s&\\\${datarootdir}&$datarootdir&g' ;;
16787 esac
16788 _ACEOF
16789
16790 # Neutralize VPATH when `$srcdir' = `.'.
16791 # Shell code in configure.ac might set extrasub.
16792 # FIXME: do we really want to maintain this feature?
16793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16794 ac_sed_extra="$ac_vpsub
16795 $extrasub
16796 _ACEOF
16797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16798 :t
16799 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16800 s|@configure_input@|$ac_sed_conf_input|;t t
16801 s&@top_builddir@&$ac_top_builddir_sub&;t t
16802 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16803 s&@srcdir@&$ac_srcdir&;t t
16804 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16805 s&@top_srcdir@&$ac_top_srcdir&;t t
16806 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16807 s&@builddir@&$ac_builddir&;t t
16808 s&@abs_builddir@&$ac_abs_builddir&;t t
16809 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16810 s&@INSTALL@&$ac_INSTALL&;t t
16811 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16812 $ac_datarootdir_hack
16813 "
16814 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16815 || as_fn_error "could not create $ac_file" "$LINENO" 5
16816
16817 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16818 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16819 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16821 which seems to be undefined. Please make sure it is defined." >&5
16822 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16823 which seems to be undefined. Please make sure it is defined." >&2;}
16824
16825 rm -f "$tmp/stdin"
16826 case $ac_file in
16827 -) cat "$tmp/out" && rm -f "$tmp/out";;
16828 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16829 esac \
16830 || as_fn_error "could not create $ac_file" "$LINENO" 5
16831 ;;
16832 :H)
16833 #
16834 # CONFIG_HEADER
16835 #
16836 if test x"$ac_file" != x-; then
16837 {
16838 $as_echo "/* $configure_input */" \
16839 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16840 } >"$tmp/config.h" \
16841 || as_fn_error "could not create $ac_file" "$LINENO" 5
16842 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16844 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16845 else
16846 rm -f "$ac_file"
16847 mv "$tmp/config.h" "$ac_file" \
16848 || as_fn_error "could not create $ac_file" "$LINENO" 5
16849 fi
16850 else
16851 $as_echo "/* $configure_input */" \
16852 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16853 || as_fn_error "could not create -" "$LINENO" 5
16854 fi
16855 # Compute "$ac_file"'s index in $config_headers.
16856 _am_arg="$ac_file"
16857 _am_stamp_count=1
16858 for _am_header in $config_headers :; do
16859 case $_am_header in
16860 $_am_arg | $_am_arg:* )
16861 break ;;
16862 * )
16863 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16864 esac
16865 done
16866 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16867 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16868 X"$_am_arg" : 'X\(//\)[^/]' \| \
16869 X"$_am_arg" : 'X\(//\)$' \| \
16870 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16871 $as_echo X"$_am_arg" |
16872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16873 s//\1/
16874 q
16875 }
16876 /^X\(\/\/\)[^/].*/{
16877 s//\1/
16878 q
16879 }
16880 /^X\(\/\/\)$/{
16881 s//\1/
16882 q
16883 }
16884 /^X\(\/\).*/{
16885 s//\1/
16886 q
16887 }
16888 s/.*/./; q'`/stamp-h$_am_stamp_count
16889 ;;
16890
16891 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16892 $as_echo "$as_me: executing $ac_file commands" >&6;}
16893 ;;
16894 esac
16895
16896
16897 case $ac_file$ac_mode in
16898 "default-1":C)
16899 # Only add multilib support code if we just rebuilt the top-level
16900 # Makefile.
16901 case " $CONFIG_FILES " in
16902 *" Makefile "*)
16903 ac_file=Makefile . ${multi_basedir}/config-ml.in
16904 ;;
16905 esac ;;
16906 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16907 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16908 # are listed without --file. Let's play safe and only enable the eval
16909 # if we detect the quoting.
16910 case $CONFIG_FILES in
16911 *\'*) eval set x "$CONFIG_FILES" ;;
16912 *) set x $CONFIG_FILES ;;
16913 esac
16914 shift
16915 for mf
16916 do
16917 # Strip MF so we end up with the name of the file.
16918 mf=`echo "$mf" | sed -e 's/:.*$//'`
16919 # Check whether this is an Automake generated Makefile or not.
16920 # We used to match only the files named `Makefile.in', but
16921 # some people rename them; so instead we look at the file content.
16922 # Grep'ing the first line is not enough: some people post-process
16923 # each Makefile.in and add a new line on top of each file to say so.
16924 # Grep'ing the whole file is not good either: AIX grep has a line
16925 # limit of 2048, but all sed's we know have understand at least 4000.
16926 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16927 dirpart=`$as_dirname -- "$mf" ||
16928 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16929 X"$mf" : 'X\(//\)[^/]' \| \
16930 X"$mf" : 'X\(//\)$' \| \
16931 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16932 $as_echo X"$mf" |
16933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16934 s//\1/
16935 q
16936 }
16937 /^X\(\/\/\)[^/].*/{
16938 s//\1/
16939 q
16940 }
16941 /^X\(\/\/\)$/{
16942 s//\1/
16943 q
16944 }
16945 /^X\(\/\).*/{
16946 s//\1/
16947 q
16948 }
16949 s/.*/./; q'`
16950 else
16951 continue
16952 fi
16953 # Extract the definition of DEPDIR, am__include, and am__quote
16954 # from the Makefile without running `make'.
16955 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16956 test -z "$DEPDIR" && continue
16957 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16958 test -z "am__include" && continue
16959 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16960 # When using ansi2knr, U may be empty or an underscore; expand it
16961 U=`sed -n 's/^U = //p' < "$mf"`
16962 # Find all dependency output files, they are included files with
16963 # $(DEPDIR) in their names. We invoke sed twice because it is the
16964 # simplest approach to changing $(DEPDIR) to its actual value in the
16965 # expansion.
16966 for file in `sed -n "
16967 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16968 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16969 # Make sure the directory exists.
16970 test -f "$dirpart/$file" && continue
16971 fdir=`$as_dirname -- "$file" ||
16972 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16973 X"$file" : 'X\(//\)[^/]' \| \
16974 X"$file" : 'X\(//\)$' \| \
16975 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16976 $as_echo X"$file" |
16977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16978 s//\1/
16979 q
16980 }
16981 /^X\(\/\/\)[^/].*/{
16982 s//\1/
16983 q
16984 }
16985 /^X\(\/\/\)$/{
16986 s//\1/
16987 q
16988 }
16989 /^X\(\/\).*/{
16990 s//\1/
16991 q
16992 }
16993 s/.*/./; q'`
16994 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16995 # echo "creating $dirpart/$file"
16996 echo '# dummy' > "$dirpart/$file"
16997 done
16998 done
16999 }
17000 ;;
17001 "libtool":C)
17002
17003 # See if we are running on zsh, and set the options which allow our
17004 # commands through without removal of \ escapes.
17005 if test -n "${ZSH_VERSION+set}" ; then
17006 setopt NO_GLOB_SUBST
17007 fi
17008
17009 cfgfile="${ofile}T"
17010 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17011 $RM "$cfgfile"
17012
17013 cat <<_LT_EOF >> "$cfgfile"
17014 #! $SHELL
17015
17016 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17017 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17018 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17019 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17020 #
17021 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17022 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17023 # Written by Gordon Matzigkeit, 1996
17024 #
17025 # This file is part of GNU Libtool.
17026 #
17027 # GNU Libtool is free software; you can redistribute it and/or
17028 # modify it under the terms of the GNU General Public License as
17029 # published by the Free Software Foundation; either version 2 of
17030 # the License, or (at your option) any later version.
17031 #
17032 # As a special exception to the GNU General Public License,
17033 # if you distribute this file as part of a program or library that
17034 # is built using GNU Libtool, you may include this file under the
17035 # same distribution terms that you use for the rest of that program.
17036 #
17037 # GNU Libtool is distributed in the hope that it will be useful,
17038 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17039 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17040 # GNU General Public License for more details.
17041 #
17042 # You should have received a copy of the GNU General Public License
17043 # along with GNU Libtool; see the file COPYING. If not, a copy
17044 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17045 # obtained by writing to the Free Software Foundation, Inc.,
17046 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17047
17048
17049 # The names of the tagged configurations supported by this script.
17050 available_tags=""
17051
17052 # ### BEGIN LIBTOOL CONFIG
17053
17054 # Which release of libtool.m4 was used?
17055 macro_version=$macro_version
17056 macro_revision=$macro_revision
17057
17058 # Whether or not to build shared libraries.
17059 build_libtool_libs=$enable_shared
17060
17061 # Whether or not to build static libraries.
17062 build_old_libs=$enable_static
17063
17064 # What type of objects to build.
17065 pic_mode=$pic_mode
17066
17067 # Whether or not to optimize for fast installation.
17068 fast_install=$enable_fast_install
17069
17070 # Shell to use when invoking shell scripts.
17071 SHELL=$lt_SHELL
17072
17073 # An echo program that protects backslashes.
17074 ECHO=$lt_ECHO
17075
17076 # The host system.
17077 host_alias=$host_alias
17078 host=$host
17079 host_os=$host_os
17080
17081 # The build system.
17082 build_alias=$build_alias
17083 build=$build
17084 build_os=$build_os
17085
17086 # A sed program that does not truncate output.
17087 SED=$lt_SED
17088
17089 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17090 Xsed="\$SED -e 1s/^X//"
17091
17092 # A grep program that handles long lines.
17093 GREP=$lt_GREP
17094
17095 # An ERE matcher.
17096 EGREP=$lt_EGREP
17097
17098 # A literal string matcher.
17099 FGREP=$lt_FGREP
17100
17101 # A BSD- or MS-compatible name lister.
17102 NM=$lt_NM
17103
17104 # Whether we need soft or hard links.
17105 LN_S=$lt_LN_S
17106
17107 # What is the maximum length of a command?
17108 max_cmd_len=$max_cmd_len
17109
17110 # Object file suffix (normally "o").
17111 objext=$ac_objext
17112
17113 # Executable file suffix (normally "").
17114 exeext=$exeext
17115
17116 # whether the shell understands "unset".
17117 lt_unset=$lt_unset
17118
17119 # turn spaces into newlines.
17120 SP2NL=$lt_lt_SP2NL
17121
17122 # turn newlines into spaces.
17123 NL2SP=$lt_lt_NL2SP
17124
17125 # An object symbol dumper.
17126 OBJDUMP=$lt_OBJDUMP
17127
17128 # Method to check whether dependent libraries are shared objects.
17129 deplibs_check_method=$lt_deplibs_check_method
17130
17131 # Command to use when deplibs_check_method == "file_magic".
17132 file_magic_cmd=$lt_file_magic_cmd
17133
17134 # The archiver.
17135 AR=$lt_AR
17136 AR_FLAGS=$lt_AR_FLAGS
17137
17138 # A symbol stripping program.
17139 STRIP=$lt_STRIP
17140
17141 # Commands used to install an old-style archive.
17142 RANLIB=$lt_RANLIB
17143 old_postinstall_cmds=$lt_old_postinstall_cmds
17144 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17145
17146 # Whether to use a lock for old archive extraction.
17147 lock_old_archive_extraction=$lock_old_archive_extraction
17148
17149 # A C compiler.
17150 LTCC=$lt_CC
17151
17152 # LTCC compiler flags.
17153 LTCFLAGS=$lt_CFLAGS
17154
17155 # Take the output of nm and produce a listing of raw symbols and C names.
17156 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17157
17158 # Transform the output of nm in a proper C declaration.
17159 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17160
17161 # Transform the output of nm in a C name address pair.
17162 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17163
17164 # Transform the output of nm in a C name address pair when lib prefix is needed.
17165 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17166
17167 # The name of the directory that contains temporary libtool files.
17168 objdir=$objdir
17169
17170 # Used to examine libraries when file_magic_cmd begins with "file".
17171 MAGIC_CMD=$MAGIC_CMD
17172
17173 # Must we lock files when doing compilation?
17174 need_locks=$lt_need_locks
17175
17176 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17177 DSYMUTIL=$lt_DSYMUTIL
17178
17179 # Tool to change global to local symbols on Mac OS X.
17180 NMEDIT=$lt_NMEDIT
17181
17182 # Tool to manipulate fat objects and archives on Mac OS X.
17183 LIPO=$lt_LIPO
17184
17185 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17186 OTOOL=$lt_OTOOL
17187
17188 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17189 OTOOL64=$lt_OTOOL64
17190
17191 # Old archive suffix (normally "a").
17192 libext=$libext
17193
17194 # Shared library suffix (normally ".so").
17195 shrext_cmds=$lt_shrext_cmds
17196
17197 # The commands to extract the exported symbol list from a shared archive.
17198 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17199
17200 # Variables whose values should be saved in libtool wrapper scripts and
17201 # restored at link time.
17202 variables_saved_for_relink=$lt_variables_saved_for_relink
17203
17204 # Do we need the "lib" prefix for modules?
17205 need_lib_prefix=$need_lib_prefix
17206
17207 # Do we need a version for libraries?
17208 need_version=$need_version
17209
17210 # Library versioning type.
17211 version_type=$version_type
17212
17213 # Shared library runtime path variable.
17214 runpath_var=$runpath_var
17215
17216 # Shared library path variable.
17217 shlibpath_var=$shlibpath_var
17218
17219 # Is shlibpath searched before the hard-coded library search path?
17220 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17221
17222 # Format of library name prefix.
17223 libname_spec=$lt_libname_spec
17224
17225 # List of archive names. First name is the real one, the rest are links.
17226 # The last name is the one that the linker finds with -lNAME
17227 library_names_spec=$lt_library_names_spec
17228
17229 # The coded name of the library, if different from the real name.
17230 soname_spec=$lt_soname_spec
17231
17232 # Permission mode override for installation of shared libraries.
17233 install_override_mode=$lt_install_override_mode
17234
17235 # Command to use after installation of a shared archive.
17236 postinstall_cmds=$lt_postinstall_cmds
17237
17238 # Command to use after uninstallation of a shared archive.
17239 postuninstall_cmds=$lt_postuninstall_cmds
17240
17241 # Commands used to finish a libtool library installation in a directory.
17242 finish_cmds=$lt_finish_cmds
17243
17244 # As "finish_cmds", except a single script fragment to be evaled but
17245 # not shown.
17246 finish_eval=$lt_finish_eval
17247
17248 # Whether we should hardcode library paths into libraries.
17249 hardcode_into_libs=$hardcode_into_libs
17250
17251 # Compile-time system search path for libraries.
17252 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17253
17254 # Run-time system search path for libraries.
17255 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17256
17257 # Whether dlopen is supported.
17258 dlopen_support=$enable_dlopen
17259
17260 # Whether dlopen of programs is supported.
17261 dlopen_self=$enable_dlopen_self
17262
17263 # Whether dlopen of statically linked programs is supported.
17264 dlopen_self_static=$enable_dlopen_self_static
17265
17266 # Commands to strip libraries.
17267 old_striplib=$lt_old_striplib
17268 striplib=$lt_striplib
17269
17270
17271 # The linker used to build libraries.
17272 LD=$lt_LD
17273
17274 # How to create reloadable object files.
17275 reload_flag=$lt_reload_flag
17276 reload_cmds=$lt_reload_cmds
17277
17278 # Commands used to build an old-style archive.
17279 old_archive_cmds=$lt_old_archive_cmds
17280
17281 # A language specific compiler.
17282 CC=$lt_compiler
17283
17284 # Is the compiler the GNU compiler?
17285 with_gcc=$GCC
17286
17287 # Compiler flag to turn off builtin functions.
17288 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17289
17290 # How to pass a linker flag through the compiler.
17291 wl=$lt_lt_prog_compiler_wl
17292
17293 # Additional compiler flags for building library objects.
17294 pic_flag=$lt_lt_prog_compiler_pic
17295
17296 # Compiler flag to prevent dynamic linking.
17297 link_static_flag=$lt_lt_prog_compiler_static
17298
17299 # Does compiler simultaneously support -c and -o options?
17300 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17301
17302 # Whether or not to add -lc for building shared libraries.
17303 build_libtool_need_lc=$archive_cmds_need_lc
17304
17305 # Whether or not to disallow shared libs when runtime libs are static.
17306 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17307
17308 # Compiler flag to allow reflexive dlopens.
17309 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17310
17311 # Compiler flag to generate shared objects directly from archives.
17312 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17313
17314 # Whether the compiler copes with passing no objects directly.
17315 compiler_needs_object=$lt_compiler_needs_object
17316
17317 # Create an old-style archive from a shared archive.
17318 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17319
17320 # Create a temporary old-style archive to link instead of a shared archive.
17321 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17322
17323 # Commands used to build a shared archive.
17324 archive_cmds=$lt_archive_cmds
17325 archive_expsym_cmds=$lt_archive_expsym_cmds
17326
17327 # Commands used to build a loadable module if different from building
17328 # a shared archive.
17329 module_cmds=$lt_module_cmds
17330 module_expsym_cmds=$lt_module_expsym_cmds
17331
17332 # Whether we are building with GNU ld or not.
17333 with_gnu_ld=$lt_with_gnu_ld
17334
17335 # Flag that allows shared libraries with undefined symbols to be built.
17336 allow_undefined_flag=$lt_allow_undefined_flag
17337
17338 # Flag that enforces no undefined symbols.
17339 no_undefined_flag=$lt_no_undefined_flag
17340
17341 # Flag to hardcode \$libdir into a binary during linking.
17342 # This must work even if \$libdir does not exist
17343 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17344
17345 # If ld is used when linking, flag to hardcode \$libdir into a binary
17346 # during linking. This must work even if \$libdir does not exist.
17347 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17348
17349 # Whether we need a single "-rpath" flag with a separated argument.
17350 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17351
17352 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17353 # DIR into the resulting binary.
17354 hardcode_direct=$hardcode_direct
17355
17356 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17357 # DIR into the resulting binary and the resulting library dependency is
17358 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17359 # library is relocated.
17360 hardcode_direct_absolute=$hardcode_direct_absolute
17361
17362 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17363 # into the resulting binary.
17364 hardcode_minus_L=$hardcode_minus_L
17365
17366 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17367 # into the resulting binary.
17368 hardcode_shlibpath_var=$hardcode_shlibpath_var
17369
17370 # Set to "yes" if building a shared library automatically hardcodes DIR
17371 # into the library and all subsequent libraries and executables linked
17372 # against it.
17373 hardcode_automatic=$hardcode_automatic
17374
17375 # Set to yes if linker adds runtime paths of dependent libraries
17376 # to runtime path list.
17377 inherit_rpath=$inherit_rpath
17378
17379 # Whether libtool must link a program against all its dependency libraries.
17380 link_all_deplibs=$link_all_deplibs
17381
17382 # Fix the shell variable \$srcfile for the compiler.
17383 fix_srcfile_path=$lt_fix_srcfile_path
17384
17385 # Set to "yes" if exported symbols are required.
17386 always_export_symbols=$always_export_symbols
17387
17388 # The commands to list exported symbols.
17389 export_symbols_cmds=$lt_export_symbols_cmds
17390
17391 # Symbols that should not be listed in the preloaded symbols.
17392 exclude_expsyms=$lt_exclude_expsyms
17393
17394 # Symbols that must always be exported.
17395 include_expsyms=$lt_include_expsyms
17396
17397 # Commands necessary for linking programs (against libraries) with templates.
17398 prelink_cmds=$lt_prelink_cmds
17399
17400 # Specify filename containing input files.
17401 file_list_spec=$lt_file_list_spec
17402
17403 # How to hardcode a shared library path into an executable.
17404 hardcode_action=$hardcode_action
17405
17406 # ### END LIBTOOL CONFIG
17407
17408 _LT_EOF
17409
17410 case $host_os in
17411 aix3*)
17412 cat <<\_LT_EOF >> "$cfgfile"
17413 # AIX sometimes has problems with the GCC collect2 program. For some
17414 # reason, if we set the COLLECT_NAMES environment variable, the problems
17415 # vanish in a puff of smoke.
17416 if test "X${COLLECT_NAMES+set}" != Xset; then
17417 COLLECT_NAMES=
17418 export COLLECT_NAMES
17419 fi
17420 _LT_EOF
17421 ;;
17422 esac
17423
17424
17425 ltmain="$ac_aux_dir/ltmain.sh"
17426
17427
17428 # We use sed instead of cat because bash on DJGPP gets confused if
17429 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17430 # text mode, it properly converts lines to CR/LF. This bash problem
17431 # is reportedly fixed, but why not run on old versions too?
17432 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17433 || (rm -f "$cfgfile"; exit 1)
17434
17435 case $xsi_shell in
17436 yes)
17437 cat << \_LT_EOF >> "$cfgfile"
17438
17439 # func_dirname file append nondir_replacement
17440 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17441 # otherwise set result to NONDIR_REPLACEMENT.
17442 func_dirname ()
17443 {
17444 case ${1} in
17445 */*) func_dirname_result="${1%/*}${2}" ;;
17446 * ) func_dirname_result="${3}" ;;
17447 esac
17448 }
17449
17450 # func_basename file
17451 func_basename ()
17452 {
17453 func_basename_result="${1##*/}"
17454 }
17455
17456 # func_dirname_and_basename file append nondir_replacement
17457 # perform func_basename and func_dirname in a single function
17458 # call:
17459 # dirname: Compute the dirname of FILE. If nonempty,
17460 # add APPEND to the result, otherwise set result
17461 # to NONDIR_REPLACEMENT.
17462 # value returned in "$func_dirname_result"
17463 # basename: Compute filename of FILE.
17464 # value retuned in "$func_basename_result"
17465 # Implementation must be kept synchronized with func_dirname
17466 # and func_basename. For efficiency, we do not delegate to
17467 # those functions but instead duplicate the functionality here.
17468 func_dirname_and_basename ()
17469 {
17470 case ${1} in
17471 */*) func_dirname_result="${1%/*}${2}" ;;
17472 * ) func_dirname_result="${3}" ;;
17473 esac
17474 func_basename_result="${1##*/}"
17475 }
17476
17477 # func_stripname prefix suffix name
17478 # strip PREFIX and SUFFIX off of NAME.
17479 # PREFIX and SUFFIX must not contain globbing or regex special
17480 # characters, hashes, percent signs, but SUFFIX may contain a leading
17481 # dot (in which case that matches only a dot).
17482 func_stripname ()
17483 {
17484 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17485 # positional parameters, so assign one to ordinary parameter first.
17486 func_stripname_result=${3}
17487 func_stripname_result=${func_stripname_result#"${1}"}
17488 func_stripname_result=${func_stripname_result%"${2}"}
17489 }
17490
17491 # func_opt_split
17492 func_opt_split ()
17493 {
17494 func_opt_split_opt=${1%%=*}
17495 func_opt_split_arg=${1#*=}
17496 }
17497
17498 # func_lo2o object
17499 func_lo2o ()
17500 {
17501 case ${1} in
17502 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17503 *) func_lo2o_result=${1} ;;
17504 esac
17505 }
17506
17507 # func_xform libobj-or-source
17508 func_xform ()
17509 {
17510 func_xform_result=${1%.*}.lo
17511 }
17512
17513 # func_arith arithmetic-term...
17514 func_arith ()
17515 {
17516 func_arith_result=$(( $* ))
17517 }
17518
17519 # func_len string
17520 # STRING may not start with a hyphen.
17521 func_len ()
17522 {
17523 func_len_result=${#1}
17524 }
17525
17526 _LT_EOF
17527 ;;
17528 *) # Bourne compatible functions.
17529 cat << \_LT_EOF >> "$cfgfile"
17530
17531 # func_dirname file append nondir_replacement
17532 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17533 # otherwise set result to NONDIR_REPLACEMENT.
17534 func_dirname ()
17535 {
17536 # Extract subdirectory from the argument.
17537 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17538 if test "X$func_dirname_result" = "X${1}"; then
17539 func_dirname_result="${3}"
17540 else
17541 func_dirname_result="$func_dirname_result${2}"
17542 fi
17543 }
17544
17545 # func_basename file
17546 func_basename ()
17547 {
17548 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17549 }
17550
17551
17552 # func_stripname prefix suffix name
17553 # strip PREFIX and SUFFIX off of NAME.
17554 # PREFIX and SUFFIX must not contain globbing or regex special
17555 # characters, hashes, percent signs, but SUFFIX may contain a leading
17556 # dot (in which case that matches only a dot).
17557 # func_strip_suffix prefix name
17558 func_stripname ()
17559 {
17560 case ${2} in
17561 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17562 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17563 esac
17564 }
17565
17566 # sed scripts:
17567 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17568 my_sed_long_arg='1s/^-[^=]*=//'
17569
17570 # func_opt_split
17571 func_opt_split ()
17572 {
17573 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17574 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17575 }
17576
17577 # func_lo2o object
17578 func_lo2o ()
17579 {
17580 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17581 }
17582
17583 # func_xform libobj-or-source
17584 func_xform ()
17585 {
17586 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17587 }
17588
17589 # func_arith arithmetic-term...
17590 func_arith ()
17591 {
17592 func_arith_result=`expr "$@"`
17593 }
17594
17595 # func_len string
17596 # STRING may not start with a hyphen.
17597 func_len ()
17598 {
17599 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17600 }
17601
17602 _LT_EOF
17603 esac
17604
17605 case $lt_shell_append in
17606 yes)
17607 cat << \_LT_EOF >> "$cfgfile"
17608
17609 # func_append var value
17610 # Append VALUE to the end of shell variable VAR.
17611 func_append ()
17612 {
17613 eval "$1+=\$2"
17614 }
17615 _LT_EOF
17616 ;;
17617 *)
17618 cat << \_LT_EOF >> "$cfgfile"
17619
17620 # func_append var value
17621 # Append VALUE to the end of shell variable VAR.
17622 func_append ()
17623 {
17624 eval "$1=\$$1\$2"
17625 }
17626
17627 _LT_EOF
17628 ;;
17629 esac
17630
17631
17632 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17633 || (rm -f "$cfgfile"; exit 1)
17634
17635 mv -f "$cfgfile" "$ofile" ||
17636 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17637 chmod +x "$ofile"
17638
17639 ;;
17640 "gstdint.h":C)
17641 if test "$GCC" = yes; then
17642 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
17643 else
17644 echo "/* generated for $CC */" > tmp-stdint.h
17645 fi
17646
17647 sed 's/^ *//' >> tmp-stdint.h <<EOF
17648
17649 #ifndef GCC_GENERATED_STDINT_H
17650 #define GCC_GENERATED_STDINT_H 1
17651
17652 #include <sys/types.h>
17653 EOF
17654
17655 if test "$acx_cv_header_stdint" != stdint.h; then
17656 echo "#include <stddef.h>" >> tmp-stdint.h
17657 fi
17658 if test "$acx_cv_header_stdint" != stddef.h; then
17659 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
17660 fi
17661
17662 sed 's/^ *//' >> tmp-stdint.h <<EOF
17663 /* glibc uses these symbols as guards to prevent redefinitions. */
17664 #ifdef __int8_t_defined
17665 #define _INT8_T
17666 #define _INT16_T
17667 #define _INT32_T
17668 #endif
17669 #ifdef __uint32_t_defined
17670 #define _UINT32_T
17671 #endif
17672
17673 EOF
17674
17675 # ----------------- done header, emit basic int types -------------
17676 if test "$acx_cv_header_stdint" = stddef.h; then
17677 sed 's/^ *//' >> tmp-stdint.h <<EOF
17678
17679 #ifndef _UINT8_T
17680 #define _UINT8_T
17681 #ifndef __uint8_t_defined
17682 #define __uint8_t_defined
17683 #ifndef uint8_t
17684 typedef unsigned $acx_cv_type_int8_t uint8_t;
17685 #endif
17686 #endif
17687 #endif
17688
17689 #ifndef _UINT16_T
17690 #define _UINT16_T
17691 #ifndef __uint16_t_defined
17692 #define __uint16_t_defined
17693 #ifndef uint16_t
17694 typedef unsigned $acx_cv_type_int16_t uint16_t;
17695 #endif
17696 #endif
17697 #endif
17698
17699 #ifndef _UINT32_T
17700 #define _UINT32_T
17701 #ifndef __uint32_t_defined
17702 #define __uint32_t_defined
17703 #ifndef uint32_t
17704 typedef unsigned $acx_cv_type_int32_t uint32_t;
17705 #endif
17706 #endif
17707 #endif
17708
17709 #ifndef _INT8_T
17710 #define _INT8_T
17711 #ifndef __int8_t_defined
17712 #define __int8_t_defined
17713 #ifndef int8_t
17714 typedef $acx_cv_type_int8_t int8_t;
17715 #endif
17716 #endif
17717 #endif
17718
17719 #ifndef _INT16_T
17720 #define _INT16_T
17721 #ifndef __int16_t_defined
17722 #define __int16_t_defined
17723 #ifndef int16_t
17724 typedef $acx_cv_type_int16_t int16_t;
17725 #endif
17726 #endif
17727 #endif
17728
17729 #ifndef _INT32_T
17730 #define _INT32_T
17731 #ifndef __int32_t_defined
17732 #define __int32_t_defined
17733 #ifndef int32_t
17734 typedef $acx_cv_type_int32_t int32_t;
17735 #endif
17736 #endif
17737 #endif
17738 EOF
17739 elif test "$ac_cv_type_u_int32_t" = yes; then
17740 sed 's/^ *//' >> tmp-stdint.h <<EOF
17741
17742 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
17743 #ifndef _INT8_T
17744 #define _INT8_T
17745 #endif
17746 #ifndef _INT16_T
17747 #define _INT16_T
17748 #endif
17749 #ifndef _INT32_T
17750 #define _INT32_T
17751 #endif
17752
17753 #ifndef _UINT8_T
17754 #define _UINT8_T
17755 #ifndef __uint8_t_defined
17756 #define __uint8_t_defined
17757 #ifndef uint8_t
17758 typedef u_int8_t uint8_t;
17759 #endif
17760 #endif
17761 #endif
17762
17763 #ifndef _UINT16_T
17764 #define _UINT16_T
17765 #ifndef __uint16_t_defined
17766 #define __uint16_t_defined
17767 #ifndef uint16_t
17768 typedef u_int16_t uint16_t;
17769 #endif
17770 #endif
17771 #endif
17772
17773 #ifndef _UINT32_T
17774 #define _UINT32_T
17775 #ifndef __uint32_t_defined
17776 #define __uint32_t_defined
17777 #ifndef uint32_t
17778 typedef u_int32_t uint32_t;
17779 #endif
17780 #endif
17781 #endif
17782 EOF
17783 else
17784 sed 's/^ *//' >> tmp-stdint.h <<EOF
17785
17786 /* Some systems have guard macros to prevent redefinitions, define them. */
17787 #ifndef _INT8_T
17788 #define _INT8_T
17789 #endif
17790 #ifndef _INT16_T
17791 #define _INT16_T
17792 #endif
17793 #ifndef _INT32_T
17794 #define _INT32_T
17795 #endif
17796 #ifndef _UINT8_T
17797 #define _UINT8_T
17798 #endif
17799 #ifndef _UINT16_T
17800 #define _UINT16_T
17801 #endif
17802 #ifndef _UINT32_T
17803 #define _UINT32_T
17804 #endif
17805 EOF
17806 fi
17807
17808 # ------------- done basic int types, emit int64_t types ------------
17809 if test "$ac_cv_type_uint64_t" = yes; then
17810 sed 's/^ *//' >> tmp-stdint.h <<EOF
17811
17812 /* system headers have good uint64_t and int64_t */
17813 #ifndef _INT64_T
17814 #define _INT64_T
17815 #endif
17816 #ifndef _UINT64_T
17817 #define _UINT64_T
17818 #endif
17819 EOF
17820 elif test "$ac_cv_type_u_int64_t" = yes; then
17821 sed 's/^ *//' >> tmp-stdint.h <<EOF
17822
17823 /* system headers have an u_int64_t (and int64_t) */
17824 #ifndef _INT64_T
17825 #define _INT64_T
17826 #endif
17827 #ifndef _UINT64_T
17828 #define _UINT64_T
17829 #ifndef __uint64_t_defined
17830 #define __uint64_t_defined
17831 #ifndef uint64_t
17832 typedef u_int64_t uint64_t;
17833 #endif
17834 #endif
17835 #endif
17836 EOF
17837 elif test -n "$acx_cv_type_int64_t"; then
17838 sed 's/^ *//' >> tmp-stdint.h <<EOF
17839
17840 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
17841 #ifndef _INT64_T
17842 #define _INT64_T
17843 #ifndef int64_t
17844 typedef $acx_cv_type_int64_t int64_t;
17845 #endif
17846 #endif
17847 #ifndef _UINT64_T
17848 #define _UINT64_T
17849 #ifndef __uint64_t_defined
17850 #define __uint64_t_defined
17851 #ifndef uint64_t
17852 typedef unsigned $acx_cv_type_int64_t uint64_t;
17853 #endif
17854 #endif
17855 #endif
17856 EOF
17857 else
17858 sed 's/^ *//' >> tmp-stdint.h <<EOF
17859
17860 /* some common heuristics for int64_t, using compiler-specific tests */
17861 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
17862 #ifndef _INT64_T
17863 #define _INT64_T
17864 #ifndef __int64_t_defined
17865 #ifndef int64_t
17866 typedef long long int64_t;
17867 #endif
17868 #endif
17869 #endif
17870 #ifndef _UINT64_T
17871 #define _UINT64_T
17872 #ifndef uint64_t
17873 typedef unsigned long long uint64_t;
17874 #endif
17875 #endif
17876
17877 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
17878 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
17879 does not implement __extension__. But that compiler doesn't define
17880 __GNUC_MINOR__. */
17881 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
17882 # define __extension__
17883 # endif
17884
17885 # ifndef _INT64_T
17886 # define _INT64_T
17887 # ifndef int64_t
17888 __extension__ typedef long long int64_t;
17889 # endif
17890 # endif
17891 # ifndef _UINT64_T
17892 # define _UINT64_T
17893 # ifndef uint64_t
17894 __extension__ typedef unsigned long long uint64_t;
17895 # endif
17896 # endif
17897
17898 #elif !defined __STRICT_ANSI__
17899 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
17900
17901 # ifndef _INT64_T
17902 # define _INT64_T
17903 # ifndef int64_t
17904 typedef __int64 int64_t;
17905 # endif
17906 # endif
17907 # ifndef _UINT64_T
17908 # define _UINT64_T
17909 # ifndef uint64_t
17910 typedef unsigned __int64 uint64_t;
17911 # endif
17912 # endif
17913 # endif /* compiler */
17914
17915 #endif /* ANSI version */
17916 EOF
17917 fi
17918
17919 # ------------- done int64_t types, emit intptr types ------------
17920 if test "$ac_cv_type_uintptr_t" != yes; then
17921 sed 's/^ *//' >> tmp-stdint.h <<EOF
17922
17923 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
17924 #ifndef __uintptr_t_defined
17925 #ifndef uintptr_t
17926 typedef u$acx_cv_type_intptr_t uintptr_t;
17927 #endif
17928 #endif
17929 #ifndef __intptr_t_defined
17930 #ifndef intptr_t
17931 typedef $acx_cv_type_intptr_t intptr_t;
17932 #endif
17933 #endif
17934 EOF
17935 fi
17936
17937 # ------------- done intptr types, emit int_least types ------------
17938 if test "$ac_cv_type_int_least32_t" != yes; then
17939 sed 's/^ *//' >> tmp-stdint.h <<EOF
17940
17941 /* Define int_least types */
17942 typedef int8_t int_least8_t;
17943 typedef int16_t int_least16_t;
17944 typedef int32_t int_least32_t;
17945 #ifdef _INT64_T
17946 typedef int64_t int_least64_t;
17947 #endif
17948
17949 typedef uint8_t uint_least8_t;
17950 typedef uint16_t uint_least16_t;
17951 typedef uint32_t uint_least32_t;
17952 #ifdef _UINT64_T
17953 typedef uint64_t uint_least64_t;
17954 #endif
17955 EOF
17956 fi
17957
17958 # ------------- done intptr types, emit int_fast types ------------
17959 if test "$ac_cv_type_int_fast32_t" != yes; then
17960 sed 's/^ *//' >> tmp-stdint.h <<EOF
17961
17962 /* Define int_fast types. short is often slow */
17963 typedef int8_t int_fast8_t;
17964 typedef int int_fast16_t;
17965 typedef int32_t int_fast32_t;
17966 #ifdef _INT64_T
17967 typedef int64_t int_fast64_t;
17968 #endif
17969
17970 typedef uint8_t uint_fast8_t;
17971 typedef unsigned int uint_fast16_t;
17972 typedef uint32_t uint_fast32_t;
17973 #ifdef _UINT64_T
17974 typedef uint64_t uint_fast64_t;
17975 #endif
17976 EOF
17977 fi
17978
17979 if test "$ac_cv_type_uintmax_t" != yes; then
17980 sed 's/^ *//' >> tmp-stdint.h <<EOF
17981
17982 /* Define intmax based on what we found */
17983 #ifndef intmax_t
17984 #ifdef _INT64_T
17985 typedef int64_t intmax_t;
17986 #else
17987 typedef long intmax_t;
17988 #endif
17989 #endif
17990 #ifndef uintmax_t
17991 #ifdef _UINT64_T
17992 typedef uint64_t uintmax_t;
17993 #else
17994 typedef unsigned long uintmax_t;
17995 #endif
17996 #endif
17997 EOF
17998 fi
17999
18000 sed 's/^ *//' >> tmp-stdint.h <<EOF
18001
18002 #endif /* GCC_GENERATED_STDINT_H */
18003 EOF
18004
18005 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
18006 rm -f tmp-stdint.h
18007 else
18008 mv -f tmp-stdint.h gstdint.h
18009 fi
18010
18011 ;;
18012
18013 esac
18014 done # for ac_tag
18015
18016
18017 as_fn_exit 0
18018 _ACEOF
18019 ac_clean_files=$ac_clean_files_save
18020
18021 test $ac_write_fail = 0 ||
18022 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18023
18024
18025 # configure is writing to config.log, and then calls config.status.
18026 # config.status does its own redirection, appending to config.log.
18027 # Unfortunately, on DOS this fails, as config.log is still kept open
18028 # by configure, so config.status won't be able to write to it; its
18029 # output is simply discarded. So we exec the FD to /dev/null,
18030 # effectively closing config.log, so it can be properly (re)opened and
18031 # appended to by config.status. When coming back to configure, we
18032 # need to make the FD available again.
18033 if test "$no_create" != yes; then
18034 ac_cs_success=:
18035 ac_config_status_args=
18036 test "$silent" = yes &&
18037 ac_config_status_args="$ac_config_status_args --quiet"
18038 exec 5>/dev/null
18039 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18040 exec 5>>config.log
18041 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18042 # would make configure fail if this is the last instruction.
18043 $ac_cs_success || as_fn_exit $?
18044 fi
18045 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18047 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18048 fi
18049