Require target lra in gcc.c-torture/compile/asmgoto-6.c
[official-gcc.git] / libitm / configure
blob74a8f4affd5a2f9e09018b43b05a3e8cb84f3b55
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU TM Runtime Library 1.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='GNU TM Runtime Library'
589 PACKAGE_TARNAME='libitm'
590 PACKAGE_VERSION='1.0'
591 PACKAGE_STRING='GNU TM Runtime Library 1.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL='http://www.gnu.org/software/libitm/'
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 get_gcc_base_ver
636 ARCH_FUTEX_FALSE
637 ARCH_FUTEX_TRUE
638 ARCH_X86_AVX_FALSE
639 ARCH_X86_AVX_TRUE
640 ARCH_X86_FALSE
641 ARCH_X86_TRUE
642 ARCH_ARM_FALSE
643 ARCH_ARM_TRUE
644 link_itm
645 XLDFLAGS
646 XCFLAGS
647 config_path
648 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
649 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
650 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
651 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
652 LIBITM_BUILD_VERSIONED_SHLIB_FALSE
653 LIBITM_BUILD_VERSIONED_SHLIB_TRUE
654 OPT_LDFLAGS
655 SECTION_LDFLAGS
656 HAVE_HWCAP_FALSE
657 HAVE_HWCAP_TRUE
658 HWCAP_LDFLAGS
659 libtool_VERSION
660 MAINT
661 MAINTAINER_MODE_FALSE
662 MAINTAINER_MODE_TRUE
663 enable_static
664 enable_shared
665 CXXCPP
667 OTOOL64
668 OTOOL
669 LIPO
670 NMEDIT
671 DSYMUTIL
672 OBJDUMP
673 LN_S
674 ac_ct_DUMPBIN
675 DUMPBIN
677 FGREP
678 EGREP
679 GREP
681 LIBTOOL
682 BUILD_INFO_FALSE
683 BUILD_INFO_TRUE
684 RANLIB
687 am__fastdepCCAS_FALSE
688 am__fastdepCCAS_TRUE
689 CCASDEPMODE
690 CCASFLAGS
691 CCAS
692 am__fastdepCXX_FALSE
693 am__fastdepCXX_TRUE
694 CXXDEPMODE
695 ac_ct_CXX
696 CXXFLAGS
698 am__fastdepCC_FALSE
699 am__fastdepCC_TRUE
700 CCDEPMODE
701 am__nodep
702 AMDEPBACKSLASH
703 AMDEP_FALSE
704 AMDEP_TRUE
705 am__quote
706 am__include
707 DEPDIR
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
715 toolexeclibdir
716 toolexecdir
717 multi_basedir
718 AM_BACKSLASH
719 AM_DEFAULT_VERBOSITY
720 AM_DEFAULT_V
721 AM_V
722 am__untar
723 am__tar
724 AMTAR
725 am__leading_dot
726 SET_MAKE
728 mkdir_p
729 MKDIR_P
730 INSTALL_STRIP_PROGRAM
731 STRIP
732 install_sh
733 MAKEINFO
734 AUTOHEADER
735 AUTOMAKE
736 AUTOCONF
737 ACLOCAL
738 VERSION
739 PACKAGE
740 CYGPATH_W
741 am__isrc
742 INSTALL_DATA
743 INSTALL_SCRIPT
744 INSTALL_PROGRAM
745 target_os
746 target_vendor
747 target_cpu
748 target
749 host_os
750 host_vendor
751 host_cpu
752 host
753 build_os
754 build_vendor
755 build_cpu
756 build
757 GENINSRC_FALSE
758 GENINSRC_TRUE
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 localstatedir
779 sharedstatedir
780 sysconfdir
781 datadir
782 datarootdir
783 libexecdir
784 sbindir
785 bindir
786 program_transform_name
787 prefix
788 exec_prefix
789 PACKAGE_URL
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files=''
798 ac_user_opts='
799 enable_option_checking
800 enable_version_specific_runtime_libs
801 enable_generated_files_in_srcdir
802 enable_silent_rules
803 enable_multilib
804 with_toolexeclibdir
805 enable_dependency_tracking
806 enable_shared
807 enable_static
808 with_pic
809 enable_fast_install
810 with_gnu_ld
811 enable_libtool_lock
812 enable_maintainer_mode
813 enable_linux_futex
814 enable_tls
815 enable_symvers
816 enable_werror
817 enable_cet
818 with_gcc_major_version_only
820 ac_precious_vars='build_alias
821 host_alias
822 target_alias
824 CPPFLAGS
825 CXXCPP'
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 ac_unrecognized_opts=
832 ac_unrecognized_sep=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
876 ac_prev=
877 ac_dashdash=
878 for ac_option
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
883 ac_prev=
884 continue
887 case $ac_option in
888 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 *=) ac_optarg= ;;
890 *) ac_optarg=yes ;;
891 esac
893 # Accept the important Cygnus configure options, so we can diagnose typos.
895 case $ac_dashdash$ac_option in
897 ac_dashdash=yes ;;
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 ac_prev=bindir ;;
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 bindir=$ac_optarg ;;
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
916 --config-cache | -C)
917 cache_file=config.cache ;;
919 -datadir | --datadir | --datadi | --datad)
920 ac_prev=datadir ;;
921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
922 datadir=$ac_optarg ;;
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
931 -disable-* | --disable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error $? "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
940 "enable_$ac_useropt"
941 "*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=no ;;
947 -docdir | --docdir | --docdi | --doc | --do)
948 ac_prev=docdir ;;
949 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 docdir=$ac_optarg ;;
952 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953 ac_prev=dvidir ;;
954 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 dvidir=$ac_optarg ;;
957 -enable-* | --enable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error $? "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
966 "enable_$ac_useropt"
967 "*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=\$ac_optarg ;;
973 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975 | --exec | --exe | --ex)
976 ac_prev=exec_prefix ;;
977 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979 | --exec=* | --exe=* | --ex=*)
980 exec_prefix=$ac_optarg ;;
982 -gas | --gas | --ga | --g)
983 # Obsolete; use --with-gas.
984 with_gas=yes ;;
986 -help | --help | --hel | --he | -h)
987 ac_init_help=long ;;
988 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989 ac_init_help=recursive ;;
990 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991 ac_init_help=short ;;
993 -host | --host | --hos | --ho)
994 ac_prev=host_alias ;;
995 -host=* | --host=* | --hos=* | --ho=*)
996 host_alias=$ac_optarg ;;
998 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999 ac_prev=htmldir ;;
1000 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001 | --ht=*)
1002 htmldir=$ac_optarg ;;
1004 -includedir | --includedir | --includedi | --included | --include \
1005 | --includ | --inclu | --incl | --inc)
1006 ac_prev=includedir ;;
1007 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008 | --includ=* | --inclu=* | --incl=* | --inc=*)
1009 includedir=$ac_optarg ;;
1011 -infodir | --infodir | --infodi | --infod | --info | --inf)
1012 ac_prev=infodir ;;
1013 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014 infodir=$ac_optarg ;;
1016 -libdir | --libdir | --libdi | --libd)
1017 ac_prev=libdir ;;
1018 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019 libdir=$ac_optarg ;;
1021 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022 | --libexe | --libex | --libe)
1023 ac_prev=libexecdir ;;
1024 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025 | --libexe=* | --libex=* | --libe=*)
1026 libexecdir=$ac_optarg ;;
1028 -localedir | --localedir | --localedi | --localed | --locale)
1029 ac_prev=localedir ;;
1030 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031 localedir=$ac_optarg ;;
1033 -localstatedir | --localstatedir | --localstatedi | --localstated \
1034 | --localstate | --localstat | --localsta | --localst | --locals)
1035 ac_prev=localstatedir ;;
1036 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038 localstatedir=$ac_optarg ;;
1040 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041 ac_prev=mandir ;;
1042 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043 mandir=$ac_optarg ;;
1045 -nfp | --nfp | --nf)
1046 # Obsolete; use --without-fp.
1047 with_fp=no ;;
1049 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050 | --no-cr | --no-c | -n)
1051 no_create=yes ;;
1053 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055 no_recursion=yes ;;
1057 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059 | --oldin | --oldi | --old | --ol | --o)
1060 ac_prev=oldincludedir ;;
1061 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064 oldincludedir=$ac_optarg ;;
1066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067 ac_prev=prefix ;;
1068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069 prefix=$ac_optarg ;;
1071 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072 | --program-pre | --program-pr | --program-p)
1073 ac_prev=program_prefix ;;
1074 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076 program_prefix=$ac_optarg ;;
1078 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079 | --program-suf | --program-su | --program-s)
1080 ac_prev=program_suffix ;;
1081 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083 program_suffix=$ac_optarg ;;
1085 -program-transform-name | --program-transform-name \
1086 | --program-transform-nam | --program-transform-na \
1087 | --program-transform-n | --program-transform- \
1088 | --program-transform | --program-transfor \
1089 | --program-transfo | --program-transf \
1090 | --program-trans | --program-tran \
1091 | --progr-tra | --program-tr | --program-t)
1092 ac_prev=program_transform_name ;;
1093 -program-transform-name=* | --program-transform-name=* \
1094 | --program-transform-nam=* | --program-transform-na=* \
1095 | --program-transform-n=* | --program-transform-=* \
1096 | --program-transform=* | --program-transfor=* \
1097 | --program-transfo=* | --program-transf=* \
1098 | --program-trans=* | --program-tran=* \
1099 | --progr-tra=* | --program-tr=* | --program-t=*)
1100 program_transform_name=$ac_optarg ;;
1102 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103 ac_prev=pdfdir ;;
1104 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105 pdfdir=$ac_optarg ;;
1107 -psdir | --psdir | --psdi | --psd | --ps)
1108 ac_prev=psdir ;;
1109 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110 psdir=$ac_optarg ;;
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1114 silent=yes ;;
1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117 ac_prev=sbindir ;;
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119 | --sbi=* | --sb=*)
1120 sbindir=$ac_optarg ;;
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1125 | --sha | --sh)
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130 | --sha=* | --sh=*)
1131 sharedstatedir=$ac_optarg ;;
1133 -site | --site | --sit)
1134 ac_prev=site ;;
1135 -site=* | --site=* | --sit=*)
1136 site=$ac_optarg ;;
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139 ac_prev=srcdir ;;
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141 srcdir=$ac_optarg ;;
1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148 sysconfdir=$ac_optarg ;;
1150 -target | --target | --targe | --targ | --tar | --ta | --t)
1151 ac_prev=target_alias ;;
1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153 target_alias=$ac_optarg ;;
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156 verbose=yes ;;
1158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
1161 -with-* | --with-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=\$ac_optarg ;;
1177 -without-* | --without-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=no ;;
1193 --x)
1194 # Obsolete; use --with-x.
1195 with_x=yes ;;
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202 x_includes=$ac_optarg ;;
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209 x_libraries=$ac_optarg ;;
1211 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1212 Try \`$0 --help' for more information"
1215 *=*)
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 case $ac_envvar in #(
1219 '' | [0-9]* | *[!_$as_cr_alnum]* )
1220 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1221 esac
1222 eval $ac_envvar=\$ac_optarg
1223 export $ac_envvar ;;
1226 # FIXME: should be removed in autoconf 3.0.
1227 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1233 esac
1234 done
1236 if test -n "$ac_prev"; then
1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238 as_fn_error $? "missing argument to $ac_option"
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1243 no) ;;
1244 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 esac
1249 # Check all directory arguments for consistency.
1250 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251 datadir sysconfdir sharedstatedir localstatedir includedir \
1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253 libdir localedir mandir
1255 eval ac_val=\$$ac_var
1256 # Remove trailing slashes.
1257 case $ac_val in
1258 */ )
1259 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260 eval $ac_var=\$ac_val;;
1261 esac
1262 # Be sure to have absolute directory names.
1263 case $ac_val in
1264 [\\/$]* | ?:[\\/]* ) continue;;
1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266 esac
1267 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1268 done
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 elif test "x$build_alias" != "x$host_alias"; then
1282 cross_compiling=yes
1286 ac_tool_prefix=
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289 test "$silent" = yes && exec 6>/dev/null
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295 as_fn_error $? "working directory cannot be determined"
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 as_fn_error $? "pwd does not report name of working directory"
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 s//\1/
1314 /^X\(\/\/\)[^/].*/{
1315 s//\1/
1318 /^X\(\/\/\)$/{
1319 s//\1/
1322 /^X\(\/\).*/{
1323 s//\1/
1326 s/.*/./; q'`
1327 srcdir=$ac_confdir
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 srcdir=..
1331 else
1332 ac_srcdir_defaulted=no
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1338 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339 ac_abs_confdir=`(
1340 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1341 pwd)`
1342 # When building in place, set srcdir=.
1343 if test "$ac_abs_confdir" = "$ac_pwd"; then
1344 srcdir=.
1346 # Remove unnecessary trailing slashes from srcdir.
1347 # Double slashes in file names in object file debugging info
1348 # mess up M-x gdb in Emacs.
1349 case $srcdir in
1350 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351 esac
1352 for ac_var in $ac_precious_vars; do
1353 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_env_${ac_var}_value=\$${ac_var}
1355 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 done
1360 # Report the --help message.
1362 if test "$ac_init_help" = "long"; then
1363 # Omit some internal or obsolete options to make the list less imposing.
1364 # This message is too long to be a string in the A/UX 3.1 sh.
1365 cat <<_ACEOF
1366 \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1368 Usage: $0 [OPTION]... [VAR=VALUE]...
1370 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371 VAR=VALUE. See below for descriptions of some of the useful variables.
1373 Defaults for the options are specified in brackets.
1375 Configuration:
1376 -h, --help display this help and exit
1377 --help=short display options specific to this package
1378 --help=recursive display the short help of all the included packages
1379 -V, --version display version information and exit
1380 -q, --quiet, --silent do not print \`checking ...' messages
1381 --cache-file=FILE cache test results in FILE [disabled]
1382 -C, --config-cache alias for \`--cache-file=config.cache'
1383 -n, --no-create do not create output files
1384 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1386 Installation directories:
1387 --prefix=PREFIX install architecture-independent files in PREFIX
1388 [$ac_default_prefix]
1389 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1390 [PREFIX]
1392 By default, \`make install' will install all the files in
1393 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1394 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1395 for instance \`--prefix=\$HOME'.
1397 For better control, use the options below.
1399 Fine tuning of the installation directories:
1400 --bindir=DIR user executables [EPREFIX/bin]
1401 --sbindir=DIR system admin executables [EPREFIX/sbin]
1402 --libexecdir=DIR program executables [EPREFIX/libexec]
1403 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1404 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1405 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1406 --libdir=DIR object code libraries [EPREFIX/lib]
1407 --includedir=DIR C header files [PREFIX/include]
1408 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1409 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1410 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1411 --infodir=DIR info documentation [DATAROOTDIR/info]
1412 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1413 --mandir=DIR man documentation [DATAROOTDIR/man]
1414 --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
1415 --htmldir=DIR html documentation [DOCDIR]
1416 --dvidir=DIR dvi documentation [DOCDIR]
1417 --pdfdir=DIR pdf documentation [DOCDIR]
1418 --psdir=DIR ps documentation [DOCDIR]
1419 _ACEOF
1421 cat <<\_ACEOF
1423 Program names:
1424 --program-prefix=PREFIX prepend PREFIX to installed program names
1425 --program-suffix=SUFFIX append SUFFIX to installed program names
1426 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1428 System types:
1429 --build=BUILD configure for building on BUILD [guessed]
1430 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1431 --target=TARGET configure for building compilers for TARGET [HOST]
1432 _ACEOF
1435 if test -n "$ac_init_help"; then
1436 case $ac_init_help in
1437 short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1438 esac
1439 cat <<\_ACEOF
1441 Optional Features:
1442 --disable-option-checking ignore unrecognized --enable/--with options
1443 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1444 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1445 --enable-version-specific-runtime-libs
1446 Specify that runtime libraries should be installed
1447 in a compiler-specific directory [default=no]
1448 --enable-generated-files-in-srcdir
1449 put copies of generated files in source dir intended
1450 for creating source tarballs for users without
1451 texinfo bison or flex. [default=no]
1452 --enable-silent-rules less verbose build output (undo: "make V=1")
1453 --disable-silent-rules verbose build output (undo: "make V=0")
1454 --enable-multilib build many library versions (default)
1455 --enable-dependency-tracking
1456 do not reject slow dependency extractors
1457 --disable-dependency-tracking
1458 speeds up one-time build
1459 --enable-shared[=PKGS] build shared libraries [default=yes]
1460 --enable-static[=PKGS] build static libraries [default=yes]
1461 --enable-fast-install[=PKGS]
1462 optimize for fast installation [default=yes]
1463 --disable-libtool-lock avoid locking (might break parallel builds)
1464 --enable-maintainer-mode
1465 enable make rules and dependencies not useful (and
1466 sometimes confusing) to the casual installer
1467 --enable-linux-futex use the Linux futex system call [default=default]
1468 --enable-tls Use thread-local storage [default=yes]
1469 --enable-symvers=STYLE enables symbol versioning of the shared library
1470 [default=yes]
1471 --disable-werror disable building with -Werror
1472 --enable-cet enable Intel CET in target libraries [default=auto]
1474 Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-toolexeclibdir=DIR
1478 install libraries built with a cross compiler within
1480 --with-pic try to use only PIC/non-PIC objects [default=use
1481 both]
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 --with-gcc-major-version-only
1484 use only GCC major number in filesystem paths
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CXX C++ compiler command
1495 CXXFLAGS C++ compiler flags
1496 CCAS assembler compiler command (defaults to CC)
1497 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1498 CPP C preprocessor
1499 CXXCPP C++ preprocessor
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1504 Report bugs to the package provider.
1505 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1506 General help using GNU software: <http://www.gnu.org/gethelp/>.
1507 _ACEOF
1508 ac_status=$?
1511 if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514 test -d "$ac_dir" ||
1515 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1516 continue
1517 ac_builddir=.
1519 case "$ac_dir" in
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 esac ;;
1529 esac
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1535 case $srcdir in
1536 .) # We are building in place.
1537 ac_srcdir=.
1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
1541 ac_srcdir=$srcdir$ac_dir_suffix;
1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1544 *) # Relative name.
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 esac
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for guested configure.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure" --help=recursive
1559 else
1560 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561 fi || ac_status=$?
1562 cd "$ac_pwd" || { ac_status=$?; break; }
1563 done
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1568 cat <<\_ACEOF
1569 GNU TM Runtime Library configure 1.0
1570 generated by GNU Autoconf 2.69
1572 Copyright (C) 2012 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1575 _ACEOF
1576 exit
1579 ## ------------------------ ##
1580 ## Autoconf initialization. ##
1581 ## ------------------------ ##
1583 # ac_fn_c_try_compile LINENO
1584 # --------------------------
1585 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_compile ()
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 rm -f conftest.$ac_objext
1590 if { { ac_try="$ac_compile"
1591 case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_compile") 2>conftest.err
1598 ac_status=$?
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && {
1606 test -z "$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1608 } && test -s conftest.$ac_objext; then :
1609 ac_retval=0
1610 else
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1614 ac_retval=1
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1619 } # ac_fn_c_try_compile
1621 # ac_fn_cxx_try_compile LINENO
1622 # ----------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_cxx_try_compile ()
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext
1628 if { { ac_try="$ac_compile"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_cxx_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.$ac_objext; then :
1647 ac_retval=0
1648 else
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1652 ac_retval=1
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1657 } # ac_fn_cxx_try_compile
1659 # ac_fn_c_try_link LINENO
1660 # -----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_link ()
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 rm -f conftest.$ac_objext conftest$ac_exeext
1666 if { { ac_try="$ac_link"
1667 case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>conftest.err
1674 ac_status=$?
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest$ac_exeext && {
1685 test "$cross_compiling" = yes ||
1686 test -x conftest$ac_exeext
1687 }; then :
1688 ac_retval=0
1689 else
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1693 ac_retval=1
1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697 # interfere with the next link command; also delete a directory that is
1698 # left behind by Apple's compiler. We do this before executing the actions.
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1703 } # ac_fn_c_try_link
1705 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1706 # -------------------------------------------------------
1707 # Tests whether HEADER exists and can be compiled using the include files in
1708 # INCLUDES, setting the cache variable VAR accordingly.
1709 ac_fn_c_check_header_compile ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715 $as_echo_n "(cached) " >&6
1716 else
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1720 #include <$2>
1721 _ACEOF
1722 if ac_fn_c_try_compile "$LINENO"; then :
1723 eval "$3=yes"
1724 else
1725 eval "$3=no"
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729 eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 } # ac_fn_c_check_header_compile
1736 # ac_fn_c_try_cpp LINENO
1737 # ----------------------
1738 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1739 ac_fn_c_try_cpp ()
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_cpp conftest.$ac_ext"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } > conftest.i && {
1758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 }; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1766 ac_retval=1
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1771 } # ac_fn_c_try_cpp
1773 # ac_fn_c_try_run LINENO
1774 # ----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776 # that executables *can* be run.
1777 ac_fn_c_try_run ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 if { { ac_try="$ac_link"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>&5
1788 ac_status=$?
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791 { { case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_try") 2>&5
1798 ac_status=$?
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; }; }; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: program exited with status $ac_status" >&5
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1807 ac_retval=$ac_status
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1813 } # ac_fn_c_try_run
1815 # ac_fn_c_check_func LINENO FUNC VAR
1816 # ----------------------------------
1817 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1818 ac_fn_c_check_func ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \${$3+:} false; then :
1824 $as_echo_n "(cached) " >&6
1825 else
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1830 #define $2 innocuous_$2
1832 /* System header to define __stub macros and hopefully few prototypes,
1833 which can conflict with char $2 (); below.
1834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1835 <limits.h> exists even on freestanding compilers. */
1837 #ifdef __STDC__
1838 # include <limits.h>
1839 #else
1840 # include <assert.h>
1841 #endif
1843 #undef $2
1845 /* Override any GCC internal prototype to avoid an error.
1846 Use char because int might match the return type of a GCC
1847 builtin and then its argument prototype would still apply. */
1848 #ifdef __cplusplus
1849 extern "C"
1850 #endif
1851 char $2 ();
1852 /* The GNU C library defines this for functions which it implements
1853 to always fail with ENOSYS. Some functions are actually named
1854 something starting with __ and the normal name is an alias. */
1855 #if defined __stub_$2 || defined __stub___$2
1856 choke me
1857 #endif
1860 main ()
1862 return $2 ();
1864 return 0;
1866 _ACEOF
1867 if ac_fn_c_try_link "$LINENO"; then :
1868 eval "$3=yes"
1869 else
1870 eval "$3=no"
1872 rm -f core conftest.err conftest.$ac_objext \
1873 conftest$ac_exeext conftest.$ac_ext
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 } # ac_fn_c_check_func
1882 # ac_fn_cxx_try_cpp LINENO
1883 # ------------------------
1884 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1885 ac_fn_cxx_try_cpp ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if { { ac_try="$ac_cpp conftest.$ac_ext"
1889 case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1896 ac_status=$?
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } > conftest.i && {
1904 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1905 test ! -s conftest.err
1906 }; then :
1907 ac_retval=0
1908 else
1909 $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1912 ac_retval=1
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1917 } # ac_fn_cxx_try_cpp
1919 # ac_fn_cxx_try_link LINENO
1920 # -------------------------
1921 # Try to link conftest.$ac_ext, and return whether this succeeded.
1922 ac_fn_cxx_try_link ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 rm -f conftest.$ac_objext conftest$ac_exeext
1926 if { { ac_try="$ac_link"
1927 case "(($ac_try" in
1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929 *) ac_try_echo=$ac_try;;
1930 esac
1931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932 $as_echo "$ac_try_echo"; } >&5
1933 (eval "$ac_link") 2>conftest.err
1934 ac_status=$?
1935 if test -s conftest.err; then
1936 grep -v '^ *+' conftest.err >conftest.er1
1937 cat conftest.er1 >&5
1938 mv -f conftest.er1 conftest.err
1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; } && {
1942 test -z "$ac_cxx_werror_flag" ||
1943 test ! -s conftest.err
1944 } && test -s conftest$ac_exeext && {
1945 test "$cross_compiling" = yes ||
1946 test -x conftest$ac_exeext
1947 }; then :
1948 ac_retval=0
1949 else
1950 $as_echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1953 ac_retval=1
1955 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1956 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1957 # interfere with the next link command; also delete a directory that is
1958 # left behind by Apple's compiler. We do this before executing the actions.
1959 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961 as_fn_set_status $ac_retval
1963 } # ac_fn_cxx_try_link
1965 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1966 # -------------------------------------------------------
1967 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1968 # the include files in INCLUDES and setting the cache variable VAR
1969 # accordingly.
1970 ac_fn_c_check_header_mongrel ()
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 if eval \${$3+:} false; then :
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval \${$3+:} false; then :
1977 $as_echo_n "(cached) " >&6
1979 eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 else
1983 # Is the header compilable?
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1985 $as_echo_n "checking $2 usability... " >&6; }
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1989 #include <$2>
1990 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992 ac_header_compiler=yes
1993 else
1994 ac_header_compiler=no
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1998 $as_echo "$ac_header_compiler" >&6; }
2000 # Is the header present?
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2002 $as_echo_n "checking $2 presence... " >&6; }
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2005 #include <$2>
2006 _ACEOF
2007 if ac_fn_c_try_cpp "$LINENO"; then :
2008 ac_header_preproc=yes
2009 else
2010 ac_header_preproc=no
2012 rm -f conftest.err conftest.i conftest.$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2014 $as_echo "$ac_header_preproc" >&6; }
2016 # So? What about this header?
2017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2018 yes:no: )
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2020 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024 no:yes:* )
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2026 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2028 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2030 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2032 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2034 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2036 esac
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038 $as_echo_n "checking for $2... " >&6; }
2039 if eval \${$3+:} false; then :
2040 $as_echo_n "(cached) " >&6
2041 else
2042 eval "$3=\$ac_header_compiler"
2044 eval ac_res=\$$3
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 } # ac_fn_c_check_header_mongrel
2052 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2053 # -------------------------------------------
2054 # Tests whether TYPE exists after having included INCLUDES, setting cache
2055 # variable VAR accordingly.
2056 ac_fn_c_check_type ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if eval \${$3+:} false; then :
2062 $as_echo_n "(cached) " >&6
2063 else
2064 eval "$3=no"
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2069 main ()
2071 if (sizeof ($2))
2072 return 0;
2074 return 0;
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2082 main ()
2084 if (sizeof (($2)))
2085 return 0;
2087 return 0;
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2092 else
2093 eval "$3=yes"
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 eval ac_res=\$$3
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 } # ac_fn_c_check_type
2106 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2107 # --------------------------------------------
2108 # Tries to find the compile-time value of EXPR in a program that includes
2109 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2110 # computed
2111 ac_fn_c_compute_int ()
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 if test "$cross_compiling" = yes; then
2115 # Depending upon the size, compute the lo and hi bounds.
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2120 main ()
2122 static int test_array [1 - 2 * !(($2) >= 0)];
2123 test_array [0] = 0;
2124 return test_array [0];
2127 return 0;
2129 _ACEOF
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131 ac_lo=0 ac_mid=0
2132 while :; do
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2137 main ()
2139 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2140 test_array [0] = 0;
2141 return test_array [0];
2144 return 0;
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_hi=$ac_mid; break
2149 else
2150 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2151 if test $ac_lo -le $ac_mid; then
2152 ac_lo= ac_hi=
2153 break
2155 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 done
2159 else
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2164 main ()
2166 static int test_array [1 - 2 * !(($2) < 0)];
2167 test_array [0] = 0;
2168 return test_array [0];
2171 return 0;
2173 _ACEOF
2174 if ac_fn_c_try_compile "$LINENO"; then :
2175 ac_hi=-1 ac_mid=-1
2176 while :; do
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2181 main ()
2183 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2184 test_array [0] = 0;
2185 return test_array [0];
2188 return 0;
2190 _ACEOF
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192 ac_lo=$ac_mid; break
2193 else
2194 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2195 if test $ac_mid -le $ac_hi; then
2196 ac_lo= ac_hi=
2197 break
2199 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 done
2203 else
2204 ac_lo= ac_hi=
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 # Binary search between lo and hi bounds.
2210 while test "x$ac_lo" != "x$ac_hi"; do
2211 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2216 main ()
2218 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2219 test_array [0] = 0;
2220 return test_array [0];
2223 return 0;
2225 _ACEOF
2226 if ac_fn_c_try_compile "$LINENO"; then :
2227 ac_hi=$ac_mid
2228 else
2229 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 done
2233 case $ac_lo in #((
2234 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2235 '') ac_retval=1 ;;
2236 esac
2237 else
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2241 static long int longval () { return $2; }
2242 static unsigned long int ulongval () { return $2; }
2243 #include <stdio.h>
2244 #include <stdlib.h>
2246 main ()
2249 FILE *f = fopen ("conftest.val", "w");
2250 if (! f)
2251 return 1;
2252 if (($2) < 0)
2254 long int i = longval ();
2255 if (i != ($2))
2256 return 1;
2257 fprintf (f, "%ld", i);
2259 else
2261 unsigned long int i = ulongval ();
2262 if (i != ($2))
2263 return 1;
2264 fprintf (f, "%lu", i);
2266 /* Do not output a trailing newline, as this causes \r\n confusion
2267 on some platforms. */
2268 return ferror (f) || fclose (f) != 0;
2271 return 0;
2273 _ACEOF
2274 if ac_fn_c_try_run "$LINENO"; then :
2275 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2276 else
2277 ac_retval=1
2279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2280 conftest.$ac_objext conftest.beam conftest.$ac_ext
2281 rm -f conftest.val
2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285 as_fn_set_status $ac_retval
2287 } # ac_fn_c_compute_int
2289 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2290 # ---------------------------------------------
2291 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2292 # accordingly.
2293 ac_fn_c_check_decl ()
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 as_decl_name=`echo $2|sed 's/ *(.*//'`
2297 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2299 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2300 if eval \${$3+:} false; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2307 main ()
2309 #ifndef $as_decl_name
2310 #ifdef __cplusplus
2311 (void) $as_decl_use;
2312 #else
2313 (void) $as_decl_name;
2314 #endif
2315 #endif
2318 return 0;
2320 _ACEOF
2321 if ac_fn_c_try_compile "$LINENO"; then :
2322 eval "$3=yes"
2323 else
2324 eval "$3=no"
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 eval ac_res=\$$3
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2330 $as_echo "$ac_res" >&6; }
2331 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2333 } # ac_fn_c_check_decl
2334 cat >config.log <<_ACEOF
2335 This file contains any messages produced by compilers while
2336 running configure, to aid debugging if configure makes a mistake.
2338 It was created by GNU TM Runtime Library $as_me 1.0, which was
2339 generated by GNU Autoconf 2.69. Invocation command line was
2341 $ $0 $@
2343 _ACEOF
2344 exec 5>>config.log
2346 cat <<_ASUNAME
2347 ## --------- ##
2348 ## Platform. ##
2349 ## --------- ##
2351 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2352 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2353 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2354 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2355 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2357 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2358 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2360 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2361 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2362 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2363 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2364 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2365 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2366 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2368 _ASUNAME
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2373 IFS=$as_save_IFS
2374 test -z "$as_dir" && as_dir=.
2375 $as_echo "PATH: $as_dir"
2376 done
2377 IFS=$as_save_IFS
2379 } >&5
2381 cat >&5 <<_ACEOF
2384 ## ----------- ##
2385 ## Core tests. ##
2386 ## ----------- ##
2388 _ACEOF
2391 # Keep a trace of the command line.
2392 # Strip out --no-create and --no-recursion so they do not pile up.
2393 # Strip out --silent because we don't want to record it for future runs.
2394 # Also quote any args containing shell meta-characters.
2395 # Make two passes to allow for proper duplicate-argument suppression.
2396 ac_configure_args=
2397 ac_configure_args0=
2398 ac_configure_args1=
2399 ac_must_keep_next=false
2400 for ac_pass in 1 2
2402 for ac_arg
2404 case $ac_arg in
2405 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2407 | -silent | --silent | --silen | --sile | --sil)
2408 continue ;;
2409 *\'*)
2410 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2411 esac
2412 case $ac_pass in
2413 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2415 as_fn_append ac_configure_args1 " '$ac_arg'"
2416 if test $ac_must_keep_next = true; then
2417 ac_must_keep_next=false # Got value, back to normal.
2418 else
2419 case $ac_arg in
2420 *=* | --config-cache | -C | -disable-* | --disable-* \
2421 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2422 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2423 | -with-* | --with-* | -without-* | --without-* | --x)
2424 case "$ac_configure_args0 " in
2425 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2426 esac
2428 -* ) ac_must_keep_next=true ;;
2429 esac
2431 as_fn_append ac_configure_args " '$ac_arg'"
2433 esac
2434 done
2435 done
2436 { ac_configure_args0=; unset ac_configure_args0;}
2437 { ac_configure_args1=; unset ac_configure_args1;}
2439 # When interrupted or exit'd, cleanup temporary files, and complete
2440 # config.log. We remove comments because anyway the quotes in there
2441 # would cause problems or look ugly.
2442 # WARNING: Use '\'' to represent an apostrophe within the trap.
2443 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2444 trap 'exit_status=$?
2445 # Save into config.log some information that might help in debugging.
2447 echo
2449 $as_echo "## ---------------- ##
2450 ## Cache variables. ##
2451 ## ---------------- ##"
2452 echo
2453 # The following way of writing the cache mishandles newlines in values,
2455 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2456 eval ac_val=\$$ac_var
2457 case $ac_val in #(
2458 *${as_nl}*)
2459 case $ac_var in #(
2460 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2461 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2462 esac
2463 case $ac_var in #(
2464 _ | IFS | as_nl) ;; #(
2465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2466 *) { eval $ac_var=; unset $ac_var;} ;;
2467 esac ;;
2468 esac
2469 done
2470 (set) 2>&1 |
2471 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2472 *${as_nl}ac_space=\ *)
2473 sed -n \
2474 "s/'\''/'\''\\\\'\'''\''/g;
2475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2476 ;; #(
2478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2480 esac |
2481 sort
2483 echo
2485 $as_echo "## ----------------- ##
2486 ## Output variables. ##
2487 ## ----------------- ##"
2488 echo
2489 for ac_var in $ac_subst_vars
2491 eval ac_val=\$$ac_var
2492 case $ac_val in
2493 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2494 esac
2495 $as_echo "$ac_var='\''$ac_val'\''"
2496 done | sort
2497 echo
2499 if test -n "$ac_subst_files"; then
2500 $as_echo "## ------------------- ##
2501 ## File substitutions. ##
2502 ## ------------------- ##"
2503 echo
2504 for ac_var in $ac_subst_files
2506 eval ac_val=\$$ac_var
2507 case $ac_val in
2508 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2509 esac
2510 $as_echo "$ac_var='\''$ac_val'\''"
2511 done | sort
2512 echo
2515 if test -s confdefs.h; then
2516 $as_echo "## ----------- ##
2517 ## confdefs.h. ##
2518 ## ----------- ##"
2519 echo
2520 cat confdefs.h
2521 echo
2523 test "$ac_signal" != 0 &&
2524 $as_echo "$as_me: caught signal $ac_signal"
2525 $as_echo "$as_me: exit $exit_status"
2526 } >&5
2527 rm -f core *.core core.conftest.* &&
2528 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2529 exit $exit_status
2531 for ac_signal in 1 2 13 15; do
2532 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2533 done
2534 ac_signal=0
2536 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2537 rm -f -r conftest* confdefs.h
2539 $as_echo "/* confdefs.h */" > confdefs.h
2541 # Predefined preprocessor variables.
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_NAME "$PACKAGE_NAME"
2545 _ACEOF
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2549 _ACEOF
2551 cat >>confdefs.h <<_ACEOF
2552 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2553 _ACEOF
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE_STRING "$PACKAGE_STRING"
2557 _ACEOF
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2561 _ACEOF
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_URL "$PACKAGE_URL"
2565 _ACEOF
2568 # Let the site file select an alternate cache file if it wants to.
2569 # Prefer an explicitly selected file to automatically selected ones.
2570 ac_site_file1=NONE
2571 ac_site_file2=NONE
2572 if test -n "$CONFIG_SITE"; then
2573 # We do not want a PATH search for config.site.
2574 case $CONFIG_SITE in #((
2575 -*) ac_site_file1=./$CONFIG_SITE;;
2576 */*) ac_site_file1=$CONFIG_SITE;;
2577 *) ac_site_file1=./$CONFIG_SITE;;
2578 esac
2579 elif test "x$prefix" != xNONE; then
2580 ac_site_file1=$prefix/share/config.site
2581 ac_site_file2=$prefix/etc/config.site
2582 else
2583 ac_site_file1=$ac_default_prefix/share/config.site
2584 ac_site_file2=$ac_default_prefix/etc/config.site
2586 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2588 test "x$ac_site_file" = xNONE && continue
2589 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2591 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2592 sed 's/^/| /' "$ac_site_file" >&5
2593 . "$ac_site_file" \
2594 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2596 as_fn_error $? "failed to load site script $ac_site_file
2597 See \`config.log' for more details" "$LINENO" 5; }
2599 done
2601 if test -r "$cache_file"; then
2602 # Some versions of bash will fail to source /dev/null (special files
2603 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2604 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2606 $as_echo "$as_me: loading cache $cache_file" >&6;}
2607 case $cache_file in
2608 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2609 *) . "./$cache_file";;
2610 esac
2612 else
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2614 $as_echo "$as_me: creating cache $cache_file" >&6;}
2615 >$cache_file
2618 # Check that the precious variables saved in the cache have kept the same
2619 # value.
2620 ac_cache_corrupted=false
2621 for ac_var in $ac_precious_vars; do
2622 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2623 eval ac_new_set=\$ac_env_${ac_var}_set
2624 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2625 eval ac_new_val=\$ac_env_${ac_var}_value
2626 case $ac_old_set,$ac_new_set in
2627 set,)
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2629 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2630 ac_cache_corrupted=: ;;
2631 ,set)
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2633 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2634 ac_cache_corrupted=: ;;
2635 ,);;
2637 if test "x$ac_old_val" != "x$ac_new_val"; then
2638 # differences in whitespace do not lead to failure.
2639 ac_old_val_w=`echo x $ac_old_val`
2640 ac_new_val_w=`echo x $ac_new_val`
2641 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2643 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2644 ac_cache_corrupted=:
2645 else
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2647 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2648 eval $ac_var=\$ac_old_val
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2651 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2653 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2654 fi;;
2655 esac
2656 # Pass precious variables to config.status.
2657 if test "$ac_new_set" = set; then
2658 case $ac_new_val in
2659 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2660 *) ac_arg=$ac_var=$ac_new_val ;;
2661 esac
2662 case " $ac_configure_args " in
2663 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2664 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2665 esac
2667 done
2668 if $ac_cache_corrupted; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2672 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2673 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2675 ## -------------------- ##
2676 ## Main body of script. ##
2677 ## -------------------- ##
2679 ac_ext=c
2680 ac_cpp='$CPP $CPPFLAGS'
2681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689 ac_config_headers="$ac_config_headers config.h"
2692 # -------
2693 # Options
2694 # -------
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2697 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2698 # Check whether --enable-version-specific-runtime-libs was given.
2699 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2700 enableval=$enable_version_specific_runtime_libs;
2701 case "$enableval" in
2702 yes|no) ;;
2703 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2704 esac
2706 else
2707 enable_version_specific_runtime_libs=no
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2712 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2714 # We would like our source tree to be readonly. However when releases or
2715 # pre-releases are generated, the flex/bison generated files as well as the
2716 # various formats of manuals need to be included along with the rest of the
2717 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2718 # just that.
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2720 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2721 # Check whether --enable-generated-files-in-srcdir was given.
2722 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2723 enableval=$enable_generated_files_in_srcdir;
2724 case "$enableval" in
2725 yes|no) ;;
2726 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2727 esac
2729 else
2730 enable_generated_files_in_srcdir=no
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2735 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2736 if test "$enable_generated_files_in_srcdir" = yes; then
2737 GENINSRC_TRUE=
2738 GENINSRC_FALSE='#'
2739 else
2740 GENINSRC_TRUE='#'
2741 GENINSRC_FALSE=
2746 # -------
2747 # -------
2749 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2751 # You will slowly go insane if you do not grok the following fact: when
2752 # building this library, the top-level /target/ becomes the library's /host/.
2754 # configure then causes --target to default to --host, exactly like any
2755 # other package using autoconf. Therefore, 'target' and 'host' will
2756 # always be the same. This makes sense both for native and cross compilers
2757 # just think about it for a little while. :-)
2759 # Also, if this library is being configured as part of a cross compiler, the
2760 # top-level configure script will pass the "real" host as $with_cross_host.
2762 # Do not delete or change the following two lines. For why, see
2763 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2764 ac_aux_dir=
2765 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2766 if test -f "$ac_dir/install-sh"; then
2767 ac_aux_dir=$ac_dir
2768 ac_install_sh="$ac_aux_dir/install-sh -c"
2769 break
2770 elif test -f "$ac_dir/install.sh"; then
2771 ac_aux_dir=$ac_dir
2772 ac_install_sh="$ac_aux_dir/install.sh -c"
2773 break
2774 elif test -f "$ac_dir/shtool"; then
2775 ac_aux_dir=$ac_dir
2776 ac_install_sh="$ac_aux_dir/shtool install -c"
2777 break
2779 done
2780 if test -z "$ac_aux_dir"; then
2781 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2784 # These three variables are undocumented and unsupported,
2785 # and are intended to be withdrawn in a future Autoconf release.
2786 # They can cause serious problems if a builder's source tree is in a directory
2787 # whose full name contains unusual characters.
2788 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2789 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2790 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2793 # Make sure we can run config.sub.
2794 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2795 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2798 $as_echo_n "checking build system type... " >&6; }
2799 if ${ac_cv_build+:} false; then :
2800 $as_echo_n "(cached) " >&6
2801 else
2802 ac_build_alias=$build_alias
2803 test "x$ac_build_alias" = x &&
2804 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2805 test "x$ac_build_alias" = x &&
2806 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2807 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2808 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2812 $as_echo "$ac_cv_build" >&6; }
2813 case $ac_cv_build in
2814 *-*-*) ;;
2815 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2816 esac
2817 build=$ac_cv_build
2818 ac_save_IFS=$IFS; IFS='-'
2819 set x $ac_cv_build
2820 shift
2821 build_cpu=$1
2822 build_vendor=$2
2823 shift; shift
2824 # Remember, the first character of IFS is used to create $*,
2825 # except with old shells:
2826 build_os=$*
2827 IFS=$ac_save_IFS
2828 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2832 $as_echo_n "checking host system type... " >&6; }
2833 if ${ac_cv_host+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 if test "x$host_alias" = x; then
2837 ac_cv_host=$ac_cv_build
2838 else
2839 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2840 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2845 $as_echo "$ac_cv_host" >&6; }
2846 case $ac_cv_host in
2847 *-*-*) ;;
2848 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2849 esac
2850 host=$ac_cv_host
2851 ac_save_IFS=$IFS; IFS='-'
2852 set x $ac_cv_host
2853 shift
2854 host_cpu=$1
2855 host_vendor=$2
2856 shift; shift
2857 # Remember, the first character of IFS is used to create $*,
2858 # except with old shells:
2859 host_os=$*
2860 IFS=$ac_save_IFS
2861 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2865 $as_echo_n "checking target system type... " >&6; }
2866 if ${ac_cv_target+:} false; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test "x$target_alias" = x; then
2870 ac_cv_target=$ac_cv_host
2871 else
2872 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2873 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2878 $as_echo "$ac_cv_target" >&6; }
2879 case $ac_cv_target in
2880 *-*-*) ;;
2881 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2882 esac
2883 target=$ac_cv_target
2884 ac_save_IFS=$IFS; IFS='-'
2885 set x $ac_cv_target
2886 shift
2887 target_cpu=$1
2888 target_vendor=$2
2889 shift; shift
2890 # Remember, the first character of IFS is used to create $*,
2891 # except with old shells:
2892 target_os=$*
2893 IFS=$ac_save_IFS
2894 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2897 # The aliases save the names the user supplied, while $host etc.
2898 # will get canonicalized.
2899 test -n "$target_alias" &&
2900 test "$program_prefix$program_suffix$program_transform_name" = \
2901 NONENONEs,x,x, &&
2902 program_prefix=${target_alias}-
2904 target_alias=${target_alias-$host_alias}
2906 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2907 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2908 # 1.9.0: minimum required version
2909 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2910 # of other PACKAGE_* variables will, however, and there's nothing
2911 # we can do about that; they come from AC_INIT).
2912 # no-dist: we don't want 'dist' and related rules.
2913 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2914 # file in the top srcdir, etc, etc), so stop complaining.
2915 # -Wall: turns on all automake warnings...
2916 # -Wno-portability: ...except this one, since GNU make is required.
2917 # -Wno-override: ... and this one, since we do want this in testsuite.
2918 am__api_version='1.15'
2920 # Find a good install program. We prefer a C program (faster),
2921 # so one script is as good as another. But avoid the broken or
2922 # incompatible versions:
2923 # SysV /etc/install, /usr/sbin/install
2924 # SunOS /usr/etc/install
2925 # IRIX /sbin/install
2926 # AIX /bin/install
2927 # AmigaOS /C/install, which installs bootblocks on floppy discs
2928 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2929 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2930 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2931 # OS/2's system install, which has a completely different semantic
2932 # ./install, which can be erroneously created by make from ./install.sh.
2933 # Reject install programs that cannot install multiple files.
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2935 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2936 if test -z "$INSTALL"; then
2937 if ${ac_cv_path_install+:} false; then :
2938 $as_echo_n "(cached) " >&6
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 # Account for people who put trailing slashes in PATH elements.
2946 case $as_dir/ in #((
2947 ./ | .// | /[cC]/* | \
2948 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2949 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2950 /usr/ucb/* ) ;;
2952 # OSF1 and SCO ODT 3.0 have their own names for install.
2953 # Don't use installbsd from OSF since it installs stuff as root
2954 # by default.
2955 for ac_prog in ginstall scoinst install; do
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2958 if test $ac_prog = install &&
2959 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2960 # AIX install. It has an incompatible calling convention.
2962 elif test $ac_prog = install &&
2963 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2964 # program-specific install script used by HP pwplus--don't use.
2966 else
2967 rm -rf conftest.one conftest.two conftest.dir
2968 echo one > conftest.one
2969 echo two > conftest.two
2970 mkdir conftest.dir
2971 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2972 test -s conftest.one && test -s conftest.two &&
2973 test -s conftest.dir/conftest.one &&
2974 test -s conftest.dir/conftest.two
2975 then
2976 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2977 break 3
2981 done
2982 done
2984 esac
2986 done
2987 IFS=$as_save_IFS
2989 rm -rf conftest.one conftest.two conftest.dir
2992 if test "${ac_cv_path_install+set}" = set; then
2993 INSTALL=$ac_cv_path_install
2994 else
2995 # As a last resort, use the slow shell script. Don't cache a
2996 # value for INSTALL within a source directory, because that will
2997 # break other packages using the cache if that directory is
2998 # removed, or if the value is a relative name.
2999 INSTALL=$ac_install_sh
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3003 $as_echo "$INSTALL" >&6; }
3005 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3006 # It thinks the first close brace ends the variable substitution.
3007 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3009 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3011 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3014 $as_echo_n "checking whether build environment is sane... " >&6; }
3015 # Reject unsafe characters in $srcdir or the absolute working directory
3016 # name. Accept space and tab only in the latter.
3017 am_lf='
3019 case `pwd` in
3020 *[\\\"\#\$\&\'\`$am_lf]*)
3021 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3022 esac
3023 case $srcdir in
3024 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3025 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3026 esac
3028 # Do 'set' in a subshell so we don't clobber the current shell's
3029 # arguments. Must try -L first in case configure is actually a
3030 # symlink; some systems play weird games with the mod time of symlinks
3031 # (eg FreeBSD returns the mod time of the symlink's containing
3032 # directory).
3033 if (
3034 am_has_slept=no
3035 for am_try in 1 2; do
3036 echo "timestamp, slept: $am_has_slept" > conftest.file
3037 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3038 if test "$*" = "X"; then
3039 # -L didn't work.
3040 set X `ls -t "$srcdir/configure" conftest.file`
3042 if test "$*" != "X $srcdir/configure conftest.file" \
3043 && test "$*" != "X conftest.file $srcdir/configure"; then
3045 # If neither matched, then we have a broken ls. This can happen
3046 # if, for instance, CONFIG_SHELL is bash and it inherits a
3047 # broken ls alias from the environment. This has actually
3048 # happened. Such a system could not be considered "sane".
3049 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3050 alias in your environment" "$LINENO" 5
3052 if test "$2" = conftest.file || test $am_try -eq 2; then
3053 break
3055 # Just in case.
3056 sleep 1
3057 am_has_slept=yes
3058 done
3059 test "$2" = conftest.file
3061 then
3062 # Ok.
3064 else
3065 as_fn_error $? "newly created file is older than distributed files!
3066 Check your system clock" "$LINENO" 5
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3069 $as_echo "yes" >&6; }
3070 # If we didn't sleep, we still need to ensure time stamps of config.status and
3071 # generated files are strictly newer.
3072 am_sleep_pid=
3073 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3074 ( sleep 1 ) &
3075 am_sleep_pid=$!
3078 rm -f conftest.file
3080 test "$program_prefix" != NONE &&
3081 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3082 # Use a double $ so make ignores it.
3083 test "$program_suffix" != NONE &&
3084 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3085 # Double any \ or $.
3086 # By default was `s,x,x', remove it if useless.
3087 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3088 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3090 # Expand $ac_aux_dir to an absolute path.
3091 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3093 if test x"${MISSING+set}" != xset; then
3094 case $am_aux_dir in
3095 *\ * | *\ *)
3096 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3098 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3099 esac
3101 # Use eval to expand $SHELL
3102 if eval "$MISSING --is-lightweight"; then
3103 am_missing_run="$MISSING "
3104 else
3105 am_missing_run=
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3107 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3110 if test x"${install_sh+set}" != xset; then
3111 case $am_aux_dir in
3112 *\ * | *\ *)
3113 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3115 install_sh="\${SHELL} $am_aux_dir/install-sh"
3116 esac
3119 # Installed binaries are usually stripped using 'strip' when the user
3120 # run "make install-strip". However 'strip' might not be the right
3121 # tool to use in cross-compilation environments, therefore Automake
3122 # will honor the 'STRIP' environment variable to overrule this program.
3123 if test "$cross_compiling" != no; then
3124 if test -n "$ac_tool_prefix"; then
3125 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3126 set dummy ${ac_tool_prefix}strip; ac_word=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if ${ac_cv_prog_STRIP+:} false; then :
3130 $as_echo_n "(cached) " >&6
3131 else
3132 if test -n "$STRIP"; then
3133 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3142 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 break 2
3146 done
3147 done
3148 IFS=$as_save_IFS
3152 STRIP=$ac_cv_prog_STRIP
3153 if test -n "$STRIP"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3155 $as_echo "$STRIP" >&6; }
3156 else
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3163 if test -z "$ac_cv_prog_STRIP"; then
3164 ac_ct_STRIP=$STRIP
3165 # Extract the first word of "strip", so it can be a program name with args.
3166 set dummy strip; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3170 $as_echo_n "(cached) " >&6
3171 else
3172 if test -n "$ac_ct_STRIP"; then
3173 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182 ac_cv_prog_ac_ct_STRIP="strip"
3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 break 2
3186 done
3187 done
3188 IFS=$as_save_IFS
3192 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3193 if test -n "$ac_ct_STRIP"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3195 $as_echo "$ac_ct_STRIP" >&6; }
3196 else
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3201 if test "x$ac_ct_STRIP" = x; then
3202 STRIP=":"
3203 else
3204 case $cross_compiling:$ac_tool_warned in
3205 yes:)
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3208 ac_tool_warned=yes ;;
3209 esac
3210 STRIP=$ac_ct_STRIP
3212 else
3213 STRIP="$ac_cv_prog_STRIP"
3217 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3220 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3221 if test -z "$MKDIR_P"; then
3222 if ${ac_cv_path_mkdir+:} false; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_prog in mkdir gmkdir; do
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3233 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3234 'mkdir (GNU coreutils) '* | \
3235 'mkdir (coreutils) '* | \
3236 'mkdir (fileutils) '4.1*)
3237 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3238 break 3;;
3239 esac
3240 done
3241 done
3242 done
3243 IFS=$as_save_IFS
3247 test -d ./--version && rmdir ./--version
3248 if test "${ac_cv_path_mkdir+set}" = set; then
3249 MKDIR_P="$ac_cv_path_mkdir -p"
3250 else
3251 # As a last resort, use the slow shell script. Don't cache a
3252 # value for MKDIR_P within a source directory, because that will
3253 # break other packages using the cache if that directory is
3254 # removed, or if the value is a relative name.
3255 MKDIR_P="$ac_install_sh -d"
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3259 $as_echo "$MKDIR_P" >&6; }
3261 for ac_prog in gawk mawk nawk awk
3263 # Extract the first word of "$ac_prog", so it can be a program name with args.
3264 set dummy $ac_prog; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_AWK+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test -n "$AWK"; then
3271 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_AWK="$ac_prog"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
3284 done
3285 done
3286 IFS=$as_save_IFS
3290 AWK=$ac_cv_prog_AWK
3291 if test -n "$AWK"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3293 $as_echo "$AWK" >&6; }
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3300 test -n "$AWK" && break
3301 done
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3304 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3305 set x ${MAKE-make}
3306 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3307 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 cat >conftest.make <<\_ACEOF
3311 SHELL = /bin/sh
3312 all:
3313 @echo '@@@%%%=$(MAKE)=@@@%%%'
3314 _ACEOF
3315 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3316 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3317 *@@@%%%=?*=@@@%%%*)
3318 eval ac_cv_prog_make_${ac_make}_set=yes;;
3320 eval ac_cv_prog_make_${ac_make}_set=no;;
3321 esac
3322 rm -f conftest.make
3324 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3326 $as_echo "yes" >&6; }
3327 SET_MAKE=
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 SET_MAKE="MAKE=${MAKE-make}"
3334 rm -rf .tst 2>/dev/null
3335 mkdir .tst 2>/dev/null
3336 if test -d .tst; then
3337 am__leading_dot=.
3338 else
3339 am__leading_dot=_
3341 rmdir .tst 2>/dev/null
3343 # Check whether --enable-silent-rules was given.
3344 if test "${enable_silent_rules+set}" = set; then :
3345 enableval=$enable_silent_rules;
3348 case $enable_silent_rules in # (((
3349 yes) AM_DEFAULT_VERBOSITY=0;;
3350 no) AM_DEFAULT_VERBOSITY=1;;
3351 *) AM_DEFAULT_VERBOSITY=1;;
3352 esac
3353 am_make=${MAKE-make}
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3355 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3356 if ${am_cv_make_support_nested_variables+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 if $as_echo 'TRUE=$(BAR$(V))
3360 BAR0=false
3361 BAR1=true
3363 am__doit:
3364 @$(TRUE)
3365 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3366 am_cv_make_support_nested_variables=yes
3367 else
3368 am_cv_make_support_nested_variables=no
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3372 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3373 if test $am_cv_make_support_nested_variables = yes; then
3374 AM_V='$(V)'
3375 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3376 else
3377 AM_V=$AM_DEFAULT_VERBOSITY
3378 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3380 AM_BACKSLASH='\'
3382 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3383 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3384 # is not polluted with repeated "-I."
3385 am__isrc=' -I$(srcdir)'
3386 # test to see if srcdir already configured
3387 if test -f $srcdir/config.status; then
3388 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3392 # test whether we have cygpath
3393 if test -z "$CYGPATH_W"; then
3394 if (cygpath --version) >/dev/null 2>/dev/null; then
3395 CYGPATH_W='cygpath -w'
3396 else
3397 CYGPATH_W=echo
3402 # Define the identity of the package.
3403 PACKAGE='libitm'
3404 VERSION='1.0'
3407 cat >>confdefs.h <<_ACEOF
3408 #define PACKAGE "$PACKAGE"
3409 _ACEOF
3412 cat >>confdefs.h <<_ACEOF
3413 #define VERSION "$VERSION"
3414 _ACEOF
3416 # Some tools Automake needs.
3418 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3421 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3424 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3427 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3430 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3432 # For better backward compatibility. To be removed once Automake 1.9.x
3433 # dies out for good. For more background, see:
3434 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3435 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3436 mkdir_p='$(MKDIR_P)'
3438 # We need awk for the "check" target (and possibly the TAP driver). The
3439 # system "awk" is bad on some platforms.
3440 # Always define AMTAR for backward compatibility. Yes, it's still used
3441 # in the wild :-( We should find a proper way to deprecate it ...
3442 AMTAR='$${TAR-tar}'
3445 # We'll loop over all known methods to create a tar archive until one works.
3446 _am_tools='gnutar pax cpio none'
3448 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3455 # POSIX will say in a future version that running "rm -f" with no argument
3456 # is OK; and we want to be able to make that assumption in our Makefile
3457 # recipes. So use an aggressive probe to check that the usage we want is
3458 # actually supported "in the wild" to an acceptable degree.
3459 # See automake bug#10828.
3460 # To make any issue more visible, cause the running configure to be aborted
3461 # by default if the 'rm' program in use doesn't match our expectations; the
3462 # user can still override this though.
3463 if rm -f && rm -fr && rm -rf; then : OK; else
3464 cat >&2 <<'END'
3465 Oops!
3467 Your 'rm' program seems unable to run without file operands specified
3468 on the command line, even when the '-f' option is present. This is contrary
3469 to the behaviour of most rm programs out there, and not conforming with
3470 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3472 Please tell bug-automake@gnu.org about your system, including the value
3473 of your $PATH and any error possibly output before this message. This
3474 can help us improve future automake versions.
3477 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3478 echo 'Configuration will proceed anyway, since you have set the' >&2
3479 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3480 echo >&2
3481 else
3482 cat >&2 <<'END'
3483 Aborting the configuration process, to ensure you take notice of the issue.
3485 You can download and install GNU coreutils to get an 'rm' implementation
3486 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3488 If you want to complete the configuration process using your problematic
3489 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3490 to "yes", and re-run configure.
3493 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3497 # Default to --enable-multilib
3498 # Check whether --enable-multilib was given.
3499 if test "${enable_multilib+set}" = set; then :
3500 enableval=$enable_multilib; case "$enableval" in
3501 yes) multilib=yes ;;
3502 no) multilib=no ;;
3503 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3504 esac
3505 else
3506 multilib=yes
3510 # We may get other options which we leave undocumented:
3511 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3512 # See config-ml.in if you want the gory details.
3514 if test "$srcdir" = "."; then
3515 if test "$with_target_subdir" != "."; then
3516 multi_basedir="$srcdir/$with_multisrctop../.."
3517 else
3518 multi_basedir="$srcdir/$with_multisrctop.."
3520 else
3521 multi_basedir="$srcdir/.."
3525 # Even if the default multilib is not a cross compilation,
3526 # it may be that some of the other multilibs are.
3527 if test $cross_compiling = no && test $multilib = yes \
3528 && test "x${with_multisubdir}" != x ; then
3529 cross_compiling=maybe
3532 ac_config_commands="$ac_config_commands default-1"
3536 # Check whether --with-toolexeclibdir was given.
3537 if test "${with_toolexeclibdir+set}" = set; then :
3538 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3542 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3544 esac
3545 else
3546 with_toolexeclibdir=no
3551 # Calculate toolexeclibdir
3552 # Also toolexecdir, though it's only used in toolexeclibdir
3553 case ${enable_version_specific_runtime_libs} in
3554 yes)
3555 # Need the gcc compiler version to know where to install libraries
3556 # and header files if --enable-version-specific-runtime-libs option
3557 # is selected.
3558 toolexecdir='$(libdir)/gcc/$(target_alias)'
3559 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3562 if test -n "$with_cross_host" &&
3563 test x"$with_cross_host" != x"no"; then
3564 # Install a library built with a cross compiler in tooldir, not libdir.
3565 toolexecdir='$(exec_prefix)/$(target_alias)'
3566 case ${with_toolexeclibdir} in
3568 toolexeclibdir='$(toolexecdir)/lib'
3571 toolexeclibdir=${with_toolexeclibdir}
3573 esac
3574 else
3575 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3576 toolexeclibdir='$(libdir)'
3578 multi_os_directory=`$CC -print-multi-os-directory`
3579 case $multi_os_directory in
3580 .) ;; # Avoid trailing /.
3581 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3582 esac
3584 esac
3588 # Check the compiler.
3589 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3590 # We must force CC to /not/ be precious variables; otherwise
3591 # the wrong, non-multilib-adjusted value will be used in multilibs.
3592 # As a side effect, we have to subst CFLAGS ourselves.
3596 ac_ext=c
3597 ac_cpp='$CPP $CPPFLAGS'
3598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3601 if test -n "$ac_tool_prefix"; then
3602 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3603 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if ${ac_cv_prog_CC+:} false; then :
3607 $as_echo_n "(cached) " >&6
3608 else
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC="$CC" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 break 2
3623 done
3624 done
3625 IFS=$as_save_IFS
3629 CC=$ac_cv_prog_CC
3630 if test -n "$CC"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3632 $as_echo "$CC" >&6; }
3633 else
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3640 if test -z "$ac_cv_prog_CC"; then
3641 ac_ct_CC=$CC
3642 # Extract the first word of "gcc", so it can be a program name with args.
3643 set dummy gcc; ac_word=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 if test -n "$ac_ct_CC"; then
3650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659 ac_cv_prog_ac_ct_CC="gcc"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 break 2
3663 done
3664 done
3665 IFS=$as_save_IFS
3669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3670 if test -n "$ac_ct_CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3672 $as_echo "$ac_ct_CC" >&6; }
3673 else
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3678 if test "x$ac_ct_CC" = x; then
3679 CC=""
3680 else
3681 case $cross_compiling:$ac_tool_warned in
3682 yes:)
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3685 ac_tool_warned=yes ;;
3686 esac
3687 CC=$ac_ct_CC
3689 else
3690 CC="$ac_cv_prog_CC"
3693 if test -z "$CC"; then
3694 if test -n "$ac_tool_prefix"; then
3695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3696 set dummy ${ac_tool_prefix}cc; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if ${ac_cv_prog_CC+:} false; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC="$CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_CC="${ac_tool_prefix}cc"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3716 done
3717 done
3718 IFS=$as_save_IFS
3722 CC=$ac_cv_prog_CC
3723 if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725 $as_echo "$CC" >&6; }
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3734 if test -z "$CC"; then
3735 # Extract the first word of "cc", so it can be a program name with args.
3736 set dummy cc; ac_word=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if ${ac_cv_prog_CC+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 if test -n "$CC"; then
3743 ac_cv_prog_CC="$CC" # Let the user override the test.
3744 else
3745 ac_prog_rejected=no
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3753 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3754 ac_prog_rejected=yes
3755 continue
3757 ac_cv_prog_CC="cc"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3761 done
3762 done
3763 IFS=$as_save_IFS
3765 if test $ac_prog_rejected = yes; then
3766 # We found a bogon in the path, so make sure we never use it.
3767 set dummy $ac_cv_prog_CC
3768 shift
3769 if test $# != 0; then
3770 # We chose a different compiler from the bogus one.
3771 # However, it has the same basename, so the bogon will be chosen
3772 # first if we set CC to just the basename; use the full file name.
3773 shift
3774 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3779 CC=$ac_cv_prog_CC
3780 if test -n "$CC"; then
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3782 $as_echo "$CC" >&6; }
3783 else
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 $as_echo "no" >&6; }
3790 if test -z "$CC"; then
3791 if test -n "$ac_tool_prefix"; then
3792 for ac_prog in cl.exe
3794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3795 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if ${ac_cv_prog_CC+:} false; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC="$CC" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3815 done
3816 done
3817 IFS=$as_save_IFS
3821 CC=$ac_cv_prog_CC
3822 if test -n "$CC"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3824 $as_echo "$CC" >&6; }
3825 else
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3831 test -n "$CC" && break
3832 done
3834 if test -z "$CC"; then
3835 ac_ct_CC=$CC
3836 for ac_prog in cl.exe
3838 # Extract the first word of "$ac_prog", so it can be a program name with args.
3839 set dummy $ac_prog; ac_word=$2
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841 $as_echo_n "checking for $ac_word... " >&6; }
3842 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3843 $as_echo_n "(cached) " >&6
3844 else
3845 if test -n "$ac_ct_CC"; then
3846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3847 else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855 ac_cv_prog_ac_ct_CC="$ac_prog"
3856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3857 break 2
3859 done
3860 done
3861 IFS=$as_save_IFS
3865 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3866 if test -n "$ac_ct_CC"; then
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3868 $as_echo "$ac_ct_CC" >&6; }
3869 else
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871 $as_echo "no" >&6; }
3875 test -n "$ac_ct_CC" && break
3876 done
3878 if test "x$ac_ct_CC" = x; then
3879 CC=""
3880 else
3881 case $cross_compiling:$ac_tool_warned in
3882 yes:)
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3885 ac_tool_warned=yes ;;
3886 esac
3887 CC=$ac_ct_CC
3894 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3896 as_fn_error $? "no acceptable C compiler found in \$PATH
3897 See \`config.log' for more details" "$LINENO" 5; }
3899 # Provide some information about the compiler.
3900 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3901 set X $ac_compile
3902 ac_compiler=$2
3903 for ac_option in --version -v -V -qversion; do
3904 { { ac_try="$ac_compiler $ac_option >&5"
3905 case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3908 esac
3909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910 $as_echo "$ac_try_echo"; } >&5
3911 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3912 ac_status=$?
3913 if test -s conftest.err; then
3914 sed '10a\
3915 ... rest of stderr output deleted ...
3916 10q' conftest.err >conftest.er1
3917 cat conftest.er1 >&5
3919 rm -f conftest.er1 conftest.err
3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; }
3922 done
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3928 main ()
3932 return 0;
3934 _ACEOF
3935 ac_clean_files_save=$ac_clean_files
3936 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3937 # Try to create an executable without -o first, disregard a.out.
3938 # It will help us diagnose broken compilers, and finding out an intuition
3939 # of exeext.
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3941 $as_echo_n "checking whether the C compiler works... " >&6; }
3942 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3944 # The possible output files:
3945 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3947 ac_rmfiles=
3948 for ac_file in $ac_files
3950 case $ac_file in
3951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3952 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3953 esac
3954 done
3955 rm -f $ac_rmfiles
3957 if { { ac_try="$ac_link_default"
3958 case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961 esac
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 $as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_link_default") 2>&5
3965 ac_status=$?
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }; then :
3968 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3969 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3970 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3971 # so that the user can short-circuit this test for compilers unknown to
3972 # Autoconf.
3973 for ac_file in $ac_files ''
3975 test -f "$ac_file" || continue
3976 case $ac_file in
3977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3979 [ab].out )
3980 # We found the default executable, but exeext='' is most
3981 # certainly right.
3982 break;;
3983 *.* )
3984 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3985 then :; else
3986 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3988 # We set ac_cv_exeext here because the later test for it is not
3989 # safe: cross compilers may not add the suffix if given an `-o'
3990 # argument, so we may need to know it at that point already.
3991 # Even if this section looks crufty: it has the advantage of
3992 # actually working.
3993 break;;
3995 break;;
3996 esac
3997 done
3998 test "$ac_cv_exeext" = no && ac_cv_exeext=
4000 else
4001 ac_file=''
4003 if test -z "$ac_file"; then :
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 $as_echo "no" >&6; }
4006 $as_echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4011 as_fn_error 77 "C compiler cannot create executables
4012 See \`config.log' for more details" "$LINENO" 5; }
4013 else
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4015 $as_echo "yes" >&6; }
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4018 $as_echo_n "checking for C compiler default output file name... " >&6; }
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4020 $as_echo "$ac_file" >&6; }
4021 ac_exeext=$ac_cv_exeext
4023 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4024 ac_clean_files=$ac_clean_files_save
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4026 $as_echo_n "checking for suffix of executables... " >&6; }
4027 if { { ac_try="$ac_link"
4028 case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031 esac
4032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033 $as_echo "$ac_try_echo"; } >&5
4034 (eval "$ac_link") 2>&5
4035 ac_status=$?
4036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037 test $ac_status = 0; }; then :
4038 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4039 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4040 # work properly (i.e., refer to `conftest.exe'), while it won't with
4041 # `rm'.
4042 for ac_file in conftest.exe conftest conftest.*; do
4043 test -f "$ac_file" || continue
4044 case $ac_file in
4045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4046 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4047 break;;
4048 * ) break;;
4049 esac
4050 done
4051 else
4052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4054 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4055 See \`config.log' for more details" "$LINENO" 5; }
4057 rm -f conftest conftest$ac_cv_exeext
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4059 $as_echo "$ac_cv_exeext" >&6; }
4061 rm -f conftest.$ac_ext
4062 EXEEXT=$ac_cv_exeext
4063 ac_exeext=$EXEEXT
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066 #include <stdio.h>
4068 main ()
4070 FILE *f = fopen ("conftest.out", "w");
4071 return ferror (f) || fclose (f) != 0;
4074 return 0;
4076 _ACEOF
4077 ac_clean_files="$ac_clean_files conftest.out"
4078 # Check that the compiler produces executables we can run. If not, either
4079 # the compiler is broken, or we cross compile.
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4081 $as_echo_n "checking whether we are cross compiling... " >&6; }
4082 if test "$cross_compiling" != yes; then
4083 { { ac_try="$ac_link"
4084 case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087 esac
4088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089 $as_echo "$ac_try_echo"; } >&5
4090 (eval "$ac_link") 2>&5
4091 ac_status=$?
4092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093 test $ac_status = 0; }
4094 if { ac_try='./conftest$ac_cv_exeext'
4095 { { case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098 esac
4099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4100 $as_echo "$ac_try_echo"; } >&5
4101 (eval "$ac_try") 2>&5
4102 ac_status=$?
4103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104 test $ac_status = 0; }; }; then
4105 cross_compiling=no
4106 else
4107 if test "$cross_compiling" = maybe; then
4108 cross_compiling=yes
4109 else
4110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4112 as_fn_error $? "cannot run C compiled programs.
4113 If you meant to cross compile, use \`--host'.
4114 See \`config.log' for more details" "$LINENO" 5; }
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4119 $as_echo "$cross_compiling" >&6; }
4121 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4122 ac_clean_files=$ac_clean_files_save
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4124 $as_echo_n "checking for suffix of object files... " >&6; }
4125 if ${ac_cv_objext+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4132 main ()
4136 return 0;
4138 _ACEOF
4139 rm -f conftest.o conftest.obj
4140 if { { ac_try="$ac_compile"
4141 case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144 esac
4145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4146 $as_echo "$ac_try_echo"; } >&5
4147 (eval "$ac_compile") 2>&5
4148 ac_status=$?
4149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4150 test $ac_status = 0; }; then :
4151 for ac_file in conftest.o conftest.obj conftest.*; do
4152 test -f "$ac_file" || continue;
4153 case $ac_file in
4154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4155 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4156 break;;
4157 esac
4158 done
4159 else
4160 $as_echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4165 as_fn_error $? "cannot compute suffix of object files: cannot compile
4166 See \`config.log' for more details" "$LINENO" 5; }
4168 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4171 $as_echo "$ac_cv_objext" >&6; }
4172 OBJEXT=$ac_cv_objext
4173 ac_objext=$OBJEXT
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4175 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4176 if ${ac_cv_c_compiler_gnu+:} false; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4183 main ()
4185 #ifndef __GNUC__
4186 choke me
4187 #endif
4190 return 0;
4192 _ACEOF
4193 if ac_fn_c_try_compile "$LINENO"; then :
4194 ac_compiler_gnu=yes
4195 else
4196 ac_compiler_gnu=no
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4203 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4204 if test $ac_compiler_gnu = yes; then
4205 GCC=yes
4206 else
4207 GCC=
4209 ac_test_CFLAGS=${CFLAGS+set}
4210 ac_save_CFLAGS=$CFLAGS
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4212 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4213 if ${ac_cv_prog_cc_g+:} false; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 ac_save_c_werror_flag=$ac_c_werror_flag
4217 ac_c_werror_flag=yes
4218 ac_cv_prog_cc_g=no
4219 CFLAGS="-g"
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4224 main ()
4228 return 0;
4230 _ACEOF
4231 if ac_fn_c_try_compile "$LINENO"; then :
4232 ac_cv_prog_cc_g=yes
4233 else
4234 CFLAGS=""
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4239 main ()
4243 return 0;
4245 _ACEOF
4246 if ac_fn_c_try_compile "$LINENO"; then :
4248 else
4249 ac_c_werror_flag=$ac_save_c_werror_flag
4250 CFLAGS="-g"
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4255 main ()
4259 return 0;
4261 _ACEOF
4262 if ac_fn_c_try_compile "$LINENO"; then :
4263 ac_cv_prog_cc_g=yes
4265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 ac_c_werror_flag=$ac_save_c_werror_flag
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4273 $as_echo "$ac_cv_prog_cc_g" >&6; }
4274 if test "$ac_test_CFLAGS" = set; then
4275 CFLAGS=$ac_save_CFLAGS
4276 elif test $ac_cv_prog_cc_g = yes; then
4277 if test "$GCC" = yes; then
4278 CFLAGS="-g -O2"
4279 else
4280 CFLAGS="-g"
4282 else
4283 if test "$GCC" = yes; then
4284 CFLAGS="-O2"
4285 else
4286 CFLAGS=
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4290 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4291 if ${ac_cv_prog_cc_c89+:} false; then :
4292 $as_echo_n "(cached) " >&6
4293 else
4294 ac_cv_prog_cc_c89=no
4295 ac_save_CC=$CC
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4298 #include <stdarg.h>
4299 #include <stdio.h>
4300 struct stat;
4301 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4302 struct buf { int x; };
4303 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4304 static char *e (p, i)
4305 char **p;
4306 int i;
4308 return p[i];
4310 static char *f (char * (*g) (char **, int), char **p, ...)
4312 char *s;
4313 va_list v;
4314 va_start (v,p);
4315 s = g (p, va_arg (v,int));
4316 va_end (v);
4317 return s;
4320 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4321 function prototypes and stuff, but not '\xHH' hex character constants.
4322 These don't provoke an error unfortunately, instead are silently treated
4323 as 'x'. The following induces an error, until -std is added to get
4324 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4325 array size at least. It's necessary to write '\x00'==0 to get something
4326 that's true only with -std. */
4327 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4329 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4330 inside strings and character constants. */
4331 #define FOO(x) 'x'
4332 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4334 int test (int i, double x);
4335 struct s1 {int (*f) (int a);};
4336 struct s2 {int (*f) (double a);};
4337 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4338 int argc;
4339 char **argv;
4341 main ()
4343 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4345 return 0;
4347 _ACEOF
4348 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4349 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4351 CC="$ac_save_CC $ac_arg"
4352 if ac_fn_c_try_compile "$LINENO"; then :
4353 ac_cv_prog_cc_c89=$ac_arg
4355 rm -f core conftest.err conftest.$ac_objext
4356 test "x$ac_cv_prog_cc_c89" != "xno" && break
4357 done
4358 rm -f conftest.$ac_ext
4359 CC=$ac_save_CC
4362 # AC_CACHE_VAL
4363 case "x$ac_cv_prog_cc_c89" in
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4366 $as_echo "none needed" >&6; } ;;
4367 xno)
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4369 $as_echo "unsupported" >&6; } ;;
4371 CC="$CC $ac_cv_prog_cc_c89"
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4373 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4374 esac
4375 if test "x$ac_cv_prog_cc_c89" != xno; then :
4379 ac_ext=c
4380 ac_cpp='$CPP $CPPFLAGS'
4381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385 ac_ext=c
4386 ac_cpp='$CPP $CPPFLAGS'
4387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4391 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4392 if ${am_cv_prog_cc_c_o+:} false; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4399 main ()
4403 return 0;
4405 _ACEOF
4406 # Make sure it works both with $CC and with simple cc.
4407 # Following AC_PROG_CC_C_O, we do the test twice because some
4408 # compilers refuse to overwrite an existing .o file with -o,
4409 # though they will create one.
4410 am_cv_prog_cc_c_o=yes
4411 for am_i in 1 2; do
4412 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4413 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } \
4417 && test -f conftest2.$ac_objext; then
4418 : OK
4419 else
4420 am_cv_prog_cc_c_o=no
4421 break
4423 done
4424 rm -f core conftest*
4425 unset am_i
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4428 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4429 if test "$am_cv_prog_cc_c_o" != yes; then
4430 # Losing compiler, so override with the script.
4431 # FIXME: It is wrong to rewrite CC.
4432 # But if we don't then we get into trouble of one sort or another.
4433 # A longer-term fix would be to have automake use am__CC in this case,
4434 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4435 CC="$am_aux_dir/compile $CC"
4437 ac_ext=c
4438 ac_cpp='$CPP $CPPFLAGS'
4439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443 DEPDIR="${am__leading_dot}deps"
4445 ac_config_commands="$ac_config_commands depfiles"
4448 am_make=${MAKE-make}
4449 cat > confinc << 'END'
4450 am__doit:
4451 @echo this is the am__doit target
4452 .PHONY: am__doit
4454 # If we don't find an include directive, just comment out the code.
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4456 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4457 am__include="#"
4458 am__quote=
4459 _am_result=none
4460 # First try GNU make style include.
4461 echo "include confinc" > confmf
4462 # Ignore all kinds of additional output from 'make'.
4463 case `$am_make -s -f confmf 2> /dev/null` in #(
4464 *the\ am__doit\ target*)
4465 am__include=include
4466 am__quote=
4467 _am_result=GNU
4469 esac
4470 # Now try BSD make style include.
4471 if test "$am__include" = "#"; then
4472 echo '.include "confinc"' > confmf
4473 case `$am_make -s -f confmf 2> /dev/null` in #(
4474 *the\ am__doit\ target*)
4475 am__include=.include
4476 am__quote="\""
4477 _am_result=BSD
4479 esac
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4484 $as_echo "$_am_result" >&6; }
4485 rm -f confinc confmf
4487 # Check whether --enable-dependency-tracking was given.
4488 if test "${enable_dependency_tracking+set}" = set; then :
4489 enableval=$enable_dependency_tracking;
4492 if test "x$enable_dependency_tracking" != xno; then
4493 am_depcomp="$ac_aux_dir/depcomp"
4494 AMDEPBACKSLASH='\'
4495 am__nodep='_no'
4497 if test "x$enable_dependency_tracking" != xno; then
4498 AMDEP_TRUE=
4499 AMDEP_FALSE='#'
4500 else
4501 AMDEP_TRUE='#'
4502 AMDEP_FALSE=
4507 depcc="$CC" am_compiler_list=
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4510 $as_echo_n "checking dependency style of $depcc... " >&6; }
4511 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4515 # We make a subdir and do the tests there. Otherwise we can end up
4516 # making bogus files that we don't know about and never remove. For
4517 # instance it was reported that on HP-UX the gcc test will end up
4518 # making a dummy file named 'D' -- because '-MD' means "put the output
4519 # in D".
4520 rm -rf conftest.dir
4521 mkdir conftest.dir
4522 # Copy depcomp to subdir because otherwise we won't find it if we're
4523 # using a relative directory.
4524 cp "$am_depcomp" conftest.dir
4525 cd conftest.dir
4526 # We will build objects and dependencies in a subdirectory because
4527 # it helps to detect inapplicable dependency modes. For instance
4528 # both Tru64's cc and ICC support -MD to output dependencies as a
4529 # side effect of compilation, but ICC will put the dependencies in
4530 # the current directory while Tru64 will put them in the object
4531 # directory.
4532 mkdir sub
4534 am_cv_CC_dependencies_compiler_type=none
4535 if test "$am_compiler_list" = ""; then
4536 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4538 am__universal=false
4539 case " $depcc " in #(
4540 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4541 esac
4543 for depmode in $am_compiler_list; do
4544 # Setup a source with many dependencies, because some compilers
4545 # like to wrap large dependency lists on column 80 (with \), and
4546 # we should not choose a depcomp mode which is confused by this.
4548 # We need to recreate these files for each test, as the compiler may
4549 # overwrite some of them when testing with obscure command lines.
4550 # This happens at least with the AIX C compiler.
4551 : > sub/conftest.c
4552 for i in 1 2 3 4 5 6; do
4553 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4554 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4555 # Solaris 10 /bin/sh.
4556 echo '/* dummy */' > sub/conftst$i.h
4557 done
4558 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4560 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4561 # mode. It turns out that the SunPro C++ compiler does not properly
4562 # handle '-M -o', and we need to detect this. Also, some Intel
4563 # versions had trouble with output in subdirs.
4564 am__obj=sub/conftest.${OBJEXT-o}
4565 am__minus_obj="-o $am__obj"
4566 case $depmode in
4567 gcc)
4568 # This depmode causes a compiler race in universal mode.
4569 test "$am__universal" = false || continue
4571 nosideeffect)
4572 # After this tag, mechanisms are not by side-effect, so they'll
4573 # only be used when explicitly requested.
4574 if test "x$enable_dependency_tracking" = xyes; then
4575 continue
4576 else
4577 break
4580 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4581 # This compiler won't grok '-c -o', but also, the minuso test has
4582 # not run yet. These depmodes are late enough in the game, and
4583 # so weak that their functioning should not be impacted.
4584 am__obj=conftest.${OBJEXT-o}
4585 am__minus_obj=
4587 none) break ;;
4588 esac
4589 if depmode=$depmode \
4590 source=sub/conftest.c object=$am__obj \
4591 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4592 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4593 >/dev/null 2>conftest.err &&
4594 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4595 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4596 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4597 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4598 # icc doesn't choke on unknown options, it will just issue warnings
4599 # or remarks (even with -Werror). So we grep stderr for any message
4600 # that says an option was ignored or not supported.
4601 # When given -MP, icc 7.0 and 7.1 complain thusly:
4602 # icc: Command line warning: ignoring option '-M'; no argument required
4603 # The diagnosis changed in icc 8.0:
4604 # icc: Command line remark: option '-MP' not supported
4605 if (grep 'ignoring option' conftest.err ||
4606 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4607 am_cv_CC_dependencies_compiler_type=$depmode
4608 break
4611 done
4613 cd ..
4614 rm -rf conftest.dir
4615 else
4616 am_cv_CC_dependencies_compiler_type=none
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4621 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4622 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4625 test "x$enable_dependency_tracking" != xno \
4626 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4627 am__fastdepCC_TRUE=
4628 am__fastdepCC_FALSE='#'
4629 else
4630 am__fastdepCC_TRUE='#'
4631 am__fastdepCC_FALSE=
4635 ac_ext=cpp
4636 ac_cpp='$CXXCPP $CPPFLAGS'
4637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4640 if test -z "$CXX"; then
4641 if test -n "$CCC"; then
4642 CXX=$CCC
4643 else
4644 if test -n "$ac_tool_prefix"; then
4645 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_prog_CXX+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$CXX"; then
4655 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4668 done
4669 done
4670 IFS=$as_save_IFS
4674 CXX=$ac_cv_prog_CXX
4675 if test -n "$CXX"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4677 $as_echo "$CXX" >&6; }
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4684 test -n "$CXX" && break
4685 done
4687 if test -z "$CXX"; then
4688 ac_ct_CXX=$CXX
4689 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4691 # Extract the first word of "$ac_prog", so it can be a program name with args.
4692 set dummy $ac_prog; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 if test -n "$ac_ct_CXX"; then
4699 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708 ac_cv_prog_ac_ct_CXX="$ac_prog"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4712 done
4713 done
4714 IFS=$as_save_IFS
4718 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4719 if test -n "$ac_ct_CXX"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4721 $as_echo "$ac_ct_CXX" >&6; }
4722 else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4728 test -n "$ac_ct_CXX" && break
4729 done
4731 if test "x$ac_ct_CXX" = x; then
4732 CXX="g++"
4733 else
4734 case $cross_compiling:$ac_tool_warned in
4735 yes:)
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738 ac_tool_warned=yes ;;
4739 esac
4740 CXX=$ac_ct_CXX
4746 # Provide some information about the compiler.
4747 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4748 set X $ac_compile
4749 ac_compiler=$2
4750 for ac_option in --version -v -V -qversion; do
4751 { { ac_try="$ac_compiler $ac_option >&5"
4752 case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4755 esac
4756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4757 $as_echo "$ac_try_echo"; } >&5
4758 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4759 ac_status=$?
4760 if test -s conftest.err; then
4761 sed '10a\
4762 ... rest of stderr output deleted ...
4763 10q' conftest.err >conftest.er1
4764 cat conftest.er1 >&5
4766 rm -f conftest.er1 conftest.err
4767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4768 test $ac_status = 0; }
4769 done
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4772 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4773 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4780 main ()
4782 #ifndef __GNUC__
4783 choke me
4784 #endif
4787 return 0;
4789 _ACEOF
4790 if ac_fn_cxx_try_compile "$LINENO"; then :
4791 ac_compiler_gnu=yes
4792 else
4793 ac_compiler_gnu=no
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4800 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4801 if test $ac_compiler_gnu = yes; then
4802 GXX=yes
4803 else
4804 GXX=
4806 ac_test_CXXFLAGS=${CXXFLAGS+set}
4807 ac_save_CXXFLAGS=$CXXFLAGS
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4809 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4810 if ${ac_cv_prog_cxx_g+:} false; then :
4811 $as_echo_n "(cached) " >&6
4812 else
4813 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4814 ac_cxx_werror_flag=yes
4815 ac_cv_prog_cxx_g=no
4816 CXXFLAGS="-g"
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4821 main ()
4825 return 0;
4827 _ACEOF
4828 if ac_fn_cxx_try_compile "$LINENO"; then :
4829 ac_cv_prog_cxx_g=yes
4830 else
4831 CXXFLAGS=""
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4836 main ()
4840 return 0;
4842 _ACEOF
4843 if ac_fn_cxx_try_compile "$LINENO"; then :
4845 else
4846 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4847 CXXFLAGS="-g"
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4852 main ()
4856 return 0;
4858 _ACEOF
4859 if ac_fn_cxx_try_compile "$LINENO"; then :
4860 ac_cv_prog_cxx_g=yes
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4870 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4871 if test "$ac_test_CXXFLAGS" = set; then
4872 CXXFLAGS=$ac_save_CXXFLAGS
4873 elif test $ac_cv_prog_cxx_g = yes; then
4874 if test "$GXX" = yes; then
4875 CXXFLAGS="-g -O2"
4876 else
4877 CXXFLAGS="-g"
4879 else
4880 if test "$GXX" = yes; then
4881 CXXFLAGS="-O2"
4882 else
4883 CXXFLAGS=
4886 ac_ext=c
4887 ac_cpp='$CPP $CPPFLAGS'
4888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4892 depcc="$CXX" am_compiler_list=
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4895 $as_echo_n "checking dependency style of $depcc... " >&6; }
4896 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4900 # We make a subdir and do the tests there. Otherwise we can end up
4901 # making bogus files that we don't know about and never remove. For
4902 # instance it was reported that on HP-UX the gcc test will end up
4903 # making a dummy file named 'D' -- because '-MD' means "put the output
4904 # in D".
4905 rm -rf conftest.dir
4906 mkdir conftest.dir
4907 # Copy depcomp to subdir because otherwise we won't find it if we're
4908 # using a relative directory.
4909 cp "$am_depcomp" conftest.dir
4910 cd conftest.dir
4911 # We will build objects and dependencies in a subdirectory because
4912 # it helps to detect inapplicable dependency modes. For instance
4913 # both Tru64's cc and ICC support -MD to output dependencies as a
4914 # side effect of compilation, but ICC will put the dependencies in
4915 # the current directory while Tru64 will put them in the object
4916 # directory.
4917 mkdir sub
4919 am_cv_CXX_dependencies_compiler_type=none
4920 if test "$am_compiler_list" = ""; then
4921 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4923 am__universal=false
4924 case " $depcc " in #(
4925 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4926 esac
4928 for depmode in $am_compiler_list; do
4929 # Setup a source with many dependencies, because some compilers
4930 # like to wrap large dependency lists on column 80 (with \), and
4931 # we should not choose a depcomp mode which is confused by this.
4933 # We need to recreate these files for each test, as the compiler may
4934 # overwrite some of them when testing with obscure command lines.
4935 # This happens at least with the AIX C compiler.
4936 : > sub/conftest.c
4937 for i in 1 2 3 4 5 6; do
4938 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4939 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4940 # Solaris 10 /bin/sh.
4941 echo '/* dummy */' > sub/conftst$i.h
4942 done
4943 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4945 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4946 # mode. It turns out that the SunPro C++ compiler does not properly
4947 # handle '-M -o', and we need to detect this. Also, some Intel
4948 # versions had trouble with output in subdirs.
4949 am__obj=sub/conftest.${OBJEXT-o}
4950 am__minus_obj="-o $am__obj"
4951 case $depmode in
4952 gcc)
4953 # This depmode causes a compiler race in universal mode.
4954 test "$am__universal" = false || continue
4956 nosideeffect)
4957 # After this tag, mechanisms are not by side-effect, so they'll
4958 # only be used when explicitly requested.
4959 if test "x$enable_dependency_tracking" = xyes; then
4960 continue
4961 else
4962 break
4965 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4966 # This compiler won't grok '-c -o', but also, the minuso test has
4967 # not run yet. These depmodes are late enough in the game, and
4968 # so weak that their functioning should not be impacted.
4969 am__obj=conftest.${OBJEXT-o}
4970 am__minus_obj=
4972 none) break ;;
4973 esac
4974 if depmode=$depmode \
4975 source=sub/conftest.c object=$am__obj \
4976 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4977 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4978 >/dev/null 2>conftest.err &&
4979 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4980 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4981 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4982 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4983 # icc doesn't choke on unknown options, it will just issue warnings
4984 # or remarks (even with -Werror). So we grep stderr for any message
4985 # that says an option was ignored or not supported.
4986 # When given -MP, icc 7.0 and 7.1 complain thusly:
4987 # icc: Command line warning: ignoring option '-M'; no argument required
4988 # The diagnosis changed in icc 8.0:
4989 # icc: Command line remark: option '-MP' not supported
4990 if (grep 'ignoring option' conftest.err ||
4991 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4992 am_cv_CXX_dependencies_compiler_type=$depmode
4993 break
4996 done
4998 cd ..
4999 rm -rf conftest.dir
5000 else
5001 am_cv_CXX_dependencies_compiler_type=none
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5006 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5007 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5010 test "x$enable_dependency_tracking" != xno \
5011 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5012 am__fastdepCXX_TRUE=
5013 am__fastdepCXX_FALSE='#'
5014 else
5015 am__fastdepCXX_TRUE='#'
5016 am__fastdepCXX_FALSE=
5020 # By default we simply use the C compiler to build assembly code.
5022 test "${CCAS+set}" = set || CCAS=$CC
5023 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5027 depcc="$CCAS" am_compiler_list=
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5030 $as_echo_n "checking dependency style of $depcc... " >&6; }
5031 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5035 # We make a subdir and do the tests there. Otherwise we can end up
5036 # making bogus files that we don't know about and never remove. For
5037 # instance it was reported that on HP-UX the gcc test will end up
5038 # making a dummy file named 'D' -- because '-MD' means "put the output
5039 # in D".
5040 rm -rf conftest.dir
5041 mkdir conftest.dir
5042 # Copy depcomp to subdir because otherwise we won't find it if we're
5043 # using a relative directory.
5044 cp "$am_depcomp" conftest.dir
5045 cd conftest.dir
5046 # We will build objects and dependencies in a subdirectory because
5047 # it helps to detect inapplicable dependency modes. For instance
5048 # both Tru64's cc and ICC support -MD to output dependencies as a
5049 # side effect of compilation, but ICC will put the dependencies in
5050 # the current directory while Tru64 will put them in the object
5051 # directory.
5052 mkdir sub
5054 am_cv_CCAS_dependencies_compiler_type=none
5055 if test "$am_compiler_list" = ""; then
5056 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5058 am__universal=false
5061 for depmode in $am_compiler_list; do
5062 # Setup a source with many dependencies, because some compilers
5063 # like to wrap large dependency lists on column 80 (with \), and
5064 # we should not choose a depcomp mode which is confused by this.
5066 # We need to recreate these files for each test, as the compiler may
5067 # overwrite some of them when testing with obscure command lines.
5068 # This happens at least with the AIX C compiler.
5069 : > sub/conftest.c
5070 for i in 1 2 3 4 5 6; do
5071 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5072 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5073 # Solaris 10 /bin/sh.
5074 echo '/* dummy */' > sub/conftst$i.h
5075 done
5076 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5078 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5079 # mode. It turns out that the SunPro C++ compiler does not properly
5080 # handle '-M -o', and we need to detect this. Also, some Intel
5081 # versions had trouble with output in subdirs.
5082 am__obj=sub/conftest.${OBJEXT-o}
5083 am__minus_obj="-o $am__obj"
5084 case $depmode in
5085 gcc)
5086 # This depmode causes a compiler race in universal mode.
5087 test "$am__universal" = false || continue
5089 nosideeffect)
5090 # After this tag, mechanisms are not by side-effect, so they'll
5091 # only be used when explicitly requested.
5092 if test "x$enable_dependency_tracking" = xyes; then
5093 continue
5094 else
5095 break
5098 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5099 # This compiler won't grok '-c -o', but also, the minuso test has
5100 # not run yet. These depmodes are late enough in the game, and
5101 # so weak that their functioning should not be impacted.
5102 am__obj=conftest.${OBJEXT-o}
5103 am__minus_obj=
5105 none) break ;;
5106 esac
5107 if depmode=$depmode \
5108 source=sub/conftest.c object=$am__obj \
5109 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5110 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5111 >/dev/null 2>conftest.err &&
5112 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5113 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5114 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5115 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5116 # icc doesn't choke on unknown options, it will just issue warnings
5117 # or remarks (even with -Werror). So we grep stderr for any message
5118 # that says an option was ignored or not supported.
5119 # When given -MP, icc 7.0 and 7.1 complain thusly:
5120 # icc: Command line warning: ignoring option '-M'; no argument required
5121 # The diagnosis changed in icc 8.0:
5122 # icc: Command line remark: option '-MP' not supported
5123 if (grep 'ignoring option' conftest.err ||
5124 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5125 am_cv_CCAS_dependencies_compiler_type=$depmode
5126 break
5129 done
5131 cd ..
5132 rm -rf conftest.dir
5133 else
5134 am_cv_CCAS_dependencies_compiler_type=none
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5139 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5140 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5143 test "x$enable_dependency_tracking" != xno \
5144 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5145 am__fastdepCCAS_TRUE=
5146 am__fastdepCCAS_FALSE='#'
5147 else
5148 am__fastdepCCAS_TRUE='#'
5149 am__fastdepCCAS_FALSE=
5157 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
5158 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
5159 # in both places for now and restore CFLAGS at the end of config.
5160 save_CFLAGS="$CFLAGS"
5162 # Find other programs we need.
5163 if test -n "$ac_tool_prefix"; then
5164 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5165 set dummy ${ac_tool_prefix}ar; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_prog_AR+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 if test -n "$AR"; then
5172 ac_cv_prog_AR="$AR" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181 ac_cv_prog_AR="${ac_tool_prefix}ar"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5185 done
5186 done
5187 IFS=$as_save_IFS
5191 AR=$ac_cv_prog_AR
5192 if test -n "$AR"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5194 $as_echo "$AR" >&6; }
5195 else
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5202 if test -z "$ac_cv_prog_AR"; then
5203 ac_ct_AR=$AR
5204 # Extract the first word of "ar", so it can be a program name with args.
5205 set dummy ar; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 if test -n "$ac_ct_AR"; then
5212 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_ac_ct_AR="ar"
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5225 done
5226 done
5227 IFS=$as_save_IFS
5231 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5232 if test -n "$ac_ct_AR"; then
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5234 $as_echo "$ac_ct_AR" >&6; }
5235 else
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237 $as_echo "no" >&6; }
5240 if test "x$ac_ct_AR" = x; then
5241 AR=""
5242 else
5243 case $cross_compiling:$ac_tool_warned in
5244 yes:)
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5247 ac_tool_warned=yes ;;
5248 esac
5249 AR=$ac_ct_AR
5251 else
5252 AR="$ac_cv_prog_AR"
5255 if test -n "$ac_tool_prefix"; then
5256 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5257 set dummy ${ac_tool_prefix}nm; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_NM+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if test -n "$NM"; then
5264 ac_cv_prog_NM="$NM" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_NM="${ac_tool_prefix}nm"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5277 done
5278 done
5279 IFS=$as_save_IFS
5283 NM=$ac_cv_prog_NM
5284 if test -n "$NM"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5286 $as_echo "$NM" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5294 if test -z "$ac_cv_prog_NM"; then
5295 ac_ct_NM=$NM
5296 # Extract the first word of "nm", so it can be a program name with args.
5297 set dummy nm; ac_word=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 $as_echo_n "checking for $ac_word... " >&6; }
5300 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 if test -n "$ac_ct_NM"; then
5304 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5305 else
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_ac_ct_NM="nm"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5317 done
5318 done
5319 IFS=$as_save_IFS
5323 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5324 if test -n "$ac_ct_NM"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5326 $as_echo "$ac_ct_NM" >&6; }
5327 else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5332 if test "x$ac_ct_NM" = x; then
5333 NM=""
5334 else
5335 case $cross_compiling:$ac_tool_warned in
5336 yes:)
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5339 ac_tool_warned=yes ;;
5340 esac
5341 NM=$ac_ct_NM
5343 else
5344 NM="$ac_cv_prog_NM"
5347 if test -n "$ac_tool_prefix"; then
5348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5349 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_prog_RANLIB+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 if test -n "$RANLIB"; then
5356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5369 done
5370 done
5371 IFS=$as_save_IFS
5375 RANLIB=$ac_cv_prog_RANLIB
5376 if test -n "$RANLIB"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5378 $as_echo "$RANLIB" >&6; }
5379 else
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5386 if test -z "$ac_cv_prog_RANLIB"; then
5387 ac_ct_RANLIB=$RANLIB
5388 # Extract the first word of "ranlib", so it can be a program name with args.
5389 set dummy ranlib; ac_word=$2
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 if test -n "$ac_ct_RANLIB"; then
5396 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5397 else
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_prog_ac_ct_RANLIB="ranlib"
5406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5409 done
5410 done
5411 IFS=$as_save_IFS
5415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5416 if test -n "$ac_ct_RANLIB"; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5418 $as_echo "$ac_ct_RANLIB" >&6; }
5419 else
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5424 if test "x$ac_ct_RANLIB" = x; then
5425 RANLIB="ranlib-not-found-in-path-error"
5426 else
5427 case $cross_compiling:$ac_tool_warned in
5428 yes:)
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5431 ac_tool_warned=yes ;;
5432 esac
5433 RANLIB=$ac_ct_RANLIB
5435 else
5436 RANLIB="$ac_cv_prog_RANLIB"
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5440 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5441 set x ${MAKE-make}
5442 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5443 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 cat >conftest.make <<\_ACEOF
5447 SHELL = /bin/sh
5448 all:
5449 @echo '@@@%%%=$(MAKE)=@@@%%%'
5450 _ACEOF
5451 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5452 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5453 *@@@%%%=?*=@@@%%%*)
5454 eval ac_cv_prog_make_${ac_make}_set=yes;;
5456 eval ac_cv_prog_make_${ac_make}_set=no;;
5457 esac
5458 rm -f conftest.make
5460 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5462 $as_echo "yes" >&6; }
5463 SET_MAKE=
5464 else
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467 SET_MAKE="MAKE=${MAKE-make}"
5472 # See if makeinfo has been installed and is modern enough
5473 # that we can use it.
5475 # Extract the first word of "makeinfo", so it can be a program name with args.
5476 set dummy makeinfo; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if ${ac_cv_prog_MAKEINFO+:} false; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 if test -n "$MAKEINFO"; then
5483 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5484 else
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5492 ac_cv_prog_MAKEINFO="makeinfo"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5496 done
5497 done
5498 IFS=$as_save_IFS
5502 MAKEINFO=$ac_cv_prog_MAKEINFO
5503 if test -n "$MAKEINFO"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5505 $as_echo "$MAKEINFO" >&6; }
5506 else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5512 if test -n "$MAKEINFO"; then
5513 # Found it, now check the version.
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5515 $as_echo_n "checking for modern makeinfo... " >&6; }
5516 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5520 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5522 case $ac_prog_version in
5523 '') gcc_cv_prog_makeinfo_modern=no;;
5524 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
5525 *) gcc_cv_prog_makeinfo_modern=no;;
5526 esac
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5530 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5531 else
5532 gcc_cv_prog_makeinfo_modern=no
5534 if test $gcc_cv_prog_makeinfo_modern = no; then
5535 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5538 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5539 BUILD_INFO_TRUE=
5540 BUILD_INFO_FALSE='#'
5541 else
5542 BUILD_INFO_TRUE='#'
5543 BUILD_INFO_FALSE=
5548 # Configure libtool
5549 case `pwd` in
5550 *\ * | *\ *)
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5552 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5553 esac
5557 macro_version='2.2.7a'
5558 macro_revision='1.3134'
5572 ltmain="$ac_aux_dir/ltmain.sh"
5574 # Backslashify metacharacters that are still active within
5575 # double-quoted strings.
5576 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5578 # Same as above, but do not quote variable references.
5579 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5581 # Sed substitution to delay expansion of an escaped shell variable in a
5582 # double_quote_subst'ed string.
5583 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5585 # Sed substitution to delay expansion of an escaped single quote.
5586 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5588 # Sed substitution to avoid accidental globbing in evaled expressions
5589 no_glob_subst='s/\*/\\\*/g'
5591 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5592 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5593 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5596 $as_echo_n "checking how to print strings... " >&6; }
5597 # Test print first, because it will be a builtin if present.
5598 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5599 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5600 ECHO='print -r --'
5601 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5602 ECHO='printf %s\n'
5603 else
5604 # Use this function as a fallback that always works.
5605 func_fallback_echo ()
5607 eval 'cat <<_LTECHO_EOF
5609 _LTECHO_EOF'
5611 ECHO='func_fallback_echo'
5614 # func_echo_all arg...
5615 # Invoke $ECHO with all args, space-separated.
5616 func_echo_all ()
5618 $ECHO ""
5621 case "$ECHO" in
5622 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5623 $as_echo "printf" >&6; } ;;
5624 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5625 $as_echo "print -r" >&6; } ;;
5626 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5627 $as_echo "cat" >&6; } ;;
5628 esac
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5644 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5645 if ${ac_cv_path_SED+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5649 for ac_i in 1 2 3 4 5 6 7; do
5650 ac_script="$ac_script$as_nl$ac_script"
5651 done
5652 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5653 { ac_script=; unset ac_script;}
5654 if test -z "$SED"; then
5655 ac_path_SED_found=false
5656 # Loop through the user's path and test for each of PROGNAME-LIST
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_prog in sed gsed; do
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5665 as_fn_executable_p "$ac_path_SED" || continue
5666 # Check for GNU ac_path_SED and select it if it is found.
5667 # Check for GNU $ac_path_SED
5668 case `"$ac_path_SED" --version 2>&1` in
5669 *GNU*)
5670 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5672 ac_count=0
5673 $as_echo_n 0123456789 >"conftest.in"
5674 while :
5676 cat "conftest.in" "conftest.in" >"conftest.tmp"
5677 mv "conftest.tmp" "conftest.in"
5678 cp "conftest.in" "conftest.nl"
5679 $as_echo '' >> "conftest.nl"
5680 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5682 as_fn_arith $ac_count + 1 && ac_count=$as_val
5683 if test $ac_count -gt ${ac_path_SED_max-0}; then
5684 # Best one so far, save it but keep looking for a better one
5685 ac_cv_path_SED="$ac_path_SED"
5686 ac_path_SED_max=$ac_count
5688 # 10*(2^10) chars as input seems more than enough
5689 test $ac_count -gt 10 && break
5690 done
5691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5692 esac
5694 $ac_path_SED_found && break 3
5695 done
5696 done
5697 done
5698 IFS=$as_save_IFS
5699 if test -z "$ac_cv_path_SED"; then
5700 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5702 else
5703 ac_cv_path_SED=$SED
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5708 $as_echo "$ac_cv_path_SED" >&6; }
5709 SED="$ac_cv_path_SED"
5710 rm -f conftest.sed
5712 test -z "$SED" && SED=sed
5713 Xsed="$SED -e 1s/^X//"
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5726 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5727 if ${ac_cv_path_GREP+:} false; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 if test -z "$GREP"; then
5731 ac_path_GREP_found=false
5732 # Loop through the user's path and test for each of PROGNAME-LIST
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 for ac_prog in grep ggrep; do
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5741 as_fn_executable_p "$ac_path_GREP" || continue
5742 # Check for GNU ac_path_GREP and select it if it is found.
5743 # Check for GNU $ac_path_GREP
5744 case `"$ac_path_GREP" --version 2>&1` in
5745 *GNU*)
5746 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5748 ac_count=0
5749 $as_echo_n 0123456789 >"conftest.in"
5750 while :
5752 cat "conftest.in" "conftest.in" >"conftest.tmp"
5753 mv "conftest.tmp" "conftest.in"
5754 cp "conftest.in" "conftest.nl"
5755 $as_echo 'GREP' >> "conftest.nl"
5756 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5757 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5758 as_fn_arith $ac_count + 1 && ac_count=$as_val
5759 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5760 # Best one so far, save it but keep looking for a better one
5761 ac_cv_path_GREP="$ac_path_GREP"
5762 ac_path_GREP_max=$ac_count
5764 # 10*(2^10) chars as input seems more than enough
5765 test $ac_count -gt 10 && break
5766 done
5767 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5768 esac
5770 $ac_path_GREP_found && break 3
5771 done
5772 done
5773 done
5774 IFS=$as_save_IFS
5775 if test -z "$ac_cv_path_GREP"; then
5776 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5778 else
5779 ac_cv_path_GREP=$GREP
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5784 $as_echo "$ac_cv_path_GREP" >&6; }
5785 GREP="$ac_cv_path_GREP"
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5789 $as_echo_n "checking for egrep... " >&6; }
5790 if ${ac_cv_path_EGREP+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5794 then ac_cv_path_EGREP="$GREP -E"
5795 else
5796 if test -z "$EGREP"; then
5797 ac_path_EGREP_found=false
5798 # Loop through the user's path and test for each of PROGNAME-LIST
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_prog in egrep; do
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5807 as_fn_executable_p "$ac_path_EGREP" || continue
5808 # Check for GNU ac_path_EGREP and select it if it is found.
5809 # Check for GNU $ac_path_EGREP
5810 case `"$ac_path_EGREP" --version 2>&1` in
5811 *GNU*)
5812 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5814 ac_count=0
5815 $as_echo_n 0123456789 >"conftest.in"
5816 while :
5818 cat "conftest.in" "conftest.in" >"conftest.tmp"
5819 mv "conftest.tmp" "conftest.in"
5820 cp "conftest.in" "conftest.nl"
5821 $as_echo 'EGREP' >> "conftest.nl"
5822 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5824 as_fn_arith $ac_count + 1 && ac_count=$as_val
5825 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5826 # Best one so far, save it but keep looking for a better one
5827 ac_cv_path_EGREP="$ac_path_EGREP"
5828 ac_path_EGREP_max=$ac_count
5830 # 10*(2^10) chars as input seems more than enough
5831 test $ac_count -gt 10 && break
5832 done
5833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5834 esac
5836 $ac_path_EGREP_found && break 3
5837 done
5838 done
5839 done
5840 IFS=$as_save_IFS
5841 if test -z "$ac_cv_path_EGREP"; then
5842 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5844 else
5845 ac_cv_path_EGREP=$EGREP
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5851 $as_echo "$ac_cv_path_EGREP" >&6; }
5852 EGREP="$ac_cv_path_EGREP"
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5856 $as_echo_n "checking for fgrep... " >&6; }
5857 if ${ac_cv_path_FGREP+:} false; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5861 then ac_cv_path_FGREP="$GREP -F"
5862 else
5863 if test -z "$FGREP"; then
5864 ac_path_FGREP_found=false
5865 # Loop through the user's path and test for each of PROGNAME-LIST
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
5871 for ac_prog in fgrep; do
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5874 as_fn_executable_p "$ac_path_FGREP" || continue
5875 # Check for GNU ac_path_FGREP and select it if it is found.
5876 # Check for GNU $ac_path_FGREP
5877 case `"$ac_path_FGREP" --version 2>&1` in
5878 *GNU*)
5879 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5881 ac_count=0
5882 $as_echo_n 0123456789 >"conftest.in"
5883 while :
5885 cat "conftest.in" "conftest.in" >"conftest.tmp"
5886 mv "conftest.tmp" "conftest.in"
5887 cp "conftest.in" "conftest.nl"
5888 $as_echo 'FGREP' >> "conftest.nl"
5889 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5891 as_fn_arith $ac_count + 1 && ac_count=$as_val
5892 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5893 # Best one so far, save it but keep looking for a better one
5894 ac_cv_path_FGREP="$ac_path_FGREP"
5895 ac_path_FGREP_max=$ac_count
5897 # 10*(2^10) chars as input seems more than enough
5898 test $ac_count -gt 10 && break
5899 done
5900 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5901 esac
5903 $ac_path_FGREP_found && break 3
5904 done
5905 done
5906 done
5907 IFS=$as_save_IFS
5908 if test -z "$ac_cv_path_FGREP"; then
5909 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5911 else
5912 ac_cv_path_FGREP=$FGREP
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5918 $as_echo "$ac_cv_path_FGREP" >&6; }
5919 FGREP="$ac_cv_path_FGREP"
5922 test -z "$GREP" && GREP=grep
5942 # Check whether --with-gnu-ld was given.
5943 if test "${with_gnu_ld+set}" = set; then :
5944 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5945 else
5946 with_gnu_ld=no
5949 ac_prog=ld
5950 if test "$GCC" = yes; then
5951 # Check if gcc -print-prog-name=ld gives a path.
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5953 $as_echo_n "checking for ld used by $CC... " >&6; }
5954 case $host in
5955 *-*-mingw*)
5956 # gcc leaves a trailing carriage return which upsets mingw
5957 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5959 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5960 esac
5961 case $ac_prog in
5962 # Accept absolute paths.
5963 [\\/]* | ?:[\\/]*)
5964 re_direlt='/[^/][^/]*/\.\./'
5965 # Canonicalize the pathname of ld
5966 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5967 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5968 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5969 done
5970 test -z "$LD" && LD="$ac_prog"
5973 # If it fails, then pretend we aren't using GCC.
5974 ac_prog=ld
5977 # If it is relative, then search for the first ld in PATH.
5978 with_gnu_ld=unknown
5980 esac
5981 elif test "$with_gnu_ld" = yes; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5983 $as_echo_n "checking for GNU ld... " >&6; }
5984 else
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5986 $as_echo_n "checking for non-GNU ld... " >&6; }
5988 if ${lt_cv_path_LD+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 if test -z "$LD"; then
5992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5993 for ac_dir in $PATH; do
5994 IFS="$lt_save_ifs"
5995 test -z "$ac_dir" && ac_dir=.
5996 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5997 lt_cv_path_LD="$ac_dir/$ac_prog"
5998 # Check to see if the program is GNU ld. I'd rather use --version,
5999 # but apparently some variants of GNU ld only accept -v.
6000 # Break only if it was the GNU/non-GNU ld that we prefer.
6001 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6002 *GNU* | *'with BFD'*)
6003 test "$with_gnu_ld" != no && break
6006 test "$with_gnu_ld" != yes && break
6008 esac
6010 done
6011 IFS="$lt_save_ifs"
6012 else
6013 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6017 LD="$lt_cv_path_LD"
6018 if test -n "$LD"; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6020 $as_echo "$LD" >&6; }
6021 else
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023 $as_echo "no" >&6; }
6025 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6027 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6028 if ${lt_cv_prog_gnu_ld+:} false; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6031 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6032 case `$LD -v 2>&1 </dev/null` in
6033 *GNU* | *'with BFD'*)
6034 lt_cv_prog_gnu_ld=yes
6037 lt_cv_prog_gnu_ld=no
6039 esac
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6042 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6043 with_gnu_ld=$lt_cv_prog_gnu_ld
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6054 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6055 if ${lt_cv_path_NM+:} false; then :
6056 $as_echo_n "(cached) " >&6
6057 else
6058 if test -n "$NM"; then
6059 # Let the user override the test.
6060 lt_cv_path_NM="$NM"
6061 else
6062 lt_nm_to_check="${ac_tool_prefix}nm"
6063 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6064 lt_nm_to_check="$lt_nm_to_check nm"
6066 for lt_tmp_nm in $lt_nm_to_check; do
6067 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6068 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6069 IFS="$lt_save_ifs"
6070 test -z "$ac_dir" && ac_dir=.
6071 tmp_nm="$ac_dir/$lt_tmp_nm"
6072 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6073 # Check to see if the nm accepts a BSD-compat flag.
6074 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6075 # nm: unknown option "B" ignored
6076 # Tru64's nm complains that /dev/null is an invalid object file
6077 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6078 */dev/null* | *'Invalid file or object type'*)
6079 lt_cv_path_NM="$tmp_nm -B"
6080 break
6083 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6084 */dev/null*)
6085 lt_cv_path_NM="$tmp_nm -p"
6086 break
6089 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6090 continue # so that we can try to find one that supports BSD flags
6092 esac
6094 esac
6096 done
6097 IFS="$lt_save_ifs"
6098 done
6099 : ${lt_cv_path_NM=no}
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6103 $as_echo "$lt_cv_path_NM" >&6; }
6104 if test "$lt_cv_path_NM" != "no"; then
6105 NM="$lt_cv_path_NM"
6106 else
6107 # Didn't find any BSD compatible name lister, look for dumpbin.
6108 if test -n "$DUMPBIN"; then :
6109 # Let the user override the test.
6110 else
6111 if test -n "$ac_tool_prefix"; then
6112 for ac_prog in dumpbin "link -dump"
6114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6115 set dummy $ac_tool_prefix$ac_prog; 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 ${ac_cv_prog_DUMPBIN+:} false; then :
6119 $as_echo_n "(cached) " >&6
6120 else
6121 if test -n "$DUMPBIN"; then
6122 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6131 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 break 2
6135 done
6136 done
6137 IFS=$as_save_IFS
6141 DUMPBIN=$ac_cv_prog_DUMPBIN
6142 if test -n "$DUMPBIN"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6144 $as_echo "$DUMPBIN" >&6; }
6145 else
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6151 test -n "$DUMPBIN" && break
6152 done
6154 if test -z "$DUMPBIN"; then
6155 ac_ct_DUMPBIN=$DUMPBIN
6156 for ac_prog in dumpbin "link -dump"
6158 # Extract the first word of "$ac_prog", so it can be a program name with args.
6159 set dummy $ac_prog; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 if test -n "$ac_ct_DUMPBIN"; then
6166 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6171 IFS=$as_save_IFS
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 break 2
6179 done
6180 done
6181 IFS=$as_save_IFS
6185 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6186 if test -n "$ac_ct_DUMPBIN"; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6188 $as_echo "$ac_ct_DUMPBIN" >&6; }
6189 else
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6195 test -n "$ac_ct_DUMPBIN" && break
6196 done
6198 if test "x$ac_ct_DUMPBIN" = x; then
6199 DUMPBIN=":"
6200 else
6201 case $cross_compiling:$ac_tool_warned in
6202 yes:)
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6205 ac_tool_warned=yes ;;
6206 esac
6207 DUMPBIN=$ac_ct_DUMPBIN
6211 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6212 *COFF*)
6213 DUMPBIN="$DUMPBIN -symbols"
6216 DUMPBIN=:
6218 esac
6221 if test "$DUMPBIN" != ":"; then
6222 NM="$DUMPBIN"
6225 test -z "$NM" && NM=nm
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6233 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6234 if ${lt_cv_nm_interface+:} false; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 lt_cv_nm_interface="BSD nm"
6238 echo "int some_variable = 0;" > conftest.$ac_ext
6239 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6240 (eval "$ac_compile" 2>conftest.err)
6241 cat conftest.err >&5
6242 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6243 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6244 cat conftest.err >&5
6245 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6246 cat conftest.out >&5
6247 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6248 lt_cv_nm_interface="MS dumpbin"
6250 rm -f conftest*
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6253 $as_echo "$lt_cv_nm_interface" >&6; }
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6256 $as_echo_n "checking whether ln -s works... " >&6; }
6257 LN_S=$as_ln_s
6258 if test "$LN_S" = "ln -s"; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6260 $as_echo "yes" >&6; }
6261 else
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6263 $as_echo "no, using $LN_S" >&6; }
6266 # find the maximum length of command line arguments
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6268 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6269 if ${lt_cv_sys_max_cmd_len+:} false; then :
6270 $as_echo_n "(cached) " >&6
6271 else
6273 teststring="ABCD"
6275 case $build_os in
6276 msdosdjgpp*)
6277 # On DJGPP, this test can blow up pretty badly due to problems in libc
6278 # (any single argument exceeding 2000 bytes causes a buffer overrun
6279 # during glob expansion). Even if it were fixed, the result of this
6280 # check would be larger than it should be.
6281 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6284 gnu*)
6285 # Under GNU Hurd, this test is not required because there is
6286 # no limit to the length of command line arguments.
6287 # Libtool will interpret -1 as no limit whatsoever
6288 lt_cv_sys_max_cmd_len=-1;
6291 cygwin* | mingw* | cegcc*)
6292 # On Win9x/ME, this test blows up -- it succeeds, but takes
6293 # about 5 minutes as the teststring grows exponentially.
6294 # Worse, since 9x/ME are not pre-emptively multitasking,
6295 # you end up with a "frozen" computer, even though with patience
6296 # the test eventually succeeds (with a max line length of 256k).
6297 # Instead, let's just punt: use the minimum linelength reported by
6298 # all of the supported platforms: 8192 (on NT/2K/XP).
6299 lt_cv_sys_max_cmd_len=8192;
6302 mint*)
6303 # On MiNT this can take a long time and run out of memory.
6304 lt_cv_sys_max_cmd_len=8192;
6307 amigaos*)
6308 # On AmigaOS with pdksh, this test takes hours, literally.
6309 # So we just punt and use a minimum line length of 8192.
6310 lt_cv_sys_max_cmd_len=8192;
6313 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6314 # This has been around since 386BSD, at least. Likely further.
6315 if test -x /sbin/sysctl; then
6316 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6317 elif test -x /usr/sbin/sysctl; then
6318 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6319 else
6320 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6322 # And add a safety zone
6323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6327 interix*)
6328 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6329 lt_cv_sys_max_cmd_len=196608
6332 osf*)
6333 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6334 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6335 # nice to cause kernel panics so lets avoid the loop below.
6336 # First set a reasonable default.
6337 lt_cv_sys_max_cmd_len=16384
6339 if test -x /sbin/sysconfig; then
6340 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6341 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6342 esac
6345 sco3.2v5*)
6346 lt_cv_sys_max_cmd_len=102400
6348 sysv5* | sco5v6* | sysv4.2uw2*)
6349 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6350 if test -n "$kargmax"; then
6351 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6352 else
6353 lt_cv_sys_max_cmd_len=32768
6357 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6358 if test -n "$lt_cv_sys_max_cmd_len"; then
6359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6361 else
6362 # Make teststring a little bigger before we do anything with it.
6363 # a 1K string should be a reasonable start.
6364 for i in 1 2 3 4 5 6 7 8 ; do
6365 teststring=$teststring$teststring
6366 done
6367 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6368 # If test is not a shell built-in, we'll probably end up computing a
6369 # maximum length that is only half of the actual maximum length, but
6370 # we can't tell.
6371 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6372 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6373 test $i != 17 # 1/2 MB should be enough
6375 i=`expr $i + 1`
6376 teststring=$teststring$teststring
6377 done
6378 # Only check the string length outside the loop.
6379 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6380 teststring=
6381 # Add a significant safety factor because C++ compilers can tack on
6382 # massive amounts of additional arguments before passing them to the
6383 # linker. It appears as though 1/2 is a usable value.
6384 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6387 esac
6391 if test -n $lt_cv_sys_max_cmd_len ; then
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6393 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6394 else
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6396 $as_echo "none" >&6; }
6398 max_cmd_len=$lt_cv_sys_max_cmd_len
6405 : ${CP="cp -f"}
6406 : ${MV="mv -f"}
6407 : ${RM="rm -f"}
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6410 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6411 # Try some XSI features
6412 xsi_shell=no
6413 ( _lt_dummy="a/b/c"
6414 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6415 = c,a/b,, \
6416 && eval 'test $(( 1 + 1 )) -eq 2 \
6417 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6418 && xsi_shell=yes
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6420 $as_echo "$xsi_shell" >&6; }
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6424 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6425 lt_shell_append=no
6426 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6427 >/dev/null 2>&1 \
6428 && lt_shell_append=yes
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6430 $as_echo "$lt_shell_append" >&6; }
6433 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6434 lt_unset=unset
6435 else
6436 lt_unset=false
6443 # test EBCDIC or ASCII
6444 case `echo X|tr X '\101'` in
6445 A) # ASCII based system
6446 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6447 lt_SP2NL='tr \040 \012'
6448 lt_NL2SP='tr \015\012 \040\040'
6450 *) # EBCDIC based system
6451 lt_SP2NL='tr \100 \n'
6452 lt_NL2SP='tr \r\n \100\100'
6454 esac
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6465 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6466 if ${lt_cv_ld_reload_flag+:} false; then :
6467 $as_echo_n "(cached) " >&6
6468 else
6469 lt_cv_ld_reload_flag='-r'
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6472 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6473 reload_flag=$lt_cv_ld_reload_flag
6474 case $reload_flag in
6475 "" | " "*) ;;
6476 *) reload_flag=" $reload_flag" ;;
6477 esac
6478 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6479 case $host_os in
6480 darwin*)
6481 if test "$GCC" = yes; then
6482 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6483 else
6484 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6487 esac
6497 if test -n "$ac_tool_prefix"; then
6498 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6499 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if ${ac_cv_prog_OBJDUMP+:} false; then :
6503 $as_echo_n "(cached) " >&6
6504 else
6505 if test -n "$OBJDUMP"; then
6506 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6507 else
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6511 IFS=$as_save_IFS
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 break 2
6519 done
6520 done
6521 IFS=$as_save_IFS
6525 OBJDUMP=$ac_cv_prog_OBJDUMP
6526 if test -n "$OBJDUMP"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6528 $as_echo "$OBJDUMP" >&6; }
6529 else
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6536 if test -z "$ac_cv_prog_OBJDUMP"; then
6537 ac_ct_OBJDUMP=$OBJDUMP
6538 # Extract the first word of "objdump", so it can be a program name with args.
6539 set dummy objdump; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 if test -n "$ac_ct_OBJDUMP"; then
6546 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6555 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6559 done
6560 done
6561 IFS=$as_save_IFS
6565 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6566 if test -n "$ac_ct_OBJDUMP"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6568 $as_echo "$ac_ct_OBJDUMP" >&6; }
6569 else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6574 if test "x$ac_ct_OBJDUMP" = x; then
6575 OBJDUMP="false"
6576 else
6577 case $cross_compiling:$ac_tool_warned in
6578 yes:)
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6581 ac_tool_warned=yes ;;
6582 esac
6583 OBJDUMP=$ac_ct_OBJDUMP
6585 else
6586 OBJDUMP="$ac_cv_prog_OBJDUMP"
6589 test -z "$OBJDUMP" && OBJDUMP=objdump
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6600 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6601 if ${lt_cv_deplibs_check_method+:} false; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6604 lt_cv_file_magic_cmd='$MAGIC_CMD'
6605 lt_cv_file_magic_test_file=
6606 lt_cv_deplibs_check_method='unknown'
6607 # Need to set the preceding variable on all platforms that support
6608 # interlibrary dependencies.
6609 # 'none' -- dependencies not supported.
6610 # `unknown' -- same as none, but documents that we really don't know.
6611 # 'pass_all' -- all dependencies passed with no checks.
6612 # 'test_compile' -- check by making test program.
6613 # 'file_magic [[regex]]' -- check by looking for files in library path
6614 # which responds to the $file_magic_cmd with a given extended regex.
6615 # If you have `file' or equivalent on your system and you're not sure
6616 # whether `pass_all' will *always* work, you probably want this one.
6618 case $host_os in
6619 aix[4-9]*)
6620 lt_cv_deplibs_check_method=pass_all
6623 beos*)
6624 lt_cv_deplibs_check_method=pass_all
6627 bsdi[45]*)
6628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6629 lt_cv_file_magic_cmd='/usr/bin/file -L'
6630 lt_cv_file_magic_test_file=/shlib/libc.so
6633 cygwin*)
6634 # func_win32_libid is a shell function defined in ltmain.sh
6635 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6636 lt_cv_file_magic_cmd='func_win32_libid'
6639 mingw* | pw32*)
6640 # Base MSYS/MinGW do not provide the 'file' command needed by
6641 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6642 # unless we find 'file', for example because we are cross-compiling.
6643 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6644 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6645 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6646 lt_cv_file_magic_cmd='func_win32_libid'
6647 else
6648 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6649 lt_cv_file_magic_cmd='$OBJDUMP -f'
6653 cegcc*)
6654 # use the weaker test based on 'objdump'. See mingw*.
6655 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6656 lt_cv_file_magic_cmd='$OBJDUMP -f'
6659 darwin* | rhapsody*)
6660 lt_cv_deplibs_check_method=pass_all
6663 freebsd* | dragonfly*)
6664 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6665 case $host_cpu in
6666 i*86 )
6667 # Not sure whether the presence of OpenBSD here was a mistake.
6668 # Let's accept both of them until this is cleared up.
6669 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6670 lt_cv_file_magic_cmd=/usr/bin/file
6671 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6673 esac
6674 else
6675 lt_cv_deplibs_check_method=pass_all
6679 gnu*)
6680 lt_cv_deplibs_check_method=pass_all
6683 haiku*)
6684 lt_cv_deplibs_check_method=pass_all
6687 hpux10.20* | hpux11*)
6688 lt_cv_file_magic_cmd=/usr/bin/file
6689 case $host_cpu in
6690 ia64*)
6691 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6692 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6694 hppa*64*)
6695 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]'
6696 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6699 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6700 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6702 esac
6705 interix[3-9]*)
6706 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6710 irix5* | irix6* | nonstopux*)
6711 case $LD in
6712 *-32|*"-32 ") libmagic=32-bit;;
6713 *-n32|*"-n32 ") libmagic=N32;;
6714 *-64|*"-64 ") libmagic=64-bit;;
6715 *) libmagic=never-match;;
6716 esac
6717 lt_cv_deplibs_check_method=pass_all
6720 # This must be Linux ELF.
6721 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6722 lt_cv_deplibs_check_method=pass_all
6725 netbsd*)
6726 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6728 else
6729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6733 newos6*)
6734 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6735 lt_cv_file_magic_cmd=/usr/bin/file
6736 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6739 *nto* | *qnx*)
6740 lt_cv_deplibs_check_method=pass_all
6743 openbsd*)
6744 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6746 else
6747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6751 osf3* | osf4* | osf5*)
6752 lt_cv_deplibs_check_method=pass_all
6755 rdos*)
6756 lt_cv_deplibs_check_method=pass_all
6759 solaris*)
6760 lt_cv_deplibs_check_method=pass_all
6763 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6764 lt_cv_deplibs_check_method=pass_all
6767 sysv4 | sysv4.3*)
6768 case $host_vendor in
6769 motorola)
6770 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]'
6771 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6773 ncr)
6774 lt_cv_deplibs_check_method=pass_all
6776 sequent)
6777 lt_cv_file_magic_cmd='/bin/file'
6778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6780 sni)
6781 lt_cv_file_magic_cmd='/bin/file'
6782 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6783 lt_cv_file_magic_test_file=/lib/libc.so
6785 siemens)
6786 lt_cv_deplibs_check_method=pass_all
6789 lt_cv_deplibs_check_method=pass_all
6791 esac
6794 tpf*)
6795 lt_cv_deplibs_check_method=pass_all
6797 vxworks*)
6798 # Assume VxWorks cross toolchains are built on Linux, possibly
6799 # as canadian for Windows hosts.
6800 lt_cv_deplibs_check_method=pass_all
6802 esac
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6806 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6807 file_magic_cmd=$lt_cv_file_magic_cmd
6808 deplibs_check_method=$lt_cv_deplibs_check_method
6809 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6822 if test -n "$ac_tool_prefix"; then
6823 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6824 set dummy ${ac_tool_prefix}ar; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if ${ac_cv_prog_AR+:} false; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 if test -n "$AR"; then
6831 ac_cv_prog_AR="$AR" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6836 IFS=$as_save_IFS
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6840 ac_cv_prog_AR="${ac_tool_prefix}ar"
6841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842 break 2
6844 done
6845 done
6846 IFS=$as_save_IFS
6850 AR=$ac_cv_prog_AR
6851 if test -n "$AR"; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6853 $as_echo "$AR" >&6; }
6854 else
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6861 if test -z "$ac_cv_prog_AR"; then
6862 ac_ct_AR=$AR
6863 # Extract the first word of "ar", so it can be a program name with args.
6864 set dummy ar; ac_word=$2
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866 $as_echo_n "checking for $ac_word... " >&6; }
6867 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 if test -n "$ac_ct_AR"; then
6871 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6872 else
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6880 ac_cv_prog_ac_ct_AR="ar"
6881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 break 2
6884 done
6885 done
6886 IFS=$as_save_IFS
6890 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6891 if test -n "$ac_ct_AR"; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6893 $as_echo "$ac_ct_AR" >&6; }
6894 else
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6899 if test "x$ac_ct_AR" = x; then
6900 AR="false"
6901 else
6902 case $cross_compiling:$ac_tool_warned in
6903 yes:)
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6906 ac_tool_warned=yes ;;
6907 esac
6908 AR=$ac_ct_AR
6910 else
6911 AR="$ac_cv_prog_AR"
6914 test -z "$AR" && AR=ar
6915 test -z "$AR_FLAGS" && AR_FLAGS=cru
6927 if test -n "$ac_tool_prefix"; then
6928 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6929 set dummy ${ac_tool_prefix}strip; 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 ${ac_cv_prog_STRIP+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 if test -n "$STRIP"; then
6936 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6937 else
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6945 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6949 done
6950 done
6951 IFS=$as_save_IFS
6955 STRIP=$ac_cv_prog_STRIP
6956 if test -n "$STRIP"; then
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6958 $as_echo "$STRIP" >&6; }
6959 else
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 $as_echo "no" >&6; }
6966 if test -z "$ac_cv_prog_STRIP"; then
6967 ac_ct_STRIP=$STRIP
6968 # Extract the first word of "strip", so it can be a program name with args.
6969 set dummy strip; 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 ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6973 $as_echo_n "(cached) " >&6
6974 else
6975 if test -n "$ac_ct_STRIP"; then
6976 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6977 else
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6985 ac_cv_prog_ac_ct_STRIP="strip"
6986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 break 2
6989 done
6990 done
6991 IFS=$as_save_IFS
6995 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6996 if test -n "$ac_ct_STRIP"; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6998 $as_echo "$ac_ct_STRIP" >&6; }
6999 else
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7004 if test "x$ac_ct_STRIP" = x; then
7005 STRIP=":"
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 STRIP=$ac_ct_STRIP
7015 else
7016 STRIP="$ac_cv_prog_STRIP"
7019 test -z "$STRIP" && STRIP=:
7026 if test -n "$ac_tool_prefix"; then
7027 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7028 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_prog_RANLIB+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 if test -n "$RANLIB"; then
7035 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7036 else
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7048 done
7049 done
7050 IFS=$as_save_IFS
7054 RANLIB=$ac_cv_prog_RANLIB
7055 if test -n "$RANLIB"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7057 $as_echo "$RANLIB" >&6; }
7058 else
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7065 if test -z "$ac_cv_prog_RANLIB"; then
7066 ac_ct_RANLIB=$RANLIB
7067 # Extract the first word of "ranlib", so it can be a program name with args.
7068 set dummy ranlib; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 $as_echo_n "checking for $ac_word... " >&6; }
7071 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074 if test -n "$ac_ct_RANLIB"; then
7075 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084 ac_cv_prog_ac_ct_RANLIB="ranlib"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7088 done
7089 done
7090 IFS=$as_save_IFS
7094 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7095 if test -n "$ac_ct_RANLIB"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7097 $as_echo "$ac_ct_RANLIB" >&6; }
7098 else
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7103 if test "x$ac_ct_RANLIB" = x; then
7104 RANLIB=":"
7105 else
7106 case $cross_compiling:$ac_tool_warned in
7107 yes:)
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110 ac_tool_warned=yes ;;
7111 esac
7112 RANLIB=$ac_ct_RANLIB
7114 else
7115 RANLIB="$ac_cv_prog_RANLIB"
7118 test -z "$RANLIB" && RANLIB=:
7125 # Determine commands to create old-style static archives.
7126 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7127 old_postinstall_cmds='chmod 644 $oldlib'
7128 old_postuninstall_cmds=
7130 if test -n "$RANLIB"; then
7131 case $host_os in
7132 openbsd*)
7133 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7136 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7138 esac
7139 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7142 case $host_os in
7143 darwin*)
7144 lock_old_archive_extraction=yes ;;
7146 lock_old_archive_extraction=no ;;
7147 esac
7187 # If no C compiler was specified, use CC.
7188 LTCC=${LTCC-"$CC"}
7190 # If no C compiler flags were specified, use CFLAGS.
7191 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7193 # Allow CC to be a program name with arguments.
7194 compiler=$CC
7197 # Check for command to grab the raw symbol name followed by C symbol from nm.
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7199 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7200 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7201 $as_echo_n "(cached) " >&6
7202 else
7204 # These are sane defaults that work on at least a few old systems.
7205 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7207 # Character class describing NM global symbol codes.
7208 symcode='[BCDEGRST]'
7210 # Regexp to match symbols that can be accessed directly from C.
7211 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7213 # Define system-specific variables.
7214 case $host_os in
7215 aix*)
7216 symcode='[BCDT]'
7218 cygwin* | mingw* | pw32* | cegcc*)
7219 symcode='[ABCDGISTW]'
7221 hpux*)
7222 if test "$host_cpu" = ia64; then
7223 symcode='[ABCDEGRST]'
7226 irix* | nonstopux*)
7227 symcode='[BCDEGRST]'
7229 osf*)
7230 symcode='[BCDEGQRST]'
7232 solaris*)
7233 symcode='[BDRT]'
7235 sco3.2v5*)
7236 symcode='[DT]'
7238 sysv4.2uw2*)
7239 symcode='[DT]'
7241 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7242 symcode='[ABDT]'
7244 sysv4)
7245 symcode='[DFNSTU]'
7247 esac
7249 # If we're using GNU nm, then use its standard symbol codes.
7250 case `$NM -V 2>&1` in
7251 *GNU* | *'with BFD'*)
7252 symcode='[ABCDGIRSTW]' ;;
7253 esac
7255 # Transform an extracted symbol line into a proper C declaration.
7256 # Some systems (esp. on ia64) link data and code symbols differently,
7257 # so use this general approach.
7258 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7260 # Transform an extracted symbol line into symbol name and symbol address
7261 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7262 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'"
7264 # Handle CRLF in mingw tool chain
7265 opt_cr=
7266 case $build_os in
7267 mingw*)
7268 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7270 esac
7272 # Try without a prefix underscore, then with it.
7273 for ac_symprfx in "" "_"; do
7275 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7276 symxfrm="\\1 $ac_symprfx\\2 \\2"
7278 # Write the raw and C identifiers.
7279 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7280 # Fake it for dumpbin and say T for any non-static function
7281 # and D for any global variable.
7282 # Also find C++ and __fastcall symbols from MSVC++,
7283 # which start with @ or ?.
7284 lt_cv_sys_global_symbol_pipe="$AWK '"\
7285 " {last_section=section; section=\$ 3};"\
7286 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7287 " \$ 0!~/External *\|/{next};"\
7288 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7289 " {if(hide[section]) next};"\
7290 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7291 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7292 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7293 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7294 " ' prfx=^$ac_symprfx"
7295 else
7296 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7299 # Check to see that the pipe works correctly.
7300 pipe_works=no
7302 rm -f conftest*
7303 cat > conftest.$ac_ext <<_LT_EOF
7304 #ifdef __cplusplus
7305 extern "C" {
7306 #endif
7307 char nm_test_var;
7308 void nm_test_func(void);
7309 void nm_test_func(void){}
7310 #ifdef __cplusplus
7312 #endif
7313 int main(){nm_test_var='a';nm_test_func();return(0);}
7314 _LT_EOF
7316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7317 (eval $ac_compile) 2>&5
7318 ac_status=$?
7319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7320 test $ac_status = 0; }; then
7321 # Now try to grab the symbols.
7322 nlist=conftest.nm
7323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7324 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7325 ac_status=$?
7326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7327 test $ac_status = 0; } && test -s "$nlist"; then
7328 # Try sorting and uniquifying the output.
7329 if sort "$nlist" | uniq > "$nlist"T; then
7330 mv -f "$nlist"T "$nlist"
7331 else
7332 rm -f "$nlist"T
7335 # Make sure that we snagged all the symbols we need.
7336 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7337 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7338 cat <<_LT_EOF > conftest.$ac_ext
7339 #ifdef __cplusplus
7340 extern "C" {
7341 #endif
7343 _LT_EOF
7344 # Now generate the symbol file.
7345 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7347 cat <<_LT_EOF >> conftest.$ac_ext
7349 /* The mapping between symbol names and symbols. */
7350 const struct {
7351 const char *name;
7352 void *address;
7354 lt__PROGRAM__LTX_preloaded_symbols[] =
7356 { "@PROGRAM@", (void *) 0 },
7357 _LT_EOF
7358 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7359 cat <<\_LT_EOF >> conftest.$ac_ext
7360 {0, (void *) 0}
7363 /* This works around a problem in FreeBSD linker */
7364 #ifdef FREEBSD_WORKAROUND
7365 static const void *lt_preloaded_setup() {
7366 return lt__PROGRAM__LTX_preloaded_symbols;
7368 #endif
7370 #ifdef __cplusplus
7372 #endif
7373 _LT_EOF
7374 # Now try linking the two files.
7375 mv conftest.$ac_objext conftstm.$ac_objext
7376 lt_save_LIBS="$LIBS"
7377 lt_save_CFLAGS="$CFLAGS"
7378 LIBS="conftstm.$ac_objext"
7379 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7381 (eval $ac_link) 2>&5
7382 ac_status=$?
7383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7384 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7385 pipe_works=yes
7387 LIBS="$lt_save_LIBS"
7388 CFLAGS="$lt_save_CFLAGS"
7389 else
7390 echo "cannot find nm_test_func in $nlist" >&5
7392 else
7393 echo "cannot find nm_test_var in $nlist" >&5
7395 else
7396 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7398 else
7399 echo "$progname: failed program was:" >&5
7400 cat conftest.$ac_ext >&5
7402 rm -rf conftest* conftst*
7404 # Do not use the global_symbol_pipe unless it works.
7405 if test "$pipe_works" = yes; then
7406 break
7407 else
7408 lt_cv_sys_global_symbol_pipe=
7410 done
7414 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7415 lt_cv_sys_global_symbol_to_cdecl=
7417 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7419 $as_echo "failed" >&6; }
7420 else
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7422 $as_echo "ok" >&6; }
7447 # Check whether --enable-libtool-lock was given.
7448 if test "${enable_libtool_lock+set}" = set; then :
7449 enableval=$enable_libtool_lock;
7452 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7454 # Some flags need to be propagated to the compiler or linker for good
7455 # libtool support.
7456 case $host in
7457 ia64-*-hpux*)
7458 # Find out which ABI we are using.
7459 echo 'int i;' > conftest.$ac_ext
7460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7461 (eval $ac_compile) 2>&5
7462 ac_status=$?
7463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7464 test $ac_status = 0; }; then
7465 case `/usr/bin/file conftest.$ac_objext` in
7466 *ELF-32*)
7467 HPUX_IA64_MODE="32"
7469 *ELF-64*)
7470 HPUX_IA64_MODE="64"
7472 esac
7474 rm -rf conftest*
7476 *-*-irix6*)
7477 # Find out which ABI we are using.
7478 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7480 (eval $ac_compile) 2>&5
7481 ac_status=$?
7482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7483 test $ac_status = 0; }; then
7484 if test "$lt_cv_prog_gnu_ld" = yes; then
7485 case `/usr/bin/file conftest.$ac_objext` in
7486 *32-bit*)
7487 LD="${LD-ld} -melf32bsmip"
7489 *N32*)
7490 LD="${LD-ld} -melf32bmipn32"
7492 *64-bit*)
7493 LD="${LD-ld} -melf64bmip"
7495 esac
7496 else
7497 case `/usr/bin/file conftest.$ac_objext` in
7498 *32-bit*)
7499 LD="${LD-ld} -32"
7501 *N32*)
7502 LD="${LD-ld} -n32"
7504 *64-bit*)
7505 LD="${LD-ld} -64"
7507 esac
7510 rm -rf conftest*
7513 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7514 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7515 # Find out which ABI we are using.
7516 echo 'int i;' > conftest.$ac_ext
7517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7518 (eval $ac_compile) 2>&5
7519 ac_status=$?
7520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7521 test $ac_status = 0; }; then
7522 case `/usr/bin/file conftest.o` in
7523 *32-bit*)
7524 case $host in
7525 x86_64-*kfreebsd*-gnu)
7526 LD="${LD-ld} -m elf_i386_fbsd"
7528 x86_64-*linux*)
7529 case `/usr/bin/file conftest.o` in
7530 *x86-64*)
7531 LD="${LD-ld} -m elf32_x86_64"
7534 LD="${LD-ld} -m elf_i386"
7536 esac
7538 powerpc64le-*linux*)
7539 LD="${LD-ld} -m elf32lppclinux"
7541 powerpc64-*linux*)
7542 LD="${LD-ld} -m elf32ppclinux"
7544 s390x-*linux*)
7545 LD="${LD-ld} -m elf_s390"
7547 sparc64-*linux*)
7548 LD="${LD-ld} -m elf32_sparc"
7550 esac
7552 *64-bit*)
7553 case $host in
7554 x86_64-*kfreebsd*-gnu)
7555 LD="${LD-ld} -m elf_x86_64_fbsd"
7557 x86_64-*linux*)
7558 LD="${LD-ld} -m elf_x86_64"
7560 powerpcle-*linux*)
7561 LD="${LD-ld} -m elf64lppc"
7563 powerpc-*linux*)
7564 LD="${LD-ld} -m elf64ppc"
7566 s390*-*linux*|s390*-*tpf*)
7567 LD="${LD-ld} -m elf64_s390"
7569 sparc*-*linux*)
7570 LD="${LD-ld} -m elf64_sparc"
7572 esac
7574 esac
7576 rm -rf conftest*
7579 *-*-sco3.2v5*)
7580 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7581 SAVE_CFLAGS="$CFLAGS"
7582 CFLAGS="$CFLAGS -belf"
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7584 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7585 if ${lt_cv_cc_needs_belf+:} false; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 ac_ext=c
7589 ac_cpp='$CPP $CPPFLAGS'
7590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7598 main ()
7602 return 0;
7604 _ACEOF
7605 if ac_fn_c_try_link "$LINENO"; then :
7606 lt_cv_cc_needs_belf=yes
7607 else
7608 lt_cv_cc_needs_belf=no
7610 rm -f core conftest.err conftest.$ac_objext \
7611 conftest$ac_exeext conftest.$ac_ext
7612 ac_ext=c
7613 ac_cpp='$CPP $CPPFLAGS'
7614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7620 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7621 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7622 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7623 CFLAGS="$SAVE_CFLAGS"
7626 sparc*-*solaris*)
7627 # Find out which ABI we are using.
7628 echo 'int i;' > conftest.$ac_ext
7629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7630 (eval $ac_compile) 2>&5
7631 ac_status=$?
7632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7633 test $ac_status = 0; }; then
7634 case `/usr/bin/file conftest.o` in
7635 *64-bit*)
7636 case $lt_cv_prog_gnu_ld in
7637 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7639 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7640 LD="${LD-ld} -64"
7643 esac
7645 esac
7647 rm -rf conftest*
7649 esac
7651 need_locks="$enable_libtool_lock"
7654 case $host_os in
7655 rhapsody* | darwin*)
7656 if test -n "$ac_tool_prefix"; then
7657 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7658 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7662 $as_echo_n "(cached) " >&6
7663 else
7664 if test -n "$DSYMUTIL"; then
7665 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7666 else
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7674 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7678 done
7679 done
7680 IFS=$as_save_IFS
7684 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7685 if test -n "$DSYMUTIL"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7687 $as_echo "$DSYMUTIL" >&6; }
7688 else
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7695 if test -z "$ac_cv_prog_DSYMUTIL"; then
7696 ac_ct_DSYMUTIL=$DSYMUTIL
7697 # Extract the first word of "dsymutil", so it can be a program name with args.
7698 set dummy dsymutil; ac_word=$2
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700 $as_echo_n "checking for $ac_word... " >&6; }
7701 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 if test -n "$ac_ct_DSYMUTIL"; then
7705 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7706 else
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7718 done
7719 done
7720 IFS=$as_save_IFS
7724 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7725 if test -n "$ac_ct_DSYMUTIL"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7727 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7728 else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7733 if test "x$ac_ct_DSYMUTIL" = x; then
7734 DSYMUTIL=":"
7735 else
7736 case $cross_compiling:$ac_tool_warned in
7737 yes:)
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7740 ac_tool_warned=yes ;;
7741 esac
7742 DSYMUTIL=$ac_ct_DSYMUTIL
7744 else
7745 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7748 if test -n "$ac_tool_prefix"; then
7749 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7750 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if ${ac_cv_prog_NMEDIT+:} false; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 if test -n "$NMEDIT"; then
7757 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7758 else
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7766 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 break 2
7770 done
7771 done
7772 IFS=$as_save_IFS
7776 NMEDIT=$ac_cv_prog_NMEDIT
7777 if test -n "$NMEDIT"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7779 $as_echo "$NMEDIT" >&6; }
7780 else
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 $as_echo "no" >&6; }
7787 if test -z "$ac_cv_prog_NMEDIT"; then
7788 ac_ct_NMEDIT=$NMEDIT
7789 # Extract the first word of "nmedit", so it can be a program name with args.
7790 set dummy nmedit; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 if test -n "$ac_ct_NMEDIT"; then
7797 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7798 else
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7810 done
7811 done
7812 IFS=$as_save_IFS
7816 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7817 if test -n "$ac_ct_NMEDIT"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7819 $as_echo "$ac_ct_NMEDIT" >&6; }
7820 else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7825 if test "x$ac_ct_NMEDIT" = x; then
7826 NMEDIT=":"
7827 else
7828 case $cross_compiling:$ac_tool_warned in
7829 yes:)
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7832 ac_tool_warned=yes ;;
7833 esac
7834 NMEDIT=$ac_ct_NMEDIT
7836 else
7837 NMEDIT="$ac_cv_prog_NMEDIT"
7840 if test -n "$ac_tool_prefix"; then
7841 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7842 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if ${ac_cv_prog_LIPO+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 if test -n "$LIPO"; then
7849 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7862 done
7863 done
7864 IFS=$as_save_IFS
7868 LIPO=$ac_cv_prog_LIPO
7869 if test -n "$LIPO"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7871 $as_echo "$LIPO" >&6; }
7872 else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7879 if test -z "$ac_cv_prog_LIPO"; then
7880 ac_ct_LIPO=$LIPO
7881 # Extract the first word of "lipo", so it can be a program name with args.
7882 set dummy lipo; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 if test -n "$ac_ct_LIPO"; then
7889 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7890 else
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_ac_ct_LIPO="lipo"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7902 done
7903 done
7904 IFS=$as_save_IFS
7908 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7909 if test -n "$ac_ct_LIPO"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7911 $as_echo "$ac_ct_LIPO" >&6; }
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7917 if test "x$ac_ct_LIPO" = x; then
7918 LIPO=":"
7919 else
7920 case $cross_compiling:$ac_tool_warned in
7921 yes:)
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7924 ac_tool_warned=yes ;;
7925 esac
7926 LIPO=$ac_ct_LIPO
7928 else
7929 LIPO="$ac_cv_prog_LIPO"
7932 if test -n "$ac_tool_prefix"; then
7933 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7934 set dummy ${ac_tool_prefix}otool; ac_word=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if ${ac_cv_prog_OTOOL+:} false; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 if test -n "$OTOOL"; then
7941 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7942 else
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 for as_dir in $PATH
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7954 done
7955 done
7956 IFS=$as_save_IFS
7960 OTOOL=$ac_cv_prog_OTOOL
7961 if test -n "$OTOOL"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7963 $as_echo "$OTOOL" >&6; }
7964 else
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7971 if test -z "$ac_cv_prog_OTOOL"; then
7972 ac_ct_OTOOL=$OTOOL
7973 # Extract the first word of "otool", so it can be a program name with args.
7974 set dummy otool; ac_word=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 $as_echo_n "checking for $ac_word... " >&6; }
7977 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 if test -n "$ac_ct_OTOOL"; then
7981 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_ac_ct_OTOOL="otool"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7994 done
7995 done
7996 IFS=$as_save_IFS
8000 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8001 if test -n "$ac_ct_OTOOL"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8003 $as_echo "$ac_ct_OTOOL" >&6; }
8004 else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8009 if test "x$ac_ct_OTOOL" = x; then
8010 OTOOL=":"
8011 else
8012 case $cross_compiling:$ac_tool_warned in
8013 yes:)
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8016 ac_tool_warned=yes ;;
8017 esac
8018 OTOOL=$ac_ct_OTOOL
8020 else
8021 OTOOL="$ac_cv_prog_OTOOL"
8024 if test -n "$ac_tool_prefix"; then
8025 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8026 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028 $as_echo_n "checking for $ac_word... " >&6; }
8029 if ${ac_cv_prog_OTOOL64+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 if test -n "$OTOOL64"; then
8033 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8034 else
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 break 2
8046 done
8047 done
8048 IFS=$as_save_IFS
8052 OTOOL64=$ac_cv_prog_OTOOL64
8053 if test -n "$OTOOL64"; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8055 $as_echo "$OTOOL64" >&6; }
8056 else
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 $as_echo "no" >&6; }
8063 if test -z "$ac_cv_prog_OTOOL64"; then
8064 ac_ct_OTOOL64=$OTOOL64
8065 # Extract the first word of "otool64", so it can be a program name with args.
8066 set dummy otool64; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 if test -n "$ac_ct_OTOOL64"; then
8073 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_ac_ct_OTOOL64="otool64"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8086 done
8087 done
8088 IFS=$as_save_IFS
8092 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8093 if test -n "$ac_ct_OTOOL64"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8095 $as_echo "$ac_ct_OTOOL64" >&6; }
8096 else
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8101 if test "x$ac_ct_OTOOL64" = x; then
8102 OTOOL64=":"
8103 else
8104 case $cross_compiling:$ac_tool_warned in
8105 yes:)
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8108 ac_tool_warned=yes ;;
8109 esac
8110 OTOOL64=$ac_ct_OTOOL64
8112 else
8113 OTOOL64="$ac_cv_prog_OTOOL64"
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8143 $as_echo_n "checking for -single_module linker flag... " >&6; }
8144 if ${lt_cv_apple_cc_single_mod+:} false; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 lt_cv_apple_cc_single_mod=no
8148 if test -z "${LT_MULTI_MODULE}"; then
8149 # By default we will add the -single_module flag. You can override
8150 # by either setting the environment variable LT_MULTI_MODULE
8151 # non-empty at configure time, or by adding -multi_module to the
8152 # link flags.
8153 rm -rf libconftest.dylib*
8154 echo "int foo(void){return 1;}" > conftest.c
8155 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8156 -dynamiclib -Wl,-single_module conftest.c" >&5
8157 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8158 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8159 _lt_result=$?
8160 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8161 lt_cv_apple_cc_single_mod=yes
8162 else
8163 cat conftest.err >&5
8165 rm -rf libconftest.dylib*
8166 rm -f conftest.*
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8170 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8172 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8173 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 lt_cv_ld_exported_symbols_list=no
8177 save_LDFLAGS=$LDFLAGS
8178 echo "_main" > conftest.sym
8179 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8184 main ()
8188 return 0;
8190 _ACEOF
8191 if ac_fn_c_try_link "$LINENO"; then :
8192 lt_cv_ld_exported_symbols_list=yes
8193 else
8194 lt_cv_ld_exported_symbols_list=no
8196 rm -f core conftest.err conftest.$ac_objext \
8197 conftest$ac_exeext conftest.$ac_ext
8198 LDFLAGS="$save_LDFLAGS"
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8202 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8204 $as_echo_n "checking for -force_load linker flag... " >&6; }
8205 if ${lt_cv_ld_force_load+:} false; then :
8206 $as_echo_n "(cached) " >&6
8207 else
8208 lt_cv_ld_force_load=no
8209 cat > conftest.c << _LT_EOF
8210 int forced_loaded() { return 2;}
8211 _LT_EOF
8212 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8213 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8214 echo "$AR cru libconftest.a conftest.o" >&5
8215 $AR cru libconftest.a conftest.o 2>&5
8216 cat > conftest.c << _LT_EOF
8217 int main() { return 0;}
8218 _LT_EOF
8219 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8220 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8221 _lt_result=$?
8222 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8223 lt_cv_ld_force_load=yes
8224 else
8225 cat conftest.err >&5
8227 rm -f conftest.err libconftest.a conftest conftest.c
8228 rm -rf conftest.dSYM
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8232 $as_echo "$lt_cv_ld_force_load" >&6; }
8233 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8234 # build without first building modern cctools / linker.
8235 case $host_cpu-$host_os in
8236 *-rhapsody* | *-darwin1.[012])
8237 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8238 *-darwin1.*)
8239 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8240 *-darwin*)
8241 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8242 # deployment target is forced to an earlier version.
8243 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8244 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8246 10.[012][,.]*)
8247 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8251 esac
8253 esac
8254 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8255 _lt_dar_single_mod='$single_module'
8257 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8258 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8259 else
8260 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8262 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8263 _lt_dsymutil='~$DSYMUTIL $lib || :'
8264 else
8265 _lt_dsymutil=
8268 esac
8270 ac_ext=c
8271 ac_cpp='$CPP $CPPFLAGS'
8272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8276 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8277 # On Suns, sometimes $CPP names a directory.
8278 if test -n "$CPP" && test -d "$CPP"; then
8279 CPP=
8281 if test -z "$CPP"; then
8282 if ${ac_cv_prog_CPP+:} false; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 # Double quotes because CPP needs to be expanded
8286 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8288 ac_preproc_ok=false
8289 for ac_c_preproc_warn_flag in '' yes
8291 # Use a header file that comes with gcc, so configuring glibc
8292 # with a fresh cross-compiler works.
8293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8294 # <limits.h> exists even on freestanding compilers.
8295 # On the NeXT, cc -E runs the code through the compiler's parser,
8296 # not just through cpp. "Syntax error" is here to catch this case.
8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298 /* end confdefs.h. */
8299 #ifdef __STDC__
8300 # include <limits.h>
8301 #else
8302 # include <assert.h>
8303 #endif
8304 Syntax error
8305 _ACEOF
8306 if ac_fn_c_try_cpp "$LINENO"; then :
8308 else
8309 # Broken: fails on valid input.
8310 continue
8312 rm -f conftest.err conftest.i conftest.$ac_ext
8314 # OK, works on sane cases. Now check whether nonexistent headers
8315 # can be detected and how.
8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8318 #include <ac_nonexistent.h>
8319 _ACEOF
8320 if ac_fn_c_try_cpp "$LINENO"; then :
8321 # Broken: success on invalid input.
8322 continue
8323 else
8324 # Passes both tests.
8325 ac_preproc_ok=:
8326 break
8328 rm -f conftest.err conftest.i conftest.$ac_ext
8330 done
8331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8332 rm -f conftest.i conftest.err conftest.$ac_ext
8333 if $ac_preproc_ok; then :
8334 break
8337 done
8338 ac_cv_prog_CPP=$CPP
8341 CPP=$ac_cv_prog_CPP
8342 else
8343 ac_cv_prog_CPP=$CPP
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8346 $as_echo "$CPP" >&6; }
8347 ac_preproc_ok=false
8348 for ac_c_preproc_warn_flag in '' yes
8350 # Use a header file that comes with gcc, so configuring glibc
8351 # with a fresh cross-compiler works.
8352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8353 # <limits.h> exists even on freestanding compilers.
8354 # On the NeXT, cc -E runs the code through the compiler's parser,
8355 # not just through cpp. "Syntax error" is here to catch this case.
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8358 #ifdef __STDC__
8359 # include <limits.h>
8360 #else
8361 # include <assert.h>
8362 #endif
8363 Syntax error
8364 _ACEOF
8365 if ac_fn_c_try_cpp "$LINENO"; then :
8367 else
8368 # Broken: fails on valid input.
8369 continue
8371 rm -f conftest.err conftest.i conftest.$ac_ext
8373 # OK, works on sane cases. Now check whether nonexistent headers
8374 # can be detected and how.
8375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h. */
8377 #include <ac_nonexistent.h>
8378 _ACEOF
8379 if ac_fn_c_try_cpp "$LINENO"; then :
8380 # Broken: success on invalid input.
8381 continue
8382 else
8383 # Passes both tests.
8384 ac_preproc_ok=:
8385 break
8387 rm -f conftest.err conftest.i conftest.$ac_ext
8389 done
8390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8391 rm -f conftest.i conftest.err conftest.$ac_ext
8392 if $ac_preproc_ok; then :
8394 else
8395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8397 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8398 See \`config.log' for more details" "$LINENO" 5; }
8401 ac_ext=c
8402 ac_cpp='$CPP $CPPFLAGS'
8403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8409 $as_echo_n "checking for ANSI C header files... " >&6; }
8410 if ${ac_cv_header_stdc+:} false; then :
8411 $as_echo_n "(cached) " >&6
8412 else
8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h. */
8415 #include <stdlib.h>
8416 #include <stdarg.h>
8417 #include <string.h>
8418 #include <float.h>
8421 main ()
8425 return 0;
8427 _ACEOF
8428 if ac_fn_c_try_compile "$LINENO"; then :
8429 ac_cv_header_stdc=yes
8430 else
8431 ac_cv_header_stdc=no
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 if test $ac_cv_header_stdc = yes; then
8436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439 #include <string.h>
8441 _ACEOF
8442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8443 $EGREP "memchr" >/dev/null 2>&1; then :
8445 else
8446 ac_cv_header_stdc=no
8448 rm -f conftest*
8452 if test $ac_cv_header_stdc = yes; then
8453 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8456 #include <stdlib.h>
8458 _ACEOF
8459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8460 $EGREP "free" >/dev/null 2>&1; then :
8462 else
8463 ac_cv_header_stdc=no
8465 rm -f conftest*
8469 if test $ac_cv_header_stdc = yes; then
8470 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8471 if test "$cross_compiling" = yes; then :
8473 else
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 #include <ctype.h>
8477 #include <stdlib.h>
8478 #if ((' ' & 0x0FF) == 0x020)
8479 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8480 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8481 #else
8482 # define ISLOWER(c) \
8483 (('a' <= (c) && (c) <= 'i') \
8484 || ('j' <= (c) && (c) <= 'r') \
8485 || ('s' <= (c) && (c) <= 'z'))
8486 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8487 #endif
8489 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8491 main ()
8493 int i;
8494 for (i = 0; i < 256; i++)
8495 if (XOR (islower (i), ISLOWER (i))
8496 || toupper (i) != TOUPPER (i))
8497 return 2;
8498 return 0;
8500 _ACEOF
8501 if ac_fn_c_try_run "$LINENO"; then :
8503 else
8504 ac_cv_header_stdc=no
8506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8507 conftest.$ac_objext conftest.beam conftest.$ac_ext
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8513 $as_echo "$ac_cv_header_stdc" >&6; }
8514 if test $ac_cv_header_stdc = yes; then
8516 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8520 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8521 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8522 inttypes.h stdint.h unistd.h
8523 do :
8524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8525 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8527 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8528 cat >>confdefs.h <<_ACEOF
8529 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8530 _ACEOF
8534 done
8537 for ac_header in dlfcn.h
8538 do :
8539 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8541 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8542 cat >>confdefs.h <<_ACEOF
8543 #define HAVE_DLFCN_H 1
8544 _ACEOF
8548 done
8555 # Set options
8559 enable_dlopen=no
8562 enable_win32_dll=no
8565 # Check whether --enable-shared was given.
8566 if test "${enable_shared+set}" = set; then :
8567 enableval=$enable_shared; p=${PACKAGE-default}
8568 case $enableval in
8569 yes) enable_shared=yes ;;
8570 no) enable_shared=no ;;
8572 enable_shared=no
8573 # Look at the argument we got. We use all the common list separators.
8574 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8575 for pkg in $enableval; do
8576 IFS="$lt_save_ifs"
8577 if test "X$pkg" = "X$p"; then
8578 enable_shared=yes
8580 done
8581 IFS="$lt_save_ifs"
8583 esac
8584 else
8585 enable_shared=yes
8596 # Check whether --enable-static was given.
8597 if test "${enable_static+set}" = set; then :
8598 enableval=$enable_static; p=${PACKAGE-default}
8599 case $enableval in
8600 yes) enable_static=yes ;;
8601 no) enable_static=no ;;
8603 enable_static=no
8604 # Look at the argument we got. We use all the common list separators.
8605 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8606 for pkg in $enableval; do
8607 IFS="$lt_save_ifs"
8608 if test "X$pkg" = "X$p"; then
8609 enable_static=yes
8611 done
8612 IFS="$lt_save_ifs"
8614 esac
8615 else
8616 enable_static=yes
8628 # Check whether --with-pic was given.
8629 if test "${with_pic+set}" = set; then :
8630 withval=$with_pic; pic_mode="$withval"
8631 else
8632 pic_mode=default
8636 test -z "$pic_mode" && pic_mode=default
8644 # Check whether --enable-fast-install was given.
8645 if test "${enable_fast_install+set}" = set; then :
8646 enableval=$enable_fast_install; p=${PACKAGE-default}
8647 case $enableval in
8648 yes) enable_fast_install=yes ;;
8649 no) enable_fast_install=no ;;
8651 enable_fast_install=no
8652 # Look at the argument we got. We use all the common list separators.
8653 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8654 for pkg in $enableval; do
8655 IFS="$lt_save_ifs"
8656 if test "X$pkg" = "X$p"; then
8657 enable_fast_install=yes
8659 done
8660 IFS="$lt_save_ifs"
8662 esac
8663 else
8664 enable_fast_install=yes
8677 # This can be used to rebuild libtool when needed
8678 LIBTOOL_DEPS="$ltmain"
8680 # Always use our own libtool.
8681 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8708 test -z "$LN_S" && LN_S="ln -s"
8723 if test -n "${ZSH_VERSION+set}" ; then
8724 setopt NO_GLOB_SUBST
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8728 $as_echo_n "checking for objdir... " >&6; }
8729 if ${lt_cv_objdir+:} false; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 rm -f .libs 2>/dev/null
8733 mkdir .libs 2>/dev/null
8734 if test -d .libs; then
8735 lt_cv_objdir=.libs
8736 else
8737 # MS-DOS does not allow filenames that begin with a dot.
8738 lt_cv_objdir=_libs
8740 rmdir .libs 2>/dev/null
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8743 $as_echo "$lt_cv_objdir" >&6; }
8744 objdir=$lt_cv_objdir
8750 cat >>confdefs.h <<_ACEOF
8751 #define LT_OBJDIR "$lt_cv_objdir/"
8752 _ACEOF
8757 case $host_os in
8758 aix3*)
8759 # AIX sometimes has problems with the GCC collect2 program. For some
8760 # reason, if we set the COLLECT_NAMES environment variable, the problems
8761 # vanish in a puff of smoke.
8762 if test "X${COLLECT_NAMES+set}" != Xset; then
8763 COLLECT_NAMES=
8764 export COLLECT_NAMES
8767 esac
8769 # Global variables:
8770 ofile=libtool
8771 can_build_shared=yes
8773 # All known linkers require a `.a' archive for static linking (except MSVC,
8774 # which needs '.lib').
8775 libext=a
8777 with_gnu_ld="$lt_cv_prog_gnu_ld"
8779 old_CC="$CC"
8780 old_CFLAGS="$CFLAGS"
8782 # Set sane defaults for various variables
8783 test -z "$CC" && CC=cc
8784 test -z "$LTCC" && LTCC=$CC
8785 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8786 test -z "$LD" && LD=ld
8787 test -z "$ac_objext" && ac_objext=o
8789 for cc_temp in $compiler""; do
8790 case $cc_temp in
8791 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8792 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8793 \-*) ;;
8794 *) break;;
8795 esac
8796 done
8797 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8800 # Only perform the check for file, if the check method requires it
8801 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8802 case $deplibs_check_method in
8803 file_magic*)
8804 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8806 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8807 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8810 case $MAGIC_CMD in
8811 [\\/*] | ?:[\\/]*)
8812 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8815 lt_save_MAGIC_CMD="$MAGIC_CMD"
8816 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8817 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8818 for ac_dir in $ac_dummy; do
8819 IFS="$lt_save_ifs"
8820 test -z "$ac_dir" && ac_dir=.
8821 if test -f $ac_dir/${ac_tool_prefix}file; then
8822 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8823 if test -n "$file_magic_test_file"; then
8824 case $deplibs_check_method in
8825 "file_magic "*)
8826 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8827 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8828 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8829 $EGREP "$file_magic_regex" > /dev/null; then
8831 else
8832 cat <<_LT_EOF 1>&2
8834 *** Warning: the command libtool uses to detect shared libraries,
8835 *** $file_magic_cmd, produces output that libtool cannot recognize.
8836 *** The result is that libtool may fail to recognize shared libraries
8837 *** as such. This will affect the creation of libtool libraries that
8838 *** depend on shared libraries, but programs linked with such libtool
8839 *** libraries will work regardless of this problem. Nevertheless, you
8840 *** may want to report the problem to your system manager and/or to
8841 *** bug-libtool@gnu.org
8843 _LT_EOF
8844 fi ;;
8845 esac
8847 break
8849 done
8850 IFS="$lt_save_ifs"
8851 MAGIC_CMD="$lt_save_MAGIC_CMD"
8853 esac
8856 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8857 if test -n "$MAGIC_CMD"; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8859 $as_echo "$MAGIC_CMD" >&6; }
8860 else
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8869 if test -z "$lt_cv_path_MAGIC_CMD"; then
8870 if test -n "$ac_tool_prefix"; then
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8872 $as_echo_n "checking for file... " >&6; }
8873 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8874 $as_echo_n "(cached) " >&6
8875 else
8876 case $MAGIC_CMD in
8877 [\\/*] | ?:[\\/]*)
8878 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8881 lt_save_MAGIC_CMD="$MAGIC_CMD"
8882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8883 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8884 for ac_dir in $ac_dummy; do
8885 IFS="$lt_save_ifs"
8886 test -z "$ac_dir" && ac_dir=.
8887 if test -f $ac_dir/file; then
8888 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8889 if test -n "$file_magic_test_file"; then
8890 case $deplibs_check_method in
8891 "file_magic "*)
8892 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8893 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8894 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8895 $EGREP "$file_magic_regex" > /dev/null; then
8897 else
8898 cat <<_LT_EOF 1>&2
8900 *** Warning: the command libtool uses to detect shared libraries,
8901 *** $file_magic_cmd, produces output that libtool cannot recognize.
8902 *** The result is that libtool may fail to recognize shared libraries
8903 *** as such. This will affect the creation of libtool libraries that
8904 *** depend on shared libraries, but programs linked with such libtool
8905 *** libraries will work regardless of this problem. Nevertheless, you
8906 *** may want to report the problem to your system manager and/or to
8907 *** bug-libtool@gnu.org
8909 _LT_EOF
8910 fi ;;
8911 esac
8913 break
8915 done
8916 IFS="$lt_save_ifs"
8917 MAGIC_CMD="$lt_save_MAGIC_CMD"
8919 esac
8922 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8923 if test -n "$MAGIC_CMD"; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8925 $as_echo "$MAGIC_CMD" >&6; }
8926 else
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 $as_echo "no" >&6; }
8932 else
8933 MAGIC_CMD=:
8939 esac
8941 # Use C for the default configuration in the libtool script
8943 lt_save_CC="$CC"
8944 ac_ext=c
8945 ac_cpp='$CPP $CPPFLAGS'
8946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8951 # Source file extension for C test sources.
8952 ac_ext=c
8954 # Object file extension for compiled C test sources.
8955 objext=o
8956 objext=$objext
8958 # Code to be used in simple compile tests
8959 lt_simple_compile_test_code="int some_variable = 0;"
8961 # Code to be used in simple link tests
8962 lt_simple_link_test_code='int main(){return(0);}'
8970 # If no C compiler was specified, use CC.
8971 LTCC=${LTCC-"$CC"}
8973 # If no C compiler flags were specified, use CFLAGS.
8974 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8976 # Allow CC to be a program name with arguments.
8977 compiler=$CC
8979 # Save the default compiler, since it gets overwritten when the other
8980 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8981 compiler_DEFAULT=$CC
8983 # save warnings/boilerplate of simple test code
8984 ac_outfile=conftest.$ac_objext
8985 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8986 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8987 _lt_compiler_boilerplate=`cat conftest.err`
8988 $RM conftest*
8990 ac_outfile=conftest.$ac_objext
8991 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8992 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8993 _lt_linker_boilerplate=`cat conftest.err`
8994 $RM -r conftest*
8997 ## CAVEAT EMPTOR:
8998 ## There is no encapsulation within the following macros, do not change
8999 ## the running order or otherwise move them around unless you know exactly
9000 ## what you are doing...
9001 if test -n "$compiler"; then
9003 lt_prog_compiler_no_builtin_flag=
9005 if test "$GCC" = yes; then
9006 case $cc_basename in
9007 nvcc*)
9008 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9010 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9011 esac
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9014 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9015 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 lt_cv_prog_compiler_rtti_exceptions=no
9019 ac_outfile=conftest.$ac_objext
9020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9021 lt_compiler_flag="-fno-rtti -fno-exceptions"
9022 # Insert the option either (1) after the last *FLAGS variable, or
9023 # (2) before a word containing "conftest.", or (3) at the end.
9024 # Note that $ac_compile itself does not contain backslashes and begins
9025 # with a dollar sign (not a hyphen), so the echo should work correctly.
9026 # The option is referenced via a variable to avoid confusing sed.
9027 lt_compile=`echo "$ac_compile" | $SED \
9028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9030 -e 's:$: $lt_compiler_flag:'`
9031 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9032 (eval "$lt_compile" 2>conftest.err)
9033 ac_status=$?
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 if (exit $ac_status) && test -s "$ac_outfile"; then
9037 # The compiler can only warn and ignore the option if not recognized
9038 # So say no if there are warnings other than the usual output.
9039 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9041 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9042 lt_cv_prog_compiler_rtti_exceptions=yes
9045 $RM conftest*
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9049 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9051 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9052 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9053 else
9064 lt_prog_compiler_wl=
9065 lt_prog_compiler_pic=
9066 lt_prog_compiler_static=
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9069 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9071 if test "$GCC" = yes; then
9072 lt_prog_compiler_wl='-Wl,'
9073 lt_prog_compiler_static='-static'
9075 case $host_os in
9076 aix*)
9077 # All AIX code is PIC.
9078 if test "$host_cpu" = ia64; then
9079 # AIX 5 now supports IA64 processor
9080 lt_prog_compiler_static='-Bstatic'
9082 lt_prog_compiler_pic='-fPIC'
9085 amigaos*)
9086 case $host_cpu in
9087 powerpc)
9088 # see comment about AmigaOS4 .so support
9089 lt_prog_compiler_pic='-fPIC'
9091 m68k)
9092 # FIXME: we need at least 68020 code to build shared libraries, but
9093 # adding the `-m68020' flag to GCC prevents building anything better,
9094 # like `-m68040'.
9095 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9097 esac
9100 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9101 # PIC is the default for these OSes.
9104 mingw* | cygwin* | pw32* | os2* | cegcc*)
9105 # This hack is so that the source file can tell whether it is being
9106 # built for inclusion in a dll (and should export symbols for example).
9107 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9108 # (--disable-auto-import) libraries
9109 lt_prog_compiler_pic='-DDLL_EXPORT'
9112 darwin* | rhapsody*)
9113 # PIC is the default on this platform
9114 # Common symbols not allowed in MH_DYLIB files
9115 lt_prog_compiler_pic='-fno-common'
9118 haiku*)
9119 # PIC is the default for Haiku.
9120 # The "-static" flag exists, but is broken.
9121 lt_prog_compiler_static=
9124 hpux*)
9125 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9126 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9127 # sets the default TLS model and affects inlining.
9128 case $host_cpu in
9129 hppa*64*)
9130 # +Z the default
9133 lt_prog_compiler_pic='-fPIC'
9135 esac
9138 interix[3-9]*)
9139 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9140 # Instead, we relocate shared libraries at runtime.
9143 msdosdjgpp*)
9144 # Just because we use GCC doesn't mean we suddenly get shared libraries
9145 # on systems that don't support them.
9146 lt_prog_compiler_can_build_shared=no
9147 enable_shared=no
9150 *nto* | *qnx*)
9151 # QNX uses GNU C++, but need to define -shared option too, otherwise
9152 # it will coredump.
9153 lt_prog_compiler_pic='-fPIC -shared'
9156 sysv4*MP*)
9157 if test -d /usr/nec; then
9158 lt_prog_compiler_pic=-Kconform_pic
9163 lt_prog_compiler_pic='-fPIC'
9165 esac
9167 case $cc_basename in
9168 nvcc*) # Cuda Compiler Driver 2.2
9169 lt_prog_compiler_wl='-Xlinker '
9170 lt_prog_compiler_pic='-Xcompiler -fPIC'
9172 esac
9173 else
9174 # PORTME Check for flag to pass linker flags through the system compiler.
9175 case $host_os in
9176 aix*)
9177 lt_prog_compiler_wl='-Wl,'
9178 if test "$host_cpu" = ia64; then
9179 # AIX 5 now supports IA64 processor
9180 lt_prog_compiler_static='-Bstatic'
9181 else
9182 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9186 mingw* | cygwin* | pw32* | os2* | cegcc*)
9187 # This hack is so that the source file can tell whether it is being
9188 # built for inclusion in a dll (and should export symbols for example).
9189 lt_prog_compiler_pic='-DDLL_EXPORT'
9192 hpux9* | hpux10* | hpux11*)
9193 lt_prog_compiler_wl='-Wl,'
9194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9195 # not for PA HP-UX.
9196 case $host_cpu in
9197 hppa*64*|ia64*)
9198 # +Z the default
9201 lt_prog_compiler_pic='+Z'
9203 esac
9204 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9205 lt_prog_compiler_static='${wl}-a ${wl}archive'
9208 irix5* | irix6* | nonstopux*)
9209 lt_prog_compiler_wl='-Wl,'
9210 # PIC (with -KPIC) is the default.
9211 lt_prog_compiler_static='-non_shared'
9214 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9215 case $cc_basename in
9216 # old Intel for x86_64 which still supported -KPIC.
9217 ecc*)
9218 lt_prog_compiler_wl='-Wl,'
9219 lt_prog_compiler_pic='-KPIC'
9220 lt_prog_compiler_static='-static'
9222 # icc used to be incompatible with GCC.
9223 # ICC 10 doesn't accept -KPIC any more.
9224 icc* | ifort*)
9225 lt_prog_compiler_wl='-Wl,'
9226 lt_prog_compiler_pic='-fPIC'
9227 lt_prog_compiler_static='-static'
9229 # Lahey Fortran 8.1.
9230 lf95*)
9231 lt_prog_compiler_wl='-Wl,'
9232 lt_prog_compiler_pic='--shared'
9233 lt_prog_compiler_static='--static'
9235 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9236 # Portland Group compilers (*not* the Pentium gcc compiler,
9237 # which looks to be a dead project)
9238 lt_prog_compiler_wl='-Wl,'
9239 lt_prog_compiler_pic='-fpic'
9240 lt_prog_compiler_static='-Bstatic'
9242 ccc*)
9243 lt_prog_compiler_wl='-Wl,'
9244 # All Alpha code is PIC.
9245 lt_prog_compiler_static='-non_shared'
9247 xl* | bgxl* | bgf* | mpixl*)
9248 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9249 lt_prog_compiler_wl='-Wl,'
9250 lt_prog_compiler_pic='-qpic'
9251 lt_prog_compiler_static='-qstaticlink'
9254 case `$CC -V 2>&1 | sed 5q` in
9255 *Sun\ F* | *Sun*Fortran*)
9256 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9257 lt_prog_compiler_pic='-KPIC'
9258 lt_prog_compiler_static='-Bstatic'
9259 lt_prog_compiler_wl=''
9261 *Sun\ C*)
9262 # Sun C 5.9
9263 lt_prog_compiler_pic='-KPIC'
9264 lt_prog_compiler_static='-Bstatic'
9265 lt_prog_compiler_wl='-Wl,'
9267 esac
9269 esac
9272 newsos6)
9273 lt_prog_compiler_pic='-KPIC'
9274 lt_prog_compiler_static='-Bstatic'
9277 *nto* | *qnx*)
9278 # QNX uses GNU C++, but need to define -shared option too, otherwise
9279 # it will coredump.
9280 lt_prog_compiler_pic='-fPIC -shared'
9283 osf3* | osf4* | osf5*)
9284 lt_prog_compiler_wl='-Wl,'
9285 # All OSF/1 code is PIC.
9286 lt_prog_compiler_static='-non_shared'
9289 rdos*)
9290 lt_prog_compiler_static='-non_shared'
9293 solaris*)
9294 lt_prog_compiler_pic='-KPIC'
9295 lt_prog_compiler_static='-Bstatic'
9296 case $cc_basename in
9297 f77* | f90* | f95*)
9298 lt_prog_compiler_wl='-Qoption ld ';;
9300 lt_prog_compiler_wl='-Wl,';;
9301 esac
9304 sunos4*)
9305 lt_prog_compiler_wl='-Qoption ld '
9306 lt_prog_compiler_pic='-PIC'
9307 lt_prog_compiler_static='-Bstatic'
9310 sysv4 | sysv4.2uw2* | sysv4.3*)
9311 lt_prog_compiler_wl='-Wl,'
9312 lt_prog_compiler_pic='-KPIC'
9313 lt_prog_compiler_static='-Bstatic'
9316 sysv4*MP*)
9317 if test -d /usr/nec ;then
9318 lt_prog_compiler_pic='-Kconform_pic'
9319 lt_prog_compiler_static='-Bstatic'
9323 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9324 lt_prog_compiler_wl='-Wl,'
9325 lt_prog_compiler_pic='-KPIC'
9326 lt_prog_compiler_static='-Bstatic'
9329 unicos*)
9330 lt_prog_compiler_wl='-Wl,'
9331 lt_prog_compiler_can_build_shared=no
9334 uts4*)
9335 lt_prog_compiler_pic='-pic'
9336 lt_prog_compiler_static='-Bstatic'
9340 lt_prog_compiler_can_build_shared=no
9342 esac
9345 case $host_os in
9346 # For platforms which do not support PIC, -DPIC is meaningless:
9347 *djgpp*)
9348 lt_prog_compiler_pic=
9351 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9353 esac
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9355 $as_echo "$lt_prog_compiler_pic" >&6; }
9363 # Check to make sure the PIC flag actually works.
9365 if test -n "$lt_prog_compiler_pic"; then
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9367 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9368 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9369 $as_echo_n "(cached) " >&6
9370 else
9371 lt_cv_prog_compiler_pic_works=no
9372 ac_outfile=conftest.$ac_objext
9373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9374 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9375 # Insert the option either (1) after the last *FLAGS variable, or
9376 # (2) before a word containing "conftest.", or (3) at the end.
9377 # Note that $ac_compile itself does not contain backslashes and begins
9378 # with a dollar sign (not a hyphen), so the echo should work correctly.
9379 # The option is referenced via a variable to avoid confusing sed.
9380 lt_compile=`echo "$ac_compile" | $SED \
9381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9383 -e 's:$: $lt_compiler_flag:'`
9384 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9385 (eval "$lt_compile" 2>conftest.err)
9386 ac_status=$?
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 if (exit $ac_status) && test -s "$ac_outfile"; then
9390 # The compiler can only warn and ignore the option if not recognized
9391 # So say no if there are warnings other than the usual output.
9392 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9394 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9395 lt_cv_prog_compiler_pic_works=yes
9398 $RM conftest*
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9402 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9404 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9405 case $lt_prog_compiler_pic in
9406 "" | " "*) ;;
9407 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9408 esac
9409 else
9410 lt_prog_compiler_pic=
9411 lt_prog_compiler_can_build_shared=no
9422 # Check to make sure the static flag actually works.
9424 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9426 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9427 if ${lt_cv_prog_compiler_static_works+:} false; then :
9428 $as_echo_n "(cached) " >&6
9429 else
9430 lt_cv_prog_compiler_static_works=no
9431 save_LDFLAGS="$LDFLAGS"
9432 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9433 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9434 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9435 # The linker can only warn and ignore the option if not recognized
9436 # So say no if there are warnings
9437 if test -s conftest.err; then
9438 # Append any errors to the config.log.
9439 cat conftest.err 1>&5
9440 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9442 if diff conftest.exp conftest.er2 >/dev/null; then
9443 lt_cv_prog_compiler_static_works=yes
9445 else
9446 lt_cv_prog_compiler_static_works=yes
9449 $RM -r conftest*
9450 LDFLAGS="$save_LDFLAGS"
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9454 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9456 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9458 else
9459 lt_prog_compiler_static=
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9469 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9470 if ${lt_cv_prog_compiler_c_o+:} false; then :
9471 $as_echo_n "(cached) " >&6
9472 else
9473 lt_cv_prog_compiler_c_o=no
9474 $RM -r conftest 2>/dev/null
9475 mkdir conftest
9476 cd conftest
9477 mkdir out
9478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9480 lt_compiler_flag="-o out/conftest2.$ac_objext"
9481 # Insert the option either (1) after the last *FLAGS variable, or
9482 # (2) before a word containing "conftest.", or (3) at the end.
9483 # Note that $ac_compile itself does not contain backslashes and begins
9484 # with a dollar sign (not a hyphen), so the echo should work correctly.
9485 lt_compile=`echo "$ac_compile" | $SED \
9486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9488 -e 's:$: $lt_compiler_flag:'`
9489 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9490 (eval "$lt_compile" 2>out/conftest.err)
9491 ac_status=$?
9492 cat out/conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9495 then
9496 # The compiler can only warn and ignore the option if not recognized
9497 # So say no if there are warnings
9498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9499 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9500 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9501 lt_cv_prog_compiler_c_o=yes
9504 chmod u+w . 2>&5
9505 $RM conftest*
9506 # SGI C++ compiler will create directory out/ii_files/ for
9507 # template instantiation
9508 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9509 $RM out/* && rmdir out
9510 cd ..
9511 $RM -r conftest
9512 $RM conftest*
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9516 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9524 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9525 if ${lt_cv_prog_compiler_c_o+:} false; then :
9526 $as_echo_n "(cached) " >&6
9527 else
9528 lt_cv_prog_compiler_c_o=no
9529 $RM -r conftest 2>/dev/null
9530 mkdir conftest
9531 cd conftest
9532 mkdir out
9533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9535 lt_compiler_flag="-o out/conftest2.$ac_objext"
9536 # Insert the option either (1) after the last *FLAGS variable, or
9537 # (2) before a word containing "conftest.", or (3) at the end.
9538 # Note that $ac_compile itself does not contain backslashes and begins
9539 # with a dollar sign (not a hyphen), so the echo should work correctly.
9540 lt_compile=`echo "$ac_compile" | $SED \
9541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9543 -e 's:$: $lt_compiler_flag:'`
9544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9545 (eval "$lt_compile" 2>out/conftest.err)
9546 ac_status=$?
9547 cat out/conftest.err >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9550 then
9551 # The compiler can only warn and ignore the option if not recognized
9552 # So say no if there are warnings
9553 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9554 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9555 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9556 lt_cv_prog_compiler_c_o=yes
9559 chmod u+w . 2>&5
9560 $RM conftest*
9561 # SGI C++ compiler will create directory out/ii_files/ for
9562 # template instantiation
9563 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9564 $RM out/* && rmdir out
9565 cd ..
9566 $RM -r conftest
9567 $RM conftest*
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9571 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9576 hard_links="nottested"
9577 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9578 # do not overwrite the value of need_locks provided by the user
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9580 $as_echo_n "checking if we can lock with hard links... " >&6; }
9581 hard_links=yes
9582 $RM conftest*
9583 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9584 touch conftest.a
9585 ln conftest.a conftest.b 2>&5 || hard_links=no
9586 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9588 $as_echo "$hard_links" >&6; }
9589 if test "$hard_links" = no; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9591 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9592 need_locks=warn
9594 else
9595 need_locks=no
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9604 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9606 runpath_var=
9607 allow_undefined_flag=
9608 always_export_symbols=no
9609 archive_cmds=
9610 archive_expsym_cmds=
9611 compiler_needs_object=no
9612 enable_shared_with_static_runtimes=no
9613 export_dynamic_flag_spec=
9614 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9615 hardcode_automatic=no
9616 hardcode_direct=no
9617 hardcode_direct_absolute=no
9618 hardcode_libdir_flag_spec=
9619 hardcode_libdir_flag_spec_ld=
9620 hardcode_libdir_separator=
9621 hardcode_minus_L=no
9622 hardcode_shlibpath_var=unsupported
9623 inherit_rpath=no
9624 link_all_deplibs=unknown
9625 module_cmds=
9626 module_expsym_cmds=
9627 old_archive_from_new_cmds=
9628 old_archive_from_expsyms_cmds=
9629 thread_safe_flag_spec=
9630 whole_archive_flag_spec=
9631 # include_expsyms should be a list of space-separated symbols to be *always*
9632 # included in the symbol list
9633 include_expsyms=
9634 # exclude_expsyms can be an extended regexp of symbols to exclude
9635 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9636 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9637 # as well as any symbol that contains `d'.
9638 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9639 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9640 # platforms (ab)use it in PIC code, but their linkers get confused if
9641 # the symbol is explicitly referenced. Since portable code cannot
9642 # rely on this symbol name, it's probably fine to never include it in
9643 # preloaded symbol tables.
9644 # Exclude shared library initialization/finalization symbols.
9645 extract_expsyms_cmds=
9647 case $host_os in
9648 cygwin* | mingw* | pw32* | cegcc*)
9649 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9650 # When not using gcc, we currently assume that we are using
9651 # Microsoft Visual C++.
9652 if test "$GCC" != yes; then
9653 with_gnu_ld=no
9656 interix*)
9657 # we just hope/assume this is gcc and not c89 (= MSVC++)
9658 with_gnu_ld=yes
9660 openbsd*)
9661 with_gnu_ld=no
9663 esac
9665 ld_shlibs=yes
9667 # On some targets, GNU ld is compatible enough with the native linker
9668 # that we're better off using the native interface for both.
9669 lt_use_gnu_ld_interface=no
9670 if test "$with_gnu_ld" = yes; then
9671 case $host_os in
9672 aix*)
9673 # The AIX port of GNU ld has always aspired to compatibility
9674 # with the native linker. However, as the warning in the GNU ld
9675 # block says, versions before 2.19.5* couldn't really create working
9676 # shared libraries, regardless of the interface used.
9677 case `$LD -v 2>&1` in
9678 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9679 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9680 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9682 lt_use_gnu_ld_interface=yes
9684 esac
9687 lt_use_gnu_ld_interface=yes
9689 esac
9692 if test "$lt_use_gnu_ld_interface" = yes; then
9693 # If archive_cmds runs LD, not CC, wlarc should be empty
9694 wlarc='${wl}'
9696 # Set some defaults for GNU ld with shared library support. These
9697 # are reset later if shared libraries are not supported. Putting them
9698 # here allows them to be overridden if necessary.
9699 runpath_var=LD_RUN_PATH
9700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9701 export_dynamic_flag_spec='${wl}--export-dynamic'
9702 # ancient GNU ld didn't support --whole-archive et. al.
9703 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9704 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9705 else
9706 whole_archive_flag_spec=
9708 supports_anon_versioning=no
9709 case `$LD -v 2>&1` in
9710 *GNU\ gold*) supports_anon_versioning=yes ;;
9711 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9712 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9713 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9714 *\ 2.11.*) ;; # other 2.11 versions
9715 *) supports_anon_versioning=yes ;;
9716 esac
9718 # See if GNU ld supports shared libraries.
9719 case $host_os in
9720 aix[3-9]*)
9721 # On AIX/PPC, the GNU linker is very broken
9722 if test "$host_cpu" != ia64; then
9723 ld_shlibs=no
9724 cat <<_LT_EOF 1>&2
9726 *** Warning: the GNU linker, at least up to release 2.19, is reported
9727 *** to be unable to reliably create shared libraries on AIX.
9728 *** Therefore, libtool is disabling shared libraries support. If you
9729 *** really care for shared libraries, you may want to install binutils
9730 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9731 *** You will then need to restart the configuration process.
9733 _LT_EOF
9737 amigaos*)
9738 case $host_cpu in
9739 powerpc)
9740 # see comment about AmigaOS4 .so support
9741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9742 archive_expsym_cmds=''
9744 m68k)
9745 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)'
9746 hardcode_libdir_flag_spec='-L$libdir'
9747 hardcode_minus_L=yes
9749 esac
9752 beos*)
9753 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9754 allow_undefined_flag=unsupported
9755 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9756 # support --undefined. This deserves some investigation. FIXME
9757 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9758 else
9759 ld_shlibs=no
9763 cygwin* | mingw* | pw32* | cegcc*)
9764 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9765 # as there is no search path for DLLs.
9766 hardcode_libdir_flag_spec='-L$libdir'
9767 export_dynamic_flag_spec='${wl}--export-all-symbols'
9768 allow_undefined_flag=unsupported
9769 always_export_symbols=no
9770 enable_shared_with_static_runtimes=yes
9771 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9773 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9775 # If the export-symbols file already is a .def file (1st line
9776 # is EXPORTS), use it as is; otherwise, prepend...
9777 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9778 cp $export_symbols $output_objdir/$soname.def;
9779 else
9780 echo EXPORTS > $output_objdir/$soname.def;
9781 cat $export_symbols >> $output_objdir/$soname.def;
9783 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9784 else
9785 ld_shlibs=no
9789 haiku*)
9790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9791 link_all_deplibs=yes
9794 interix[3-9]*)
9795 hardcode_direct=no
9796 hardcode_shlibpath_var=no
9797 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9798 export_dynamic_flag_spec='${wl}-E'
9799 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9800 # Instead, shared libraries are loaded at an image base (0x10000000 by
9801 # default) and relocated if they conflict, which is a slow very memory
9802 # consuming and fragmenting process. To avoid this, we pick a random,
9803 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9804 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9805 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9806 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'
9809 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9810 tmp_diet=no
9811 if test "$host_os" = linux-dietlibc; then
9812 case $cc_basename in
9813 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9814 esac
9816 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9817 && test "$tmp_diet" = no
9818 then
9819 tmp_addflag=' $pic_flag'
9820 tmp_sharedflag='-shared'
9821 case $cc_basename,$host_cpu in
9822 pgcc*) # Portland Group C compiler
9823 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'
9824 tmp_addflag=' $pic_flag'
9826 pgf77* | pgf90* | pgf95* | pgfortran*)
9827 # Portland Group f77 and f90 compilers
9828 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'
9829 tmp_addflag=' $pic_flag -Mnomain' ;;
9830 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9831 tmp_addflag=' -i_dynamic' ;;
9832 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9833 tmp_addflag=' -i_dynamic -nofor_main' ;;
9834 ifc* | ifort*) # Intel Fortran compiler
9835 tmp_addflag=' -nofor_main' ;;
9836 lf95*) # Lahey Fortran 8.1
9837 whole_archive_flag_spec=
9838 tmp_sharedflag='--shared' ;;
9839 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9840 tmp_sharedflag='-qmkshrobj'
9841 tmp_addflag= ;;
9842 nvcc*) # Cuda Compiler Driver 2.2
9843 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'
9844 compiler_needs_object=yes
9846 esac
9847 case `$CC -V 2>&1 | sed 5q` in
9848 *Sun\ C*) # Sun C 5.9
9849 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'
9850 compiler_needs_object=yes
9851 tmp_sharedflag='-G' ;;
9852 *Sun\ F*) # Sun Fortran 8.3
9853 tmp_sharedflag='-G' ;;
9854 esac
9855 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9857 if test "x$supports_anon_versioning" = xyes; then
9858 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9859 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9860 echo "local: *; };" >> $output_objdir/$libname.ver~
9861 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9864 case $cc_basename in
9865 xlf* | bgf* | bgxlf* | mpixlf*)
9866 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9867 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9868 hardcode_libdir_flag_spec=
9869 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9870 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9871 if test "x$supports_anon_versioning" = xyes; then
9872 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9873 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9874 echo "local: *; };" >> $output_objdir/$libname.ver~
9875 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9878 esac
9879 else
9880 ld_shlibs=no
9884 netbsd*)
9885 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9886 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9887 wlarc=
9888 else
9889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9890 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9894 solaris*)
9895 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9896 ld_shlibs=no
9897 cat <<_LT_EOF 1>&2
9899 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9900 *** create shared libraries on Solaris systems. Therefore, libtool
9901 *** is disabling shared libraries support. We urge you to upgrade GNU
9902 *** binutils to release 2.9.1 or newer. Another option is to modify
9903 *** your PATH or compiler configuration so that the native linker is
9904 *** used, and then restart.
9906 _LT_EOF
9907 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9909 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9910 else
9911 ld_shlibs=no
9915 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9916 case `$LD -v 2>&1` in
9917 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9918 ld_shlibs=no
9919 cat <<_LT_EOF 1>&2
9921 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9922 *** reliably create shared libraries on SCO systems. Therefore, libtool
9923 *** is disabling shared libraries support. We urge you to upgrade GNU
9924 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9925 *** your PATH or compiler configuration so that the native linker is
9926 *** used, and then restart.
9928 _LT_EOF
9931 # For security reasons, it is highly recommended that you always
9932 # use absolute paths for naming shared libraries, and exclude the
9933 # DT_RUNPATH tag from executables and libraries. But doing so
9934 # requires that you compile everything twice, which is a pain.
9935 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9936 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9938 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9939 else
9940 ld_shlibs=no
9943 esac
9946 sunos4*)
9947 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9948 wlarc=
9949 hardcode_direct=yes
9950 hardcode_shlibpath_var=no
9954 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9956 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9957 else
9958 ld_shlibs=no
9961 esac
9963 if test "$ld_shlibs" = no; then
9964 runpath_var=
9965 hardcode_libdir_flag_spec=
9966 export_dynamic_flag_spec=
9967 whole_archive_flag_spec=
9969 else
9970 # PORTME fill in a description of your system's linker (not GNU ld)
9971 case $host_os in
9972 aix3*)
9973 allow_undefined_flag=unsupported
9974 always_export_symbols=yes
9975 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'
9976 # Note: this linker hardcodes the directories in LIBPATH if there
9977 # are no directories specified by -L.
9978 hardcode_minus_L=yes
9979 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9980 # Neither direct hardcoding nor static linking is supported with a
9981 # broken collect2.
9982 hardcode_direct=unsupported
9986 aix[4-9]*)
9987 if test "$host_cpu" = ia64; then
9988 # On IA64, the linker does run time linking by default, so we don't
9989 # have to do anything special.
9990 aix_use_runtimelinking=no
9991 exp_sym_flag='-Bexport'
9992 no_entry_flag=""
9993 else
9994 # If we're using GNU nm, then we don't want the "-C" option.
9995 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9996 # Also, AIX nm treats weak defined symbols like other global
9997 # defined symbols, whereas GNU nm marks them as "W".
9998 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9999 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'
10000 else
10001 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'
10003 aix_use_runtimelinking=no
10005 # Test if we are trying to use run time linking or normal
10006 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10007 # need to do runtime linking.
10008 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10009 for ld_flag in $LDFLAGS; do
10010 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10011 aix_use_runtimelinking=yes
10012 break
10014 done
10016 esac
10018 exp_sym_flag='-bexport'
10019 no_entry_flag='-bnoentry'
10022 # When large executables or shared objects are built, AIX ld can
10023 # have problems creating the table of contents. If linking a library
10024 # or program results in "error TOC overflow" add -mminimal-toc to
10025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10028 archive_cmds=''
10029 hardcode_direct=yes
10030 hardcode_direct_absolute=yes
10031 hardcode_libdir_separator=':'
10032 link_all_deplibs=yes
10033 file_list_spec='${wl}-f,'
10035 if test "$GCC" = yes; then
10036 case $host_os in aix4.[012]|aix4.[012].*)
10037 # We only want to do this on AIX 4.2 and lower, the check
10038 # below for broken collect2 doesn't work under 4.3+
10039 collect2name=`${CC} -print-prog-name=collect2`
10040 if test -f "$collect2name" &&
10041 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10042 then
10043 # We have reworked collect2
10045 else
10046 # We have old collect2
10047 hardcode_direct=unsupported
10048 # It fails to find uninstalled libraries when the uninstalled
10049 # path is not listed in the libpath. Setting hardcode_minus_L
10050 # to unsupported forces relinking
10051 hardcode_minus_L=yes
10052 hardcode_libdir_flag_spec='-L$libdir'
10053 hardcode_libdir_separator=
10056 esac
10057 shared_flag='-shared'
10058 if test "$aix_use_runtimelinking" = yes; then
10059 shared_flag="$shared_flag "'${wl}-G'
10061 else
10062 # not using gcc
10063 if test "$host_cpu" = ia64; then
10064 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10065 # chokes on -Wl,-G. The following line is correct:
10066 shared_flag='-G'
10067 else
10068 if test "$aix_use_runtimelinking" = yes; then
10069 shared_flag='${wl}-G'
10070 else
10071 shared_flag='${wl}-bM:SRE'
10076 export_dynamic_flag_spec='${wl}-bexpall'
10077 # It seems that -bexpall does not export symbols beginning with
10078 # underscore (_), so it is better to generate a list of symbols to export.
10079 always_export_symbols=yes
10080 if test "$aix_use_runtimelinking" = yes; then
10081 # Warning - without using the other runtime loading flags (-brtl),
10082 # -berok will link without error, but may produce a broken library.
10083 allow_undefined_flag='-berok'
10084 # Determine the default libpath from the value encoded in an
10085 # empty executable.
10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h. */
10090 main ()
10094 return 0;
10096 _ACEOF
10097 if ac_fn_c_try_link "$LINENO"; then :
10099 lt_aix_libpath_sed='
10100 /Import File Strings/,/^$/ {
10101 /^0/ {
10102 s/^0 *\(.*\)$/\1/
10106 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10107 # Check for a 64-bit object if we didn't find anything.
10108 if test -z "$aix_libpath"; then
10109 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10112 rm -f core conftest.err conftest.$ac_objext \
10113 conftest$ac_exeext conftest.$ac_ext
10114 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10116 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10117 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"
10118 else
10119 if test "$host_cpu" = ia64; then
10120 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10121 allow_undefined_flag="-z nodefs"
10122 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"
10123 else
10124 # Determine the default libpath from the value encoded in an
10125 # empty executable.
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10130 main ()
10134 return 0;
10136 _ACEOF
10137 if ac_fn_c_try_link "$LINENO"; then :
10139 lt_aix_libpath_sed='
10140 /Import File Strings/,/^$/ {
10141 /^0/ {
10142 s/^0 *\(.*\)$/\1/
10146 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10147 # Check for a 64-bit object if we didn't find anything.
10148 if test -z "$aix_libpath"; then
10149 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10152 rm -f core conftest.err conftest.$ac_objext \
10153 conftest$ac_exeext conftest.$ac_ext
10154 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10156 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10157 # Warning - without using the other run time loading flags,
10158 # -berok will link without error, but may produce a broken library.
10159 no_undefined_flag=' ${wl}-bernotok'
10160 allow_undefined_flag=' ${wl}-berok'
10161 if test "$with_gnu_ld" = yes; then
10162 # We only use this code for GNU lds that support --whole-archive.
10163 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10164 else
10165 # Exported symbols can be pulled into shared objects from archives
10166 whole_archive_flag_spec='$convenience'
10168 archive_cmds_need_lc=yes
10169 # This is similar to how AIX traditionally builds its shared libraries.
10170 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'
10175 amigaos*)
10176 case $host_cpu in
10177 powerpc)
10178 # see comment about AmigaOS4 .so support
10179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10180 archive_expsym_cmds=''
10182 m68k)
10183 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)'
10184 hardcode_libdir_flag_spec='-L$libdir'
10185 hardcode_minus_L=yes
10187 esac
10190 bsdi[45]*)
10191 export_dynamic_flag_spec=-rdynamic
10194 cygwin* | mingw* | pw32* | cegcc*)
10195 # When not using gcc, we currently assume that we are using
10196 # Microsoft Visual C++.
10197 # hardcode_libdir_flag_spec is actually meaningless, as there is
10198 # no search path for DLLs.
10199 hardcode_libdir_flag_spec=' '
10200 allow_undefined_flag=unsupported
10201 # Tell ltmain to make .lib files, not .a files.
10202 libext=lib
10203 # Tell ltmain to make .dll files, not .so files.
10204 shrext_cmds=".dll"
10205 # FIXME: Setting linknames here is a bad hack.
10206 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10207 # The linker will automatically build a .lib file if we build a DLL.
10208 old_archive_from_new_cmds='true'
10209 # FIXME: Should let the user specify the lib program.
10210 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10211 fix_srcfile_path='`cygpath -w "$srcfile"`'
10212 enable_shared_with_static_runtimes=yes
10215 darwin* | rhapsody*)
10218 archive_cmds_need_lc=no
10219 hardcode_direct=no
10220 hardcode_automatic=yes
10221 hardcode_shlibpath_var=unsupported
10222 if test "$lt_cv_ld_force_load" = "yes"; then
10223 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\"`'
10224 else
10225 whole_archive_flag_spec=''
10227 link_all_deplibs=yes
10228 allow_undefined_flag="$_lt_dar_allow_undefined"
10229 case $cc_basename in
10230 ifort*) _lt_dar_can_shared=yes ;;
10231 *) _lt_dar_can_shared=$GCC ;;
10232 esac
10233 if test "$_lt_dar_can_shared" = "yes"; then
10234 output_verbose_link_cmd=func_echo_all
10235 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10236 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10237 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}"
10238 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}"
10240 else
10241 ld_shlibs=no
10246 dgux*)
10247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10248 hardcode_libdir_flag_spec='-L$libdir'
10249 hardcode_shlibpath_var=no
10252 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10253 # support. Future versions do this automatically, but an explicit c++rt0.o
10254 # does not break anything, and helps significantly (at the cost of a little
10255 # extra space).
10256 freebsd2.2*)
10257 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10258 hardcode_libdir_flag_spec='-R$libdir'
10259 hardcode_direct=yes
10260 hardcode_shlibpath_var=no
10263 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10264 freebsd2.*)
10265 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10266 hardcode_direct=yes
10267 hardcode_minus_L=yes
10268 hardcode_shlibpath_var=no
10271 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10272 freebsd* | dragonfly*)
10273 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10274 hardcode_libdir_flag_spec='-R$libdir'
10275 hardcode_direct=yes
10276 hardcode_shlibpath_var=no
10279 hpux9*)
10280 if test "$GCC" = yes; then
10281 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'
10282 else
10283 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'
10285 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10286 hardcode_libdir_separator=:
10287 hardcode_direct=yes
10289 # hardcode_minus_L: Not really in the search PATH,
10290 # but as the default location of the library.
10291 hardcode_minus_L=yes
10292 export_dynamic_flag_spec='${wl}-E'
10295 hpux10*)
10296 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10297 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10298 else
10299 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10301 if test "$with_gnu_ld" = no; then
10302 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10303 hardcode_libdir_flag_spec_ld='+b $libdir'
10304 hardcode_libdir_separator=:
10305 hardcode_direct=yes
10306 hardcode_direct_absolute=yes
10307 export_dynamic_flag_spec='${wl}-E'
10308 # hardcode_minus_L: Not really in the search PATH,
10309 # but as the default location of the library.
10310 hardcode_minus_L=yes
10314 hpux11*)
10315 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10316 case $host_cpu in
10317 hppa*64*)
10318 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10320 ia64*)
10321 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10324 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10326 esac
10327 else
10328 case $host_cpu in
10329 hppa*64*)
10330 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10332 ia64*)
10333 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10337 # Older versions of the 11.00 compiler do not understand -b yet
10338 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10340 $as_echo_n "checking if $CC understands -b... " >&6; }
10341 if ${lt_cv_prog_compiler__b+:} false; then :
10342 $as_echo_n "(cached) " >&6
10343 else
10344 lt_cv_prog_compiler__b=no
10345 save_LDFLAGS="$LDFLAGS"
10346 LDFLAGS="$LDFLAGS -b"
10347 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10348 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10349 # The linker can only warn and ignore the option if not recognized
10350 # So say no if there are warnings
10351 if test -s conftest.err; then
10352 # Append any errors to the config.log.
10353 cat conftest.err 1>&5
10354 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10356 if diff conftest.exp conftest.er2 >/dev/null; then
10357 lt_cv_prog_compiler__b=yes
10359 else
10360 lt_cv_prog_compiler__b=yes
10363 $RM -r conftest*
10364 LDFLAGS="$save_LDFLAGS"
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10368 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10370 if test x"$lt_cv_prog_compiler__b" = xyes; then
10371 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10372 else
10373 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10377 esac
10379 if test "$with_gnu_ld" = no; then
10380 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10381 hardcode_libdir_separator=:
10383 case $host_cpu in
10384 hppa*64*|ia64*)
10385 hardcode_direct=no
10386 hardcode_shlibpath_var=no
10389 hardcode_direct=yes
10390 hardcode_direct_absolute=yes
10391 export_dynamic_flag_spec='${wl}-E'
10393 # hardcode_minus_L: Not really in the search PATH,
10394 # but as the default location of the library.
10395 hardcode_minus_L=yes
10397 esac
10401 irix5* | irix6* | nonstopux*)
10402 if test "$GCC" = yes; then
10403 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'
10404 # Try to use the -exported_symbol ld option, if it does not
10405 # work, assume that -exports_file does not work either and
10406 # implicitly export all symbols.
10407 save_LDFLAGS="$LDFLAGS"
10408 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h. */
10411 int foo(void) {}
10412 _ACEOF
10413 if ac_fn_c_try_link "$LINENO"; then :
10414 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'
10417 rm -f core conftest.err conftest.$ac_objext \
10418 conftest$ac_exeext conftest.$ac_ext
10419 LDFLAGS="$save_LDFLAGS"
10420 else
10421 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'
10422 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'
10424 archive_cmds_need_lc='no'
10425 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10426 hardcode_libdir_separator=:
10427 inherit_rpath=yes
10428 link_all_deplibs=yes
10431 netbsd*)
10432 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10433 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10434 else
10435 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10437 hardcode_libdir_flag_spec='-R$libdir'
10438 hardcode_direct=yes
10439 hardcode_shlibpath_var=no
10442 newsos6)
10443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10444 hardcode_direct=yes
10445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10446 hardcode_libdir_separator=:
10447 hardcode_shlibpath_var=no
10450 *nto* | *qnx*)
10453 openbsd*)
10454 if test -f /usr/libexec/ld.so; then
10455 hardcode_direct=yes
10456 hardcode_shlibpath_var=no
10457 hardcode_direct_absolute=yes
10458 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10459 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10460 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10461 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10462 export_dynamic_flag_spec='${wl}-E'
10463 else
10464 case $host_os in
10465 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10467 hardcode_libdir_flag_spec='-R$libdir'
10470 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10471 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10473 esac
10475 else
10476 ld_shlibs=no
10480 os2*)
10481 hardcode_libdir_flag_spec='-L$libdir'
10482 hardcode_minus_L=yes
10483 allow_undefined_flag=unsupported
10484 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'
10485 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10488 osf3*)
10489 if test "$GCC" = yes; then
10490 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10491 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'
10492 else
10493 allow_undefined_flag=' -expect_unresolved \*'
10494 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'
10496 archive_cmds_need_lc='no'
10497 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10498 hardcode_libdir_separator=:
10501 osf4* | osf5*) # as osf3* with the addition of -msym flag
10502 if test "$GCC" = yes; then
10503 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10504 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'
10505 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10506 else
10507 allow_undefined_flag=' -expect_unresolved \*'
10508 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'
10509 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~
10510 $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'
10512 # Both c and cxx compiler support -rpath directly
10513 hardcode_libdir_flag_spec='-rpath $libdir'
10515 archive_cmds_need_lc='no'
10516 hardcode_libdir_separator=:
10519 solaris*)
10520 no_undefined_flag=' -z defs'
10521 if test "$GCC" = yes; then
10522 wlarc='${wl}'
10523 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10524 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10525 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10526 else
10527 case `$CC -V 2>&1` in
10528 *"Compilers 5.0"*)
10529 wlarc=''
10530 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10531 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10532 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10535 wlarc='${wl}'
10536 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10537 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10538 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10540 esac
10542 hardcode_libdir_flag_spec='-R$libdir'
10543 hardcode_shlibpath_var=no
10544 case $host_os in
10545 solaris2.[0-5] | solaris2.[0-5].*) ;;
10547 # The compiler driver will combine and reorder linker options,
10548 # but understands `-z linker_flag'. GCC discards it without `$wl',
10549 # but is careful enough not to reorder.
10550 # Supported since Solaris 2.6 (maybe 2.5.1?)
10551 if test "$GCC" = yes; then
10552 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10553 else
10554 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10557 esac
10558 link_all_deplibs=yes
10561 sunos4*)
10562 if test "x$host_vendor" = xsequent; then
10563 # Use $CC to link under sequent, because it throws in some extra .o
10564 # files that make .init and .fini sections work.
10565 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10566 else
10567 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10569 hardcode_libdir_flag_spec='-L$libdir'
10570 hardcode_direct=yes
10571 hardcode_minus_L=yes
10572 hardcode_shlibpath_var=no
10575 sysv4)
10576 case $host_vendor in
10577 sni)
10578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10579 hardcode_direct=yes # is this really true???
10581 siemens)
10582 ## LD is ld it makes a PLAMLIB
10583 ## CC just makes a GrossModule.
10584 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10585 reload_cmds='$CC -r -o $output$reload_objs'
10586 hardcode_direct=no
10588 motorola)
10589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10590 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10592 esac
10593 runpath_var='LD_RUN_PATH'
10594 hardcode_shlibpath_var=no
10597 sysv4.3*)
10598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10599 hardcode_shlibpath_var=no
10600 export_dynamic_flag_spec='-Bexport'
10603 sysv4*MP*)
10604 if test -d /usr/nec; then
10605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10606 hardcode_shlibpath_var=no
10607 runpath_var=LD_RUN_PATH
10608 hardcode_runpath_var=yes
10609 ld_shlibs=yes
10613 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10614 no_undefined_flag='${wl}-z,text'
10615 archive_cmds_need_lc=no
10616 hardcode_shlibpath_var=no
10617 runpath_var='LD_RUN_PATH'
10619 if test "$GCC" = yes; then
10620 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10621 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10622 else
10623 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10624 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10628 sysv5* | sco3.2v5* | sco5v6*)
10629 # Note: We can NOT use -z defs as we might desire, because we do not
10630 # link with -lc, and that would cause any symbols used from libc to
10631 # always be unresolved, which means just about no library would
10632 # ever link correctly. If we're not using GNU ld we use -z text
10633 # though, which does catch some bad symbols but isn't as heavy-handed
10634 # as -z defs.
10635 no_undefined_flag='${wl}-z,text'
10636 allow_undefined_flag='${wl}-z,nodefs'
10637 archive_cmds_need_lc=no
10638 hardcode_shlibpath_var=no
10639 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10640 hardcode_libdir_separator=':'
10641 link_all_deplibs=yes
10642 export_dynamic_flag_spec='${wl}-Bexport'
10643 runpath_var='LD_RUN_PATH'
10645 if test "$GCC" = yes; then
10646 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10647 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10648 else
10649 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10650 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10654 uts4*)
10655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10656 hardcode_libdir_flag_spec='-L$libdir'
10657 hardcode_shlibpath_var=no
10661 ld_shlibs=no
10663 esac
10665 if test x$host_vendor = xsni; then
10666 case $host in
10667 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10668 export_dynamic_flag_spec='${wl}-Blargedynsym'
10670 esac
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10675 $as_echo "$ld_shlibs" >&6; }
10676 test "$ld_shlibs" = no && can_build_shared=no
10678 with_gnu_ld=$with_gnu_ld
10695 # Do we need to explicitly link libc?
10697 case "x$archive_cmds_need_lc" in
10698 x|xyes)
10699 # Assume -lc should be added
10700 archive_cmds_need_lc=yes
10702 if test "$enable_shared" = yes && test "$GCC" = yes; then
10703 case $archive_cmds in
10704 *'~'*)
10705 # FIXME: we may have to deal with multi-command sequences.
10707 '$CC '*)
10708 # Test whether the compiler implicitly links with -lc since on some
10709 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10710 # to ld, don't add -lc before -lgcc.
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10712 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10713 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 $RM conftest*
10717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10720 (eval $ac_compile) 2>&5
10721 ac_status=$?
10722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10723 test $ac_status = 0; } 2>conftest.err; then
10724 soname=conftest
10725 lib=conftest
10726 libobjs=conftest.$ac_objext
10727 deplibs=
10728 wl=$lt_prog_compiler_wl
10729 pic_flag=$lt_prog_compiler_pic
10730 compiler_flags=-v
10731 linker_flags=-v
10732 verstring=
10733 output_objdir=.
10734 libname=conftest
10735 lt_save_allow_undefined_flag=$allow_undefined_flag
10736 allow_undefined_flag=
10737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10738 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10739 ac_status=$?
10740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10741 test $ac_status = 0; }
10742 then
10743 lt_cv_archive_cmds_need_lc=no
10744 else
10745 lt_cv_archive_cmds_need_lc=yes
10747 allow_undefined_flag=$lt_save_allow_undefined_flag
10748 else
10749 cat conftest.err 1>&5
10751 $RM conftest*
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10755 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10756 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10758 esac
10761 esac
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10920 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10922 if test "$GCC" = yes; then
10923 case $host_os in
10924 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10925 *) lt_awk_arg="/^libraries:/" ;;
10926 esac
10927 case $host_os in
10928 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10929 *) lt_sed_strip_eq="s,=/,/,g" ;;
10930 esac
10931 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10932 case $lt_search_path_spec in
10933 *\;*)
10934 # if the path contains ";" then we assume it to be the separator
10935 # otherwise default to the standard path separator (i.e. ":") - it is
10936 # assumed that no part of a normal pathname contains ";" but that should
10937 # okay in the real world where ";" in dirpaths is itself problematic.
10938 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10941 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10943 esac
10944 # Ok, now we have the path, separated by spaces, we can step through it
10945 # and add multilib dir if necessary.
10946 lt_tmp_lt_search_path_spec=
10947 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10948 for lt_sys_path in $lt_search_path_spec; do
10949 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10950 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10951 else
10952 test -d "$lt_sys_path" && \
10953 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10955 done
10956 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10957 BEGIN {RS=" "; FS="/|\n";} {
10958 lt_foo="";
10959 lt_count=0;
10960 for (lt_i = NF; lt_i > 0; lt_i--) {
10961 if ($lt_i != "" && $lt_i != ".") {
10962 if ($lt_i == "..") {
10963 lt_count++;
10964 } else {
10965 if (lt_count == 0) {
10966 lt_foo="/" $lt_i lt_foo;
10967 } else {
10968 lt_count--;
10973 if (lt_foo != "") { lt_freq[lt_foo]++; }
10974 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10976 # AWK program above erroneously prepends '/' to C:/dos/paths
10977 # for these hosts.
10978 case $host_os in
10979 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10980 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10981 esac
10982 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10983 else
10984 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10986 library_names_spec=
10987 libname_spec='lib$name'
10988 soname_spec=
10989 shrext_cmds=".so"
10990 postinstall_cmds=
10991 postuninstall_cmds=
10992 finish_cmds=
10993 finish_eval=
10994 shlibpath_var=
10995 shlibpath_overrides_runpath=unknown
10996 version_type=none
10997 dynamic_linker="$host_os ld.so"
10998 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10999 need_lib_prefix=unknown
11000 hardcode_into_libs=no
11002 # when you set need_version to no, make sure it does not cause -set_version
11003 # flags to be left without arguments
11004 need_version=unknown
11006 case $host_os in
11007 aix3*)
11008 version_type=linux
11009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11010 shlibpath_var=LIBPATH
11012 # AIX 3 has no versioning support, so we append a major version to the name.
11013 soname_spec='${libname}${release}${shared_ext}$major'
11016 aix[4-9]*)
11017 version_type=linux
11018 need_lib_prefix=no
11019 need_version=no
11020 hardcode_into_libs=yes
11021 if test "$host_cpu" = ia64; then
11022 # AIX 5 supports IA64
11023 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 else
11026 # With GCC up to 2.95.x, collect2 would create an import file
11027 # for dependence libraries. The import file would start with
11028 # the line `#! .'. This would cause the generated library to
11029 # depend on `.', always an invalid library. This was fixed in
11030 # development snapshots of GCC prior to 3.0.
11031 case $host_os in
11032 aix4 | aix4.[01] | aix4.[01].*)
11033 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11034 echo ' yes '
11035 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11037 else
11038 can_build_shared=no
11041 esac
11042 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11043 # soname into executable. Probably we can add versioning support to
11044 # collect2, so additional links can be useful in future.
11045 if test "$aix_use_runtimelinking" = yes; then
11046 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11047 # instead of lib<name>.a to let people know that these are not
11048 # typical AIX shared libraries.
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11050 else
11051 # We preserve .a as extension for shared libraries through AIX4.2
11052 # and later when we are not doing run time linking.
11053 library_names_spec='${libname}${release}.a $libname.a'
11054 soname_spec='${libname}${release}${shared_ext}$major'
11056 shlibpath_var=LIBPATH
11060 amigaos*)
11061 case $host_cpu in
11062 powerpc)
11063 # Since July 2007 AmigaOS4 officially supports .so libraries.
11064 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11067 m68k)
11068 library_names_spec='$libname.ixlibrary $libname.a'
11069 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11070 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'
11072 esac
11075 beos*)
11076 library_names_spec='${libname}${shared_ext}'
11077 dynamic_linker="$host_os ld.so"
11078 shlibpath_var=LIBRARY_PATH
11081 bsdi[45]*)
11082 version_type=linux
11083 need_version=no
11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11085 soname_spec='${libname}${release}${shared_ext}$major'
11086 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11087 shlibpath_var=LD_LIBRARY_PATH
11088 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11089 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11090 # the default ld.so.conf also contains /usr/contrib/lib and
11091 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11092 # libtool to hard-code these into programs
11095 cygwin* | mingw* | pw32* | cegcc*)
11096 version_type=windows
11097 shrext_cmds=".dll"
11098 need_version=no
11099 need_lib_prefix=no
11101 case $GCC,$host_os in
11102 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11103 library_names_spec='$libname.dll.a'
11104 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11105 postinstall_cmds='base_file=`basename \${file}`~
11106 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11107 dldir=$destdir/`dirname \$dlpath`~
11108 test -d \$dldir || mkdir -p \$dldir~
11109 $install_prog $dir/$dlname \$dldir/$dlname~
11110 chmod a+x \$dldir/$dlname~
11111 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11112 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11114 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11115 dlpath=$dir/\$dldll~
11116 $RM \$dlpath'
11117 shlibpath_overrides_runpath=yes
11119 case $host_os in
11120 cygwin*)
11121 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11122 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11124 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11126 mingw* | cegcc*)
11127 # MinGW DLLs use traditional 'lib' prefix
11128 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11130 pw32*)
11131 # pw32 DLLs use 'pw' prefix rather than 'lib'
11132 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11134 esac
11138 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11140 esac
11141 dynamic_linker='Win32 ld.exe'
11142 # FIXME: first we should search . and the directory the executable is in
11143 shlibpath_var=PATH
11146 darwin* | rhapsody*)
11147 dynamic_linker="$host_os dyld"
11148 version_type=darwin
11149 need_lib_prefix=no
11150 need_version=no
11151 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11152 soname_spec='${libname}${release}${major}$shared_ext'
11153 shlibpath_overrides_runpath=yes
11154 shlibpath_var=DYLD_LIBRARY_PATH
11155 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11157 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11158 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11161 dgux*)
11162 version_type=linux
11163 need_lib_prefix=no
11164 need_version=no
11165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11166 soname_spec='${libname}${release}${shared_ext}$major'
11167 shlibpath_var=LD_LIBRARY_PATH
11170 freebsd* | dragonfly*)
11171 # DragonFly does not have aout. When/if they implement a new
11172 # versioning mechanism, adjust this.
11173 if test -x /usr/bin/objformat; then
11174 objformat=`/usr/bin/objformat`
11175 else
11176 case $host_os in
11177 freebsd[23].*) objformat=aout ;;
11178 *) objformat=elf ;;
11179 esac
11181 version_type=freebsd-$objformat
11182 case $version_type in
11183 freebsd-elf*)
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11185 need_version=no
11186 need_lib_prefix=no
11188 freebsd-*)
11189 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11190 need_version=yes
11192 esac
11193 shlibpath_var=LD_LIBRARY_PATH
11194 case $host_os in
11195 freebsd2.*)
11196 shlibpath_overrides_runpath=yes
11198 freebsd3.[01]* | freebsdelf3.[01]*)
11199 shlibpath_overrides_runpath=yes
11200 hardcode_into_libs=yes
11202 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11203 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11204 shlibpath_overrides_runpath=no
11205 hardcode_into_libs=yes
11207 *) # from 4.6 on, and DragonFly
11208 shlibpath_overrides_runpath=yes
11209 hardcode_into_libs=yes
11211 esac
11214 haiku*)
11215 version_type=linux
11216 need_lib_prefix=no
11217 need_version=no
11218 dynamic_linker="$host_os runtime_loader"
11219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11220 soname_spec='${libname}${release}${shared_ext}$major'
11221 shlibpath_var=LIBRARY_PATH
11222 shlibpath_overrides_runpath=yes
11223 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11224 hardcode_into_libs=yes
11227 hpux9* | hpux10* | hpux11*)
11228 # Give a soname corresponding to the major version so that dld.sl refuses to
11229 # link against other versions.
11230 version_type=sunos
11231 need_lib_prefix=no
11232 need_version=no
11233 case $host_cpu in
11234 ia64*)
11235 shrext_cmds='.so'
11236 hardcode_into_libs=yes
11237 dynamic_linker="$host_os dld.so"
11238 shlibpath_var=LD_LIBRARY_PATH
11239 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241 soname_spec='${libname}${release}${shared_ext}$major'
11242 if test "X$HPUX_IA64_MODE" = X32; then
11243 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11244 else
11245 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11249 hppa*64*)
11250 shrext_cmds='.sl'
11251 hardcode_into_libs=yes
11252 dynamic_linker="$host_os dld.sl"
11253 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11254 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11256 soname_spec='${libname}${release}${shared_ext}$major'
11257 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11258 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11261 shrext_cmds='.sl'
11262 dynamic_linker="$host_os dld.sl"
11263 shlibpath_var=SHLIB_PATH
11264 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266 soname_spec='${libname}${release}${shared_ext}$major'
11268 esac
11269 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11270 postinstall_cmds='chmod 555 $lib'
11271 # or fails outright, so override atomically:
11272 install_override_mode=555
11275 interix[3-9]*)
11276 version_type=linux
11277 need_lib_prefix=no
11278 need_version=no
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11280 soname_spec='${libname}${release}${shared_ext}$major'
11281 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11282 shlibpath_var=LD_LIBRARY_PATH
11283 shlibpath_overrides_runpath=no
11284 hardcode_into_libs=yes
11287 irix5* | irix6* | nonstopux*)
11288 case $host_os in
11289 nonstopux*) version_type=nonstopux ;;
11291 if test "$lt_cv_prog_gnu_ld" = yes; then
11292 version_type=linux
11293 else
11294 version_type=irix
11295 fi ;;
11296 esac
11297 need_lib_prefix=no
11298 need_version=no
11299 soname_spec='${libname}${release}${shared_ext}$major'
11300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11301 case $host_os in
11302 irix5* | nonstopux*)
11303 libsuff= shlibsuff=
11306 case $LD in # libtool.m4 will add one of these switches to LD
11307 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11308 libsuff= shlibsuff= libmagic=32-bit;;
11309 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11310 libsuff=32 shlibsuff=N32 libmagic=N32;;
11311 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11312 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11313 *) libsuff= shlibsuff= libmagic=never-match;;
11314 esac
11316 esac
11317 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11318 shlibpath_overrides_runpath=no
11319 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11320 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11321 hardcode_into_libs=yes
11324 # No shared lib support for Linux oldld, aout, or coff.
11325 linux*oldld* | linux*aout* | linux*coff*)
11326 dynamic_linker=no
11329 # This must be Linux ELF.
11331 # uclinux* changes (here and below) have been submitted to the libtool
11332 # project, but have not yet been accepted: they are GCC-local changes
11333 # for the time being. (See
11334 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11335 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11336 version_type=linux
11337 need_lib_prefix=no
11338 need_version=no
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11340 soname_spec='${libname}${release}${shared_ext}$major'
11341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11342 shlibpath_var=LD_LIBRARY_PATH
11343 shlibpath_overrides_runpath=no
11345 # Some binutils ld are patched to set DT_RUNPATH
11346 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11347 $as_echo_n "(cached) " >&6
11348 else
11349 lt_cv_shlibpath_overrides_runpath=no
11350 save_LDFLAGS=$LDFLAGS
11351 save_libdir=$libdir
11352 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11353 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11358 main ()
11362 return 0;
11364 _ACEOF
11365 if ac_fn_c_try_link "$LINENO"; then :
11366 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11367 lt_cv_shlibpath_overrides_runpath=yes
11370 rm -f core conftest.err conftest.$ac_objext \
11371 conftest$ac_exeext conftest.$ac_ext
11372 LDFLAGS=$save_LDFLAGS
11373 libdir=$save_libdir
11377 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11379 # This implies no fast_install, which is unacceptable.
11380 # Some rework will be needed to allow for fast_install
11381 # before this can be enabled.
11382 hardcode_into_libs=yes
11384 # Append ld.so.conf contents to the search path
11385 if test -f /etc/ld.so.conf; then
11386 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' ' '`
11387 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11390 # We used to test for /lib/ld.so.1 and disable shared libraries on
11391 # powerpc, because MkLinux only supported shared libraries with the
11392 # GNU dynamic linker. Since this was broken with cross compilers,
11393 # most powerpc-linux boxes support dynamic linking these days and
11394 # people can always --disable-shared, the test was removed, and we
11395 # assume the GNU/Linux dynamic linker is in use.
11396 dynamic_linker='GNU/Linux ld.so'
11399 netbsd*)
11400 version_type=sunos
11401 need_lib_prefix=no
11402 need_version=no
11403 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11406 dynamic_linker='NetBSD (a.out) ld.so'
11407 else
11408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11409 soname_spec='${libname}${release}${shared_ext}$major'
11410 dynamic_linker='NetBSD ld.elf_so'
11412 shlibpath_var=LD_LIBRARY_PATH
11413 shlibpath_overrides_runpath=yes
11414 hardcode_into_libs=yes
11417 newsos6)
11418 version_type=linux
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11420 shlibpath_var=LD_LIBRARY_PATH
11421 shlibpath_overrides_runpath=yes
11424 *nto* | *qnx*)
11425 version_type=qnx
11426 need_lib_prefix=no
11427 need_version=no
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11429 soname_spec='${libname}${release}${shared_ext}$major'
11430 shlibpath_var=LD_LIBRARY_PATH
11431 shlibpath_overrides_runpath=no
11432 hardcode_into_libs=yes
11433 dynamic_linker='ldqnx.so'
11436 openbsd*)
11437 version_type=sunos
11438 sys_lib_dlsearch_path_spec="/usr/lib"
11439 need_lib_prefix=no
11440 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11441 case $host_os in
11442 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11443 *) need_version=no ;;
11444 esac
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11447 shlibpath_var=LD_LIBRARY_PATH
11448 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11449 case $host_os in
11450 openbsd2.[89] | openbsd2.[89].*)
11451 shlibpath_overrides_runpath=no
11454 shlibpath_overrides_runpath=yes
11456 esac
11457 else
11458 shlibpath_overrides_runpath=yes
11462 os2*)
11463 libname_spec='$name'
11464 shrext_cmds=".dll"
11465 need_lib_prefix=no
11466 library_names_spec='$libname${shared_ext} $libname.a'
11467 dynamic_linker='OS/2 ld.exe'
11468 shlibpath_var=LIBPATH
11471 osf3* | osf4* | osf5*)
11472 version_type=osf
11473 need_lib_prefix=no
11474 need_version=no
11475 soname_spec='${libname}${release}${shared_ext}$major'
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477 shlibpath_var=LD_LIBRARY_PATH
11478 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11479 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11482 rdos*)
11483 dynamic_linker=no
11486 solaris*)
11487 version_type=linux
11488 need_lib_prefix=no
11489 need_version=no
11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11491 soname_spec='${libname}${release}${shared_ext}$major'
11492 shlibpath_var=LD_LIBRARY_PATH
11493 shlibpath_overrides_runpath=yes
11494 hardcode_into_libs=yes
11495 # ldd complains unless libraries are executable
11496 postinstall_cmds='chmod +x $lib'
11499 sunos4*)
11500 version_type=sunos
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11502 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 shlibpath_overrides_runpath=yes
11505 if test "$with_gnu_ld" = yes; then
11506 need_lib_prefix=no
11508 need_version=yes
11511 sysv4 | sysv4.3*)
11512 version_type=linux
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514 soname_spec='${libname}${release}${shared_ext}$major'
11515 shlibpath_var=LD_LIBRARY_PATH
11516 case $host_vendor in
11517 sni)
11518 shlibpath_overrides_runpath=no
11519 need_lib_prefix=no
11520 runpath_var=LD_RUN_PATH
11522 siemens)
11523 need_lib_prefix=no
11525 motorola)
11526 need_lib_prefix=no
11527 need_version=no
11528 shlibpath_overrides_runpath=no
11529 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11531 esac
11534 sysv4*MP*)
11535 if test -d /usr/nec ;then
11536 version_type=linux
11537 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11538 soname_spec='$libname${shared_ext}.$major'
11539 shlibpath_var=LD_LIBRARY_PATH
11543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11544 version_type=freebsd-elf
11545 need_lib_prefix=no
11546 need_version=no
11547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11548 soname_spec='${libname}${release}${shared_ext}$major'
11549 shlibpath_var=LD_LIBRARY_PATH
11550 shlibpath_overrides_runpath=yes
11551 hardcode_into_libs=yes
11552 if test "$with_gnu_ld" = yes; then
11553 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11554 else
11555 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11556 case $host_os in
11557 sco3.2v5*)
11558 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11560 esac
11562 sys_lib_dlsearch_path_spec='/usr/lib'
11565 tpf*)
11566 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11567 version_type=linux
11568 need_lib_prefix=no
11569 need_version=no
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571 shlibpath_var=LD_LIBRARY_PATH
11572 shlibpath_overrides_runpath=no
11573 hardcode_into_libs=yes
11576 uts4*)
11577 version_type=linux
11578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11579 soname_spec='${libname}${release}${shared_ext}$major'
11580 shlibpath_var=LD_LIBRARY_PATH
11583 # Shared libraries for VwWorks, >= 7 only at this stage
11584 # and (fpic) still incompatible with "large" code models
11585 # in a few configurations. Only for RTP mode in any case,
11586 # and upon explicit request at configure time.
11587 vxworks7*)
11588 dynamic_linker=no
11589 case ${with_multisubdir}-${enable_shared} in
11590 *large*)
11592 *mrtp*-yes)
11593 version_type=linux
11594 need_lib_prefix=no
11595 need_version=no
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597 soname_spec='${libname}${release}${shared_ext}$major'
11598 dynamic_linker="$host_os module_loader"
11600 esac
11603 dynamic_linker=no
11605 esac
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11607 $as_echo "$dynamic_linker" >&6; }
11608 test "$dynamic_linker" = no && can_build_shared=no
11610 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11611 if test "$GCC" = yes; then
11612 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11615 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11616 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11618 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11619 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11714 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11715 hardcode_action=
11716 if test -n "$hardcode_libdir_flag_spec" ||
11717 test -n "$runpath_var" ||
11718 test "X$hardcode_automatic" = "Xyes" ; then
11720 # We can hardcode non-existent directories.
11721 if test "$hardcode_direct" != no &&
11722 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11723 # have to relink, otherwise we might link with an installed library
11724 # when we should be linking with a yet-to-be-installed one
11725 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11726 test "$hardcode_minus_L" != no; then
11727 # Linking always hardcodes the temporary library directory.
11728 hardcode_action=relink
11729 else
11730 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11731 hardcode_action=immediate
11733 else
11734 # We cannot hardcode anything, or else we can only hardcode existing
11735 # directories.
11736 hardcode_action=unsupported
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11739 $as_echo "$hardcode_action" >&6; }
11741 if test "$hardcode_action" = relink ||
11742 test "$inherit_rpath" = yes; then
11743 # Fast installation is not supported
11744 enable_fast_install=no
11745 elif test "$shlibpath_overrides_runpath" = yes ||
11746 test "$enable_shared" = no; then
11747 # Fast installation is not necessary
11748 enable_fast_install=needless
11756 if test "x$enable_dlopen" != xyes; then
11757 enable_dlopen=unknown
11758 enable_dlopen_self=unknown
11759 enable_dlopen_self_static=unknown
11760 else
11761 lt_cv_dlopen=no
11762 lt_cv_dlopen_libs=
11764 case $host_os in
11765 beos*)
11766 lt_cv_dlopen="load_add_on"
11767 lt_cv_dlopen_libs=
11768 lt_cv_dlopen_self=yes
11771 mingw* | pw32* | cegcc*)
11772 lt_cv_dlopen="LoadLibrary"
11773 lt_cv_dlopen_libs=
11776 cygwin*)
11777 lt_cv_dlopen="dlopen"
11778 lt_cv_dlopen_libs=
11781 darwin*)
11782 # if libdl is installed we need to link against it
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11784 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11785 if ${ac_cv_lib_dl_dlopen+:} false; then :
11786 $as_echo_n "(cached) " >&6
11787 else
11788 ac_check_lib_save_LIBS=$LIBS
11789 LIBS="-ldl $LIBS"
11790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11791 /* end confdefs.h. */
11793 /* Override any GCC internal prototype to avoid an error.
11794 Use char because int might match the return type of a GCC
11795 builtin and then its argument prototype would still apply. */
11796 #ifdef __cplusplus
11797 extern "C"
11798 #endif
11799 char dlopen ();
11801 main ()
11803 return dlopen ();
11805 return 0;
11807 _ACEOF
11808 if ac_fn_c_try_link "$LINENO"; then :
11809 ac_cv_lib_dl_dlopen=yes
11810 else
11811 ac_cv_lib_dl_dlopen=no
11813 rm -f core conftest.err conftest.$ac_objext \
11814 conftest$ac_exeext conftest.$ac_ext
11815 LIBS=$ac_check_lib_save_LIBS
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11818 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11819 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11820 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11821 else
11823 lt_cv_dlopen="dyld"
11824 lt_cv_dlopen_libs=
11825 lt_cv_dlopen_self=yes
11832 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11833 if test "x$ac_cv_func_shl_load" = xyes; then :
11834 lt_cv_dlopen="shl_load"
11835 else
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11837 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11838 if ${ac_cv_lib_dld_shl_load+:} false; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 ac_check_lib_save_LIBS=$LIBS
11842 LIBS="-ldld $LIBS"
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11846 /* Override any GCC internal prototype to avoid an error.
11847 Use char because int might match the return type of a GCC
11848 builtin and then its argument prototype would still apply. */
11849 #ifdef __cplusplus
11850 extern "C"
11851 #endif
11852 char shl_load ();
11854 main ()
11856 return shl_load ();
11858 return 0;
11860 _ACEOF
11861 if ac_fn_c_try_link "$LINENO"; then :
11862 ac_cv_lib_dld_shl_load=yes
11863 else
11864 ac_cv_lib_dld_shl_load=no
11866 rm -f core conftest.err conftest.$ac_objext \
11867 conftest$ac_exeext conftest.$ac_ext
11868 LIBS=$ac_check_lib_save_LIBS
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11871 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11872 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11873 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11874 else
11875 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11876 if test "x$ac_cv_func_dlopen" = xyes; then :
11877 lt_cv_dlopen="dlopen"
11878 else
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11880 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11881 if ${ac_cv_lib_dl_dlopen+:} false; then :
11882 $as_echo_n "(cached) " >&6
11883 else
11884 ac_check_lib_save_LIBS=$LIBS
11885 LIBS="-ldl $LIBS"
11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h. */
11889 /* Override any GCC internal prototype to avoid an error.
11890 Use char because int might match the return type of a GCC
11891 builtin and then its argument prototype would still apply. */
11892 #ifdef __cplusplus
11893 extern "C"
11894 #endif
11895 char dlopen ();
11897 main ()
11899 return dlopen ();
11901 return 0;
11903 _ACEOF
11904 if ac_fn_c_try_link "$LINENO"; then :
11905 ac_cv_lib_dl_dlopen=yes
11906 else
11907 ac_cv_lib_dl_dlopen=no
11909 rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11911 LIBS=$ac_check_lib_save_LIBS
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11914 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11915 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11916 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11917 else
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11919 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11920 if ${ac_cv_lib_svld_dlopen+:} false; then :
11921 $as_echo_n "(cached) " >&6
11922 else
11923 ac_check_lib_save_LIBS=$LIBS
11924 LIBS="-lsvld $LIBS"
11925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11926 /* end confdefs.h. */
11928 /* Override any GCC internal prototype to avoid an error.
11929 Use char because int might match the return type of a GCC
11930 builtin and then its argument prototype would still apply. */
11931 #ifdef __cplusplus
11932 extern "C"
11933 #endif
11934 char dlopen ();
11936 main ()
11938 return dlopen ();
11940 return 0;
11942 _ACEOF
11943 if ac_fn_c_try_link "$LINENO"; then :
11944 ac_cv_lib_svld_dlopen=yes
11945 else
11946 ac_cv_lib_svld_dlopen=no
11948 rm -f core conftest.err conftest.$ac_objext \
11949 conftest$ac_exeext conftest.$ac_ext
11950 LIBS=$ac_check_lib_save_LIBS
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11953 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11954 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11955 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11956 else
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11958 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11959 if ${ac_cv_lib_dld_dld_link+:} false; then :
11960 $as_echo_n "(cached) " >&6
11961 else
11962 ac_check_lib_save_LIBS=$LIBS
11963 LIBS="-ldld $LIBS"
11964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11967 /* Override any GCC internal prototype to avoid an error.
11968 Use char because int might match the return type of a GCC
11969 builtin and then its argument prototype would still apply. */
11970 #ifdef __cplusplus
11971 extern "C"
11972 #endif
11973 char dld_link ();
11975 main ()
11977 return dld_link ();
11979 return 0;
11981 _ACEOF
11982 if ac_fn_c_try_link "$LINENO"; then :
11983 ac_cv_lib_dld_dld_link=yes
11984 else
11985 ac_cv_lib_dld_dld_link=no
11987 rm -f core conftest.err conftest.$ac_objext \
11988 conftest$ac_exeext conftest.$ac_ext
11989 LIBS=$ac_check_lib_save_LIBS
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11992 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11993 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11994 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12013 esac
12015 if test "x$lt_cv_dlopen" != xno; then
12016 enable_dlopen=yes
12017 else
12018 enable_dlopen=no
12021 case $lt_cv_dlopen in
12022 dlopen)
12023 save_CPPFLAGS="$CPPFLAGS"
12024 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12026 save_LDFLAGS="$LDFLAGS"
12027 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12029 save_LIBS="$LIBS"
12030 LIBS="$lt_cv_dlopen_libs $LIBS"
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12033 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12034 if ${lt_cv_dlopen_self+:} false; then :
12035 $as_echo_n "(cached) " >&6
12036 else
12037 if test "$cross_compiling" = yes; then :
12038 lt_cv_dlopen_self=cross
12039 else
12040 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12041 lt_status=$lt_dlunknown
12042 cat > conftest.$ac_ext <<_LT_EOF
12043 #line 12043 "configure"
12044 #include "confdefs.h"
12046 #if HAVE_DLFCN_H
12047 #include <dlfcn.h>
12048 #endif
12050 #include <stdio.h>
12052 #ifdef RTLD_GLOBAL
12053 # define LT_DLGLOBAL RTLD_GLOBAL
12054 #else
12055 # ifdef DL_GLOBAL
12056 # define LT_DLGLOBAL DL_GLOBAL
12057 # else
12058 # define LT_DLGLOBAL 0
12059 # endif
12060 #endif
12062 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12063 find out it does not work in some platform. */
12064 #ifndef LT_DLLAZY_OR_NOW
12065 # ifdef RTLD_LAZY
12066 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12067 # else
12068 # ifdef DL_LAZY
12069 # define LT_DLLAZY_OR_NOW DL_LAZY
12070 # else
12071 # ifdef RTLD_NOW
12072 # define LT_DLLAZY_OR_NOW RTLD_NOW
12073 # else
12074 # ifdef DL_NOW
12075 # define LT_DLLAZY_OR_NOW DL_NOW
12076 # else
12077 # define LT_DLLAZY_OR_NOW 0
12078 # endif
12079 # endif
12080 # endif
12081 # endif
12082 #endif
12084 /* When -fvisbility=hidden is used, assume the code has been annotated
12085 correspondingly for the symbols needed. */
12086 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12087 void fnord () __attribute__((visibility("default")));
12088 #endif
12090 void fnord () { int i=42; }
12091 int main ()
12093 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12094 int status = $lt_dlunknown;
12096 if (self)
12098 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12099 else
12101 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12102 else puts (dlerror ());
12104 /* dlclose (self); */
12106 else
12107 puts (dlerror ());
12109 return status;
12111 _LT_EOF
12112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12113 (eval $ac_link) 2>&5
12114 ac_status=$?
12115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12116 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12117 (./conftest; exit; ) >&5 2>/dev/null
12118 lt_status=$?
12119 case x$lt_status in
12120 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12121 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12122 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12123 esac
12124 else :
12125 # compilation failed
12126 lt_cv_dlopen_self=no
12129 rm -fr conftest*
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12134 $as_echo "$lt_cv_dlopen_self" >&6; }
12136 if test "x$lt_cv_dlopen_self" = xyes; then
12137 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12139 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12140 if ${lt_cv_dlopen_self_static+:} false; then :
12141 $as_echo_n "(cached) " >&6
12142 else
12143 if test "$cross_compiling" = yes; then :
12144 lt_cv_dlopen_self_static=cross
12145 else
12146 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12147 lt_status=$lt_dlunknown
12148 cat > conftest.$ac_ext <<_LT_EOF
12149 #line 12149 "configure"
12150 #include "confdefs.h"
12152 #if HAVE_DLFCN_H
12153 #include <dlfcn.h>
12154 #endif
12156 #include <stdio.h>
12158 #ifdef RTLD_GLOBAL
12159 # define LT_DLGLOBAL RTLD_GLOBAL
12160 #else
12161 # ifdef DL_GLOBAL
12162 # define LT_DLGLOBAL DL_GLOBAL
12163 # else
12164 # define LT_DLGLOBAL 0
12165 # endif
12166 #endif
12168 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12169 find out it does not work in some platform. */
12170 #ifndef LT_DLLAZY_OR_NOW
12171 # ifdef RTLD_LAZY
12172 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12173 # else
12174 # ifdef DL_LAZY
12175 # define LT_DLLAZY_OR_NOW DL_LAZY
12176 # else
12177 # ifdef RTLD_NOW
12178 # define LT_DLLAZY_OR_NOW RTLD_NOW
12179 # else
12180 # ifdef DL_NOW
12181 # define LT_DLLAZY_OR_NOW DL_NOW
12182 # else
12183 # define LT_DLLAZY_OR_NOW 0
12184 # endif
12185 # endif
12186 # endif
12187 # endif
12188 #endif
12190 /* When -fvisbility=hidden is used, assume the code has been annotated
12191 correspondingly for the symbols needed. */
12192 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12193 void fnord () __attribute__((visibility("default")));
12194 #endif
12196 void fnord () { int i=42; }
12197 int main ()
12199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12200 int status = $lt_dlunknown;
12202 if (self)
12204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12205 else
12207 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12208 else puts (dlerror ());
12210 /* dlclose (self); */
12212 else
12213 puts (dlerror ());
12215 return status;
12217 _LT_EOF
12218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12219 (eval $ac_link) 2>&5
12220 ac_status=$?
12221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12222 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12223 (./conftest; exit; ) >&5 2>/dev/null
12224 lt_status=$?
12225 case x$lt_status in
12226 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12227 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12228 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12229 esac
12230 else :
12231 # compilation failed
12232 lt_cv_dlopen_self_static=no
12235 rm -fr conftest*
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12240 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12243 CPPFLAGS="$save_CPPFLAGS"
12244 LDFLAGS="$save_LDFLAGS"
12245 LIBS="$save_LIBS"
12247 esac
12249 case $lt_cv_dlopen_self in
12250 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12251 *) enable_dlopen_self=unknown ;;
12252 esac
12254 case $lt_cv_dlopen_self_static in
12255 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12256 *) enable_dlopen_self_static=unknown ;;
12257 esac
12276 striplib=
12277 old_striplib=
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12279 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12280 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12281 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12282 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12284 $as_echo "yes" >&6; }
12285 else
12286 # FIXME - insert some real tests, host_os isn't really good enough
12287 case $host_os in
12288 darwin*)
12289 if test -n "$STRIP" ; then
12290 striplib="$STRIP -x"
12291 old_striplib="$STRIP -S"
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12293 $as_echo "yes" >&6; }
12294 else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296 $as_echo "no" >&6; }
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12301 $as_echo "no" >&6; }
12303 esac
12317 # Report which library types will actually be built
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12319 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12321 $as_echo "$can_build_shared" >&6; }
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12324 $as_echo_n "checking whether to build shared libraries... " >&6; }
12325 test "$can_build_shared" = "no" && enable_shared=no
12327 # On AIX, shared libraries and static libraries use the same namespace, and
12328 # are all built from PIC.
12329 case $host_os in
12330 aix3*)
12331 test "$enable_shared" = yes && enable_static=no
12332 if test -n "$RANLIB"; then
12333 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12334 postinstall_cmds='$RANLIB $lib'
12338 aix[4-9]*)
12339 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12340 test "$enable_shared" = yes && enable_static=no
12343 esac
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12345 $as_echo "$enable_shared" >&6; }
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12348 $as_echo_n "checking whether to build static libraries... " >&6; }
12349 # Make sure either enable_shared or enable_static is yes.
12350 test "$enable_shared" = yes || enable_static=yes
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12352 $as_echo "$enable_static" >&6; }
12358 ac_ext=c
12359 ac_cpp='$CPP $CPPFLAGS'
12360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12364 CC="$lt_save_CC"
12366 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12367 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12368 (test "X$CXX" != "Xg++"))) ; then
12369 ac_ext=cpp
12370 ac_cpp='$CXXCPP $CPPFLAGS'
12371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12375 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12376 if test -z "$CXXCPP"; then
12377 if ${ac_cv_prog_CXXCPP+:} false; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12380 # Double quotes because CXXCPP needs to be expanded
12381 for CXXCPP in "$CXX -E" "/lib/cpp"
12383 ac_preproc_ok=false
12384 for ac_cxx_preproc_warn_flag in '' yes
12386 # Use a header file that comes with gcc, so configuring glibc
12387 # with a fresh cross-compiler works.
12388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12389 # <limits.h> exists even on freestanding compilers.
12390 # On the NeXT, cc -E runs the code through the compiler's parser,
12391 # not just through cpp. "Syntax error" is here to catch this case.
12392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393 /* end confdefs.h. */
12394 #ifdef __STDC__
12395 # include <limits.h>
12396 #else
12397 # include <assert.h>
12398 #endif
12399 Syntax error
12400 _ACEOF
12401 if ac_fn_cxx_try_cpp "$LINENO"; then :
12403 else
12404 # Broken: fails on valid input.
12405 continue
12407 rm -f conftest.err conftest.i conftest.$ac_ext
12409 # OK, works on sane cases. Now check whether nonexistent headers
12410 # can be detected and how.
12411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12412 /* end confdefs.h. */
12413 #include <ac_nonexistent.h>
12414 _ACEOF
12415 if ac_fn_cxx_try_cpp "$LINENO"; then :
12416 # Broken: success on invalid input.
12417 continue
12418 else
12419 # Passes both tests.
12420 ac_preproc_ok=:
12421 break
12423 rm -f conftest.err conftest.i conftest.$ac_ext
12425 done
12426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12427 rm -f conftest.i conftest.err conftest.$ac_ext
12428 if $ac_preproc_ok; then :
12429 break
12432 done
12433 ac_cv_prog_CXXCPP=$CXXCPP
12436 CXXCPP=$ac_cv_prog_CXXCPP
12437 else
12438 ac_cv_prog_CXXCPP=$CXXCPP
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12441 $as_echo "$CXXCPP" >&6; }
12442 ac_preproc_ok=false
12443 for ac_cxx_preproc_warn_flag in '' yes
12445 # Use a header file that comes with gcc, so configuring glibc
12446 # with a fresh cross-compiler works.
12447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12448 # <limits.h> exists even on freestanding compilers.
12449 # On the NeXT, cc -E runs the code through the compiler's parser,
12450 # not just through cpp. "Syntax error" is here to catch this case.
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12453 #ifdef __STDC__
12454 # include <limits.h>
12455 #else
12456 # include <assert.h>
12457 #endif
12458 Syntax error
12459 _ACEOF
12460 if ac_fn_cxx_try_cpp "$LINENO"; then :
12462 else
12463 # Broken: fails on valid input.
12464 continue
12466 rm -f conftest.err conftest.i conftest.$ac_ext
12468 # OK, works on sane cases. Now check whether nonexistent headers
12469 # can be detected and how.
12470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12471 /* end confdefs.h. */
12472 #include <ac_nonexistent.h>
12473 _ACEOF
12474 if ac_fn_cxx_try_cpp "$LINENO"; then :
12475 # Broken: success on invalid input.
12476 continue
12477 else
12478 # Passes both tests.
12479 ac_preproc_ok=:
12480 break
12482 rm -f conftest.err conftest.i conftest.$ac_ext
12484 done
12485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12486 rm -f conftest.i conftest.err conftest.$ac_ext
12487 if $ac_preproc_ok; then :
12489 else
12490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12492 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12493 See \`config.log' for more details" "$LINENO" 5; }
12496 ac_ext=c
12497 ac_cpp='$CPP $CPPFLAGS'
12498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12502 else
12503 _lt_caught_CXX_error=yes
12506 ac_ext=cpp
12507 ac_cpp='$CXXCPP $CPPFLAGS'
12508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12512 archive_cmds_need_lc_CXX=no
12513 allow_undefined_flag_CXX=
12514 always_export_symbols_CXX=no
12515 archive_expsym_cmds_CXX=
12516 compiler_needs_object_CXX=no
12517 export_dynamic_flag_spec_CXX=
12518 hardcode_direct_CXX=no
12519 hardcode_direct_absolute_CXX=no
12520 hardcode_libdir_flag_spec_CXX=
12521 hardcode_libdir_flag_spec_ld_CXX=
12522 hardcode_libdir_separator_CXX=
12523 hardcode_minus_L_CXX=no
12524 hardcode_shlibpath_var_CXX=unsupported
12525 hardcode_automatic_CXX=no
12526 inherit_rpath_CXX=no
12527 module_cmds_CXX=
12528 module_expsym_cmds_CXX=
12529 link_all_deplibs_CXX=unknown
12530 old_archive_cmds_CXX=$old_archive_cmds
12531 reload_flag_CXX=$reload_flag
12532 reload_cmds_CXX=$reload_cmds
12533 no_undefined_flag_CXX=
12534 whole_archive_flag_spec_CXX=
12535 enable_shared_with_static_runtimes_CXX=no
12537 # Source file extension for C++ test sources.
12538 ac_ext=cpp
12540 # Object file extension for compiled C++ test sources.
12541 objext=o
12542 objext_CXX=$objext
12544 # No sense in running all these tests if we already determined that
12545 # the CXX compiler isn't working. Some variables (like enable_shared)
12546 # are currently assumed to apply to all compilers on this platform,
12547 # and will be corrupted by setting them based on a non-working compiler.
12548 if test "$_lt_caught_CXX_error" != yes; then
12549 # Code to be used in simple compile tests
12550 lt_simple_compile_test_code="int some_variable = 0;"
12552 # Code to be used in simple link tests
12553 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12555 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12562 # If no C compiler was specified, use CC.
12563 LTCC=${LTCC-"$CC"}
12565 # If no C compiler flags were specified, use CFLAGS.
12566 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12568 # Allow CC to be a program name with arguments.
12569 compiler=$CC
12572 # save warnings/boilerplate of simple test code
12573 ac_outfile=conftest.$ac_objext
12574 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12575 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12576 _lt_compiler_boilerplate=`cat conftest.err`
12577 $RM conftest*
12579 ac_outfile=conftest.$ac_objext
12580 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12581 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12582 _lt_linker_boilerplate=`cat conftest.err`
12583 $RM -r conftest*
12586 # Allow CC to be a program name with arguments.
12587 lt_save_CC=$CC
12588 lt_save_LD=$LD
12589 lt_save_GCC=$GCC
12590 GCC=$GXX
12591 lt_save_with_gnu_ld=$with_gnu_ld
12592 lt_save_path_LD=$lt_cv_path_LD
12593 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12594 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12595 else
12596 $as_unset lt_cv_prog_gnu_ld
12598 if test -n "${lt_cv_path_LDCXX+set}"; then
12599 lt_cv_path_LD=$lt_cv_path_LDCXX
12600 else
12601 $as_unset lt_cv_path_LD
12603 test -z "${LDCXX+set}" || LD=$LDCXX
12604 CC=${CXX-"c++"}
12605 compiler=$CC
12606 compiler_CXX=$CC
12607 for cc_temp in $compiler""; do
12608 case $cc_temp in
12609 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12610 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12611 \-*) ;;
12612 *) break;;
12613 esac
12614 done
12615 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12618 if test -n "$compiler"; then
12619 # We don't want -fno-exception when compiling C++ code, so set the
12620 # no_builtin_flag separately
12621 if test "$GXX" = yes; then
12622 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12623 else
12624 lt_prog_compiler_no_builtin_flag_CXX=
12627 if test "$GXX" = yes; then
12628 # Set up default GNU C++ configuration
12632 # Check whether --with-gnu-ld was given.
12633 if test "${with_gnu_ld+set}" = set; then :
12634 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12635 else
12636 with_gnu_ld=no
12639 ac_prog=ld
12640 if test "$GCC" = yes; then
12641 # Check if gcc -print-prog-name=ld gives a path.
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12643 $as_echo_n "checking for ld used by $CC... " >&6; }
12644 case $host in
12645 *-*-mingw*)
12646 # gcc leaves a trailing carriage return which upsets mingw
12647 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12649 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12650 esac
12651 case $ac_prog in
12652 # Accept absolute paths.
12653 [\\/]* | ?:[\\/]*)
12654 re_direlt='/[^/][^/]*/\.\./'
12655 # Canonicalize the pathname of ld
12656 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12657 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12658 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12659 done
12660 test -z "$LD" && LD="$ac_prog"
12663 # If it fails, then pretend we aren't using GCC.
12664 ac_prog=ld
12667 # If it is relative, then search for the first ld in PATH.
12668 with_gnu_ld=unknown
12670 esac
12671 elif test "$with_gnu_ld" = yes; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12673 $as_echo_n "checking for GNU ld... " >&6; }
12674 else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12676 $as_echo_n "checking for non-GNU ld... " >&6; }
12678 if ${lt_cv_path_LD+:} false; then :
12679 $as_echo_n "(cached) " >&6
12680 else
12681 if test -z "$LD"; then
12682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12683 for ac_dir in $PATH; do
12684 IFS="$lt_save_ifs"
12685 test -z "$ac_dir" && ac_dir=.
12686 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12687 lt_cv_path_LD="$ac_dir/$ac_prog"
12688 # Check to see if the program is GNU ld. I'd rather use --version,
12689 # but apparently some variants of GNU ld only accept -v.
12690 # Break only if it was the GNU/non-GNU ld that we prefer.
12691 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12692 *GNU* | *'with BFD'*)
12693 test "$with_gnu_ld" != no && break
12696 test "$with_gnu_ld" != yes && break
12698 esac
12700 done
12701 IFS="$lt_save_ifs"
12702 else
12703 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12707 LD="$lt_cv_path_LD"
12708 if test -n "$LD"; then
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12710 $as_echo "$LD" >&6; }
12711 else
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713 $as_echo "no" >&6; }
12715 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12717 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12718 if ${lt_cv_prog_gnu_ld+:} false; then :
12719 $as_echo_n "(cached) " >&6
12720 else
12721 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12722 case `$LD -v 2>&1 </dev/null` in
12723 *GNU* | *'with BFD'*)
12724 lt_cv_prog_gnu_ld=yes
12727 lt_cv_prog_gnu_ld=no
12729 esac
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12732 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12733 with_gnu_ld=$lt_cv_prog_gnu_ld
12741 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12742 # archiving commands below assume that GNU ld is being used.
12743 if test "$with_gnu_ld" = yes; then
12744 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12745 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12747 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12748 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12750 # If archive_cmds runs LD, not CC, wlarc should be empty
12751 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12752 # investigate it a little bit more. (MM)
12753 wlarc='${wl}'
12755 # ancient GNU ld didn't support --whole-archive et. al.
12756 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12757 $GREP 'no-whole-archive' > /dev/null; then
12758 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12759 else
12760 whole_archive_flag_spec_CXX=
12762 else
12763 with_gnu_ld=no
12764 wlarc=
12766 # A generic and very simple default shared library creation
12767 # command for GNU C++ for the case where it uses the native
12768 # linker, instead of GNU ld. If possible, this setting should
12769 # overridden to take advantage of the native linker features on
12770 # the platform it is being used on.
12771 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12774 # Commands to make compiler produce verbose output that lists
12775 # what "hidden" libraries, object files and flags are used when
12776 # linking a shared library.
12777 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12779 else
12780 GXX=no
12781 with_gnu_ld=no
12782 wlarc=
12785 # PORTME: fill in a description of your system's C++ link characteristics
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12787 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12788 ld_shlibs_CXX=yes
12789 case $host_os in
12790 aix3*)
12791 # FIXME: insert proper C++ library support
12792 ld_shlibs_CXX=no
12794 aix[4-9]*)
12795 if test "$host_cpu" = ia64; then
12796 # On IA64, the linker does run time linking by default, so we don't
12797 # have to do anything special.
12798 aix_use_runtimelinking=no
12799 exp_sym_flag='-Bexport'
12800 no_entry_flag=""
12801 else
12802 aix_use_runtimelinking=no
12804 # Test if we are trying to use run time linking or normal
12805 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12806 # need to do runtime linking.
12807 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12808 for ld_flag in $LDFLAGS; do
12809 case $ld_flag in
12810 *-brtl*)
12811 aix_use_runtimelinking=yes
12812 break
12814 esac
12815 done
12817 esac
12819 exp_sym_flag='-bexport'
12820 no_entry_flag='-bnoentry'
12823 # When large executables or shared objects are built, AIX ld can
12824 # have problems creating the table of contents. If linking a library
12825 # or program results in "error TOC overflow" add -mminimal-toc to
12826 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12827 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12829 archive_cmds_CXX=''
12830 hardcode_direct_CXX=yes
12831 hardcode_direct_absolute_CXX=yes
12832 hardcode_libdir_separator_CXX=':'
12833 link_all_deplibs_CXX=yes
12834 file_list_spec_CXX='${wl}-f,'
12836 if test "$GXX" = yes; then
12837 case $host_os in aix4.[012]|aix4.[012].*)
12838 # We only want to do this on AIX 4.2 and lower, the check
12839 # below for broken collect2 doesn't work under 4.3+
12840 collect2name=`${CC} -print-prog-name=collect2`
12841 if test -f "$collect2name" &&
12842 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12843 then
12844 # We have reworked collect2
12846 else
12847 # We have old collect2
12848 hardcode_direct_CXX=unsupported
12849 # It fails to find uninstalled libraries when the uninstalled
12850 # path is not listed in the libpath. Setting hardcode_minus_L
12851 # to unsupported forces relinking
12852 hardcode_minus_L_CXX=yes
12853 hardcode_libdir_flag_spec_CXX='-L$libdir'
12854 hardcode_libdir_separator_CXX=
12856 esac
12857 shared_flag='-shared'
12858 if test "$aix_use_runtimelinking" = yes; then
12859 shared_flag="$shared_flag "'${wl}-G'
12861 else
12862 # not using gcc
12863 if test "$host_cpu" = ia64; then
12864 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12865 # chokes on -Wl,-G. The following line is correct:
12866 shared_flag='-G'
12867 else
12868 if test "$aix_use_runtimelinking" = yes; then
12869 shared_flag='${wl}-G'
12870 else
12871 shared_flag='${wl}-bM:SRE'
12876 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12877 # It seems that -bexpall does not export symbols beginning with
12878 # underscore (_), so it is better to generate a list of symbols to
12879 # export.
12880 always_export_symbols_CXX=yes
12881 if test "$aix_use_runtimelinking" = yes; then
12882 # Warning - without using the other runtime loading flags (-brtl),
12883 # -berok will link without error, but may produce a broken library.
12884 allow_undefined_flag_CXX='-berok'
12885 # Determine the default libpath from the value encoded in an empty
12886 # executable.
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12891 main ()
12895 return 0;
12897 _ACEOF
12898 if ac_fn_cxx_try_link "$LINENO"; then :
12900 lt_aix_libpath_sed='
12901 /Import File Strings/,/^$/ {
12902 /^0/ {
12903 s/^0 *\(.*\)$/\1/
12907 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12908 # Check for a 64-bit object if we didn't find anything.
12909 if test -z "$aix_libpath"; then
12910 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12913 rm -f core conftest.err conftest.$ac_objext \
12914 conftest$ac_exeext conftest.$ac_ext
12915 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12917 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12919 archive_expsym_cmds_CXX='$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"
12920 else
12921 if test "$host_cpu" = ia64; then
12922 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12923 allow_undefined_flag_CXX="-z nodefs"
12924 archive_expsym_cmds_CXX="\$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"
12925 else
12926 # Determine the default libpath from the value encoded in an
12927 # empty executable.
12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12932 main ()
12936 return 0;
12938 _ACEOF
12939 if ac_fn_cxx_try_link "$LINENO"; then :
12941 lt_aix_libpath_sed='
12942 /Import File Strings/,/^$/ {
12943 /^0/ {
12944 s/^0 *\(.*\)$/\1/
12948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12949 # Check for a 64-bit object if we didn't find anything.
12950 if test -z "$aix_libpath"; then
12951 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12954 rm -f core conftest.err conftest.$ac_objext \
12955 conftest$ac_exeext conftest.$ac_ext
12956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12958 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12959 # Warning - without using the other run time loading flags,
12960 # -berok will link without error, but may produce a broken library.
12961 no_undefined_flag_CXX=' ${wl}-bernotok'
12962 allow_undefined_flag_CXX=' ${wl}-berok'
12963 if test "$with_gnu_ld" = yes; then
12964 # We only use this code for GNU lds that support --whole-archive.
12965 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12966 else
12967 # Exported symbols can be pulled into shared objects from archives
12968 whole_archive_flag_spec_CXX='$convenience'
12970 archive_cmds_need_lc_CXX=yes
12971 # This is similar to how AIX traditionally builds its shared
12972 # libraries.
12973 archive_expsym_cmds_CXX="\$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'
12978 beos*)
12979 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12980 allow_undefined_flag_CXX=unsupported
12981 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12982 # support --undefined. This deserves some investigation. FIXME
12983 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12984 else
12985 ld_shlibs_CXX=no
12989 chorus*)
12990 case $cc_basename in
12992 # FIXME: insert proper C++ library support
12993 ld_shlibs_CXX=no
12995 esac
12998 cygwin* | mingw* | pw32* | cegcc*)
12999 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13000 # as there is no search path for DLLs.
13001 hardcode_libdir_flag_spec_CXX='-L$libdir'
13002 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13003 allow_undefined_flag_CXX=unsupported
13004 always_export_symbols_CXX=no
13005 enable_shared_with_static_runtimes_CXX=yes
13007 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13008 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13009 # If the export-symbols file already is a .def file (1st line
13010 # is EXPORTS), use it as is; otherwise, prepend...
13011 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13012 cp $export_symbols $output_objdir/$soname.def;
13013 else
13014 echo EXPORTS > $output_objdir/$soname.def;
13015 cat $export_symbols >> $output_objdir/$soname.def;
13017 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13018 else
13019 ld_shlibs_CXX=no
13022 darwin* | rhapsody*)
13025 archive_cmds_need_lc_CXX=no
13026 hardcode_direct_CXX=no
13027 hardcode_automatic_CXX=yes
13028 hardcode_shlibpath_var_CXX=unsupported
13029 if test "$lt_cv_ld_force_load" = "yes"; then
13030 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13031 else
13032 whole_archive_flag_spec_CXX=''
13034 link_all_deplibs_CXX=yes
13035 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13036 case $cc_basename in
13037 ifort*) _lt_dar_can_shared=yes ;;
13038 *) _lt_dar_can_shared=$GCC ;;
13039 esac
13040 if test "$_lt_dar_can_shared" = "yes"; then
13041 output_verbose_link_cmd=func_echo_all
13042 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13043 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13044 archive_expsym_cmds_CXX="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}"
13045 module_expsym_cmds_CXX="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}"
13046 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13047 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13048 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13051 else
13052 ld_shlibs_CXX=no
13057 dgux*)
13058 case $cc_basename in
13059 ec++*)
13060 # FIXME: insert proper C++ library support
13061 ld_shlibs_CXX=no
13063 ghcx*)
13064 # Green Hills C++ Compiler
13065 # FIXME: insert proper C++ library support
13066 ld_shlibs_CXX=no
13069 # FIXME: insert proper C++ library support
13070 ld_shlibs_CXX=no
13072 esac
13075 freebsd2.*)
13076 # C++ shared libraries reported to be fairly broken before
13077 # switch to ELF
13078 ld_shlibs_CXX=no
13081 freebsd-elf*)
13082 archive_cmds_need_lc_CXX=no
13085 freebsd* | dragonfly*)
13086 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13087 # conventions
13088 ld_shlibs_CXX=yes
13091 gnu*)
13094 haiku*)
13095 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13096 link_all_deplibs_CXX=yes
13099 hpux9*)
13100 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13101 hardcode_libdir_separator_CXX=:
13102 export_dynamic_flag_spec_CXX='${wl}-E'
13103 hardcode_direct_CXX=yes
13104 hardcode_minus_L_CXX=yes # Not in the search PATH,
13105 # but as the default
13106 # location of the library.
13108 case $cc_basename in
13109 CC*)
13110 # FIXME: insert proper C++ library support
13111 ld_shlibs_CXX=no
13113 aCC*)
13114 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13115 # Commands to make compiler produce verbose output that lists
13116 # what "hidden" libraries, object files and flags are used when
13117 # linking a shared library.
13119 # There doesn't appear to be a way to prevent this compiler from
13120 # explicitly linking system object files so we need to strip them
13121 # from the output so that they don't get included in the library
13122 # dependencies.
13123 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13126 if test "$GXX" = yes; then
13127 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13128 else
13129 # FIXME: insert proper C++ library support
13130 ld_shlibs_CXX=no
13133 esac
13136 hpux10*|hpux11*)
13137 if test $with_gnu_ld = no; then
13138 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13139 hardcode_libdir_separator_CXX=:
13141 case $host_cpu in
13142 hppa*64*|ia64*)
13145 export_dynamic_flag_spec_CXX='${wl}-E'
13147 esac
13149 case $host_cpu in
13150 hppa*64*|ia64*)
13151 hardcode_direct_CXX=no
13152 hardcode_shlibpath_var_CXX=no
13155 hardcode_direct_CXX=yes
13156 hardcode_direct_absolute_CXX=yes
13157 hardcode_minus_L_CXX=yes # Not in the search PATH,
13158 # but as the default
13159 # location of the library.
13161 esac
13163 case $cc_basename in
13164 CC*)
13165 # FIXME: insert proper C++ library support
13166 ld_shlibs_CXX=no
13168 aCC*)
13169 case $host_cpu in
13170 hppa*64*)
13171 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13173 ia64*)
13174 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13177 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13179 esac
13180 # Commands to make compiler produce verbose output that lists
13181 # what "hidden" libraries, object files and flags are used when
13182 # linking a shared library.
13184 # There doesn't appear to be a way to prevent this compiler from
13185 # explicitly linking system object files so we need to strip them
13186 # from the output so that they don't get included in the library
13187 # dependencies.
13188 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13191 if test "$GXX" = yes; then
13192 if test $with_gnu_ld = no; then
13193 case $host_cpu in
13194 hppa*64*)
13195 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13197 ia64*)
13198 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13201 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13203 esac
13205 else
13206 # FIXME: insert proper C++ library support
13207 ld_shlibs_CXX=no
13210 esac
13213 interix[3-9]*)
13214 hardcode_direct_CXX=no
13215 hardcode_shlibpath_var_CXX=no
13216 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13217 export_dynamic_flag_spec_CXX='${wl}-E'
13218 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13219 # Instead, shared libraries are loaded at an image base (0x10000000 by
13220 # default) and relocated if they conflict, which is a slow very memory
13221 # consuming and fragmenting process. To avoid this, we pick a random,
13222 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13223 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13224 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13225 archive_expsym_cmds_CXX='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'
13227 irix5* | irix6*)
13228 case $cc_basename in
13229 CC*)
13230 # SGI C++
13231 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13233 # Archives containing C++ object files must be created using
13234 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13235 # necessary to make sure instantiated templates are included
13236 # in the archive.
13237 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13240 if test "$GXX" = yes; then
13241 if test "$with_gnu_ld" = no; then
13242 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13243 else
13244 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13247 link_all_deplibs_CXX=yes
13249 esac
13250 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13251 hardcode_libdir_separator_CXX=:
13252 inherit_rpath_CXX=yes
13255 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13256 case $cc_basename in
13257 KCC*)
13258 # Kuck and Associates, Inc. (KAI) C++ Compiler
13260 # KCC will only create a shared library if the output file
13261 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13262 # to its proper name (with version) after linking.
13263 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13264 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13265 # Commands to make compiler produce verbose output that lists
13266 # what "hidden" libraries, object files and flags are used when
13267 # linking a shared library.
13269 # There doesn't appear to be a way to prevent this compiler from
13270 # explicitly linking system object files so we need to strip them
13271 # from the output so that they don't get included in the library
13272 # dependencies.
13273 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13275 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13276 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13278 # Archives containing C++ object files must be created using
13279 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13280 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13282 icpc* | ecpc* )
13283 # Intel C++
13284 with_gnu_ld=yes
13285 # version 8.0 and above of icpc choke on multiply defined symbols
13286 # if we add $predep_objects and $postdep_objects, however 7.1 and
13287 # earlier do not add the objects themselves.
13288 case `$CC -V 2>&1` in
13289 *"Version 7."*)
13290 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13291 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13293 *) # Version 8.0 or newer
13294 tmp_idyn=
13295 case $host_cpu in
13296 ia64*) tmp_idyn=' -i_dynamic';;
13297 esac
13298 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13299 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13301 esac
13302 archive_cmds_need_lc_CXX=no
13303 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13304 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13305 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13307 pgCC* | pgcpp*)
13308 # Portland Group C++ compiler
13309 case `$CC -V` in
13310 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13311 prelink_cmds_CXX='tpldir=Template.dir~
13312 rm -rf $tpldir~
13313 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13314 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13315 old_archive_cmds_CXX='tpldir=Template.dir~
13316 rm -rf $tpldir~
13317 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13318 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13319 $RANLIB $oldlib'
13320 archive_cmds_CXX='tpldir=Template.dir~
13321 rm -rf $tpldir~
13322 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13323 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13324 archive_expsym_cmds_CXX='tpldir=Template.dir~
13325 rm -rf $tpldir~
13326 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13327 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13329 *) # Version 6 and above use weak symbols
13330 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13331 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13333 esac
13335 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13336 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13337 whole_archive_flag_spec_CXX='${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'
13339 cxx*)
13340 # Compaq C++
13341 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13342 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13344 runpath_var=LD_RUN_PATH
13345 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13346 hardcode_libdir_separator_CXX=:
13348 # Commands to make compiler produce verbose output that lists
13349 # what "hidden" libraries, object files and flags are used when
13350 # linking a shared library.
13352 # There doesn't appear to be a way to prevent this compiler from
13353 # explicitly linking system object files so we need to strip them
13354 # from the output so that they don't get included in the library
13355 # dependencies.
13356 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13358 xl* | mpixl* | bgxl*)
13359 # IBM XL 8.0 on PPC, with GNU ld
13360 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13361 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13362 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13363 if test "x$supports_anon_versioning" = xyes; then
13364 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13365 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13366 echo "local: *; };" >> $output_objdir/$libname.ver~
13367 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13371 case `$CC -V 2>&1 | sed 5q` in
13372 *Sun\ C*)
13373 # Sun C++ 5.9
13374 no_undefined_flag_CXX=' -zdefs'
13375 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13376 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13377 hardcode_libdir_flag_spec_CXX='-R$libdir'
13378 whole_archive_flag_spec_CXX='${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'
13379 compiler_needs_object_CXX=yes
13381 # Not sure whether something based on
13382 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13383 # would be better.
13384 output_verbose_link_cmd='func_echo_all'
13386 # Archives containing C++ object files must be created using
13387 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13388 # necessary to make sure instantiated templates are included
13389 # in the archive.
13390 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13392 esac
13394 esac
13397 lynxos*)
13398 # FIXME: insert proper C++ library support
13399 ld_shlibs_CXX=no
13402 m88k*)
13403 # FIXME: insert proper C++ library support
13404 ld_shlibs_CXX=no
13407 mvs*)
13408 case $cc_basename in
13409 cxx*)
13410 # FIXME: insert proper C++ library support
13411 ld_shlibs_CXX=no
13414 # FIXME: insert proper C++ library support
13415 ld_shlibs_CXX=no
13417 esac
13420 netbsd*)
13421 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13422 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13423 wlarc=
13424 hardcode_libdir_flag_spec_CXX='-R$libdir'
13425 hardcode_direct_CXX=yes
13426 hardcode_shlibpath_var_CXX=no
13428 # Workaround some broken pre-1.5 toolchains
13429 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13432 *nto* | *qnx*)
13433 ld_shlibs_CXX=yes
13436 openbsd2*)
13437 # C++ shared libraries are fairly broken
13438 ld_shlibs_CXX=no
13441 openbsd*)
13442 if test -f /usr/libexec/ld.so; then
13443 hardcode_direct_CXX=yes
13444 hardcode_shlibpath_var_CXX=no
13445 hardcode_direct_absolute_CXX=yes
13446 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13447 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13448 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13449 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13450 export_dynamic_flag_spec_CXX='${wl}-E'
13451 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13453 output_verbose_link_cmd=func_echo_all
13454 else
13455 ld_shlibs_CXX=no
13459 osf3* | osf4* | osf5*)
13460 case $cc_basename in
13461 KCC*)
13462 # Kuck and Associates, Inc. (KAI) C++ Compiler
13464 # KCC will only create a shared library if the output file
13465 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13466 # to its proper name (with version) after linking.
13467 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13469 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13470 hardcode_libdir_separator_CXX=:
13472 # Archives containing C++ object files must be created using
13473 # the KAI C++ compiler.
13474 case $host in
13475 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13476 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13477 esac
13479 RCC*)
13480 # Rational C++ 2.4.1
13481 # FIXME: insert proper C++ library support
13482 ld_shlibs_CXX=no
13484 cxx*)
13485 case $host in
13486 osf3*)
13487 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13488 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13489 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13492 allow_undefined_flag_CXX=' -expect_unresolved \*'
13493 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13494 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13495 echo "-hidden">> $lib.exp~
13496 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13497 $RM $lib.exp'
13498 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13500 esac
13502 hardcode_libdir_separator_CXX=:
13504 # Commands to make compiler produce verbose output that lists
13505 # what "hidden" libraries, object files and flags are used when
13506 # linking a shared library.
13508 # There doesn't appear to be a way to prevent this compiler from
13509 # explicitly linking system object files so we need to strip them
13510 # from the output so that they don't get included in the library
13511 # dependencies.
13512 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13515 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13516 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13517 case $host in
13518 osf3*)
13519 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13522 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13524 esac
13526 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13527 hardcode_libdir_separator_CXX=:
13529 # Commands to make compiler produce verbose output that lists
13530 # what "hidden" libraries, object files and flags are used when
13531 # linking a shared library.
13532 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13534 else
13535 # FIXME: insert proper C++ library support
13536 ld_shlibs_CXX=no
13539 esac
13542 psos*)
13543 # FIXME: insert proper C++ library support
13544 ld_shlibs_CXX=no
13547 sunos4*)
13548 case $cc_basename in
13549 CC*)
13550 # Sun C++ 4.x
13551 # FIXME: insert proper C++ library support
13552 ld_shlibs_CXX=no
13554 lcc*)
13555 # Lucid
13556 # FIXME: insert proper C++ library support
13557 ld_shlibs_CXX=no
13560 # FIXME: insert proper C++ library support
13561 ld_shlibs_CXX=no
13563 esac
13566 solaris*)
13567 case $cc_basename in
13568 CC*)
13569 # Sun C++ 4.2, 5.x and Centerline C++
13570 archive_cmds_need_lc_CXX=yes
13571 no_undefined_flag_CXX=' -zdefs'
13572 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13573 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13574 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13576 hardcode_libdir_flag_spec_CXX='-R$libdir'
13577 hardcode_shlibpath_var_CXX=no
13578 case $host_os in
13579 solaris2.[0-5] | solaris2.[0-5].*) ;;
13581 # The compiler driver will combine and reorder linker options,
13582 # but understands `-z linker_flag'.
13583 # Supported since Solaris 2.6 (maybe 2.5.1?)
13584 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13586 esac
13587 link_all_deplibs_CXX=yes
13589 output_verbose_link_cmd='func_echo_all'
13591 # Archives containing C++ object files must be created using
13592 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13593 # necessary to make sure instantiated templates are included
13594 # in the archive.
13595 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13597 gcx*)
13598 # Green Hills C++ Compiler
13599 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13601 # The C++ compiler must be used to create the archive.
13602 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13605 # GNU C++ compiler with Solaris linker
13606 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13607 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13608 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13609 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13610 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13611 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13613 # Commands to make compiler produce verbose output that lists
13614 # what "hidden" libraries, object files and flags are used when
13615 # linking a shared library.
13616 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13617 else
13618 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13619 # platform.
13620 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13621 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13622 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13624 # Commands to make compiler produce verbose output that lists
13625 # what "hidden" libraries, object files and flags are used when
13626 # linking a shared library.
13627 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13630 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13631 case $host_os in
13632 solaris2.[0-5] | solaris2.[0-5].*) ;;
13634 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13636 esac
13639 esac
13642 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13643 no_undefined_flag_CXX='${wl}-z,text'
13644 archive_cmds_need_lc_CXX=no
13645 hardcode_shlibpath_var_CXX=no
13646 runpath_var='LD_RUN_PATH'
13648 case $cc_basename in
13649 CC*)
13650 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13651 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13654 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13655 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13657 esac
13660 sysv5* | sco3.2v5* | sco5v6*)
13661 # Note: We can NOT use -z defs as we might desire, because we do not
13662 # link with -lc, and that would cause any symbols used from libc to
13663 # always be unresolved, which means just about no library would
13664 # ever link correctly. If we're not using GNU ld we use -z text
13665 # though, which does catch some bad symbols but isn't as heavy-handed
13666 # as -z defs.
13667 no_undefined_flag_CXX='${wl}-z,text'
13668 allow_undefined_flag_CXX='${wl}-z,nodefs'
13669 archive_cmds_need_lc_CXX=no
13670 hardcode_shlibpath_var_CXX=no
13671 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13672 hardcode_libdir_separator_CXX=':'
13673 link_all_deplibs_CXX=yes
13674 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13675 runpath_var='LD_RUN_PATH'
13677 case $cc_basename in
13678 CC*)
13679 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13680 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13681 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13682 '"$old_archive_cmds_CXX"
13683 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13684 '"$reload_cmds_CXX"
13687 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13688 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13690 esac
13693 tandem*)
13694 case $cc_basename in
13695 NCC*)
13696 # NonStop-UX NCC 3.20
13697 # FIXME: insert proper C++ library support
13698 ld_shlibs_CXX=no
13701 # FIXME: insert proper C++ library support
13702 ld_shlibs_CXX=no
13704 esac
13707 vxworks*)
13708 # For VxWorks ports, we assume the use of a GNU linker with
13709 # standard elf conventions.
13710 ld_shlibs_CXX=yes
13714 # FIXME: insert proper C++ library support
13715 ld_shlibs_CXX=no
13717 esac
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13720 $as_echo "$ld_shlibs_CXX" >&6; }
13721 test "$ld_shlibs_CXX" = no && can_build_shared=no
13723 GCC_CXX="$GXX"
13724 LD_CXX="$LD"
13726 ## CAVEAT EMPTOR:
13727 ## There is no encapsulation within the following macros, do not change
13728 ## the running order or otherwise move them around unless you know exactly
13729 ## what you are doing...
13730 # Dependencies to place before and after the object being linked:
13731 predep_objects_CXX=
13732 postdep_objects_CXX=
13733 predeps_CXX=
13734 postdeps_CXX=
13735 compiler_lib_search_path_CXX=
13737 cat > conftest.$ac_ext <<_LT_EOF
13738 class Foo
13740 public:
13741 Foo (void) { a = 0; }
13742 private:
13743 int a;
13745 _LT_EOF
13747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13748 (eval $ac_compile) 2>&5
13749 ac_status=$?
13750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13751 test $ac_status = 0; }; then
13752 # Parse the compiler output and extract the necessary
13753 # objects, libraries and library flags.
13755 # Sentinel used to keep track of whether or not we are before
13756 # the conftest object file.
13757 pre_test_object_deps_done=no
13759 for p in `eval "$output_verbose_link_cmd"`; do
13760 case $p in
13762 -L* | -R* | -l*)
13763 # Some compilers place space between "-{L,R}" and the path.
13764 # Remove the space.
13765 if test $p = "-L" ||
13766 test $p = "-R"; then
13767 prev=$p
13768 continue
13769 else
13770 prev=
13773 if test "$pre_test_object_deps_done" = no; then
13774 case $p in
13775 -L* | -R*)
13776 # Internal compiler library paths should come after those
13777 # provided the user. The postdeps already come after the
13778 # user supplied libs so there is no need to process them.
13779 if test -z "$compiler_lib_search_path_CXX"; then
13780 compiler_lib_search_path_CXX="${prev}${p}"
13781 else
13782 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13785 # The "-l" case would never come before the object being
13786 # linked, so don't bother handling this case.
13787 esac
13788 else
13789 if test -z "$postdeps_CXX"; then
13790 postdeps_CXX="${prev}${p}"
13791 else
13792 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13797 *.$objext)
13798 # This assumes that the test object file only shows up
13799 # once in the compiler output.
13800 if test "$p" = "conftest.$objext"; then
13801 pre_test_object_deps_done=yes
13802 continue
13805 if test "$pre_test_object_deps_done" = no; then
13806 if test -z "$predep_objects_CXX"; then
13807 predep_objects_CXX="$p"
13808 else
13809 predep_objects_CXX="$predep_objects_CXX $p"
13811 else
13812 if test -z "$postdep_objects_CXX"; then
13813 postdep_objects_CXX="$p"
13814 else
13815 postdep_objects_CXX="$postdep_objects_CXX $p"
13820 *) ;; # Ignore the rest.
13822 esac
13823 done
13825 # Clean up.
13826 rm -f a.out a.exe
13827 else
13828 echo "libtool.m4: error: problem compiling CXX test program"
13831 $RM -f confest.$objext
13833 # PORTME: override above test on systems where it is broken
13834 case $host_os in
13835 interix[3-9]*)
13836 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13837 # hack all around it, let's just trust "g++" to DTRT.
13838 predep_objects_CXX=
13839 postdep_objects_CXX=
13840 postdeps_CXX=
13843 linux*)
13844 case `$CC -V 2>&1 | sed 5q` in
13845 *Sun\ C*)
13846 # Sun C++ 5.9
13848 # The more standards-conforming stlport4 library is
13849 # incompatible with the Cstd library. Avoid specifying
13850 # it if it's in CXXFLAGS. Ignore libCrun as
13851 # -library=stlport4 depends on it.
13852 case " $CXX $CXXFLAGS " in
13853 *" -library=stlport4 "*)
13854 solaris_use_stlport4=yes
13856 esac
13858 if test "$solaris_use_stlport4" != yes; then
13859 postdeps_CXX='-library=Cstd -library=Crun'
13862 esac
13865 solaris*)
13866 case $cc_basename in
13867 CC*)
13868 # The more standards-conforming stlport4 library is
13869 # incompatible with the Cstd library. Avoid specifying
13870 # it if it's in CXXFLAGS. Ignore libCrun as
13871 # -library=stlport4 depends on it.
13872 case " $CXX $CXXFLAGS " in
13873 *" -library=stlport4 "*)
13874 solaris_use_stlport4=yes
13876 esac
13878 # Adding this requires a known-good setup of shared libraries for
13879 # Sun compiler versions before 5.6, else PIC objects from an old
13880 # archive will be linked into the output, leading to subtle bugs.
13881 if test "$solaris_use_stlport4" != yes; then
13882 postdeps_CXX='-library=Cstd -library=Crun'
13885 esac
13887 esac
13890 case " $postdeps_CXX " in
13891 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13892 esac
13893 compiler_lib_search_dirs_CXX=
13894 if test -n "${compiler_lib_search_path_CXX}"; then
13895 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13928 lt_prog_compiler_wl_CXX=
13929 lt_prog_compiler_pic_CXX=
13930 lt_prog_compiler_static_CXX=
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13933 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13935 # C++ specific cases for pic, static, wl, etc.
13936 if test "$GXX" = yes; then
13937 lt_prog_compiler_wl_CXX='-Wl,'
13938 lt_prog_compiler_static_CXX='-static'
13940 case $host_os in
13941 aix*)
13942 # All AIX code is PIC.
13943 if test "$host_cpu" = ia64; then
13944 # AIX 5 now supports IA64 processor
13945 lt_prog_compiler_static_CXX='-Bstatic'
13947 lt_prog_compiler_pic_CXX='-fPIC'
13950 amigaos*)
13951 case $host_cpu in
13952 powerpc)
13953 # see comment about AmigaOS4 .so support
13954 lt_prog_compiler_pic_CXX='-fPIC'
13956 m68k)
13957 # FIXME: we need at least 68020 code to build shared libraries, but
13958 # adding the `-m68020' flag to GCC prevents building anything better,
13959 # like `-m68040'.
13960 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13962 esac
13965 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13966 # PIC is the default for these OSes.
13968 mingw* | cygwin* | os2* | pw32* | cegcc*)
13969 # This hack is so that the source file can tell whether it is being
13970 # built for inclusion in a dll (and should export symbols for example).
13971 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13972 # (--disable-auto-import) libraries
13973 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13975 darwin* | rhapsody*)
13976 # PIC is the default on this platform
13977 # Common symbols not allowed in MH_DYLIB files
13978 lt_prog_compiler_pic_CXX='-fno-common'
13980 *djgpp*)
13981 # DJGPP does not support shared libraries at all
13982 lt_prog_compiler_pic_CXX=
13984 haiku*)
13985 # PIC is the default for Haiku.
13986 # The "-static" flag exists, but is broken.
13987 lt_prog_compiler_static_CXX=
13989 interix[3-9]*)
13990 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13991 # Instead, we relocate shared libraries at runtime.
13993 sysv4*MP*)
13994 if test -d /usr/nec; then
13995 lt_prog_compiler_pic_CXX=-Kconform_pic
13998 hpux*)
13999 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14000 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14001 # sets the default TLS model and affects inlining.
14002 case $host_cpu in
14003 hppa*64*)
14006 lt_prog_compiler_pic_CXX='-fPIC'
14008 esac
14010 *qnx* | *nto*)
14011 # QNX uses GNU C++, but need to define -shared option too, otherwise
14012 # it will coredump.
14013 lt_prog_compiler_pic_CXX='-fPIC -shared'
14016 lt_prog_compiler_pic_CXX='-fPIC'
14018 esac
14019 else
14020 case $host_os in
14021 aix[4-9]*)
14022 # All AIX code is PIC.
14023 if test "$host_cpu" = ia64; then
14024 # AIX 5 now supports IA64 processor
14025 lt_prog_compiler_static_CXX='-Bstatic'
14026 else
14027 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14030 chorus*)
14031 case $cc_basename in
14032 cxch68*)
14033 # Green Hills C++ Compiler
14034 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14036 esac
14038 dgux*)
14039 case $cc_basename in
14040 ec++*)
14041 lt_prog_compiler_pic_CXX='-KPIC'
14043 ghcx*)
14044 # Green Hills C++ Compiler
14045 lt_prog_compiler_pic_CXX='-pic'
14049 esac
14051 freebsd* | dragonfly*)
14052 # FreeBSD uses GNU C++
14054 hpux9* | hpux10* | hpux11*)
14055 case $cc_basename in
14056 CC*)
14057 lt_prog_compiler_wl_CXX='-Wl,'
14058 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14059 if test "$host_cpu" != ia64; then
14060 lt_prog_compiler_pic_CXX='+Z'
14063 aCC*)
14064 lt_prog_compiler_wl_CXX='-Wl,'
14065 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14066 case $host_cpu in
14067 hppa*64*|ia64*)
14068 # +Z the default
14071 lt_prog_compiler_pic_CXX='+Z'
14073 esac
14077 esac
14079 interix*)
14080 # This is c89, which is MS Visual C++ (no shared libs)
14081 # Anyone wants to do a port?
14083 irix5* | irix6* | nonstopux*)
14084 case $cc_basename in
14085 CC*)
14086 lt_prog_compiler_wl_CXX='-Wl,'
14087 lt_prog_compiler_static_CXX='-non_shared'
14088 # CC pic flag -KPIC is the default.
14092 esac
14094 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14095 case $cc_basename in
14096 KCC*)
14097 # KAI C++ Compiler
14098 lt_prog_compiler_wl_CXX='--backend -Wl,'
14099 lt_prog_compiler_pic_CXX='-fPIC'
14101 ecpc* )
14102 # old Intel C++ for x86_64 which still supported -KPIC.
14103 lt_prog_compiler_wl_CXX='-Wl,'
14104 lt_prog_compiler_pic_CXX='-KPIC'
14105 lt_prog_compiler_static_CXX='-static'
14107 icpc* )
14108 # Intel C++, used to be incompatible with GCC.
14109 # ICC 10 doesn't accept -KPIC any more.
14110 lt_prog_compiler_wl_CXX='-Wl,'
14111 lt_prog_compiler_pic_CXX='-fPIC'
14112 lt_prog_compiler_static_CXX='-static'
14114 pgCC* | pgcpp*)
14115 # Portland Group C++ compiler
14116 lt_prog_compiler_wl_CXX='-Wl,'
14117 lt_prog_compiler_pic_CXX='-fpic'
14118 lt_prog_compiler_static_CXX='-Bstatic'
14120 cxx*)
14121 # Compaq C++
14122 # Make sure the PIC flag is empty. It appears that all Alpha
14123 # Linux and Compaq Tru64 Unix objects are PIC.
14124 lt_prog_compiler_pic_CXX=
14125 lt_prog_compiler_static_CXX='-non_shared'
14127 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14128 # IBM XL 8.0, 9.0 on PPC and BlueGene
14129 lt_prog_compiler_wl_CXX='-Wl,'
14130 lt_prog_compiler_pic_CXX='-qpic'
14131 lt_prog_compiler_static_CXX='-qstaticlink'
14134 case `$CC -V 2>&1 | sed 5q` in
14135 *Sun\ C*)
14136 # Sun C++ 5.9
14137 lt_prog_compiler_pic_CXX='-KPIC'
14138 lt_prog_compiler_static_CXX='-Bstatic'
14139 lt_prog_compiler_wl_CXX='-Qoption ld '
14141 esac
14143 esac
14145 lynxos*)
14147 m88k*)
14149 mvs*)
14150 case $cc_basename in
14151 cxx*)
14152 lt_prog_compiler_pic_CXX='-W c,exportall'
14156 esac
14158 netbsd*)
14160 *qnx* | *nto*)
14161 # QNX uses GNU C++, but need to define -shared option too, otherwise
14162 # it will coredump.
14163 lt_prog_compiler_pic_CXX='-fPIC -shared'
14165 osf3* | osf4* | osf5*)
14166 case $cc_basename in
14167 KCC*)
14168 lt_prog_compiler_wl_CXX='--backend -Wl,'
14170 RCC*)
14171 # Rational C++ 2.4.1
14172 lt_prog_compiler_pic_CXX='-pic'
14174 cxx*)
14175 # Digital/Compaq C++
14176 lt_prog_compiler_wl_CXX='-Wl,'
14177 # Make sure the PIC flag is empty. It appears that all Alpha
14178 # Linux and Compaq Tru64 Unix objects are PIC.
14179 lt_prog_compiler_pic_CXX=
14180 lt_prog_compiler_static_CXX='-non_shared'
14184 esac
14186 psos*)
14188 solaris*)
14189 case $cc_basename in
14190 CC*)
14191 # Sun C++ 4.2, 5.x and Centerline C++
14192 lt_prog_compiler_pic_CXX='-KPIC'
14193 lt_prog_compiler_static_CXX='-Bstatic'
14194 lt_prog_compiler_wl_CXX='-Qoption ld '
14196 gcx*)
14197 # Green Hills C++ Compiler
14198 lt_prog_compiler_pic_CXX='-PIC'
14202 esac
14204 sunos4*)
14205 case $cc_basename in
14206 CC*)
14207 # Sun C++ 4.x
14208 lt_prog_compiler_pic_CXX='-pic'
14209 lt_prog_compiler_static_CXX='-Bstatic'
14211 lcc*)
14212 # Lucid
14213 lt_prog_compiler_pic_CXX='-pic'
14217 esac
14219 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14220 case $cc_basename in
14221 CC*)
14222 lt_prog_compiler_wl_CXX='-Wl,'
14223 lt_prog_compiler_pic_CXX='-KPIC'
14224 lt_prog_compiler_static_CXX='-Bstatic'
14226 esac
14228 tandem*)
14229 case $cc_basename in
14230 NCC*)
14231 # NonStop-UX NCC 3.20
14232 lt_prog_compiler_pic_CXX='-KPIC'
14236 esac
14238 vxworks*)
14241 lt_prog_compiler_can_build_shared_CXX=no
14243 esac
14246 case $host_os in
14247 # For platforms which do not support PIC, -DPIC is meaningless:
14248 *djgpp*)
14249 lt_prog_compiler_pic_CXX=
14252 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14254 esac
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14256 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14261 # Check to make sure the PIC flag actually works.
14263 if test -n "$lt_prog_compiler_pic_CXX"; then
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14265 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14266 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14267 $as_echo_n "(cached) " >&6
14268 else
14269 lt_cv_prog_compiler_pic_works_CXX=no
14270 ac_outfile=conftest.$ac_objext
14271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14272 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14273 # Insert the option either (1) after the last *FLAGS variable, or
14274 # (2) before a word containing "conftest.", or (3) at the end.
14275 # Note that $ac_compile itself does not contain backslashes and begins
14276 # with a dollar sign (not a hyphen), so the echo should work correctly.
14277 # The option is referenced via a variable to avoid confusing sed.
14278 lt_compile=`echo "$ac_compile" | $SED \
14279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14281 -e 's:$: $lt_compiler_flag:'`
14282 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14283 (eval "$lt_compile" 2>conftest.err)
14284 ac_status=$?
14285 cat conftest.err >&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 if (exit $ac_status) && test -s "$ac_outfile"; then
14288 # The compiler can only warn and ignore the option if not recognized
14289 # So say no if there are warnings other than the usual output.
14290 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14291 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14292 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14293 lt_cv_prog_compiler_pic_works_CXX=yes
14296 $RM conftest*
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14300 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14302 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14303 case $lt_prog_compiler_pic_CXX in
14304 "" | " "*) ;;
14305 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14306 esac
14307 else
14308 lt_prog_compiler_pic_CXX=
14309 lt_prog_compiler_can_build_shared_CXX=no
14317 # Check to make sure the static flag actually works.
14319 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14321 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14322 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14323 $as_echo_n "(cached) " >&6
14324 else
14325 lt_cv_prog_compiler_static_works_CXX=no
14326 save_LDFLAGS="$LDFLAGS"
14327 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14328 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14329 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14330 # The linker can only warn and ignore the option if not recognized
14331 # So say no if there are warnings
14332 if test -s conftest.err; then
14333 # Append any errors to the config.log.
14334 cat conftest.err 1>&5
14335 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14337 if diff conftest.exp conftest.er2 >/dev/null; then
14338 lt_cv_prog_compiler_static_works_CXX=yes
14340 else
14341 lt_cv_prog_compiler_static_works_CXX=yes
14344 $RM -r conftest*
14345 LDFLAGS="$save_LDFLAGS"
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14349 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14351 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14353 else
14354 lt_prog_compiler_static_CXX=
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14361 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14362 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14363 $as_echo_n "(cached) " >&6
14364 else
14365 lt_cv_prog_compiler_c_o_CXX=no
14366 $RM -r conftest 2>/dev/null
14367 mkdir conftest
14368 cd conftest
14369 mkdir out
14370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14372 lt_compiler_flag="-o out/conftest2.$ac_objext"
14373 # Insert the option either (1) after the last *FLAGS variable, or
14374 # (2) before a word containing "conftest.", or (3) at the end.
14375 # Note that $ac_compile itself does not contain backslashes and begins
14376 # with a dollar sign (not a hyphen), so the echo should work correctly.
14377 lt_compile=`echo "$ac_compile" | $SED \
14378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14380 -e 's:$: $lt_compiler_flag:'`
14381 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14382 (eval "$lt_compile" 2>out/conftest.err)
14383 ac_status=$?
14384 cat out/conftest.err >&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14387 then
14388 # The compiler can only warn and ignore the option if not recognized
14389 # So say no if there are warnings
14390 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14391 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14392 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14393 lt_cv_prog_compiler_c_o_CXX=yes
14396 chmod u+w . 2>&5
14397 $RM conftest*
14398 # SGI C++ compiler will create directory out/ii_files/ for
14399 # template instantiation
14400 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14401 $RM out/* && rmdir out
14402 cd ..
14403 $RM -r conftest
14404 $RM conftest*
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14408 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14413 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14414 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14415 $as_echo_n "(cached) " >&6
14416 else
14417 lt_cv_prog_compiler_c_o_CXX=no
14418 $RM -r conftest 2>/dev/null
14419 mkdir conftest
14420 cd conftest
14421 mkdir out
14422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14424 lt_compiler_flag="-o out/conftest2.$ac_objext"
14425 # Insert the option either (1) after the last *FLAGS variable, or
14426 # (2) before a word containing "conftest.", or (3) at the end.
14427 # Note that $ac_compile itself does not contain backslashes and begins
14428 # with a dollar sign (not a hyphen), so the echo should work correctly.
14429 lt_compile=`echo "$ac_compile" | $SED \
14430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14432 -e 's:$: $lt_compiler_flag:'`
14433 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14434 (eval "$lt_compile" 2>out/conftest.err)
14435 ac_status=$?
14436 cat out/conftest.err >&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14439 then
14440 # The compiler can only warn and ignore the option if not recognized
14441 # So say no if there are warnings
14442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14443 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14444 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14445 lt_cv_prog_compiler_c_o_CXX=yes
14448 chmod u+w . 2>&5
14449 $RM conftest*
14450 # SGI C++ compiler will create directory out/ii_files/ for
14451 # template instantiation
14452 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14453 $RM out/* && rmdir out
14454 cd ..
14455 $RM -r conftest
14456 $RM conftest*
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14460 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14465 hard_links="nottested"
14466 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14467 # do not overwrite the value of need_locks provided by the user
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14469 $as_echo_n "checking if we can lock with hard links... " >&6; }
14470 hard_links=yes
14471 $RM conftest*
14472 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14473 touch conftest.a
14474 ln conftest.a conftest.b 2>&5 || hard_links=no
14475 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14477 $as_echo "$hard_links" >&6; }
14478 if test "$hard_links" = no; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14480 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14481 need_locks=warn
14483 else
14484 need_locks=no
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14490 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14492 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14493 case $host_os in
14494 aix[4-9]*)
14495 # If we're using GNU nm, then we don't want the "-C" option.
14496 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14497 # Also, AIX nm treats weak defined symbols like other global defined
14498 # symbols, whereas GNU nm marks them as "W".
14499 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14500 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14501 else
14502 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14505 pw32*)
14506 export_symbols_cmds_CXX="$ltdll_cmds"
14508 cygwin* | mingw* | cegcc*)
14509 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14512 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14514 esac
14515 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14518 $as_echo "$ld_shlibs_CXX" >&6; }
14519 test "$ld_shlibs_CXX" = no && can_build_shared=no
14521 with_gnu_ld_CXX=$with_gnu_ld
14529 # Do we need to explicitly link libc?
14531 case "x$archive_cmds_need_lc_CXX" in
14532 x|xyes)
14533 # Assume -lc should be added
14534 archive_cmds_need_lc_CXX=yes
14536 if test "$enable_shared" = yes && test "$GCC" = yes; then
14537 case $archive_cmds_CXX in
14538 *'~'*)
14539 # FIXME: we may have to deal with multi-command sequences.
14541 '$CC '*)
14542 # Test whether the compiler implicitly links with -lc since on some
14543 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14544 # to ld, don't add -lc before -lgcc.
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14546 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14547 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14548 $as_echo_n "(cached) " >&6
14549 else
14550 $RM conftest*
14551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14554 (eval $ac_compile) 2>&5
14555 ac_status=$?
14556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14557 test $ac_status = 0; } 2>conftest.err; then
14558 soname=conftest
14559 lib=conftest
14560 libobjs=conftest.$ac_objext
14561 deplibs=
14562 wl=$lt_prog_compiler_wl_CXX
14563 pic_flag=$lt_prog_compiler_pic_CXX
14564 compiler_flags=-v
14565 linker_flags=-v
14566 verstring=
14567 output_objdir=.
14568 libname=conftest
14569 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14570 allow_undefined_flag_CXX=
14571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14572 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14573 ac_status=$?
14574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14575 test $ac_status = 0; }
14576 then
14577 lt_cv_archive_cmds_need_lc_CXX=no
14578 else
14579 lt_cv_archive_cmds_need_lc_CXX=yes
14581 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14582 else
14583 cat conftest.err 1>&5
14585 $RM conftest*
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14589 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14590 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14592 esac
14595 esac
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14661 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14663 library_names_spec=
14664 libname_spec='lib$name'
14665 soname_spec=
14666 shrext_cmds=".so"
14667 postinstall_cmds=
14668 postuninstall_cmds=
14669 finish_cmds=
14670 finish_eval=
14671 shlibpath_var=
14672 shlibpath_overrides_runpath=unknown
14673 version_type=none
14674 dynamic_linker="$host_os ld.so"
14675 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14676 need_lib_prefix=unknown
14677 hardcode_into_libs=no
14679 # when you set need_version to no, make sure it does not cause -set_version
14680 # flags to be left without arguments
14681 need_version=unknown
14683 case $host_os in
14684 aix3*)
14685 version_type=linux
14686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14687 shlibpath_var=LIBPATH
14689 # AIX 3 has no versioning support, so we append a major version to the name.
14690 soname_spec='${libname}${release}${shared_ext}$major'
14693 aix[4-9]*)
14694 version_type=linux
14695 need_lib_prefix=no
14696 need_version=no
14697 hardcode_into_libs=yes
14698 if test "$host_cpu" = ia64; then
14699 # AIX 5 supports IA64
14700 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14701 shlibpath_var=LD_LIBRARY_PATH
14702 else
14703 # With GCC up to 2.95.x, collect2 would create an import file
14704 # for dependence libraries. The import file would start with
14705 # the line `#! .'. This would cause the generated library to
14706 # depend on `.', always an invalid library. This was fixed in
14707 # development snapshots of GCC prior to 3.0.
14708 case $host_os in
14709 aix4 | aix4.[01] | aix4.[01].*)
14710 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14711 echo ' yes '
14712 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14714 else
14715 can_build_shared=no
14718 esac
14719 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14720 # soname into executable. Probably we can add versioning support to
14721 # collect2, so additional links can be useful in future.
14722 if test "$aix_use_runtimelinking" = yes; then
14723 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14724 # instead of lib<name>.a to let people know that these are not
14725 # typical AIX shared libraries.
14726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14727 else
14728 # We preserve .a as extension for shared libraries through AIX4.2
14729 # and later when we are not doing run time linking.
14730 library_names_spec='${libname}${release}.a $libname.a'
14731 soname_spec='${libname}${release}${shared_ext}$major'
14733 shlibpath_var=LIBPATH
14737 amigaos*)
14738 case $host_cpu in
14739 powerpc)
14740 # Since July 2007 AmigaOS4 officially supports .so libraries.
14741 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14744 m68k)
14745 library_names_spec='$libname.ixlibrary $libname.a'
14746 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14747 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'
14749 esac
14752 beos*)
14753 library_names_spec='${libname}${shared_ext}'
14754 dynamic_linker="$host_os ld.so"
14755 shlibpath_var=LIBRARY_PATH
14758 bsdi[45]*)
14759 version_type=linux
14760 need_version=no
14761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14762 soname_spec='${libname}${release}${shared_ext}$major'
14763 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14764 shlibpath_var=LD_LIBRARY_PATH
14765 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14766 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14767 # the default ld.so.conf also contains /usr/contrib/lib and
14768 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14769 # libtool to hard-code these into programs
14772 cygwin* | mingw* | pw32* | cegcc*)
14773 version_type=windows
14774 shrext_cmds=".dll"
14775 need_version=no
14776 need_lib_prefix=no
14778 case $GCC,$host_os in
14779 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14780 library_names_spec='$libname.dll.a'
14781 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14782 postinstall_cmds='base_file=`basename \${file}`~
14783 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14784 dldir=$destdir/`dirname \$dlpath`~
14785 test -d \$dldir || mkdir -p \$dldir~
14786 $install_prog $dir/$dlname \$dldir/$dlname~
14787 chmod a+x \$dldir/$dlname~
14788 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14789 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14791 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14792 dlpath=$dir/\$dldll~
14793 $RM \$dlpath'
14794 shlibpath_overrides_runpath=yes
14796 case $host_os in
14797 cygwin*)
14798 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14799 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14802 mingw* | cegcc*)
14803 # MinGW DLLs use traditional 'lib' prefix
14804 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14806 pw32*)
14807 # pw32 DLLs use 'pw' prefix rather than 'lib'
14808 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14810 esac
14814 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14816 esac
14817 dynamic_linker='Win32 ld.exe'
14818 # FIXME: first we should search . and the directory the executable is in
14819 shlibpath_var=PATH
14822 darwin* | rhapsody*)
14823 dynamic_linker="$host_os dyld"
14824 version_type=darwin
14825 need_lib_prefix=no
14826 need_version=no
14827 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14828 soname_spec='${libname}${release}${major}$shared_ext'
14829 shlibpath_overrides_runpath=yes
14830 shlibpath_var=DYLD_LIBRARY_PATH
14831 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14833 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14836 dgux*)
14837 version_type=linux
14838 need_lib_prefix=no
14839 need_version=no
14840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14841 soname_spec='${libname}${release}${shared_ext}$major'
14842 shlibpath_var=LD_LIBRARY_PATH
14845 freebsd* | dragonfly*)
14846 # DragonFly does not have aout. When/if they implement a new
14847 # versioning mechanism, adjust this.
14848 if test -x /usr/bin/objformat; then
14849 objformat=`/usr/bin/objformat`
14850 else
14851 case $host_os in
14852 freebsd[23].*) objformat=aout ;;
14853 *) objformat=elf ;;
14854 esac
14856 version_type=freebsd-$objformat
14857 case $version_type in
14858 freebsd-elf*)
14859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14860 need_version=no
14861 need_lib_prefix=no
14863 freebsd-*)
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14865 need_version=yes
14867 esac
14868 shlibpath_var=LD_LIBRARY_PATH
14869 case $host_os in
14870 freebsd2.*)
14871 shlibpath_overrides_runpath=yes
14873 freebsd3.[01]* | freebsdelf3.[01]*)
14874 shlibpath_overrides_runpath=yes
14875 hardcode_into_libs=yes
14877 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14878 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14879 shlibpath_overrides_runpath=no
14880 hardcode_into_libs=yes
14882 *) # from 4.6 on, and DragonFly
14883 shlibpath_overrides_runpath=yes
14884 hardcode_into_libs=yes
14886 esac
14889 haiku*)
14890 version_type=linux
14891 need_lib_prefix=no
14892 need_version=no
14893 dynamic_linker="$host_os runtime_loader"
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14895 soname_spec='${libname}${release}${shared_ext}$major'
14896 shlibpath_var=LIBRARY_PATH
14897 shlibpath_overrides_runpath=yes
14898 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14899 hardcode_into_libs=yes
14902 hpux9* | hpux10* | hpux11*)
14903 # Give a soname corresponding to the major version so that dld.sl refuses to
14904 # link against other versions.
14905 version_type=sunos
14906 need_lib_prefix=no
14907 need_version=no
14908 case $host_cpu in
14909 ia64*)
14910 shrext_cmds='.so'
14911 hardcode_into_libs=yes
14912 dynamic_linker="$host_os dld.so"
14913 shlibpath_var=LD_LIBRARY_PATH
14914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14916 soname_spec='${libname}${release}${shared_ext}$major'
14917 if test "X$HPUX_IA64_MODE" = X32; then
14918 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14919 else
14920 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14922 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14924 hppa*64*)
14925 shrext_cmds='.sl'
14926 hardcode_into_libs=yes
14927 dynamic_linker="$host_os dld.sl"
14928 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14929 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14931 soname_spec='${libname}${release}${shared_ext}$major'
14932 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14936 shrext_cmds='.sl'
14937 dynamic_linker="$host_os dld.sl"
14938 shlibpath_var=SHLIB_PATH
14939 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941 soname_spec='${libname}${release}${shared_ext}$major'
14943 esac
14944 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14945 postinstall_cmds='chmod 555 $lib'
14946 # or fails outright, so override atomically:
14947 install_override_mode=555
14950 interix[3-9]*)
14951 version_type=linux
14952 need_lib_prefix=no
14953 need_version=no
14954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14955 soname_spec='${libname}${release}${shared_ext}$major'
14956 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14957 shlibpath_var=LD_LIBRARY_PATH
14958 shlibpath_overrides_runpath=no
14959 hardcode_into_libs=yes
14962 irix5* | irix6* | nonstopux*)
14963 case $host_os in
14964 nonstopux*) version_type=nonstopux ;;
14966 if test "$lt_cv_prog_gnu_ld" = yes; then
14967 version_type=linux
14968 else
14969 version_type=irix
14970 fi ;;
14971 esac
14972 need_lib_prefix=no
14973 need_version=no
14974 soname_spec='${libname}${release}${shared_ext}$major'
14975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14976 case $host_os in
14977 irix5* | nonstopux*)
14978 libsuff= shlibsuff=
14981 case $LD in # libtool.m4 will add one of these switches to LD
14982 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14983 libsuff= shlibsuff= libmagic=32-bit;;
14984 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14985 libsuff=32 shlibsuff=N32 libmagic=N32;;
14986 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14987 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14988 *) libsuff= shlibsuff= libmagic=never-match;;
14989 esac
14991 esac
14992 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14993 shlibpath_overrides_runpath=no
14994 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14995 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14996 hardcode_into_libs=yes
14999 # No shared lib support for Linux oldld, aout, or coff.
15000 linux*oldld* | linux*aout* | linux*coff*)
15001 dynamic_linker=no
15004 # This must be Linux ELF.
15006 # uclinux* changes (here and below) have been submitted to the libtool
15007 # project, but have not yet been accepted: they are GCC-local changes
15008 # for the time being. (See
15009 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15010 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15011 version_type=linux
15012 need_lib_prefix=no
15013 need_version=no
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015 soname_spec='${libname}${release}${shared_ext}$major'
15016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15017 shlibpath_var=LD_LIBRARY_PATH
15018 shlibpath_overrides_runpath=no
15020 # Some binutils ld are patched to set DT_RUNPATH
15021 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15022 $as_echo_n "(cached) " >&6
15023 else
15024 lt_cv_shlibpath_overrides_runpath=no
15025 save_LDFLAGS=$LDFLAGS
15026 save_libdir=$libdir
15027 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15028 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15033 main ()
15037 return 0;
15039 _ACEOF
15040 if ac_fn_cxx_try_link "$LINENO"; then :
15041 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15042 lt_cv_shlibpath_overrides_runpath=yes
15045 rm -f core conftest.err conftest.$ac_objext \
15046 conftest$ac_exeext conftest.$ac_ext
15047 LDFLAGS=$save_LDFLAGS
15048 libdir=$save_libdir
15052 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15054 # This implies no fast_install, which is unacceptable.
15055 # Some rework will be needed to allow for fast_install
15056 # before this can be enabled.
15057 hardcode_into_libs=yes
15059 # Append ld.so.conf contents to the search path
15060 if test -f /etc/ld.so.conf; then
15061 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' ' '`
15062 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15065 # We used to test for /lib/ld.so.1 and disable shared libraries on
15066 # powerpc, because MkLinux only supported shared libraries with the
15067 # GNU dynamic linker. Since this was broken with cross compilers,
15068 # most powerpc-linux boxes support dynamic linking these days and
15069 # people can always --disable-shared, the test was removed, and we
15070 # assume the GNU/Linux dynamic linker is in use.
15071 dynamic_linker='GNU/Linux ld.so'
15074 netbsd*)
15075 version_type=sunos
15076 need_lib_prefix=no
15077 need_version=no
15078 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15081 dynamic_linker='NetBSD (a.out) ld.so'
15082 else
15083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15084 soname_spec='${libname}${release}${shared_ext}$major'
15085 dynamic_linker='NetBSD ld.elf_so'
15087 shlibpath_var=LD_LIBRARY_PATH
15088 shlibpath_overrides_runpath=yes
15089 hardcode_into_libs=yes
15092 newsos6)
15093 version_type=linux
15094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15095 shlibpath_var=LD_LIBRARY_PATH
15096 shlibpath_overrides_runpath=yes
15099 *nto* | *qnx*)
15100 version_type=qnx
15101 need_lib_prefix=no
15102 need_version=no
15103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15104 soname_spec='${libname}${release}${shared_ext}$major'
15105 shlibpath_var=LD_LIBRARY_PATH
15106 shlibpath_overrides_runpath=no
15107 hardcode_into_libs=yes
15108 dynamic_linker='ldqnx.so'
15111 openbsd*)
15112 version_type=sunos
15113 sys_lib_dlsearch_path_spec="/usr/lib"
15114 need_lib_prefix=no
15115 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15116 case $host_os in
15117 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15118 *) need_version=no ;;
15119 esac
15120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15122 shlibpath_var=LD_LIBRARY_PATH
15123 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15124 case $host_os in
15125 openbsd2.[89] | openbsd2.[89].*)
15126 shlibpath_overrides_runpath=no
15129 shlibpath_overrides_runpath=yes
15131 esac
15132 else
15133 shlibpath_overrides_runpath=yes
15137 os2*)
15138 libname_spec='$name'
15139 shrext_cmds=".dll"
15140 need_lib_prefix=no
15141 library_names_spec='$libname${shared_ext} $libname.a'
15142 dynamic_linker='OS/2 ld.exe'
15143 shlibpath_var=LIBPATH
15146 osf3* | osf4* | osf5*)
15147 version_type=osf
15148 need_lib_prefix=no
15149 need_version=no
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15152 shlibpath_var=LD_LIBRARY_PATH
15153 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15154 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15157 rdos*)
15158 dynamic_linker=no
15161 solaris*)
15162 version_type=linux
15163 need_lib_prefix=no
15164 need_version=no
15165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15166 soname_spec='${libname}${release}${shared_ext}$major'
15167 shlibpath_var=LD_LIBRARY_PATH
15168 shlibpath_overrides_runpath=yes
15169 hardcode_into_libs=yes
15170 # ldd complains unless libraries are executable
15171 postinstall_cmds='chmod +x $lib'
15174 sunos4*)
15175 version_type=sunos
15176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15177 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15178 shlibpath_var=LD_LIBRARY_PATH
15179 shlibpath_overrides_runpath=yes
15180 if test "$with_gnu_ld" = yes; then
15181 need_lib_prefix=no
15183 need_version=yes
15186 sysv4 | sysv4.3*)
15187 version_type=linux
15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189 soname_spec='${libname}${release}${shared_ext}$major'
15190 shlibpath_var=LD_LIBRARY_PATH
15191 case $host_vendor in
15192 sni)
15193 shlibpath_overrides_runpath=no
15194 need_lib_prefix=no
15195 runpath_var=LD_RUN_PATH
15197 siemens)
15198 need_lib_prefix=no
15200 motorola)
15201 need_lib_prefix=no
15202 need_version=no
15203 shlibpath_overrides_runpath=no
15204 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15206 esac
15209 sysv4*MP*)
15210 if test -d /usr/nec ;then
15211 version_type=linux
15212 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15213 soname_spec='$libname${shared_ext}.$major'
15214 shlibpath_var=LD_LIBRARY_PATH
15218 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15219 version_type=freebsd-elf
15220 need_lib_prefix=no
15221 need_version=no
15222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15223 soname_spec='${libname}${release}${shared_ext}$major'
15224 shlibpath_var=LD_LIBRARY_PATH
15225 shlibpath_overrides_runpath=yes
15226 hardcode_into_libs=yes
15227 if test "$with_gnu_ld" = yes; then
15228 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15229 else
15230 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15231 case $host_os in
15232 sco3.2v5*)
15233 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15235 esac
15237 sys_lib_dlsearch_path_spec='/usr/lib'
15240 tpf*)
15241 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15242 version_type=linux
15243 need_lib_prefix=no
15244 need_version=no
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246 shlibpath_var=LD_LIBRARY_PATH
15247 shlibpath_overrides_runpath=no
15248 hardcode_into_libs=yes
15251 uts4*)
15252 version_type=linux
15253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254 soname_spec='${libname}${release}${shared_ext}$major'
15255 shlibpath_var=LD_LIBRARY_PATH
15258 # Shared libraries for VwWorks, >= 7 only at this stage
15259 # and (fpic) still incompatible with "large" code models
15260 # in a few configurations. Only for RTP mode in any case,
15261 # and upon explicit request at configure time.
15262 vxworks7*)
15263 dynamic_linker=no
15264 case ${with_multisubdir}-${enable_shared} in
15265 *large*)
15267 *mrtp*-yes)
15268 version_type=linux
15269 need_lib_prefix=no
15270 need_version=no
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15272 soname_spec='${libname}${release}${shared_ext}$major'
15273 dynamic_linker="$host_os module_loader"
15275 esac
15278 dynamic_linker=no
15280 esac
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15282 $as_echo "$dynamic_linker" >&6; }
15283 test "$dynamic_linker" = no && can_build_shared=no
15285 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15286 if test "$GCC" = yes; then
15287 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15290 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15291 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15293 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15294 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15335 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15336 hardcode_action_CXX=
15337 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15338 test -n "$runpath_var_CXX" ||
15339 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15341 # We can hardcode non-existent directories.
15342 if test "$hardcode_direct_CXX" != no &&
15343 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15344 # have to relink, otherwise we might link with an installed library
15345 # when we should be linking with a yet-to-be-installed one
15346 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15347 test "$hardcode_minus_L_CXX" != no; then
15348 # Linking always hardcodes the temporary library directory.
15349 hardcode_action_CXX=relink
15350 else
15351 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15352 hardcode_action_CXX=immediate
15354 else
15355 # We cannot hardcode anything, or else we can only hardcode existing
15356 # directories.
15357 hardcode_action_CXX=unsupported
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15360 $as_echo "$hardcode_action_CXX" >&6; }
15362 if test "$hardcode_action_CXX" = relink ||
15363 test "$inherit_rpath_CXX" = yes; then
15364 # Fast installation is not supported
15365 enable_fast_install=no
15366 elif test "$shlibpath_overrides_runpath" = yes ||
15367 test "$enable_shared" = no; then
15368 # Fast installation is not necessary
15369 enable_fast_install=needless
15378 fi # test -n "$compiler"
15380 CC=$lt_save_CC
15381 LDCXX=$LD
15382 LD=$lt_save_LD
15383 GCC=$lt_save_GCC
15384 with_gnu_ld=$lt_save_with_gnu_ld
15385 lt_cv_path_LDCXX=$lt_cv_path_LD
15386 lt_cv_path_LD=$lt_save_path_LD
15387 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15388 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15389 fi # test "$_lt_caught_CXX_error" != yes
15391 ac_ext=c
15392 ac_cpp='$CPP $CPPFLAGS'
15393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15409 ac_config_commands="$ac_config_commands libtool"
15414 # Only expand once:
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15422 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15423 # Check whether --enable-maintainer-mode was given.
15424 if test "${enable_maintainer_mode+set}" = set; then :
15425 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15426 else
15427 USE_MAINTAINER_MODE=no
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15431 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15432 if test $USE_MAINTAINER_MODE = yes; then
15433 MAINTAINER_MODE_TRUE=
15434 MAINTAINER_MODE_FALSE='#'
15435 else
15436 MAINTAINER_MODE_TRUE='#'
15437 MAINTAINER_MODE_FALSE=
15440 MAINT=$MAINTAINER_MODE_TRUE
15444 # For libtool versioning info, format is CURRENT:REVISION:AGE
15445 libtool_VERSION=1:0:0
15448 # Check header files.
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15450 $as_echo_n "checking for ANSI C header files... " >&6; }
15451 if ${ac_cv_header_stdc+:} false; then :
15452 $as_echo_n "(cached) " >&6
15453 else
15454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15455 /* end confdefs.h. */
15456 #include <stdlib.h>
15457 #include <stdarg.h>
15458 #include <string.h>
15459 #include <float.h>
15462 main ()
15466 return 0;
15468 _ACEOF
15469 if ac_fn_c_try_compile "$LINENO"; then :
15470 ac_cv_header_stdc=yes
15471 else
15472 ac_cv_header_stdc=no
15474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15476 if test $ac_cv_header_stdc = yes; then
15477 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15479 /* end confdefs.h. */
15480 #include <string.h>
15482 _ACEOF
15483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15484 $EGREP "memchr" >/dev/null 2>&1; then :
15486 else
15487 ac_cv_header_stdc=no
15489 rm -f conftest*
15493 if test $ac_cv_header_stdc = yes; then
15494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15496 /* end confdefs.h. */
15497 #include <stdlib.h>
15499 _ACEOF
15500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15501 $EGREP "free" >/dev/null 2>&1; then :
15503 else
15504 ac_cv_header_stdc=no
15506 rm -f conftest*
15510 if test $ac_cv_header_stdc = yes; then
15511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15512 if test "$cross_compiling" = yes; then :
15514 else
15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15516 /* end confdefs.h. */
15517 #include <ctype.h>
15518 #include <stdlib.h>
15519 #if ((' ' & 0x0FF) == 0x020)
15520 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15521 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15522 #else
15523 # define ISLOWER(c) \
15524 (('a' <= (c) && (c) <= 'i') \
15525 || ('j' <= (c) && (c) <= 'r') \
15526 || ('s' <= (c) && (c) <= 'z'))
15527 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15528 #endif
15530 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15532 main ()
15534 int i;
15535 for (i = 0; i < 256; i++)
15536 if (XOR (islower (i), ISLOWER (i))
15537 || toupper (i) != TOUPPER (i))
15538 return 2;
15539 return 0;
15541 _ACEOF
15542 if ac_fn_c_try_run "$LINENO"; then :
15544 else
15545 ac_cv_header_stdc=no
15547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15548 conftest.$ac_objext conftest.beam conftest.$ac_ext
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15554 $as_echo "$ac_cv_header_stdc" >&6; }
15555 if test $ac_cv_header_stdc = yes; then
15557 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15562 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15563 if ${ac_cv_header_time+:} false; then :
15564 $as_echo_n "(cached) " >&6
15565 else
15566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567 /* end confdefs.h. */
15568 #include <sys/types.h>
15569 #include <sys/time.h>
15570 #include <time.h>
15573 main ()
15575 if ((struct tm *) 0)
15576 return 0;
15578 return 0;
15580 _ACEOF
15581 if ac_fn_c_try_compile "$LINENO"; then :
15582 ac_cv_header_time=yes
15583 else
15584 ac_cv_header_time=no
15586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15589 $as_echo "$ac_cv_header_time" >&6; }
15590 if test $ac_cv_header_time = yes; then
15592 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15597 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15598 if ${gcc_cv_header_string+:} false; then :
15599 $as_echo_n "(cached) " >&6
15600 else
15601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602 /* end confdefs.h. */
15603 #include <string.h>
15604 #include <strings.h>
15606 main ()
15610 return 0;
15612 _ACEOF
15613 if ac_fn_c_try_compile "$LINENO"; then :
15614 gcc_cv_header_string=yes
15615 else
15616 gcc_cv_header_string=no
15618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15621 $as_echo "$gcc_cv_header_string" >&6; }
15622 if test $gcc_cv_header_string = yes; then
15624 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15628 for ac_header in unistd.h semaphore.h sys/time.h sys/auxv.h malloc.h
15629 do :
15630 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15631 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15632 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15633 cat >>confdefs.h <<_ACEOF
15634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15635 _ACEOF
15639 done
15644 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15646 acx_cv_header_stdint=stddef.h
15647 acx_cv_header_stdint_kind="(already complete)"
15648 for i in stdint.h $inttype_headers; do
15649 unset ac_cv_type_uintptr_t
15650 unset ac_cv_type_uintmax_t
15651 unset ac_cv_type_int_least32_t
15652 unset ac_cv_type_int_fast32_t
15653 unset ac_cv_type_uint64_t
15654 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15655 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15656 #include <$i>
15658 if test "x$ac_cv_type_uintmax_t" = xyes; then :
15659 acx_cv_header_stdint=$i
15660 else
15661 continue
15664 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15665 #include <$i>
15667 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15669 else
15670 acx_cv_header_stdint_kind="(mostly complete)"
15673 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15674 #include <$i>
15676 if test "x$ac_cv_type_int_least32_t" = xyes; then :
15678 else
15679 acx_cv_header_stdint_kind="(mostly complete)"
15682 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15683 #include <$i>
15685 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
15687 else
15688 acx_cv_header_stdint_kind="(mostly complete)"
15691 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15692 #include <$i>
15694 if test "x$ac_cv_type_uint64_t" = xyes; then :
15696 else
15697 acx_cv_header_stdint_kind="(lacks uint64_t)"
15700 break
15701 done
15702 if test "$acx_cv_header_stdint" = stddef.h; then
15703 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15704 for i in stdint.h $inttype_headers; do
15705 unset ac_cv_type_uintptr_t
15706 unset ac_cv_type_uint32_t
15707 unset ac_cv_type_uint64_t
15708 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15709 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15710 #include <$i>
15712 if test "x$ac_cv_type_uint32_t" = xyes; then :
15713 acx_cv_header_stdint=$i
15714 else
15715 continue
15718 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15719 #include <$i>
15721 if test "x$ac_cv_type_uint64_t" = xyes; then :
15725 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15726 #include <$i>
15728 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15732 break
15733 done
15735 if test "$acx_cv_header_stdint" = stddef.h; then
15736 acx_cv_header_stdint_kind="(u_intXX_t style)"
15737 for i in sys/types.h $inttype_headers; do
15738 unset ac_cv_type_u_int32_t
15739 unset ac_cv_type_u_int64_t
15740 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15741 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15742 #include <$i>
15744 if test "x$ac_cv_type_u_int32_t" = xyes; then :
15745 acx_cv_header_stdint=$i
15746 else
15747 continue
15750 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15751 #include <$i>
15753 if test "x$ac_cv_type_u_int64_t" = xyes; then :
15757 break
15758 done
15760 if test "$acx_cv_header_stdint" = stddef.h; then
15761 acx_cv_header_stdint_kind="(using manual detection)"
15764 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15765 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15766 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15767 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15768 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15770 # ----------------- Summarize what we found so far
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15773 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15775 case `$as_basename -- gstdint.h ||
15776 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15777 Xgstdint.h : 'X\(//\)$' \| \
15778 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15779 $as_echo X/gstdint.h |
15780 sed '/^.*\/\([^/][^/]*\)\/*$/{
15781 s//\1/
15784 /^X\/\(\/\/\)$/{
15785 s//\1/
15788 /^X\/\(\/\).*/{
15789 s//\1/
15792 s/.*/./; q'` in
15793 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15794 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15795 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15796 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15797 *) ;;
15798 esac
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15801 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15803 # ----------------- done included file, check C basic types --------
15805 # Lacking an uintptr_t? Test size of void *
15806 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15807 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15810 # This bug is HP SR number 8606223364.
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15812 $as_echo_n "checking size of void *... " >&6; }
15813 if ${ac_cv_sizeof_void_p+:} false; then :
15814 $as_echo_n "(cached) " >&6
15815 else
15816 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15818 else
15819 if test "$ac_cv_type_void_p" = yes; then
15820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15822 as_fn_error 77 "cannot compute sizeof (void *)
15823 See \`config.log' for more details" "$LINENO" 5; }
15824 else
15825 ac_cv_sizeof_void_p=0
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15831 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15835 cat >>confdefs.h <<_ACEOF
15836 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15837 _ACEOF
15840 esac
15842 # Lacking an uint64_t? Test size of long
15843 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15844 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15847 # This bug is HP SR number 8606223364.
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15849 $as_echo_n "checking size of long... " >&6; }
15850 if ${ac_cv_sizeof_long+:} false; then :
15851 $as_echo_n "(cached) " >&6
15852 else
15853 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15855 else
15856 if test "$ac_cv_type_long" = yes; then
15857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15859 as_fn_error 77 "cannot compute sizeof (long)
15860 See \`config.log' for more details" "$LINENO" 5; }
15861 else
15862 ac_cv_sizeof_long=0
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15868 $as_echo "$ac_cv_sizeof_long" >&6; }
15872 cat >>confdefs.h <<_ACEOF
15873 #define SIZEOF_LONG $ac_cv_sizeof_long
15874 _ACEOF
15877 esac
15879 if test $acx_cv_header_stdint = stddef.h; then
15880 # Lacking a good header? Test size of everything and deduce all types.
15881 # The cast to long int works around a bug in the HP C Compiler
15882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15884 # This bug is HP SR number 8606223364.
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15886 $as_echo_n "checking size of int... " >&6; }
15887 if ${ac_cv_sizeof_int+:} false; then :
15888 $as_echo_n "(cached) " >&6
15889 else
15890 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15892 else
15893 if test "$ac_cv_type_int" = yes; then
15894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15896 as_fn_error 77 "cannot compute sizeof (int)
15897 See \`config.log' for more details" "$LINENO" 5; }
15898 else
15899 ac_cv_sizeof_int=0
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15905 $as_echo "$ac_cv_sizeof_int" >&6; }
15909 cat >>confdefs.h <<_ACEOF
15910 #define SIZEOF_INT $ac_cv_sizeof_int
15911 _ACEOF
15914 # The cast to long int works around a bug in the HP C Compiler
15915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15917 # This bug is HP SR number 8606223364.
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15919 $as_echo_n "checking size of short... " >&6; }
15920 if ${ac_cv_sizeof_short+:} false; then :
15921 $as_echo_n "(cached) " >&6
15922 else
15923 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15925 else
15926 if test "$ac_cv_type_short" = yes; then
15927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15929 as_fn_error 77 "cannot compute sizeof (short)
15930 See \`config.log' for more details" "$LINENO" 5; }
15931 else
15932 ac_cv_sizeof_short=0
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15938 $as_echo "$ac_cv_sizeof_short" >&6; }
15942 cat >>confdefs.h <<_ACEOF
15943 #define SIZEOF_SHORT $ac_cv_sizeof_short
15944 _ACEOF
15947 # The cast to long int works around a bug in the HP C Compiler
15948 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15949 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15950 # This bug is HP SR number 8606223364.
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15952 $as_echo_n "checking size of char... " >&6; }
15953 if ${ac_cv_sizeof_char+:} false; then :
15954 $as_echo_n "(cached) " >&6
15955 else
15956 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15958 else
15959 if test "$ac_cv_type_char" = yes; then
15960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15962 as_fn_error 77 "cannot compute sizeof (char)
15963 See \`config.log' for more details" "$LINENO" 5; }
15964 else
15965 ac_cv_sizeof_char=0
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15971 $as_echo "$ac_cv_sizeof_char" >&6; }
15975 cat >>confdefs.h <<_ACEOF
15976 #define SIZEOF_CHAR $ac_cv_sizeof_char
15977 _ACEOF
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15982 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15983 case "$ac_cv_sizeof_char" in
15984 1) acx_cv_type_int8_t=char ;;
15985 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
15986 esac
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15988 $as_echo "$acx_cv_type_int8_t" >&6; }
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15991 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15992 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15993 2:*) acx_cv_type_int16_t=int ;;
15994 *:2) acx_cv_type_int16_t=short ;;
15995 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
15996 esac
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15998 $as_echo "$acx_cv_type_int16_t" >&6; }
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16001 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16002 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16003 4:*) acx_cv_type_int32_t=int ;;
16004 *:4) acx_cv_type_int32_t=long ;;
16005 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
16006 esac
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16008 $as_echo "$acx_cv_type_int32_t" >&6; }
16011 # These tests are here to make the output prettier
16013 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16014 case "$ac_cv_sizeof_long" in
16015 8) acx_cv_type_int64_t=long ;;
16016 esac
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16018 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16020 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16023 # Now we can use the above types
16025 if test "$ac_cv_type_uintptr_t" != yes; then
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16027 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16028 case $ac_cv_sizeof_void_p in
16029 2) acx_cv_type_intptr_t=int16_t ;;
16030 4) acx_cv_type_intptr_t=int32_t ;;
16031 8) acx_cv_type_intptr_t=int64_t ;;
16032 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16033 esac
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16035 $as_echo "$acx_cv_type_intptr_t" >&6; }
16038 # ----------------- done all checks, emit header -------------
16039 ac_config_commands="$ac_config_commands gstdint.h"
16045 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
16046 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
16047 gcc_header_sys_mman_h=yes
16048 else
16049 gcc_header_sys_mman_h=no
16053 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16054 if test "x$ac_cv_func_mmap" = xyes; then :
16055 gcc_func_mmap=yes
16056 else
16057 gcc_func_mmap=no
16060 if test "$gcc_header_sys_mman_h" != yes \
16061 || test "$gcc_func_mmap" != yes; then
16062 gcc_cv_func_mmap_file=no
16063 gcc_cv_func_mmap_dev_zero=no
16064 gcc_cv_func_mmap_anon=no
16065 else
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
16067 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
16068 if ${gcc_cv_func_mmap_file+:} false; then :
16069 $as_echo_n "(cached) " >&6
16070 else
16071 # Add a system to this blacklist if
16072 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
16073 # memory area containing the same data that you'd get if you applied
16074 # read() to the same fd. The only system known to have a problem here
16075 # is VMS, where text files have record structure.
16076 case "$host_os" in
16077 *vms* | ultrix*)
16078 gcc_cv_func_mmap_file=no ;;
16080 gcc_cv_func_mmap_file=yes;;
16081 esac
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
16084 $as_echo "$gcc_cv_func_mmap_file" >&6; }
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
16086 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
16087 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
16088 $as_echo_n "(cached) " >&6
16089 else
16090 # Add a system to this blacklist if it has mmap() but /dev/zero
16091 # does not exist, or if mmapping /dev/zero does not give anonymous
16092 # zeroed pages with both the following properties:
16093 # 1. If you map N consecutive pages in with one call, and then
16094 # unmap any subset of those pages, the pages that were not
16095 # explicitly unmapped remain accessible.
16096 # 2. If you map two adjacent blocks of memory and then unmap them
16097 # both at once, they must both go away.
16098 # Systems known to be in this category are Windows (all variants),
16099 # VMS, and Darwin.
16100 case "$host_os" in
16101 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
16102 gcc_cv_func_mmap_dev_zero=no ;;
16104 gcc_cv_func_mmap_dev_zero=yes;;
16105 esac
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
16108 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
16110 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
16112 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
16113 if ${gcc_cv_decl_map_anon+:} false; then :
16114 $as_echo_n "(cached) " >&6
16115 else
16116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16117 /* end confdefs.h. */
16118 #include <sys/types.h>
16119 #include <sys/mman.h>
16120 #include <unistd.h>
16122 #ifndef MAP_ANONYMOUS
16123 #define MAP_ANONYMOUS MAP_ANON
16124 #endif
16127 main ()
16129 int n = MAP_ANONYMOUS;
16131 return 0;
16133 _ACEOF
16134 if ac_fn_c_try_compile "$LINENO"; then :
16135 gcc_cv_decl_map_anon=yes
16136 else
16137 gcc_cv_decl_map_anon=no
16139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
16142 $as_echo "$gcc_cv_decl_map_anon" >&6; }
16144 if test $gcc_cv_decl_map_anon = no; then
16145 gcc_cv_func_mmap_anon=no
16146 else
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
16148 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
16149 if ${gcc_cv_func_mmap_anon+:} false; then :
16150 $as_echo_n "(cached) " >&6
16151 else
16152 # Add a system to this blacklist if it has mmap() and MAP_ANON or
16153 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
16154 # doesn't give anonymous zeroed pages with the same properties listed
16155 # above for use of /dev/zero.
16156 # Systems known to be in this category are Windows, VMS, and SCO Unix.
16157 case "$host_os" in
16158 *vms* | cygwin* | pe | mingw* | sco* | udk* )
16159 gcc_cv_func_mmap_anon=no ;;
16161 gcc_cv_func_mmap_anon=yes;;
16162 esac
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
16165 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
16169 if test $gcc_cv_func_mmap_file = yes; then
16171 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
16174 if test $gcc_cv_func_mmap_dev_zero = yes; then
16176 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
16179 if test $gcc_cv_func_mmap_anon = yes; then
16181 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16187 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16188 if ${ac_cv_c_bigendian+:} false; then :
16189 $as_echo_n "(cached) " >&6
16190 else
16191 ac_cv_c_bigendian=unknown
16192 # See if we're dealing with a universal compiler.
16193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194 /* end confdefs.h. */
16195 #ifndef __APPLE_CC__
16196 not a universal capable compiler
16197 #endif
16198 typedef int dummy;
16200 _ACEOF
16201 if ac_fn_c_try_compile "$LINENO"; then :
16203 # Check for potential -arch flags. It is not universal unless
16204 # there are at least two -arch flags with different values.
16205 ac_arch=
16206 ac_prev=
16207 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16208 if test -n "$ac_prev"; then
16209 case $ac_word in
16210 i?86 | x86_64 | ppc | ppc64)
16211 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16212 ac_arch=$ac_word
16213 else
16214 ac_cv_c_bigendian=universal
16215 break
16218 esac
16219 ac_prev=
16220 elif test "x$ac_word" = "x-arch"; then
16221 ac_prev=arch
16223 done
16225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16226 if test $ac_cv_c_bigendian = unknown; then
16227 # See if sys/param.h defines the BYTE_ORDER macro.
16228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h. */
16230 #include <sys/types.h>
16231 #include <sys/param.h>
16234 main ()
16236 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16237 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16238 && LITTLE_ENDIAN)
16239 bogus endian macros
16240 #endif
16243 return 0;
16245 _ACEOF
16246 if ac_fn_c_try_compile "$LINENO"; then :
16247 # It does; now see whether it defined to BIG_ENDIAN or not.
16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h. */
16250 #include <sys/types.h>
16251 #include <sys/param.h>
16254 main ()
16256 #if BYTE_ORDER != BIG_ENDIAN
16257 not big endian
16258 #endif
16261 return 0;
16263 _ACEOF
16264 if ac_fn_c_try_compile "$LINENO"; then :
16265 ac_cv_c_bigendian=yes
16266 else
16267 ac_cv_c_bigendian=no
16269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16273 if test $ac_cv_c_bigendian = unknown; then
16274 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16276 /* end confdefs.h. */
16277 #include <limits.h>
16280 main ()
16282 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16283 bogus endian macros
16284 #endif
16287 return 0;
16289 _ACEOF
16290 if ac_fn_c_try_compile "$LINENO"; then :
16291 # It does; now see whether it defined to _BIG_ENDIAN or not.
16292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16293 /* end confdefs.h. */
16294 #include <limits.h>
16297 main ()
16299 #ifndef _BIG_ENDIAN
16300 not big endian
16301 #endif
16304 return 0;
16306 _ACEOF
16307 if ac_fn_c_try_compile "$LINENO"; then :
16308 ac_cv_c_bigendian=yes
16309 else
16310 ac_cv_c_bigendian=no
16312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16316 if test $ac_cv_c_bigendian = unknown; then
16317 # Compile a test program.
16318 if test "$cross_compiling" = yes; then :
16319 # Try to guess by grepping values from an object file.
16320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321 /* end confdefs.h. */
16322 short int ascii_mm[] =
16323 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16324 short int ascii_ii[] =
16325 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16326 int use_ascii (int i) {
16327 return ascii_mm[i] + ascii_ii[i];
16329 short int ebcdic_ii[] =
16330 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16331 short int ebcdic_mm[] =
16332 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16333 int use_ebcdic (int i) {
16334 return ebcdic_mm[i] + ebcdic_ii[i];
16336 extern int foo;
16339 main ()
16341 return use_ascii (foo) == use_ebcdic (foo);
16343 return 0;
16345 _ACEOF
16346 if ac_fn_c_try_compile "$LINENO"; then :
16347 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16348 ac_cv_c_bigendian=yes
16350 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16351 if test "$ac_cv_c_bigendian" = unknown; then
16352 ac_cv_c_bigendian=no
16353 else
16354 # finding both strings is unlikely to happen, but who knows?
16355 ac_cv_c_bigendian=unknown
16359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16360 else
16361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16362 /* end confdefs.h. */
16363 $ac_includes_default
16365 main ()
16368 /* Are we little or big endian? From Harbison&Steele. */
16369 union
16371 long int l;
16372 char c[sizeof (long int)];
16373 } u;
16374 u.l = 1;
16375 return u.c[sizeof (long int) - 1] == 1;
16378 return 0;
16380 _ACEOF
16381 if ac_fn_c_try_run "$LINENO"; then :
16382 ac_cv_c_bigendian=no
16383 else
16384 ac_cv_c_bigendian=yes
16386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16387 conftest.$ac_objext conftest.beam conftest.$ac_ext
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16393 $as_echo "$ac_cv_c_bigendian" >&6; }
16394 case $ac_cv_c_bigendian in #(
16395 yes)
16396 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16397 ;; #(
16399 ;; #(
16400 universal)
16402 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16404 ;; #(
16406 as_fn_error $? "unknown endianness
16407 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16408 esac
16410 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16413 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16414 # In case the pthread.h system header is not found, this test will fail.
16415 XPCFLAGS=""
16416 CFLAGS="$CFLAGS -pthread"
16417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418 /* end confdefs.h. */
16419 #include <pthread.h>
16420 void *g(void *d) { return NULL; }
16422 main ()
16424 pthread_t t; pthread_create(&t,NULL,g,NULL);
16426 return 0;
16428 _ACEOF
16429 if ac_fn_c_try_link "$LINENO"; then :
16430 XPCFLAGS=" -Wc,-pthread"
16431 else
16432 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16434 /* end confdefs.h. */
16435 #include <pthread.h>
16436 void *g(void *d) { return NULL; }
16438 main ()
16440 pthread_t t; pthread_create(&t,NULL,g,NULL);
16442 return 0;
16444 _ACEOF
16445 if ac_fn_c_try_link "$LINENO"; then :
16447 else
16448 as_fn_error $? "Pthreads are required to build libitm" "$LINENO" 5
16450 rm -f core conftest.err conftest.$ac_objext \
16451 conftest$ac_exeext conftest.$ac_ext
16453 rm -f core conftest.err conftest.$ac_objext \
16454 conftest$ac_exeext conftest.$ac_ext
16456 # Check for functions needed.
16457 for ac_func in strtoull memalign posix_memalign getauxval
16458 do :
16459 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16460 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16461 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16462 cat >>confdefs.h <<_ACEOF
16463 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16464 _ACEOF
16467 done
16470 # Check for broken semaphore implementation on darwin.
16471 # sem_init returns: sem_init error: Function not implemented.
16472 case "$host" in
16473 *-darwin*)
16475 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16478 esac
16480 # Check whether --enable-linux-futex was given.
16481 if test "${enable_linux_futex+set}" = set; then :
16482 enableval=$enable_linux_futex;
16483 case "$enableval" in
16484 yes|no|default) ;;
16485 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16486 esac
16488 else
16489 enable_linux_futex=default
16493 case "$target" in
16494 *-linux* | *-uclinux*)
16495 case "$enable_linux_futex" in
16496 default)
16497 # If headers don't have gettid/futex syscalls definition, then
16498 # default to no, otherwise there will be compile time failures.
16499 # Otherwise, default to yes. If we don't detect we are
16500 # compiled/linked against NPTL and not cross-compiling, check
16501 # if programs are run by default against NPTL and if not, issue
16502 # a warning.
16503 enable_linux_futex=no
16504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h. */
16506 #include <sys/syscall.h>
16507 #include <unistd.h>
16508 int lk;
16510 main ()
16512 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16514 return 0;
16516 _ACEOF
16517 if ac_fn_c_try_link "$LINENO"; then :
16518 save_LIBS="$LIBS"
16519 LIBS="-lpthread $LIBS"
16520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16521 /* end confdefs.h. */
16522 #ifndef _GNU_SOURCE
16523 #define _GNU_SOURCE 1
16524 #endif
16525 #include <pthread.h>
16526 pthread_t th; void *status;
16528 main ()
16530 pthread_tryjoin_np (th, &status);
16532 return 0;
16534 _ACEOF
16535 if ac_fn_c_try_link "$LINENO"; then :
16536 enable_linux_futex=yes
16537 else
16538 if test x$cross_compiling = xno; then
16539 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16540 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16542 If so, please configure with --disable-linux-futex" >&5
16543 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16544 If so, please configure with --disable-linux-futex" >&2;}
16547 enable_linux_futex=yes
16549 rm -f core conftest.err conftest.$ac_objext \
16550 conftest$ac_exeext conftest.$ac_ext
16551 LIBS="$save_LIBS"
16553 rm -f core conftest.err conftest.$ac_objext \
16554 conftest$ac_exeext conftest.$ac_ext
16556 yes)
16557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16558 /* end confdefs.h. */
16559 #include <sys/syscall.h>
16560 #include <unistd.h>
16561 int lk;
16563 main ()
16565 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16567 return 0;
16569 _ACEOF
16570 if ac_fn_c_try_link "$LINENO"; then :
16572 else
16573 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16575 rm -f core conftest.err conftest.$ac_objext \
16576 conftest$ac_exeext conftest.$ac_ext
16578 esac
16581 enable_linux_futex=no
16583 esac
16584 if test x$enable_linux_futex = xyes; then
16589 # See if we support thread-local storage.
16592 # Check whether --enable-tls was given.
16593 if test "${enable_tls+set}" = set; then :
16594 enableval=$enable_tls;
16595 case "$enableval" in
16596 yes|no) ;;
16597 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16598 esac
16600 else
16601 enable_tls=yes
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16606 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16607 if ${gcc_cv_have_tls+:} false; then :
16608 $as_echo_n "(cached) " >&6
16609 else
16611 if test "$cross_compiling" = yes; then :
16612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16613 /* end confdefs.h. */
16614 __thread int a; int b; int main() { return a = b; }
16615 _ACEOF
16616 if ac_fn_c_try_link "$LINENO"; then :
16617 chktls_save_LDFLAGS="$LDFLAGS"
16618 case $host in
16619 *-*-linux* | -*-uclinuxfdpic*)
16620 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16622 esac
16623 chktls_save_CFLAGS="$CFLAGS"
16624 CFLAGS="-fPIC $CFLAGS"
16625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16626 /* end confdefs.h. */
16627 int f() { return 0; }
16628 _ACEOF
16629 if ac_fn_c_try_link "$LINENO"; then :
16630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16631 /* end confdefs.h. */
16632 __thread int a; int b; int f() { return a = b; }
16633 _ACEOF
16634 if ac_fn_c_try_link "$LINENO"; then :
16635 gcc_cv_have_tls=yes
16636 else
16637 gcc_cv_have_tls=no
16639 rm -f core conftest.err conftest.$ac_objext \
16640 conftest$ac_exeext conftest.$ac_ext
16641 else
16642 gcc_cv_have_tls=yes
16644 rm -f core conftest.err conftest.$ac_objext \
16645 conftest$ac_exeext conftest.$ac_ext
16646 CFLAGS="$chktls_save_CFLAGS"
16647 LDFLAGS="$chktls_save_LDFLAGS"
16648 else
16649 gcc_cv_have_tls=no
16651 rm -f core conftest.err conftest.$ac_objext \
16652 conftest$ac_exeext conftest.$ac_ext
16655 else
16656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16657 /* end confdefs.h. */
16658 __thread int a; int b; int main() { return a = b; }
16659 _ACEOF
16660 if ac_fn_c_try_run "$LINENO"; then :
16661 chktls_save_LDFLAGS="$LDFLAGS"
16662 LDFLAGS="-static $LDFLAGS"
16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664 /* end confdefs.h. */
16665 int main() { return 0; }
16666 _ACEOF
16667 if ac_fn_c_try_link "$LINENO"; then :
16668 if test "$cross_compiling" = yes; then :
16669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16671 as_fn_error $? "cannot run test program while cross compiling
16672 See \`config.log' for more details" "$LINENO" 5; }
16673 else
16674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16675 /* end confdefs.h. */
16676 __thread int a; int b; int main() { return a = b; }
16677 _ACEOF
16678 if ac_fn_c_try_run "$LINENO"; then :
16679 gcc_cv_have_tls=yes
16680 else
16681 gcc_cv_have_tls=no
16683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16684 conftest.$ac_objext conftest.beam conftest.$ac_ext
16687 else
16688 gcc_cv_have_tls=yes
16690 rm -f core conftest.err conftest.$ac_objext \
16691 conftest$ac_exeext conftest.$ac_ext
16692 LDFLAGS="$chktls_save_LDFLAGS"
16693 if test $gcc_cv_have_tls = yes; then
16694 chktls_save_CFLAGS="$CFLAGS"
16695 thread_CFLAGS=failed
16696 for flag in '' '-pthread' '-lpthread'; do
16697 CFLAGS="$flag $chktls_save_CFLAGS"
16698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16699 /* end confdefs.h. */
16700 #include <pthread.h>
16701 void *g(void *d) { return NULL; }
16703 main ()
16705 pthread_t t; pthread_create(&t,NULL,g,NULL);
16707 return 0;
16709 _ACEOF
16710 if ac_fn_c_try_link "$LINENO"; then :
16711 thread_CFLAGS="$flag"
16713 rm -f core conftest.err conftest.$ac_objext \
16714 conftest$ac_exeext conftest.$ac_ext
16715 if test "X$thread_CFLAGS" != Xfailed; then
16716 break
16718 done
16719 CFLAGS="$chktls_save_CFLAGS"
16720 if test "X$thread_CFLAGS" != Xfailed; then
16721 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16722 if test "$cross_compiling" = yes; then :
16723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16725 as_fn_error $? "cannot run test program while cross compiling
16726 See \`config.log' for more details" "$LINENO" 5; }
16727 else
16728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16729 /* end confdefs.h. */
16730 #include <pthread.h>
16731 __thread int a;
16732 static int *volatile a_in_other_thread;
16733 static void *
16734 thread_func (void *arg)
16736 a_in_other_thread = &a;
16737 return (void *)0;
16740 main ()
16742 pthread_t thread;
16743 void *thread_retval;
16744 int *volatile a_in_main_thread;
16745 a_in_main_thread = &a;
16746 if (pthread_create (&thread, (pthread_attr_t *)0,
16747 thread_func, (void *)0))
16748 return 0;
16749 if (pthread_join (thread, &thread_retval))
16750 return 0;
16751 return (a_in_other_thread == a_in_main_thread);
16753 return 0;
16755 _ACEOF
16756 if ac_fn_c_try_run "$LINENO"; then :
16757 gcc_cv_have_tls=yes
16758 else
16759 gcc_cv_have_tls=no
16761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16762 conftest.$ac_objext conftest.beam conftest.$ac_ext
16765 CFLAGS="$chktls_save_CFLAGS"
16768 else
16769 gcc_cv_have_tls=no
16771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16772 conftest.$ac_objext conftest.beam conftest.$ac_ext
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16777 $as_echo "$gcc_cv_have_tls" >&6; }
16778 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16780 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16784 # See what sort of export controls are available.
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16787 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16788 if ${libitm_cv_have_attribute_visibility+:} false; then :
16789 $as_echo_n "(cached) " >&6
16790 else
16792 save_CFLAGS="$CFLAGS"
16793 CFLAGS="$CFLAGS -Werror"
16794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16795 /* end confdefs.h. */
16796 void __attribute__((visibility("hidden"))) foo(void) { }
16798 main ()
16802 return 0;
16804 _ACEOF
16805 if ac_fn_c_try_compile "$LINENO"; then :
16806 libitm_cv_have_attribute_visibility=yes
16807 else
16808 libitm_cv_have_attribute_visibility=no
16810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16811 CFLAGS="$save_CFLAGS"
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16814 $as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16815 if test $libitm_cv_have_attribute_visibility = yes; then
16817 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16822 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16823 if ${libitm_cv_have_attribute_dllexport+:} false; then :
16824 $as_echo_n "(cached) " >&6
16825 else
16827 save_CFLAGS="$CFLAGS"
16828 CFLAGS="$CFLAGS -Werror"
16829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16830 /* end confdefs.h. */
16831 void __attribute__((dllexport)) foo(void) { }
16833 main ()
16837 return 0;
16839 _ACEOF
16840 if ac_fn_c_try_compile "$LINENO"; then :
16841 libitm_cv_have_attribute_dllexport=yes
16842 else
16843 libitm_cv_have_attribute_dllexport=no
16845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16846 CFLAGS="$save_CFLAGS"
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16849 $as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16850 if test $libitm_cv_have_attribute_dllexport = yes; then
16852 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16857 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16858 if ${libitm_cv_have_attribute_alias+:} false; then :
16859 $as_echo_n "(cached) " >&6
16860 else
16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h. */
16865 void foo(void) { }
16866 extern void bar(void) __attribute__((alias("foo")));
16868 main ()
16870 bar();
16872 return 0;
16874 _ACEOF
16875 if ac_fn_c_try_link "$LINENO"; then :
16876 libitm_cv_have_attribute_alias=yes
16877 else
16878 libitm_cv_have_attribute_alias=no
16880 rm -f core conftest.err conftest.$ac_objext \
16881 conftest$ac_exeext conftest.$ac_ext
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16884 $as_echo "$libitm_cv_have_attribute_alias" >&6; }
16885 if test $libitm_cv_have_attribute_alias = yes; then
16887 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16891 # Check linker hardware capability support.
16894 # Check whether --with-gnu-ld was given.
16895 if test "${with_gnu_ld+set}" = set; then :
16896 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16897 else
16898 with_gnu_ld=no
16901 ac_prog=ld
16902 if test "$GCC" = yes; then
16903 # Check if gcc -print-prog-name=ld gives a path.
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16905 $as_echo_n "checking for ld used by $CC... " >&6; }
16906 case $host in
16907 *-*-mingw*)
16908 # gcc leaves a trailing carriage return which upsets mingw
16909 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16911 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16912 esac
16913 case $ac_prog in
16914 # Accept absolute paths.
16915 [\\/]* | ?:[\\/]*)
16916 re_direlt='/[^/][^/]*/\.\./'
16917 # Canonicalize the pathname of ld
16918 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16919 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16920 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16921 done
16922 test -z "$LD" && LD="$ac_prog"
16925 # If it fails, then pretend we aren't using GCC.
16926 ac_prog=ld
16929 # If it is relative, then search for the first ld in PATH.
16930 with_gnu_ld=unknown
16932 esac
16933 elif test "$with_gnu_ld" = yes; then
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16935 $as_echo_n "checking for GNU ld... " >&6; }
16936 else
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16938 $as_echo_n "checking for non-GNU ld... " >&6; }
16940 if ${lt_cv_path_LD+:} false; then :
16941 $as_echo_n "(cached) " >&6
16942 else
16943 if test -z "$LD"; then
16944 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16945 for ac_dir in $PATH; do
16946 IFS="$lt_save_ifs"
16947 test -z "$ac_dir" && ac_dir=.
16948 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16949 lt_cv_path_LD="$ac_dir/$ac_prog"
16950 # Check to see if the program is GNU ld. I'd rather use --version,
16951 # but apparently some variants of GNU ld only accept -v.
16952 # Break only if it was the GNU/non-GNU ld that we prefer.
16953 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16954 *GNU* | *'with BFD'*)
16955 test "$with_gnu_ld" != no && break
16958 test "$with_gnu_ld" != yes && break
16960 esac
16962 done
16963 IFS="$lt_save_ifs"
16964 else
16965 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16969 LD="$lt_cv_path_LD"
16970 if test -n "$LD"; then
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16972 $as_echo "$LD" >&6; }
16973 else
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16975 $as_echo "no" >&6; }
16977 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16979 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16980 if ${lt_cv_prog_gnu_ld+:} false; then :
16981 $as_echo_n "(cached) " >&6
16982 else
16983 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16984 case `$LD -v 2>&1 </dev/null` in
16985 *GNU* | *'with BFD'*)
16986 lt_cv_prog_gnu_ld=yes
16989 lt_cv_prog_gnu_ld=no
16991 esac
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16994 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16995 with_gnu_ld=$lt_cv_prog_gnu_ld
17003 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
17006 ac_save_LDFLAGS="$LDFLAGS"
17007 LDFLAGS="$LFLAGS -mclear-hwcap"
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
17010 $as_echo_n "checking for -mclear-hwcap... " >&6; }
17011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17012 /* end confdefs.h. */
17015 main ()
17017 return 0;
17019 return 0;
17021 _ACEOF
17022 if ac_fn_c_try_link "$LINENO"; then :
17023 ac_hwcap_ldflags=yes
17024 else
17025 ac_hwcap_ldflags=no
17027 rm -f core conftest.err conftest.$ac_objext \
17028 conftest$ac_exeext conftest.$ac_ext
17029 if test "$ac_hwcap_ldflags" = "yes"; then
17030 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
17033 $as_echo "$ac_hwcap_ldflags" >&6; }
17035 LDFLAGS="$ac_save_LDFLAGS"
17039 if test $ac_hwcap_ldflags != no; then
17040 HAVE_HWCAP_TRUE=
17041 HAVE_HWCAP_FALSE='#'
17042 else
17043 HAVE_HWCAP_TRUE='#'
17044 HAVE_HWCAP_FALSE=
17048 # If defaulting to -mavx, don't clear hwcaps.
17049 ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
17050 if test "x$ac_cv_have_decl___AVX__" = xyes; then :
17051 HWCAP_LDFLAGS=''
17056 # If we're not using GNU ld, then there's no point in even trying these
17057 # tests. Check for that first. We should have already tested for gld
17058 # by now (in libtool), but require it now just to be safe...
17059 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17060 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17064 # The name set by libtool depends on the version of libtool. Shame on us
17065 # for depending on an impl detail, but c'est la vie. Older versions used
17066 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17067 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17068 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17069 # set (hence we're using an older libtool), then set it.
17070 if test x${with_gnu_ld+set} != xset; then
17071 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17072 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17073 with_gnu_ld=no
17074 else
17075 with_gnu_ld=$ac_cv_prog_gnu_ld
17079 # Start by getting the version number. I think the libtool test already
17080 # does some of this, but throws away the result.
17081 libitm_ld_is_gold=no
17082 libitm_ld_is_mold=no
17083 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
17084 libitm_ld_is_gold=yes
17085 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
17086 libitm_ld_is_mold=yes
17089 ldver=`$LD --version 2>/dev/null |
17090 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
17092 libitm_gnu_ld_version=`echo $ldver | \
17093 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17095 # Set --gc-sections.
17096 if test "$with_gnu_ld" = "notbroken"; then
17097 # GNU ld it is! Joy and bunny rabbits!
17099 # All these tests are for C++; save the language and the compiler flags.
17100 # Need to do this so that g++ won't try to link in libstdc++
17101 ac_test_CFLAGS="${CFLAGS+set}"
17102 ac_save_CFLAGS="$CFLAGS"
17103 CFLAGS='-x c++ -Wl,--gc-sections'
17105 # Check for -Wl,--gc-sections
17106 # XXX This test is broken at the moment, as symbols required for linking
17107 # are now in libsupc++ (not built yet). In addition, this test has
17108 # cored on solaris in the past. In addition, --gc-sections doesn't
17109 # really work at the moment (keeps on discarding used sections, first
17110 # .eh_frame and now some of the glibc sections for iconv).
17111 # Bzzzzt. Thanks for playing, maybe next time.
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
17113 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
17114 if test "$cross_compiling" = yes; then :
17115 ac_sectionLDflags=yes
17116 else
17117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17118 /* end confdefs.h. */
17120 int main(void)
17122 try { throw 1; }
17123 catch (...) { };
17124 return 0;
17127 _ACEOF
17128 if ac_fn_c_try_run "$LINENO"; then :
17129 ac_sectionLDflags=yes
17130 else
17131 ac_sectionLDflags=no
17133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17134 conftest.$ac_objext conftest.beam conftest.$ac_ext
17137 if test "$ac_test_CFLAGS" = set; then
17138 CFLAGS="$ac_save_CFLAGS"
17139 else
17140 # this is the suspicious part
17141 CFLAGS=''
17143 if test "$ac_sectionLDflags" = "yes"; then
17144 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
17147 $as_echo "$ac_sectionLDflags" >&6; }
17150 # Set linker optimization flags.
17151 if test x"$with_gnu_ld" = x"yes"; then
17152 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17160 # Check whether --enable-symvers was given.
17161 if test "${enable_symvers+set}" = set; then :
17162 enableval=$enable_symvers;
17163 case "$enableval" in
17164 yes|no|gnu*|sun) ;;
17165 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
17166 esac
17168 else
17169 enable_symvers=yes
17174 # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
17175 # don't know enough about $LD to do tricks...
17178 # Turn a 'yes' into a suitable default.
17179 if test x$enable_symvers = xyes ; then
17180 # FIXME The following test is too strict, in theory.
17181 if test $enable_shared = no || test "x$LD" = x; then
17182 enable_symvers=no
17183 else
17184 if test $with_gnu_ld = yes ; then
17185 enable_symvers=gnu
17186 else
17187 case ${target_os} in
17188 # Sun symbol versioning exists since Solaris 2.5.
17189 solaris2.[5-9]* | solaris2.1[0-9]*)
17190 enable_symvers=sun ;;
17192 enable_symvers=no ;;
17193 esac
17198 # Check if 'sun' was requested on non-Solaris 2 platforms.
17199 if test x$enable_symvers = xsun ; then
17200 case ${target_os} in
17201 solaris2*)
17202 # All fine.
17205 # Unlikely to work.
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
17207 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
17209 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17211 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17212 enable_symvers=no
17214 esac
17217 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17218 if test $enable_symvers != no; then
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
17220 $as_echo_n "checking for shared libgcc... " >&6; }
17221 ac_save_CFLAGS="$CFLAGS"
17222 CFLAGS=' -lgcc_s'
17223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17224 /* end confdefs.h. */
17227 main ()
17229 return 0;
17231 return 0;
17233 _ACEOF
17234 if ac_fn_c_try_link "$LINENO"; then :
17235 libitm_shared_libgcc=yes
17236 else
17237 libitm_shared_libgcc=no
17239 rm -f core conftest.err conftest.$ac_objext \
17240 conftest$ac_exeext conftest.$ac_ext
17241 CFLAGS="$ac_save_CFLAGS"
17242 if test $libitm_shared_libgcc = no; then
17243 cat > conftest.c <<EOF
17244 int main (void) { return 0; }
17246 libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17247 -shared -shared-libgcc -o conftest.so \
17248 conftest.c -v 2>&1 >/dev/null \
17249 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17250 rm -f conftest.c conftest.so
17251 if test x${libitm_libgcc_s_suffix+set} = xset; then
17252 CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
17253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17254 /* end confdefs.h. */
17257 main ()
17259 return 0;
17261 return 0;
17263 _ACEOF
17264 if ac_fn_c_try_link "$LINENO"; then :
17265 libitm_shared_libgcc=yes
17267 rm -f core conftest.err conftest.$ac_objext \
17268 conftest$ac_exeext conftest.$ac_ext
17269 CFLAGS="$ac_save_CFLAGS"
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
17273 $as_echo "$libitm_shared_libgcc" >&6; }
17276 # For GNU ld, we need at least this version. The format is described in
17277 # LIBITM_CHECK_LINKER_FEATURES above.
17278 libitm_min_gnu_ld_version=21400
17279 # XXXXXXXXXXX libitm_gnu_ld_version=21390
17281 # Check to see if unspecified "yes" value can win, given results above.
17282 # Change "yes" into either "no" or a style name.
17283 if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
17284 if test $with_gnu_ld = yes; then
17285 if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
17286 enable_symvers=gnu
17287 elif test $libitm_ld_is_gold = yes ; then
17288 enable_symvers=gnu
17289 elif test $libitm_ld_is_mold = yes ; then
17290 enable_symvers=gnu
17291 else
17292 # The right tools, the right setup, but too old. Fallbacks?
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
17294 $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17296 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17298 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
17300 $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
17301 if test $libitm_gnu_ld_version -ge 21200 ; then
17302 # Globbing fix is present, proper block support is not.
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17304 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17305 enable_symvers=no
17306 else
17307 # 2.11 or older.
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17309 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17310 enable_symvers=no
17313 elif test $enable_symvers = sun; then
17314 : All interesting versions of Sun ld support sun style symbol versioning.
17315 else
17316 # just fail for now
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17318 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17320 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17322 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17324 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17325 enable_symvers=no
17329 if test $enable_symvers != no; then
17330 LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
17331 LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
17332 else
17333 LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
17334 LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
17337 if test $enable_symvers = gnu; then
17338 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17339 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17340 else
17341 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17342 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17345 if test $enable_symvers = sun; then
17346 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17347 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17348 else
17349 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17350 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17354 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17356 if test $enable_symvers = gnu; then
17358 $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17362 # See if we can emit unwind info in the sjlj stub.
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
17364 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
17365 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
17366 $as_echo_n "(cached) " >&6
17367 else
17369 gcc_cv_as_cfi_pseudo_op=unknown
17370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17371 /* end confdefs.h. */
17372 asm (".cfi_startproc\n\t.cfi_endproc");
17374 main ()
17378 return 0;
17380 _ACEOF
17381 if ac_fn_c_try_compile "$LINENO"; then :
17382 gcc_cv_as_cfi_pseudo_op=yes
17383 else
17384 gcc_cv_as_cfi_pseudo_op=no
17386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17390 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17391 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
17393 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17398 # Determine the proper ABI type for size_t.
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17401 $as_echo_n "checking how size_t is mangled... " >&6; }
17402 if ${libitm_cv_size_t_mangling+:} false; then :
17403 $as_echo_n "(cached) " >&6
17404 else
17406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17407 /* end confdefs.h. */
17410 main ()
17412 extern __SIZE_TYPE__ x; extern unsigned long x;
17414 return 0;
17416 _ACEOF
17417 if ac_fn_c_try_compile "$LINENO"; then :
17418 libitm_cv_size_t_mangling=m
17419 else
17421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17422 /* end confdefs.h. */
17425 main ()
17427 extern __SIZE_TYPE__ x; extern unsigned int x;
17429 return 0;
17431 _ACEOF
17432 if ac_fn_c_try_compile "$LINENO"; then :
17433 libitm_cv_size_t_mangling=j
17434 else
17436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437 /* end confdefs.h. */
17440 main ()
17442 extern __SIZE_TYPE__ x; extern unsigned long long x;
17444 return 0;
17446 _ACEOF
17447 if ac_fn_c_try_compile "$LINENO"; then :
17448 libitm_cv_size_t_mangling=y
17449 else
17451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17452 /* end confdefs.h. */
17455 main ()
17457 extern __SIZE_TYPE__ x; extern unsigned short x;
17459 return 0;
17461 _ACEOF
17462 if ac_fn_c_try_compile "$LINENO"; then :
17463 libitm_cv_size_t_mangling=t
17464 else
17465 libitm_cv_size_t_mangling=x
17467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17480 $as_echo "$libitm_cv_size_t_mangling" >&6; }
17481 if test $libitm_cv_size_t_mangling = x; then
17482 as_fn_error $? "Unknown underlying type for size_t" "$LINENO" 5
17485 cat >>confdefs.h <<_ACEOF
17486 #define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17487 _ACEOF
17491 # Get target configury.
17492 . ${srcdir}/configure.tgt
17493 if test -n "$UNSUPPORTED"; then
17494 as_fn_error $? "Configuration ${target} is unsupported." "$LINENO" 5
17497 CFLAGS="$save_CFLAGS $XCFLAGS"
17499 # Check for __sync_val_compare_and_swap, but only after the target has
17500 # had a chance to set XCFLAGS.
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17503 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17504 if ${libitm_cv_have_sync_builtins+:} false; then :
17505 $as_echo_n "(cached) " >&6
17506 else
17508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17509 /* end confdefs.h. */
17512 main ()
17514 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17516 return 0;
17518 _ACEOF
17519 if ac_fn_c_try_link "$LINENO"; then :
17520 libitm_cv_have_sync_builtins=yes
17521 else
17522 libitm_cv_have_sync_builtins=no
17524 rm -f core conftest.err conftest.$ac_objext \
17525 conftest$ac_exeext conftest.$ac_ext
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17528 $as_echo "$libitm_cv_have_sync_builtins" >&6; }
17529 if test $libitm_cv_have_sync_builtins = yes; then
17531 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17536 $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17537 if ${libitm_cv_have_64bit_sync_builtins+:} false; then :
17538 $as_echo_n "(cached) " >&6
17539 else
17541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17542 /* end confdefs.h. */
17543 #include <stdint.h>
17545 main ()
17547 uint64_t foo, bar;
17548 bar = __sync_val_compare_and_swap(&foo, 0, 1);
17550 return 0;
17552 _ACEOF
17553 if ac_fn_c_try_link "$LINENO"; then :
17554 libitm_cv_have_64bit_sync_builtins=yes
17555 else
17556 libitm_cv_have_64bit_sync_builtins=no
17558 rm -f core conftest.err conftest.$ac_objext \
17559 conftest$ac_exeext conftest.$ac_ext
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17562 $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17563 if test $libitm_cv_have_64bit_sync_builtins = yes; then
17565 $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17569 case "${target_cpu}" in
17570 i[34567]86 | x86_64)
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17572 $as_echo_n "checking if the assembler supports AVX... " >&6; }
17573 if ${libitm_cv_as_avx+:} false; then :
17574 $as_echo_n "(cached) " >&6
17575 else
17577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17578 /* end confdefs.h. */
17581 main ()
17583 asm("vzeroupper");
17585 return 0;
17587 _ACEOF
17588 if ac_fn_c_try_compile "$LINENO"; then :
17589 libitm_cv_as_avx=yes
17590 else
17591 libitm_cv_as_avx=no
17593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17597 $as_echo "$libitm_cv_as_avx" >&6; }
17598 if test x$libitm_cv_as_avx = xyes; then
17600 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17604 esac
17606 case "${target_cpu}" in
17607 i[34567]86 | x86_64)
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports RTM" >&5
17609 $as_echo_n "checking if the assembler supports RTM... " >&6; }
17610 if ${libitm_cv_as_rtm+:} false; then :
17611 $as_echo_n "(cached) " >&6
17612 else
17614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17615 /* end confdefs.h. */
17618 main ()
17620 asm("1: xbegin 1b; xend");
17622 return 0;
17624 _ACEOF
17625 if ac_fn_c_try_compile "$LINENO"; then :
17626 libitm_cv_as_rtm=yes
17627 else
17628 libitm_cv_as_rtm=no
17630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_rtm" >&5
17634 $as_echo "$libitm_cv_as_rtm" >&6; }
17635 if test x$libitm_cv_as_rtm = xyes; then
17637 $as_echo "#define HAVE_AS_RTM 1" >>confdefs.h
17641 esac
17643 case "${target_cpu}" in
17644 powerpc*)
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17646 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17647 if ${libitm_cv_as_htm+:} false; then :
17648 $as_echo_n "(cached) " >&6
17649 else
17651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17652 /* end confdefs.h. */
17655 main ()
17657 asm("tbegin. 0; tend. 0");
17659 return 0;
17661 _ACEOF
17662 if ac_fn_c_try_compile "$LINENO"; then :
17663 libitm_cv_as_htm=yes
17664 else
17665 libitm_cv_as_htm=no
17667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17671 $as_echo "$libitm_cv_as_htm" >&6; }
17672 if test x$libitm_cv_as_htm = xyes; then
17674 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17678 s390*)
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17680 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17681 if ${libitm_cv_as_htm+:} false; then :
17682 $as_echo_n "(cached) " >&6
17683 else
17685 save_CFLAGS="$CFLAGS"
17686 CFLAGS="$CFLAGS -march=zEC12"
17687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17688 /* end confdefs.h. */
17691 main ()
17693 asm("tbegin 0,0; tend");
17695 return 0;
17697 _ACEOF
17698 if ac_fn_c_try_compile "$LINENO"; then :
17699 libitm_cv_as_htm=yes
17700 else
17701 libitm_cv_as_htm=no
17703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17704 CFLAGS="$save_CFLAGS"
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17707 $as_echo "$libitm_cv_as_htm" >&6; }
17708 if test x$libitm_cv_as_htm = xyes; then
17710 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17714 esac
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
17718 $as_echo_n "checking whether weak refs work like ELF... " >&6; }
17719 if ${ac_cv_have_elf_style_weakref+:} false; then :
17720 $as_echo_n "(cached) " >&6
17721 else
17723 weakref_m4_saved_CFLAGS="$CFLAGS"
17724 case "${host}" in
17725 *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
17726 *) ;;
17727 esac
17728 if test "$cross_compiling" = yes; then :
17730 case "${host}" in
17731 *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
17732 *) ac_cv_have_elf_style_weakref=yes;;
17733 esac
17734 else
17735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736 /* end confdefs.h. */
17738 extern void fNotToBeFound(void) __attribute__((weak));
17739 int main ()
17741 if (fNotToBeFound)
17742 return 1;
17743 else
17744 return 0;
17747 _ACEOF
17748 if ac_fn_c_try_run "$LINENO"; then :
17749 ac_cv_have_elf_style_weakref=yes
17750 else
17751 ac_cv_have_elf_style_weakref=no
17753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17754 conftest.$ac_objext conftest.beam conftest.$ac_ext
17756 CFLAGS="$weakref_m4_saved_CFLAGS"
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
17759 $as_echo "$ac_cv_have_elf_style_weakref" >&6; }
17760 if test x"$ac_cv_have_elf_style_weakref" = xyes; then
17762 $as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
17766 # Cleanup and exit.
17767 CFLAGS="$save_CFLAGS"
17768 cat >confcache <<\_ACEOF
17769 # This file is a shell script that caches the results of configure
17770 # tests run on this system so they can be shared between configure
17771 # scripts and configure runs, see configure's option --config-cache.
17772 # It is not useful on other systems. If it contains results you don't
17773 # want to keep, you may remove or edit it.
17775 # config.status only pays attention to the cache file if you give it
17776 # the --recheck option to rerun configure.
17778 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17779 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17780 # following values.
17782 _ACEOF
17784 # The following way of writing the cache mishandles newlines in values,
17785 # but we know of no workaround that is simple, portable, and efficient.
17786 # So, we kill variables containing newlines.
17787 # Ultrix sh set writes to stderr and can't be redirected directly,
17788 # and sets the high bit in the cache file unless we assign to the vars.
17790 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17791 eval ac_val=\$$ac_var
17792 case $ac_val in #(
17793 *${as_nl}*)
17794 case $ac_var in #(
17795 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17796 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17797 esac
17798 case $ac_var in #(
17799 _ | IFS | as_nl) ;; #(
17800 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17801 *) { eval $ac_var=; unset $ac_var;} ;;
17802 esac ;;
17803 esac
17804 done
17806 (set) 2>&1 |
17807 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17808 *${as_nl}ac_space=\ *)
17809 # `set' does not quote correctly, so add quotes: double-quote
17810 # substitution turns \\\\ into \\, and sed turns \\ into \.
17811 sed -n \
17812 "s/'/'\\\\''/g;
17813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17814 ;; #(
17816 # `set' quotes correctly as required by POSIX, so do not add quotes.
17817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17819 esac |
17820 sort
17822 sed '
17823 /^ac_cv_env_/b end
17824 t clear
17825 :clear
17826 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17827 t end
17828 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17829 :end' >>confcache
17830 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17831 if test -w "$cache_file"; then
17832 if test "x$cache_file" != "x/dev/null"; then
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17834 $as_echo "$as_me: updating cache $cache_file" >&6;}
17835 if test ! -f "$cache_file" || test -h "$cache_file"; then
17836 cat confcache >"$cache_file"
17837 else
17838 case $cache_file in #(
17839 */* | ?:*)
17840 mv -f confcache "$cache_file"$$ &&
17841 mv -f "$cache_file"$$ "$cache_file" ;; #(
17843 mv -f confcache "$cache_file" ;;
17844 esac
17847 else
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17849 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17852 rm -f confcache
17854 # Check whether --enable-werror was given.
17855 if test "${enable_werror+set}" = set; then :
17856 enableval=$enable_werror;
17859 # Add -Wall -Werror if we are using GCC.
17860 if test "x$GCC" = "xyes"; then :
17861 XCFLAGS="$XCFLAGS -Wall"
17863 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
17864 XCFLAGS="$XCFLAGS -Werror"
17867 XCFLAGS="$XCFLAGS $XPCFLAGS"
17869 # Add CET specific flags if CET is enabled
17870 # Check whether --enable-cet was given.
17871 if test "${enable_cet+set}" = set; then :
17872 enableval=$enable_cet;
17873 case "$enableval" in
17874 yes|no|auto) ;;
17875 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
17876 esac
17878 else
17879 enable_cet=auto
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
17884 $as_echo_n "checking for CET support... " >&6; }
17886 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
17887 case "$host" in
17888 i[34567]86-*-linux* | x86_64-*-linux*)
17889 case "$enable_cet" in
17890 auto)
17891 # Check if target supports multi-byte NOPs
17892 # and if compiler and assembler support CET insn.
17893 cet_save_CFLAGS="$CFLAGS"
17894 CFLAGS="$CFLAGS -fcf-protection"
17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h. */
17899 main ()
17902 #if !defined(__SSE2__)
17903 #error target does not support multi-byte NOPs
17904 #else
17905 asm ("setssbsy");
17906 #endif
17909 return 0;
17911 _ACEOF
17912 if ac_fn_c_try_compile "$LINENO"; then :
17913 enable_cet=yes
17914 else
17915 enable_cet=no
17917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17918 CFLAGS="$cet_save_CFLAGS"
17920 yes)
17921 # Check if assembler supports CET.
17922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17923 /* end confdefs.h. */
17926 main ()
17928 asm ("setssbsy");
17930 return 0;
17932 _ACEOF
17933 if ac_fn_c_try_compile "$LINENO"; then :
17935 else
17936 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
17938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17940 esac
17943 enable_cet=no
17945 esac
17946 if test x$enable_cet = xyes; then
17947 CET_FLAGS="-fcf-protection -mshstk"
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17949 $as_echo "yes" >&6; }
17950 else
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17952 $as_echo "no" >&6; }
17955 XCFLAGS="$XCFLAGS $CET_FLAGS"
17961 if test ${multilib} = yes; then
17962 multilib_arg="--enable-multilib"
17963 else
17964 multilib_arg=
17967 # Set up the set of libraries that we need to link against for libitm.
17968 # Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
17969 # which will force linkage against -lpthread (or equivalent for the system).
17970 # That's not 100% ideal, but about the best we can do easily.
17971 if test $enable_shared = yes; then
17972 link_itm="-litm %{static: $LIBS}"
17973 else
17974 link_itm="-litm $LIBS"
17978 if test "$ARCH" = arm; then
17979 ARCH_ARM_TRUE=
17980 ARCH_ARM_FALSE='#'
17981 else
17982 ARCH_ARM_TRUE='#'
17983 ARCH_ARM_FALSE=
17986 if test "$ARCH" = x86; then
17987 ARCH_X86_TRUE=
17988 ARCH_X86_FALSE='#'
17989 else
17990 ARCH_X86_TRUE='#'
17991 ARCH_X86_FALSE=
17994 if test "$libitm_cv_as_avx" = yes; then
17995 ARCH_X86_AVX_TRUE=
17996 ARCH_X86_AVX_FALSE='#'
17997 else
17998 ARCH_X86_AVX_TRUE='#'
17999 ARCH_X86_AVX_FALSE=
18002 if test $enable_linux_futex = yes; then
18003 ARCH_FUTEX_TRUE=
18004 ARCH_FUTEX_FALSE='#'
18005 else
18006 ARCH_FUTEX_TRUE='#'
18007 ARCH_FUTEX_FALSE=
18011 # Determine what GCC version number to use in filesystem paths.
18013 get_gcc_base_ver="cat"
18015 # Check whether --with-gcc-major-version-only was given.
18016 if test "${with_gcc_major_version_only+set}" = set; then :
18017 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
18018 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
18026 ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
18028 cat >confcache <<\_ACEOF
18029 # This file is a shell script that caches the results of configure
18030 # tests run on this system so they can be shared between configure
18031 # scripts and configure runs, see configure's option --config-cache.
18032 # It is not useful on other systems. If it contains results you don't
18033 # want to keep, you may remove or edit it.
18035 # config.status only pays attention to the cache file if you give it
18036 # the --recheck option to rerun configure.
18038 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18039 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18040 # following values.
18042 _ACEOF
18044 # The following way of writing the cache mishandles newlines in values,
18045 # but we know of no workaround that is simple, portable, and efficient.
18046 # So, we kill variables containing newlines.
18047 # Ultrix sh set writes to stderr and can't be redirected directly,
18048 # and sets the high bit in the cache file unless we assign to the vars.
18050 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18051 eval ac_val=\$$ac_var
18052 case $ac_val in #(
18053 *${as_nl}*)
18054 case $ac_var in #(
18055 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18056 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18057 esac
18058 case $ac_var in #(
18059 _ | IFS | as_nl) ;; #(
18060 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18061 *) { eval $ac_var=; unset $ac_var;} ;;
18062 esac ;;
18063 esac
18064 done
18066 (set) 2>&1 |
18067 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18068 *${as_nl}ac_space=\ *)
18069 # `set' does not quote correctly, so add quotes: double-quote
18070 # substitution turns \\\\ into \\, and sed turns \\ into \.
18071 sed -n \
18072 "s/'/'\\\\''/g;
18073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18074 ;; #(
18076 # `set' quotes correctly as required by POSIX, so do not add quotes.
18077 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18079 esac |
18080 sort
18082 sed '
18083 /^ac_cv_env_/b end
18084 t clear
18085 :clear
18086 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18087 t end
18088 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18089 :end' >>confcache
18090 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18091 if test -w "$cache_file"; then
18092 if test "x$cache_file" != "x/dev/null"; then
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18094 $as_echo "$as_me: updating cache $cache_file" >&6;}
18095 if test ! -f "$cache_file" || test -h "$cache_file"; then
18096 cat confcache >"$cache_file"
18097 else
18098 case $cache_file in #(
18099 */* | ?:*)
18100 mv -f confcache "$cache_file"$$ &&
18101 mv -f "$cache_file"$$ "$cache_file" ;; #(
18103 mv -f confcache "$cache_file" ;;
18104 esac
18107 else
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18109 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18112 rm -f confcache
18114 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18115 # Let make expand exec_prefix.
18116 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18118 DEFS=-DHAVE_CONFIG_H
18120 ac_libobjs=
18121 ac_ltlibobjs=
18123 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18124 # 1. Remove the extension, and $U if already installed.
18125 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18126 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18127 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18128 # will be set to the directory where LIBOBJS objects are built.
18129 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18130 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18131 done
18132 LIBOBJS=$ac_libobjs
18134 LTLIBOBJS=$ac_ltlibobjs
18137 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
18138 as_fn_error $? "conditional \"GENINSRC\" was never defined.
18139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18142 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18143 if test -n "$am_sleep_pid"; then
18144 # Hide warnings about reused PIDs.
18145 wait $am_sleep_pid 2>/dev/null
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18148 $as_echo "done" >&6; }
18149 if test -n "$EXEEXT"; then
18150 am__EXEEXT_TRUE=
18151 am__EXEEXT_FALSE='#'
18152 else
18153 am__EXEEXT_TRUE='#'
18154 am__EXEEXT_FALSE=
18157 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18158 as_fn_error $? "conditional \"AMDEP\" was never defined.
18159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18161 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18162 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18165 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18166 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18169 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
18170 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
18171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18173 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
18174 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
18175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18177 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18178 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18182 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
18183 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
18184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18186 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
18187 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
18188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18190 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
18191 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
18192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18194 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
18195 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
18196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18198 if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
18199 as_fn_error $? "conditional \"ARCH_ARM\" was never defined.
18200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18202 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
18203 as_fn_error $? "conditional \"ARCH_X86\" was never defined.
18204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18206 if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
18207 as_fn_error $? "conditional \"ARCH_X86_AVX\" was never defined.
18208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18210 if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
18211 as_fn_error $? "conditional \"ARCH_FUTEX\" was never defined.
18212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18215 : "${CONFIG_STATUS=./config.status}"
18216 ac_write_fail=0
18217 ac_clean_files_save=$ac_clean_files
18218 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18220 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18221 as_write_fail=0
18222 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18223 #! $SHELL
18224 # Generated by $as_me.
18225 # Run this file to recreate the current configuration.
18226 # Compiler output produced by configure, useful for debugging
18227 # configure, is in config.log if it exists.
18229 debug=false
18230 ac_cs_recheck=false
18231 ac_cs_silent=false
18233 SHELL=\${CONFIG_SHELL-$SHELL}
18234 export SHELL
18235 _ASEOF
18236 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18237 ## -------------------- ##
18238 ## M4sh Initialization. ##
18239 ## -------------------- ##
18241 # Be more Bourne compatible
18242 DUALCASE=1; export DUALCASE # for MKS sh
18243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18244 emulate sh
18245 NULLCMD=:
18246 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18247 # is contrary to our usage. Disable this feature.
18248 alias -g '${1+"$@"}'='"$@"'
18249 setopt NO_GLOB_SUBST
18250 else
18251 case `(set -o) 2>/dev/null` in #(
18252 *posix*) :
18253 set -o posix ;; #(
18254 *) :
18256 esac
18260 as_nl='
18262 export as_nl
18263 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18264 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18265 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18266 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18267 # Prefer a ksh shell builtin over an external printf program on Solaris,
18268 # but without wasting forks for bash or zsh.
18269 if test -z "$BASH_VERSION$ZSH_VERSION" \
18270 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18271 as_echo='print -r --'
18272 as_echo_n='print -rn --'
18273 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18274 as_echo='printf %s\n'
18275 as_echo_n='printf %s'
18276 else
18277 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18278 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18279 as_echo_n='/usr/ucb/echo -n'
18280 else
18281 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18282 as_echo_n_body='eval
18283 arg=$1;
18284 case $arg in #(
18285 *"$as_nl"*)
18286 expr "X$arg" : "X\\(.*\\)$as_nl";
18287 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18288 esac;
18289 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18291 export as_echo_n_body
18292 as_echo_n='sh -c $as_echo_n_body as_echo'
18294 export as_echo_body
18295 as_echo='sh -c $as_echo_body as_echo'
18298 # The user is always right.
18299 if test "${PATH_SEPARATOR+set}" != set; then
18300 PATH_SEPARATOR=:
18301 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18302 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18303 PATH_SEPARATOR=';'
18308 # IFS
18309 # We need space, tab and new line, in precisely that order. Quoting is
18310 # there to prevent editors from complaining about space-tab.
18311 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18312 # splitting by setting IFS to empty value.)
18313 IFS=" "" $as_nl"
18315 # Find who we are. Look in the path if we contain no directory separator.
18316 as_myself=
18317 case $0 in #((
18318 *[\\/]* ) as_myself=$0 ;;
18319 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18320 for as_dir in $PATH
18322 IFS=$as_save_IFS
18323 test -z "$as_dir" && as_dir=.
18324 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18325 done
18326 IFS=$as_save_IFS
18329 esac
18330 # We did not find ourselves, most probably we were run as `sh COMMAND'
18331 # in which case we are not to be found in the path.
18332 if test "x$as_myself" = x; then
18333 as_myself=$0
18335 if test ! -f "$as_myself"; then
18336 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18337 exit 1
18340 # Unset variables that we do not need and which cause bugs (e.g. in
18341 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18342 # suppresses any "Segmentation fault" message there. '((' could
18343 # trigger a bug in pdksh 5.2.14.
18344 for as_var in BASH_ENV ENV MAIL MAILPATH
18345 do eval test x\${$as_var+set} = xset \
18346 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18347 done
18348 PS1='$ '
18349 PS2='> '
18350 PS4='+ '
18352 # NLS nuisances.
18353 LC_ALL=C
18354 export LC_ALL
18355 LANGUAGE=C
18356 export LANGUAGE
18358 # CDPATH.
18359 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18363 # ----------------------------------------
18364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18366 # script with STATUS, using 1 if that was 0.
18367 as_fn_error ()
18369 as_status=$1; test $as_status -eq 0 && as_status=1
18370 if test "$4"; then
18371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18374 $as_echo "$as_me: error: $2" >&2
18375 as_fn_exit $as_status
18376 } # as_fn_error
18379 # as_fn_set_status STATUS
18380 # -----------------------
18381 # Set $? to STATUS, without forking.
18382 as_fn_set_status ()
18384 return $1
18385 } # as_fn_set_status
18387 # as_fn_exit STATUS
18388 # -----------------
18389 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18390 as_fn_exit ()
18392 set +e
18393 as_fn_set_status $1
18394 exit $1
18395 } # as_fn_exit
18397 # as_fn_unset VAR
18398 # ---------------
18399 # Portably unset VAR.
18400 as_fn_unset ()
18402 { eval $1=; unset $1;}
18404 as_unset=as_fn_unset
18405 # as_fn_append VAR VALUE
18406 # ----------------------
18407 # Append the text in VALUE to the end of the definition contained in VAR. Take
18408 # advantage of any shell optimizations that allow amortized linear growth over
18409 # repeated appends, instead of the typical quadratic growth present in naive
18410 # implementations.
18411 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18412 eval 'as_fn_append ()
18414 eval $1+=\$2
18416 else
18417 as_fn_append ()
18419 eval $1=\$$1\$2
18421 fi # as_fn_append
18423 # as_fn_arith ARG...
18424 # ------------------
18425 # Perform arithmetic evaluation on the ARGs, and store the result in the
18426 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18427 # must be portable across $(()) and expr.
18428 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18429 eval 'as_fn_arith ()
18431 as_val=$(( $* ))
18433 else
18434 as_fn_arith ()
18436 as_val=`expr "$@" || test $? -eq 1`
18438 fi # as_fn_arith
18441 if expr a : '\(a\)' >/dev/null 2>&1 &&
18442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18443 as_expr=expr
18444 else
18445 as_expr=false
18448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18449 as_basename=basename
18450 else
18451 as_basename=false
18454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18455 as_dirname=dirname
18456 else
18457 as_dirname=false
18460 as_me=`$as_basename -- "$0" ||
18461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18462 X"$0" : 'X\(//\)$' \| \
18463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18464 $as_echo X/"$0" |
18465 sed '/^.*\/\([^/][^/]*\)\/*$/{
18466 s//\1/
18469 /^X\/\(\/\/\)$/{
18470 s//\1/
18473 /^X\/\(\/\).*/{
18474 s//\1/
18477 s/.*/./; q'`
18479 # Avoid depending upon Character Ranges.
18480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18483 as_cr_digits='0123456789'
18484 as_cr_alnum=$as_cr_Letters$as_cr_digits
18486 ECHO_C= ECHO_N= ECHO_T=
18487 case `echo -n x` in #(((((
18488 -n*)
18489 case `echo 'xy\c'` in
18490 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18491 xy) ECHO_C='\c';;
18492 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18493 ECHO_T=' ';;
18494 esac;;
18496 ECHO_N='-n';;
18497 esac
18499 rm -f conf$$ conf$$.exe conf$$.file
18500 if test -d conf$$.dir; then
18501 rm -f conf$$.dir/conf$$.file
18502 else
18503 rm -f conf$$.dir
18504 mkdir conf$$.dir 2>/dev/null
18506 if (echo >conf$$.file) 2>/dev/null; then
18507 if ln -s conf$$.file conf$$ 2>/dev/null; then
18508 as_ln_s='ln -s'
18509 # ... but there are two gotchas:
18510 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18511 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18512 # In both cases, we have to default to `cp -pR'.
18513 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18514 as_ln_s='cp -pR'
18515 elif ln conf$$.file conf$$ 2>/dev/null; then
18516 as_ln_s=ln
18517 else
18518 as_ln_s='cp -pR'
18520 else
18521 as_ln_s='cp -pR'
18523 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18524 rmdir conf$$.dir 2>/dev/null
18527 # as_fn_mkdir_p
18528 # -------------
18529 # Create "$as_dir" as a directory, including parents if necessary.
18530 as_fn_mkdir_p ()
18533 case $as_dir in #(
18534 -*) as_dir=./$as_dir;;
18535 esac
18536 test -d "$as_dir" || eval $as_mkdir_p || {
18537 as_dirs=
18538 while :; do
18539 case $as_dir in #(
18540 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18541 *) as_qdir=$as_dir;;
18542 esac
18543 as_dirs="'$as_qdir' $as_dirs"
18544 as_dir=`$as_dirname -- "$as_dir" ||
18545 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18546 X"$as_dir" : 'X\(//\)[^/]' \| \
18547 X"$as_dir" : 'X\(//\)$' \| \
18548 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18549 $as_echo X"$as_dir" |
18550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18551 s//\1/
18554 /^X\(\/\/\)[^/].*/{
18555 s//\1/
18558 /^X\(\/\/\)$/{
18559 s//\1/
18562 /^X\(\/\).*/{
18563 s//\1/
18566 s/.*/./; q'`
18567 test -d "$as_dir" && break
18568 done
18569 test -z "$as_dirs" || eval "mkdir $as_dirs"
18570 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18573 } # as_fn_mkdir_p
18574 if mkdir -p . 2>/dev/null; then
18575 as_mkdir_p='mkdir -p "$as_dir"'
18576 else
18577 test -d ./-p && rmdir ./-p
18578 as_mkdir_p=false
18582 # as_fn_executable_p FILE
18583 # -----------------------
18584 # Test if FILE is an executable regular file.
18585 as_fn_executable_p ()
18587 test -f "$1" && test -x "$1"
18588 } # as_fn_executable_p
18589 as_test_x='test -x'
18590 as_executable_p=as_fn_executable_p
18592 # Sed expression to map a string onto a valid CPP name.
18593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18595 # Sed expression to map a string onto a valid variable name.
18596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18599 exec 6>&1
18600 ## ----------------------------------- ##
18601 ## Main body of $CONFIG_STATUS script. ##
18602 ## ----------------------------------- ##
18603 _ASEOF
18604 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18607 # Save the log message, to keep $0 and so on meaningful, and to
18608 # report actual input values of CONFIG_FILES etc. instead of their
18609 # values after options handling.
18610 ac_log="
18611 This file was extended by GNU TM Runtime Library $as_me 1.0, which was
18612 generated by GNU Autoconf 2.69. Invocation command line was
18614 CONFIG_FILES = $CONFIG_FILES
18615 CONFIG_HEADERS = $CONFIG_HEADERS
18616 CONFIG_LINKS = $CONFIG_LINKS
18617 CONFIG_COMMANDS = $CONFIG_COMMANDS
18618 $ $0 $@
18620 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18623 _ACEOF
18625 case $ac_config_files in *"
18626 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18627 esac
18629 case $ac_config_headers in *"
18630 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18631 esac
18634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18635 # Files that config.status was made for.
18636 config_files="$ac_config_files"
18637 config_headers="$ac_config_headers"
18638 config_commands="$ac_config_commands"
18640 _ACEOF
18642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18643 ac_cs_usage="\
18644 \`$as_me' instantiates files and other configuration actions
18645 from templates according to the current configuration. Unless the files
18646 and actions are specified as TAGs, all are instantiated by default.
18648 Usage: $0 [OPTION]... [TAG]...
18650 -h, --help print this help, then exit
18651 -V, --version print version number and configuration settings, then exit
18652 --config print configuration, then exit
18653 -q, --quiet, --silent
18654 do not print progress messages
18655 -d, --debug don't remove temporary files
18656 --recheck update $as_me by reconfiguring in the same conditions
18657 --file=FILE[:TEMPLATE]
18658 instantiate the configuration file FILE
18659 --header=FILE[:TEMPLATE]
18660 instantiate the configuration header FILE
18662 Configuration files:
18663 $config_files
18665 Configuration headers:
18666 $config_headers
18668 Configuration commands:
18669 $config_commands
18671 Report bugs to the package provider.
18672 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
18673 General help using GNU software: <http://www.gnu.org/gethelp/>."
18675 _ACEOF
18676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18677 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18678 ac_cs_version="\\
18679 GNU TM Runtime Library config.status 1.0
18680 configured by $0, generated by GNU Autoconf 2.69,
18681 with options \\"\$ac_cs_config\\"
18683 Copyright (C) 2012 Free Software Foundation, Inc.
18684 This config.status script is free software; the Free Software Foundation
18685 gives unlimited permission to copy, distribute and modify it."
18687 ac_pwd='$ac_pwd'
18688 srcdir='$srcdir'
18689 INSTALL='$INSTALL'
18690 MKDIR_P='$MKDIR_P'
18691 AWK='$AWK'
18692 test -n "\$AWK" || AWK=awk
18693 _ACEOF
18695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18696 # The default lists apply if the user does not specify any file.
18697 ac_need_defaults=:
18698 while test $# != 0
18700 case $1 in
18701 --*=?*)
18702 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18703 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18704 ac_shift=:
18706 --*=)
18707 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18708 ac_optarg=
18709 ac_shift=:
18712 ac_option=$1
18713 ac_optarg=$2
18714 ac_shift=shift
18716 esac
18718 case $ac_option in
18719 # Handling of the options.
18720 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18721 ac_cs_recheck=: ;;
18722 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18723 $as_echo "$ac_cs_version"; exit ;;
18724 --config | --confi | --conf | --con | --co | --c )
18725 $as_echo "$ac_cs_config"; exit ;;
18726 --debug | --debu | --deb | --de | --d | -d )
18727 debug=: ;;
18728 --file | --fil | --fi | --f )
18729 $ac_shift
18730 case $ac_optarg in
18731 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18732 '') as_fn_error $? "missing file argument" ;;
18733 esac
18734 as_fn_append CONFIG_FILES " '$ac_optarg'"
18735 ac_need_defaults=false;;
18736 --header | --heade | --head | --hea )
18737 $ac_shift
18738 case $ac_optarg in
18739 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18740 esac
18741 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18742 ac_need_defaults=false;;
18743 --he | --h)
18744 # Conflict between --help and --header
18745 as_fn_error $? "ambiguous option: \`$1'
18746 Try \`$0 --help' for more information.";;
18747 --help | --hel | -h )
18748 $as_echo "$ac_cs_usage"; exit ;;
18749 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18750 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18751 ac_cs_silent=: ;;
18753 # This is an error.
18754 -*) as_fn_error $? "unrecognized option: \`$1'
18755 Try \`$0 --help' for more information." ;;
18757 *) as_fn_append ac_config_targets " $1"
18758 ac_need_defaults=false ;;
18760 esac
18761 shift
18762 done
18764 ac_configure_extra_args=
18766 if $ac_cs_silent; then
18767 exec 6>/dev/null
18768 ac_configure_extra_args="$ac_configure_extra_args --silent"
18771 _ACEOF
18772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18773 if \$ac_cs_recheck; then
18774 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18775 shift
18776 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18777 CONFIG_SHELL='$SHELL'
18778 export CONFIG_SHELL
18779 exec "\$@"
18782 _ACEOF
18783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18784 exec 5>>config.log
18786 echo
18787 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18788 ## Running $as_me. ##
18789 _ASBOX
18790 $as_echo "$ac_log"
18791 } >&5
18793 _ACEOF
18794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18796 # INIT-COMMANDS
18799 srcdir="$srcdir"
18800 host="$host"
18801 target="$target"
18802 with_multisubdir="$with_multisubdir"
18803 with_multisrctop="$with_multisrctop"
18804 with_target_subdir="$with_target_subdir"
18805 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18806 multi_basedir="$multi_basedir"
18807 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18808 CC="$CC"
18809 CXX="$CXX"
18810 GFORTRAN="$GFORTRAN"
18811 GDC="$GDC"
18812 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18815 # The HP-UX ksh and POSIX shell print the target directory to stdout
18816 # if CDPATH is set.
18817 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18819 sed_quote_subst='$sed_quote_subst'
18820 double_quote_subst='$double_quote_subst'
18821 delay_variable_subst='$delay_variable_subst'
18822 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18823 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18824 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18825 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18826 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18827 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18828 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18829 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18830 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18831 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18832 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18833 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18834 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18835 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18836 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18837 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18838 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18839 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18840 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18841 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18842 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18843 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18844 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18845 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18846 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18847 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18848 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18849 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18850 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18851 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18852 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18853 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18854 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18855 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18856 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18857 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18858 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18859 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18860 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18861 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18862 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18863 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18864 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18865 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18866 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18867 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18868 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18869 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18870 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"`'
18871 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18872 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18873 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18874 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18875 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18876 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18877 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18878 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18879 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18880 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18881 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18882 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18883 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18884 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18885 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18886 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18887 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18888 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18889 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18890 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18891 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18892 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18893 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18894 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18895 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18896 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18897 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18898 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18899 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18900 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18901 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18902 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18903 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18904 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18905 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18906 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18907 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18908 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18909 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18910 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18911 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18912 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18913 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18914 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18915 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18916 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18917 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18918 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18919 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18920 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18921 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18922 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18923 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18924 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18925 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18926 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18927 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18928 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18929 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18930 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18931 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18932 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18933 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18934 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18935 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18936 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18937 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18938 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18939 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18940 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18941 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18942 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18943 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18944 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18945 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18946 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18947 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18948 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18949 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18950 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18951 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18952 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18953 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18954 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18955 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18956 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18957 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18958 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18959 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18960 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18961 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18962 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18963 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18964 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18965 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18966 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18967 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18968 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18969 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18970 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18971 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18972 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18973 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18974 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18975 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18976 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18977 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18978 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18979 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18980 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18981 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18982 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18983 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18984 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18985 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18986 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18987 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18988 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18989 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18990 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18991 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18992 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18993 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18994 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18995 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18996 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18998 LTCC='$LTCC'
18999 LTCFLAGS='$LTCFLAGS'
19000 compiler='$compiler_DEFAULT'
19002 # A function that is used when there is no print builtin or printf.
19003 func_fallback_echo ()
19005 eval 'cat <<_LTECHO_EOF
19007 _LTECHO_EOF'
19010 # Quote evaled strings.
19011 for var in SHELL \
19012 ECHO \
19013 SED \
19014 GREP \
19015 EGREP \
19016 FGREP \
19017 LD \
19018 NM \
19019 LN_S \
19020 lt_SP2NL \
19021 lt_NL2SP \
19022 reload_flag \
19023 OBJDUMP \
19024 deplibs_check_method \
19025 file_magic_cmd \
19026 AR \
19027 AR_FLAGS \
19028 STRIP \
19029 RANLIB \
19030 CC \
19031 CFLAGS \
19032 compiler \
19033 lt_cv_sys_global_symbol_pipe \
19034 lt_cv_sys_global_symbol_to_cdecl \
19035 lt_cv_sys_global_symbol_to_c_name_address \
19036 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19037 lt_prog_compiler_no_builtin_flag \
19038 lt_prog_compiler_wl \
19039 lt_prog_compiler_pic \
19040 lt_prog_compiler_static \
19041 lt_cv_prog_compiler_c_o \
19042 need_locks \
19043 DSYMUTIL \
19044 NMEDIT \
19045 LIPO \
19046 OTOOL \
19047 OTOOL64 \
19048 shrext_cmds \
19049 export_dynamic_flag_spec \
19050 whole_archive_flag_spec \
19051 compiler_needs_object \
19052 with_gnu_ld \
19053 allow_undefined_flag \
19054 no_undefined_flag \
19055 hardcode_libdir_flag_spec \
19056 hardcode_libdir_flag_spec_ld \
19057 hardcode_libdir_separator \
19058 fix_srcfile_path \
19059 exclude_expsyms \
19060 include_expsyms \
19061 file_list_spec \
19062 variables_saved_for_relink \
19063 libname_spec \
19064 library_names_spec \
19065 soname_spec \
19066 install_override_mode \
19067 finish_eval \
19068 old_striplib \
19069 striplib \
19070 compiler_lib_search_dirs \
19071 predep_objects \
19072 postdep_objects \
19073 predeps \
19074 postdeps \
19075 compiler_lib_search_path \
19076 LD_CXX \
19077 reload_flag_CXX \
19078 compiler_CXX \
19079 lt_prog_compiler_no_builtin_flag_CXX \
19080 lt_prog_compiler_wl_CXX \
19081 lt_prog_compiler_pic_CXX \
19082 lt_prog_compiler_static_CXX \
19083 lt_cv_prog_compiler_c_o_CXX \
19084 export_dynamic_flag_spec_CXX \
19085 whole_archive_flag_spec_CXX \
19086 compiler_needs_object_CXX \
19087 with_gnu_ld_CXX \
19088 allow_undefined_flag_CXX \
19089 no_undefined_flag_CXX \
19090 hardcode_libdir_flag_spec_CXX \
19091 hardcode_libdir_flag_spec_ld_CXX \
19092 hardcode_libdir_separator_CXX \
19093 fix_srcfile_path_CXX \
19094 exclude_expsyms_CXX \
19095 include_expsyms_CXX \
19096 file_list_spec_CXX \
19097 compiler_lib_search_dirs_CXX \
19098 predep_objects_CXX \
19099 postdep_objects_CXX \
19100 predeps_CXX \
19101 postdeps_CXX \
19102 compiler_lib_search_path_CXX; do
19103 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19104 *[\\\\\\\`\\"\\\$]*)
19105 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19108 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19110 esac
19111 done
19113 # Double-quote double-evaled strings.
19114 for var in reload_cmds \
19115 old_postinstall_cmds \
19116 old_postuninstall_cmds \
19117 old_archive_cmds \
19118 extract_expsyms_cmds \
19119 old_archive_from_new_cmds \
19120 old_archive_from_expsyms_cmds \
19121 archive_cmds \
19122 archive_expsym_cmds \
19123 module_cmds \
19124 module_expsym_cmds \
19125 export_symbols_cmds \
19126 prelink_cmds \
19127 postinstall_cmds \
19128 postuninstall_cmds \
19129 finish_cmds \
19130 sys_lib_search_path_spec \
19131 sys_lib_dlsearch_path_spec \
19132 reload_cmds_CXX \
19133 old_archive_cmds_CXX \
19134 old_archive_from_new_cmds_CXX \
19135 old_archive_from_expsyms_cmds_CXX \
19136 archive_cmds_CXX \
19137 archive_expsym_cmds_CXX \
19138 module_cmds_CXX \
19139 module_expsym_cmds_CXX \
19140 export_symbols_cmds_CXX \
19141 prelink_cmds_CXX; do
19142 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19143 *[\\\\\\\`\\"\\\$]*)
19144 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19147 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19149 esac
19150 done
19152 ac_aux_dir='$ac_aux_dir'
19153 xsi_shell='$xsi_shell'
19154 lt_shell_append='$lt_shell_append'
19156 # See if we are running on zsh, and set the options which allow our
19157 # commands through without removal of \ escapes INIT.
19158 if test -n "\${ZSH_VERSION+set}" ; then
19159 setopt NO_GLOB_SUBST
19163 PACKAGE='$PACKAGE'
19164 VERSION='$VERSION'
19165 TIMESTAMP='$TIMESTAMP'
19166 RM='$RM'
19167 ofile='$ofile'
19174 GCC="$GCC"
19175 CC="$CC"
19176 acx_cv_header_stdint="$acx_cv_header_stdint"
19177 acx_cv_type_int8_t="$acx_cv_type_int8_t"
19178 acx_cv_type_int16_t="$acx_cv_type_int16_t"
19179 acx_cv_type_int32_t="$acx_cv_type_int32_t"
19180 acx_cv_type_int64_t="$acx_cv_type_int64_t"
19181 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
19182 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
19183 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
19184 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
19185 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
19186 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
19187 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
19188 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
19189 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
19192 _ACEOF
19194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19196 # Handling of arguments.
19197 for ac_config_target in $ac_config_targets
19199 case $ac_config_target in
19200 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19201 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19202 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19203 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19204 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
19205 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19206 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
19207 "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
19209 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19210 esac
19211 done
19214 # If the user did not use the arguments to specify the items to instantiate,
19215 # then the envvar interface is used. Set only those that are not.
19216 # We use the long form for the default assignment because of an extremely
19217 # bizarre bug on SunOS 4.1.3.
19218 if $ac_need_defaults; then
19219 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19220 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19221 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19224 # Have a temporary directory for convenience. Make it in the build tree
19225 # simply because there is no reason against having it here, and in addition,
19226 # creating and moving files from /tmp can sometimes cause problems.
19227 # Hook for its removal unless debugging.
19228 # Note that there is a small window in which the directory will not be cleaned:
19229 # after its creation but before its name has been assigned to `$tmp'.
19230 $debug ||
19232 tmp= ac_tmp=
19233 trap 'exit_status=$?
19234 : "${ac_tmp:=$tmp}"
19235 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19237 trap 'as_fn_exit 1' 1 2 13 15
19239 # Create a (secure) tmp directory for tmp files.
19242 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19243 test -d "$tmp"
19244 } ||
19246 tmp=./conf$$-$RANDOM
19247 (umask 077 && mkdir "$tmp")
19248 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19249 ac_tmp=$tmp
19251 # Set up the scripts for CONFIG_FILES section.
19252 # No need to generate them if there are no CONFIG_FILES.
19253 # This happens for instance with `./config.status config.h'.
19254 if test -n "$CONFIG_FILES"; then
19257 ac_cr=`echo X | tr X '\015'`
19258 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19259 # But we know of no other shell where ac_cr would be empty at this
19260 # point, so we can use a bashism as a fallback.
19261 if test "x$ac_cr" = x; then
19262 eval ac_cr=\$\'\\r\'
19264 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19265 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19266 ac_cs_awk_cr='\\r'
19267 else
19268 ac_cs_awk_cr=$ac_cr
19271 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19272 _ACEOF
19276 echo "cat >conf$$subs.awk <<_ACEOF" &&
19277 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19278 echo "_ACEOF"
19279 } >conf$$subs.sh ||
19280 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19281 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19282 ac_delim='%!_!# '
19283 for ac_last_try in false false false false false :; do
19284 . ./conf$$subs.sh ||
19285 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19287 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19288 if test $ac_delim_n = $ac_delim_num; then
19289 break
19290 elif $ac_last_try; then
19291 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19292 else
19293 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19295 done
19296 rm -f conf$$subs.sh
19298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19299 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19300 _ACEOF
19301 sed -n '
19303 s/^/S["/; s/!.*/"]=/
19306 s/^[^!]*!//
19307 :repl
19308 t repl
19309 s/'"$ac_delim"'$//
19310 t delim
19313 s/\(.\{148\}\)..*/\1/
19314 t more1
19315 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19318 b repl
19319 :more1
19320 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19323 s/.\{148\}//
19324 t nl
19325 :delim
19327 s/\(.\{148\}\)..*/\1/
19328 t more2
19329 s/["\\]/\\&/g; s/^/"/; s/$/"/
19332 :more2
19333 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19336 s/.\{148\}//
19337 t delim
19338 ' <conf$$subs.awk | sed '
19339 /^[^""]/{
19341 s/\n//
19343 ' >>$CONFIG_STATUS || ac_write_fail=1
19344 rm -f conf$$subs.awk
19345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19346 _ACAWK
19347 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19348 for (key in S) S_is_set[key] = 1
19349 FS = "\a"
19353 line = $ 0
19354 nfields = split(line, field, "@")
19355 substed = 0
19356 len = length(field[1])
19357 for (i = 2; i < nfields; i++) {
19358 key = field[i]
19359 keylen = length(key)
19360 if (S_is_set[key]) {
19361 value = S[key]
19362 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19363 len += length(value) + length(field[++i])
19364 substed = 1
19365 } else
19366 len += 1 + keylen
19369 print line
19372 _ACAWK
19373 _ACEOF
19374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19375 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19376 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19377 else
19379 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19380 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19381 _ACEOF
19383 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19384 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19385 # trailing colons and then remove the whole line if VPATH becomes empty
19386 # (actually we leave an empty line to preserve line numbers).
19387 if test "x$srcdir" = x.; then
19388 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19390 s///
19391 s/^/:/
19392 s/[ ]*$/:/
19393 s/:\$(srcdir):/:/g
19394 s/:\${srcdir}:/:/g
19395 s/:@srcdir@:/:/g
19396 s/^:*//
19397 s/:*$//
19399 s/\(=[ ]*\).*/\1/
19401 s/\n//
19402 s/^[^=]*=[ ]*$//
19406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19407 fi # test -n "$CONFIG_FILES"
19409 # Set up the scripts for CONFIG_HEADERS section.
19410 # No need to generate them if there are no CONFIG_HEADERS.
19411 # This happens for instance with `./config.status Makefile'.
19412 if test -n "$CONFIG_HEADERS"; then
19413 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19414 BEGIN {
19415 _ACEOF
19417 # Transform confdefs.h into an awk script `defines.awk', embedded as
19418 # here-document in config.status, that substitutes the proper values into
19419 # config.h.in to produce config.h.
19421 # Create a delimiter string that does not exist in confdefs.h, to ease
19422 # handling of long lines.
19423 ac_delim='%!_!# '
19424 for ac_last_try in false false :; do
19425 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19426 if test -z "$ac_tt"; then
19427 break
19428 elif $ac_last_try; then
19429 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19430 else
19431 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19433 done
19435 # For the awk script, D is an array of macro values keyed by name,
19436 # likewise P contains macro parameters if any. Preserve backslash
19437 # newline sequences.
19439 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19440 sed -n '
19441 s/.\{148\}/&'"$ac_delim"'/g
19442 t rset
19443 :rset
19444 s/^[ ]*#[ ]*define[ ][ ]*/ /
19445 t def
19447 :def
19448 s/\\$//
19449 t bsnl
19450 s/["\\]/\\&/g
19451 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19452 D["\1"]=" \3"/p
19453 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19455 :bsnl
19456 s/["\\]/\\&/g
19457 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19458 D["\1"]=" \3\\\\\\n"\\/p
19459 t cont
19460 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19461 t cont
19463 :cont
19465 s/.\{148\}/&'"$ac_delim"'/g
19466 t clear
19467 :clear
19468 s/\\$//
19469 t bsnlc
19470 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19472 :bsnlc
19473 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19474 b cont
19475 ' <confdefs.h | sed '
19476 s/'"$ac_delim"'/"\\\
19477 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19480 for (key in D) D_is_set[key] = 1
19481 FS = "\a"
19483 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19484 line = \$ 0
19485 split(line, arg, " ")
19486 if (arg[1] == "#") {
19487 defundef = arg[2]
19488 mac1 = arg[3]
19489 } else {
19490 defundef = substr(arg[1], 2)
19491 mac1 = arg[2]
19493 split(mac1, mac2, "(") #)
19494 macro = mac2[1]
19495 prefix = substr(line, 1, index(line, defundef) - 1)
19496 if (D_is_set[macro]) {
19497 # Preserve the white space surrounding the "#".
19498 print prefix "define", macro P[macro] D[macro]
19499 next
19500 } else {
19501 # Replace #undef with comments. This is necessary, for example,
19502 # in the case of _POSIX_SOURCE, which is predefined and required
19503 # on some systems where configure will not decide to define it.
19504 if (defundef == "undef") {
19505 print "/*", prefix defundef, macro, "*/"
19506 next
19510 { print }
19511 _ACAWK
19512 _ACEOF
19513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19514 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19515 fi # test -n "$CONFIG_HEADERS"
19518 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19519 shift
19520 for ac_tag
19522 case $ac_tag in
19523 :[FHLC]) ac_mode=$ac_tag; continue;;
19524 esac
19525 case $ac_mode$ac_tag in
19526 :[FHL]*:*);;
19527 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19528 :[FH]-) ac_tag=-:-;;
19529 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19530 esac
19531 ac_save_IFS=$IFS
19532 IFS=:
19533 set x $ac_tag
19534 IFS=$ac_save_IFS
19535 shift
19536 ac_file=$1
19537 shift
19539 case $ac_mode in
19540 :L) ac_source=$1;;
19541 :[FH])
19542 ac_file_inputs=
19543 for ac_f
19545 case $ac_f in
19546 -) ac_f="$ac_tmp/stdin";;
19547 *) # Look for the file first in the build tree, then in the source tree
19548 # (if the path is not absolute). The absolute path cannot be DOS-style,
19549 # because $ac_f cannot contain `:'.
19550 test -f "$ac_f" ||
19551 case $ac_f in
19552 [\\/$]*) false;;
19553 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19554 esac ||
19555 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19556 esac
19557 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19558 as_fn_append ac_file_inputs " '$ac_f'"
19559 done
19561 # Let's still pretend it is `configure' which instantiates (i.e., don't
19562 # use $as_me), people would be surprised to read:
19563 # /* config.h. Generated by config.status. */
19564 configure_input='Generated from '`
19565 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19566 `' by configure.'
19567 if test x"$ac_file" != x-; then
19568 configure_input="$ac_file. $configure_input"
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19570 $as_echo "$as_me: creating $ac_file" >&6;}
19572 # Neutralize special characters interpreted by sed in replacement strings.
19573 case $configure_input in #(
19574 *\&* | *\|* | *\\* )
19575 ac_sed_conf_input=`$as_echo "$configure_input" |
19576 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19577 *) ac_sed_conf_input=$configure_input;;
19578 esac
19580 case $ac_tag in
19581 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19582 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19583 esac
19585 esac
19587 ac_dir=`$as_dirname -- "$ac_file" ||
19588 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19589 X"$ac_file" : 'X\(//\)[^/]' \| \
19590 X"$ac_file" : 'X\(//\)$' \| \
19591 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19592 $as_echo X"$ac_file" |
19593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19594 s//\1/
19597 /^X\(\/\/\)[^/].*/{
19598 s//\1/
19601 /^X\(\/\/\)$/{
19602 s//\1/
19605 /^X\(\/\).*/{
19606 s//\1/
19609 s/.*/./; q'`
19610 as_dir="$ac_dir"; as_fn_mkdir_p
19611 ac_builddir=.
19613 case "$ac_dir" in
19614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19617 # A ".." for each directory in $ac_dir_suffix.
19618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19619 case $ac_top_builddir_sub in
19620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19622 esac ;;
19623 esac
19624 ac_abs_top_builddir=$ac_pwd
19625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19626 # for backward compatibility:
19627 ac_top_builddir=$ac_top_build_prefix
19629 case $srcdir in
19630 .) # We are building in place.
19631 ac_srcdir=.
19632 ac_top_srcdir=$ac_top_builddir_sub
19633 ac_abs_top_srcdir=$ac_pwd ;;
19634 [\\/]* | ?:[\\/]* ) # Absolute name.
19635 ac_srcdir=$srcdir$ac_dir_suffix;
19636 ac_top_srcdir=$srcdir
19637 ac_abs_top_srcdir=$srcdir ;;
19638 *) # Relative name.
19639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19640 ac_top_srcdir=$ac_top_build_prefix$srcdir
19641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19642 esac
19643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19646 case $ac_mode in
19649 # CONFIG_FILE
19652 case $INSTALL in
19653 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19654 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19655 esac
19656 ac_MKDIR_P=$MKDIR_P
19657 case $MKDIR_P in
19658 [\\/$]* | ?:[\\/]* ) ;;
19659 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19660 esac
19661 _ACEOF
19663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19664 # If the template does not know about datarootdir, expand it.
19665 # FIXME: This hack should be removed a few years after 2.60.
19666 ac_datarootdir_hack=; ac_datarootdir_seen=
19667 ac_sed_dataroot='
19668 /datarootdir/ {
19672 /@datadir@/p
19673 /@docdir@/p
19674 /@infodir@/p
19675 /@localedir@/p
19676 /@mandir@/p'
19677 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19678 *datarootdir*) ac_datarootdir_seen=yes;;
19679 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19681 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19682 _ACEOF
19683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19684 ac_datarootdir_hack='
19685 s&@datadir@&$datadir&g
19686 s&@docdir@&$docdir&g
19687 s&@infodir@&$infodir&g
19688 s&@localedir@&$localedir&g
19689 s&@mandir@&$mandir&g
19690 s&\\\${datarootdir}&$datarootdir&g' ;;
19691 esac
19692 _ACEOF
19694 # Neutralize VPATH when `$srcdir' = `.'.
19695 # Shell code in configure.ac might set extrasub.
19696 # FIXME: do we really want to maintain this feature?
19697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19698 ac_sed_extra="$ac_vpsub
19699 $extrasub
19700 _ACEOF
19701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19703 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19704 s|@configure_input@|$ac_sed_conf_input|;t t
19705 s&@top_builddir@&$ac_top_builddir_sub&;t t
19706 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19707 s&@srcdir@&$ac_srcdir&;t t
19708 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19709 s&@top_srcdir@&$ac_top_srcdir&;t t
19710 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19711 s&@builddir@&$ac_builddir&;t t
19712 s&@abs_builddir@&$ac_abs_builddir&;t t
19713 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19714 s&@INSTALL@&$ac_INSTALL&;t t
19715 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19716 $ac_datarootdir_hack
19718 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19719 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19721 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19722 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19723 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19724 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19726 which seems to be undefined. Please make sure it is defined" >&5
19727 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19728 which seems to be undefined. Please make sure it is defined" >&2;}
19730 rm -f "$ac_tmp/stdin"
19731 case $ac_file in
19732 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19733 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19734 esac \
19735 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19739 # CONFIG_HEADER
19741 if test x"$ac_file" != x-; then
19743 $as_echo "/* $configure_input */" \
19744 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19745 } >"$ac_tmp/config.h" \
19746 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19747 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19749 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19750 else
19751 rm -f "$ac_file"
19752 mv "$ac_tmp/config.h" "$ac_file" \
19753 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19755 else
19756 $as_echo "/* $configure_input */" \
19757 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19758 || as_fn_error $? "could not create -" "$LINENO" 5
19760 # Compute "$ac_file"'s index in $config_headers.
19761 _am_arg="$ac_file"
19762 _am_stamp_count=1
19763 for _am_header in $config_headers :; do
19764 case $_am_header in
19765 $_am_arg | $_am_arg:* )
19766 break ;;
19768 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19769 esac
19770 done
19771 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19772 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19773 X"$_am_arg" : 'X\(//\)[^/]' \| \
19774 X"$_am_arg" : 'X\(//\)$' \| \
19775 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19776 $as_echo X"$_am_arg" |
19777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19778 s//\1/
19781 /^X\(\/\/\)[^/].*/{
19782 s//\1/
19785 /^X\(\/\/\)$/{
19786 s//\1/
19789 /^X\(\/\).*/{
19790 s//\1/
19793 s/.*/./; q'`/stamp-h$_am_stamp_count
19796 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19797 $as_echo "$as_me: executing $ac_file commands" >&6;}
19799 esac
19802 case $ac_file$ac_mode in
19803 "default-1":C)
19804 # Only add multilib support code if we just rebuilt the top-level
19805 # Makefile.
19806 case " $CONFIG_FILES " in
19807 *" Makefile "*)
19808 ac_file=Makefile . ${multi_basedir}/config-ml.in
19810 esac ;;
19811 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19812 # Older Autoconf quotes --file arguments for eval, but not when files
19813 # are listed without --file. Let's play safe and only enable the eval
19814 # if we detect the quoting.
19815 case $CONFIG_FILES in
19816 *\'*) eval set x "$CONFIG_FILES" ;;
19817 *) set x $CONFIG_FILES ;;
19818 esac
19819 shift
19820 for mf
19822 # Strip MF so we end up with the name of the file.
19823 mf=`echo "$mf" | sed -e 's/:.*$//'`
19824 # Check whether this is an Automake generated Makefile or not.
19825 # We used to match only the files named 'Makefile.in', but
19826 # some people rename them; so instead we look at the file content.
19827 # Grep'ing the first line is not enough: some people post-process
19828 # each Makefile.in and add a new line on top of each file to say so.
19829 # Grep'ing the whole file is not good either: AIX grep has a line
19830 # limit of 2048, but all sed's we know have understand at least 4000.
19831 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19832 dirpart=`$as_dirname -- "$mf" ||
19833 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19834 X"$mf" : 'X\(//\)[^/]' \| \
19835 X"$mf" : 'X\(//\)$' \| \
19836 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19837 $as_echo X"$mf" |
19838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19839 s//\1/
19842 /^X\(\/\/\)[^/].*/{
19843 s//\1/
19846 /^X\(\/\/\)$/{
19847 s//\1/
19850 /^X\(\/\).*/{
19851 s//\1/
19854 s/.*/./; q'`
19855 else
19856 continue
19858 # Extract the definition of DEPDIR, am__include, and am__quote
19859 # from the Makefile without running 'make'.
19860 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19861 test -z "$DEPDIR" && continue
19862 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19863 test -z "$am__include" && continue
19864 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19865 # Find all dependency output files, they are included files with
19866 # $(DEPDIR) in their names. We invoke sed twice because it is the
19867 # simplest approach to changing $(DEPDIR) to its actual value in the
19868 # expansion.
19869 for file in `sed -n "
19870 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19871 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19872 # Make sure the directory exists.
19873 test -f "$dirpart/$file" && continue
19874 fdir=`$as_dirname -- "$file" ||
19875 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19876 X"$file" : 'X\(//\)[^/]' \| \
19877 X"$file" : 'X\(//\)$' \| \
19878 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19879 $as_echo X"$file" |
19880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19881 s//\1/
19884 /^X\(\/\/\)[^/].*/{
19885 s//\1/
19888 /^X\(\/\/\)$/{
19889 s//\1/
19892 /^X\(\/\).*/{
19893 s//\1/
19896 s/.*/./; q'`
19897 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19898 # echo "creating $dirpart/$file"
19899 echo '# dummy' > "$dirpart/$file"
19900 done
19901 done
19904 "libtool":C)
19906 # See if we are running on zsh, and set the options which allow our
19907 # commands through without removal of \ escapes.
19908 if test -n "${ZSH_VERSION+set}" ; then
19909 setopt NO_GLOB_SUBST
19912 cfgfile="${ofile}T"
19913 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19914 $RM "$cfgfile"
19916 cat <<_LT_EOF >> "$cfgfile"
19917 #! $SHELL
19919 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19920 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19921 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19922 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19924 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19925 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19926 # Written by Gordon Matzigkeit, 1996
19928 # This file is part of GNU Libtool.
19930 # GNU Libtool is free software; you can redistribute it and/or
19931 # modify it under the terms of the GNU General Public License as
19932 # published by the Free Software Foundation; either version 2 of
19933 # the License, or (at your option) any later version.
19935 # As a special exception to the GNU General Public License,
19936 # if you distribute this file as part of a program or library that
19937 # is built using GNU Libtool, you may include this file under the
19938 # same distribution terms that you use for the rest of that program.
19940 # GNU Libtool is distributed in the hope that it will be useful,
19941 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19942 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19943 # GNU General Public License for more details.
19945 # You should have received a copy of the GNU General Public License
19946 # along with GNU Libtool; see the file COPYING. If not, a copy
19947 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19948 # obtained by writing to the Free Software Foundation, Inc.,
19949 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19952 # The names of the tagged configurations supported by this script.
19953 available_tags="CXX "
19955 # ### BEGIN LIBTOOL CONFIG
19957 # Which release of libtool.m4 was used?
19958 macro_version=$macro_version
19959 macro_revision=$macro_revision
19961 # Whether or not to build shared libraries.
19962 build_libtool_libs=$enable_shared
19964 # Whether or not to build static libraries.
19965 build_old_libs=$enable_static
19967 # What type of objects to build.
19968 pic_mode=$pic_mode
19970 # Whether or not to optimize for fast installation.
19971 fast_install=$enable_fast_install
19973 # Shell to use when invoking shell scripts.
19974 SHELL=$lt_SHELL
19976 # An echo program that protects backslashes.
19977 ECHO=$lt_ECHO
19979 # The host system.
19980 host_alias=$host_alias
19981 host=$host
19982 host_os=$host_os
19984 # The build system.
19985 build_alias=$build_alias
19986 build=$build
19987 build_os=$build_os
19989 # A sed program that does not truncate output.
19990 SED=$lt_SED
19992 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19993 Xsed="\$SED -e 1s/^X//"
19995 # A grep program that handles long lines.
19996 GREP=$lt_GREP
19998 # An ERE matcher.
19999 EGREP=$lt_EGREP
20001 # A literal string matcher.
20002 FGREP=$lt_FGREP
20004 # A BSD- or MS-compatible name lister.
20005 NM=$lt_NM
20007 # Whether we need soft or hard links.
20008 LN_S=$lt_LN_S
20010 # What is the maximum length of a command?
20011 max_cmd_len=$max_cmd_len
20013 # Object file suffix (normally "o").
20014 objext=$ac_objext
20016 # Executable file suffix (normally "").
20017 exeext=$exeext
20019 # whether the shell understands "unset".
20020 lt_unset=$lt_unset
20022 # turn spaces into newlines.
20023 SP2NL=$lt_lt_SP2NL
20025 # turn newlines into spaces.
20026 NL2SP=$lt_lt_NL2SP
20028 # An object symbol dumper.
20029 OBJDUMP=$lt_OBJDUMP
20031 # Method to check whether dependent libraries are shared objects.
20032 deplibs_check_method=$lt_deplibs_check_method
20034 # Command to use when deplibs_check_method == "file_magic".
20035 file_magic_cmd=$lt_file_magic_cmd
20037 # The archiver.
20038 AR=$lt_AR
20039 AR_FLAGS=$lt_AR_FLAGS
20041 # A symbol stripping program.
20042 STRIP=$lt_STRIP
20044 # Commands used to install an old-style archive.
20045 RANLIB=$lt_RANLIB
20046 old_postinstall_cmds=$lt_old_postinstall_cmds
20047 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20049 # Whether to use a lock for old archive extraction.
20050 lock_old_archive_extraction=$lock_old_archive_extraction
20052 # A C compiler.
20053 LTCC=$lt_CC
20055 # LTCC compiler flags.
20056 LTCFLAGS=$lt_CFLAGS
20058 # Take the output of nm and produce a listing of raw symbols and C names.
20059 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20061 # Transform the output of nm in a proper C declaration.
20062 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20064 # Transform the output of nm in a C name address pair.
20065 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20067 # Transform the output of nm in a C name address pair when lib prefix is needed.
20068 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20070 # The name of the directory that contains temporary libtool files.
20071 objdir=$objdir
20073 # Used to examine libraries when file_magic_cmd begins with "file".
20074 MAGIC_CMD=$MAGIC_CMD
20076 # Must we lock files when doing compilation?
20077 need_locks=$lt_need_locks
20079 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20080 DSYMUTIL=$lt_DSYMUTIL
20082 # Tool to change global to local symbols on Mac OS X.
20083 NMEDIT=$lt_NMEDIT
20085 # Tool to manipulate fat objects and archives on Mac OS X.
20086 LIPO=$lt_LIPO
20088 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20089 OTOOL=$lt_OTOOL
20091 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20092 OTOOL64=$lt_OTOOL64
20094 # Old archive suffix (normally "a").
20095 libext=$libext
20097 # Shared library suffix (normally ".so").
20098 shrext_cmds=$lt_shrext_cmds
20100 # The commands to extract the exported symbol list from a shared archive.
20101 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20103 # Variables whose values should be saved in libtool wrapper scripts and
20104 # restored at link time.
20105 variables_saved_for_relink=$lt_variables_saved_for_relink
20107 # Do we need the "lib" prefix for modules?
20108 need_lib_prefix=$need_lib_prefix
20110 # Do we need a version for libraries?
20111 need_version=$need_version
20113 # Library versioning type.
20114 version_type=$version_type
20116 # Shared library runtime path variable.
20117 runpath_var=$runpath_var
20119 # Shared library path variable.
20120 shlibpath_var=$shlibpath_var
20122 # Is shlibpath searched before the hard-coded library search path?
20123 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20125 # Format of library name prefix.
20126 libname_spec=$lt_libname_spec
20128 # List of archive names. First name is the real one, the rest are links.
20129 # The last name is the one that the linker finds with -lNAME
20130 library_names_spec=$lt_library_names_spec
20132 # The coded name of the library, if different from the real name.
20133 soname_spec=$lt_soname_spec
20135 # Permission mode override for installation of shared libraries.
20136 install_override_mode=$lt_install_override_mode
20138 # Command to use after installation of a shared archive.
20139 postinstall_cmds=$lt_postinstall_cmds
20141 # Command to use after uninstallation of a shared archive.
20142 postuninstall_cmds=$lt_postuninstall_cmds
20144 # Commands used to finish a libtool library installation in a directory.
20145 finish_cmds=$lt_finish_cmds
20147 # As "finish_cmds", except a single script fragment to be evaled but
20148 # not shown.
20149 finish_eval=$lt_finish_eval
20151 # Whether we should hardcode library paths into libraries.
20152 hardcode_into_libs=$hardcode_into_libs
20154 # Compile-time system search path for libraries.
20155 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20157 # Run-time system search path for libraries.
20158 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20160 # Whether dlopen is supported.
20161 dlopen_support=$enable_dlopen
20163 # Whether dlopen of programs is supported.
20164 dlopen_self=$enable_dlopen_self
20166 # Whether dlopen of statically linked programs is supported.
20167 dlopen_self_static=$enable_dlopen_self_static
20169 # Commands to strip libraries.
20170 old_striplib=$lt_old_striplib
20171 striplib=$lt_striplib
20174 # The linker used to build libraries.
20175 LD=$lt_LD
20177 # How to create reloadable object files.
20178 reload_flag=$lt_reload_flag
20179 reload_cmds=$lt_reload_cmds
20181 # Commands used to build an old-style archive.
20182 old_archive_cmds=$lt_old_archive_cmds
20184 # A language specific compiler.
20185 CC=$lt_compiler
20187 # Is the compiler the GNU compiler?
20188 with_gcc=$GCC
20190 # Compiler flag to turn off builtin functions.
20191 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20193 # How to pass a linker flag through the compiler.
20194 wl=$lt_lt_prog_compiler_wl
20196 # Additional compiler flags for building library objects.
20197 pic_flag=$lt_lt_prog_compiler_pic
20199 # Compiler flag to prevent dynamic linking.
20200 link_static_flag=$lt_lt_prog_compiler_static
20202 # Does compiler simultaneously support -c and -o options?
20203 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20205 # Whether or not to add -lc for building shared libraries.
20206 build_libtool_need_lc=$archive_cmds_need_lc
20208 # Whether or not to disallow shared libs when runtime libs are static.
20209 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20211 # Compiler flag to allow reflexive dlopens.
20212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20214 # Compiler flag to generate shared objects directly from archives.
20215 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20217 # Whether the compiler copes with passing no objects directly.
20218 compiler_needs_object=$lt_compiler_needs_object
20220 # Create an old-style archive from a shared archive.
20221 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20223 # Create a temporary old-style archive to link instead of a shared archive.
20224 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20226 # Commands used to build a shared archive.
20227 archive_cmds=$lt_archive_cmds
20228 archive_expsym_cmds=$lt_archive_expsym_cmds
20230 # Commands used to build a loadable module if different from building
20231 # a shared archive.
20232 module_cmds=$lt_module_cmds
20233 module_expsym_cmds=$lt_module_expsym_cmds
20235 # Whether we are building with GNU ld or not.
20236 with_gnu_ld=$lt_with_gnu_ld
20238 # Flag that allows shared libraries with undefined symbols to be built.
20239 allow_undefined_flag=$lt_allow_undefined_flag
20241 # Flag that enforces no undefined symbols.
20242 no_undefined_flag=$lt_no_undefined_flag
20244 # Flag to hardcode \$libdir into a binary during linking.
20245 # This must work even if \$libdir does not exist
20246 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20248 # If ld is used when linking, flag to hardcode \$libdir into a binary
20249 # during linking. This must work even if \$libdir does not exist.
20250 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20252 # Whether we need a single "-rpath" flag with a separated argument.
20253 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20255 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20256 # DIR into the resulting binary.
20257 hardcode_direct=$hardcode_direct
20259 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20260 # DIR into the resulting binary and the resulting library dependency is
20261 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20262 # library is relocated.
20263 hardcode_direct_absolute=$hardcode_direct_absolute
20265 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20266 # into the resulting binary.
20267 hardcode_minus_L=$hardcode_minus_L
20269 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20270 # into the resulting binary.
20271 hardcode_shlibpath_var=$hardcode_shlibpath_var
20273 # Set to "yes" if building a shared library automatically hardcodes DIR
20274 # into the library and all subsequent libraries and executables linked
20275 # against it.
20276 hardcode_automatic=$hardcode_automatic
20278 # Set to yes if linker adds runtime paths of dependent libraries
20279 # to runtime path list.
20280 inherit_rpath=$inherit_rpath
20282 # Whether libtool must link a program against all its dependency libraries.
20283 link_all_deplibs=$link_all_deplibs
20285 # Fix the shell variable \$srcfile for the compiler.
20286 fix_srcfile_path=$lt_fix_srcfile_path
20288 # Set to "yes" if exported symbols are required.
20289 always_export_symbols=$always_export_symbols
20291 # The commands to list exported symbols.
20292 export_symbols_cmds=$lt_export_symbols_cmds
20294 # Symbols that should not be listed in the preloaded symbols.
20295 exclude_expsyms=$lt_exclude_expsyms
20297 # Symbols that must always be exported.
20298 include_expsyms=$lt_include_expsyms
20300 # Commands necessary for linking programs (against libraries) with templates.
20301 prelink_cmds=$lt_prelink_cmds
20303 # Specify filename containing input files.
20304 file_list_spec=$lt_file_list_spec
20306 # How to hardcode a shared library path into an executable.
20307 hardcode_action=$hardcode_action
20309 # The directories searched by this compiler when creating a shared library.
20310 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20312 # Dependencies to place before and after the objects being linked to
20313 # create a shared library.
20314 predep_objects=$lt_predep_objects
20315 postdep_objects=$lt_postdep_objects
20316 predeps=$lt_predeps
20317 postdeps=$lt_postdeps
20319 # The library search path used internally by the compiler when linking
20320 # a shared library.
20321 compiler_lib_search_path=$lt_compiler_lib_search_path
20323 # ### END LIBTOOL CONFIG
20325 _LT_EOF
20327 case $host_os in
20328 aix3*)
20329 cat <<\_LT_EOF >> "$cfgfile"
20330 # AIX sometimes has problems with the GCC collect2 program. For some
20331 # reason, if we set the COLLECT_NAMES environment variable, the problems
20332 # vanish in a puff of smoke.
20333 if test "X${COLLECT_NAMES+set}" != Xset; then
20334 COLLECT_NAMES=
20335 export COLLECT_NAMES
20337 _LT_EOF
20339 esac
20342 ltmain="$ac_aux_dir/ltmain.sh"
20345 # We use sed instead of cat because bash on DJGPP gets confused if
20346 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20347 # text mode, it properly converts lines to CR/LF. This bash problem
20348 # is reportedly fixed, but why not run on old versions too?
20349 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20350 || (rm -f "$cfgfile"; exit 1)
20352 case $xsi_shell in
20353 yes)
20354 cat << \_LT_EOF >> "$cfgfile"
20356 # func_dirname file append nondir_replacement
20357 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20358 # otherwise set result to NONDIR_REPLACEMENT.
20359 func_dirname ()
20361 case ${1} in
20362 */*) func_dirname_result="${1%/*}${2}" ;;
20363 * ) func_dirname_result="${3}" ;;
20364 esac
20367 # func_basename file
20368 func_basename ()
20370 func_basename_result="${1##*/}"
20373 # func_dirname_and_basename file append nondir_replacement
20374 # perform func_basename and func_dirname in a single function
20375 # call:
20376 # dirname: Compute the dirname of FILE. If nonempty,
20377 # add APPEND to the result, otherwise set result
20378 # to NONDIR_REPLACEMENT.
20379 # value returned in "$func_dirname_result"
20380 # basename: Compute filename of FILE.
20381 # value retuned in "$func_basename_result"
20382 # Implementation must be kept synchronized with func_dirname
20383 # and func_basename. For efficiency, we do not delegate to
20384 # those functions but instead duplicate the functionality here.
20385 func_dirname_and_basename ()
20387 case ${1} in
20388 */*) func_dirname_result="${1%/*}${2}" ;;
20389 * ) func_dirname_result="${3}" ;;
20390 esac
20391 func_basename_result="${1##*/}"
20394 # func_stripname prefix suffix name
20395 # strip PREFIX and SUFFIX off of NAME.
20396 # PREFIX and SUFFIX must not contain globbing or regex special
20397 # characters, hashes, percent signs, but SUFFIX may contain a leading
20398 # dot (in which case that matches only a dot).
20399 func_stripname ()
20401 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20402 # positional parameters, so assign one to ordinary parameter first.
20403 func_stripname_result=${3}
20404 func_stripname_result=${func_stripname_result#"${1}"}
20405 func_stripname_result=${func_stripname_result%"${2}"}
20408 # func_opt_split
20409 func_opt_split ()
20411 func_opt_split_opt=${1%%=*}
20412 func_opt_split_arg=${1#*=}
20415 # func_lo2o object
20416 func_lo2o ()
20418 case ${1} in
20419 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20420 *) func_lo2o_result=${1} ;;
20421 esac
20424 # func_xform libobj-or-source
20425 func_xform ()
20427 func_xform_result=${1%.*}.lo
20430 # func_arith arithmetic-term...
20431 func_arith ()
20433 func_arith_result=$(( $* ))
20436 # func_len string
20437 # STRING may not start with a hyphen.
20438 func_len ()
20440 func_len_result=${#1}
20443 _LT_EOF
20445 *) # Bourne compatible functions.
20446 cat << \_LT_EOF >> "$cfgfile"
20448 # func_dirname file append nondir_replacement
20449 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20450 # otherwise set result to NONDIR_REPLACEMENT.
20451 func_dirname ()
20453 # Extract subdirectory from the argument.
20454 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
20455 if test "X$func_dirname_result" = "X${1}"; then
20456 func_dirname_result="${3}"
20457 else
20458 func_dirname_result="$func_dirname_result${2}"
20462 # func_basename file
20463 func_basename ()
20465 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
20469 # func_stripname prefix suffix name
20470 # strip PREFIX and SUFFIX off of NAME.
20471 # PREFIX and SUFFIX must not contain globbing or regex special
20472 # characters, hashes, percent signs, but SUFFIX may contain a leading
20473 # dot (in which case that matches only a dot).
20474 # func_strip_suffix prefix name
20475 func_stripname ()
20477 case ${2} in
20478 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
20479 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
20480 esac
20483 # sed scripts:
20484 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20485 my_sed_long_arg='1s/^-[^=]*=//'
20487 # func_opt_split
20488 func_opt_split ()
20490 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
20491 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
20494 # func_lo2o object
20495 func_lo2o ()
20497 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
20500 # func_xform libobj-or-source
20501 func_xform ()
20503 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
20506 # func_arith arithmetic-term...
20507 func_arith ()
20509 func_arith_result=`expr "$@"`
20512 # func_len string
20513 # STRING may not start with a hyphen.
20514 func_len ()
20516 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20519 _LT_EOF
20520 esac
20522 case $lt_shell_append in
20523 yes)
20524 cat << \_LT_EOF >> "$cfgfile"
20526 # func_append var value
20527 # Append VALUE to the end of shell variable VAR.
20528 func_append ()
20530 eval "$1+=\$2"
20532 _LT_EOF
20535 cat << \_LT_EOF >> "$cfgfile"
20537 # func_append var value
20538 # Append VALUE to the end of shell variable VAR.
20539 func_append ()
20541 eval "$1=\$$1\$2"
20544 _LT_EOF
20546 esac
20549 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20550 || (rm -f "$cfgfile"; exit 1)
20552 mv -f "$cfgfile" "$ofile" ||
20553 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20554 chmod +x "$ofile"
20557 cat <<_LT_EOF >> "$ofile"
20559 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20561 # The linker used to build libraries.
20562 LD=$lt_LD_CXX
20564 # How to create reloadable object files.
20565 reload_flag=$lt_reload_flag_CXX
20566 reload_cmds=$lt_reload_cmds_CXX
20568 # Commands used to build an old-style archive.
20569 old_archive_cmds=$lt_old_archive_cmds_CXX
20571 # A language specific compiler.
20572 CC=$lt_compiler_CXX
20574 # Is the compiler the GNU compiler?
20575 with_gcc=$GCC_CXX
20577 # Compiler flag to turn off builtin functions.
20578 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20580 # How to pass a linker flag through the compiler.
20581 wl=$lt_lt_prog_compiler_wl_CXX
20583 # Additional compiler flags for building library objects.
20584 pic_flag=$lt_lt_prog_compiler_pic_CXX
20586 # Compiler flag to prevent dynamic linking.
20587 link_static_flag=$lt_lt_prog_compiler_static_CXX
20589 # Does compiler simultaneously support -c and -o options?
20590 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20592 # Whether or not to add -lc for building shared libraries.
20593 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20595 # Whether or not to disallow shared libs when runtime libs are static.
20596 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20598 # Compiler flag to allow reflexive dlopens.
20599 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20601 # Compiler flag to generate shared objects directly from archives.
20602 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20604 # Whether the compiler copes with passing no objects directly.
20605 compiler_needs_object=$lt_compiler_needs_object_CXX
20607 # Create an old-style archive from a shared archive.
20608 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20610 # Create a temporary old-style archive to link instead of a shared archive.
20611 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20613 # Commands used to build a shared archive.
20614 archive_cmds=$lt_archive_cmds_CXX
20615 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20617 # Commands used to build a loadable module if different from building
20618 # a shared archive.
20619 module_cmds=$lt_module_cmds_CXX
20620 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20622 # Whether we are building with GNU ld or not.
20623 with_gnu_ld=$lt_with_gnu_ld_CXX
20625 # Flag that allows shared libraries with undefined symbols to be built.
20626 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20628 # Flag that enforces no undefined symbols.
20629 no_undefined_flag=$lt_no_undefined_flag_CXX
20631 # Flag to hardcode \$libdir into a binary during linking.
20632 # This must work even if \$libdir does not exist
20633 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20635 # If ld is used when linking, flag to hardcode \$libdir into a binary
20636 # during linking. This must work even if \$libdir does not exist.
20637 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20639 # Whether we need a single "-rpath" flag with a separated argument.
20640 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20642 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20643 # DIR into the resulting binary.
20644 hardcode_direct=$hardcode_direct_CXX
20646 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20647 # DIR into the resulting binary and the resulting library dependency is
20648 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20649 # library is relocated.
20650 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20652 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20653 # into the resulting binary.
20654 hardcode_minus_L=$hardcode_minus_L_CXX
20656 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20657 # into the resulting binary.
20658 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20660 # Set to "yes" if building a shared library automatically hardcodes DIR
20661 # into the library and all subsequent libraries and executables linked
20662 # against it.
20663 hardcode_automatic=$hardcode_automatic_CXX
20665 # Set to yes if linker adds runtime paths of dependent libraries
20666 # to runtime path list.
20667 inherit_rpath=$inherit_rpath_CXX
20669 # Whether libtool must link a program against all its dependency libraries.
20670 link_all_deplibs=$link_all_deplibs_CXX
20672 # Fix the shell variable \$srcfile for the compiler.
20673 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20675 # Set to "yes" if exported symbols are required.
20676 always_export_symbols=$always_export_symbols_CXX
20678 # The commands to list exported symbols.
20679 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20681 # Symbols that should not be listed in the preloaded symbols.
20682 exclude_expsyms=$lt_exclude_expsyms_CXX
20684 # Symbols that must always be exported.
20685 include_expsyms=$lt_include_expsyms_CXX
20687 # Commands necessary for linking programs (against libraries) with templates.
20688 prelink_cmds=$lt_prelink_cmds_CXX
20690 # Specify filename containing input files.
20691 file_list_spec=$lt_file_list_spec_CXX
20693 # How to hardcode a shared library path into an executable.
20694 hardcode_action=$hardcode_action_CXX
20696 # The directories searched by this compiler when creating a shared library.
20697 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20699 # Dependencies to place before and after the objects being linked to
20700 # create a shared library.
20701 predep_objects=$lt_predep_objects_CXX
20702 postdep_objects=$lt_postdep_objects_CXX
20703 predeps=$lt_predeps_CXX
20704 postdeps=$lt_postdeps_CXX
20706 # The library search path used internally by the compiler when linking
20707 # a shared library.
20708 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20710 # ### END LIBTOOL TAG CONFIG: CXX
20711 _LT_EOF
20714 "gstdint.h":C)
20715 if test "$GCC" = yes; then
20716 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20717 else
20718 echo "/* generated for $CC */" > tmp-stdint.h
20721 sed 's/^ *//' >> tmp-stdint.h <<EOF
20723 #ifndef GCC_GENERATED_STDINT_H
20724 #define GCC_GENERATED_STDINT_H 1
20726 #include <sys/types.h>
20729 if test "$acx_cv_header_stdint" != stdint.h; then
20730 echo "#include <stddef.h>" >> tmp-stdint.h
20732 if test "$acx_cv_header_stdint" != stddef.h; then
20733 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20736 sed 's/^ *//' >> tmp-stdint.h <<EOF
20737 /* glibc uses these symbols as guards to prevent redefinitions. */
20738 #ifdef __int8_t_defined
20739 #define _INT8_T
20740 #define _INT16_T
20741 #define _INT32_T
20742 #endif
20743 #ifdef __uint32_t_defined
20744 #define _UINT32_T
20745 #endif
20749 # ----------------- done header, emit basic int types -------------
20750 if test "$acx_cv_header_stdint" = stddef.h; then
20751 sed 's/^ *//' >> tmp-stdint.h <<EOF
20753 #ifndef _UINT8_T
20754 #define _UINT8_T
20755 #ifndef __uint8_t_defined
20756 #define __uint8_t_defined
20757 #ifndef uint8_t
20758 typedef unsigned $acx_cv_type_int8_t uint8_t;
20759 #endif
20760 #endif
20761 #endif
20763 #ifndef _UINT16_T
20764 #define _UINT16_T
20765 #ifndef __uint16_t_defined
20766 #define __uint16_t_defined
20767 #ifndef uint16_t
20768 typedef unsigned $acx_cv_type_int16_t uint16_t;
20769 #endif
20770 #endif
20771 #endif
20773 #ifndef _UINT32_T
20774 #define _UINT32_T
20775 #ifndef __uint32_t_defined
20776 #define __uint32_t_defined
20777 #ifndef uint32_t
20778 typedef unsigned $acx_cv_type_int32_t uint32_t;
20779 #endif
20780 #endif
20781 #endif
20783 #ifndef _INT8_T
20784 #define _INT8_T
20785 #ifndef __int8_t_defined
20786 #define __int8_t_defined
20787 #ifndef int8_t
20788 typedef $acx_cv_type_int8_t int8_t;
20789 #endif
20790 #endif
20791 #endif
20793 #ifndef _INT16_T
20794 #define _INT16_T
20795 #ifndef __int16_t_defined
20796 #define __int16_t_defined
20797 #ifndef int16_t
20798 typedef $acx_cv_type_int16_t int16_t;
20799 #endif
20800 #endif
20801 #endif
20803 #ifndef _INT32_T
20804 #define _INT32_T
20805 #ifndef __int32_t_defined
20806 #define __int32_t_defined
20807 #ifndef int32_t
20808 typedef $acx_cv_type_int32_t int32_t;
20809 #endif
20810 #endif
20811 #endif
20813 elif test "$ac_cv_type_u_int32_t" = yes; then
20814 sed 's/^ *//' >> tmp-stdint.h <<EOF
20816 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20817 #ifndef _INT8_T
20818 #define _INT8_T
20819 #endif
20820 #ifndef _INT16_T
20821 #define _INT16_T
20822 #endif
20823 #ifndef _INT32_T
20824 #define _INT32_T
20825 #endif
20827 #ifndef _UINT8_T
20828 #define _UINT8_T
20829 #ifndef __uint8_t_defined
20830 #define __uint8_t_defined
20831 #ifndef uint8_t
20832 typedef u_int8_t uint8_t;
20833 #endif
20834 #endif
20835 #endif
20837 #ifndef _UINT16_T
20838 #define _UINT16_T
20839 #ifndef __uint16_t_defined
20840 #define __uint16_t_defined
20841 #ifndef uint16_t
20842 typedef u_int16_t uint16_t;
20843 #endif
20844 #endif
20845 #endif
20847 #ifndef _UINT32_T
20848 #define _UINT32_T
20849 #ifndef __uint32_t_defined
20850 #define __uint32_t_defined
20851 #ifndef uint32_t
20852 typedef u_int32_t uint32_t;
20853 #endif
20854 #endif
20855 #endif
20857 else
20858 sed 's/^ *//' >> tmp-stdint.h <<EOF
20860 /* Some systems have guard macros to prevent redefinitions, define them. */
20861 #ifndef _INT8_T
20862 #define _INT8_T
20863 #endif
20864 #ifndef _INT16_T
20865 #define _INT16_T
20866 #endif
20867 #ifndef _INT32_T
20868 #define _INT32_T
20869 #endif
20870 #ifndef _UINT8_T
20871 #define _UINT8_T
20872 #endif
20873 #ifndef _UINT16_T
20874 #define _UINT16_T
20875 #endif
20876 #ifndef _UINT32_T
20877 #define _UINT32_T
20878 #endif
20882 # ------------- done basic int types, emit int64_t types ------------
20883 if test "$ac_cv_type_uint64_t" = yes; then
20884 sed 's/^ *//' >> tmp-stdint.h <<EOF
20886 /* system headers have good uint64_t and int64_t */
20887 #ifndef _INT64_T
20888 #define _INT64_T
20889 #endif
20890 #ifndef _UINT64_T
20891 #define _UINT64_T
20892 #endif
20894 elif test "$ac_cv_type_u_int64_t" = yes; then
20895 sed 's/^ *//' >> tmp-stdint.h <<EOF
20897 /* system headers have an u_int64_t (and int64_t) */
20898 #ifndef _INT64_T
20899 #define _INT64_T
20900 #endif
20901 #ifndef _UINT64_T
20902 #define _UINT64_T
20903 #ifndef __uint64_t_defined
20904 #define __uint64_t_defined
20905 #ifndef uint64_t
20906 typedef u_int64_t uint64_t;
20907 #endif
20908 #endif
20909 #endif
20911 elif test -n "$acx_cv_type_int64_t"; then
20912 sed 's/^ *//' >> tmp-stdint.h <<EOF
20914 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20915 #ifndef _INT64_T
20916 #define _INT64_T
20917 #ifndef int64_t
20918 typedef $acx_cv_type_int64_t int64_t;
20919 #endif
20920 #endif
20921 #ifndef _UINT64_T
20922 #define _UINT64_T
20923 #ifndef __uint64_t_defined
20924 #define __uint64_t_defined
20925 #ifndef uint64_t
20926 typedef unsigned $acx_cv_type_int64_t uint64_t;
20927 #endif
20928 #endif
20929 #endif
20931 else
20932 sed 's/^ *//' >> tmp-stdint.h <<EOF
20934 /* some common heuristics for int64_t, using compiler-specific tests */
20935 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20936 #ifndef _INT64_T
20937 #define _INT64_T
20938 #ifndef __int64_t_defined
20939 #ifndef int64_t
20940 typedef long long int64_t;
20941 #endif
20942 #endif
20943 #endif
20944 #ifndef _UINT64_T
20945 #define _UINT64_T
20946 #ifndef uint64_t
20947 typedef unsigned long long uint64_t;
20948 #endif
20949 #endif
20951 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20952 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20953 does not implement __extension__. But that compiler doesn't define
20954 __GNUC_MINOR__. */
20955 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20956 # define __extension__
20957 # endif
20959 # ifndef _INT64_T
20960 # define _INT64_T
20961 # ifndef int64_t
20962 __extension__ typedef long long int64_t;
20963 # endif
20964 # endif
20965 # ifndef _UINT64_T
20966 # define _UINT64_T
20967 # ifndef uint64_t
20968 __extension__ typedef unsigned long long uint64_t;
20969 # endif
20970 # endif
20972 #elif !defined __STRICT_ANSI__
20973 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20975 # ifndef _INT64_T
20976 # define _INT64_T
20977 # ifndef int64_t
20978 typedef __int64 int64_t;
20979 # endif
20980 # endif
20981 # ifndef _UINT64_T
20982 # define _UINT64_T
20983 # ifndef uint64_t
20984 typedef unsigned __int64 uint64_t;
20985 # endif
20986 # endif
20987 # endif /* compiler */
20989 #endif /* ANSI version */
20993 # ------------- done int64_t types, emit intptr types ------------
20994 if test "$ac_cv_type_uintptr_t" != yes; then
20995 sed 's/^ *//' >> tmp-stdint.h <<EOF
20997 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20998 #ifndef __uintptr_t_defined
20999 #ifndef uintptr_t
21000 typedef u$acx_cv_type_intptr_t uintptr_t;
21001 #endif
21002 #endif
21003 #ifndef __intptr_t_defined
21004 #ifndef intptr_t
21005 typedef $acx_cv_type_intptr_t intptr_t;
21006 #endif
21007 #endif
21011 # ------------- done intptr types, emit int_least types ------------
21012 if test "$ac_cv_type_int_least32_t" != yes; then
21013 sed 's/^ *//' >> tmp-stdint.h <<EOF
21015 /* Define int_least types */
21016 typedef int8_t int_least8_t;
21017 typedef int16_t int_least16_t;
21018 typedef int32_t int_least32_t;
21019 #ifdef _INT64_T
21020 typedef int64_t int_least64_t;
21021 #endif
21023 typedef uint8_t uint_least8_t;
21024 typedef uint16_t uint_least16_t;
21025 typedef uint32_t uint_least32_t;
21026 #ifdef _UINT64_T
21027 typedef uint64_t uint_least64_t;
21028 #endif
21032 # ------------- done intptr types, emit int_fast types ------------
21033 if test "$ac_cv_type_int_fast32_t" != yes; then
21034 sed 's/^ *//' >> tmp-stdint.h <<EOF
21036 /* Define int_fast types. short is often slow */
21037 typedef int8_t int_fast8_t;
21038 typedef int int_fast16_t;
21039 typedef int32_t int_fast32_t;
21040 #ifdef _INT64_T
21041 typedef int64_t int_fast64_t;
21042 #endif
21044 typedef uint8_t uint_fast8_t;
21045 typedef unsigned int uint_fast16_t;
21046 typedef uint32_t uint_fast32_t;
21047 #ifdef _UINT64_T
21048 typedef uint64_t uint_fast64_t;
21049 #endif
21053 if test "$ac_cv_type_uintmax_t" != yes; then
21054 sed 's/^ *//' >> tmp-stdint.h <<EOF
21056 /* Define intmax based on what we found */
21057 #ifndef intmax_t
21058 #ifdef _INT64_T
21059 typedef int64_t intmax_t;
21060 #else
21061 typedef long intmax_t;
21062 #endif
21063 #endif
21064 #ifndef uintmax_t
21065 #ifdef _UINT64_T
21066 typedef uint64_t uintmax_t;
21067 #else
21068 typedef unsigned long uintmax_t;
21069 #endif
21070 #endif
21074 sed 's/^ *//' >> tmp-stdint.h <<EOF
21076 #endif /* GCC_GENERATED_STDINT_H */
21079 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
21080 rm -f tmp-stdint.h
21081 else
21082 mv -f tmp-stdint.h gstdint.h
21087 esac
21088 done # for ac_tag
21091 as_fn_exit 0
21092 _ACEOF
21093 ac_clean_files=$ac_clean_files_save
21095 test $ac_write_fail = 0 ||
21096 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21099 # configure is writing to config.log, and then calls config.status.
21100 # config.status does its own redirection, appending to config.log.
21101 # Unfortunately, on DOS this fails, as config.log is still kept open
21102 # by configure, so config.status won't be able to write to it; its
21103 # output is simply discarded. So we exec the FD to /dev/null,
21104 # effectively closing config.log, so it can be properly (re)opened and
21105 # appended to by config.status. When coming back to configure, we
21106 # need to make the FD available again.
21107 if test "$no_create" != yes; then
21108 ac_cs_success=:
21109 ac_config_status_args=
21110 test "$silent" = yes &&
21111 ac_config_status_args="$ac_config_status_args --quiet"
21112 exec 5>/dev/null
21113 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21114 exec 5>>config.log
21115 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21116 # would make configure fail if this is the last instruction.
21117 $ac_cs_success || as_fn_exit 1
21119 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21121 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}