]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/configure
re PR jit/85384 (libgccjit does not work if --with-gcc-major-version is used)
[thirdparty/gcc.git] / libitm / configure
CommitLineData
0a35513e
AH
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for GNU TM Runtime Library 1.0.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241 fi
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384else
385 as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390else
391 as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492else
493 as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='GNU TM Runtime Library'
558PACKAGE_TARNAME='libitm'
559PACKAGE_VERSION='1.0'
560PACKAGE_STRING='GNU TM Runtime Library 1.0'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL='http://www.gnu.org/software/libitm/'
563
564# Factoring default headers for most tests.
565ac_includes_default="\
566#include <stdio.h>
567#ifdef HAVE_SYS_TYPES_H
568# include <sys/types.h>
569#endif
570#ifdef HAVE_SYS_STAT_H
571# include <sys/stat.h>
572#endif
573#ifdef STDC_HEADERS
574# include <stdlib.h>
575# include <stddef.h>
576#else
577# ifdef HAVE_STDLIB_H
578# include <stdlib.h>
579# endif
580#endif
581#ifdef HAVE_STRING_H
582# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583# include <memory.h>
584# endif
585# include <string.h>
586#endif
587#ifdef HAVE_STRINGS_H
588# include <strings.h>
589#endif
590#ifdef HAVE_INTTYPES_H
591# include <inttypes.h>
592#endif
593#ifdef HAVE_STDINT_H
594# include <stdint.h>
595#endif
596#ifdef HAVE_UNISTD_H
597# include <unistd.h>
598#endif"
599
600ac_subst_vars='am__EXEEXT_FALSE
601am__EXEEXT_TRUE
602LTLIBOBJS
603LIBOBJS
3c36aa6b 604get_gcc_base_ver
0a35513e
AH
605ARCH_FUTEX_FALSE
606ARCH_FUTEX_TRUE
d4b17902
RH
607ARCH_X86_AVX_FALSE
608ARCH_X86_AVX_TRUE
0a35513e
AH
609ARCH_X86_FALSE
610ARCH_X86_TRUE
aebac0ca
RH
611ARCH_ARM_FALSE
612ARCH_ARM_TRUE
0a35513e
AH
613link_itm
614XLDFLAGS
615XCFLAGS
616config_path
adcd36bc
RO
617LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
618LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
619LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
620LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
0a35513e
AH
621LIBITM_BUILD_VERSIONED_SHLIB_FALSE
622LIBITM_BUILD_VERSIONED_SHLIB_TRUE
623OPT_LDFLAGS
624SECTION_LDFLAGS
9ce91011
RO
625HAVE_HWCAP_FALSE
626HAVE_HWCAP_TRUE
627HWCAP_LDFLAGS
0a35513e
AH
628libtool_VERSION
629MAINT
630MAINTAINER_MODE_FALSE
631MAINTAINER_MODE_TRUE
632enable_static
633enable_shared
634CXXCPP
635CPP
636OTOOL64
637OTOOL
638LIPO
639NMEDIT
640DSYMUTIL
641OBJDUMP
642LN_S
643ac_ct_DUMPBIN
644DUMPBIN
645LD
646FGREP
647EGREP
648GREP
649SED
650LIBTOOL
651BUILD_INFO_FALSE
652BUILD_INFO_TRUE
653PERL
654RANLIB
655NM
656AR
657am__fastdepCCAS_FALSE
658am__fastdepCCAS_TRUE
659CCASDEPMODE
660CCASFLAGS
661CCAS
662am__fastdepCXX_FALSE
663am__fastdepCXX_TRUE
664CXXDEPMODE
665ac_ct_CXX
666CXXFLAGS
667CXX
668am__fastdepCC_FALSE
669am__fastdepCC_TRUE
670CCDEPMODE
503902f9 671am__nodep
0a35513e
AH
672AMDEPBACKSLASH
673AMDEP_FALSE
674AMDEP_TRUE
675am__quote
676am__include
677DEPDIR
678OBJEXT
679EXEEXT
680ac_ct_CC
681CPPFLAGS
682LDFLAGS
683CFLAGS
684CC
685toolexeclibdir
686toolexecdir
687multi_basedir
688am__untar
689am__tar
690AMTAR
691am__leading_dot
692SET_MAKE
693AWK
694mkdir_p
695MKDIR_P
696INSTALL_STRIP_PROGRAM
697STRIP
698install_sh
699MAKEINFO
700AUTOHEADER
701AUTOMAKE
702AUTOCONF
703ACLOCAL
704VERSION
705PACKAGE
706CYGPATH_W
707am__isrc
708INSTALL_DATA
709INSTALL_SCRIPT
710INSTALL_PROGRAM
711target_os
712target_vendor
713target_cpu
714target
715host_os
716host_vendor
717host_cpu
718host
719build_os
720build_vendor
721build_cpu
722build
723GENINSRC_FALSE
724GENINSRC_TRUE
725target_alias
726host_alias
727build_alias
728LIBS
729ECHO_T
730ECHO_N
731ECHO_C
732DEFS
733mandir
734localedir
735libdir
736psdir
737pdfdir
738dvidir
739htmldir
740infodir
741docdir
742oldincludedir
743includedir
744localstatedir
745sharedstatedir
746sysconfdir
747datadir
748datarootdir
749libexecdir
750sbindir
751bindir
752program_transform_name
753prefix
754exec_prefix
755PACKAGE_URL
756PACKAGE_BUGREPORT
757PACKAGE_STRING
758PACKAGE_VERSION
759PACKAGE_TARNAME
760PACKAGE_NAME
761PATH_SEPARATOR
762SHELL'
763ac_subst_files=''
764ac_user_opts='
765enable_option_checking
766enable_version_specific_runtime_libs
767enable_generated_files_in_srcdir
768enable_multilib
769enable_dependency_tracking
770enable_shared
771enable_static
772with_pic
773enable_fast_install
774with_gnu_ld
775enable_libtool_lock
776enable_maintainer_mode
777enable_linux_futex
778enable_tls
779enable_symvers
c51081fc 780enable_cet
3c36aa6b 781with_gcc_major_version_only
0a35513e
AH
782'
783 ac_precious_vars='build_alias
784host_alias
785target_alias
786CPP
787CPPFLAGS
788CXXCPP'
789
790
791# Initialize some variables set by options.
792ac_init_help=
793ac_init_version=false
794ac_unrecognized_opts=
795ac_unrecognized_sep=
796# The variables have the same names as the options, with
797# dashes changed to underlines.
798cache_file=/dev/null
799exec_prefix=NONE
800no_create=
801no_recursion=
802prefix=NONE
803program_prefix=NONE
804program_suffix=NONE
805program_transform_name=s,x,x,
806silent=
807site=
808srcdir=
809verbose=
810x_includes=NONE
811x_libraries=NONE
812
813# Installation directory options.
814# These are left unexpanded so users can "make install exec_prefix=/foo"
815# and all the variables that are supposed to be based on exec_prefix
816# by default will actually change.
817# Use braces instead of parens because sh, perl, etc. also accept them.
818# (The list follows the same order as the GNU Coding Standards.)
819bindir='${exec_prefix}/bin'
820sbindir='${exec_prefix}/sbin'
821libexecdir='${exec_prefix}/libexec'
822datarootdir='${prefix}/share'
823datadir='${datarootdir}'
824sysconfdir='${prefix}/etc'
825sharedstatedir='${prefix}/com'
826localstatedir='${prefix}/var'
827includedir='${prefix}/include'
828oldincludedir='/usr/include'
829docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830infodir='${datarootdir}/info'
831htmldir='${docdir}'
832dvidir='${docdir}'
833pdfdir='${docdir}'
834psdir='${docdir}'
835libdir='${exec_prefix}/lib'
836localedir='${datarootdir}/locale'
837mandir='${datarootdir}/man'
838
839ac_prev=
840ac_dashdash=
841for ac_option
842do
843 # If the previous option needs an argument, assign it.
844 if test -n "$ac_prev"; then
845 eval $ac_prev=\$ac_option
846 ac_prev=
847 continue
848 fi
849
850 case $ac_option in
851 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 *) ac_optarg=yes ;;
853 esac
854
855 # Accept the important Cygnus configure options, so we can diagnose typos.
856
857 case $ac_dashdash$ac_option in
858 --)
859 ac_dashdash=yes ;;
860
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 ac_prev=bindir ;;
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 bindir=$ac_optarg ;;
865
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
870
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
877
878 --config-cache | -C)
879 cache_file=config.cache ;;
880
881 -datadir | --datadir | --datadi | --datad)
882 ac_prev=datadir ;;
883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
884 datadir=$ac_optarg ;;
885
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
892
893 -disable-* | --disable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902"enable_$ac_useropt"
903"*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=no ;;
908
909 -docdir | --docdir | --docdi | --doc | --do)
910 ac_prev=docdir ;;
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 docdir=$ac_optarg ;;
913
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915 ac_prev=dvidir ;;
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 dvidir=$ac_optarg ;;
918
919 -enable-* | --enable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928"enable_$ac_useropt"
929"*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=\$ac_optarg ;;
934
935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937 | --exec | --exe | --ex)
938 ac_prev=exec_prefix ;;
939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941 | --exec=* | --exe=* | --ex=*)
942 exec_prefix=$ac_optarg ;;
943
944 -gas | --gas | --ga | --g)
945 # Obsolete; use --with-gas.
946 with_gas=yes ;;
947
948 -help | --help | --hel | --he | -h)
949 ac_init_help=long ;;
950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951 ac_init_help=recursive ;;
952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953 ac_init_help=short ;;
954
955 -host | --host | --hos | --ho)
956 ac_prev=host_alias ;;
957 -host=* | --host=* | --hos=* | --ho=*)
958 host_alias=$ac_optarg ;;
959
960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 ac_prev=htmldir ;;
962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 | --ht=*)
964 htmldir=$ac_optarg ;;
965
966 -includedir | --includedir | --includedi | --included | --include \
967 | --includ | --inclu | --incl | --inc)
968 ac_prev=includedir ;;
969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970 | --includ=* | --inclu=* | --incl=* | --inc=*)
971 includedir=$ac_optarg ;;
972
973 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 ac_prev=infodir ;;
975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976 infodir=$ac_optarg ;;
977
978 -libdir | --libdir | --libdi | --libd)
979 ac_prev=libdir ;;
980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 libdir=$ac_optarg ;;
982
983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984 | --libexe | --libex | --libe)
985 ac_prev=libexecdir ;;
986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987 | --libexe=* | --libex=* | --libe=*)
988 libexecdir=$ac_optarg ;;
989
990 -localedir | --localedir | --localedi | --localed | --locale)
991 ac_prev=localedir ;;
992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993 localedir=$ac_optarg ;;
994
995 -localstatedir | --localstatedir | --localstatedi | --localstated \
996 | --localstate | --localstat | --localsta | --localst | --locals)
997 ac_prev=localstatedir ;;
998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000 localstatedir=$ac_optarg ;;
1001
1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 ac_prev=mandir ;;
1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005 mandir=$ac_optarg ;;
1006
1007 -nfp | --nfp | --nf)
1008 # Obsolete; use --without-fp.
1009 with_fp=no ;;
1010
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n)
1013 no_create=yes ;;
1014
1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 no_recursion=yes ;;
1018
1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021 | --oldin | --oldi | --old | --ol | --o)
1022 ac_prev=oldincludedir ;;
1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026 oldincludedir=$ac_optarg ;;
1027
1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 ac_prev=prefix ;;
1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031 prefix=$ac_optarg ;;
1032
1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034 | --program-pre | --program-pr | --program-p)
1035 ac_prev=program_prefix ;;
1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038 program_prefix=$ac_optarg ;;
1039
1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041 | --program-suf | --program-su | --program-s)
1042 ac_prev=program_suffix ;;
1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045 program_suffix=$ac_optarg ;;
1046
1047 -program-transform-name | --program-transform-name \
1048 | --program-transform-nam | --program-transform-na \
1049 | --program-transform-n | --program-transform- \
1050 | --program-transform | --program-transfor \
1051 | --program-transfo | --program-transf \
1052 | --program-trans | --program-tran \
1053 | --progr-tra | --program-tr | --program-t)
1054 ac_prev=program_transform_name ;;
1055 -program-transform-name=* | --program-transform-name=* \
1056 | --program-transform-nam=* | --program-transform-na=* \
1057 | --program-transform-n=* | --program-transform-=* \
1058 | --program-transform=* | --program-transfor=* \
1059 | --program-transfo=* | --program-transf=* \
1060 | --program-trans=* | --program-tran=* \
1061 | --progr-tra=* | --program-tr=* | --program-t=*)
1062 program_transform_name=$ac_optarg ;;
1063
1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 ac_prev=pdfdir ;;
1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067 pdfdir=$ac_optarg ;;
1068
1069 -psdir | --psdir | --psdi | --psd | --ps)
1070 ac_prev=psdir ;;
1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 psdir=$ac_optarg ;;
1073
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 silent=yes ;;
1077
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 ac_prev=sbindir ;;
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 | --sbi=* | --sb=*)
1082 sbindir=$ac_optarg ;;
1083
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1087 | --sha | --sh)
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 | --sha=* | --sh=*)
1093 sharedstatedir=$ac_optarg ;;
1094
1095 -site | --site | --sit)
1096 ac_prev=site ;;
1097 -site=* | --site=* | --sit=*)
1098 site=$ac_optarg ;;
1099
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 ac_prev=srcdir ;;
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1104
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1111
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1116
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 verbose=yes ;;
1119
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1122
1123 -with-* | --with-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132"with_$ac_useropt"
1133"*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=\$ac_optarg ;;
1138
1139 -without-* | --without-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148"with_$ac_useropt"
1149"*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=no ;;
1154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
1173 -*) as_fn_error "unrecognized option: \`$ac_option'
1174Try \`$0 --help' for more information."
1175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1183 esac
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193 ;;
1194
1195 esac
1196done
1197
1198if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error "missing argument to $ac_option"
1201fi
1202
1203if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1205 no) ;;
1206 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208 esac
1209fi
1210
1211# Check all directory arguments for consistency.
1212for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1216do
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1219 case $ac_val in
1220 */ )
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1223 esac
1224 # Be sure to have absolute directory names.
1225 case $ac_val in
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 esac
1229 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1230done
1231
1232# There might be people who depend on the old broken behavior: `$host'
1233# used to hold the argument of --host etc.
1234# FIXME: To remove some day.
1235build=$build_alias
1236host=$host_alias
1237target=$target_alias
1238
1239# FIXME: To remove some day.
1240if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244 If a cross compiler is detected then cross compile mode will be used." >&2
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1247 fi
1248fi
1249
1250ac_tool_prefix=
1251test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253test "$silent" = yes && exec 6>/dev/null
1254
1255
1256ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257ac_ls_di=`ls -di .` &&
1258ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error "working directory cannot be determined"
1260test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error "pwd does not report name of working directory"
1262
1263
1264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273$as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1294 fi
1295else
1296 ac_srcdir_defaulted=no
1297fi
1298if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1301fi
1302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1305 pwd)`
1306# When building in place, set srcdir=.
1307if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1309fi
1310# Remove unnecessary trailing slashes from srcdir.
1311# Double slashes in file names in object file debugging info
1312# mess up M-x gdb in Emacs.
1313case $srcdir in
1314*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315esac
1316for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321done
1322
1323#
1324# Report the --help message.
1325#
1326if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330\`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1331
1332Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335VAR=VALUE. See below for descriptions of some of the useful variables.
1336
1337Defaults for the options are specified in brackets.
1338
1339Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349
1350Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1355
1356By default, \`make install' will install all the files in
1357\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359for instance \`--prefix=\$HOME'.
1360
1361For better control, use the options below.
1362
1363Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383_ACEOF
1384
1385 cat <<\_ACEOF
1386
1387Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391
1392System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 --target=TARGET configure for building compilers for TARGET [HOST]
1396_ACEOF
1397fi
1398
1399if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1402 esac
1403 cat <<\_ACEOF
1404
1405Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-version-specific-runtime-libs
1410 Specify that runtime libraries should be installed
1411 in a compiler-specific directory [default=no]
1412 --enable-generated-files-in-srcdir
1413 put copies of generated files in source dir intended
1414 for creating source tarballs for users without
1415 texinfo bison or flex. [default=no]
1416 --enable-multilib build many library versions (default)
1417 --disable-dependency-tracking speeds up one-time build
1418 --enable-dependency-tracking do not reject slow dependency extractors
1419 --enable-shared[=PKGS] build shared libraries [default=yes]
1420 --enable-static[=PKGS] build static libraries [default=yes]
1421 --enable-fast-install[=PKGS]
1422 optimize for fast installation [default=yes]
1423 --disable-libtool-lock avoid locking (might break parallel builds)
1424 --enable-maintainer-mode enable make rules and dependencies not useful
1425 (and sometimes confusing) to the casual installer
1426 --enable-linux-futex use the Linux futex system call [default=default]
1427 --enable-tls Use thread-local storage [default=yes]
1428 --enable-symvers=STYLE enables symbol versioning of the shared library
1429 [default=yes]
c51081fc
IT
1430 --enable-cet enable Intel CET in target libraries
1431 [default=default]
0a35513e
AH
1432
1433Optional Packages:
1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1436 --with-pic try to use only PIC/non-PIC objects [default=use
1437 both]
1438 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3c36aa6b
JJ
1439 --with-gcc-major-version-only
1440 use only GCC major number in filesystem paths
0a35513e
AH
1441
1442Some influential environment variables:
1443 CC C compiler command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1446 nonstandard directory <lib dir>
1447 LIBS libraries to pass to the linker, e.g. -l<library>
1448 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1449 you have headers in a nonstandard directory <include dir>
1450 CXX C++ compiler command
1451 CXXFLAGS C++ compiler flags
1452 CCAS assembler compiler command (defaults to CC)
1453 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1454 CPP C preprocessor
1455 CXXCPP C++ preprocessor
1456
1457Use these variables to override the choices made by `configure' or to help
1458it to find libraries and programs with nonstandard names/locations.
1459
1460Report bugs to the package provider.
1461GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1462General help using GNU software: <http://www.gnu.org/gethelp/>.
1463_ACEOF
1464ac_status=$?
1465fi
1466
1467if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d "$ac_dir" ||
1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472 continue
1473 ac_builddir=.
1474
1475case "$ac_dir" in
1476.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477*)
1478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1479 # A ".." for each directory in $ac_dir_suffix.
1480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481 case $ac_top_builddir_sub in
1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484 esac ;;
1485esac
1486ac_abs_top_builddir=$ac_pwd
1487ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488# for backward compatibility:
1489ac_top_builddir=$ac_top_build_prefix
1490
1491case $srcdir in
1492 .) # We are building in place.
1493 ac_srcdir=.
1494 ac_top_srcdir=$ac_top_builddir_sub
1495 ac_abs_top_srcdir=$ac_pwd ;;
1496 [\\/]* | ?:[\\/]* ) # Absolute name.
1497 ac_srcdir=$srcdir$ac_dir_suffix;
1498 ac_top_srcdir=$srcdir
1499 ac_abs_top_srcdir=$srcdir ;;
1500 *) # Relative name.
1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502 ac_top_srcdir=$ac_top_build_prefix$srcdir
1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1504esac
1505ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1506
1507 cd "$ac_dir" || { ac_status=$?; continue; }
1508 # Check for guested configure.
1509 if test -f "$ac_srcdir/configure.gnu"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512 elif test -f "$ac_srcdir/configure"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure" --help=recursive
1515 else
1516 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517 fi || ac_status=$?
1518 cd "$ac_pwd" || { ac_status=$?; break; }
1519 done
1520fi
1521
1522test -n "$ac_init_help" && exit $ac_status
1523if $ac_init_version; then
1524 cat <<\_ACEOF
1525GNU TM Runtime Library configure 1.0
1526generated by GNU Autoconf 2.64
1527
1528Copyright (C) 2009 Free Software Foundation, Inc.
1529This configure script is free software; the Free Software Foundation
1530gives unlimited permission to copy, distribute and modify it.
1531_ACEOF
1532 exit
1533fi
1534
1535## ------------------------ ##
1536## Autoconf initialization. ##
1537## ------------------------ ##
1538
1539# ac_fn_c_try_compile LINENO
1540# --------------------------
1541# Try to compile conftest.$ac_ext, and return whether this succeeded.
1542ac_fn_c_try_compile ()
1543{
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext
1546 if { { ac_try="$ac_compile"
1547case "(($ac_try" in
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1550esac
1551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552$as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1554 ac_status=$?
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1559 fi
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.$ac_objext; then :
1565 ac_retval=0
1566else
1567 $as_echo "$as_me: failed program was:" >&5
1568sed 's/^/| /' conftest.$ac_ext >&5
1569
1570 ac_retval=1
1571fi
1572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1573 return $ac_retval
1574
1575} # ac_fn_c_try_compile
1576
1577# ac_fn_cxx_try_compile LINENO
1578# ----------------------------
1579# Try to compile conftest.$ac_ext, and return whether this succeeded.
1580ac_fn_cxx_try_compile ()
1581{
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext
1584 if { { ac_try="$ac_compile"
1585case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588esac
1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590$as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_cxx_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext; then :
1603 ac_retval=0
1604else
1605 $as_echo "$as_me: failed program was:" >&5
1606sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1
1609fi
1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1611 return $ac_retval
1612
1613} # ac_fn_cxx_try_compile
1614
1615# ac_fn_c_try_link LINENO
1616# -----------------------
1617# Try to link conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_c_try_link ()
1619{
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext conftest$ac_exeext
1622 if { { ac_try="$ac_link"
1623case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_link") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest$ac_exeext && {
1641 test "$cross_compiling" = yes ||
1642 $as_test_x conftest$ac_exeext
1643 }; then :
1644 ac_retval=0
1645else
1646 $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=1
1650fi
1651 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1652 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1653 # interfere with the next link command; also delete a directory that is
1654 # left behind by Apple's compiler. We do this before executing the actions.
1655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1657 return $ac_retval
1658
1659} # ac_fn_c_try_link
1660
1661# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1662# -------------------------------------------------------
1663# Tests whether HEADER exists and can be compiled using the include files in
1664# INCLUDES, setting the cache variable VAR accordingly.
1665ac_fn_c_check_header_compile ()
1666{
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669$as_echo_n "checking for $2... " >&6; }
1670if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1671 $as_echo_n "(cached) " >&6
1672else
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674/* end confdefs.h. */
1675$4
1676#include <$2>
1677_ACEOF
1678if ac_fn_c_try_compile "$LINENO"; then :
1679 eval "$3=yes"
1680else
1681 eval "$3=no"
1682fi
1683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684fi
1685eval ac_res=\$$3
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687$as_echo "$ac_res" >&6; }
1688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1689
1690} # ac_fn_c_check_header_compile
1691
1692# ac_fn_c_try_cpp LINENO
1693# ----------------------
1694# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695ac_fn_c_try_cpp ()
1696{
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_cpp conftest.$ac_ext"
1699case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } >/dev/null && {
1714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 }; then :
1717 ac_retval=0
1718else
1719 $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1
1723fi
1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725 return $ac_retval
1726
1727} # ac_fn_c_try_cpp
1728
1729# ac_fn_c_try_run LINENO
1730# ----------------------
1731# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1732# that executables *can* be run.
1733ac_fn_c_try_run ()
1734{
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_link"
1737case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1747 { { case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752$as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_try") 2>&5
1754 ac_status=$?
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; }; }; then :
1757 ac_retval=0
1758else
1759 $as_echo "$as_me: program exited with status $ac_status" >&5
1760 $as_echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=$ac_status
1764fi
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767 return $ac_retval
1768
1769} # ac_fn_c_try_run
1770
1771# ac_fn_c_check_func LINENO FUNC VAR
1772# ----------------------------------
1773# Tests whether FUNC exists, setting the cache variable VAR accordingly
1774ac_fn_c_check_func ()
1775{
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778$as_echo_n "checking for $2... " >&6; }
1779if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780 $as_echo_n "(cached) " >&6
1781else
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783/* end confdefs.h. */
1784/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1786#define $2 innocuous_$2
1787
1788/* System header to define __stub macros and hopefully few prototypes,
1789 which can conflict with char $2 (); below.
1790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791 <limits.h> exists even on freestanding compilers. */
1792
1793#ifdef __STDC__
1794# include <limits.h>
1795#else
1796# include <assert.h>
1797#endif
1798
1799#undef $2
1800
1801/* Override any GCC internal prototype to avoid an error.
1802 Use char because int might match the return type of a GCC
1803 builtin and then its argument prototype would still apply. */
1804#ifdef __cplusplus
1805extern "C"
1806#endif
1807char $2 ();
1808/* The GNU C library defines this for functions which it implements
1809 to always fail with ENOSYS. Some functions are actually named
1810 something starting with __ and the normal name is an alias. */
1811#if defined __stub_$2 || defined __stub___$2
1812choke me
1813#endif
1814
1815int
1816main ()
1817{
1818return $2 ();
1819 ;
1820 return 0;
1821}
1822_ACEOF
1823if ac_fn_c_try_link "$LINENO"; then :
1824 eval "$3=yes"
1825else
1826 eval "$3=no"
1827fi
1828rm -f core conftest.err conftest.$ac_objext \
1829 conftest$ac_exeext conftest.$ac_ext
1830fi
1831eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833$as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835
1836} # ac_fn_c_check_func
1837
1838# ac_fn_cxx_try_cpp LINENO
1839# ------------------------
1840# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1841ac_fn_cxx_try_cpp ()
1842{
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_cpp conftest.$ac_ext"
1845case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848esac
1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850$as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1857 fi
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } >/dev/null && {
1860 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1861 test ! -s conftest.err
1862 }; then :
1863 ac_retval=0
1864else
1865 $as_echo "$as_me: failed program was:" >&5
1866sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869fi
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 return $ac_retval
1872
1873} # ac_fn_cxx_try_cpp
1874
1875# ac_fn_cxx_try_link LINENO
1876# -------------------------
1877# Try to link conftest.$ac_ext, and return whether this succeeded.
1878ac_fn_cxx_try_link ()
1879{
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 rm -f conftest.$ac_objext conftest$ac_exeext
1882 if { { ac_try="$ac_link"
1883case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>conftest.err
1890 ac_status=$?
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1895 fi
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_cxx_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest$ac_exeext && {
1901 test "$cross_compiling" = yes ||
1902 $as_test_x conftest$ac_exeext
1903 }; then :
1904 ac_retval=0
1905else
1906 $as_echo "$as_me: failed program was:" >&5
1907sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 ac_retval=1
1910fi
1911 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913 # interfere with the next link command; also delete a directory that is
1914 # left behind by Apple's compiler. We do this before executing the actions.
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 return $ac_retval
1918
1919} # ac_fn_cxx_try_link
1920
1921# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1922# -------------------------------------------------------
1923# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1924# the include files in INCLUDES and setting the cache variable VAR
1925# accordingly.
1926ac_fn_c_check_header_mongrel ()
1927{
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931$as_echo_n "checking for $2... " >&6; }
1932if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1933 $as_echo_n "(cached) " >&6
1934fi
1935eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
1938else
1939 # Is the header compilable?
1940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1941$as_echo_n "checking $2 usability... " >&6; }
1942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h. */
1944$4
1945#include <$2>
1946_ACEOF
1947if ac_fn_c_try_compile "$LINENO"; then :
1948 ac_header_compiler=yes
1949else
1950 ac_header_compiler=no
1951fi
1952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1954$as_echo "$ac_header_compiler" >&6; }
1955
1956# Is the header present?
1957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1958$as_echo_n "checking $2 presence... " >&6; }
1959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h. */
1961#include <$2>
1962_ACEOF
1963if ac_fn_c_try_cpp "$LINENO"; then :
1964 ac_header_preproc=yes
1965else
1966 ac_header_preproc=no
1967fi
1968rm -f conftest.err conftest.$ac_ext
1969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1970$as_echo "$ac_header_preproc" >&6; }
1971
1972# So? What about this header?
1973case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1974 yes:no: )
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1976$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1978$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979 ;;
1980 no:yes:* )
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1982$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1984$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1986$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1988$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1990$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991 ;;
1992esac
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994$as_echo_n "checking for $2... " >&6; }
1995if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1996 $as_echo_n "(cached) " >&6
1997else
1998 eval "$3=\$ac_header_compiler"
1999fi
2000eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002$as_echo "$ac_res" >&6; }
2003fi
2004 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2005
2006} # ac_fn_c_check_header_mongrel
2007
2008# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2009# -------------------------------------------
2010# Tests whether TYPE exists after having included INCLUDES, setting cache
2011# variable VAR accordingly.
2012ac_fn_c_check_type ()
2013{
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016$as_echo_n "checking for $2... " >&6; }
2017if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018 $as_echo_n "(cached) " >&6
2019else
2020 eval "$3=no"
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h. */
2023$4
2024int
2025main ()
2026{
2027if (sizeof ($2))
2028 return 0;
2029 ;
2030 return 0;
2031}
2032_ACEOF
2033if ac_fn_c_try_compile "$LINENO"; then :
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035/* end confdefs.h. */
2036$4
2037int
2038main ()
2039{
2040if (sizeof (($2)))
2041 return 0;
2042 ;
2043 return 0;
2044}
2045_ACEOF
2046if ac_fn_c_try_compile "$LINENO"; then :
2047
2048else
2049 eval "$3=yes"
2050fi
2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052fi
2053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054fi
2055eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057$as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2059
2060} # ac_fn_c_check_type
2061
2062# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2063# --------------------------------------------
2064# Tries to find the compile-time value of EXPR in a program that includes
2065# INCLUDES, setting VAR accordingly. Returns whether the value could be
2066# computed
2067ac_fn_c_compute_int ()
2068{
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if test "$cross_compiling" = yes; then
2071 # Depending upon the size, compute the lo and hi bounds.
2072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073/* end confdefs.h. */
2074$4
2075int
2076main ()
2077{
2078static int test_array [1 - 2 * !(($2) >= 0)];
2079test_array [0] = 0
2080
2081 ;
2082 return 0;
2083}
2084_ACEOF
2085if ac_fn_c_try_compile "$LINENO"; then :
2086 ac_lo=0 ac_mid=0
2087 while :; do
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089/* end confdefs.h. */
2090$4
2091int
2092main ()
2093{
2094static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2095test_array [0] = 0
2096
2097 ;
2098 return 0;
2099}
2100_ACEOF
2101if ac_fn_c_try_compile "$LINENO"; then :
2102 ac_hi=$ac_mid; break
2103else
2104 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2105 if test $ac_lo -le $ac_mid; then
2106 ac_lo= ac_hi=
2107 break
2108 fi
2109 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2110fi
2111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 done
2113else
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h. */
2116$4
2117int
2118main ()
2119{
2120static int test_array [1 - 2 * !(($2) < 0)];
2121test_array [0] = 0
2122
2123 ;
2124 return 0;
2125}
2126_ACEOF
2127if ac_fn_c_try_compile "$LINENO"; then :
2128 ac_hi=-1 ac_mid=-1
2129 while :; do
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131/* end confdefs.h. */
2132$4
2133int
2134main ()
2135{
2136static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2137test_array [0] = 0
2138
2139 ;
2140 return 0;
2141}
2142_ACEOF
2143if ac_fn_c_try_compile "$LINENO"; then :
2144 ac_lo=$ac_mid; break
2145else
2146 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2147 if test $ac_mid -le $ac_hi; then
2148 ac_lo= ac_hi=
2149 break
2150 fi
2151 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2152fi
2153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 done
2155else
2156 ac_lo= ac_hi=
2157fi
2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159fi
2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161# Binary search between lo and hi bounds.
2162while test "x$ac_lo" != "x$ac_hi"; do
2163 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165/* end confdefs.h. */
2166$4
2167int
2168main ()
2169{
2170static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2171test_array [0] = 0
2172
2173 ;
2174 return 0;
2175}
2176_ACEOF
2177if ac_fn_c_try_compile "$LINENO"; then :
2178 ac_hi=$ac_mid
2179else
2180 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2181fi
2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183done
2184case $ac_lo in #((
2185?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2186'') ac_retval=1 ;;
2187esac
2188 else
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190/* end confdefs.h. */
2191$4
2192static long int longval () { return $2; }
2193static unsigned long int ulongval () { return $2; }
2194#include <stdio.h>
2195#include <stdlib.h>
2196int
2197main ()
2198{
2199
2200 FILE *f = fopen ("conftest.val", "w");
2201 if (! f)
2202 return 1;
2203 if (($2) < 0)
2204 {
2205 long int i = longval ();
2206 if (i != ($2))
2207 return 1;
2208 fprintf (f, "%ld", i);
2209 }
2210 else
2211 {
2212 unsigned long int i = ulongval ();
2213 if (i != ($2))
2214 return 1;
2215 fprintf (f, "%lu", i);
2216 }
2217 /* Do not output a trailing newline, as this causes \r\n confusion
2218 on some platforms. */
2219 return ferror (f) || fclose (f) != 0;
2220
2221 ;
2222 return 0;
2223}
2224_ACEOF
2225if ac_fn_c_try_run "$LINENO"; then :
2226 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2227else
2228 ac_retval=1
2229fi
2230rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2231 conftest.$ac_objext conftest.beam conftest.$ac_ext
2232rm -f conftest.val
2233
2234 fi
2235 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2236 return $ac_retval
2237
2238} # ac_fn_c_compute_int
9ce91011
RO
2239
2240# ac_fn_c_check_decl LINENO SYMBOL VAR
2241# ------------------------------------
2242# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2243ac_fn_c_check_decl ()
2244{
2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246 as_decl_name=`echo $2|sed 's/ *(.*//'`
2247 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2249$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2250if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2251 $as_echo_n "(cached) " >&6
2252else
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254/* end confdefs.h. */
2255$4
2256int
2257main ()
2258{
2259#ifndef $as_decl_name
2260#ifdef __cplusplus
2261 (void) $as_decl_use;
2262#else
2263 (void) $as_decl_name;
2264#endif
2265#endif
2266
2267 ;
2268 return 0;
2269}
2270_ACEOF
2271if ac_fn_c_try_compile "$LINENO"; then :
2272 eval "$3=yes"
2273else
2274 eval "$3=no"
2275fi
2276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277fi
2278eval ac_res=\$$3
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2280$as_echo "$ac_res" >&6; }
2281 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2282
2283} # ac_fn_c_check_decl
0a35513e
AH
2284cat >config.log <<_ACEOF
2285This file contains any messages produced by compilers while
2286running configure, to aid debugging if configure makes a mistake.
2287
2288It was created by GNU TM Runtime Library $as_me 1.0, which was
2289generated by GNU Autoconf 2.64. Invocation command line was
2290
2291 $ $0 $@
2292
2293_ACEOF
2294exec 5>>config.log
2295{
2296cat <<_ASUNAME
2297## --------- ##
2298## Platform. ##
2299## --------- ##
2300
2301hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2302uname -m = `(uname -m) 2>/dev/null || echo unknown`
2303uname -r = `(uname -r) 2>/dev/null || echo unknown`
2304uname -s = `(uname -s) 2>/dev/null || echo unknown`
2305uname -v = `(uname -v) 2>/dev/null || echo unknown`
2306
2307/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2308/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2309
2310/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2311/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2312/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2313/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2314/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2315/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2316/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2317
2318_ASUNAME
2319
2320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321for as_dir in $PATH
2322do
2323 IFS=$as_save_IFS
2324 test -z "$as_dir" && as_dir=.
2325 $as_echo "PATH: $as_dir"
2326 done
2327IFS=$as_save_IFS
2328
2329} >&5
2330
2331cat >&5 <<_ACEOF
2332
2333
2334## ----------- ##
2335## Core tests. ##
2336## ----------- ##
2337
2338_ACEOF
2339
2340
2341# Keep a trace of the command line.
2342# Strip out --no-create and --no-recursion so they do not pile up.
2343# Strip out --silent because we don't want to record it for future runs.
2344# Also quote any args containing shell meta-characters.
2345# Make two passes to allow for proper duplicate-argument suppression.
2346ac_configure_args=
2347ac_configure_args0=
2348ac_configure_args1=
2349ac_must_keep_next=false
2350for ac_pass in 1 2
2351do
2352 for ac_arg
2353 do
2354 case $ac_arg in
2355 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2357 | -silent | --silent | --silen | --sile | --sil)
2358 continue ;;
2359 *\'*)
2360 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2361 esac
2362 case $ac_pass in
2363 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2364 2)
2365 as_fn_append ac_configure_args1 " '$ac_arg'"
2366 if test $ac_must_keep_next = true; then
2367 ac_must_keep_next=false # Got value, back to normal.
2368 else
2369 case $ac_arg in
2370 *=* | --config-cache | -C | -disable-* | --disable-* \
2371 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2372 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2373 | -with-* | --with-* | -without-* | --without-* | --x)
2374 case "$ac_configure_args0 " in
2375 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2376 esac
2377 ;;
2378 -* ) ac_must_keep_next=true ;;
2379 esac
2380 fi
2381 as_fn_append ac_configure_args " '$ac_arg'"
2382 ;;
2383 esac
2384 done
2385done
2386{ ac_configure_args0=; unset ac_configure_args0;}
2387{ ac_configure_args1=; unset ac_configure_args1;}
2388
2389# When interrupted or exit'd, cleanup temporary files, and complete
2390# config.log. We remove comments because anyway the quotes in there
2391# would cause problems or look ugly.
2392# WARNING: Use '\'' to represent an apostrophe within the trap.
2393# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2394trap 'exit_status=$?
2395 # Save into config.log some information that might help in debugging.
2396 {
2397 echo
2398
2399 cat <<\_ASBOX
2400## ---------------- ##
2401## Cache variables. ##
2402## ---------------- ##
2403_ASBOX
2404 echo
2405 # The following way of writing the cache mishandles newlines in values,
2406(
2407 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2408 eval ac_val=\$$ac_var
2409 case $ac_val in #(
2410 *${as_nl}*)
2411 case $ac_var in #(
2412 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2413$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2414 esac
2415 case $ac_var in #(
2416 _ | IFS | as_nl) ;; #(
2417 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2418 *) { eval $ac_var=; unset $ac_var;} ;;
2419 esac ;;
2420 esac
2421 done
2422 (set) 2>&1 |
2423 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2424 *${as_nl}ac_space=\ *)
2425 sed -n \
2426 "s/'\''/'\''\\\\'\'''\''/g;
2427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2428 ;; #(
2429 *)
2430 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2431 ;;
2432 esac |
2433 sort
2434)
2435 echo
2436
2437 cat <<\_ASBOX
2438## ----------------- ##
2439## Output variables. ##
2440## ----------------- ##
2441_ASBOX
2442 echo
2443 for ac_var in $ac_subst_vars
2444 do
2445 eval ac_val=\$$ac_var
2446 case $ac_val in
2447 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2448 esac
2449 $as_echo "$ac_var='\''$ac_val'\''"
2450 done | sort
2451 echo
2452
2453 if test -n "$ac_subst_files"; then
2454 cat <<\_ASBOX
2455## ------------------- ##
2456## File substitutions. ##
2457## ------------------- ##
2458_ASBOX
2459 echo
2460 for ac_var in $ac_subst_files
2461 do
2462 eval ac_val=\$$ac_var
2463 case $ac_val in
2464 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465 esac
2466 $as_echo "$ac_var='\''$ac_val'\''"
2467 done | sort
2468 echo
2469 fi
2470
2471 if test -s confdefs.h; then
2472 cat <<\_ASBOX
2473## ----------- ##
2474## confdefs.h. ##
2475## ----------- ##
2476_ASBOX
2477 echo
2478 cat confdefs.h
2479 echo
2480 fi
2481 test "$ac_signal" != 0 &&
2482 $as_echo "$as_me: caught signal $ac_signal"
2483 $as_echo "$as_me: exit $exit_status"
2484 } >&5
2485 rm -f core *.core core.conftest.* &&
2486 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2487 exit $exit_status
2488' 0
2489for ac_signal in 1 2 13 15; do
2490 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2491done
2492ac_signal=0
2493
2494# confdefs.h avoids OS command line length limits that DEFS can exceed.
2495rm -f -r conftest* confdefs.h
2496
2497$as_echo "/* confdefs.h */" > confdefs.h
2498
2499# Predefined preprocessor variables.
2500
2501cat >>confdefs.h <<_ACEOF
2502#define PACKAGE_NAME "$PACKAGE_NAME"
2503_ACEOF
2504
2505cat >>confdefs.h <<_ACEOF
2506#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2507_ACEOF
2508
2509cat >>confdefs.h <<_ACEOF
2510#define PACKAGE_VERSION "$PACKAGE_VERSION"
2511_ACEOF
2512
2513cat >>confdefs.h <<_ACEOF
2514#define PACKAGE_STRING "$PACKAGE_STRING"
2515_ACEOF
2516
2517cat >>confdefs.h <<_ACEOF
2518#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2519_ACEOF
2520
2521cat >>confdefs.h <<_ACEOF
2522#define PACKAGE_URL "$PACKAGE_URL"
2523_ACEOF
2524
2525
2526# Let the site file select an alternate cache file if it wants to.
2527# Prefer an explicitly selected file to automatically selected ones.
2528ac_site_file1=NONE
2529ac_site_file2=NONE
2530if test -n "$CONFIG_SITE"; then
2531 ac_site_file1=$CONFIG_SITE
2532elif test "x$prefix" != xNONE; then
2533 ac_site_file1=$prefix/share/config.site
2534 ac_site_file2=$prefix/etc/config.site
2535else
2536 ac_site_file1=$ac_default_prefix/share/config.site
2537 ac_site_file2=$ac_default_prefix/etc/config.site
2538fi
2539for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2540do
2541 test "x$ac_site_file" = xNONE && continue
2542 if test -r "$ac_site_file"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2544$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2545 sed 's/^/| /' "$ac_site_file" >&5
2546 . "$ac_site_file"
2547 fi
2548done
2549
2550if test -r "$cache_file"; then
2551 # Some versions of bash will fail to source /dev/null (special
2552 # files actually), so we avoid doing that.
2553 if test -f "$cache_file"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2555$as_echo "$as_me: loading cache $cache_file" >&6;}
2556 case $cache_file in
2557 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2558 *) . "./$cache_file";;
2559 esac
2560 fi
2561else
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2563$as_echo "$as_me: creating cache $cache_file" >&6;}
2564 >$cache_file
2565fi
2566
2567# Check that the precious variables saved in the cache have kept the same
2568# value.
2569ac_cache_corrupted=false
2570for ac_var in $ac_precious_vars; do
2571 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2572 eval ac_new_set=\$ac_env_${ac_var}_set
2573 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2574 eval ac_new_val=\$ac_env_${ac_var}_value
2575 case $ac_old_set,$ac_new_set in
2576 set,)
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2578$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2579 ac_cache_corrupted=: ;;
2580 ,set)
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2582$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2583 ac_cache_corrupted=: ;;
2584 ,);;
2585 *)
2586 if test "x$ac_old_val" != "x$ac_new_val"; then
2587 # differences in whitespace do not lead to failure.
2588 ac_old_val_w=`echo x $ac_old_val`
2589 ac_new_val_w=`echo x $ac_new_val`
2590 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2592$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2593 ac_cache_corrupted=:
2594 else
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2596$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2597 eval $ac_var=\$ac_old_val
2598 fi
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2600$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2602$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2603 fi;;
2604 esac
2605 # Pass precious variables to config.status.
2606 if test "$ac_new_set" = set; then
2607 case $ac_new_val in
2608 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2609 *) ac_arg=$ac_var=$ac_new_val ;;
2610 esac
2611 case " $ac_configure_args " in
2612 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2613 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2614 esac
2615 fi
2616done
2617if $ac_cache_corrupted; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2621$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2622 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2623fi
2624## -------------------- ##
2625## Main body of script. ##
2626## -------------------- ##
2627
2628ac_ext=c
2629ac_cpp='$CPP $CPPFLAGS'
2630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632ac_compiler_gnu=$ac_cv_c_compiler_gnu
2633
2634
2635
2636
2637
2638ac_config_headers="$ac_config_headers config.h"
2639
2640
2641# -------
2642# Options
2643# -------
2644
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2646$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2647 # Check whether --enable-version-specific-runtime-libs was given.
2648if test "${enable_version_specific_runtime_libs+set}" = set; then :
2649 enableval=$enable_version_specific_runtime_libs;
2650 case "$enableval" in
2651 yes|no) ;;
2652 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2653 esac
2654
2655else
2656 enable_version_specific_runtime_libs=no
2657fi
2658
2659
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2661$as_echo "$enable_version_specific_runtime_libs" >&6; }
2662
2663# We would like our source tree to be readonly. However when releases or
2664# pre-releases are generated, the flex/bison generated files as well as the
2665# various formats of manuals need to be included along with the rest of the
2666# sources. Therefore we have --enable-generated-files-in-srcdir to do
2667# just that.
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2669$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2670 # Check whether --enable-generated-files-in-srcdir was given.
2671if test "${enable_generated_files_in_srcdir+set}" = set; then :
2672 enableval=$enable_generated_files_in_srcdir;
2673 case "$enableval" in
2674 yes|no) ;;
2675 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2676 esac
2677
2678else
2679 enable_generated_files_in_srcdir=no
2680fi
2681
2682
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2684$as_echo "$enable_generated_files_in_srcdir" >&6; }
2685 if test "$enable_generated_files_in_srcdir" = yes; then
2686 GENINSRC_TRUE=
2687 GENINSRC_FALSE='#'
2688else
2689 GENINSRC_TRUE='#'
2690 GENINSRC_FALSE=
2691fi
2692
2693
2694
2695# -------
2696# -------
2697
2698# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2699#
2700# You will slowly go insane if you do not grok the following fact: when
2701# building this library, the top-level /target/ becomes the library's /host/.
2702#
2703# configure then causes --target to default to --host, exactly like any
2704# other package using autoconf. Therefore, 'target' and 'host' will
2705# always be the same. This makes sense both for native and cross compilers
2706# just think about it for a little while. :-)
2707#
2708# Also, if this library is being configured as part of a cross compiler, the
2709# top-level configure script will pass the "real" host as $with_cross_host.
2710#
2711# Do not delete or change the following two lines. For why, see
2712# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2713ac_aux_dir=
2714for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2715 for ac_t in install-sh install.sh shtool; do
2716 if test -f "$ac_dir/$ac_t"; then
2717 ac_aux_dir=$ac_dir
2718 ac_install_sh="$ac_aux_dir/$ac_t -c"
2719 break 2
2720 fi
2721 done
2722done
2723if test -z "$ac_aux_dir"; then
2724 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2725fi
2726
2727# These three variables are undocumented and unsupported,
2728# and are intended to be withdrawn in a future Autoconf release.
2729# They can cause serious problems if a builder's source tree is in a directory
2730# whose full name contains unusual characters.
2731ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2732ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2733ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2734
2735
2736# Make sure we can run config.sub.
2737$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2738 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2739
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2741$as_echo_n "checking build system type... " >&6; }
2742if test "${ac_cv_build+set}" = set; then :
2743 $as_echo_n "(cached) " >&6
2744else
2745 ac_build_alias=$build_alias
2746test "x$ac_build_alias" = x &&
2747 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2748test "x$ac_build_alias" = x &&
2749 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2750ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2751 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2752
2753fi
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2755$as_echo "$ac_cv_build" >&6; }
2756case $ac_cv_build in
2757*-*-*) ;;
2758*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2759esac
2760build=$ac_cv_build
2761ac_save_IFS=$IFS; IFS='-'
2762set x $ac_cv_build
2763shift
2764build_cpu=$1
2765build_vendor=$2
2766shift; shift
2767# Remember, the first character of IFS is used to create $*,
2768# except with old shells:
2769build_os=$*
2770IFS=$ac_save_IFS
2771case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2772
2773
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2775$as_echo_n "checking host system type... " >&6; }
2776if test "${ac_cv_host+set}" = set; then :
2777 $as_echo_n "(cached) " >&6
2778else
2779 if test "x$host_alias" = x; then
2780 ac_cv_host=$ac_cv_build
2781else
2782 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2783 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2784fi
2785
2786fi
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2788$as_echo "$ac_cv_host" >&6; }
2789case $ac_cv_host in
2790*-*-*) ;;
2791*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2792esac
2793host=$ac_cv_host
2794ac_save_IFS=$IFS; IFS='-'
2795set x $ac_cv_host
2796shift
2797host_cpu=$1
2798host_vendor=$2
2799shift; shift
2800# Remember, the first character of IFS is used to create $*,
2801# except with old shells:
2802host_os=$*
2803IFS=$ac_save_IFS
2804case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2805
2806
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2808$as_echo_n "checking target system type... " >&6; }
2809if test "${ac_cv_target+set}" = set; then :
2810 $as_echo_n "(cached) " >&6
2811else
2812 if test "x$target_alias" = x; then
2813 ac_cv_target=$ac_cv_host
2814else
2815 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2816 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2817fi
2818
2819fi
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2821$as_echo "$ac_cv_target" >&6; }
2822case $ac_cv_target in
2823*-*-*) ;;
2824*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2825esac
2826target=$ac_cv_target
2827ac_save_IFS=$IFS; IFS='-'
2828set x $ac_cv_target
2829shift
2830target_cpu=$1
2831target_vendor=$2
2832shift; shift
2833# Remember, the first character of IFS is used to create $*,
2834# except with old shells:
2835target_os=$*
2836IFS=$ac_save_IFS
2837case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2838
2839
2840# The aliases save the names the user supplied, while $host etc.
2841# will get canonicalized.
2842test -n "$target_alias" &&
2843 test "$program_prefix$program_suffix$program_transform_name" = \
2844 NONENONEs,x,x, &&
2845 program_prefix=${target_alias}-
2846
2847target_alias=${target_alias-$host_alias}
2848
2849# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2850# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2851# 1.9.0: minimum required version
2852# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2853# of other PACKAGE_* variables will, however, and there's nothing
2854# we can do about that; they come from AC_INIT).
c0758df9 2855# no-dist: we don't want 'dist' and related rules.
0a35513e
AH
2856# foreign: we don't follow the normal rules for GNU packages (no COPYING
2857# file in the top srcdir, etc, etc), so stop complaining.
2858# -Wall: turns on all automake warnings...
2859# -Wno-portability: ...except this one, since GNU make is required.
2860# -Wno-override: ... and this one, since we do want this in testsuite.
2861am__api_version='1.11'
2862
2863# Find a good install program. We prefer a C program (faster),
2864# so one script is as good as another. But avoid the broken or
2865# incompatible versions:
2866# SysV /etc/install, /usr/sbin/install
2867# SunOS /usr/etc/install
2868# IRIX /sbin/install
2869# AIX /bin/install
2870# AmigaOS /C/install, which installs bootblocks on floppy discs
2871# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2872# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2873# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2874# OS/2's system install, which has a completely different semantic
2875# ./install, which can be erroneously created by make from ./install.sh.
2876# Reject install programs that cannot install multiple files.
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2878$as_echo_n "checking for a BSD-compatible install... " >&6; }
2879if test -z "$INSTALL"; then
2880if test "${ac_cv_path_install+set}" = set; then :
2881 $as_echo_n "(cached) " >&6
2882else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884for as_dir in $PATH
2885do
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 # Account for people who put trailing slashes in PATH elements.
2889case $as_dir/ in #((
2890 ./ | .// | /[cC]/* | \
2891 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2892 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2893 /usr/ucb/* ) ;;
2894 *)
2895 # OSF1 and SCO ODT 3.0 have their own names for install.
2896 # Don't use installbsd from OSF since it installs stuff as root
2897 # by default.
2898 for ac_prog in ginstall scoinst install; do
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2901 if test $ac_prog = install &&
2902 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2903 # AIX install. It has an incompatible calling convention.
2904 :
2905 elif test $ac_prog = install &&
2906 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2907 # program-specific install script used by HP pwplus--don't use.
2908 :
2909 else
2910 rm -rf conftest.one conftest.two conftest.dir
2911 echo one > conftest.one
2912 echo two > conftest.two
2913 mkdir conftest.dir
2914 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2915 test -s conftest.one && test -s conftest.two &&
2916 test -s conftest.dir/conftest.one &&
2917 test -s conftest.dir/conftest.two
2918 then
2919 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2920 break 3
2921 fi
2922 fi
2923 fi
2924 done
2925 done
2926 ;;
2927esac
2928
2929 done
2930IFS=$as_save_IFS
2931
2932rm -rf conftest.one conftest.two conftest.dir
2933
2934fi
2935 if test "${ac_cv_path_install+set}" = set; then
2936 INSTALL=$ac_cv_path_install
2937 else
2938 # As a last resort, use the slow shell script. Don't cache a
2939 # value for INSTALL within a source directory, because that will
2940 # break other packages using the cache if that directory is
2941 # removed, or if the value is a relative name.
2942 INSTALL=$ac_install_sh
2943 fi
2944fi
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2946$as_echo "$INSTALL" >&6; }
2947
2948# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2949# It thinks the first close brace ends the variable substitution.
2950test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2951
2952test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2953
2954test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2955
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2957$as_echo_n "checking whether build environment is sane... " >&6; }
2958# Just in case
2959sleep 1
2960echo timestamp > conftest.file
2961# Reject unsafe characters in $srcdir or the absolute working directory
2962# name. Accept space and tab only in the latter.
2963am_lf='
2964'
2965case `pwd` in
2966 *[\\\"\#\$\&\'\`$am_lf]*)
2967 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2968esac
2969case $srcdir in
2970 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2971 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2972esac
2973
2974# Do `set' in a subshell so we don't clobber the current shell's
2975# arguments. Must try -L first in case configure is actually a
2976# symlink; some systems play weird games with the mod time of symlinks
2977# (eg FreeBSD returns the mod time of the symlink's containing
2978# directory).
2979if (
2980 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2981 if test "$*" = "X"; then
2982 # -L didn't work.
2983 set X `ls -t "$srcdir/configure" conftest.file`
2984 fi
2985 rm -f conftest.file
2986 if test "$*" != "X $srcdir/configure conftest.file" \
2987 && test "$*" != "X conftest.file $srcdir/configure"; then
2988
2989 # If neither matched, then we have a broken ls. This can happen
2990 # if, for instance, CONFIG_SHELL is bash and it inherits a
2991 # broken ls alias from the environment. This has actually
2992 # happened. Such a system could not be considered "sane".
2993 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2994alias in your environment" "$LINENO" 5
2995 fi
2996
2997 test "$2" = conftest.file
2998 )
2999then
3000 # Ok.
3001 :
3002else
3003 as_fn_error "newly created file is older than distributed files!
3004Check your system clock" "$LINENO" 5
3005fi
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3007$as_echo "yes" >&6; }
3008test "$program_prefix" != NONE &&
3009 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3010# Use a double $ so make ignores it.
3011test "$program_suffix" != NONE &&
3012 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3013# Double any \ or $.
3014# By default was `s,x,x', remove it if useless.
3015ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3016program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3017
3018# expand $ac_aux_dir to an absolute path
3019am_aux_dir=`cd $ac_aux_dir && pwd`
3020
3021if test x"${MISSING+set}" != xset; then
3022 case $am_aux_dir in
3023 *\ * | *\ *)
3024 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3025 *)
3026 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3027 esac
3028fi
3029# Use eval to expand $SHELL
3030if eval "$MISSING --run true"; then
3031 am_missing_run="$MISSING --run "
3032else
3033 am_missing_run=
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3035$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3036fi
3037
3038if test x"${install_sh}" != xset; then
3039 case $am_aux_dir in
3040 *\ * | *\ *)
3041 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3042 *)
3043 install_sh="\${SHELL} $am_aux_dir/install-sh"
3044 esac
3045fi
3046
3047# Installed binaries are usually stripped using `strip' when the user
3048# run `make install-strip'. However `strip' might not be the right
3049# tool to use in cross-compilation environments, therefore Automake
3050# will honor the `STRIP' environment variable to overrule this program.
3051if test "$cross_compiling" != no; then
3052 if test -n "$ac_tool_prefix"; then
3053 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3054set dummy ${ac_tool_prefix}strip; ac_word=$2
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056$as_echo_n "checking for $ac_word... " >&6; }
3057if test "${ac_cv_prog_STRIP+set}" = set; then :
3058 $as_echo_n "(cached) " >&6
3059else
3060 if test -n "$STRIP"; then
3061 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3062else
3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH
3065do
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3073 fi
3074done
3075 done
3076IFS=$as_save_IFS
3077
3078fi
3079fi
3080STRIP=$ac_cv_prog_STRIP
3081if test -n "$STRIP"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3083$as_echo "$STRIP" >&6; }
3084else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086$as_echo "no" >&6; }
3087fi
3088
3089
3090fi
3091if test -z "$ac_cv_prog_STRIP"; then
3092 ac_ct_STRIP=$STRIP
3093 # Extract the first word of "strip", so it can be a program name with args.
3094set dummy strip; ac_word=$2
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096$as_echo_n "checking for $ac_word... " >&6; }
3097if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
3099else
3100 if test -n "$ac_ct_STRIP"; then
3101 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3102else
3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104for as_dir in $PATH
3105do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110 ac_cv_prog_ac_ct_STRIP="strip"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114done
3115 done
3116IFS=$as_save_IFS
3117
3118fi
3119fi
3120ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3121if test -n "$ac_ct_STRIP"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3123$as_echo "$ac_ct_STRIP" >&6; }
3124else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126$as_echo "no" >&6; }
3127fi
3128
3129 if test "x$ac_ct_STRIP" = x; then
3130 STRIP=":"
3131 else
3132 case $cross_compiling:$ac_tool_warned in
3133yes:)
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3136ac_tool_warned=yes ;;
3137esac
3138 STRIP=$ac_ct_STRIP
3139 fi
3140else
3141 STRIP="$ac_cv_prog_STRIP"
3142fi
3143
3144fi
3145INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3146
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3148$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3149if test -z "$MKDIR_P"; then
3150 if test "${ac_cv_path_mkdir+set}" = set; then :
3151 $as_echo_n "(cached) " >&6
3152else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3155do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_prog in mkdir gmkdir; do
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3161 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3162 'mkdir (GNU coreutils) '* | \
3163 'mkdir (coreutils) '* | \
3164 'mkdir (fileutils) '4.1*)
3165 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3166 break 3;;
3167 esac
3168 done
3169 done
3170 done
3171IFS=$as_save_IFS
3172
3173fi
3174
3175 if test "${ac_cv_path_mkdir+set}" = set; then
3176 MKDIR_P="$ac_cv_path_mkdir -p"
3177 else
3178 # As a last resort, use the slow shell script. Don't cache a
3179 # value for MKDIR_P within a source directory, because that will
3180 # break other packages using the cache if that directory is
3181 # removed, or if the value is a relative name.
3182 test -d ./--version && rmdir ./--version
3183 MKDIR_P="$ac_install_sh -d"
3184 fi
3185fi
3186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3187$as_echo "$MKDIR_P" >&6; }
3188
3189mkdir_p="$MKDIR_P"
3190case $mkdir_p in
3191 [\\/$]* | ?:[\\/]*) ;;
3192 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3193esac
3194
3195for ac_prog in gawk mawk nawk awk
3196do
3197 # Extract the first word of "$ac_prog", so it can be a program name with args.
3198set dummy $ac_prog; ac_word=$2
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200$as_echo_n "checking for $ac_word... " >&6; }
3201if test "${ac_cv_prog_AWK+set}" = set; then :
3202 $as_echo_n "(cached) " >&6
3203else
3204 if test -n "$AWK"; then
3205 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3206else
3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208for as_dir in $PATH
3209do
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214 ac_cv_prog_AWK="$ac_prog"
3215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3217 fi
3218done
3219 done
3220IFS=$as_save_IFS
3221
3222fi
3223fi
3224AWK=$ac_cv_prog_AWK
3225if test -n "$AWK"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3227$as_echo "$AWK" >&6; }
3228else
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230$as_echo "no" >&6; }
3231fi
3232
3233
3234 test -n "$AWK" && break
3235done
3236
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3238$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3239set x ${MAKE-make}
3240ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3241if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3242 $as_echo_n "(cached) " >&6
3243else
3244 cat >conftest.make <<\_ACEOF
3245SHELL = /bin/sh
3246all:
3247 @echo '@@@%%%=$(MAKE)=@@@%%%'
3248_ACEOF
3249# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3250case `${MAKE-make} -f conftest.make 2>/dev/null` in
3251 *@@@%%%=?*=@@@%%%*)
3252 eval ac_cv_prog_make_${ac_make}_set=yes;;
3253 *)
3254 eval ac_cv_prog_make_${ac_make}_set=no;;
3255esac
3256rm -f conftest.make
3257fi
3258if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3260$as_echo "yes" >&6; }
3261 SET_MAKE=
3262else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264$as_echo "no" >&6; }
3265 SET_MAKE="MAKE=${MAKE-make}"
3266fi
3267
3268rm -rf .tst 2>/dev/null
3269mkdir .tst 2>/dev/null
3270if test -d .tst; then
3271 am__leading_dot=.
3272else
3273 am__leading_dot=_
3274fi
3275rmdir .tst 2>/dev/null
3276
3277if test "`cd $srcdir && pwd`" != "`pwd`"; then
3278 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3279 # is not polluted with repeated "-I."
3280 am__isrc=' -I$(srcdir)'
3281 # test to see if srcdir already configured
3282 if test -f $srcdir/config.status; then
3283 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3284 fi
3285fi
3286
3287# test whether we have cygpath
3288if test -z "$CYGPATH_W"; then
3289 if (cygpath --version) >/dev/null 2>/dev/null; then
3290 CYGPATH_W='cygpath -w'
3291 else
3292 CYGPATH_W=echo
3293 fi
3294fi
3295
3296
3297# Define the identity of the package.
3298 PACKAGE='libitm'
3299 VERSION='1.0'
3300
3301
3302cat >>confdefs.h <<_ACEOF
3303#define PACKAGE "$PACKAGE"
3304_ACEOF
3305
3306
3307cat >>confdefs.h <<_ACEOF
3308#define VERSION "$VERSION"
3309_ACEOF
3310
3311# Some tools Automake needs.
3312
3313ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3314
3315
3316AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3317
3318
3319AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3320
3321
3322AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3323
3324
3325MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3326
3327# We need awk for the "check" target. The system "awk" is bad on
3328# some platforms.
503902f9
MH
3329# Always define AMTAR for backward compatibility. Yes, it's still used
3330# in the wild :-( We should find a proper way to deprecate it ...
3331AMTAR='$${TAR-tar}'
0a35513e 3332
503902f9 3333am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
0a35513e
AH
3334
3335
3336
3337
3338
3339# Default to --enable-multilib
3340# Check whether --enable-multilib was given.
3341if test "${enable_multilib+set}" = set; then :
3342 enableval=$enable_multilib; case "$enableval" in
3343 yes) multilib=yes ;;
3344 no) multilib=no ;;
3345 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3346 esac
3347else
3348 multilib=yes
3349fi
3350
3351
3352# We may get other options which we leave undocumented:
3353# --with-target-subdir, --with-multisrctop, --with-multisubdir
3354# See config-ml.in if you want the gory details.
3355
3356if test "$srcdir" = "."; then
3357 if test "$with_target_subdir" != "."; then
3358 multi_basedir="$srcdir/$with_multisrctop../.."
3359 else
3360 multi_basedir="$srcdir/$with_multisrctop.."
3361 fi
3362else
3363 multi_basedir="$srcdir/.."
3364fi
3365
3366
3367# Even if the default multilib is not a cross compilation,
3368# it may be that some of the other multilibs are.
3369if test $cross_compiling = no && test $multilib = yes \
3370 && test "x${with_multisubdir}" != x ; then
3371 cross_compiling=maybe
3372fi
3373
3374ac_config_commands="$ac_config_commands default-1"
3375
3376
3377# Calculate toolexeclibdir
3378# Also toolexecdir, though it's only used in toolexeclibdir
3379case ${enable_version_specific_runtime_libs} in
3380 yes)
3381 # Need the gcc compiler version to know where to install libraries
3382 # and header files if --enable-version-specific-runtime-libs option
3383 # is selected.
3384 toolexecdir='$(libdir)/gcc/$(target_alias)'
3385 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3386 ;;
3387 no)
3388 if test -n "$with_cross_host" &&
3389 test x"$with_cross_host" != x"no"; then
3390 # Install a library built with a cross compiler in tooldir, not libdir.
3391 toolexecdir='$(exec_prefix)/$(target_alias)'
3392 toolexeclibdir='$(toolexecdir)/lib'
3393 else
3394 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3395 toolexeclibdir='$(libdir)'
3396 fi
3397 multi_os_directory=`$CC -print-multi-os-directory`
3398 case $multi_os_directory in
3399 .) ;; # Avoid trailing /.
3400 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3401 esac
3402 ;;
3403esac
3404
3405
3406
3407# Check the compiler.
3408# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3409# We must force CC to /not/ be precious variables; otherwise
3410# the wrong, non-multilib-adjusted value will be used in multilibs.
3411# As a side effect, we have to subst CFLAGS ourselves.
3412
3413
3414
3415ac_ext=c
3416ac_cpp='$CPP $CPPFLAGS'
3417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419ac_compiler_gnu=$ac_cv_c_compiler_gnu
3420if test -n "$ac_tool_prefix"; then
3421 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3422set dummy ${ac_tool_prefix}gcc; ac_word=$2
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424$as_echo_n "checking for $ac_word... " >&6; }
3425if test "${ac_cv_prog_CC+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3427else
3428 if test -n "$CC"; then
3429 ac_cv_prog_CC="$CC" # Let the user override the test.
3430else
3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH
3433do
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3438 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 break 2
3441 fi
3442done
3443 done
3444IFS=$as_save_IFS
3445
3446fi
3447fi
3448CC=$ac_cv_prog_CC
3449if test -n "$CC"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451$as_echo "$CC" >&6; }
3452else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454$as_echo "no" >&6; }
3455fi
3456
3457
3458fi
3459if test -z "$ac_cv_prog_CC"; then
3460 ac_ct_CC=$CC
3461 # Extract the first word of "gcc", so it can be a program name with args.
3462set dummy gcc; ac_word=$2
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464$as_echo_n "checking for $ac_word... " >&6; }
3465if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3466 $as_echo_n "(cached) " >&6
3467else
3468 if test -n "$ac_ct_CC"; then
3469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3470else
3471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472for as_dir in $PATH
3473do
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3478 ac_cv_prog_ac_ct_CC="gcc"
3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 break 2
3481 fi
3482done
3483 done
3484IFS=$as_save_IFS
3485
3486fi
3487fi
3488ac_ct_CC=$ac_cv_prog_ac_ct_CC
3489if test -n "$ac_ct_CC"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3491$as_echo "$ac_ct_CC" >&6; }
3492else
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494$as_echo "no" >&6; }
3495fi
3496
3497 if test "x$ac_ct_CC" = x; then
3498 CC=""
3499 else
3500 case $cross_compiling:$ac_tool_warned in
3501yes:)
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3504ac_tool_warned=yes ;;
3505esac
3506 CC=$ac_ct_CC
3507 fi
3508else
3509 CC="$ac_cv_prog_CC"
3510fi
3511
3512if test -z "$CC"; then
3513 if test -n "$ac_tool_prefix"; then
3514 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3515set dummy ${ac_tool_prefix}cc; ac_word=$2
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517$as_echo_n "checking for $ac_word... " >&6; }
3518if test "${ac_cv_prog_CC+set}" = set; then :
3519 $as_echo_n "(cached) " >&6
3520else
3521 if test -n "$CC"; then
3522 ac_cv_prog_CC="$CC" # Let the user override the test.
3523else
3524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525for as_dir in $PATH
3526do
3527 IFS=$as_save_IFS
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3531 ac_cv_prog_CC="${ac_tool_prefix}cc"
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 break 2
3534 fi
3535done
3536 done
3537IFS=$as_save_IFS
3538
3539fi
3540fi
3541CC=$ac_cv_prog_CC
3542if test -n "$CC"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3544$as_echo "$CC" >&6; }
3545else
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547$as_echo "no" >&6; }
3548fi
3549
3550
3551 fi
3552fi
3553if test -z "$CC"; then
3554 # Extract the first word of "cc", so it can be a program name with args.
3555set dummy cc; ac_word=$2
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557$as_echo_n "checking for $ac_word... " >&6; }
3558if test "${ac_cv_prog_CC+set}" = set; then :
3559 $as_echo_n "(cached) " >&6
3560else
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test.
3563else
3564 ac_prog_rejected=no
3565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566for as_dir in $PATH
3567do
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3573 ac_prog_rejected=yes
3574 continue
3575 fi
3576 ac_cv_prog_CC="cc"
3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 break 2
3579 fi
3580done
3581 done
3582IFS=$as_save_IFS
3583
3584if test $ac_prog_rejected = yes; then
3585 # We found a bogon in the path, so make sure we never use it.
3586 set dummy $ac_cv_prog_CC
3587 shift
3588 if test $# != 0; then
3589 # We chose a different compiler from the bogus one.
3590 # However, it has the same basename, so the bogon will be chosen
3591 # first if we set CC to just the basename; use the full file name.
3592 shift
3593 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3594 fi
3595fi
3596fi
3597fi
3598CC=$ac_cv_prog_CC
3599if test -n "$CC"; then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3601$as_echo "$CC" >&6; }
3602else
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604$as_echo "no" >&6; }
3605fi
3606
3607
3608fi
3609if test -z "$CC"; then
3610 if test -n "$ac_tool_prefix"; then
3611 for ac_prog in cl.exe
3612 do
3613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3614set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3616$as_echo_n "checking for $ac_word... " >&6; }
3617if test "${ac_cv_prog_CC+set}" = set; then :
3618 $as_echo_n "(cached) " >&6
3619else
3620 if test -n "$CC"; then
3621 ac_cv_prog_CC="$CC" # Let the user override the test.
3622else
3623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624for as_dir in $PATH
3625do
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3630 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 break 2
3633 fi
3634done
3635 done
3636IFS=$as_save_IFS
3637
3638fi
3639fi
3640CC=$ac_cv_prog_CC
3641if test -n "$CC"; then
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3643$as_echo "$CC" >&6; }
3644else
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646$as_echo "no" >&6; }
3647fi
3648
3649
3650 test -n "$CC" && break
3651 done
3652fi
3653if test -z "$CC"; then
3654 ac_ct_CC=$CC
3655 for ac_prog in cl.exe
3656do
3657 # Extract the first word of "$ac_prog", so it can be a program name with args.
3658set dummy $ac_prog; ac_word=$2
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660$as_echo_n "checking for $ac_word... " >&6; }
3661if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3662 $as_echo_n "(cached) " >&6
3663else
3664 if test -n "$ac_ct_CC"; then
3665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3666else
3667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668for as_dir in $PATH
3669do
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3674 ac_cv_prog_ac_ct_CC="$ac_prog"
3675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 break 2
3677 fi
3678done
3679 done
3680IFS=$as_save_IFS
3681
3682fi
3683fi
3684ac_ct_CC=$ac_cv_prog_ac_ct_CC
3685if test -n "$ac_ct_CC"; then
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3687$as_echo "$ac_ct_CC" >&6; }
3688else
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690$as_echo "no" >&6; }
3691fi
3692
3693
3694 test -n "$ac_ct_CC" && break
3695done
3696
3697 if test "x$ac_ct_CC" = x; then
3698 CC=""
3699 else
3700 case $cross_compiling:$ac_tool_warned in
3701yes:)
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3704ac_tool_warned=yes ;;
3705esac
3706 CC=$ac_ct_CC
3707 fi
3708fi
3709
3710fi
3711
3712
3713test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715as_fn_error "no acceptable C compiler found in \$PATH
3716See \`config.log' for more details." "$LINENO" 5; }
3717
3718# Provide some information about the compiler.
3719$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3720set X $ac_compile
3721ac_compiler=$2
3722for ac_option in --version -v -V -qversion; do
3723 { { ac_try="$ac_compiler $ac_option >&5"
3724case "(($ac_try" in
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3727esac
3728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729$as_echo "$ac_try_echo"; } >&5
3730 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3731 ac_status=$?
3732 if test -s conftest.err; then
3733 sed '10a\
3734... rest of stderr output deleted ...
3735 10q' conftest.err >conftest.er1
3736 cat conftest.er1 >&5
3737 rm -f conftest.er1 conftest.err
3738 fi
3739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740 test $ac_status = 0; }
3741done
3742
3743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744/* end confdefs.h. */
3745
3746int
3747main ()
3748{
3749
3750 ;
3751 return 0;
3752}
3753_ACEOF
3754ac_clean_files_save=$ac_clean_files
3755ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3756# Try to create an executable without -o first, disregard a.out.
3757# It will help us diagnose broken compilers, and finding out an intuition
3758# of exeext.
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3760$as_echo_n "checking for C compiler default output file name... " >&6; }
3761ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3762
3763# The possible output files:
3764ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3765
3766ac_rmfiles=
3767for ac_file in $ac_files
3768do
3769 case $ac_file in
3770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3771 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3772 esac
3773done
3774rm -f $ac_rmfiles
3775
3776if { { ac_try="$ac_link_default"
3777case "(($ac_try" in
3778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779 *) ac_try_echo=$ac_try;;
3780esac
3781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3782$as_echo "$ac_try_echo"; } >&5
3783 (eval "$ac_link_default") 2>&5
3784 ac_status=$?
3785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3786 test $ac_status = 0; }; then :
3787 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3788# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3789# in a Makefile. We should not override ac_cv_exeext if it was cached,
3790# so that the user can short-circuit this test for compilers unknown to
3791# Autoconf.
3792for ac_file in $ac_files ''
3793do
3794 test -f "$ac_file" || continue
3795 case $ac_file in
3796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3797 ;;
3798 [ab].out )
3799 # We found the default executable, but exeext='' is most
3800 # certainly right.
3801 break;;
3802 *.* )
3803 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3804 then :; else
3805 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3806 fi
3807 # We set ac_cv_exeext here because the later test for it is not
3808 # safe: cross compilers may not add the suffix if given an `-o'
3809 # argument, so we may need to know it at that point already.
3810 # Even if this section looks crufty: it has the advantage of
3811 # actually working.
3812 break;;
3813 * )
3814 break;;
3815 esac
3816done
3817test "$ac_cv_exeext" = no && ac_cv_exeext=
3818
3819else
3820 ac_file=''
3821fi
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3823$as_echo "$ac_file" >&6; }
3824if test -z "$ac_file"; then :
3825 $as_echo "$as_me: failed program was:" >&5
3826sed 's/^/| /' conftest.$ac_ext >&5
3827
3828{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830{ as_fn_set_status 77
3831as_fn_error "C compiler cannot create executables
3832See \`config.log' for more details." "$LINENO" 5; }; }
3833fi
3834ac_exeext=$ac_cv_exeext
3835
3836# Check that the compiler produces executables we can run. If not, either
3837# the compiler is broken, or we cross compile.
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3839$as_echo_n "checking whether the C compiler works... " >&6; }
3840# If not cross compiling, check that we can run a simple program.
3841if test "$cross_compiling" != yes; then
3842 if { ac_try='./$ac_file'
3843 { { case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846esac
3847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3848$as_echo "$ac_try_echo"; } >&5
3849 (eval "$ac_try") 2>&5
3850 ac_status=$?
3851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3852 test $ac_status = 0; }; }; then
3853 cross_compiling=no
3854 else
3855 if test "$cross_compiling" = maybe; then
3856 cross_compiling=yes
3857 else
3858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3860as_fn_error "cannot run C compiled programs.
3861If you meant to cross compile, use \`--host'.
3862See \`config.log' for more details." "$LINENO" 5; }
3863 fi
3864 fi
3865fi
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3867$as_echo "yes" >&6; }
3868
3869rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3870ac_clean_files=$ac_clean_files_save
3871# Check that the compiler produces executables we can run. If not, either
3872# the compiler is broken, or we cross compile.
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3874$as_echo_n "checking whether we are cross compiling... " >&6; }
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3876$as_echo "$cross_compiling" >&6; }
3877
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3879$as_echo_n "checking for suffix of executables... " >&6; }
3880if { { ac_try="$ac_link"
3881case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884esac
3885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886$as_echo "$ac_try_echo"; } >&5
3887 (eval "$ac_link") 2>&5
3888 ac_status=$?
3889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; }; then :
3891 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3892# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3893# work properly (i.e., refer to `conftest.exe'), while it won't with
3894# `rm'.
3895for ac_file in conftest.exe conftest conftest.*; do
3896 test -f "$ac_file" || continue
3897 case $ac_file in
3898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3899 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3900 break;;
3901 * ) break;;
3902 esac
3903done
3904else
3905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3907as_fn_error "cannot compute suffix of executables: cannot compile and link
3908See \`config.log' for more details." "$LINENO" 5; }
3909fi
3910rm -f conftest$ac_cv_exeext
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3912$as_echo "$ac_cv_exeext" >&6; }
3913
3914rm -f conftest.$ac_ext
3915EXEEXT=$ac_cv_exeext
3916ac_exeext=$EXEEXT
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3918$as_echo_n "checking for suffix of object files... " >&6; }
3919if test "${ac_cv_objext+set}" = set; then :
3920 $as_echo_n "(cached) " >&6
3921else
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923/* end confdefs.h. */
3924
3925int
3926main ()
3927{
3928
3929 ;
3930 return 0;
3931}
3932_ACEOF
3933rm -f conftest.o conftest.obj
3934if { { ac_try="$ac_compile"
3935case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938esac
3939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940$as_echo "$ac_try_echo"; } >&5
3941 (eval "$ac_compile") 2>&5
3942 ac_status=$?
3943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944 test $ac_status = 0; }; then :
3945 for ac_file in conftest.o conftest.obj conftest.*; do
3946 test -f "$ac_file" || continue;
3947 case $ac_file in
3948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3950 break;;
3951 esac
3952done
3953else
3954 $as_echo "$as_me: failed program was:" >&5
3955sed 's/^/| /' conftest.$ac_ext >&5
3956
3957{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3959as_fn_error "cannot compute suffix of object files: cannot compile
3960See \`config.log' for more details." "$LINENO" 5; }
3961fi
3962rm -f conftest.$ac_cv_objext conftest.$ac_ext
3963fi
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3965$as_echo "$ac_cv_objext" >&6; }
3966OBJEXT=$ac_cv_objext
3967ac_objext=$OBJEXT
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3969$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3970if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3971 $as_echo_n "(cached) " >&6
3972else
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974/* end confdefs.h. */
3975
3976int
3977main ()
3978{
3979#ifndef __GNUC__
3980 choke me
3981#endif
3982
3983 ;
3984 return 0;
3985}
3986_ACEOF
3987if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_compiler_gnu=yes
3989else
3990 ac_compiler_gnu=no
3991fi
3992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993ac_cv_c_compiler_gnu=$ac_compiler_gnu
3994
3995fi
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3997$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3998if test $ac_compiler_gnu = yes; then
3999 GCC=yes
4000else
4001 GCC=
4002fi
4003ac_test_CFLAGS=${CFLAGS+set}
4004ac_save_CFLAGS=$CFLAGS
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4006$as_echo_n "checking whether $CC accepts -g... " >&6; }
4007if test "${ac_cv_prog_cc_g+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4009else
4010 ac_save_c_werror_flag=$ac_c_werror_flag
4011 ac_c_werror_flag=yes
4012 ac_cv_prog_cc_g=no
4013 CFLAGS="-g"
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015/* end confdefs.h. */
4016
4017int
4018main ()
4019{
4020
4021 ;
4022 return 0;
4023}
4024_ACEOF
4025if ac_fn_c_try_compile "$LINENO"; then :
4026 ac_cv_prog_cc_g=yes
4027else
4028 CFLAGS=""
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030/* end confdefs.h. */
4031
4032int
4033main ()
4034{
4035
4036 ;
4037 return 0;
4038}
4039_ACEOF
4040if ac_fn_c_try_compile "$LINENO"; then :
4041
4042else
4043 ac_c_werror_flag=$ac_save_c_werror_flag
4044 CFLAGS="-g"
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046/* end confdefs.h. */
4047
4048int
4049main ()
4050{
4051
4052 ;
4053 return 0;
4054}
4055_ACEOF
4056if ac_fn_c_try_compile "$LINENO"; then :
4057 ac_cv_prog_cc_g=yes
4058fi
4059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060fi
4061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062fi
4063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 ac_c_werror_flag=$ac_save_c_werror_flag
4065fi
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4067$as_echo "$ac_cv_prog_cc_g" >&6; }
4068if test "$ac_test_CFLAGS" = set; then
4069 CFLAGS=$ac_save_CFLAGS
4070elif test $ac_cv_prog_cc_g = yes; then
4071 if test "$GCC" = yes; then
4072 CFLAGS="-g -O2"
4073 else
4074 CFLAGS="-g"
4075 fi
4076else
4077 if test "$GCC" = yes; then
4078 CFLAGS="-O2"
4079 else
4080 CFLAGS=
4081 fi
4082fi
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4084$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4085if test "${ac_cv_prog_cc_c89+set}" = set; then :
4086 $as_echo_n "(cached) " >&6
4087else
4088 ac_cv_prog_cc_c89=no
4089ac_save_CC=$CC
4090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091/* end confdefs.h. */
4092#include <stdarg.h>
4093#include <stdio.h>
4094#include <sys/types.h>
4095#include <sys/stat.h>
4096/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4097struct buf { int x; };
4098FILE * (*rcsopen) (struct buf *, struct stat *, int);
4099static char *e (p, i)
4100 char **p;
4101 int i;
4102{
4103 return p[i];
4104}
4105static char *f (char * (*g) (char **, int), char **p, ...)
4106{
4107 char *s;
4108 va_list v;
4109 va_start (v,p);
4110 s = g (p, va_arg (v,int));
4111 va_end (v);
4112 return s;
4113}
4114
4115/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4116 function prototypes and stuff, but not '\xHH' hex character constants.
4117 These don't provoke an error unfortunately, instead are silently treated
4118 as 'x'. The following induces an error, until -std is added to get
4119 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4120 array size at least. It's necessary to write '\x00'==0 to get something
4121 that's true only with -std. */
4122int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4123
4124/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4125 inside strings and character constants. */
4126#define FOO(x) 'x'
4127int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4128
4129int test (int i, double x);
4130struct s1 {int (*f) (int a);};
4131struct s2 {int (*f) (double a);};
4132int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4133int argc;
4134char **argv;
4135int
4136main ()
4137{
4138return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4139 ;
4140 return 0;
4141}
4142_ACEOF
4143for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4144 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4145do
4146 CC="$ac_save_CC $ac_arg"
4147 if ac_fn_c_try_compile "$LINENO"; then :
4148 ac_cv_prog_cc_c89=$ac_arg
4149fi
4150rm -f core conftest.err conftest.$ac_objext
4151 test "x$ac_cv_prog_cc_c89" != "xno" && break
4152done
4153rm -f conftest.$ac_ext
4154CC=$ac_save_CC
4155
4156fi
4157# AC_CACHE_VAL
4158case "x$ac_cv_prog_cc_c89" in
4159 x)
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4161$as_echo "none needed" >&6; } ;;
4162 xno)
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4164$as_echo "unsupported" >&6; } ;;
4165 *)
4166 CC="$CC $ac_cv_prog_cc_c89"
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4168$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4169esac
4170if test "x$ac_cv_prog_cc_c89" != xno; then :
4171
4172fi
4173
4174ac_ext=c
4175ac_cpp='$CPP $CPPFLAGS'
4176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179DEPDIR="${am__leading_dot}deps"
4180
4181ac_config_commands="$ac_config_commands depfiles"
4182
4183
4184am_make=${MAKE-make}
4185cat > confinc << 'END'
4186am__doit:
4187 @echo this is the am__doit target
4188.PHONY: am__doit
4189END
4190# If we don't find an include directive, just comment out the code.
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4192$as_echo_n "checking for style of include used by $am_make... " >&6; }
4193am__include="#"
4194am__quote=
4195_am_result=none
4196# First try GNU make style include.
4197echo "include confinc" > confmf
4198# Ignore all kinds of additional output from `make'.
4199case `$am_make -s -f confmf 2> /dev/null` in #(
4200*the\ am__doit\ target*)
4201 am__include=include
4202 am__quote=
4203 _am_result=GNU
4204 ;;
4205esac
4206# Now try BSD make style include.
4207if test "$am__include" = "#"; then
4208 echo '.include "confinc"' > confmf
4209 case `$am_make -s -f confmf 2> /dev/null` in #(
4210 *the\ am__doit\ target*)
4211 am__include=.include
4212 am__quote="\""
4213 _am_result=BSD
4214 ;;
4215 esac
4216fi
4217
4218
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4220$as_echo "$_am_result" >&6; }
4221rm -f confinc confmf
4222
4223# Check whether --enable-dependency-tracking was given.
4224if test "${enable_dependency_tracking+set}" = set; then :
4225 enableval=$enable_dependency_tracking;
4226fi
4227
4228if test "x$enable_dependency_tracking" != xno; then
4229 am_depcomp="$ac_aux_dir/depcomp"
4230 AMDEPBACKSLASH='\'
503902f9 4231 am__nodep='_no'
0a35513e
AH
4232fi
4233 if test "x$enable_dependency_tracking" != xno; then
4234 AMDEP_TRUE=
4235 AMDEP_FALSE='#'
4236else
4237 AMDEP_TRUE='#'
4238 AMDEP_FALSE=
4239fi
4240
4241
4242
4243depcc="$CC" am_compiler_list=
4244
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4246$as_echo_n "checking dependency style of $depcc... " >&6; }
4247if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4248 $as_echo_n "(cached) " >&6
4249else
4250 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4251 # We make a subdir and do the tests there. Otherwise we can end up
4252 # making bogus files that we don't know about and never remove. For
4253 # instance it was reported that on HP-UX the gcc test will end up
4254 # making a dummy file named `D' -- because `-MD' means `put the output
4255 # in D'.
503902f9 4256 rm -rf conftest.dir
0a35513e
AH
4257 mkdir conftest.dir
4258 # Copy depcomp to subdir because otherwise we won't find it if we're
4259 # using a relative directory.
4260 cp "$am_depcomp" conftest.dir
4261 cd conftest.dir
4262 # We will build objects and dependencies in a subdirectory because
4263 # it helps to detect inapplicable dependency modes. For instance
4264 # both Tru64's cc and ICC support -MD to output dependencies as a
4265 # side effect of compilation, but ICC will put the dependencies in
4266 # the current directory while Tru64 will put them in the object
4267 # directory.
4268 mkdir sub
4269
4270 am_cv_CC_dependencies_compiler_type=none
4271 if test "$am_compiler_list" = ""; then
4272 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4273 fi
4274 am__universal=false
4275 case " $depcc " in #(
4276 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4277 esac
4278
4279 for depmode in $am_compiler_list; do
4280 # Setup a source with many dependencies, because some compilers
4281 # like to wrap large dependency lists on column 80 (with \), and
4282 # we should not choose a depcomp mode which is confused by this.
4283 #
4284 # We need to recreate these files for each test, as the compiler may
4285 # overwrite some of them when testing with obscure command lines.
4286 # This happens at least with the AIX C compiler.
4287 : > sub/conftest.c
4288 for i in 1 2 3 4 5 6; do
4289 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4290 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4291 # Solaris 8's {/usr,}/bin/sh.
4292 touch sub/conftst$i.h
4293 done
4294 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4295
4296 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4297 # mode. It turns out that the SunPro C++ compiler does not properly
4298 # handle `-M -o', and we need to detect this. Also, some Intel
4299 # versions had trouble with output in subdirs
4300 am__obj=sub/conftest.${OBJEXT-o}
4301 am__minus_obj="-o $am__obj"
4302 case $depmode in
4303 gcc)
4304 # This depmode causes a compiler race in universal mode.
4305 test "$am__universal" = false || continue
4306 ;;
4307 nosideeffect)
4308 # after this tag, mechanisms are not by side-effect, so they'll
4309 # only be used when explicitly requested
4310 if test "x$enable_dependency_tracking" = xyes; then
4311 continue
4312 else
4313 break
4314 fi
4315 ;;
503902f9 4316 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
0a35513e
AH
4317 # This compiler won't grok `-c -o', but also, the minuso test has
4318 # not run yet. These depmodes are late enough in the game, and
4319 # so weak that their functioning should not be impacted.
4320 am__obj=conftest.${OBJEXT-o}
4321 am__minus_obj=
4322 ;;
4323 none) break ;;
4324 esac
4325 if depmode=$depmode \
4326 source=sub/conftest.c object=$am__obj \
4327 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4328 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4329 >/dev/null 2>conftest.err &&
4330 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4331 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4332 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4333 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4334 # icc doesn't choke on unknown options, it will just issue warnings
4335 # or remarks (even with -Werror). So we grep stderr for any message
4336 # that says an option was ignored or not supported.
4337 # When given -MP, icc 7.0 and 7.1 complain thusly:
4338 # icc: Command line warning: ignoring option '-M'; no argument required
4339 # The diagnosis changed in icc 8.0:
4340 # icc: Command line remark: option '-MP' not supported
4341 if (grep 'ignoring option' conftest.err ||
4342 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4343 am_cv_CC_dependencies_compiler_type=$depmode
4344 break
4345 fi
4346 fi
4347 done
4348
4349 cd ..
4350 rm -rf conftest.dir
4351else
4352 am_cv_CC_dependencies_compiler_type=none
4353fi
4354
4355fi
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4357$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4358CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4359
4360 if
4361 test "x$enable_dependency_tracking" != xno \
4362 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4363 am__fastdepCC_TRUE=
4364 am__fastdepCC_FALSE='#'
4365else
4366 am__fastdepCC_TRUE='#'
4367 am__fastdepCC_FALSE=
4368fi
4369
4370
4371ac_ext=cpp
4372ac_cpp='$CXXCPP $CPPFLAGS'
4373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4376if test -z "$CXX"; then
4377 if test -n "$CCC"; then
4378 CXX=$CCC
4379 else
4380 if test -n "$ac_tool_prefix"; then
4381 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4382 do
4383 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4384set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386$as_echo_n "checking for $ac_word... " >&6; }
4387if test "${ac_cv_prog_CXX+set}" = set; then :
4388 $as_echo_n "(cached) " >&6
4389else
4390 if test -n "$CXX"; then
4391 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4392else
4393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394for as_dir in $PATH
4395do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4403 fi
4404done
4405 done
4406IFS=$as_save_IFS
4407
4408fi
4409fi
4410CXX=$ac_cv_prog_CXX
4411if test -n "$CXX"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4413$as_echo "$CXX" >&6; }
4414else
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416$as_echo "no" >&6; }
4417fi
4418
4419
4420 test -n "$CXX" && break
4421 done
4422fi
4423if test -z "$CXX"; then
4424 ac_ct_CXX=$CXX
4425 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4426do
4427 # Extract the first word of "$ac_prog", so it can be a program name with args.
4428set dummy $ac_prog; ac_word=$2
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4430$as_echo_n "checking for $ac_word... " >&6; }
4431if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4432 $as_echo_n "(cached) " >&6
4433else
4434 if test -n "$ac_ct_CXX"; then
4435 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4436else
4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_prog_ac_ct_CXX="$ac_prog"
4445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4447 fi
4448done
4449 done
4450IFS=$as_save_IFS
4451
4452fi
4453fi
4454ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4455if test -n "$ac_ct_CXX"; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4457$as_echo "$ac_ct_CXX" >&6; }
4458else
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460$as_echo "no" >&6; }
4461fi
4462
4463
4464 test -n "$ac_ct_CXX" && break
4465done
4466
4467 if test "x$ac_ct_CXX" = x; then
4468 CXX="g++"
4469 else
4470 case $cross_compiling:$ac_tool_warned in
4471yes:)
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4474ac_tool_warned=yes ;;
4475esac
4476 CXX=$ac_ct_CXX
4477 fi
4478fi
4479
4480 fi
4481fi
4482# Provide some information about the compiler.
4483$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4484set X $ac_compile
4485ac_compiler=$2
4486for ac_option in --version -v -V -qversion; do
4487 { { ac_try="$ac_compiler $ac_option >&5"
4488case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491esac
4492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493$as_echo "$ac_try_echo"; } >&5
4494 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4495 ac_status=$?
4496 if test -s conftest.err; then
4497 sed '10a\
4498... rest of stderr output deleted ...
4499 10q' conftest.err >conftest.er1
4500 cat conftest.er1 >&5
4501 rm -f conftest.er1 conftest.err
4502 fi
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }
4505done
4506
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4508$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4509if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
4511else
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513/* end confdefs.h. */
4514
4515int
4516main ()
4517{
4518#ifndef __GNUC__
4519 choke me
4520#endif
4521
4522 ;
4523 return 0;
4524}
4525_ACEOF
4526if ac_fn_cxx_try_compile "$LINENO"; then :
4527 ac_compiler_gnu=yes
4528else
4529 ac_compiler_gnu=no
4530fi
4531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4533
4534fi
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4536$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4537if test $ac_compiler_gnu = yes; then
4538 GXX=yes
4539else
4540 GXX=
4541fi
4542ac_test_CXXFLAGS=${CXXFLAGS+set}
4543ac_save_CXXFLAGS=$CXXFLAGS
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4545$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4546if test "${ac_cv_prog_cxx_g+set}" = set; then :
4547 $as_echo_n "(cached) " >&6
4548else
4549 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4550 ac_cxx_werror_flag=yes
4551 ac_cv_prog_cxx_g=no
4552 CXXFLAGS="-g"
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554/* end confdefs.h. */
4555
4556int
4557main ()
4558{
4559
4560 ;
4561 return 0;
4562}
4563_ACEOF
4564if ac_fn_cxx_try_compile "$LINENO"; then :
4565 ac_cv_prog_cxx_g=yes
4566else
4567 CXXFLAGS=""
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569/* end confdefs.h. */
4570
4571int
4572main ()
4573{
4574
4575 ;
4576 return 0;
4577}
4578_ACEOF
4579if ac_fn_cxx_try_compile "$LINENO"; then :
4580
4581else
4582 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4583 CXXFLAGS="-g"
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585/* end confdefs.h. */
4586
4587int
4588main ()
4589{
4590
4591 ;
4592 return 0;
4593}
4594_ACEOF
4595if ac_fn_cxx_try_compile "$LINENO"; then :
4596 ac_cv_prog_cxx_g=yes
4597fi
4598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599fi
4600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601fi
4602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4604fi
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4606$as_echo "$ac_cv_prog_cxx_g" >&6; }
4607if test "$ac_test_CXXFLAGS" = set; then
4608 CXXFLAGS=$ac_save_CXXFLAGS
4609elif test $ac_cv_prog_cxx_g = yes; then
4610 if test "$GXX" = yes; then
4611 CXXFLAGS="-g -O2"
4612 else
4613 CXXFLAGS="-g"
4614 fi
4615else
4616 if test "$GXX" = yes; then
4617 CXXFLAGS="-O2"
4618 else
4619 CXXFLAGS=
4620 fi
4621fi
4622ac_ext=c
4623ac_cpp='$CPP $CPPFLAGS'
4624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626ac_compiler_gnu=$ac_cv_c_compiler_gnu
4627
4628depcc="$CXX" am_compiler_list=
4629
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4631$as_echo_n "checking dependency style of $depcc... " >&6; }
4632if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4633 $as_echo_n "(cached) " >&6
4634else
4635 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4636 # We make a subdir and do the tests there. Otherwise we can end up
4637 # making bogus files that we don't know about and never remove. For
4638 # instance it was reported that on HP-UX the gcc test will end up
4639 # making a dummy file named `D' -- because `-MD' means `put the output
4640 # in D'.
503902f9 4641 rm -rf conftest.dir
0a35513e
AH
4642 mkdir conftest.dir
4643 # Copy depcomp to subdir because otherwise we won't find it if we're
4644 # using a relative directory.
4645 cp "$am_depcomp" conftest.dir
4646 cd conftest.dir
4647 # We will build objects and dependencies in a subdirectory because
4648 # it helps to detect inapplicable dependency modes. For instance
4649 # both Tru64's cc and ICC support -MD to output dependencies as a
4650 # side effect of compilation, but ICC will put the dependencies in
4651 # the current directory while Tru64 will put them in the object
4652 # directory.
4653 mkdir sub
4654
4655 am_cv_CXX_dependencies_compiler_type=none
4656 if test "$am_compiler_list" = ""; then
4657 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4658 fi
4659 am__universal=false
4660 case " $depcc " in #(
4661 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4662 esac
4663
4664 for depmode in $am_compiler_list; do
4665 # Setup a source with many dependencies, because some compilers
4666 # like to wrap large dependency lists on column 80 (with \), and
4667 # we should not choose a depcomp mode which is confused by this.
4668 #
4669 # We need to recreate these files for each test, as the compiler may
4670 # overwrite some of them when testing with obscure command lines.
4671 # This happens at least with the AIX C compiler.
4672 : > sub/conftest.c
4673 for i in 1 2 3 4 5 6; do
4674 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4675 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4676 # Solaris 8's {/usr,}/bin/sh.
4677 touch sub/conftst$i.h
4678 done
4679 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4680
4681 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4682 # mode. It turns out that the SunPro C++ compiler does not properly
4683 # handle `-M -o', and we need to detect this. Also, some Intel
4684 # versions had trouble with output in subdirs
4685 am__obj=sub/conftest.${OBJEXT-o}
4686 am__minus_obj="-o $am__obj"
4687 case $depmode in
4688 gcc)
4689 # This depmode causes a compiler race in universal mode.
4690 test "$am__universal" = false || continue
4691 ;;
4692 nosideeffect)
4693 # after this tag, mechanisms are not by side-effect, so they'll
4694 # only be used when explicitly requested
4695 if test "x$enable_dependency_tracking" = xyes; then
4696 continue
4697 else
4698 break
4699 fi
4700 ;;
503902f9 4701 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
0a35513e
AH
4702 # This compiler won't grok `-c -o', but also, the minuso test has
4703 # not run yet. These depmodes are late enough in the game, and
4704 # so weak that their functioning should not be impacted.
4705 am__obj=conftest.${OBJEXT-o}
4706 am__minus_obj=
4707 ;;
4708 none) break ;;
4709 esac
4710 if depmode=$depmode \
4711 source=sub/conftest.c object=$am__obj \
4712 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4713 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4714 >/dev/null 2>conftest.err &&
4715 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4716 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4717 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4718 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4719 # icc doesn't choke on unknown options, it will just issue warnings
4720 # or remarks (even with -Werror). So we grep stderr for any message
4721 # that says an option was ignored or not supported.
4722 # When given -MP, icc 7.0 and 7.1 complain thusly:
4723 # icc: Command line warning: ignoring option '-M'; no argument required
4724 # The diagnosis changed in icc 8.0:
4725 # icc: Command line remark: option '-MP' not supported
4726 if (grep 'ignoring option' conftest.err ||
4727 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4728 am_cv_CXX_dependencies_compiler_type=$depmode
4729 break
4730 fi
4731 fi
4732 done
4733
4734 cd ..
4735 rm -rf conftest.dir
4736else
4737 am_cv_CXX_dependencies_compiler_type=none
4738fi
4739
4740fi
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4742$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4743CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4744
4745 if
4746 test "x$enable_dependency_tracking" != xno \
4747 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4748 am__fastdepCXX_TRUE=
4749 am__fastdepCXX_FALSE='#'
4750else
4751 am__fastdepCXX_TRUE='#'
4752 am__fastdepCXX_FALSE=
4753fi
4754
4755
4756# By default we simply use the C compiler to build assembly code.
4757
4758test "${CCAS+set}" = set || CCAS=$CC
4759test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4760
4761
4762
4763depcc="$CCAS" am_compiler_list=
4764
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4766$as_echo_n "checking dependency style of $depcc... " >&6; }
4767if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4769else
4770 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4771 # We make a subdir and do the tests there. Otherwise we can end up
4772 # making bogus files that we don't know about and never remove. For
4773 # instance it was reported that on HP-UX the gcc test will end up
4774 # making a dummy file named `D' -- because `-MD' means `put the output
4775 # in D'.
503902f9 4776 rm -rf conftest.dir
0a35513e
AH
4777 mkdir conftest.dir
4778 # Copy depcomp to subdir because otherwise we won't find it if we're
4779 # using a relative directory.
4780 cp "$am_depcomp" conftest.dir
4781 cd conftest.dir
4782 # We will build objects and dependencies in a subdirectory because
4783 # it helps to detect inapplicable dependency modes. For instance
4784 # both Tru64's cc and ICC support -MD to output dependencies as a
4785 # side effect of compilation, but ICC will put the dependencies in
4786 # the current directory while Tru64 will put them in the object
4787 # directory.
4788 mkdir sub
4789
4790 am_cv_CCAS_dependencies_compiler_type=none
4791 if test "$am_compiler_list" = ""; then
4792 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4793 fi
4794 am__universal=false
4795
4796
4797 for depmode in $am_compiler_list; do
4798 # Setup a source with many dependencies, because some compilers
4799 # like to wrap large dependency lists on column 80 (with \), and
4800 # we should not choose a depcomp mode which is confused by this.
4801 #
4802 # We need to recreate these files for each test, as the compiler may
4803 # overwrite some of them when testing with obscure command lines.
4804 # This happens at least with the AIX C compiler.
4805 : > sub/conftest.c
4806 for i in 1 2 3 4 5 6; do
4807 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4808 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4809 # Solaris 8's {/usr,}/bin/sh.
4810 touch sub/conftst$i.h
4811 done
4812 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4813
4814 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4815 # mode. It turns out that the SunPro C++ compiler does not properly
4816 # handle `-M -o', and we need to detect this. Also, some Intel
4817 # versions had trouble with output in subdirs
4818 am__obj=sub/conftest.${OBJEXT-o}
4819 am__minus_obj="-o $am__obj"
4820 case $depmode in
4821 gcc)
4822 # This depmode causes a compiler race in universal mode.
4823 test "$am__universal" = false || continue
4824 ;;
4825 nosideeffect)
4826 # after this tag, mechanisms are not by side-effect, so they'll
4827 # only be used when explicitly requested
4828 if test "x$enable_dependency_tracking" = xyes; then
4829 continue
4830 else
4831 break
4832 fi
4833 ;;
503902f9 4834 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
0a35513e
AH
4835 # This compiler won't grok `-c -o', but also, the minuso test has
4836 # not run yet. These depmodes are late enough in the game, and
4837 # so weak that their functioning should not be impacted.
4838 am__obj=conftest.${OBJEXT-o}
4839 am__minus_obj=
4840 ;;
4841 none) break ;;
4842 esac
4843 if depmode=$depmode \
4844 source=sub/conftest.c object=$am__obj \
4845 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4846 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4847 >/dev/null 2>conftest.err &&
4848 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4849 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4850 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4851 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4852 # icc doesn't choke on unknown options, it will just issue warnings
4853 # or remarks (even with -Werror). So we grep stderr for any message
4854 # that says an option was ignored or not supported.
4855 # When given -MP, icc 7.0 and 7.1 complain thusly:
4856 # icc: Command line warning: ignoring option '-M'; no argument required
4857 # The diagnosis changed in icc 8.0:
4858 # icc: Command line remark: option '-MP' not supported
4859 if (grep 'ignoring option' conftest.err ||
4860 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4861 am_cv_CCAS_dependencies_compiler_type=$depmode
4862 break
4863 fi
4864 fi
4865 done
4866
4867 cd ..
4868 rm -rf conftest.dir
4869else
4870 am_cv_CCAS_dependencies_compiler_type=none
4871fi
4872
4873fi
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4875$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4876CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4877
4878 if
4879 test "x$enable_dependency_tracking" != xno \
4880 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4881 am__fastdepCCAS_TRUE=
4882 am__fastdepCCAS_FALSE='#'
4883else
4884 am__fastdepCCAS_TRUE='#'
4885 am__fastdepCCAS_FALSE=
4886fi
4887
4888
4889
4890
4891
4892
4893# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4894# in XCFLAGS. But we need them in CFLAGS during configury. So put them
4895# in both places for now and restore CFLAGS at the end of config.
4896save_CFLAGS="$CFLAGS"
4897
4898# Find other programs we need.
4899if test -n "$ac_tool_prefix"; then
4900 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4901set dummy ${ac_tool_prefix}ar; ac_word=$2
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903$as_echo_n "checking for $ac_word... " >&6; }
4904if test "${ac_cv_prog_AR+set}" = set; then :
4905 $as_echo_n "(cached) " >&6
4906else
4907 if test -n "$AR"; then
4908 ac_cv_prog_AR="$AR" # Let the user override the test.
4909else
4910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_prog_AR="${ac_tool_prefix}ar"
4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4920 fi
4921done
4922 done
4923IFS=$as_save_IFS
4924
4925fi
4926fi
4927AR=$ac_cv_prog_AR
4928if test -n "$AR"; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4930$as_echo "$AR" >&6; }
4931else
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933$as_echo "no" >&6; }
4934fi
4935
4936
4937fi
4938if test -z "$ac_cv_prog_AR"; then
4939 ac_ct_AR=$AR
4940 # Extract the first word of "ar", so it can be a program name with args.
4941set dummy ar; ac_word=$2
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943$as_echo_n "checking for $ac_word... " >&6; }
4944if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
4946else
4947 if test -n "$ac_ct_AR"; then
4948 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4949else
4950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4957 ac_cv_prog_ac_ct_AR="ar"
4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4960 fi
4961done
4962 done
4963IFS=$as_save_IFS
4964
4965fi
4966fi
4967ac_ct_AR=$ac_cv_prog_ac_ct_AR
4968if test -n "$ac_ct_AR"; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4970$as_echo "$ac_ct_AR" >&6; }
4971else
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973$as_echo "no" >&6; }
4974fi
4975
4976 if test "x$ac_ct_AR" = x; then
4977 AR=""
4978 else
4979 case $cross_compiling:$ac_tool_warned in
4980yes:)
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4983ac_tool_warned=yes ;;
4984esac
4985 AR=$ac_ct_AR
4986 fi
4987else
4988 AR="$ac_cv_prog_AR"
4989fi
4990
4991if test -n "$ac_tool_prefix"; then
4992 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4993set dummy ${ac_tool_prefix}nm; ac_word=$2
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995$as_echo_n "checking for $ac_word... " >&6; }
4996if test "${ac_cv_prog_NM+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4998else
4999 if test -n "$NM"; then
5000 ac_cv_prog_NM="$NM" # Let the user override the test.
5001else
5002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003for as_dir in $PATH
5004do
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5009 ac_cv_prog_NM="${ac_tool_prefix}nm"
5010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 break 2
5012 fi
5013done
5014 done
5015IFS=$as_save_IFS
5016
5017fi
5018fi
5019NM=$ac_cv_prog_NM
5020if test -n "$NM"; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5022$as_echo "$NM" >&6; }
5023else
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025$as_echo "no" >&6; }
5026fi
5027
5028
5029fi
5030if test -z "$ac_cv_prog_NM"; then
5031 ac_ct_NM=$NM
5032 # Extract the first word of "nm", so it can be a program name with args.
5033set dummy nm; ac_word=$2
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035$as_echo_n "checking for $ac_word... " >&6; }
5036if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
5037 $as_echo_n "(cached) " >&6
5038else
5039 if test -n "$ac_ct_NM"; then
5040 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5041else
5042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043for as_dir in $PATH
5044do
5045 IFS=$as_save_IFS
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049 ac_cv_prog_ac_ct_NM="nm"
5050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 break 2
5052 fi
5053done
5054 done
5055IFS=$as_save_IFS
5056
5057fi
5058fi
5059ac_ct_NM=$ac_cv_prog_ac_ct_NM
5060if test -n "$ac_ct_NM"; then
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5062$as_echo "$ac_ct_NM" >&6; }
5063else
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065$as_echo "no" >&6; }
5066fi
5067
5068 if test "x$ac_ct_NM" = x; then
5069 NM=""
5070 else
5071 case $cross_compiling:$ac_tool_warned in
5072yes:)
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5075ac_tool_warned=yes ;;
5076esac
5077 NM=$ac_ct_NM
5078 fi
5079else
5080 NM="$ac_cv_prog_NM"
5081fi
5082
5083if test -n "$ac_tool_prefix"; then
5084 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5085set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087$as_echo_n "checking for $ac_word... " >&6; }
5088if test "${ac_cv_prog_RANLIB+set}" = set; then :
5089 $as_echo_n "(cached) " >&6
5090else
5091 if test -n "$RANLIB"; then
5092 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5093else
5094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095for as_dir in $PATH
5096do
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5104 fi
5105done
5106 done
5107IFS=$as_save_IFS
5108
5109fi
5110fi
5111RANLIB=$ac_cv_prog_RANLIB
5112if test -n "$RANLIB"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5114$as_echo "$RANLIB" >&6; }
5115else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117$as_echo "no" >&6; }
5118fi
5119
5120
5121fi
5122if test -z "$ac_cv_prog_RANLIB"; then
5123 ac_ct_RANLIB=$RANLIB
5124 # Extract the first word of "ranlib", so it can be a program name with args.
5125set dummy ranlib; ac_word=$2
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127$as_echo_n "checking for $ac_word... " >&6; }
5128if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
5130else
5131 if test -n "$ac_ct_RANLIB"; then
5132 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5133else
5134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135for as_dir in $PATH
5136do
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_prog_ac_ct_RANLIB="ranlib"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5144 fi
5145done
5146 done
5147IFS=$as_save_IFS
5148
5149fi
5150fi
5151ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5152if test -n "$ac_ct_RANLIB"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5154$as_echo "$ac_ct_RANLIB" >&6; }
5155else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157$as_echo "no" >&6; }
5158fi
5159
5160 if test "x$ac_ct_RANLIB" = x; then
5161 RANLIB="ranlib-not-found-in-path-error"
5162 else
5163 case $cross_compiling:$ac_tool_warned in
5164yes:)
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5167ac_tool_warned=yes ;;
5168esac
5169 RANLIB=$ac_ct_RANLIB
5170 fi
5171else
5172 RANLIB="$ac_cv_prog_RANLIB"
5173fi
5174
5175# Extract the first word of "perl", so it can be a program name with args.
5176set dummy perl; ac_word=$2
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178$as_echo_n "checking for $ac_word... " >&6; }
5179if test "${ac_cv_path_PERL+set}" = set; then :
5180 $as_echo_n "(cached) " >&6
5181else
5182 case $PERL in
5183 [\\/]* | ?:[\\/]*)
5184 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5185 ;;
5186 *)
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188for as_dir in $PATH
5189do
5190 IFS=$as_save_IFS
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 break 2
5197 fi
5198done
5199 done
5200IFS=$as_save_IFS
5201
5202 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
5203 ;;
5204esac
5205fi
5206PERL=$ac_cv_path_PERL
5207if test -n "$PERL"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5209$as_echo "$PERL" >&6; }
5210else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212$as_echo "no" >&6; }
5213fi
5214
5215
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5217$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5218set x ${MAKE-make}
5219ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5220if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5221 $as_echo_n "(cached) " >&6
5222else
5223 cat >conftest.make <<\_ACEOF
5224SHELL = /bin/sh
5225all:
5226 @echo '@@@%%%=$(MAKE)=@@@%%%'
5227_ACEOF
5228# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5229case `${MAKE-make} -f conftest.make 2>/dev/null` in
5230 *@@@%%%=?*=@@@%%%*)
5231 eval ac_cv_prog_make_${ac_make}_set=yes;;
5232 *)
5233 eval ac_cv_prog_make_${ac_make}_set=no;;
5234esac
5235rm -f conftest.make
5236fi
5237if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5239$as_echo "yes" >&6; }
5240 SET_MAKE=
5241else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243$as_echo "no" >&6; }
5244 SET_MAKE="MAKE=${MAKE-make}"
5245fi
5246
5247
5248
5249# See if makeinfo has been installed and is modern enough
5250# that we can use it.
5251
5252 # Extract the first word of "makeinfo", so it can be a program name with args.
5253set dummy makeinfo; ac_word=$2
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255$as_echo_n "checking for $ac_word... " >&6; }
5256if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
5257 $as_echo_n "(cached) " >&6
5258else
5259 if test -n "$MAKEINFO"; then
5260 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5261else
5262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263for as_dir in $PATH
5264do
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269 ac_cv_prog_MAKEINFO="makeinfo"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5272 fi
5273done
5274 done
5275IFS=$as_save_IFS
5276
5277fi
5278fi
5279MAKEINFO=$ac_cv_prog_MAKEINFO
5280if test -n "$MAKEINFO"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5282$as_echo "$MAKEINFO" >&6; }
5283else
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285$as_echo "no" >&6; }
5286fi
5287
5288
5289 if test -n "$MAKEINFO"; then
5290 # Found it, now check the version.
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5292$as_echo_n "checking for modern makeinfo... " >&6; }
5293if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
5294 $as_echo_n "(cached) " >&6
5295else
5296 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5297 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5298
5299 case $ac_prog_version in
5300 '') gcc_cv_prog_makeinfo_modern=no;;
5301 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
5302 *) gcc_cv_prog_makeinfo_modern=no;;
5303 esac
5304
5305fi
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5307$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5308 else
5309 gcc_cv_prog_makeinfo_modern=no
5310 fi
5311 if test $gcc_cv_prog_makeinfo_modern = no; then
5312 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5313 fi
5314
5315 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5316 BUILD_INFO_TRUE=
5317 BUILD_INFO_FALSE='#'
5318else
5319 BUILD_INFO_TRUE='#'
5320 BUILD_INFO_FALSE=
5321fi
5322
5323
5324
5325# Configure libtool
5326case `pwd` in
5327 *\ * | *\ *)
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5329$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5330esac
5331
5332
5333
5334macro_version='2.2.7a'
5335macro_revision='1.3134'
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349ltmain="$ac_aux_dir/ltmain.sh"
5350
5351# Backslashify metacharacters that are still active within
5352# double-quoted strings.
5353sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5354
5355# Same as above, but do not quote variable references.
5356double_quote_subst='s/\(["`\\]\)/\\\1/g'
5357
5358# Sed substitution to delay expansion of an escaped shell variable in a
5359# double_quote_subst'ed string.
5360delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5361
5362# Sed substitution to delay expansion of an escaped single quote.
5363delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5364
5365# Sed substitution to avoid accidental globbing in evaled expressions
5366no_glob_subst='s/\*/\\\*/g'
5367
5368ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5369ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5370ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5371
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5373$as_echo_n "checking how to print strings... " >&6; }
5374# Test print first, because it will be a builtin if present.
5375if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5376 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5377 ECHO='print -r --'
5378elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5379 ECHO='printf %s\n'
5380else
5381 # Use this function as a fallback that always works.
5382 func_fallback_echo ()
5383 {
5384 eval 'cat <<_LTECHO_EOF
5385$1
5386_LTECHO_EOF'
5387 }
5388 ECHO='func_fallback_echo'
5389fi
5390
5391# func_echo_all arg...
5392# Invoke $ECHO with all args, space-separated.
5393func_echo_all ()
5394{
5395 $ECHO ""
5396}
5397
5398case "$ECHO" in
5399 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5400$as_echo "printf" >&6; } ;;
5401 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5402$as_echo "print -r" >&6; } ;;
5403 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5404$as_echo "cat" >&6; } ;;
5405esac
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5421$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5422if test "${ac_cv_path_SED+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5424else
5425 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5426 for ac_i in 1 2 3 4 5 6 7; do
5427 ac_script="$ac_script$as_nl$ac_script"
5428 done
5429 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5430 { ac_script=; unset ac_script;}
5431 if test -z "$SED"; then
5432 ac_path_SED_found=false
5433 # Loop through the user's path and test for each of PROGNAME-LIST
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435for as_dir in $PATH
5436do
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_prog in sed gsed; do
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5442 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5443# Check for GNU ac_path_SED and select it if it is found.
5444 # Check for GNU $ac_path_SED
5445case `"$ac_path_SED" --version 2>&1` in
5446*GNU*)
5447 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5448*)
5449 ac_count=0
5450 $as_echo_n 0123456789 >"conftest.in"
5451 while :
5452 do
5453 cat "conftest.in" "conftest.in" >"conftest.tmp"
5454 mv "conftest.tmp" "conftest.in"
5455 cp "conftest.in" "conftest.nl"
5456 $as_echo '' >> "conftest.nl"
5457 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5459 as_fn_arith $ac_count + 1 && ac_count=$as_val
5460 if test $ac_count -gt ${ac_path_SED_max-0}; then
5461 # Best one so far, save it but keep looking for a better one
5462 ac_cv_path_SED="$ac_path_SED"
5463 ac_path_SED_max=$ac_count
5464 fi
5465 # 10*(2^10) chars as input seems more than enough
5466 test $ac_count -gt 10 && break
5467 done
5468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5469esac
5470
5471 $ac_path_SED_found && break 3
5472 done
5473 done
5474 done
5475IFS=$as_save_IFS
5476 if test -z "$ac_cv_path_SED"; then
5477 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5478 fi
5479else
5480 ac_cv_path_SED=$SED
5481fi
5482
5483fi
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5485$as_echo "$ac_cv_path_SED" >&6; }
5486 SED="$ac_cv_path_SED"
5487 rm -f conftest.sed
5488
5489test -z "$SED" && SED=sed
5490Xsed="$SED -e 1s/^X//"
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5503$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5504if test "${ac_cv_path_GREP+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5506else
5507 if test -z "$GREP"; then
5508 ac_path_GREP_found=false
5509 # Loop through the user's path and test for each of PROGNAME-LIST
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5512do
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_prog in grep ggrep; do
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5518 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5519# Check for GNU ac_path_GREP and select it if it is found.
5520 # Check for GNU $ac_path_GREP
5521case `"$ac_path_GREP" --version 2>&1` in
5522*GNU*)
5523 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5524*)
5525 ac_count=0
5526 $as_echo_n 0123456789 >"conftest.in"
5527 while :
5528 do
5529 cat "conftest.in" "conftest.in" >"conftest.tmp"
5530 mv "conftest.tmp" "conftest.in"
5531 cp "conftest.in" "conftest.nl"
5532 $as_echo 'GREP' >> "conftest.nl"
5533 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5535 as_fn_arith $ac_count + 1 && ac_count=$as_val
5536 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5537 # Best one so far, save it but keep looking for a better one
5538 ac_cv_path_GREP="$ac_path_GREP"
5539 ac_path_GREP_max=$ac_count
5540 fi
5541 # 10*(2^10) chars as input seems more than enough
5542 test $ac_count -gt 10 && break
5543 done
5544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5545esac
5546
5547 $ac_path_GREP_found && break 3
5548 done
5549 done
5550 done
5551IFS=$as_save_IFS
5552 if test -z "$ac_cv_path_GREP"; then
5553 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5554 fi
5555else
5556 ac_cv_path_GREP=$GREP
5557fi
5558
5559fi
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5561$as_echo "$ac_cv_path_GREP" >&6; }
5562 GREP="$ac_cv_path_GREP"
5563
5564
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5566$as_echo_n "checking for egrep... " >&6; }
5567if test "${ac_cv_path_EGREP+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5569else
5570 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5571 then ac_cv_path_EGREP="$GREP -E"
5572 else
5573 if test -z "$EGREP"; then
5574 ac_path_EGREP_found=false
5575 # Loop through the user's path and test for each of PROGNAME-LIST
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5578do
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_prog in egrep; do
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5584 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5585# Check for GNU ac_path_EGREP and select it if it is found.
5586 # Check for GNU $ac_path_EGREP
5587case `"$ac_path_EGREP" --version 2>&1` in
5588*GNU*)
5589 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5590*)
5591 ac_count=0
5592 $as_echo_n 0123456789 >"conftest.in"
5593 while :
5594 do
5595 cat "conftest.in" "conftest.in" >"conftest.tmp"
5596 mv "conftest.tmp" "conftest.in"
5597 cp "conftest.in" "conftest.nl"
5598 $as_echo 'EGREP' >> "conftest.nl"
5599 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5601 as_fn_arith $ac_count + 1 && ac_count=$as_val
5602 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5603 # Best one so far, save it but keep looking for a better one
5604 ac_cv_path_EGREP="$ac_path_EGREP"
5605 ac_path_EGREP_max=$ac_count
5606 fi
5607 # 10*(2^10) chars as input seems more than enough
5608 test $ac_count -gt 10 && break
5609 done
5610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5611esac
5612
5613 $ac_path_EGREP_found && break 3
5614 done
5615 done
5616 done
5617IFS=$as_save_IFS
5618 if test -z "$ac_cv_path_EGREP"; then
5619 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5620 fi
5621else
5622 ac_cv_path_EGREP=$EGREP
5623fi
5624
5625 fi
5626fi
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5628$as_echo "$ac_cv_path_EGREP" >&6; }
5629 EGREP="$ac_cv_path_EGREP"
5630
5631
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5633$as_echo_n "checking for fgrep... " >&6; }
5634if test "${ac_cv_path_FGREP+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5636else
5637 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5638 then ac_cv_path_FGREP="$GREP -F"
5639 else
5640 if test -z "$FGREP"; then
5641 ac_path_FGREP_found=false
5642 # Loop through the user's path and test for each of PROGNAME-LIST
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5645do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_prog in fgrep; do
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5651 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5652# Check for GNU ac_path_FGREP and select it if it is found.
5653 # Check for GNU $ac_path_FGREP
5654case `"$ac_path_FGREP" --version 2>&1` in
5655*GNU*)
5656 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5657*)
5658 ac_count=0
5659 $as_echo_n 0123456789 >"conftest.in"
5660 while :
5661 do
5662 cat "conftest.in" "conftest.in" >"conftest.tmp"
5663 mv "conftest.tmp" "conftest.in"
5664 cp "conftest.in" "conftest.nl"
5665 $as_echo 'FGREP' >> "conftest.nl"
5666 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5668 as_fn_arith $ac_count + 1 && ac_count=$as_val
5669 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5670 # Best one so far, save it but keep looking for a better one
5671 ac_cv_path_FGREP="$ac_path_FGREP"
5672 ac_path_FGREP_max=$ac_count
5673 fi
5674 # 10*(2^10) chars as input seems more than enough
5675 test $ac_count -gt 10 && break
5676 done
5677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5678esac
5679
5680 $ac_path_FGREP_found && break 3
5681 done
5682 done
5683 done
5684IFS=$as_save_IFS
5685 if test -z "$ac_cv_path_FGREP"; then
5686 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5687 fi
5688else
5689 ac_cv_path_FGREP=$FGREP
5690fi
5691
5692 fi
5693fi
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5695$as_echo "$ac_cv_path_FGREP" >&6; }
5696 FGREP="$ac_cv_path_FGREP"
5697
5698
5699test -z "$GREP" && GREP=grep
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719# Check whether --with-gnu-ld was given.
5720if test "${with_gnu_ld+set}" = set; then :
5721 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5722else
5723 with_gnu_ld=no
5724fi
5725
5726ac_prog=ld
5727if test "$GCC" = yes; then
5728 # Check if gcc -print-prog-name=ld gives a path.
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5730$as_echo_n "checking for ld used by $CC... " >&6; }
5731 case $host in
5732 *-*-mingw*)
5733 # gcc leaves a trailing carriage return which upsets mingw
5734 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5735 *)
5736 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5737 esac
5738 case $ac_prog in
5739 # Accept absolute paths.
5740 [\\/]* | ?:[\\/]*)
5741 re_direlt='/[^/][^/]*/\.\./'
5742 # Canonicalize the pathname of ld
5743 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5744 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5745 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5746 done
5747 test -z "$LD" && LD="$ac_prog"
5748 ;;
5749 "")
5750 # If it fails, then pretend we aren't using GCC.
5751 ac_prog=ld
5752 ;;
5753 *)
5754 # If it is relative, then search for the first ld in PATH.
5755 with_gnu_ld=unknown
5756 ;;
5757 esac
5758elif test "$with_gnu_ld" = yes; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5760$as_echo_n "checking for GNU ld... " >&6; }
5761else
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5763$as_echo_n "checking for non-GNU ld... " >&6; }
5764fi
5765if test "${lt_cv_path_LD+set}" = set; then :
5766 $as_echo_n "(cached) " >&6
5767else
5768 if test -z "$LD"; then
5769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5770 for ac_dir in $PATH; do
5771 IFS="$lt_save_ifs"
5772 test -z "$ac_dir" && ac_dir=.
5773 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5774 lt_cv_path_LD="$ac_dir/$ac_prog"
5775 # Check to see if the program is GNU ld. I'd rather use --version,
5776 # but apparently some variants of GNU ld only accept -v.
5777 # Break only if it was the GNU/non-GNU ld that we prefer.
5778 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5779 *GNU* | *'with BFD'*)
5780 test "$with_gnu_ld" != no && break
5781 ;;
5782 *)
5783 test "$with_gnu_ld" != yes && break
5784 ;;
5785 esac
5786 fi
5787 done
5788 IFS="$lt_save_ifs"
5789else
5790 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5791fi
5792fi
5793
5794LD="$lt_cv_path_LD"
5795if test -n "$LD"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5797$as_echo "$LD" >&6; }
5798else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800$as_echo "no" >&6; }
5801fi
5802test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5804$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5805if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5807else
5808 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5809case `$LD -v 2>&1 </dev/null` in
5810*GNU* | *'with BFD'*)
5811 lt_cv_prog_gnu_ld=yes
5812 ;;
5813*)
5814 lt_cv_prog_gnu_ld=no
5815 ;;
5816esac
5817fi
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5819$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5820with_gnu_ld=$lt_cv_prog_gnu_ld
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5831$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5832if test "${lt_cv_path_NM+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5834else
5835 if test -n "$NM"; then
5836 # Let the user override the test.
5837 lt_cv_path_NM="$NM"
5838else
5839 lt_nm_to_check="${ac_tool_prefix}nm"
5840 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5841 lt_nm_to_check="$lt_nm_to_check nm"
5842 fi
5843 for lt_tmp_nm in $lt_nm_to_check; do
5844 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5845 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5846 IFS="$lt_save_ifs"
5847 test -z "$ac_dir" && ac_dir=.
5848 tmp_nm="$ac_dir/$lt_tmp_nm"
5849 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5850 # Check to see if the nm accepts a BSD-compat flag.
5851 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5852 # nm: unknown option "B" ignored
5853 # Tru64's nm complains that /dev/null is an invalid object file
5854 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5855 */dev/null* | *'Invalid file or object type'*)
5856 lt_cv_path_NM="$tmp_nm -B"
5857 break
5858 ;;
5859 *)
5860 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5861 */dev/null*)
5862 lt_cv_path_NM="$tmp_nm -p"
5863 break
5864 ;;
5865 *)
5866 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5867 continue # so that we can try to find one that supports BSD flags
5868 ;;
5869 esac
5870 ;;
5871 esac
5872 fi
5873 done
5874 IFS="$lt_save_ifs"
5875 done
5876 : ${lt_cv_path_NM=no}
5877fi
5878fi
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5880$as_echo "$lt_cv_path_NM" >&6; }
5881if test "$lt_cv_path_NM" != "no"; then
5882 NM="$lt_cv_path_NM"
5883else
5884 # Didn't find any BSD compatible name lister, look for dumpbin.
5885 if test -n "$DUMPBIN"; then :
5886 # Let the user override the test.
5887 else
5888 if test -n "$ac_tool_prefix"; then
5889 for ac_prog in dumpbin "link -dump"
5890 do
5891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5892set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894$as_echo_n "checking for $ac_word... " >&6; }
5895if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5896 $as_echo_n "(cached) " >&6
5897else
5898 if test -n "$DUMPBIN"; then
5899 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5900else
5901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902for as_dir in $PATH
5903do
5904 IFS=$as_save_IFS
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5908 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 break 2
5911 fi
5912done
5913 done
5914IFS=$as_save_IFS
5915
5916fi
5917fi
5918DUMPBIN=$ac_cv_prog_DUMPBIN
5919if test -n "$DUMPBIN"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5921$as_echo "$DUMPBIN" >&6; }
5922else
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924$as_echo "no" >&6; }
5925fi
5926
5927
5928 test -n "$DUMPBIN" && break
5929 done
5930fi
5931if test -z "$DUMPBIN"; then
5932 ac_ct_DUMPBIN=$DUMPBIN
5933 for ac_prog in dumpbin "link -dump"
5934do
5935 # Extract the first word of "$ac_prog", so it can be a program name with args.
5936set dummy $ac_prog; ac_word=$2
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938$as_echo_n "checking for $ac_word... " >&6; }
5939if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
5941else
5942 if test -n "$ac_ct_DUMPBIN"; then
5943 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5944else
5945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946for as_dir in $PATH
5947do
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 break 2
5955 fi
5956done
5957 done
5958IFS=$as_save_IFS
5959
5960fi
5961fi
5962ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5963if test -n "$ac_ct_DUMPBIN"; then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5965$as_echo "$ac_ct_DUMPBIN" >&6; }
5966else
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968$as_echo "no" >&6; }
5969fi
5970
5971
5972 test -n "$ac_ct_DUMPBIN" && break
5973done
5974
5975 if test "x$ac_ct_DUMPBIN" = x; then
5976 DUMPBIN=":"
5977 else
5978 case $cross_compiling:$ac_tool_warned in
5979yes:)
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5982ac_tool_warned=yes ;;
5983esac
5984 DUMPBIN=$ac_ct_DUMPBIN
5985 fi
5986fi
5987
5988 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5989 *COFF*)
5990 DUMPBIN="$DUMPBIN -symbols"
5991 ;;
5992 *)
5993 DUMPBIN=:
5994 ;;
5995 esac
5996 fi
5997
5998 if test "$DUMPBIN" != ":"; then
5999 NM="$DUMPBIN"
6000 fi
6001fi
6002test -z "$NM" && NM=nm
6003
6004
6005
6006
6007
6008
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6010$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6011if test "${lt_cv_nm_interface+set}" = set; then :
6012 $as_echo_n "(cached) " >&6
6013else
6014 lt_cv_nm_interface="BSD nm"
6015 echo "int some_variable = 0;" > conftest.$ac_ext
6016 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6017 (eval "$ac_compile" 2>conftest.err)
6018 cat conftest.err >&5
6019 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6020 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6021 cat conftest.err >&5
6022 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6023 cat conftest.out >&5
6024 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6025 lt_cv_nm_interface="MS dumpbin"
6026 fi
6027 rm -f conftest*
6028fi
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6030$as_echo "$lt_cv_nm_interface" >&6; }
6031
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6033$as_echo_n "checking whether ln -s works... " >&6; }
6034LN_S=$as_ln_s
6035if test "$LN_S" = "ln -s"; then
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6037$as_echo "yes" >&6; }
6038else
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6040$as_echo "no, using $LN_S" >&6; }
6041fi
6042
6043# find the maximum length of command line arguments
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6045$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6046if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6047 $as_echo_n "(cached) " >&6
6048else
6049 i=0
6050 teststring="ABCD"
6051
6052 case $build_os in
6053 msdosdjgpp*)
6054 # On DJGPP, this test can blow up pretty badly due to problems in libc
6055 # (any single argument exceeding 2000 bytes causes a buffer overrun
6056 # during glob expansion). Even if it were fixed, the result of this
6057 # check would be larger than it should be.
6058 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6059 ;;
6060
6061 gnu*)
6062 # Under GNU Hurd, this test is not required because there is
6063 # no limit to the length of command line arguments.
6064 # Libtool will interpret -1 as no limit whatsoever
6065 lt_cv_sys_max_cmd_len=-1;
6066 ;;
6067
6068 cygwin* | mingw* | cegcc*)
6069 # On Win9x/ME, this test blows up -- it succeeds, but takes
6070 # about 5 minutes as the teststring grows exponentially.
6071 # Worse, since 9x/ME are not pre-emptively multitasking,
6072 # you end up with a "frozen" computer, even though with patience
6073 # the test eventually succeeds (with a max line length of 256k).
6074 # Instead, let's just punt: use the minimum linelength reported by
6075 # all of the supported platforms: 8192 (on NT/2K/XP).
6076 lt_cv_sys_max_cmd_len=8192;
6077 ;;
6078
6079 mint*)
6080 # On MiNT this can take a long time and run out of memory.
6081 lt_cv_sys_max_cmd_len=8192;
6082 ;;
6083
6084 amigaos*)
6085 # On AmigaOS with pdksh, this test takes hours, literally.
6086 # So we just punt and use a minimum line length of 8192.
6087 lt_cv_sys_max_cmd_len=8192;
6088 ;;
6089
6090 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6091 # This has been around since 386BSD, at least. Likely further.
6092 if test -x /sbin/sysctl; then
6093 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6094 elif test -x /usr/sbin/sysctl; then
6095 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6096 else
6097 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6098 fi
6099 # And add a safety zone
6100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6102 ;;
6103
6104 interix*)
6105 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6106 lt_cv_sys_max_cmd_len=196608
6107 ;;
6108
6109 osf*)
6110 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6111 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6112 # nice to cause kernel panics so lets avoid the loop below.
6113 # First set a reasonable default.
6114 lt_cv_sys_max_cmd_len=16384
6115 #
6116 if test -x /sbin/sysconfig; then
6117 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6118 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6119 esac
6120 fi
6121 ;;
6122 sco3.2v5*)
6123 lt_cv_sys_max_cmd_len=102400
6124 ;;
6125 sysv5* | sco5v6* | sysv4.2uw2*)
6126 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6127 if test -n "$kargmax"; then
6128 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6129 else
6130 lt_cv_sys_max_cmd_len=32768
6131 fi
6132 ;;
6133 *)
6134 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6135 if test -n "$lt_cv_sys_max_cmd_len"; then
6136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6138 else
6139 # Make teststring a little bigger before we do anything with it.
6140 # a 1K string should be a reasonable start.
6141 for i in 1 2 3 4 5 6 7 8 ; do
6142 teststring=$teststring$teststring
6143 done
6144 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6145 # If test is not a shell built-in, we'll probably end up computing a
6146 # maximum length that is only half of the actual maximum length, but
6147 # we can't tell.
6148 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6149 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6150 test $i != 17 # 1/2 MB should be enough
6151 do
6152 i=`expr $i + 1`
6153 teststring=$teststring$teststring
6154 done
6155 # Only check the string length outside the loop.
6156 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6157 teststring=
6158 # Add a significant safety factor because C++ compilers can tack on
6159 # massive amounts of additional arguments before passing them to the
6160 # linker. It appears as though 1/2 is a usable value.
6161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6162 fi
6163 ;;
6164 esac
6165
6166fi
6167
6168if test -n $lt_cv_sys_max_cmd_len ; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6170$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6171else
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6173$as_echo "none" >&6; }
6174fi
6175max_cmd_len=$lt_cv_sys_max_cmd_len
6176
6177
6178
6179
6180
6181
6182: ${CP="cp -f"}
6183: ${MV="mv -f"}
6184: ${RM="rm -f"}
6185
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6187$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6188# Try some XSI features
6189xsi_shell=no
6190( _lt_dummy="a/b/c"
6191 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6192 = c,a/b,, \
6193 && eval 'test $(( 1 + 1 )) -eq 2 \
6194 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6195 && xsi_shell=yes
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6197$as_echo "$xsi_shell" >&6; }
6198
6199
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6201$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6202lt_shell_append=no
6203( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6204 >/dev/null 2>&1 \
6205 && lt_shell_append=yes
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6207$as_echo "$lt_shell_append" >&6; }
6208
6209
6210if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6211 lt_unset=unset
6212else
6213 lt_unset=false
6214fi
6215
6216
6217
6218
6219
6220# test EBCDIC or ASCII
6221case `echo X|tr X '\101'` in
6222 A) # ASCII based system
6223 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6224 lt_SP2NL='tr \040 \012'
6225 lt_NL2SP='tr \015\012 \040\040'
6226 ;;
6227 *) # EBCDIC based system
6228 lt_SP2NL='tr \100 \n'
6229 lt_NL2SP='tr \r\n \100\100'
6230 ;;
6231esac
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6242$as_echo_n "checking for $LD option to reload object files... " >&6; }
6243if test "${lt_cv_ld_reload_flag+set}" = set; then :
6244 $as_echo_n "(cached) " >&6
6245else
6246 lt_cv_ld_reload_flag='-r'
6247fi
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6249$as_echo "$lt_cv_ld_reload_flag" >&6; }
6250reload_flag=$lt_cv_ld_reload_flag
6251case $reload_flag in
6252"" | " "*) ;;
6253*) reload_flag=" $reload_flag" ;;
6254esac
6255reload_cmds='$LD$reload_flag -o $output$reload_objs'
6256case $host_os in
6257 darwin*)
6258 if test "$GCC" = yes; then
6259 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6260 else
6261 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6262 fi
6263 ;;
6264esac
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274if test -n "$ac_tool_prefix"; then
6275 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6276set dummy ${ac_tool_prefix}objdump; ac_word=$2
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278$as_echo_n "checking for $ac_word... " >&6; }
6279if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6280 $as_echo_n "(cached) " >&6
6281else
6282 if test -n "$OBJDUMP"; then
6283 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6284else
6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286for as_dir in $PATH
6287do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6292 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6295 fi
6296done
6297 done
6298IFS=$as_save_IFS
6299
6300fi
6301fi
6302OBJDUMP=$ac_cv_prog_OBJDUMP
6303if test -n "$OBJDUMP"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6305$as_echo "$OBJDUMP" >&6; }
6306else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308$as_echo "no" >&6; }
6309fi
6310
6311
6312fi
6313if test -z "$ac_cv_prog_OBJDUMP"; then
6314 ac_ct_OBJDUMP=$OBJDUMP
6315 # Extract the first word of "objdump", so it can be a program name with args.
6316set dummy objdump; ac_word=$2
6317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318$as_echo_n "checking for $ac_word... " >&6; }
6319if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6320 $as_echo_n "(cached) " >&6
6321else
6322 if test -n "$ac_ct_OBJDUMP"; then
6323 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6324else
6325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326for as_dir in $PATH
6327do
6328 IFS=$as_save_IFS
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6332 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 break 2
6335 fi
6336done
6337 done
6338IFS=$as_save_IFS
6339
6340fi
6341fi
6342ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6343if test -n "$ac_ct_OBJDUMP"; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6345$as_echo "$ac_ct_OBJDUMP" >&6; }
6346else
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348$as_echo "no" >&6; }
6349fi
6350
6351 if test "x$ac_ct_OBJDUMP" = x; then
6352 OBJDUMP="false"
6353 else
6354 case $cross_compiling:$ac_tool_warned in
6355yes:)
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6358ac_tool_warned=yes ;;
6359esac
6360 OBJDUMP=$ac_ct_OBJDUMP
6361 fi
6362else
6363 OBJDUMP="$ac_cv_prog_OBJDUMP"
6364fi
6365
6366test -z "$OBJDUMP" && OBJDUMP=objdump
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6377$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6378if test "${lt_cv_deplibs_check_method+set}" = set; then :
6379 $as_echo_n "(cached) " >&6
6380else
6381 lt_cv_file_magic_cmd='$MAGIC_CMD'
6382lt_cv_file_magic_test_file=
6383lt_cv_deplibs_check_method='unknown'
6384# Need to set the preceding variable on all platforms that support
6385# interlibrary dependencies.
6386# 'none' -- dependencies not supported.
6387# `unknown' -- same as none, but documents that we really don't know.
6388# 'pass_all' -- all dependencies passed with no checks.
6389# 'test_compile' -- check by making test program.
6390# 'file_magic [[regex]]' -- check by looking for files in library path
6391# which responds to the $file_magic_cmd with a given extended regex.
6392# If you have `file' or equivalent on your system and you're not sure
6393# whether `pass_all' will *always* work, you probably want this one.
6394
6395case $host_os in
6396aix[4-9]*)
6397 lt_cv_deplibs_check_method=pass_all
6398 ;;
6399
6400beos*)
6401 lt_cv_deplibs_check_method=pass_all
6402 ;;
6403
6404bsdi[45]*)
6405 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6406 lt_cv_file_magic_cmd='/usr/bin/file -L'
6407 lt_cv_file_magic_test_file=/shlib/libc.so
6408 ;;
6409
6410cygwin*)
6411 # func_win32_libid is a shell function defined in ltmain.sh
6412 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6413 lt_cv_file_magic_cmd='func_win32_libid'
6414 ;;
6415
6416mingw* | pw32*)
6417 # Base MSYS/MinGW do not provide the 'file' command needed by
6418 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6419 # unless we find 'file', for example because we are cross-compiling.
6420 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6421 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6422 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6423 lt_cv_file_magic_cmd='func_win32_libid'
6424 else
6425 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6426 lt_cv_file_magic_cmd='$OBJDUMP -f'
6427 fi
6428 ;;
6429
6430cegcc*)
6431 # use the weaker test based on 'objdump'. See mingw*.
6432 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6433 lt_cv_file_magic_cmd='$OBJDUMP -f'
6434 ;;
6435
6436darwin* | rhapsody*)
6437 lt_cv_deplibs_check_method=pass_all
6438 ;;
6439
6440freebsd* | dragonfly*)
6441 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6442 case $host_cpu in
6443 i*86 )
6444 # Not sure whether the presence of OpenBSD here was a mistake.
6445 # Let's accept both of them until this is cleared up.
6446 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6447 lt_cv_file_magic_cmd=/usr/bin/file
6448 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6449 ;;
6450 esac
6451 else
6452 lt_cv_deplibs_check_method=pass_all
6453 fi
6454 ;;
6455
6456gnu*)
6457 lt_cv_deplibs_check_method=pass_all
6458 ;;
6459
6460haiku*)
6461 lt_cv_deplibs_check_method=pass_all
6462 ;;
6463
6464hpux10.20* | hpux11*)
6465 lt_cv_file_magic_cmd=/usr/bin/file
6466 case $host_cpu in
6467 ia64*)
6468 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6469 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6470 ;;
6471 hppa*64*)
6472 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]'
6473 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6474 ;;
6475 *)
6476 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6477 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6478 ;;
6479 esac
6480 ;;
6481
6482interix[3-9]*)
6483 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6485 ;;
6486
6487irix5* | irix6* | nonstopux*)
6488 case $LD in
6489 *-32|*"-32 ") libmagic=32-bit;;
6490 *-n32|*"-n32 ") libmagic=N32;;
6491 *-64|*"-64 ") libmagic=64-bit;;
6492 *) libmagic=never-match;;
6493 esac
6494 lt_cv_deplibs_check_method=pass_all
6495 ;;
6496
6497# This must be Linux ELF.
6498linux* | k*bsd*-gnu | kopensolaris*-gnu)
6499 lt_cv_deplibs_check_method=pass_all
6500 ;;
6501
6502netbsd*)
6503 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6505 else
6506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6507 fi
6508 ;;
6509
6510newos6*)
6511 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6512 lt_cv_file_magic_cmd=/usr/bin/file
6513 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6514 ;;
6515
6516*nto* | *qnx*)
6517 lt_cv_deplibs_check_method=pass_all
6518 ;;
6519
6520openbsd*)
6521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6523 else
6524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6525 fi
6526 ;;
6527
6528osf3* | osf4* | osf5*)
6529 lt_cv_deplibs_check_method=pass_all
6530 ;;
6531
6532rdos*)
6533 lt_cv_deplibs_check_method=pass_all
6534 ;;
6535
6536solaris*)
6537 lt_cv_deplibs_check_method=pass_all
6538 ;;
6539
6540sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6541 lt_cv_deplibs_check_method=pass_all
6542 ;;
6543
6544sysv4 | sysv4.3*)
6545 case $host_vendor in
6546 motorola)
6547 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]'
6548 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6549 ;;
6550 ncr)
6551 lt_cv_deplibs_check_method=pass_all
6552 ;;
6553 sequent)
6554 lt_cv_file_magic_cmd='/bin/file'
6555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6556 ;;
6557 sni)
6558 lt_cv_file_magic_cmd='/bin/file'
6559 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6560 lt_cv_file_magic_test_file=/lib/libc.so
6561 ;;
6562 siemens)
6563 lt_cv_deplibs_check_method=pass_all
6564 ;;
6565 pc)
6566 lt_cv_deplibs_check_method=pass_all
6567 ;;
6568 esac
6569 ;;
6570
6571tpf*)
6572 lt_cv_deplibs_check_method=pass_all
6573 ;;
6574esac
6575
6576fi
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6578$as_echo "$lt_cv_deplibs_check_method" >&6; }
6579file_magic_cmd=$lt_cv_file_magic_cmd
6580deplibs_check_method=$lt_cv_deplibs_check_method
6581test -z "$deplibs_check_method" && deplibs_check_method=unknown
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594if test -n "$ac_tool_prefix"; then
6595 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6596set dummy ${ac_tool_prefix}ar; ac_word=$2
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598$as_echo_n "checking for $ac_word... " >&6; }
6599if test "${ac_cv_prog_AR+set}" = set; then :
6600 $as_echo_n "(cached) " >&6
6601else
6602 if test -n "$AR"; then
6603 ac_cv_prog_AR="$AR" # Let the user override the test.
6604else
6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606for as_dir in $PATH
6607do
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_prog_AR="${ac_tool_prefix}ar"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6615 fi
6616done
6617 done
6618IFS=$as_save_IFS
6619
6620fi
6621fi
6622AR=$ac_cv_prog_AR
6623if test -n "$AR"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6625$as_echo "$AR" >&6; }
6626else
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628$as_echo "no" >&6; }
6629fi
6630
6631
6632fi
6633if test -z "$ac_cv_prog_AR"; then
6634 ac_ct_AR=$AR
6635 # Extract the first word of "ar", so it can be a program name with args.
6636set dummy ar; ac_word=$2
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638$as_echo_n "checking for $ac_word... " >&6; }
6639if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6640 $as_echo_n "(cached) " >&6
6641else
6642 if test -n "$ac_ct_AR"; then
6643 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6644else
6645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646for as_dir in $PATH
6647do
6648 IFS=$as_save_IFS
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6652 ac_cv_prog_ac_ct_AR="ar"
6653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 break 2
6655 fi
6656done
6657 done
6658IFS=$as_save_IFS
6659
6660fi
6661fi
6662ac_ct_AR=$ac_cv_prog_ac_ct_AR
6663if test -n "$ac_ct_AR"; then
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6665$as_echo "$ac_ct_AR" >&6; }
6666else
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668$as_echo "no" >&6; }
6669fi
6670
6671 if test "x$ac_ct_AR" = x; then
6672 AR="false"
6673 else
6674 case $cross_compiling:$ac_tool_warned in
6675yes:)
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6678ac_tool_warned=yes ;;
6679esac
6680 AR=$ac_ct_AR
6681 fi
6682else
6683 AR="$ac_cv_prog_AR"
6684fi
6685
6686test -z "$AR" && AR=ar
6687test -z "$AR_FLAGS" && AR_FLAGS=cru
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699if test -n "$ac_tool_prefix"; then
6700 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6701set dummy ${ac_tool_prefix}strip; ac_word=$2
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703$as_echo_n "checking for $ac_word... " >&6; }
6704if test "${ac_cv_prog_STRIP+set}" = set; then :
6705 $as_echo_n "(cached) " >&6
6706else
6707 if test -n "$STRIP"; then
6708 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6709else
6710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711for as_dir in $PATH
6712do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6720 fi
6721done
6722 done
6723IFS=$as_save_IFS
6724
6725fi
6726fi
6727STRIP=$ac_cv_prog_STRIP
6728if test -n "$STRIP"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6730$as_echo "$STRIP" >&6; }
6731else
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733$as_echo "no" >&6; }
6734fi
6735
6736
6737fi
6738if test -z "$ac_cv_prog_STRIP"; then
6739 ac_ct_STRIP=$STRIP
6740 # Extract the first word of "strip", so it can be a program name with args.
6741set dummy strip; ac_word=$2
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743$as_echo_n "checking for $ac_word... " >&6; }
6744if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6745 $as_echo_n "(cached) " >&6
6746else
6747 if test -n "$ac_ct_STRIP"; then
6748 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6749else
6750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751for as_dir in $PATH
6752do
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_prog_ac_ct_STRIP="strip"
6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6760 fi
6761done
6762 done
6763IFS=$as_save_IFS
6764
6765fi
6766fi
6767ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6768if test -n "$ac_ct_STRIP"; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6770$as_echo "$ac_ct_STRIP" >&6; }
6771else
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773$as_echo "no" >&6; }
6774fi
6775
6776 if test "x$ac_ct_STRIP" = x; then
6777 STRIP=":"
6778 else
6779 case $cross_compiling:$ac_tool_warned in
6780yes:)
6781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6783ac_tool_warned=yes ;;
6784esac
6785 STRIP=$ac_ct_STRIP
6786 fi
6787else
6788 STRIP="$ac_cv_prog_STRIP"
6789fi
6790
6791test -z "$STRIP" && STRIP=:
6792
6793
6794
6795
6796
6797
6798if test -n "$ac_tool_prefix"; then
6799 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6800set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802$as_echo_n "checking for $ac_word... " >&6; }
6803if test "${ac_cv_prog_RANLIB+set}" = set; then :
6804 $as_echo_n "(cached) " >&6
6805else
6806 if test -n "$RANLIB"; then
6807 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6808else
6809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810for as_dir in $PATH
6811do
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6816 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6819 fi
6820done
6821 done
6822IFS=$as_save_IFS
6823
6824fi
6825fi
6826RANLIB=$ac_cv_prog_RANLIB
6827if test -n "$RANLIB"; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6829$as_echo "$RANLIB" >&6; }
6830else
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832$as_echo "no" >&6; }
6833fi
6834
6835
6836fi
6837if test -z "$ac_cv_prog_RANLIB"; then
6838 ac_ct_RANLIB=$RANLIB
6839 # Extract the first word of "ranlib", so it can be a program name with args.
6840set dummy ranlib; ac_word=$2
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842$as_echo_n "checking for $ac_word... " >&6; }
6843if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6844 $as_echo_n "(cached) " >&6
6845else
6846 if test -n "$ac_ct_RANLIB"; then
6847 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6848else
6849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850for as_dir in $PATH
6851do
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6856 ac_cv_prog_ac_ct_RANLIB="ranlib"
6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6859 fi
6860done
6861 done
6862IFS=$as_save_IFS
6863
6864fi
6865fi
6866ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6867if test -n "$ac_ct_RANLIB"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6869$as_echo "$ac_ct_RANLIB" >&6; }
6870else
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872$as_echo "no" >&6; }
6873fi
6874
6875 if test "x$ac_ct_RANLIB" = x; then
6876 RANLIB=":"
6877 else
6878 case $cross_compiling:$ac_tool_warned in
6879yes:)
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6882ac_tool_warned=yes ;;
6883esac
6884 RANLIB=$ac_ct_RANLIB
6885 fi
6886else
6887 RANLIB="$ac_cv_prog_RANLIB"
6888fi
6889
6890test -z "$RANLIB" && RANLIB=:
6891
6892
6893
6894
6895
6896
6897# Determine commands to create old-style static archives.
6898old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6899old_postinstall_cmds='chmod 644 $oldlib'
6900old_postuninstall_cmds=
6901
6902if test -n "$RANLIB"; then
6903 case $host_os in
6904 openbsd*)
6905 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6906 ;;
6907 *)
6908 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6909 ;;
6910 esac
6911 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6912fi
6913
6914case $host_os in
6915 darwin*)
6916 lock_old_archive_extraction=yes ;;
6917 *)
6918 lock_old_archive_extraction=no ;;
6919esac
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959# If no C compiler was specified, use CC.
6960LTCC=${LTCC-"$CC"}
6961
6962# If no C compiler flags were specified, use CFLAGS.
6963LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6964
6965# Allow CC to be a program name with arguments.
6966compiler=$CC
6967
6968
6969# Check for command to grab the raw symbol name followed by C symbol from nm.
6970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6971$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6972if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6973 $as_echo_n "(cached) " >&6
6974else
6975
6976# These are sane defaults that work on at least a few old systems.
6977# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6978
6979# Character class describing NM global symbol codes.
6980symcode='[BCDEGRST]'
6981
6982# Regexp to match symbols that can be accessed directly from C.
6983sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6984
6985# Define system-specific variables.
6986case $host_os in
6987aix*)
6988 symcode='[BCDT]'
6989 ;;
6990cygwin* | mingw* | pw32* | cegcc*)
6991 symcode='[ABCDGISTW]'
6992 ;;
6993hpux*)
6994 if test "$host_cpu" = ia64; then
6995 symcode='[ABCDEGRST]'
6996 fi
6997 ;;
6998irix* | nonstopux*)
6999 symcode='[BCDEGRST]'
7000 ;;
7001osf*)
7002 symcode='[BCDEGQRST]'
7003 ;;
7004solaris*)
7005 symcode='[BDRT]'
7006 ;;
7007sco3.2v5*)
7008 symcode='[DT]'
7009 ;;
7010sysv4.2uw2*)
7011 symcode='[DT]'
7012 ;;
7013sysv5* | sco5v6* | unixware* | OpenUNIX*)
7014 symcode='[ABDT]'
7015 ;;
7016sysv4)
7017 symcode='[DFNSTU]'
7018 ;;
7019esac
7020
7021# If we're using GNU nm, then use its standard symbol codes.
7022case `$NM -V 2>&1` in
7023*GNU* | *'with BFD'*)
7024 symcode='[ABCDGIRSTW]' ;;
7025esac
7026
7027# Transform an extracted symbol line into a proper C declaration.
7028# Some systems (esp. on ia64) link data and code symbols differently,
7029# so use this general approach.
7030lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7031
7032# Transform an extracted symbol line into symbol name and symbol address
7033lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7034lt_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'"
7035
7036# Handle CRLF in mingw tool chain
7037opt_cr=
7038case $build_os in
7039mingw*)
7040 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7041 ;;
7042esac
7043
7044# Try without a prefix underscore, then with it.
7045for ac_symprfx in "" "_"; do
7046
7047 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7048 symxfrm="\\1 $ac_symprfx\\2 \\2"
7049
7050 # Write the raw and C identifiers.
7051 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7052 # Fake it for dumpbin and say T for any non-static function
7053 # and D for any global variable.
7054 # Also find C++ and __fastcall symbols from MSVC++,
7055 # which start with @ or ?.
7056 lt_cv_sys_global_symbol_pipe="$AWK '"\
7057" {last_section=section; section=\$ 3};"\
7058" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7059" \$ 0!~/External *\|/{next};"\
7060" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7061" {if(hide[section]) next};"\
7062" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7063" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7064" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7065" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7066" ' prfx=^$ac_symprfx"
7067 else
7068 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7069 fi
7070
7071 # Check to see that the pipe works correctly.
7072 pipe_works=no
7073
7074 rm -f conftest*
7075 cat > conftest.$ac_ext <<_LT_EOF
7076#ifdef __cplusplus
7077extern "C" {
7078#endif
7079char nm_test_var;
7080void nm_test_func(void);
7081void nm_test_func(void){}
7082#ifdef __cplusplus
7083}
7084#endif
7085int main(){nm_test_var='a';nm_test_func();return(0);}
7086_LT_EOF
7087
7088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7089 (eval $ac_compile) 2>&5
7090 ac_status=$?
7091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7092 test $ac_status = 0; }; then
7093 # Now try to grab the symbols.
7094 nlist=conftest.nm
7095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7096 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7097 ac_status=$?
7098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7099 test $ac_status = 0; } && test -s "$nlist"; then
7100 # Try sorting and uniquifying the output.
7101 if sort "$nlist" | uniq > "$nlist"T; then
7102 mv -f "$nlist"T "$nlist"
7103 else
7104 rm -f "$nlist"T
7105 fi
7106
7107 # Make sure that we snagged all the symbols we need.
7108 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7109 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7110 cat <<_LT_EOF > conftest.$ac_ext
7111#ifdef __cplusplus
7112extern "C" {
7113#endif
7114
7115_LT_EOF
7116 # Now generate the symbol file.
7117 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7118
7119 cat <<_LT_EOF >> conftest.$ac_ext
7120
7121/* The mapping between symbol names and symbols. */
7122const struct {
7123 const char *name;
7124 void *address;
7125}
7126lt__PROGRAM__LTX_preloaded_symbols[] =
7127{
7128 { "@PROGRAM@", (void *) 0 },
7129_LT_EOF
7130 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7131 cat <<\_LT_EOF >> conftest.$ac_ext
7132 {0, (void *) 0}
7133};
7134
7135/* This works around a problem in FreeBSD linker */
7136#ifdef FREEBSD_WORKAROUND
7137static const void *lt_preloaded_setup() {
7138 return lt__PROGRAM__LTX_preloaded_symbols;
7139}
7140#endif
7141
7142#ifdef __cplusplus
7143}
7144#endif
7145_LT_EOF
7146 # Now try linking the two files.
7147 mv conftest.$ac_objext conftstm.$ac_objext
7148 lt_save_LIBS="$LIBS"
7149 lt_save_CFLAGS="$CFLAGS"
7150 LIBS="conftstm.$ac_objext"
7151 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7153 (eval $ac_link) 2>&5
7154 ac_status=$?
7155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7156 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7157 pipe_works=yes
7158 fi
7159 LIBS="$lt_save_LIBS"
7160 CFLAGS="$lt_save_CFLAGS"
7161 else
7162 echo "cannot find nm_test_func in $nlist" >&5
7163 fi
7164 else
7165 echo "cannot find nm_test_var in $nlist" >&5
7166 fi
7167 else
7168 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7169 fi
7170 else
7171 echo "$progname: failed program was:" >&5
7172 cat conftest.$ac_ext >&5
7173 fi
7174 rm -rf conftest* conftst*
7175
7176 # Do not use the global_symbol_pipe unless it works.
7177 if test "$pipe_works" = yes; then
7178 break
7179 else
7180 lt_cv_sys_global_symbol_pipe=
7181 fi
7182done
7183
7184fi
7185
7186if test -z "$lt_cv_sys_global_symbol_pipe"; then
7187 lt_cv_sys_global_symbol_to_cdecl=
7188fi
7189if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7191$as_echo "failed" >&6; }
7192else
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7194$as_echo "ok" >&6; }
7195fi
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219# Check whether --enable-libtool-lock was given.
7220if test "${enable_libtool_lock+set}" = set; then :
7221 enableval=$enable_libtool_lock;
7222fi
7223
7224test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7225
7226# Some flags need to be propagated to the compiler or linker for good
7227# libtool support.
7228case $host in
7229ia64-*-hpux*)
7230 # Find out which ABI we are using.
7231 echo 'int i;' > conftest.$ac_ext
7232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7233 (eval $ac_compile) 2>&5
7234 ac_status=$?
7235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7236 test $ac_status = 0; }; then
7237 case `/usr/bin/file conftest.$ac_objext` in
7238 *ELF-32*)
7239 HPUX_IA64_MODE="32"
7240 ;;
7241 *ELF-64*)
7242 HPUX_IA64_MODE="64"
7243 ;;
7244 esac
7245 fi
7246 rm -rf conftest*
7247 ;;
7248*-*-irix6*)
7249 # Find out which ABI we are using.
7250 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7252 (eval $ac_compile) 2>&5
7253 ac_status=$?
7254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7255 test $ac_status = 0; }; then
7256 if test "$lt_cv_prog_gnu_ld" = yes; then
7257 case `/usr/bin/file conftest.$ac_objext` in
7258 *32-bit*)
7259 LD="${LD-ld} -melf32bsmip"
7260 ;;
7261 *N32*)
7262 LD="${LD-ld} -melf32bmipn32"
7263 ;;
7264 *64-bit*)
7265 LD="${LD-ld} -melf64bmip"
7266 ;;
7267 esac
7268 else
7269 case `/usr/bin/file conftest.$ac_objext` in
7270 *32-bit*)
7271 LD="${LD-ld} -32"
7272 ;;
7273 *N32*)
7274 LD="${LD-ld} -n32"
7275 ;;
7276 *64-bit*)
7277 LD="${LD-ld} -64"
7278 ;;
7279 esac
7280 fi
7281 fi
7282 rm -rf conftest*
7283 ;;
7284
3cbe17f7 7285x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
0a35513e
AH
7286s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7287 # Find out which ABI we are using.
7288 echo 'int i;' > conftest.$ac_ext
7289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7290 (eval $ac_compile) 2>&5
7291 ac_status=$?
7292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7293 test $ac_status = 0; }; then
7294 case `/usr/bin/file conftest.o` in
7295 *32-bit*)
7296 case $host in
7297 x86_64-*kfreebsd*-gnu)
7298 LD="${LD-ld} -m elf_i386_fbsd"
7299 ;;
7300 x86_64-*linux*)
e6d5f8c9
L
7301 case `/usr/bin/file conftest.o` in
7302 *x86-64*)
7303 LD="${LD-ld} -m elf32_x86_64"
7304 ;;
7305 *)
7306 LD="${LD-ld} -m elf_i386"
7307 ;;
7308 esac
0a35513e 7309 ;;
3cbe17f7
AM
7310 powerpc64le-*linux*)
7311 LD="${LD-ld} -m elf32lppclinux"
7312 ;;
7313 powerpc64-*linux*)
0a35513e
AH
7314 LD="${LD-ld} -m elf32ppclinux"
7315 ;;
7316 s390x-*linux*)
7317 LD="${LD-ld} -m elf_s390"
7318 ;;
7319 sparc64-*linux*)
7320 LD="${LD-ld} -m elf32_sparc"
7321 ;;
7322 esac
7323 ;;
7324 *64-bit*)
7325 case $host in
7326 x86_64-*kfreebsd*-gnu)
7327 LD="${LD-ld} -m elf_x86_64_fbsd"
7328 ;;
7329 x86_64-*linux*)
7330 LD="${LD-ld} -m elf_x86_64"
7331 ;;
3cbe17f7
AM
7332 powerpcle-*linux*)
7333 LD="${LD-ld} -m elf64lppc"
7334 ;;
7335 powerpc-*linux*)
0a35513e
AH
7336 LD="${LD-ld} -m elf64ppc"
7337 ;;
7338 s390*-*linux*|s390*-*tpf*)
7339 LD="${LD-ld} -m elf64_s390"
7340 ;;
7341 sparc*-*linux*)
7342 LD="${LD-ld} -m elf64_sparc"
7343 ;;
7344 esac
7345 ;;
7346 esac
7347 fi
7348 rm -rf conftest*
7349 ;;
7350
7351*-*-sco3.2v5*)
7352 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7353 SAVE_CFLAGS="$CFLAGS"
7354 CFLAGS="$CFLAGS -belf"
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7356$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7357if test "${lt_cv_cc_needs_belf+set}" = set; then :
7358 $as_echo_n "(cached) " >&6
7359else
7360 ac_ext=c
7361ac_cpp='$CPP $CPPFLAGS'
7362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7364ac_compiler_gnu=$ac_cv_c_compiler_gnu
7365
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367/* end confdefs.h. */
7368
7369int
7370main ()
7371{
7372
7373 ;
7374 return 0;
7375}
7376_ACEOF
7377if ac_fn_c_try_link "$LINENO"; then :
7378 lt_cv_cc_needs_belf=yes
7379else
7380 lt_cv_cc_needs_belf=no
7381fi
7382rm -f core conftest.err conftest.$ac_objext \
7383 conftest$ac_exeext conftest.$ac_ext
7384 ac_ext=c
7385ac_cpp='$CPP $CPPFLAGS'
7386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7388ac_compiler_gnu=$ac_cv_c_compiler_gnu
7389
7390fi
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7392$as_echo "$lt_cv_cc_needs_belf" >&6; }
7393 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7394 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7395 CFLAGS="$SAVE_CFLAGS"
7396 fi
7397 ;;
7398sparc*-*solaris*)
7399 # Find out which ABI we are using.
7400 echo 'int i;' > conftest.$ac_ext
7401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7402 (eval $ac_compile) 2>&5
7403 ac_status=$?
7404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7405 test $ac_status = 0; }; then
7406 case `/usr/bin/file conftest.o` in
7407 *64-bit*)
7408 case $lt_cv_prog_gnu_ld in
7409 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7410 *)
7411 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7412 LD="${LD-ld} -64"
7413 fi
7414 ;;
7415 esac
7416 ;;
7417 esac
7418 fi
7419 rm -rf conftest*
7420 ;;
7421esac
7422
7423need_locks="$enable_libtool_lock"
7424
7425
7426 case $host_os in
7427 rhapsody* | darwin*)
7428 if test -n "$ac_tool_prefix"; then
7429 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7430set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432$as_echo_n "checking for $ac_word... " >&6; }
7433if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7434 $as_echo_n "(cached) " >&6
7435else
7436 if test -n "$DSYMUTIL"; then
7437 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7438else
7439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440for as_dir in $PATH
7441do
7442 IFS=$as_save_IFS
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 break 2
7449 fi
7450done
7451 done
7452IFS=$as_save_IFS
7453
7454fi
7455fi
7456DSYMUTIL=$ac_cv_prog_DSYMUTIL
7457if test -n "$DSYMUTIL"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7459$as_echo "$DSYMUTIL" >&6; }
7460else
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462$as_echo "no" >&6; }
7463fi
7464
7465
7466fi
7467if test -z "$ac_cv_prog_DSYMUTIL"; then
7468 ac_ct_DSYMUTIL=$DSYMUTIL
7469 # Extract the first word of "dsymutil", so it can be a program name with args.
7470set dummy dsymutil; ac_word=$2
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472$as_echo_n "checking for $ac_word... " >&6; }
7473if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7474 $as_echo_n "(cached) " >&6
7475else
7476 if test -n "$ac_ct_DSYMUTIL"; then
7477 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7478else
7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480for as_dir in $PATH
7481do
7482 IFS=$as_save_IFS
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7486 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 break 2
7489 fi
7490done
7491 done
7492IFS=$as_save_IFS
7493
7494fi
7495fi
7496ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7497if test -n "$ac_ct_DSYMUTIL"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7499$as_echo "$ac_ct_DSYMUTIL" >&6; }
7500else
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502$as_echo "no" >&6; }
7503fi
7504
7505 if test "x$ac_ct_DSYMUTIL" = x; then
7506 DSYMUTIL=":"
7507 else
7508 case $cross_compiling:$ac_tool_warned in
7509yes:)
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512ac_tool_warned=yes ;;
7513esac
7514 DSYMUTIL=$ac_ct_DSYMUTIL
7515 fi
7516else
7517 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7518fi
7519
7520 if test -n "$ac_tool_prefix"; then
7521 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7522set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524$as_echo_n "checking for $ac_word... " >&6; }
7525if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7526 $as_echo_n "(cached) " >&6
7527else
7528 if test -n "$NMEDIT"; then
7529 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7530else
7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7538 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 break 2
7541 fi
7542done
7543 done
7544IFS=$as_save_IFS
7545
7546fi
7547fi
7548NMEDIT=$ac_cv_prog_NMEDIT
7549if test -n "$NMEDIT"; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7551$as_echo "$NMEDIT" >&6; }
7552else
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554$as_echo "no" >&6; }
7555fi
7556
7557
7558fi
7559if test -z "$ac_cv_prog_NMEDIT"; then
7560 ac_ct_NMEDIT=$NMEDIT
7561 # Extract the first word of "nmedit", so it can be a program name with args.
7562set dummy nmedit; ac_word=$2
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564$as_echo_n "checking for $ac_word... " >&6; }
7565if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
7567else
7568 if test -n "$ac_ct_NMEDIT"; then
7569 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7570else
7571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572for as_dir in $PATH
7573do
7574 IFS=$as_save_IFS
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 break 2
7581 fi
7582done
7583 done
7584IFS=$as_save_IFS
7585
7586fi
7587fi
7588ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7589if test -n "$ac_ct_NMEDIT"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7591$as_echo "$ac_ct_NMEDIT" >&6; }
7592else
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594$as_echo "no" >&6; }
7595fi
7596
7597 if test "x$ac_ct_NMEDIT" = x; then
7598 NMEDIT=":"
7599 else
7600 case $cross_compiling:$ac_tool_warned in
7601yes:)
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7604ac_tool_warned=yes ;;
7605esac
7606 NMEDIT=$ac_ct_NMEDIT
7607 fi
7608else
7609 NMEDIT="$ac_cv_prog_NMEDIT"
7610fi
7611
7612 if test -n "$ac_tool_prefix"; then
7613 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7614set dummy ${ac_tool_prefix}lipo; ac_word=$2
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616$as_echo_n "checking for $ac_word... " >&6; }
7617if test "${ac_cv_prog_LIPO+set}" = set; then :
7618 $as_echo_n "(cached) " >&6
7619else
7620 if test -n "$LIPO"; then
7621 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7622else
7623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624for as_dir in $PATH
7625do
7626 IFS=$as_save_IFS
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7630 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 break 2
7633 fi
7634done
7635 done
7636IFS=$as_save_IFS
7637
7638fi
7639fi
7640LIPO=$ac_cv_prog_LIPO
7641if test -n "$LIPO"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7643$as_echo "$LIPO" >&6; }
7644else
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646$as_echo "no" >&6; }
7647fi
7648
7649
7650fi
7651if test -z "$ac_cv_prog_LIPO"; then
7652 ac_ct_LIPO=$LIPO
7653 # Extract the first word of "lipo", so it can be a program name with args.
7654set dummy lipo; ac_word=$2
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656$as_echo_n "checking for $ac_word... " >&6; }
7657if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
7659else
7660 if test -n "$ac_ct_LIPO"; then
7661 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7662else
7663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664for as_dir in $PATH
7665do
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670 ac_cv_prog_ac_ct_LIPO="lipo"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 break 2
7673 fi
7674done
7675 done
7676IFS=$as_save_IFS
7677
7678fi
7679fi
7680ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7681if test -n "$ac_ct_LIPO"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7683$as_echo "$ac_ct_LIPO" >&6; }
7684else
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686$as_echo "no" >&6; }
7687fi
7688
7689 if test "x$ac_ct_LIPO" = x; then
7690 LIPO=":"
7691 else
7692 case $cross_compiling:$ac_tool_warned in
7693yes:)
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696ac_tool_warned=yes ;;
7697esac
7698 LIPO=$ac_ct_LIPO
7699 fi
7700else
7701 LIPO="$ac_cv_prog_LIPO"
7702fi
7703
7704 if test -n "$ac_tool_prefix"; then
7705 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7706set dummy ${ac_tool_prefix}otool; ac_word=$2
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708$as_echo_n "checking for $ac_word... " >&6; }
7709if test "${ac_cv_prog_OTOOL+set}" = set; then :
7710 $as_echo_n "(cached) " >&6
7711else
7712 if test -n "$OTOOL"; then
7713 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7714else
7715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716for as_dir in $PATH
7717do
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7722 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7725 fi
7726done
7727 done
7728IFS=$as_save_IFS
7729
7730fi
7731fi
7732OTOOL=$ac_cv_prog_OTOOL
7733if test -n "$OTOOL"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7735$as_echo "$OTOOL" >&6; }
7736else
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738$as_echo "no" >&6; }
7739fi
7740
7741
7742fi
7743if test -z "$ac_cv_prog_OTOOL"; then
7744 ac_ct_OTOOL=$OTOOL
7745 # Extract the first word of "otool", so it can be a program name with args.
7746set dummy otool; ac_word=$2
7747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748$as_echo_n "checking for $ac_word... " >&6; }
7749if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7750 $as_echo_n "(cached) " >&6
7751else
7752 if test -n "$ac_ct_OTOOL"; then
7753 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7754else
7755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756for as_dir in $PATH
7757do
7758 IFS=$as_save_IFS
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7762 ac_cv_prog_ac_ct_OTOOL="otool"
7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 break 2
7765 fi
7766done
7767 done
7768IFS=$as_save_IFS
7769
7770fi
7771fi
7772ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7773if test -n "$ac_ct_OTOOL"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7775$as_echo "$ac_ct_OTOOL" >&6; }
7776else
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778$as_echo "no" >&6; }
7779fi
7780
7781 if test "x$ac_ct_OTOOL" = x; then
7782 OTOOL=":"
7783 else
7784 case $cross_compiling:$ac_tool_warned in
7785yes:)
7786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788ac_tool_warned=yes ;;
7789esac
7790 OTOOL=$ac_ct_OTOOL
7791 fi
7792else
7793 OTOOL="$ac_cv_prog_OTOOL"
7794fi
7795
7796 if test -n "$ac_tool_prefix"; then
7797 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7798set dummy ${ac_tool_prefix}otool64; ac_word=$2
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800$as_echo_n "checking for $ac_word... " >&6; }
7801if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7803else
7804 if test -n "$OTOOL64"; then
7805 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7806else
7807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808for as_dir in $PATH
7809do
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7817 fi
7818done
7819 done
7820IFS=$as_save_IFS
7821
7822fi
7823fi
7824OTOOL64=$ac_cv_prog_OTOOL64
7825if test -n "$OTOOL64"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7827$as_echo "$OTOOL64" >&6; }
7828else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830$as_echo "no" >&6; }
7831fi
7832
7833
7834fi
7835if test -z "$ac_cv_prog_OTOOL64"; then
7836 ac_ct_OTOOL64=$OTOOL64
7837 # Extract the first word of "otool64", so it can be a program name with args.
7838set dummy otool64; ac_word=$2
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840$as_echo_n "checking for $ac_word... " >&6; }
7841if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7842 $as_echo_n "(cached) " >&6
7843else
7844 if test -n "$ac_ct_OTOOL64"; then
7845 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7846else
7847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848for as_dir in $PATH
7849do
7850 IFS=$as_save_IFS
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854 ac_cv_prog_ac_ct_OTOOL64="otool64"
7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 break 2
7857 fi
7858done
7859 done
7860IFS=$as_save_IFS
7861
7862fi
7863fi
7864ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7865if test -n "$ac_ct_OTOOL64"; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7867$as_echo "$ac_ct_OTOOL64" >&6; }
7868else
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870$as_echo "no" >&6; }
7871fi
7872
7873 if test "x$ac_ct_OTOOL64" = x; then
7874 OTOOL64=":"
7875 else
7876 case $cross_compiling:$ac_tool_warned in
7877yes:)
7878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7880ac_tool_warned=yes ;;
7881esac
7882 OTOOL64=$ac_ct_OTOOL64
7883 fi
7884else
7885 OTOOL64="$ac_cv_prog_OTOOL64"
7886fi
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7915$as_echo_n "checking for -single_module linker flag... " >&6; }
7916if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7917 $as_echo_n "(cached) " >&6
7918else
7919 lt_cv_apple_cc_single_mod=no
7920 if test -z "${LT_MULTI_MODULE}"; then
7921 # By default we will add the -single_module flag. You can override
7922 # by either setting the environment variable LT_MULTI_MODULE
7923 # non-empty at configure time, or by adding -multi_module to the
7924 # link flags.
7925 rm -rf libconftest.dylib*
7926 echo "int foo(void){return 1;}" > conftest.c
7927 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7928-dynamiclib -Wl,-single_module conftest.c" >&5
7929 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7930 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7931 _lt_result=$?
7932 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7933 lt_cv_apple_cc_single_mod=yes
7934 else
7935 cat conftest.err >&5
7936 fi
7937 rm -rf libconftest.dylib*
7938 rm -f conftest.*
7939 fi
7940fi
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7942$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7944$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7945if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7947else
7948 lt_cv_ld_exported_symbols_list=no
7949 save_LDFLAGS=$LDFLAGS
7950 echo "_main" > conftest.sym
7951 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953/* end confdefs.h. */
7954
7955int
7956main ()
7957{
7958
7959 ;
7960 return 0;
7961}
7962_ACEOF
7963if ac_fn_c_try_link "$LINENO"; then :
7964 lt_cv_ld_exported_symbols_list=yes
7965else
7966 lt_cv_ld_exported_symbols_list=no
7967fi
7968rm -f core conftest.err conftest.$ac_objext \
7969 conftest$ac_exeext conftest.$ac_ext
7970 LDFLAGS="$save_LDFLAGS"
7971
7972fi
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7974$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7976$as_echo_n "checking for -force_load linker flag... " >&6; }
7977if test "${lt_cv_ld_force_load+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
7979else
7980 lt_cv_ld_force_load=no
7981 cat > conftest.c << _LT_EOF
7982int forced_loaded() { return 2;}
7983_LT_EOF
7984 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7985 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7986 echo "$AR cru libconftest.a conftest.o" >&5
7987 $AR cru libconftest.a conftest.o 2>&5
7988 cat > conftest.c << _LT_EOF
7989int main() { return 0;}
7990_LT_EOF
7991 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7992 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7993 _lt_result=$?
7994 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7995 lt_cv_ld_force_load=yes
7996 else
7997 cat conftest.err >&5
7998 fi
7999 rm -f conftest.err libconftest.a conftest conftest.c
8000 rm -rf conftest.dSYM
8001
8002fi
8003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8004$as_echo "$lt_cv_ld_force_load" >&6; }
8005 case $host_os in
8006 rhapsody* | darwin1.[012])
8007 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8008 darwin1.*)
8009 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8010 darwin*) # darwin 5.x on
8011 # if running on 10.5 or later, the deployment target defaults
8012 # to the OS version, if on x86, and 10.4, the deployment
8013 # target defaults to 10.4. Don't you love it?
8014 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8015 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8016 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 8017 10.[012][,.]*)
0a35513e
AH
8018 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8019 10.*)
8020 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8021 esac
8022 ;;
8023 esac
8024 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8025 _lt_dar_single_mod='$single_module'
8026 fi
8027 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8028 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8029 else
8030 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8031 fi
8032 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8033 _lt_dsymutil='~$DSYMUTIL $lib || :'
8034 else
8035 _lt_dsymutil=
8036 fi
8037 ;;
8038 esac
8039
8040ac_ext=c
8041ac_cpp='$CPP $CPPFLAGS'
8042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8044ac_compiler_gnu=$ac_cv_c_compiler_gnu
8045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8046$as_echo_n "checking how to run the C preprocessor... " >&6; }
8047# On Suns, sometimes $CPP names a directory.
8048if test -n "$CPP" && test -d "$CPP"; then
8049 CPP=
8050fi
8051if test -z "$CPP"; then
8052 if test "${ac_cv_prog_CPP+set}" = set; then :
8053 $as_echo_n "(cached) " >&6
8054else
8055 # Double quotes because CPP needs to be expanded
8056 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8057 do
8058 ac_preproc_ok=false
8059for ac_c_preproc_warn_flag in '' yes
8060do
8061 # Use a header file that comes with gcc, so configuring glibc
8062 # with a fresh cross-compiler works.
8063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8064 # <limits.h> exists even on freestanding compilers.
8065 # On the NeXT, cc -E runs the code through the compiler's parser,
8066 # not just through cpp. "Syntax error" is here to catch this case.
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068/* end confdefs.h. */
8069#ifdef __STDC__
8070# include <limits.h>
8071#else
8072# include <assert.h>
8073#endif
8074 Syntax error
8075_ACEOF
8076if ac_fn_c_try_cpp "$LINENO"; then :
8077
8078else
8079 # Broken: fails on valid input.
8080continue
8081fi
8082rm -f conftest.err conftest.$ac_ext
8083
8084 # OK, works on sane cases. Now check whether nonexistent headers
8085 # can be detected and how.
8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087/* end confdefs.h. */
8088#include <ac_nonexistent.h>
8089_ACEOF
8090if ac_fn_c_try_cpp "$LINENO"; then :
8091 # Broken: success on invalid input.
8092continue
8093else
8094 # Passes both tests.
8095ac_preproc_ok=:
8096break
8097fi
8098rm -f conftest.err conftest.$ac_ext
8099
8100done
8101# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8102rm -f conftest.err conftest.$ac_ext
8103if $ac_preproc_ok; then :
8104 break
8105fi
8106
8107 done
8108 ac_cv_prog_CPP=$CPP
8109
8110fi
8111 CPP=$ac_cv_prog_CPP
8112else
8113 ac_cv_prog_CPP=$CPP
8114fi
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8116$as_echo "$CPP" >&6; }
8117ac_preproc_ok=false
8118for ac_c_preproc_warn_flag in '' yes
8119do
8120 # Use a header file that comes with gcc, so configuring glibc
8121 # with a fresh cross-compiler works.
8122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8123 # <limits.h> exists even on freestanding compilers.
8124 # On the NeXT, cc -E runs the code through the compiler's parser,
8125 # not just through cpp. "Syntax error" is here to catch this case.
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127/* end confdefs.h. */
8128#ifdef __STDC__
8129# include <limits.h>
8130#else
8131# include <assert.h>
8132#endif
8133 Syntax error
8134_ACEOF
8135if ac_fn_c_try_cpp "$LINENO"; then :
8136
8137else
8138 # Broken: fails on valid input.
8139continue
8140fi
8141rm -f conftest.err conftest.$ac_ext
8142
8143 # OK, works on sane cases. Now check whether nonexistent headers
8144 # can be detected and how.
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146/* end confdefs.h. */
8147#include <ac_nonexistent.h>
8148_ACEOF
8149if ac_fn_c_try_cpp "$LINENO"; then :
8150 # Broken: success on invalid input.
8151continue
8152else
8153 # Passes both tests.
8154ac_preproc_ok=:
8155break
8156fi
8157rm -f conftest.err conftest.$ac_ext
8158
8159done
8160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8161rm -f conftest.err conftest.$ac_ext
8162if $ac_preproc_ok; then :
8163
8164else
8165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8167as_fn_error "C preprocessor \"$CPP\" fails sanity check
8168See \`config.log' for more details." "$LINENO" 5; }
8169fi
8170
8171ac_ext=c
8172ac_cpp='$CPP $CPPFLAGS'
8173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8175ac_compiler_gnu=$ac_cv_c_compiler_gnu
8176
8177
8178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8179$as_echo_n "checking for ANSI C header files... " >&6; }
8180if test "${ac_cv_header_stdc+set}" = set; then :
8181 $as_echo_n "(cached) " >&6
8182else
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184/* end confdefs.h. */
8185#include <stdlib.h>
8186#include <stdarg.h>
8187#include <string.h>
8188#include <float.h>
8189
8190int
8191main ()
8192{
8193
8194 ;
8195 return 0;
8196}
8197_ACEOF
8198if ac_fn_c_try_compile "$LINENO"; then :
8199 ac_cv_header_stdc=yes
8200else
8201 ac_cv_header_stdc=no
8202fi
8203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8204
8205if test $ac_cv_header_stdc = yes; then
8206 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208/* end confdefs.h. */
8209#include <string.h>
8210
8211_ACEOF
8212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8213 $EGREP "memchr" >/dev/null 2>&1; then :
8214
8215else
8216 ac_cv_header_stdc=no
8217fi
8218rm -f conftest*
8219
8220fi
8221
8222if test $ac_cv_header_stdc = yes; then
8223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225/* end confdefs.h. */
8226#include <stdlib.h>
8227
8228_ACEOF
8229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8230 $EGREP "free" >/dev/null 2>&1; then :
8231
8232else
8233 ac_cv_header_stdc=no
8234fi
8235rm -f conftest*
8236
8237fi
8238
8239if test $ac_cv_header_stdc = yes; then
8240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8241 if test "$cross_compiling" = yes; then :
8242 :
8243else
8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245/* end confdefs.h. */
8246#include <ctype.h>
8247#include <stdlib.h>
8248#if ((' ' & 0x0FF) == 0x020)
8249# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8250# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8251#else
8252# define ISLOWER(c) \
8253 (('a' <= (c) && (c) <= 'i') \
8254 || ('j' <= (c) && (c) <= 'r') \
8255 || ('s' <= (c) && (c) <= 'z'))
8256# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8257#endif
8258
8259#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8260int
8261main ()
8262{
8263 int i;
8264 for (i = 0; i < 256; i++)
8265 if (XOR (islower (i), ISLOWER (i))
8266 || toupper (i) != TOUPPER (i))
8267 return 2;
8268 return 0;
8269}
8270_ACEOF
8271if ac_fn_c_try_run "$LINENO"; then :
8272
8273else
8274 ac_cv_header_stdc=no
8275fi
8276rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8277 conftest.$ac_objext conftest.beam conftest.$ac_ext
8278fi
8279
8280fi
8281fi
8282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8283$as_echo "$ac_cv_header_stdc" >&6; }
8284if test $ac_cv_header_stdc = yes; then
8285
8286$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8287
8288fi
8289
8290# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8291for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8292 inttypes.h stdint.h unistd.h
8293do :
8294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8295ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8296"
8297eval as_val=\$$as_ac_Header
8298 if test "x$as_val" = x""yes; then :
8299 cat >>confdefs.h <<_ACEOF
8300#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8301_ACEOF
8302
8303fi
8304
8305done
8306
8307
8308for ac_header in dlfcn.h
8309do :
8310 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8311"
8312if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8313 cat >>confdefs.h <<_ACEOF
8314#define HAVE_DLFCN_H 1
8315_ACEOF
8316
8317fi
8318
8319done
8320
8321
8322
8323
8324
8325
8326# Set options
8327
8328
8329
8330 enable_dlopen=no
8331
8332
8333 enable_win32_dll=no
8334
8335
8336 # Check whether --enable-shared was given.
8337if test "${enable_shared+set}" = set; then :
8338 enableval=$enable_shared; p=${PACKAGE-default}
8339 case $enableval in
8340 yes) enable_shared=yes ;;
8341 no) enable_shared=no ;;
8342 *)
8343 enable_shared=no
8344 # Look at the argument we got. We use all the common list separators.
8345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8346 for pkg in $enableval; do
8347 IFS="$lt_save_ifs"
8348 if test "X$pkg" = "X$p"; then
8349 enable_shared=yes
8350 fi
8351 done
8352 IFS="$lt_save_ifs"
8353 ;;
8354 esac
8355else
8356 enable_shared=yes
8357fi
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367 # Check whether --enable-static was given.
8368if test "${enable_static+set}" = set; then :
8369 enableval=$enable_static; p=${PACKAGE-default}
8370 case $enableval in
8371 yes) enable_static=yes ;;
8372 no) enable_static=no ;;
8373 *)
8374 enable_static=no
8375 # Look at the argument we got. We use all the common list separators.
8376 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8377 for pkg in $enableval; do
8378 IFS="$lt_save_ifs"
8379 if test "X$pkg" = "X$p"; then
8380 enable_static=yes
8381 fi
8382 done
8383 IFS="$lt_save_ifs"
8384 ;;
8385 esac
8386else
8387 enable_static=yes
8388fi
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399# Check whether --with-pic was given.
8400if test "${with_pic+set}" = set; then :
8401 withval=$with_pic; pic_mode="$withval"
8402else
8403 pic_mode=default
8404fi
8405
8406
8407test -z "$pic_mode" && pic_mode=default
8408
8409
8410
8411
8412
8413
8414
8415 # Check whether --enable-fast-install was given.
8416if test "${enable_fast_install+set}" = set; then :
8417 enableval=$enable_fast_install; p=${PACKAGE-default}
8418 case $enableval in
8419 yes) enable_fast_install=yes ;;
8420 no) enable_fast_install=no ;;
8421 *)
8422 enable_fast_install=no
8423 # Look at the argument we got. We use all the common list separators.
8424 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8425 for pkg in $enableval; do
8426 IFS="$lt_save_ifs"
8427 if test "X$pkg" = "X$p"; then
8428 enable_fast_install=yes
8429 fi
8430 done
8431 IFS="$lt_save_ifs"
8432 ;;
8433 esac
8434else
8435 enable_fast_install=yes
8436fi
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448# This can be used to rebuild libtool when needed
8449LIBTOOL_DEPS="$ltmain"
8450
8451# Always use our own libtool.
8452LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479test -z "$LN_S" && LN_S="ln -s"
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494if test -n "${ZSH_VERSION+set}" ; then
8495 setopt NO_GLOB_SUBST
8496fi
8497
8498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8499$as_echo_n "checking for objdir... " >&6; }
8500if test "${lt_cv_objdir+set}" = set; then :
8501 $as_echo_n "(cached) " >&6
8502else
8503 rm -f .libs 2>/dev/null
8504mkdir .libs 2>/dev/null
8505if test -d .libs; then
8506 lt_cv_objdir=.libs
8507else
8508 # MS-DOS does not allow filenames that begin with a dot.
8509 lt_cv_objdir=_libs
8510fi
8511rmdir .libs 2>/dev/null
8512fi
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8514$as_echo "$lt_cv_objdir" >&6; }
8515objdir=$lt_cv_objdir
8516
8517
8518
8519
8520
8521cat >>confdefs.h <<_ACEOF
8522#define LT_OBJDIR "$lt_cv_objdir/"
8523_ACEOF
8524
8525
8526
8527
8528case $host_os in
8529aix3*)
8530 # AIX sometimes has problems with the GCC collect2 program. For some
8531 # reason, if we set the COLLECT_NAMES environment variable, the problems
8532 # vanish in a puff of smoke.
8533 if test "X${COLLECT_NAMES+set}" != Xset; then
8534 COLLECT_NAMES=
8535 export COLLECT_NAMES
8536 fi
8537 ;;
8538esac
8539
8540# Global variables:
8541ofile=libtool
8542can_build_shared=yes
8543
8544# All known linkers require a `.a' archive for static linking (except MSVC,
8545# which needs '.lib').
8546libext=a
8547
8548with_gnu_ld="$lt_cv_prog_gnu_ld"
8549
8550old_CC="$CC"
8551old_CFLAGS="$CFLAGS"
8552
8553# Set sane defaults for various variables
8554test -z "$CC" && CC=cc
8555test -z "$LTCC" && LTCC=$CC
8556test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8557test -z "$LD" && LD=ld
8558test -z "$ac_objext" && ac_objext=o
8559
8560for cc_temp in $compiler""; do
8561 case $cc_temp in
8562 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8563 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8564 \-*) ;;
8565 *) break;;
8566 esac
8567done
8568cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8569
8570
8571# Only perform the check for file, if the check method requires it
8572test -z "$MAGIC_CMD" && MAGIC_CMD=file
8573case $deplibs_check_method in
8574file_magic*)
8575 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8577$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8578if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8579 $as_echo_n "(cached) " >&6
8580else
8581 case $MAGIC_CMD in
8582[\\/*] | ?:[\\/]*)
8583 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8584 ;;
8585*)
8586 lt_save_MAGIC_CMD="$MAGIC_CMD"
8587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8588 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8589 for ac_dir in $ac_dummy; do
8590 IFS="$lt_save_ifs"
8591 test -z "$ac_dir" && ac_dir=.
8592 if test -f $ac_dir/${ac_tool_prefix}file; then
8593 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8594 if test -n "$file_magic_test_file"; then
8595 case $deplibs_check_method in
8596 "file_magic "*)
8597 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8598 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8599 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8600 $EGREP "$file_magic_regex" > /dev/null; then
8601 :
8602 else
8603 cat <<_LT_EOF 1>&2
8604
8605*** Warning: the command libtool uses to detect shared libraries,
8606*** $file_magic_cmd, produces output that libtool cannot recognize.
8607*** The result is that libtool may fail to recognize shared libraries
8608*** as such. This will affect the creation of libtool libraries that
8609*** depend on shared libraries, but programs linked with such libtool
8610*** libraries will work regardless of this problem. Nevertheless, you
8611*** may want to report the problem to your system manager and/or to
8612*** bug-libtool@gnu.org
8613
8614_LT_EOF
8615 fi ;;
8616 esac
8617 fi
8618 break
8619 fi
8620 done
8621 IFS="$lt_save_ifs"
8622 MAGIC_CMD="$lt_save_MAGIC_CMD"
8623 ;;
8624esac
8625fi
8626
8627MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8628if test -n "$MAGIC_CMD"; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8630$as_echo "$MAGIC_CMD" >&6; }
8631else
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633$as_echo "no" >&6; }
8634fi
8635
8636
8637
8638
8639
8640if test -z "$lt_cv_path_MAGIC_CMD"; then
8641 if test -n "$ac_tool_prefix"; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8643$as_echo_n "checking for file... " >&6; }
8644if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8645 $as_echo_n "(cached) " >&6
8646else
8647 case $MAGIC_CMD in
8648[\\/*] | ?:[\\/]*)
8649 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8650 ;;
8651*)
8652 lt_save_MAGIC_CMD="$MAGIC_CMD"
8653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8654 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8655 for ac_dir in $ac_dummy; do
8656 IFS="$lt_save_ifs"
8657 test -z "$ac_dir" && ac_dir=.
8658 if test -f $ac_dir/file; then
8659 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8660 if test -n "$file_magic_test_file"; then
8661 case $deplibs_check_method in
8662 "file_magic "*)
8663 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8664 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8665 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8666 $EGREP "$file_magic_regex" > /dev/null; then
8667 :
8668 else
8669 cat <<_LT_EOF 1>&2
8670
8671*** Warning: the command libtool uses to detect shared libraries,
8672*** $file_magic_cmd, produces output that libtool cannot recognize.
8673*** The result is that libtool may fail to recognize shared libraries
8674*** as such. This will affect the creation of libtool libraries that
8675*** depend on shared libraries, but programs linked with such libtool
8676*** libraries will work regardless of this problem. Nevertheless, you
8677*** may want to report the problem to your system manager and/or to
8678*** bug-libtool@gnu.org
8679
8680_LT_EOF
8681 fi ;;
8682 esac
8683 fi
8684 break
8685 fi
8686 done
8687 IFS="$lt_save_ifs"
8688 MAGIC_CMD="$lt_save_MAGIC_CMD"
8689 ;;
8690esac
8691fi
8692
8693MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8694if test -n "$MAGIC_CMD"; then
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8696$as_echo "$MAGIC_CMD" >&6; }
8697else
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8699$as_echo "no" >&6; }
8700fi
8701
8702
8703 else
8704 MAGIC_CMD=:
8705 fi
8706fi
8707
8708 fi
8709 ;;
8710esac
8711
8712# Use C for the default configuration in the libtool script
8713
8714lt_save_CC="$CC"
8715ac_ext=c
8716ac_cpp='$CPP $CPPFLAGS'
8717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8719ac_compiler_gnu=$ac_cv_c_compiler_gnu
8720
8721
8722# Source file extension for C test sources.
8723ac_ext=c
8724
8725# Object file extension for compiled C test sources.
8726objext=o
8727objext=$objext
8728
8729# Code to be used in simple compile tests
8730lt_simple_compile_test_code="int some_variable = 0;"
8731
8732# Code to be used in simple link tests
8733lt_simple_link_test_code='int main(){return(0);}'
8734
8735
8736
8737
8738
8739
8740
8741# If no C compiler was specified, use CC.
8742LTCC=${LTCC-"$CC"}
8743
8744# If no C compiler flags were specified, use CFLAGS.
8745LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8746
8747# Allow CC to be a program name with arguments.
8748compiler=$CC
8749
8750# Save the default compiler, since it gets overwritten when the other
8751# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8752compiler_DEFAULT=$CC
8753
8754# save warnings/boilerplate of simple test code
8755ac_outfile=conftest.$ac_objext
8756echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8757eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8758_lt_compiler_boilerplate=`cat conftest.err`
8759$RM conftest*
8760
8761ac_outfile=conftest.$ac_objext
8762echo "$lt_simple_link_test_code" >conftest.$ac_ext
8763eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8764_lt_linker_boilerplate=`cat conftest.err`
8765$RM -r conftest*
8766
8767
8768## CAVEAT EMPTOR:
8769## There is no encapsulation within the following macros, do not change
8770## the running order or otherwise move them around unless you know exactly
8771## what you are doing...
8772if test -n "$compiler"; then
8773
8774lt_prog_compiler_no_builtin_flag=
8775
8776if test "$GCC" = yes; then
8777 case $cc_basename in
8778 nvcc*)
8779 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8780 *)
8781 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8782 esac
8783
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8785$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8786if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8787 $as_echo_n "(cached) " >&6
8788else
8789 lt_cv_prog_compiler_rtti_exceptions=no
8790 ac_outfile=conftest.$ac_objext
8791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8792 lt_compiler_flag="-fno-rtti -fno-exceptions"
8793 # Insert the option either (1) after the last *FLAGS variable, or
8794 # (2) before a word containing "conftest.", or (3) at the end.
8795 # Note that $ac_compile itself does not contain backslashes and begins
8796 # with a dollar sign (not a hyphen), so the echo should work correctly.
8797 # The option is referenced via a variable to avoid confusing sed.
8798 lt_compile=`echo "$ac_compile" | $SED \
8799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8801 -e 's:$: $lt_compiler_flag:'`
8802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8803 (eval "$lt_compile" 2>conftest.err)
8804 ac_status=$?
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 if (exit $ac_status) && test -s "$ac_outfile"; then
8808 # The compiler can only warn and ignore the option if not recognized
8809 # So say no if there are warnings other than the usual output.
8810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8813 lt_cv_prog_compiler_rtti_exceptions=yes
8814 fi
8815 fi
8816 $RM conftest*
8817
8818fi
8819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8820$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8821
8822if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8823 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8824else
8825 :
8826fi
8827
8828fi
8829
8830
8831
8832
8833
8834
8835 lt_prog_compiler_wl=
8836lt_prog_compiler_pic=
8837lt_prog_compiler_static=
8838
8839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8840$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8841
8842 if test "$GCC" = yes; then
8843 lt_prog_compiler_wl='-Wl,'
8844 lt_prog_compiler_static='-static'
8845
8846 case $host_os in
8847 aix*)
8848 # All AIX code is PIC.
8849 if test "$host_cpu" = ia64; then
8850 # AIX 5 now supports IA64 processor
8851 lt_prog_compiler_static='-Bstatic'
8852 fi
690c45b8 8853 lt_prog_compiler_pic='-fPIC'
0a35513e
AH
8854 ;;
8855
8856 amigaos*)
8857 case $host_cpu in
8858 powerpc)
8859 # see comment about AmigaOS4 .so support
8860 lt_prog_compiler_pic='-fPIC'
8861 ;;
8862 m68k)
8863 # FIXME: we need at least 68020 code to build shared libraries, but
8864 # adding the `-m68020' flag to GCC prevents building anything better,
8865 # like `-m68040'.
8866 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8867 ;;
8868 esac
8869 ;;
8870
8871 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8872 # PIC is the default for these OSes.
8873 ;;
8874
8875 mingw* | cygwin* | pw32* | os2* | cegcc*)
8876 # This hack is so that the source file can tell whether it is being
8877 # built for inclusion in a dll (and should export symbols for example).
8878 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8879 # (--disable-auto-import) libraries
8880 lt_prog_compiler_pic='-DDLL_EXPORT'
8881 ;;
8882
8883 darwin* | rhapsody*)
8884 # PIC is the default on this platform
8885 # Common symbols not allowed in MH_DYLIB files
8886 lt_prog_compiler_pic='-fno-common'
8887 ;;
8888
8889 haiku*)
8890 # PIC is the default for Haiku.
8891 # The "-static" flag exists, but is broken.
8892 lt_prog_compiler_static=
8893 ;;
8894
8895 hpux*)
8896 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8897 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8898 # sets the default TLS model and affects inlining.
8899 case $host_cpu in
8900 hppa*64*)
8901 # +Z the default
8902 ;;
8903 *)
8904 lt_prog_compiler_pic='-fPIC'
8905 ;;
8906 esac
8907 ;;
8908
8909 interix[3-9]*)
8910 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8911 # Instead, we relocate shared libraries at runtime.
8912 ;;
8913
8914 msdosdjgpp*)
8915 # Just because we use GCC doesn't mean we suddenly get shared libraries
8916 # on systems that don't support them.
8917 lt_prog_compiler_can_build_shared=no
8918 enable_shared=no
8919 ;;
8920
8921 *nto* | *qnx*)
8922 # QNX uses GNU C++, but need to define -shared option too, otherwise
8923 # it will coredump.
8924 lt_prog_compiler_pic='-fPIC -shared'
8925 ;;
8926
8927 sysv4*MP*)
8928 if test -d /usr/nec; then
8929 lt_prog_compiler_pic=-Kconform_pic
8930 fi
8931 ;;
8932
8933 *)
8934 lt_prog_compiler_pic='-fPIC'
8935 ;;
8936 esac
8937
8938 case $cc_basename in
8939 nvcc*) # Cuda Compiler Driver 2.2
8940 lt_prog_compiler_wl='-Xlinker '
8941 lt_prog_compiler_pic='-Xcompiler -fPIC'
8942 ;;
8943 esac
8944 else
8945 # PORTME Check for flag to pass linker flags through the system compiler.
8946 case $host_os in
8947 aix*)
8948 lt_prog_compiler_wl='-Wl,'
8949 if test "$host_cpu" = ia64; then
8950 # AIX 5 now supports IA64 processor
8951 lt_prog_compiler_static='-Bstatic'
8952 else
8953 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8954 fi
8955 ;;
8956
8957 mingw* | cygwin* | pw32* | os2* | cegcc*)
8958 # This hack is so that the source file can tell whether it is being
8959 # built for inclusion in a dll (and should export symbols for example).
8960 lt_prog_compiler_pic='-DDLL_EXPORT'
8961 ;;
8962
8963 hpux9* | hpux10* | hpux11*)
8964 lt_prog_compiler_wl='-Wl,'
8965 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8966 # not for PA HP-UX.
8967 case $host_cpu in
8968 hppa*64*|ia64*)
8969 # +Z the default
8970 ;;
8971 *)
8972 lt_prog_compiler_pic='+Z'
8973 ;;
8974 esac
8975 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8976 lt_prog_compiler_static='${wl}-a ${wl}archive'
8977 ;;
8978
8979 irix5* | irix6* | nonstopux*)
8980 lt_prog_compiler_wl='-Wl,'
8981 # PIC (with -KPIC) is the default.
8982 lt_prog_compiler_static='-non_shared'
8983 ;;
8984
8985 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8986 case $cc_basename in
8987 # old Intel for x86_64 which still supported -KPIC.
8988 ecc*)
8989 lt_prog_compiler_wl='-Wl,'
8990 lt_prog_compiler_pic='-KPIC'
8991 lt_prog_compiler_static='-static'
8992 ;;
8993 # icc used to be incompatible with GCC.
8994 # ICC 10 doesn't accept -KPIC any more.
8995 icc* | ifort*)
8996 lt_prog_compiler_wl='-Wl,'
8997 lt_prog_compiler_pic='-fPIC'
8998 lt_prog_compiler_static='-static'
8999 ;;
9000 # Lahey Fortran 8.1.
9001 lf95*)
9002 lt_prog_compiler_wl='-Wl,'
9003 lt_prog_compiler_pic='--shared'
9004 lt_prog_compiler_static='--static'
9005 ;;
9006 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9007 # Portland Group compilers (*not* the Pentium gcc compiler,
9008 # which looks to be a dead project)
9009 lt_prog_compiler_wl='-Wl,'
9010 lt_prog_compiler_pic='-fpic'
9011 lt_prog_compiler_static='-Bstatic'
9012 ;;
9013 ccc*)
9014 lt_prog_compiler_wl='-Wl,'
9015 # All Alpha code is PIC.
9016 lt_prog_compiler_static='-non_shared'
9017 ;;
9018 xl* | bgxl* | bgf* | mpixl*)
9019 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9020 lt_prog_compiler_wl='-Wl,'
9021 lt_prog_compiler_pic='-qpic'
9022 lt_prog_compiler_static='-qstaticlink'
9023 ;;
9024 *)
9025 case `$CC -V 2>&1 | sed 5q` in
9026 *Sun\ F* | *Sun*Fortran*)
9027 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9028 lt_prog_compiler_pic='-KPIC'
9029 lt_prog_compiler_static='-Bstatic'
9030 lt_prog_compiler_wl=''
9031 ;;
9032 *Sun\ C*)
9033 # Sun C 5.9
9034 lt_prog_compiler_pic='-KPIC'
9035 lt_prog_compiler_static='-Bstatic'
9036 lt_prog_compiler_wl='-Wl,'
9037 ;;
9038 esac
9039 ;;
9040 esac
9041 ;;
9042
9043 newsos6)
9044 lt_prog_compiler_pic='-KPIC'
9045 lt_prog_compiler_static='-Bstatic'
9046 ;;
9047
9048 *nto* | *qnx*)
9049 # QNX uses GNU C++, but need to define -shared option too, otherwise
9050 # it will coredump.
9051 lt_prog_compiler_pic='-fPIC -shared'
9052 ;;
9053
9054 osf3* | osf4* | osf5*)
9055 lt_prog_compiler_wl='-Wl,'
9056 # All OSF/1 code is PIC.
9057 lt_prog_compiler_static='-non_shared'
9058 ;;
9059
9060 rdos*)
9061 lt_prog_compiler_static='-non_shared'
9062 ;;
9063
9064 solaris*)
9065 lt_prog_compiler_pic='-KPIC'
9066 lt_prog_compiler_static='-Bstatic'
9067 case $cc_basename in
9068 f77* | f90* | f95*)
9069 lt_prog_compiler_wl='-Qoption ld ';;
9070 *)
9071 lt_prog_compiler_wl='-Wl,';;
9072 esac
9073 ;;
9074
9075 sunos4*)
9076 lt_prog_compiler_wl='-Qoption ld '
9077 lt_prog_compiler_pic='-PIC'
9078 lt_prog_compiler_static='-Bstatic'
9079 ;;
9080
9081 sysv4 | sysv4.2uw2* | sysv4.3*)
9082 lt_prog_compiler_wl='-Wl,'
9083 lt_prog_compiler_pic='-KPIC'
9084 lt_prog_compiler_static='-Bstatic'
9085 ;;
9086
9087 sysv4*MP*)
9088 if test -d /usr/nec ;then
9089 lt_prog_compiler_pic='-Kconform_pic'
9090 lt_prog_compiler_static='-Bstatic'
9091 fi
9092 ;;
9093
9094 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9095 lt_prog_compiler_wl='-Wl,'
9096 lt_prog_compiler_pic='-KPIC'
9097 lt_prog_compiler_static='-Bstatic'
9098 ;;
9099
9100 unicos*)
9101 lt_prog_compiler_wl='-Wl,'
9102 lt_prog_compiler_can_build_shared=no
9103 ;;
9104
9105 uts4*)
9106 lt_prog_compiler_pic='-pic'
9107 lt_prog_compiler_static='-Bstatic'
9108 ;;
9109
9110 *)
9111 lt_prog_compiler_can_build_shared=no
9112 ;;
9113 esac
9114 fi
9115
9116case $host_os in
9117 # For platforms which do not support PIC, -DPIC is meaningless:
9118 *djgpp*)
9119 lt_prog_compiler_pic=
9120 ;;
9121 *)
9122 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9123 ;;
9124esac
9125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9126$as_echo "$lt_prog_compiler_pic" >&6; }
9127
9128
9129
9130
9131
9132
9133#
9134# Check to make sure the PIC flag actually works.
9135#
9136if test -n "$lt_prog_compiler_pic"; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9138$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9139if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
9141else
9142 lt_cv_prog_compiler_pic_works=no
9143 ac_outfile=conftest.$ac_objext
9144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9145 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9146 # Insert the option either (1) after the last *FLAGS variable, or
9147 # (2) before a word containing "conftest.", or (3) at the end.
9148 # Note that $ac_compile itself does not contain backslashes and begins
9149 # with a dollar sign (not a hyphen), so the echo should work correctly.
9150 # The option is referenced via a variable to avoid confusing sed.
9151 lt_compile=`echo "$ac_compile" | $SED \
9152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9154 -e 's:$: $lt_compiler_flag:'`
9155 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9156 (eval "$lt_compile" 2>conftest.err)
9157 ac_status=$?
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 if (exit $ac_status) && test -s "$ac_outfile"; then
9161 # The compiler can only warn and ignore the option if not recognized
9162 # So say no if there are warnings other than the usual output.
9163 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9164 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9165 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9166 lt_cv_prog_compiler_pic_works=yes
9167 fi
9168 fi
9169 $RM conftest*
9170
9171fi
9172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9173$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9174
9175if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9176 case $lt_prog_compiler_pic in
9177 "" | " "*) ;;
9178 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9179 esac
9180else
9181 lt_prog_compiler_pic=
9182 lt_prog_compiler_can_build_shared=no
9183fi
9184
9185fi
9186
9187
9188
9189
9190
9191
9192#
9193# Check to make sure the static flag actually works.
9194#
9195wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9197$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9198if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9199 $as_echo_n "(cached) " >&6
9200else
9201 lt_cv_prog_compiler_static_works=no
9202 save_LDFLAGS="$LDFLAGS"
9203 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9204 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9205 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9206 # The linker can only warn and ignore the option if not recognized
9207 # So say no if there are warnings
9208 if test -s conftest.err; then
9209 # Append any errors to the config.log.
9210 cat conftest.err 1>&5
9211 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9213 if diff conftest.exp conftest.er2 >/dev/null; then
9214 lt_cv_prog_compiler_static_works=yes
9215 fi
9216 else
9217 lt_cv_prog_compiler_static_works=yes
9218 fi
9219 fi
9220 $RM -r conftest*
9221 LDFLAGS="$save_LDFLAGS"
9222
9223fi
9224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9225$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9226
9227if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9228 :
9229else
9230 lt_prog_compiler_static=
9231fi
9232
9233
9234
9235
9236
9237
9238
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9240$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9241if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9242 $as_echo_n "(cached) " >&6
9243else
9244 lt_cv_prog_compiler_c_o=no
9245 $RM -r conftest 2>/dev/null
9246 mkdir conftest
9247 cd conftest
9248 mkdir out
9249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9250
9251 lt_compiler_flag="-o out/conftest2.$ac_objext"
9252 # Insert the option either (1) after the last *FLAGS variable, or
9253 # (2) before a word containing "conftest.", or (3) at the end.
9254 # Note that $ac_compile itself does not contain backslashes and begins
9255 # with a dollar sign (not a hyphen), so the echo should work correctly.
9256 lt_compile=`echo "$ac_compile" | $SED \
9257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9259 -e 's:$: $lt_compiler_flag:'`
9260 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9261 (eval "$lt_compile" 2>out/conftest.err)
9262 ac_status=$?
9263 cat out/conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9266 then
9267 # The compiler can only warn and ignore the option if not recognized
9268 # So say no if there are warnings
9269 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9270 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9271 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9272 lt_cv_prog_compiler_c_o=yes
9273 fi
9274 fi
9275 chmod u+w . 2>&5
9276 $RM conftest*
9277 # SGI C++ compiler will create directory out/ii_files/ for
9278 # template instantiation
9279 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9280 $RM out/* && rmdir out
9281 cd ..
9282 $RM -r conftest
9283 $RM conftest*
9284
9285fi
9286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9287$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9288
9289
9290
9291
9292
9293
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9295$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9296if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9297 $as_echo_n "(cached) " >&6
9298else
9299 lt_cv_prog_compiler_c_o=no
9300 $RM -r conftest 2>/dev/null
9301 mkdir conftest
9302 cd conftest
9303 mkdir out
9304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9305
9306 lt_compiler_flag="-o out/conftest2.$ac_objext"
9307 # Insert the option either (1) after the last *FLAGS variable, or
9308 # (2) before a word containing "conftest.", or (3) at the end.
9309 # Note that $ac_compile itself does not contain backslashes and begins
9310 # with a dollar sign (not a hyphen), so the echo should work correctly.
9311 lt_compile=`echo "$ac_compile" | $SED \
9312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9314 -e 's:$: $lt_compiler_flag:'`
9315 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9316 (eval "$lt_compile" 2>out/conftest.err)
9317 ac_status=$?
9318 cat out/conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9321 then
9322 # The compiler can only warn and ignore the option if not recognized
9323 # So say no if there are warnings
9324 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9325 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9326 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9327 lt_cv_prog_compiler_c_o=yes
9328 fi
9329 fi
9330 chmod u+w . 2>&5
9331 $RM conftest*
9332 # SGI C++ compiler will create directory out/ii_files/ for
9333 # template instantiation
9334 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9335 $RM out/* && rmdir out
9336 cd ..
9337 $RM -r conftest
9338 $RM conftest*
9339
9340fi
9341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9342$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9343
9344
9345
9346
9347hard_links="nottested"
9348if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9349 # do not overwrite the value of need_locks provided by the user
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9351$as_echo_n "checking if we can lock with hard links... " >&6; }
9352 hard_links=yes
9353 $RM conftest*
9354 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9355 touch conftest.a
9356 ln conftest.a conftest.b 2>&5 || hard_links=no
9357 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9359$as_echo "$hard_links" >&6; }
9360 if test "$hard_links" = no; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9362$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9363 need_locks=warn
9364 fi
9365else
9366 need_locks=no
9367fi
9368
9369
9370
9371
9372
9373
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9375$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9376
9377 runpath_var=
9378 allow_undefined_flag=
9379 always_export_symbols=no
9380 archive_cmds=
9381 archive_expsym_cmds=
9382 compiler_needs_object=no
9383 enable_shared_with_static_runtimes=no
9384 export_dynamic_flag_spec=
9385 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9386 hardcode_automatic=no
9387 hardcode_direct=no
9388 hardcode_direct_absolute=no
9389 hardcode_libdir_flag_spec=
9390 hardcode_libdir_flag_spec_ld=
9391 hardcode_libdir_separator=
9392 hardcode_minus_L=no
9393 hardcode_shlibpath_var=unsupported
9394 inherit_rpath=no
9395 link_all_deplibs=unknown
9396 module_cmds=
9397 module_expsym_cmds=
9398 old_archive_from_new_cmds=
9399 old_archive_from_expsyms_cmds=
9400 thread_safe_flag_spec=
9401 whole_archive_flag_spec=
9402 # include_expsyms should be a list of space-separated symbols to be *always*
9403 # included in the symbol list
9404 include_expsyms=
9405 # exclude_expsyms can be an extended regexp of symbols to exclude
9406 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9407 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9408 # as well as any symbol that contains `d'.
9409 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9410 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9411 # platforms (ab)use it in PIC code, but their linkers get confused if
9412 # the symbol is explicitly referenced. Since portable code cannot
9413 # rely on this symbol name, it's probably fine to never include it in
9414 # preloaded symbol tables.
9415 # Exclude shared library initialization/finalization symbols.
9416 extract_expsyms_cmds=
9417
9418 case $host_os in
9419 cygwin* | mingw* | pw32* | cegcc*)
9420 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9421 # When not using gcc, we currently assume that we are using
9422 # Microsoft Visual C++.
9423 if test "$GCC" != yes; then
9424 with_gnu_ld=no
9425 fi
9426 ;;
9427 interix*)
9428 # we just hope/assume this is gcc and not c89 (= MSVC++)
9429 with_gnu_ld=yes
9430 ;;
9431 openbsd*)
9432 with_gnu_ld=no
9433 ;;
9434 esac
9435
9436 ld_shlibs=yes
9437
9438 # On some targets, GNU ld is compatible enough with the native linker
9439 # that we're better off using the native interface for both.
9440 lt_use_gnu_ld_interface=no
9441 if test "$with_gnu_ld" = yes; then
9442 case $host_os in
9443 aix*)
9444 # The AIX port of GNU ld has always aspired to compatibility
9445 # with the native linker. However, as the warning in the GNU ld
9446 # block says, versions before 2.19.5* couldn't really create working
9447 # shared libraries, regardless of the interface used.
9448 case `$LD -v 2>&1` in
9449 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9450 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9451 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9452 *)
9453 lt_use_gnu_ld_interface=yes
9454 ;;
9455 esac
9456 ;;
9457 *)
9458 lt_use_gnu_ld_interface=yes
9459 ;;
9460 esac
9461 fi
9462
9463 if test "$lt_use_gnu_ld_interface" = yes; then
9464 # If archive_cmds runs LD, not CC, wlarc should be empty
9465 wlarc='${wl}'
9466
9467 # Set some defaults for GNU ld with shared library support. These
9468 # are reset later if shared libraries are not supported. Putting them
9469 # here allows them to be overridden if necessary.
9470 runpath_var=LD_RUN_PATH
9471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9472 export_dynamic_flag_spec='${wl}--export-dynamic'
9473 # ancient GNU ld didn't support --whole-archive et. al.
9474 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9475 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9476 else
9477 whole_archive_flag_spec=
9478 fi
9479 supports_anon_versioning=no
9480 case `$LD -v 2>&1` in
9481 *GNU\ gold*) supports_anon_versioning=yes ;;
9482 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9483 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9484 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9485 *\ 2.11.*) ;; # other 2.11 versions
9486 *) supports_anon_versioning=yes ;;
9487 esac
9488
9489 # See if GNU ld supports shared libraries.
9490 case $host_os in
9491 aix[3-9]*)
9492 # On AIX/PPC, the GNU linker is very broken
9493 if test "$host_cpu" != ia64; then
9494 ld_shlibs=no
9495 cat <<_LT_EOF 1>&2
9496
9497*** Warning: the GNU linker, at least up to release 2.19, is reported
9498*** to be unable to reliably create shared libraries on AIX.
9499*** Therefore, libtool is disabling shared libraries support. If you
9500*** really care for shared libraries, you may want to install binutils
9501*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9502*** You will then need to restart the configuration process.
9503
9504_LT_EOF
9505 fi
9506 ;;
9507
9508 amigaos*)
9509 case $host_cpu in
9510 powerpc)
9511 # see comment about AmigaOS4 .so support
9512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9513 archive_expsym_cmds=''
9514 ;;
9515 m68k)
9516 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)'
9517 hardcode_libdir_flag_spec='-L$libdir'
9518 hardcode_minus_L=yes
9519 ;;
9520 esac
9521 ;;
9522
9523 beos*)
9524 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9525 allow_undefined_flag=unsupported
9526 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9527 # support --undefined. This deserves some investigation. FIXME
9528 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9529 else
9530 ld_shlibs=no
9531 fi
9532 ;;
9533
9534 cygwin* | mingw* | pw32* | cegcc*)
9535 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9536 # as there is no search path for DLLs.
9537 hardcode_libdir_flag_spec='-L$libdir'
9538 export_dynamic_flag_spec='${wl}--export-all-symbols'
9539 allow_undefined_flag=unsupported
9540 always_export_symbols=no
9541 enable_shared_with_static_runtimes=yes
9542 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9543
9544 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9546 # If the export-symbols file already is a .def file (1st line
9547 # is EXPORTS), use it as is; otherwise, prepend...
9548 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9549 cp $export_symbols $output_objdir/$soname.def;
9550 else
9551 echo EXPORTS > $output_objdir/$soname.def;
9552 cat $export_symbols >> $output_objdir/$soname.def;
9553 fi~
9554 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9555 else
9556 ld_shlibs=no
9557 fi
9558 ;;
9559
9560 haiku*)
9561 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9562 link_all_deplibs=yes
9563 ;;
9564
9565 interix[3-9]*)
9566 hardcode_direct=no
9567 hardcode_shlibpath_var=no
9568 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9569 export_dynamic_flag_spec='${wl}-E'
9570 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9571 # Instead, shared libraries are loaded at an image base (0x10000000 by
9572 # default) and relocated if they conflict, which is a slow very memory
9573 # consuming and fragmenting process. To avoid this, we pick a random,
9574 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9575 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9577 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'
9578 ;;
9579
9580 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9581 tmp_diet=no
9582 if test "$host_os" = linux-dietlibc; then
9583 case $cc_basename in
9584 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9585 esac
9586 fi
9587 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9588 && test "$tmp_diet" = no
9589 then
a699d672 9590 tmp_addflag=' $pic_flag'
0a35513e
AH
9591 tmp_sharedflag='-shared'
9592 case $cc_basename,$host_cpu in
9593 pgcc*) # Portland Group C compiler
9594 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'
9595 tmp_addflag=' $pic_flag'
9596 ;;
9597 pgf77* | pgf90* | pgf95* | pgfortran*)
9598 # Portland Group f77 and f90 compilers
9599 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'
9600 tmp_addflag=' $pic_flag -Mnomain' ;;
9601 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9602 tmp_addflag=' -i_dynamic' ;;
9603 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9604 tmp_addflag=' -i_dynamic -nofor_main' ;;
9605 ifc* | ifort*) # Intel Fortran compiler
9606 tmp_addflag=' -nofor_main' ;;
9607 lf95*) # Lahey Fortran 8.1
9608 whole_archive_flag_spec=
9609 tmp_sharedflag='--shared' ;;
9610 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9611 tmp_sharedflag='-qmkshrobj'
9612 tmp_addflag= ;;
9613 nvcc*) # Cuda Compiler Driver 2.2
9614 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'
9615 compiler_needs_object=yes
9616 ;;
9617 esac
9618 case `$CC -V 2>&1 | sed 5q` in
9619 *Sun\ C*) # Sun C 5.9
9620 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'
9621 compiler_needs_object=yes
9622 tmp_sharedflag='-G' ;;
9623 *Sun\ F*) # Sun Fortran 8.3
9624 tmp_sharedflag='-G' ;;
9625 esac
9626 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9627
9628 if test "x$supports_anon_versioning" = xyes; then
9629 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9630 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9631 echo "local: *; };" >> $output_objdir/$libname.ver~
9632 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9633 fi
9634
9635 case $cc_basename in
9636 xlf* | bgf* | bgxlf* | mpixlf*)
9637 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9638 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9639 hardcode_libdir_flag_spec=
9640 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9641 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9642 if test "x$supports_anon_versioning" = xyes; then
9643 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9644 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9645 echo "local: *; };" >> $output_objdir/$libname.ver~
9646 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9647 fi
9648 ;;
9649 esac
9650 else
9651 ld_shlibs=no
9652 fi
9653 ;;
9654
9655 netbsd*)
9656 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9657 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9658 wlarc=
9659 else
9660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9661 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9662 fi
9663 ;;
9664
9665 solaris*)
9666 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9667 ld_shlibs=no
9668 cat <<_LT_EOF 1>&2
9669
9670*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9671*** create shared libraries on Solaris systems. Therefore, libtool
9672*** is disabling shared libraries support. We urge you to upgrade GNU
9673*** binutils to release 2.9.1 or newer. Another option is to modify
9674*** your PATH or compiler configuration so that the native linker is
9675*** used, and then restart.
9676
9677_LT_EOF
9678 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9680 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9681 else
9682 ld_shlibs=no
9683 fi
9684 ;;
9685
9686 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9687 case `$LD -v 2>&1` in
9688 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9689 ld_shlibs=no
9690 cat <<_LT_EOF 1>&2
9691
9692*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9693*** reliably create shared libraries on SCO systems. Therefore, libtool
9694*** is disabling shared libraries support. We urge you to upgrade GNU
9695*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9696*** your PATH or compiler configuration so that the native linker is
9697*** used, and then restart.
9698
9699_LT_EOF
9700 ;;
9701 *)
9702 # For security reasons, it is highly recommended that you always
9703 # use absolute paths for naming shared libraries, and exclude the
9704 # DT_RUNPATH tag from executables and libraries. But doing so
9705 # requires that you compile everything twice, which is a pain.
9706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9710 else
9711 ld_shlibs=no
9712 fi
9713 ;;
9714 esac
9715 ;;
9716
9717 sunos4*)
9718 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9719 wlarc=
9720 hardcode_direct=yes
9721 hardcode_shlibpath_var=no
9722 ;;
9723
9724 *)
9725 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9727 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9728 else
9729 ld_shlibs=no
9730 fi
9731 ;;
9732 esac
9733
9734 if test "$ld_shlibs" = no; then
9735 runpath_var=
9736 hardcode_libdir_flag_spec=
9737 export_dynamic_flag_spec=
9738 whole_archive_flag_spec=
9739 fi
9740 else
9741 # PORTME fill in a description of your system's linker (not GNU ld)
9742 case $host_os in
9743 aix3*)
9744 allow_undefined_flag=unsupported
9745 always_export_symbols=yes
9746 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'
9747 # Note: this linker hardcodes the directories in LIBPATH if there
9748 # are no directories specified by -L.
9749 hardcode_minus_L=yes
9750 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9751 # Neither direct hardcoding nor static linking is supported with a
9752 # broken collect2.
9753 hardcode_direct=unsupported
9754 fi
9755 ;;
9756
9757 aix[4-9]*)
9758 if test "$host_cpu" = ia64; then
9759 # On IA64, the linker does run time linking by default, so we don't
9760 # have to do anything special.
9761 aix_use_runtimelinking=no
9762 exp_sym_flag='-Bexport'
9763 no_entry_flag=""
9764 else
9765 # If we're using GNU nm, then we don't want the "-C" option.
9766 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9767 # Also, AIX nm treats weak defined symbols like other global
9768 # defined symbols, whereas GNU nm marks them as "W".
9769 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9770 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'
9771 else
84c1b9d3 9772 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'
0a35513e
AH
9773 fi
9774 aix_use_runtimelinking=no
9775
9776 # Test if we are trying to use run time linking or normal
9777 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9778 # need to do runtime linking.
9779 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9780 for ld_flag in $LDFLAGS; do
9781 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9782 aix_use_runtimelinking=yes
9783 break
9784 fi
9785 done
9786 ;;
9787 esac
9788
9789 exp_sym_flag='-bexport'
9790 no_entry_flag='-bnoentry'
9791 fi
9792
9793 # When large executables or shared objects are built, AIX ld can
9794 # have problems creating the table of contents. If linking a library
9795 # or program results in "error TOC overflow" add -mminimal-toc to
9796 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9797 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9798
9799 archive_cmds=''
9800 hardcode_direct=yes
9801 hardcode_direct_absolute=yes
9802 hardcode_libdir_separator=':'
9803 link_all_deplibs=yes
9804 file_list_spec='${wl}-f,'
9805
9806 if test "$GCC" = yes; then
9807 case $host_os in aix4.[012]|aix4.[012].*)
9808 # We only want to do this on AIX 4.2 and lower, the check
9809 # below for broken collect2 doesn't work under 4.3+
9810 collect2name=`${CC} -print-prog-name=collect2`
9811 if test -f "$collect2name" &&
9812 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9813 then
9814 # We have reworked collect2
9815 :
9816 else
9817 # We have old collect2
9818 hardcode_direct=unsupported
9819 # It fails to find uninstalled libraries when the uninstalled
9820 # path is not listed in the libpath. Setting hardcode_minus_L
9821 # to unsupported forces relinking
9822 hardcode_minus_L=yes
9823 hardcode_libdir_flag_spec='-L$libdir'
9824 hardcode_libdir_separator=
9825 fi
9826 ;;
9827 esac
9828 shared_flag='-shared'
9829 if test "$aix_use_runtimelinking" = yes; then
9830 shared_flag="$shared_flag "'${wl}-G'
9831 fi
9832 else
9833 # not using gcc
9834 if test "$host_cpu" = ia64; then
9835 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9836 # chokes on -Wl,-G. The following line is correct:
9837 shared_flag='-G'
9838 else
9839 if test "$aix_use_runtimelinking" = yes; then
9840 shared_flag='${wl}-G'
9841 else
9842 shared_flag='${wl}-bM:SRE'
9843 fi
9844 fi
9845 fi
9846
9847 export_dynamic_flag_spec='${wl}-bexpall'
9848 # It seems that -bexpall does not export symbols beginning with
9849 # underscore (_), so it is better to generate a list of symbols to export.
9850 always_export_symbols=yes
9851 if test "$aix_use_runtimelinking" = yes; then
9852 # Warning - without using the other runtime loading flags (-brtl),
9853 # -berok will link without error, but may produce a broken library.
9854 allow_undefined_flag='-berok'
9855 # Determine the default libpath from the value encoded in an
9856 # empty executable.
9857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858/* end confdefs.h. */
9859
9860int
9861main ()
9862{
9863
9864 ;
9865 return 0;
9866}
9867_ACEOF
9868if ac_fn_c_try_link "$LINENO"; then :
9869
9870lt_aix_libpath_sed='
9871 /Import File Strings/,/^$/ {
9872 /^0/ {
9873 s/^0 *\(.*\)$/\1/
9874 p
9875 }
9876 }'
9877aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9878# Check for a 64-bit object if we didn't find anything.
9879if test -z "$aix_libpath"; then
9880 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9881fi
9882fi
9883rm -f core conftest.err conftest.$ac_objext \
9884 conftest$ac_exeext conftest.$ac_ext
9885if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9886
9887 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9888 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"
9889 else
9890 if test "$host_cpu" = ia64; then
9891 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9892 allow_undefined_flag="-z nodefs"
9893 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"
9894 else
9895 # Determine the default libpath from the value encoded in an
9896 # empty executable.
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898/* end confdefs.h. */
9899
9900int
9901main ()
9902{
9903
9904 ;
9905 return 0;
9906}
9907_ACEOF
9908if ac_fn_c_try_link "$LINENO"; then :
9909
9910lt_aix_libpath_sed='
9911 /Import File Strings/,/^$/ {
9912 /^0/ {
9913 s/^0 *\(.*\)$/\1/
9914 p
9915 }
9916 }'
9917aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9918# Check for a 64-bit object if we didn't find anything.
9919if test -z "$aix_libpath"; then
9920 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9921fi
9922fi
9923rm -f core conftest.err conftest.$ac_objext \
9924 conftest$ac_exeext conftest.$ac_ext
9925if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9926
9927 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9928 # Warning - without using the other run time loading flags,
9929 # -berok will link without error, but may produce a broken library.
9930 no_undefined_flag=' ${wl}-bernotok'
9931 allow_undefined_flag=' ${wl}-berok'
9932 if test "$with_gnu_ld" = yes; then
9933 # We only use this code for GNU lds that support --whole-archive.
9934 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9935 else
9936 # Exported symbols can be pulled into shared objects from archives
9937 whole_archive_flag_spec='$convenience'
9938 fi
9939 archive_cmds_need_lc=yes
9940 # This is similar to how AIX traditionally builds its shared libraries.
9941 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'
9942 fi
9943 fi
9944 ;;
9945
9946 amigaos*)
9947 case $host_cpu in
9948 powerpc)
9949 # see comment about AmigaOS4 .so support
9950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9951 archive_expsym_cmds=''
9952 ;;
9953 m68k)
9954 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)'
9955 hardcode_libdir_flag_spec='-L$libdir'
9956 hardcode_minus_L=yes
9957 ;;
9958 esac
9959 ;;
9960
9961 bsdi[45]*)
9962 export_dynamic_flag_spec=-rdynamic
9963 ;;
9964
9965 cygwin* | mingw* | pw32* | cegcc*)
9966 # When not using gcc, we currently assume that we are using
9967 # Microsoft Visual C++.
9968 # hardcode_libdir_flag_spec is actually meaningless, as there is
9969 # no search path for DLLs.
9970 hardcode_libdir_flag_spec=' '
9971 allow_undefined_flag=unsupported
9972 # Tell ltmain to make .lib files, not .a files.
9973 libext=lib
9974 # Tell ltmain to make .dll files, not .so files.
9975 shrext_cmds=".dll"
9976 # FIXME: Setting linknames here is a bad hack.
9977 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9978 # The linker will automatically build a .lib file if we build a DLL.
9979 old_archive_from_new_cmds='true'
9980 # FIXME: Should let the user specify the lib program.
9981 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9982 fix_srcfile_path='`cygpath -w "$srcfile"`'
9983 enable_shared_with_static_runtimes=yes
9984 ;;
9985
9986 darwin* | rhapsody*)
9987
9988
9989 archive_cmds_need_lc=no
9990 hardcode_direct=no
9991 hardcode_automatic=yes
9992 hardcode_shlibpath_var=unsupported
9993 if test "$lt_cv_ld_force_load" = "yes"; then
9994 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\"`'
9995 else
9996 whole_archive_flag_spec=''
9997 fi
9998 link_all_deplibs=yes
9999 allow_undefined_flag="$_lt_dar_allow_undefined"
10000 case $cc_basename in
10001 ifort*) _lt_dar_can_shared=yes ;;
10002 *) _lt_dar_can_shared=$GCC ;;
10003 esac
10004 if test "$_lt_dar_can_shared" = "yes"; then
10005 output_verbose_link_cmd=func_echo_all
10006 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10007 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10008 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}"
10009 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}"
10010
10011 else
10012 ld_shlibs=no
10013 fi
10014
10015 ;;
10016
10017 dgux*)
10018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10019 hardcode_libdir_flag_spec='-L$libdir'
10020 hardcode_shlibpath_var=no
10021 ;;
10022
10023 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10024 # support. Future versions do this automatically, but an explicit c++rt0.o
10025 # does not break anything, and helps significantly (at the cost of a little
10026 # extra space).
10027 freebsd2.2*)
10028 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10029 hardcode_libdir_flag_spec='-R$libdir'
10030 hardcode_direct=yes
10031 hardcode_shlibpath_var=no
10032 ;;
10033
10034 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 10035 freebsd2.*)
0a35513e
AH
10036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10037 hardcode_direct=yes
10038 hardcode_minus_L=yes
10039 hardcode_shlibpath_var=no
10040 ;;
10041
10042 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10043 freebsd* | dragonfly*)
10044 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10045 hardcode_libdir_flag_spec='-R$libdir'
10046 hardcode_direct=yes
10047 hardcode_shlibpath_var=no
10048 ;;
10049
10050 hpux9*)
10051 if test "$GCC" = yes; then
10052 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'
10053 else
10054 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'
10055 fi
10056 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10057 hardcode_libdir_separator=:
10058 hardcode_direct=yes
10059
10060 # hardcode_minus_L: Not really in the search PATH,
10061 # but as the default location of the library.
10062 hardcode_minus_L=yes
10063 export_dynamic_flag_spec='${wl}-E'
10064 ;;
10065
10066 hpux10*)
10067 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10068 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10069 else
10070 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10071 fi
10072 if test "$with_gnu_ld" = no; then
10073 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10074 hardcode_libdir_flag_spec_ld='+b $libdir'
10075 hardcode_libdir_separator=:
10076 hardcode_direct=yes
10077 hardcode_direct_absolute=yes
10078 export_dynamic_flag_spec='${wl}-E'
10079 # hardcode_minus_L: Not really in the search PATH,
10080 # but as the default location of the library.
10081 hardcode_minus_L=yes
10082 fi
10083 ;;
10084
10085 hpux11*)
10086 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10087 case $host_cpu in
10088 hppa*64*)
10089 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10090 ;;
10091 ia64*)
10092 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10093 ;;
10094 *)
10095 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10096 ;;
10097 esac
10098 else
10099 case $host_cpu in
10100 hppa*64*)
10101 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10102 ;;
10103 ia64*)
10104 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10105 ;;
10106 *)
10107
10108 # Older versions of the 11.00 compiler do not understand -b yet
10109 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10111$as_echo_n "checking if $CC understands -b... " >&6; }
10112if test "${lt_cv_prog_compiler__b+set}" = set; then :
10113 $as_echo_n "(cached) " >&6
10114else
10115 lt_cv_prog_compiler__b=no
10116 save_LDFLAGS="$LDFLAGS"
10117 LDFLAGS="$LDFLAGS -b"
10118 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10119 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10120 # The linker can only warn and ignore the option if not recognized
10121 # So say no if there are warnings
10122 if test -s conftest.err; then
10123 # Append any errors to the config.log.
10124 cat conftest.err 1>&5
10125 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10126 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10127 if diff conftest.exp conftest.er2 >/dev/null; then
10128 lt_cv_prog_compiler__b=yes
10129 fi
10130 else
10131 lt_cv_prog_compiler__b=yes
10132 fi
10133 fi
10134 $RM -r conftest*
10135 LDFLAGS="$save_LDFLAGS"
10136
10137fi
10138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10139$as_echo "$lt_cv_prog_compiler__b" >&6; }
10140
10141if test x"$lt_cv_prog_compiler__b" = xyes; then
10142 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10143else
10144 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10145fi
10146
10147 ;;
10148 esac
10149 fi
10150 if test "$with_gnu_ld" = no; then
10151 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10152 hardcode_libdir_separator=:
10153
10154 case $host_cpu in
10155 hppa*64*|ia64*)
10156 hardcode_direct=no
10157 hardcode_shlibpath_var=no
10158 ;;
10159 *)
10160 hardcode_direct=yes
10161 hardcode_direct_absolute=yes
10162 export_dynamic_flag_spec='${wl}-E'
10163
10164 # hardcode_minus_L: Not really in the search PATH,
10165 # but as the default location of the library.
10166 hardcode_minus_L=yes
10167 ;;
10168 esac
10169 fi
10170 ;;
10171
10172 irix5* | irix6* | nonstopux*)
10173 if test "$GCC" = yes; then
10174 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'
10175 # Try to use the -exported_symbol ld option, if it does not
10176 # work, assume that -exports_file does not work either and
10177 # implicitly export all symbols.
10178 save_LDFLAGS="$LDFLAGS"
10179 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181/* end confdefs.h. */
10182int foo(void) {}
10183_ACEOF
10184if ac_fn_c_try_link "$LINENO"; then :
10185 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'
10186
10187fi
10188rm -f core conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
10190 LDFLAGS="$save_LDFLAGS"
10191 else
10192 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'
10193 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'
10194 fi
10195 archive_cmds_need_lc='no'
10196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10197 hardcode_libdir_separator=:
10198 inherit_rpath=yes
10199 link_all_deplibs=yes
10200 ;;
10201
10202 netbsd*)
10203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10204 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10205 else
10206 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10207 fi
10208 hardcode_libdir_flag_spec='-R$libdir'
10209 hardcode_direct=yes
10210 hardcode_shlibpath_var=no
10211 ;;
10212
10213 newsos6)
10214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215 hardcode_direct=yes
10216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10217 hardcode_libdir_separator=:
10218 hardcode_shlibpath_var=no
10219 ;;
10220
10221 *nto* | *qnx*)
10222 ;;
10223
10224 openbsd*)
10225 if test -f /usr/libexec/ld.so; then
10226 hardcode_direct=yes
10227 hardcode_shlibpath_var=no
10228 hardcode_direct_absolute=yes
10229 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10230 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10231 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10232 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10233 export_dynamic_flag_spec='${wl}-E'
10234 else
10235 case $host_os in
10236 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10238 hardcode_libdir_flag_spec='-R$libdir'
10239 ;;
10240 *)
10241 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10242 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10243 ;;
10244 esac
10245 fi
10246 else
10247 ld_shlibs=no
10248 fi
10249 ;;
10250
10251 os2*)
10252 hardcode_libdir_flag_spec='-L$libdir'
10253 hardcode_minus_L=yes
10254 allow_undefined_flag=unsupported
10255 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'
10256 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10257 ;;
10258
10259 osf3*)
10260 if test "$GCC" = yes; then
10261 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10262 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'
10263 else
10264 allow_undefined_flag=' -expect_unresolved \*'
10265 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'
10266 fi
10267 archive_cmds_need_lc='no'
10268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10269 hardcode_libdir_separator=:
10270 ;;
10271
10272 osf4* | osf5*) # as osf3* with the addition of -msym flag
10273 if test "$GCC" = yes; then
10274 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10275 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'
10276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10277 else
10278 allow_undefined_flag=' -expect_unresolved \*'
10279 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'
10280 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~
10281 $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'
10282
10283 # Both c and cxx compiler support -rpath directly
10284 hardcode_libdir_flag_spec='-rpath $libdir'
10285 fi
10286 archive_cmds_need_lc='no'
10287 hardcode_libdir_separator=:
10288 ;;
10289
10290 solaris*)
10291 no_undefined_flag=' -z defs'
10292 if test "$GCC" = yes; then
10293 wlarc='${wl}'
10294 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10296 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10297 else
10298 case `$CC -V 2>&1` in
10299 *"Compilers 5.0"*)
10300 wlarc=''
10301 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10303 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10304 ;;
10305 *)
10306 wlarc='${wl}'
10307 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10308 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10309 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10310 ;;
10311 esac
10312 fi
10313 hardcode_libdir_flag_spec='-R$libdir'
10314 hardcode_shlibpath_var=no
10315 case $host_os in
10316 solaris2.[0-5] | solaris2.[0-5].*) ;;
10317 *)
10318 # The compiler driver will combine and reorder linker options,
10319 # but understands `-z linker_flag'. GCC discards it without `$wl',
10320 # but is careful enough not to reorder.
10321 # Supported since Solaris 2.6 (maybe 2.5.1?)
10322 if test "$GCC" = yes; then
10323 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10324 else
10325 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10326 fi
10327 ;;
10328 esac
10329 link_all_deplibs=yes
10330 ;;
10331
10332 sunos4*)
10333 if test "x$host_vendor" = xsequent; then
10334 # Use $CC to link under sequent, because it throws in some extra .o
10335 # files that make .init and .fini sections work.
10336 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10337 else
10338 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10339 fi
10340 hardcode_libdir_flag_spec='-L$libdir'
10341 hardcode_direct=yes
10342 hardcode_minus_L=yes
10343 hardcode_shlibpath_var=no
10344 ;;
10345
10346 sysv4)
10347 case $host_vendor in
10348 sni)
10349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10350 hardcode_direct=yes # is this really true???
10351 ;;
10352 siemens)
10353 ## LD is ld it makes a PLAMLIB
10354 ## CC just makes a GrossModule.
10355 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10356 reload_cmds='$CC -r -o $output$reload_objs'
10357 hardcode_direct=no
10358 ;;
10359 motorola)
10360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10361 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10362 ;;
10363 esac
10364 runpath_var='LD_RUN_PATH'
10365 hardcode_shlibpath_var=no
10366 ;;
10367
10368 sysv4.3*)
10369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10370 hardcode_shlibpath_var=no
10371 export_dynamic_flag_spec='-Bexport'
10372 ;;
10373
10374 sysv4*MP*)
10375 if test -d /usr/nec; then
10376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10377 hardcode_shlibpath_var=no
10378 runpath_var=LD_RUN_PATH
10379 hardcode_runpath_var=yes
10380 ld_shlibs=yes
10381 fi
10382 ;;
10383
10384 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10385 no_undefined_flag='${wl}-z,text'
10386 archive_cmds_need_lc=no
10387 hardcode_shlibpath_var=no
10388 runpath_var='LD_RUN_PATH'
10389
10390 if test "$GCC" = yes; then
10391 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10392 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393 else
10394 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396 fi
10397 ;;
10398
10399 sysv5* | sco3.2v5* | sco5v6*)
10400 # Note: We can NOT use -z defs as we might desire, because we do not
10401 # link with -lc, and that would cause any symbols used from libc to
10402 # always be unresolved, which means just about no library would
10403 # ever link correctly. If we're not using GNU ld we use -z text
10404 # though, which does catch some bad symbols but isn't as heavy-handed
10405 # as -z defs.
10406 no_undefined_flag='${wl}-z,text'
10407 allow_undefined_flag='${wl}-z,nodefs'
10408 archive_cmds_need_lc=no
10409 hardcode_shlibpath_var=no
10410 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10411 hardcode_libdir_separator=':'
10412 link_all_deplibs=yes
10413 export_dynamic_flag_spec='${wl}-Bexport'
10414 runpath_var='LD_RUN_PATH'
10415
10416 if test "$GCC" = yes; then
10417 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10418 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419 else
10420 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422 fi
10423 ;;
10424
10425 uts4*)
10426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427 hardcode_libdir_flag_spec='-L$libdir'
10428 hardcode_shlibpath_var=no
10429 ;;
10430
10431 *)
10432 ld_shlibs=no
10433 ;;
10434 esac
10435
10436 if test x$host_vendor = xsni; then
10437 case $host in
10438 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10439 export_dynamic_flag_spec='${wl}-Blargedynsym'
10440 ;;
10441 esac
10442 fi
10443 fi
10444
10445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10446$as_echo "$ld_shlibs" >&6; }
10447test "$ld_shlibs" = no && can_build_shared=no
10448
10449with_gnu_ld=$with_gnu_ld
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465#
10466# Do we need to explicitly link libc?
10467#
10468case "x$archive_cmds_need_lc" in
10469x|xyes)
10470 # Assume -lc should be added
10471 archive_cmds_need_lc=yes
10472
10473 if test "$enable_shared" = yes && test "$GCC" = yes; then
10474 case $archive_cmds in
10475 *'~'*)
10476 # FIXME: we may have to deal with multi-command sequences.
10477 ;;
10478 '$CC '*)
10479 # Test whether the compiler implicitly links with -lc since on some
10480 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10481 # to ld, don't add -lc before -lgcc.
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10483$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10484if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10485 $as_echo_n "(cached) " >&6
10486else
10487 $RM conftest*
10488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10489
10490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10491 (eval $ac_compile) 2>&5
10492 ac_status=$?
10493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10494 test $ac_status = 0; } 2>conftest.err; then
10495 soname=conftest
10496 lib=conftest
10497 libobjs=conftest.$ac_objext
10498 deplibs=
10499 wl=$lt_prog_compiler_wl
10500 pic_flag=$lt_prog_compiler_pic
10501 compiler_flags=-v
10502 linker_flags=-v
10503 verstring=
10504 output_objdir=.
10505 libname=conftest
10506 lt_save_allow_undefined_flag=$allow_undefined_flag
10507 allow_undefined_flag=
10508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10509 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10510 ac_status=$?
10511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10512 test $ac_status = 0; }
10513 then
10514 lt_cv_archive_cmds_need_lc=no
10515 else
10516 lt_cv_archive_cmds_need_lc=yes
10517 fi
10518 allow_undefined_flag=$lt_save_allow_undefined_flag
10519 else
10520 cat conftest.err 1>&5
10521 fi
10522 $RM conftest*
10523
10524fi
10525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10526$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10527 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10528 ;;
10529 esac
10530 fi
10531 ;;
10532esac
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10691$as_echo_n "checking dynamic linker characteristics... " >&6; }
10692
10693if test "$GCC" = yes; then
10694 case $host_os in
10695 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10696 *) lt_awk_arg="/^libraries:/" ;;
10697 esac
10698 case $host_os in
10699 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10700 *) lt_sed_strip_eq="s,=/,/,g" ;;
10701 esac
10702 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10703 case $lt_search_path_spec in
10704 *\;*)
10705 # if the path contains ";" then we assume it to be the separator
10706 # otherwise default to the standard path separator (i.e. ":") - it is
10707 # assumed that no part of a normal pathname contains ";" but that should
10708 # okay in the real world where ";" in dirpaths is itself problematic.
10709 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10710 ;;
10711 *)
10712 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10713 ;;
10714 esac
10715 # Ok, now we have the path, separated by spaces, we can step through it
10716 # and add multilib dir if necessary.
10717 lt_tmp_lt_search_path_spec=
10718 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10719 for lt_sys_path in $lt_search_path_spec; do
10720 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10721 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10722 else
10723 test -d "$lt_sys_path" && \
10724 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10725 fi
10726 done
10727 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10728BEGIN {RS=" "; FS="/|\n";} {
10729 lt_foo="";
10730 lt_count=0;
10731 for (lt_i = NF; lt_i > 0; lt_i--) {
10732 if ($lt_i != "" && $lt_i != ".") {
10733 if ($lt_i == "..") {
10734 lt_count++;
10735 } else {
10736 if (lt_count == 0) {
10737 lt_foo="/" $lt_i lt_foo;
10738 } else {
10739 lt_count--;
10740 }
10741 }
10742 }
10743 }
10744 if (lt_foo != "") { lt_freq[lt_foo]++; }
10745 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10746}'`
10747 # AWK program above erroneously prepends '/' to C:/dos/paths
10748 # for these hosts.
10749 case $host_os in
10750 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10751 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10752 esac
10753 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10754else
10755 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10756fi
10757library_names_spec=
10758libname_spec='lib$name'
10759soname_spec=
10760shrext_cmds=".so"
10761postinstall_cmds=
10762postuninstall_cmds=
10763finish_cmds=
10764finish_eval=
10765shlibpath_var=
10766shlibpath_overrides_runpath=unknown
10767version_type=none
10768dynamic_linker="$host_os ld.so"
10769sys_lib_dlsearch_path_spec="/lib /usr/lib"
10770need_lib_prefix=unknown
10771hardcode_into_libs=no
10772
10773# when you set need_version to no, make sure it does not cause -set_version
10774# flags to be left without arguments
10775need_version=unknown
10776
10777case $host_os in
10778aix3*)
10779 version_type=linux
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10781 shlibpath_var=LIBPATH
10782
10783 # AIX 3 has no versioning support, so we append a major version to the name.
10784 soname_spec='${libname}${release}${shared_ext}$major'
10785 ;;
10786
10787aix[4-9]*)
10788 version_type=linux
10789 need_lib_prefix=no
10790 need_version=no
10791 hardcode_into_libs=yes
10792 if test "$host_cpu" = ia64; then
10793 # AIX 5 supports IA64
10794 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10795 shlibpath_var=LD_LIBRARY_PATH
10796 else
10797 # With GCC up to 2.95.x, collect2 would create an import file
10798 # for dependence libraries. The import file would start with
10799 # the line `#! .'. This would cause the generated library to
10800 # depend on `.', always an invalid library. This was fixed in
10801 # development snapshots of GCC prior to 3.0.
10802 case $host_os in
10803 aix4 | aix4.[01] | aix4.[01].*)
10804 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10805 echo ' yes '
10806 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10807 :
10808 else
10809 can_build_shared=no
10810 fi
10811 ;;
10812 esac
10813 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10814 # soname into executable. Probably we can add versioning support to
10815 # collect2, so additional links can be useful in future.
10816 if test "$aix_use_runtimelinking" = yes; then
10817 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10818 # instead of lib<name>.a to let people know that these are not
10819 # typical AIX shared libraries.
10820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10821 else
10822 # We preserve .a as extension for shared libraries through AIX4.2
10823 # and later when we are not doing run time linking.
10824 library_names_spec='${libname}${release}.a $libname.a'
10825 soname_spec='${libname}${release}${shared_ext}$major'
10826 fi
10827 shlibpath_var=LIBPATH
10828 fi
10829 ;;
10830
10831amigaos*)
10832 case $host_cpu in
10833 powerpc)
10834 # Since July 2007 AmigaOS4 officially supports .so libraries.
10835 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10837 ;;
10838 m68k)
10839 library_names_spec='$libname.ixlibrary $libname.a'
10840 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10841 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'
10842 ;;
10843 esac
10844 ;;
10845
10846beos*)
10847 library_names_spec='${libname}${shared_ext}'
10848 dynamic_linker="$host_os ld.so"
10849 shlibpath_var=LIBRARY_PATH
10850 ;;
10851
10852bsdi[45]*)
10853 version_type=linux
10854 need_version=no
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10856 soname_spec='${libname}${release}${shared_ext}$major'
10857 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10858 shlibpath_var=LD_LIBRARY_PATH
10859 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10860 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10861 # the default ld.so.conf also contains /usr/contrib/lib and
10862 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10863 # libtool to hard-code these into programs
10864 ;;
10865
10866cygwin* | mingw* | pw32* | cegcc*)
10867 version_type=windows
10868 shrext_cmds=".dll"
10869 need_version=no
10870 need_lib_prefix=no
10871
10872 case $GCC,$host_os in
10873 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10874 library_names_spec='$libname.dll.a'
10875 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10876 postinstall_cmds='base_file=`basename \${file}`~
10877 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10878 dldir=$destdir/`dirname \$dlpath`~
10879 test -d \$dldir || mkdir -p \$dldir~
10880 $install_prog $dir/$dlname \$dldir/$dlname~
10881 chmod a+x \$dldir/$dlname~
10882 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10883 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10884 fi'
10885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10886 dlpath=$dir/\$dldll~
10887 $RM \$dlpath'
10888 shlibpath_overrides_runpath=yes
10889
10890 case $host_os in
10891 cygwin*)
10892 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10893 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10894
10895 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10896 ;;
10897 mingw* | cegcc*)
10898 # MinGW DLLs use traditional 'lib' prefix
10899 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10900 ;;
10901 pw32*)
10902 # pw32 DLLs use 'pw' prefix rather than 'lib'
10903 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10904 ;;
10905 esac
10906 ;;
10907
10908 *)
10909 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10910 ;;
10911 esac
10912 dynamic_linker='Win32 ld.exe'
10913 # FIXME: first we should search . and the directory the executable is in
10914 shlibpath_var=PATH
10915 ;;
10916
10917darwin* | rhapsody*)
10918 dynamic_linker="$host_os dyld"
10919 version_type=darwin
10920 need_lib_prefix=no
10921 need_version=no
10922 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10923 soname_spec='${libname}${release}${major}$shared_ext'
10924 shlibpath_overrides_runpath=yes
10925 shlibpath_var=DYLD_LIBRARY_PATH
10926 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10927
10928 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10929 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10930 ;;
10931
10932dgux*)
10933 version_type=linux
10934 need_lib_prefix=no
10935 need_version=no
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10937 soname_spec='${libname}${release}${shared_ext}$major'
10938 shlibpath_var=LD_LIBRARY_PATH
10939 ;;
10940
10941freebsd* | dragonfly*)
10942 # DragonFly does not have aout. When/if they implement a new
10943 # versioning mechanism, adjust this.
10944 if test -x /usr/bin/objformat; then
10945 objformat=`/usr/bin/objformat`
10946 else
10947 case $host_os in
c6084f68 10948 freebsd[23].*) objformat=aout ;;
0a35513e
AH
10949 *) objformat=elf ;;
10950 esac
10951 fi
10952 version_type=freebsd-$objformat
10953 case $version_type in
10954 freebsd-elf*)
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10956 need_version=no
10957 need_lib_prefix=no
10958 ;;
10959 freebsd-*)
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10961 need_version=yes
10962 ;;
10963 esac
10964 shlibpath_var=LD_LIBRARY_PATH
10965 case $host_os in
c6084f68 10966 freebsd2.*)
0a35513e
AH
10967 shlibpath_overrides_runpath=yes
10968 ;;
10969 freebsd3.[01]* | freebsdelf3.[01]*)
10970 shlibpath_overrides_runpath=yes
10971 hardcode_into_libs=yes
10972 ;;
10973 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10974 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10975 shlibpath_overrides_runpath=no
10976 hardcode_into_libs=yes
10977 ;;
10978 *) # from 4.6 on, and DragonFly
10979 shlibpath_overrides_runpath=yes
10980 hardcode_into_libs=yes
10981 ;;
10982 esac
10983 ;;
10984
10985gnu*)
10986 version_type=linux
10987 need_lib_prefix=no
10988 need_version=no
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 hardcode_into_libs=yes
10993 ;;
10994
10995haiku*)
10996 version_type=linux
10997 need_lib_prefix=no
10998 need_version=no
10999 dynamic_linker="$host_os runtime_loader"
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11001 soname_spec='${libname}${release}${shared_ext}$major'
11002 shlibpath_var=LIBRARY_PATH
11003 shlibpath_overrides_runpath=yes
11004 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11005 hardcode_into_libs=yes
11006 ;;
11007
11008hpux9* | hpux10* | hpux11*)
11009 # Give a soname corresponding to the major version so that dld.sl refuses to
11010 # link against other versions.
11011 version_type=sunos
11012 need_lib_prefix=no
11013 need_version=no
11014 case $host_cpu in
11015 ia64*)
11016 shrext_cmds='.so'
11017 hardcode_into_libs=yes
11018 dynamic_linker="$host_os dld.so"
11019 shlibpath_var=LD_LIBRARY_PATH
11020 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11022 soname_spec='${libname}${release}${shared_ext}$major'
11023 if test "X$HPUX_IA64_MODE" = X32; then
11024 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11025 else
11026 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11027 fi
11028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11029 ;;
11030 hppa*64*)
11031 shrext_cmds='.sl'
11032 hardcode_into_libs=yes
11033 dynamic_linker="$host_os dld.sl"
11034 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037 soname_spec='${libname}${release}${shared_ext}$major'
11038 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11040 ;;
11041 *)
11042 shrext_cmds='.sl'
11043 dynamic_linker="$host_os dld.sl"
11044 shlibpath_var=SHLIB_PATH
11045 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047 soname_spec='${libname}${release}${shared_ext}$major'
11048 ;;
11049 esac
11050 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11051 postinstall_cmds='chmod 555 $lib'
11052 # or fails outright, so override atomically:
11053 install_override_mode=555
11054 ;;
11055
11056interix[3-9]*)
11057 version_type=linux
11058 need_lib_prefix=no
11059 need_version=no
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11061 soname_spec='${libname}${release}${shared_ext}$major'
11062 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11063 shlibpath_var=LD_LIBRARY_PATH
11064 shlibpath_overrides_runpath=no
11065 hardcode_into_libs=yes
11066 ;;
11067
11068irix5* | irix6* | nonstopux*)
11069 case $host_os in
11070 nonstopux*) version_type=nonstopux ;;
11071 *)
11072 if test "$lt_cv_prog_gnu_ld" = yes; then
11073 version_type=linux
11074 else
11075 version_type=irix
11076 fi ;;
11077 esac
11078 need_lib_prefix=no
11079 need_version=no
11080 soname_spec='${libname}${release}${shared_ext}$major'
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11082 case $host_os in
11083 irix5* | nonstopux*)
11084 libsuff= shlibsuff=
11085 ;;
11086 *)
11087 case $LD in # libtool.m4 will add one of these switches to LD
11088 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11089 libsuff= shlibsuff= libmagic=32-bit;;
11090 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11091 libsuff=32 shlibsuff=N32 libmagic=N32;;
11092 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11093 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11094 *) libsuff= shlibsuff= libmagic=never-match;;
11095 esac
11096 ;;
11097 esac
11098 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11099 shlibpath_overrides_runpath=no
11100 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11101 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11102 hardcode_into_libs=yes
11103 ;;
11104
11105# No shared lib support for Linux oldld, aout, or coff.
11106linux*oldld* | linux*aout* | linux*coff*)
11107 dynamic_linker=no
11108 ;;
11109
11110# This must be Linux ELF.
11111linux* | k*bsd*-gnu | kopensolaris*-gnu)
11112 version_type=linux
11113 need_lib_prefix=no
11114 need_version=no
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116 soname_spec='${libname}${release}${shared_ext}$major'
11117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11118 shlibpath_var=LD_LIBRARY_PATH
11119 shlibpath_overrides_runpath=no
11120
11121 # Some binutils ld are patched to set DT_RUNPATH
11122 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11123 $as_echo_n "(cached) " >&6
11124else
11125 lt_cv_shlibpath_overrides_runpath=no
11126 save_LDFLAGS=$LDFLAGS
11127 save_libdir=$libdir
11128 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11129 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131/* end confdefs.h. */
11132
11133int
11134main ()
11135{
11136
11137 ;
11138 return 0;
11139}
11140_ACEOF
11141if ac_fn_c_try_link "$LINENO"; then :
11142 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11143 lt_cv_shlibpath_overrides_runpath=yes
11144fi
11145fi
11146rm -f core conftest.err conftest.$ac_objext \
11147 conftest$ac_exeext conftest.$ac_ext
11148 LDFLAGS=$save_LDFLAGS
11149 libdir=$save_libdir
11150
11151fi
11152
11153 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11154
11155 # This implies no fast_install, which is unacceptable.
11156 # Some rework will be needed to allow for fast_install
11157 # before this can be enabled.
11158 hardcode_into_libs=yes
11159
11160 # Append ld.so.conf contents to the search path
11161 if test -f /etc/ld.so.conf; then
11162 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' ' '`
11163 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11164 fi
11165
11166 # We used to test for /lib/ld.so.1 and disable shared libraries on
11167 # powerpc, because MkLinux only supported shared libraries with the
11168 # GNU dynamic linker. Since this was broken with cross compilers,
11169 # most powerpc-linux boxes support dynamic linking these days and
11170 # people can always --disable-shared, the test was removed, and we
11171 # assume the GNU/Linux dynamic linker is in use.
11172 dynamic_linker='GNU/Linux ld.so'
11173 ;;
11174
11175netbsd*)
11176 version_type=sunos
11177 need_lib_prefix=no
11178 need_version=no
11179 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11182 dynamic_linker='NetBSD (a.out) ld.so'
11183 else
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11185 soname_spec='${libname}${release}${shared_ext}$major'
11186 dynamic_linker='NetBSD ld.elf_so'
11187 fi
11188 shlibpath_var=LD_LIBRARY_PATH
11189 shlibpath_overrides_runpath=yes
11190 hardcode_into_libs=yes
11191 ;;
11192
11193newsos6)
11194 version_type=linux
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196 shlibpath_var=LD_LIBRARY_PATH
11197 shlibpath_overrides_runpath=yes
11198 ;;
11199
11200*nto* | *qnx*)
11201 version_type=qnx
11202 need_lib_prefix=no
11203 need_version=no
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205 soname_spec='${libname}${release}${shared_ext}$major'
11206 shlibpath_var=LD_LIBRARY_PATH
11207 shlibpath_overrides_runpath=no
11208 hardcode_into_libs=yes
11209 dynamic_linker='ldqnx.so'
11210 ;;
11211
11212openbsd*)
11213 version_type=sunos
11214 sys_lib_dlsearch_path_spec="/usr/lib"
11215 need_lib_prefix=no
11216 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11217 case $host_os in
11218 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11219 *) need_version=no ;;
11220 esac
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11223 shlibpath_var=LD_LIBRARY_PATH
11224 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11225 case $host_os in
11226 openbsd2.[89] | openbsd2.[89].*)
11227 shlibpath_overrides_runpath=no
11228 ;;
11229 *)
11230 shlibpath_overrides_runpath=yes
11231 ;;
11232 esac
11233 else
11234 shlibpath_overrides_runpath=yes
11235 fi
11236 ;;
11237
11238os2*)
11239 libname_spec='$name'
11240 shrext_cmds=".dll"
11241 need_lib_prefix=no
11242 library_names_spec='$libname${shared_ext} $libname.a'
11243 dynamic_linker='OS/2 ld.exe'
11244 shlibpath_var=LIBPATH
11245 ;;
11246
11247osf3* | osf4* | osf5*)
11248 version_type=osf
11249 need_lib_prefix=no
11250 need_version=no
11251 soname_spec='${libname}${release}${shared_ext}$major'
11252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11255 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11256 ;;
11257
11258rdos*)
11259 dynamic_linker=no
11260 ;;
11261
11262solaris*)
11263 version_type=linux
11264 need_lib_prefix=no
11265 need_version=no
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 soname_spec='${libname}${release}${shared_ext}$major'
11268 shlibpath_var=LD_LIBRARY_PATH
11269 shlibpath_overrides_runpath=yes
11270 hardcode_into_libs=yes
11271 # ldd complains unless libraries are executable
11272 postinstall_cmds='chmod +x $lib'
11273 ;;
11274
11275sunos4*)
11276 version_type=sunos
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11278 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11279 shlibpath_var=LD_LIBRARY_PATH
11280 shlibpath_overrides_runpath=yes
11281 if test "$with_gnu_ld" = yes; then
11282 need_lib_prefix=no
11283 fi
11284 need_version=yes
11285 ;;
11286
11287sysv4 | sysv4.3*)
11288 version_type=linux
11289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11290 soname_spec='${libname}${release}${shared_ext}$major'
11291 shlibpath_var=LD_LIBRARY_PATH
11292 case $host_vendor in
11293 sni)
11294 shlibpath_overrides_runpath=no
11295 need_lib_prefix=no
11296 runpath_var=LD_RUN_PATH
11297 ;;
11298 siemens)
11299 need_lib_prefix=no
11300 ;;
11301 motorola)
11302 need_lib_prefix=no
11303 need_version=no
11304 shlibpath_overrides_runpath=no
11305 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11306 ;;
11307 esac
11308 ;;
11309
11310sysv4*MP*)
11311 if test -d /usr/nec ;then
11312 version_type=linux
11313 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11314 soname_spec='$libname${shared_ext}.$major'
11315 shlibpath_var=LD_LIBRARY_PATH
11316 fi
11317 ;;
11318
11319sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11320 version_type=freebsd-elf
11321 need_lib_prefix=no
11322 need_version=no
11323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11324 soname_spec='${libname}${release}${shared_ext}$major'
11325 shlibpath_var=LD_LIBRARY_PATH
11326 shlibpath_overrides_runpath=yes
11327 hardcode_into_libs=yes
11328 if test "$with_gnu_ld" = yes; then
11329 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11330 else
11331 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11332 case $host_os in
11333 sco3.2v5*)
11334 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11335 ;;
11336 esac
11337 fi
11338 sys_lib_dlsearch_path_spec='/usr/lib'
11339 ;;
11340
11341tpf*)
11342 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11343 version_type=linux
11344 need_lib_prefix=no
11345 need_version=no
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347 shlibpath_var=LD_LIBRARY_PATH
11348 shlibpath_overrides_runpath=no
11349 hardcode_into_libs=yes
11350 ;;
11351
11352uts4*)
11353 version_type=linux
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355 soname_spec='${libname}${release}${shared_ext}$major'
11356 shlibpath_var=LD_LIBRARY_PATH
11357 ;;
11358
11359*)
11360 dynamic_linker=no
11361 ;;
11362esac
11363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11364$as_echo "$dynamic_linker" >&6; }
11365test "$dynamic_linker" = no && can_build_shared=no
11366
11367variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11368if test "$GCC" = yes; then
11369 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11370fi
11371
11372if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11373 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11374fi
11375if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11376 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11377fi
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11471$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11472hardcode_action=
11473if test -n "$hardcode_libdir_flag_spec" ||
11474 test -n "$runpath_var" ||
11475 test "X$hardcode_automatic" = "Xyes" ; then
11476
11477 # We can hardcode non-existent directories.
11478 if test "$hardcode_direct" != no &&
11479 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11480 # have to relink, otherwise we might link with an installed library
11481 # when we should be linking with a yet-to-be-installed one
11482 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11483 test "$hardcode_minus_L" != no; then
11484 # Linking always hardcodes the temporary library directory.
11485 hardcode_action=relink
11486 else
11487 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11488 hardcode_action=immediate
11489 fi
11490else
11491 # We cannot hardcode anything, or else we can only hardcode existing
11492 # directories.
11493 hardcode_action=unsupported
11494fi
11495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11496$as_echo "$hardcode_action" >&6; }
11497
11498if test "$hardcode_action" = relink ||
11499 test "$inherit_rpath" = yes; then
11500 # Fast installation is not supported
11501 enable_fast_install=no
11502elif test "$shlibpath_overrides_runpath" = yes ||
11503 test "$enable_shared" = no; then
11504 # Fast installation is not necessary
11505 enable_fast_install=needless
11506fi
11507
11508
11509
11510
11511
11512
11513 if test "x$enable_dlopen" != xyes; then
11514 enable_dlopen=unknown
11515 enable_dlopen_self=unknown
11516 enable_dlopen_self_static=unknown
11517else
11518 lt_cv_dlopen=no
11519 lt_cv_dlopen_libs=
11520
11521 case $host_os in
11522 beos*)
11523 lt_cv_dlopen="load_add_on"
11524 lt_cv_dlopen_libs=
11525 lt_cv_dlopen_self=yes
11526 ;;
11527
11528 mingw* | pw32* | cegcc*)
11529 lt_cv_dlopen="LoadLibrary"
11530 lt_cv_dlopen_libs=
11531 ;;
11532
11533 cygwin*)
11534 lt_cv_dlopen="dlopen"
11535 lt_cv_dlopen_libs=
11536 ;;
11537
11538 darwin*)
11539 # if libdl is installed we need to link against it
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11541$as_echo_n "checking for dlopen in -ldl... " >&6; }
11542if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11543 $as_echo_n "(cached) " >&6
11544else
11545 ac_check_lib_save_LIBS=$LIBS
11546LIBS="-ldl $LIBS"
11547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548/* end confdefs.h. */
11549
11550/* Override any GCC internal prototype to avoid an error.
11551 Use char because int might match the return type of a GCC
11552 builtin and then its argument prototype would still apply. */
11553#ifdef __cplusplus
11554extern "C"
11555#endif
11556char dlopen ();
11557int
11558main ()
11559{
11560return dlopen ();
11561 ;
11562 return 0;
11563}
11564_ACEOF
11565if ac_fn_c_try_link "$LINENO"; then :
11566 ac_cv_lib_dl_dlopen=yes
11567else
11568 ac_cv_lib_dl_dlopen=no
11569fi
11570rm -f core conftest.err conftest.$ac_objext \
11571 conftest$ac_exeext conftest.$ac_ext
11572LIBS=$ac_check_lib_save_LIBS
11573fi
11574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11575$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11576if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11577 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11578else
11579
11580 lt_cv_dlopen="dyld"
11581 lt_cv_dlopen_libs=
11582 lt_cv_dlopen_self=yes
11583
11584fi
11585
11586 ;;
11587
11588 *)
11589 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11590if test "x$ac_cv_func_shl_load" = x""yes; then :
11591 lt_cv_dlopen="shl_load"
11592else
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11594$as_echo_n "checking for shl_load in -ldld... " >&6; }
11595if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
11597else
11598 ac_check_lib_save_LIBS=$LIBS
11599LIBS="-ldld $LIBS"
11600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11601/* end confdefs.h. */
11602
11603/* Override any GCC internal prototype to avoid an error.
11604 Use char because int might match the return type of a GCC
11605 builtin and then its argument prototype would still apply. */
11606#ifdef __cplusplus
11607extern "C"
11608#endif
11609char shl_load ();
11610int
11611main ()
11612{
11613return shl_load ();
11614 ;
11615 return 0;
11616}
11617_ACEOF
11618if ac_fn_c_try_link "$LINENO"; then :
11619 ac_cv_lib_dld_shl_load=yes
11620else
11621 ac_cv_lib_dld_shl_load=no
11622fi
11623rm -f core conftest.err conftest.$ac_objext \
11624 conftest$ac_exeext conftest.$ac_ext
11625LIBS=$ac_check_lib_save_LIBS
11626fi
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11628$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11629if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11630 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11631else
11632 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11633if test "x$ac_cv_func_dlopen" = x""yes; then :
11634 lt_cv_dlopen="dlopen"
11635else
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11637$as_echo_n "checking for dlopen in -ldl... " >&6; }
11638if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11639 $as_echo_n "(cached) " >&6
11640else
11641 ac_check_lib_save_LIBS=$LIBS
11642LIBS="-ldl $LIBS"
11643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644/* end confdefs.h. */
11645
11646/* Override any GCC internal prototype to avoid an error.
11647 Use char because int might match the return type of a GCC
11648 builtin and then its argument prototype would still apply. */
11649#ifdef __cplusplus
11650extern "C"
11651#endif
11652char dlopen ();
11653int
11654main ()
11655{
11656return dlopen ();
11657 ;
11658 return 0;
11659}
11660_ACEOF
11661if ac_fn_c_try_link "$LINENO"; then :
11662 ac_cv_lib_dl_dlopen=yes
11663else
11664 ac_cv_lib_dl_dlopen=no
11665fi
11666rm -f core conftest.err conftest.$ac_objext \
11667 conftest$ac_exeext conftest.$ac_ext
11668LIBS=$ac_check_lib_save_LIBS
11669fi
11670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11671$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11672if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11673 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11674else
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11676$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11677if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11678 $as_echo_n "(cached) " >&6
11679else
11680 ac_check_lib_save_LIBS=$LIBS
11681LIBS="-lsvld $LIBS"
11682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683/* end confdefs.h. */
11684
11685/* Override any GCC internal prototype to avoid an error.
11686 Use char because int might match the return type of a GCC
11687 builtin and then its argument prototype would still apply. */
11688#ifdef __cplusplus
11689extern "C"
11690#endif
11691char dlopen ();
11692int
11693main ()
11694{
11695return dlopen ();
11696 ;
11697 return 0;
11698}
11699_ACEOF
11700if ac_fn_c_try_link "$LINENO"; then :
11701 ac_cv_lib_svld_dlopen=yes
11702else
11703 ac_cv_lib_svld_dlopen=no
11704fi
11705rm -f core conftest.err conftest.$ac_objext \
11706 conftest$ac_exeext conftest.$ac_ext
11707LIBS=$ac_check_lib_save_LIBS
11708fi
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11710$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11711if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11712 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11713else
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11715$as_echo_n "checking for dld_link in -ldld... " >&6; }
11716if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11717 $as_echo_n "(cached) " >&6
11718else
11719 ac_check_lib_save_LIBS=$LIBS
11720LIBS="-ldld $LIBS"
11721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722/* end confdefs.h. */
11723
11724/* Override any GCC internal prototype to avoid an error.
11725 Use char because int might match the return type of a GCC
11726 builtin and then its argument prototype would still apply. */
11727#ifdef __cplusplus
11728extern "C"
11729#endif
11730char dld_link ();
11731int
11732main ()
11733{
11734return dld_link ();
11735 ;
11736 return 0;
11737}
11738_ACEOF
11739if ac_fn_c_try_link "$LINENO"; then :
11740 ac_cv_lib_dld_dld_link=yes
11741else
11742 ac_cv_lib_dld_dld_link=no
11743fi
11744rm -f core conftest.err conftest.$ac_objext \
11745 conftest$ac_exeext conftest.$ac_ext
11746LIBS=$ac_check_lib_save_LIBS
11747fi
11748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11749$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11750if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11751 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11752fi
11753
11754
11755fi
11756
11757
11758fi
11759
11760
11761fi
11762
11763
11764fi
11765
11766
11767fi
11768
11769 ;;
11770 esac
11771
11772 if test "x$lt_cv_dlopen" != xno; then
11773 enable_dlopen=yes
11774 else
11775 enable_dlopen=no
11776 fi
11777
11778 case $lt_cv_dlopen in
11779 dlopen)
11780 save_CPPFLAGS="$CPPFLAGS"
11781 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11782
11783 save_LDFLAGS="$LDFLAGS"
11784 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11785
11786 save_LIBS="$LIBS"
11787 LIBS="$lt_cv_dlopen_libs $LIBS"
11788
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11790$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11791if test "${lt_cv_dlopen_self+set}" = set; then :
11792 $as_echo_n "(cached) " >&6
11793else
11794 if test "$cross_compiling" = yes; then :
11795 lt_cv_dlopen_self=cross
11796else
11797 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11798 lt_status=$lt_dlunknown
11799 cat > conftest.$ac_ext <<_LT_EOF
c51081fc 11800#line 11800 "configure"
0a35513e
AH
11801#include "confdefs.h"
11802
11803#if HAVE_DLFCN_H
11804#include <dlfcn.h>
11805#endif
11806
11807#include <stdio.h>
11808
11809#ifdef RTLD_GLOBAL
11810# define LT_DLGLOBAL RTLD_GLOBAL
11811#else
11812# ifdef DL_GLOBAL
11813# define LT_DLGLOBAL DL_GLOBAL
11814# else
11815# define LT_DLGLOBAL 0
11816# endif
11817#endif
11818
11819/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11820 find out it does not work in some platform. */
11821#ifndef LT_DLLAZY_OR_NOW
11822# ifdef RTLD_LAZY
11823# define LT_DLLAZY_OR_NOW RTLD_LAZY
11824# else
11825# ifdef DL_LAZY
11826# define LT_DLLAZY_OR_NOW DL_LAZY
11827# else
11828# ifdef RTLD_NOW
11829# define LT_DLLAZY_OR_NOW RTLD_NOW
11830# else
11831# ifdef DL_NOW
11832# define LT_DLLAZY_OR_NOW DL_NOW
11833# else
11834# define LT_DLLAZY_OR_NOW 0
11835# endif
11836# endif
11837# endif
11838# endif
11839#endif
11840
11841/* When -fvisbility=hidden is used, assume the code has been annotated
11842 correspondingly for the symbols needed. */
11843#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11844void fnord () __attribute__((visibility("default")));
11845#endif
11846
11847void fnord () { int i=42; }
11848int main ()
11849{
11850 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11851 int status = $lt_dlunknown;
11852
11853 if (self)
11854 {
11855 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11856 else
11857 {
11858 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11859 else puts (dlerror ());
11860 }
11861 /* dlclose (self); */
11862 }
11863 else
11864 puts (dlerror ());
11865
11866 return status;
11867}
11868_LT_EOF
11869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11870 (eval $ac_link) 2>&5
11871 ac_status=$?
11872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11873 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11874 (./conftest; exit; ) >&5 2>/dev/null
11875 lt_status=$?
11876 case x$lt_status in
11877 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11878 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11879 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11880 esac
11881 else :
11882 # compilation failed
11883 lt_cv_dlopen_self=no
11884 fi
11885fi
11886rm -fr conftest*
11887
11888
11889fi
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11891$as_echo "$lt_cv_dlopen_self" >&6; }
11892
11893 if test "x$lt_cv_dlopen_self" = xyes; then
11894 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11896$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11897if test "${lt_cv_dlopen_self_static+set}" = set; then :
11898 $as_echo_n "(cached) " >&6
11899else
11900 if test "$cross_compiling" = yes; then :
11901 lt_cv_dlopen_self_static=cross
11902else
11903 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11904 lt_status=$lt_dlunknown
11905 cat > conftest.$ac_ext <<_LT_EOF
c51081fc 11906#line 11906 "configure"
0a35513e
AH
11907#include "confdefs.h"
11908
11909#if HAVE_DLFCN_H
11910#include <dlfcn.h>
11911#endif
11912
11913#include <stdio.h>
11914
11915#ifdef RTLD_GLOBAL
11916# define LT_DLGLOBAL RTLD_GLOBAL
11917#else
11918# ifdef DL_GLOBAL
11919# define LT_DLGLOBAL DL_GLOBAL
11920# else
11921# define LT_DLGLOBAL 0
11922# endif
11923#endif
11924
11925/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11926 find out it does not work in some platform. */
11927#ifndef LT_DLLAZY_OR_NOW
11928# ifdef RTLD_LAZY
11929# define LT_DLLAZY_OR_NOW RTLD_LAZY
11930# else
11931# ifdef DL_LAZY
11932# define LT_DLLAZY_OR_NOW DL_LAZY
11933# else
11934# ifdef RTLD_NOW
11935# define LT_DLLAZY_OR_NOW RTLD_NOW
11936# else
11937# ifdef DL_NOW
11938# define LT_DLLAZY_OR_NOW DL_NOW
11939# else
11940# define LT_DLLAZY_OR_NOW 0
11941# endif
11942# endif
11943# endif
11944# endif
11945#endif
11946
11947/* When -fvisbility=hidden is used, assume the code has been annotated
11948 correspondingly for the symbols needed. */
11949#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11950void fnord () __attribute__((visibility("default")));
11951#endif
11952
11953void fnord () { int i=42; }
11954int main ()
11955{
11956 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11957 int status = $lt_dlunknown;
11958
11959 if (self)
11960 {
11961 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11962 else
11963 {
11964 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11965 else puts (dlerror ());
11966 }
11967 /* dlclose (self); */
11968 }
11969 else
11970 puts (dlerror ());
11971
11972 return status;
11973}
11974_LT_EOF
11975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11976 (eval $ac_link) 2>&5
11977 ac_status=$?
11978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11979 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11980 (./conftest; exit; ) >&5 2>/dev/null
11981 lt_status=$?
11982 case x$lt_status in
11983 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11984 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11985 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11986 esac
11987 else :
11988 # compilation failed
11989 lt_cv_dlopen_self_static=no
11990 fi
11991fi
11992rm -fr conftest*
11993
11994
11995fi
11996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11997$as_echo "$lt_cv_dlopen_self_static" >&6; }
11998 fi
11999
12000 CPPFLAGS="$save_CPPFLAGS"
12001 LDFLAGS="$save_LDFLAGS"
12002 LIBS="$save_LIBS"
12003 ;;
12004 esac
12005
12006 case $lt_cv_dlopen_self in
12007 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12008 *) enable_dlopen_self=unknown ;;
12009 esac
12010
12011 case $lt_cv_dlopen_self_static in
12012 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12013 *) enable_dlopen_self_static=unknown ;;
12014 esac
12015fi
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033striplib=
12034old_striplib=
12035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12036$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12037if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12038 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12039 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12041$as_echo "yes" >&6; }
12042else
12043# FIXME - insert some real tests, host_os isn't really good enough
12044 case $host_os in
12045 darwin*)
12046 if test -n "$STRIP" ; then
12047 striplib="$STRIP -x"
12048 old_striplib="$STRIP -S"
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12050$as_echo "yes" >&6; }
12051 else
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053$as_echo "no" >&6; }
12054 fi
12055 ;;
12056 *)
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058$as_echo "no" >&6; }
12059 ;;
12060 esac
12061fi
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074 # Report which library types will actually be built
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12076$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12078$as_echo "$can_build_shared" >&6; }
12079
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12081$as_echo_n "checking whether to build shared libraries... " >&6; }
12082 test "$can_build_shared" = "no" && enable_shared=no
12083
12084 # On AIX, shared libraries and static libraries use the same namespace, and
12085 # are all built from PIC.
12086 case $host_os in
12087 aix3*)
12088 test "$enable_shared" = yes && enable_static=no
12089 if test -n "$RANLIB"; then
12090 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12091 postinstall_cmds='$RANLIB $lib'
12092 fi
12093 ;;
12094
12095 aix[4-9]*)
12096 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12097 test "$enable_shared" = yes && enable_static=no
12098 fi
12099 ;;
12100 esac
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12102$as_echo "$enable_shared" >&6; }
12103
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12105$as_echo_n "checking whether to build static libraries... " >&6; }
12106 # Make sure either enable_shared or enable_static is yes.
12107 test "$enable_shared" = yes || enable_static=yes
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12109$as_echo "$enable_static" >&6; }
12110
12111
12112
12113
12114fi
12115ac_ext=c
12116ac_cpp='$CPP $CPPFLAGS'
12117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12119ac_compiler_gnu=$ac_cv_c_compiler_gnu
12120
12121CC="$lt_save_CC"
12122
12123 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12124 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12125 (test "X$CXX" != "Xg++"))) ; then
12126 ac_ext=cpp
12127ac_cpp='$CXXCPP $CPPFLAGS'
12128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12132$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12133if test -z "$CXXCPP"; then
12134 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12135 $as_echo_n "(cached) " >&6
12136else
12137 # Double quotes because CXXCPP needs to be expanded
12138 for CXXCPP in "$CXX -E" "/lib/cpp"
12139 do
12140 ac_preproc_ok=false
12141for ac_cxx_preproc_warn_flag in '' yes
12142do
12143 # Use a header file that comes with gcc, so configuring glibc
12144 # with a fresh cross-compiler works.
12145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12146 # <limits.h> exists even on freestanding compilers.
12147 # On the NeXT, cc -E runs the code through the compiler's parser,
12148 # not just through cpp. "Syntax error" is here to catch this case.
12149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12150/* end confdefs.h. */
12151#ifdef __STDC__
12152# include <limits.h>
12153#else
12154# include <assert.h>
12155#endif
12156 Syntax error
12157_ACEOF
12158if ac_fn_cxx_try_cpp "$LINENO"; then :
12159
12160else
12161 # Broken: fails on valid input.
12162continue
12163fi
12164rm -f conftest.err conftest.$ac_ext
12165
12166 # OK, works on sane cases. Now check whether nonexistent headers
12167 # can be detected and how.
12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169/* end confdefs.h. */
12170#include <ac_nonexistent.h>
12171_ACEOF
12172if ac_fn_cxx_try_cpp "$LINENO"; then :
12173 # Broken: success on invalid input.
12174continue
12175else
12176 # Passes both tests.
12177ac_preproc_ok=:
12178break
12179fi
12180rm -f conftest.err conftest.$ac_ext
12181
12182done
12183# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12184rm -f conftest.err conftest.$ac_ext
12185if $ac_preproc_ok; then :
12186 break
12187fi
12188
12189 done
12190 ac_cv_prog_CXXCPP=$CXXCPP
12191
12192fi
12193 CXXCPP=$ac_cv_prog_CXXCPP
12194else
12195 ac_cv_prog_CXXCPP=$CXXCPP
12196fi
12197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12198$as_echo "$CXXCPP" >&6; }
12199ac_preproc_ok=false
12200for ac_cxx_preproc_warn_flag in '' yes
12201do
12202 # Use a header file that comes with gcc, so configuring glibc
12203 # with a fresh cross-compiler works.
12204 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12205 # <limits.h> exists even on freestanding compilers.
12206 # On the NeXT, cc -E runs the code through the compiler's parser,
12207 # not just through cpp. "Syntax error" is here to catch this case.
12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209/* end confdefs.h. */
12210#ifdef __STDC__
12211# include <limits.h>
12212#else
12213# include <assert.h>
12214#endif
12215 Syntax error
12216_ACEOF
12217if ac_fn_cxx_try_cpp "$LINENO"; then :
12218
12219else
12220 # Broken: fails on valid input.
12221continue
12222fi
12223rm -f conftest.err conftest.$ac_ext
12224
12225 # OK, works on sane cases. Now check whether nonexistent headers
12226 # can be detected and how.
12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228/* end confdefs.h. */
12229#include <ac_nonexistent.h>
12230_ACEOF
12231if ac_fn_cxx_try_cpp "$LINENO"; then :
12232 # Broken: success on invalid input.
12233continue
12234else
12235 # Passes both tests.
12236ac_preproc_ok=:
12237break
12238fi
12239rm -f conftest.err conftest.$ac_ext
12240
12241done
12242# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12243rm -f conftest.err conftest.$ac_ext
12244if $ac_preproc_ok; then :
12245
12246else
12247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12249as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12250See \`config.log' for more details." "$LINENO" 5; }
12251fi
12252
12253ac_ext=c
12254ac_cpp='$CPP $CPPFLAGS'
12255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12257ac_compiler_gnu=$ac_cv_c_compiler_gnu
12258
12259else
12260 _lt_caught_CXX_error=yes
12261fi
12262
12263ac_ext=cpp
12264ac_cpp='$CXXCPP $CPPFLAGS'
12265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12268
12269archive_cmds_need_lc_CXX=no
12270allow_undefined_flag_CXX=
12271always_export_symbols_CXX=no
12272archive_expsym_cmds_CXX=
12273compiler_needs_object_CXX=no
12274export_dynamic_flag_spec_CXX=
12275hardcode_direct_CXX=no
12276hardcode_direct_absolute_CXX=no
12277hardcode_libdir_flag_spec_CXX=
12278hardcode_libdir_flag_spec_ld_CXX=
12279hardcode_libdir_separator_CXX=
12280hardcode_minus_L_CXX=no
12281hardcode_shlibpath_var_CXX=unsupported
12282hardcode_automatic_CXX=no
12283inherit_rpath_CXX=no
12284module_cmds_CXX=
12285module_expsym_cmds_CXX=
12286link_all_deplibs_CXX=unknown
12287old_archive_cmds_CXX=$old_archive_cmds
12288reload_flag_CXX=$reload_flag
12289reload_cmds_CXX=$reload_cmds
12290no_undefined_flag_CXX=
12291whole_archive_flag_spec_CXX=
12292enable_shared_with_static_runtimes_CXX=no
12293
12294# Source file extension for C++ test sources.
12295ac_ext=cpp
12296
12297# Object file extension for compiled C++ test sources.
12298objext=o
12299objext_CXX=$objext
12300
12301# No sense in running all these tests if we already determined that
12302# the CXX compiler isn't working. Some variables (like enable_shared)
12303# are currently assumed to apply to all compilers on this platform,
12304# and will be corrupted by setting them based on a non-working compiler.
12305if test "$_lt_caught_CXX_error" != yes; then
12306 # Code to be used in simple compile tests
12307 lt_simple_compile_test_code="int some_variable = 0;"
12308
12309 # Code to be used in simple link tests
12310 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12311
12312 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12313
12314
12315
12316
12317
12318
12319# If no C compiler was specified, use CC.
12320LTCC=${LTCC-"$CC"}
12321
12322# If no C compiler flags were specified, use CFLAGS.
12323LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12324
12325# Allow CC to be a program name with arguments.
12326compiler=$CC
12327
12328
12329 # save warnings/boilerplate of simple test code
12330 ac_outfile=conftest.$ac_objext
12331echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12332eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12333_lt_compiler_boilerplate=`cat conftest.err`
12334$RM conftest*
12335
12336 ac_outfile=conftest.$ac_objext
12337echo "$lt_simple_link_test_code" >conftest.$ac_ext
12338eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12339_lt_linker_boilerplate=`cat conftest.err`
12340$RM -r conftest*
12341
12342
12343 # Allow CC to be a program name with arguments.
12344 lt_save_CC=$CC
12345 lt_save_LD=$LD
12346 lt_save_GCC=$GCC
12347 GCC=$GXX
12348 lt_save_with_gnu_ld=$with_gnu_ld
12349 lt_save_path_LD=$lt_cv_path_LD
12350 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12351 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12352 else
12353 $as_unset lt_cv_prog_gnu_ld
12354 fi
12355 if test -n "${lt_cv_path_LDCXX+set}"; then
12356 lt_cv_path_LD=$lt_cv_path_LDCXX
12357 else
12358 $as_unset lt_cv_path_LD
12359 fi
12360 test -z "${LDCXX+set}" || LD=$LDCXX
12361 CC=${CXX-"c++"}
12362 compiler=$CC
12363 compiler_CXX=$CC
12364 for cc_temp in $compiler""; do
12365 case $cc_temp in
12366 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12367 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12368 \-*) ;;
12369 *) break;;
12370 esac
12371done
12372cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12373
12374
12375 if test -n "$compiler"; then
12376 # We don't want -fno-exception when compiling C++ code, so set the
12377 # no_builtin_flag separately
12378 if test "$GXX" = yes; then
12379 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12380 else
12381 lt_prog_compiler_no_builtin_flag_CXX=
12382 fi
12383
12384 if test "$GXX" = yes; then
12385 # Set up default GNU C++ configuration
12386
12387
12388
12389# Check whether --with-gnu-ld was given.
12390if test "${with_gnu_ld+set}" = set; then :
12391 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12392else
12393 with_gnu_ld=no
12394fi
12395
12396ac_prog=ld
12397if test "$GCC" = yes; then
12398 # Check if gcc -print-prog-name=ld gives a path.
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12400$as_echo_n "checking for ld used by $CC... " >&6; }
12401 case $host in
12402 *-*-mingw*)
12403 # gcc leaves a trailing carriage return which upsets mingw
12404 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12405 *)
12406 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12407 esac
12408 case $ac_prog in
12409 # Accept absolute paths.
12410 [\\/]* | ?:[\\/]*)
12411 re_direlt='/[^/][^/]*/\.\./'
12412 # Canonicalize the pathname of ld
12413 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12414 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12415 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12416 done
12417 test -z "$LD" && LD="$ac_prog"
12418 ;;
12419 "")
12420 # If it fails, then pretend we aren't using GCC.
12421 ac_prog=ld
12422 ;;
12423 *)
12424 # If it is relative, then search for the first ld in PATH.
12425 with_gnu_ld=unknown
12426 ;;
12427 esac
12428elif test "$with_gnu_ld" = yes; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12430$as_echo_n "checking for GNU ld... " >&6; }
12431else
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12433$as_echo_n "checking for non-GNU ld... " >&6; }
12434fi
12435if test "${lt_cv_path_LD+set}" = set; then :
12436 $as_echo_n "(cached) " >&6
12437else
12438 if test -z "$LD"; then
12439 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12440 for ac_dir in $PATH; do
12441 IFS="$lt_save_ifs"
12442 test -z "$ac_dir" && ac_dir=.
12443 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12444 lt_cv_path_LD="$ac_dir/$ac_prog"
12445 # Check to see if the program is GNU ld. I'd rather use --version,
12446 # but apparently some variants of GNU ld only accept -v.
12447 # Break only if it was the GNU/non-GNU ld that we prefer.
12448 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12449 *GNU* | *'with BFD'*)
12450 test "$with_gnu_ld" != no && break
12451 ;;
12452 *)
12453 test "$with_gnu_ld" != yes && break
12454 ;;
12455 esac
12456 fi
12457 done
12458 IFS="$lt_save_ifs"
12459else
12460 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12461fi
12462fi
12463
12464LD="$lt_cv_path_LD"
12465if test -n "$LD"; then
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12467$as_echo "$LD" >&6; }
12468else
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12470$as_echo "no" >&6; }
12471fi
12472test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12474$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12475if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12476 $as_echo_n "(cached) " >&6
12477else
12478 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12479case `$LD -v 2>&1 </dev/null` in
12480*GNU* | *'with BFD'*)
12481 lt_cv_prog_gnu_ld=yes
12482 ;;
12483*)
12484 lt_cv_prog_gnu_ld=no
12485 ;;
12486esac
12487fi
12488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12489$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12490with_gnu_ld=$lt_cv_prog_gnu_ld
12491
12492
12493
12494
12495
12496
12497
12498 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12499 # archiving commands below assume that GNU ld is being used.
12500 if test "$with_gnu_ld" = yes; then
a699d672
L
12501 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12502 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'
0a35513e
AH
12503
12504 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12505 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12506
12507 # If archive_cmds runs LD, not CC, wlarc should be empty
12508 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12509 # investigate it a little bit more. (MM)
12510 wlarc='${wl}'
12511
12512 # ancient GNU ld didn't support --whole-archive et. al.
12513 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12514 $GREP 'no-whole-archive' > /dev/null; then
12515 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12516 else
12517 whole_archive_flag_spec_CXX=
12518 fi
12519 else
12520 with_gnu_ld=no
12521 wlarc=
12522
12523 # A generic and very simple default shared library creation
12524 # command for GNU C++ for the case where it uses the native
12525 # linker, instead of GNU ld. If possible, this setting should
12526 # overridden to take advantage of the native linker features on
12527 # the platform it is being used on.
12528 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12529 fi
12530
12531 # Commands to make compiler produce verbose output that lists
12532 # what "hidden" libraries, object files and flags are used when
12533 # linking a shared library.
12534 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12535
12536 else
12537 GXX=no
12538 with_gnu_ld=no
12539 wlarc=
12540 fi
12541
12542 # PORTME: fill in a description of your system's C++ link characteristics
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12544$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12545 ld_shlibs_CXX=yes
12546 case $host_os in
12547 aix3*)
12548 # FIXME: insert proper C++ library support
12549 ld_shlibs_CXX=no
12550 ;;
12551 aix[4-9]*)
12552 if test "$host_cpu" = ia64; then
12553 # On IA64, the linker does run time linking by default, so we don't
12554 # have to do anything special.
12555 aix_use_runtimelinking=no
12556 exp_sym_flag='-Bexport'
12557 no_entry_flag=""
12558 else
12559 aix_use_runtimelinking=no
12560
12561 # Test if we are trying to use run time linking or normal
12562 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12563 # need to do runtime linking.
12564 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12565 for ld_flag in $LDFLAGS; do
12566 case $ld_flag in
12567 *-brtl*)
12568 aix_use_runtimelinking=yes
12569 break
12570 ;;
12571 esac
12572 done
12573 ;;
12574 esac
12575
12576 exp_sym_flag='-bexport'
12577 no_entry_flag='-bnoentry'
12578 fi
12579
12580 # When large executables or shared objects are built, AIX ld can
12581 # have problems creating the table of contents. If linking a library
12582 # or program results in "error TOC overflow" add -mminimal-toc to
12583 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12584 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12585
12586 archive_cmds_CXX=''
12587 hardcode_direct_CXX=yes
12588 hardcode_direct_absolute_CXX=yes
12589 hardcode_libdir_separator_CXX=':'
12590 link_all_deplibs_CXX=yes
12591 file_list_spec_CXX='${wl}-f,'
12592
12593 if test "$GXX" = yes; then
12594 case $host_os in aix4.[012]|aix4.[012].*)
12595 # We only want to do this on AIX 4.2 and lower, the check
12596 # below for broken collect2 doesn't work under 4.3+
12597 collect2name=`${CC} -print-prog-name=collect2`
12598 if test -f "$collect2name" &&
12599 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12600 then
12601 # We have reworked collect2
12602 :
12603 else
12604 # We have old collect2
12605 hardcode_direct_CXX=unsupported
12606 # It fails to find uninstalled libraries when the uninstalled
12607 # path is not listed in the libpath. Setting hardcode_minus_L
12608 # to unsupported forces relinking
12609 hardcode_minus_L_CXX=yes
12610 hardcode_libdir_flag_spec_CXX='-L$libdir'
12611 hardcode_libdir_separator_CXX=
12612 fi
12613 esac
12614 shared_flag='-shared'
12615 if test "$aix_use_runtimelinking" = yes; then
12616 shared_flag="$shared_flag "'${wl}-G'
12617 fi
12618 else
12619 # not using gcc
12620 if test "$host_cpu" = ia64; then
12621 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12622 # chokes on -Wl,-G. The following line is correct:
12623 shared_flag='-G'
12624 else
12625 if test "$aix_use_runtimelinking" = yes; then
12626 shared_flag='${wl}-G'
12627 else
12628 shared_flag='${wl}-bM:SRE'
12629 fi
12630 fi
12631 fi
12632
12633 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12634 # It seems that -bexpall does not export symbols beginning with
12635 # underscore (_), so it is better to generate a list of symbols to
12636 # export.
12637 always_export_symbols_CXX=yes
12638 if test "$aix_use_runtimelinking" = yes; then
12639 # Warning - without using the other runtime loading flags (-brtl),
12640 # -berok will link without error, but may produce a broken library.
12641 allow_undefined_flag_CXX='-berok'
12642 # Determine the default libpath from the value encoded in an empty
12643 # executable.
12644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645/* end confdefs.h. */
12646
12647int
12648main ()
12649{
12650
12651 ;
12652 return 0;
12653}
12654_ACEOF
12655if ac_fn_cxx_try_link "$LINENO"; then :
12656
12657lt_aix_libpath_sed='
12658 /Import File Strings/,/^$/ {
12659 /^0/ {
12660 s/^0 *\(.*\)$/\1/
12661 p
12662 }
12663 }'
12664aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12665# Check for a 64-bit object if we didn't find anything.
12666if test -z "$aix_libpath"; then
12667 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12668fi
12669fi
12670rm -f core conftest.err conftest.$ac_objext \
12671 conftest$ac_exeext conftest.$ac_ext
12672if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12673
12674 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12675
12676 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"
12677 else
12678 if test "$host_cpu" = ia64; then
12679 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12680 allow_undefined_flag_CXX="-z nodefs"
12681 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"
12682 else
12683 # Determine the default libpath from the value encoded in an
12684 # empty executable.
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686/* end confdefs.h. */
12687
12688int
12689main ()
12690{
12691
12692 ;
12693 return 0;
12694}
12695_ACEOF
12696if ac_fn_cxx_try_link "$LINENO"; then :
12697
12698lt_aix_libpath_sed='
12699 /Import File Strings/,/^$/ {
12700 /^0/ {
12701 s/^0 *\(.*\)$/\1/
12702 p
12703 }
12704 }'
12705aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12706# Check for a 64-bit object if we didn't find anything.
12707if test -z "$aix_libpath"; then
12708 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12709fi
12710fi
12711rm -f core conftest.err conftest.$ac_objext \
12712 conftest$ac_exeext conftest.$ac_ext
12713if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12714
12715 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12716 # Warning - without using the other run time loading flags,
12717 # -berok will link without error, but may produce a broken library.
12718 no_undefined_flag_CXX=' ${wl}-bernotok'
12719 allow_undefined_flag_CXX=' ${wl}-berok'
12720 if test "$with_gnu_ld" = yes; then
12721 # We only use this code for GNU lds that support --whole-archive.
12722 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12723 else
12724 # Exported symbols can be pulled into shared objects from archives
12725 whole_archive_flag_spec_CXX='$convenience'
12726 fi
12727 archive_cmds_need_lc_CXX=yes
12728 # This is similar to how AIX traditionally builds its shared
12729 # libraries.
12730 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'
12731 fi
12732 fi
12733 ;;
12734
12735 beos*)
12736 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12737 allow_undefined_flag_CXX=unsupported
12738 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12739 # support --undefined. This deserves some investigation. FIXME
12740 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12741 else
12742 ld_shlibs_CXX=no
12743 fi
12744 ;;
12745
12746 chorus*)
12747 case $cc_basename in
12748 *)
12749 # FIXME: insert proper C++ library support
12750 ld_shlibs_CXX=no
12751 ;;
12752 esac
12753 ;;
12754
12755 cygwin* | mingw* | pw32* | cegcc*)
12756 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12757 # as there is no search path for DLLs.
12758 hardcode_libdir_flag_spec_CXX='-L$libdir'
12759 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12760 allow_undefined_flag_CXX=unsupported
12761 always_export_symbols_CXX=no
12762 enable_shared_with_static_runtimes_CXX=yes
12763
12764 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12765 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'
12766 # If the export-symbols file already is a .def file (1st line
12767 # is EXPORTS), use it as is; otherwise, prepend...
12768 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12769 cp $export_symbols $output_objdir/$soname.def;
12770 else
12771 echo EXPORTS > $output_objdir/$soname.def;
12772 cat $export_symbols >> $output_objdir/$soname.def;
12773 fi~
12774 $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'
12775 else
12776 ld_shlibs_CXX=no
12777 fi
12778 ;;
12779 darwin* | rhapsody*)
12780
12781
12782 archive_cmds_need_lc_CXX=no
12783 hardcode_direct_CXX=no
12784 hardcode_automatic_CXX=yes
12785 hardcode_shlibpath_var_CXX=unsupported
12786 if test "$lt_cv_ld_force_load" = "yes"; then
12787 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\"`'
12788 else
12789 whole_archive_flag_spec_CXX=''
12790 fi
12791 link_all_deplibs_CXX=yes
12792 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12793 case $cc_basename in
12794 ifort*) _lt_dar_can_shared=yes ;;
12795 *) _lt_dar_can_shared=$GCC ;;
12796 esac
12797 if test "$_lt_dar_can_shared" = "yes"; then
12798 output_verbose_link_cmd=func_echo_all
12799 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}"
12800 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12801 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}"
12802 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}"
12803 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12804 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}"
12805 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}"
12806 fi
12807
12808 else
12809 ld_shlibs_CXX=no
12810 fi
12811
12812 ;;
12813
12814 dgux*)
12815 case $cc_basename in
12816 ec++*)
12817 # FIXME: insert proper C++ library support
12818 ld_shlibs_CXX=no
12819 ;;
12820 ghcx*)
12821 # Green Hills C++ Compiler
12822 # FIXME: insert proper C++ library support
12823 ld_shlibs_CXX=no
12824 ;;
12825 *)
12826 # FIXME: insert proper C++ library support
12827 ld_shlibs_CXX=no
12828 ;;
12829 esac
12830 ;;
12831
c6084f68 12832 freebsd2.*)
0a35513e
AH
12833 # C++ shared libraries reported to be fairly broken before
12834 # switch to ELF
12835 ld_shlibs_CXX=no
12836 ;;
12837
12838 freebsd-elf*)
12839 archive_cmds_need_lc_CXX=no
12840 ;;
12841
12842 freebsd* | dragonfly*)
12843 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12844 # conventions
12845 ld_shlibs_CXX=yes
12846 ;;
12847
12848 gnu*)
12849 ;;
12850
12851 haiku*)
12852 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12853 link_all_deplibs_CXX=yes
12854 ;;
12855
12856 hpux9*)
12857 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12858 hardcode_libdir_separator_CXX=:
12859 export_dynamic_flag_spec_CXX='${wl}-E'
12860 hardcode_direct_CXX=yes
12861 hardcode_minus_L_CXX=yes # Not in the search PATH,
12862 # but as the default
12863 # location of the library.
12864
12865 case $cc_basename in
12866 CC*)
12867 # FIXME: insert proper C++ library support
12868 ld_shlibs_CXX=no
12869 ;;
12870 aCC*)
12871 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'
12872 # Commands to make compiler produce verbose output that lists
12873 # what "hidden" libraries, object files and flags are used when
12874 # linking a shared library.
12875 #
12876 # There doesn't appear to be a way to prevent this compiler from
12877 # explicitly linking system object files so we need to strip them
12878 # from the output so that they don't get included in the library
12879 # dependencies.
12880 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"'
12881 ;;
12882 *)
12883 if test "$GXX" = yes; then
12884 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'
12885 else
12886 # FIXME: insert proper C++ library support
12887 ld_shlibs_CXX=no
12888 fi
12889 ;;
12890 esac
12891 ;;
12892
12893 hpux10*|hpux11*)
12894 if test $with_gnu_ld = no; then
12895 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12896 hardcode_libdir_separator_CXX=:
12897
12898 case $host_cpu in
12899 hppa*64*|ia64*)
12900 ;;
12901 *)
12902 export_dynamic_flag_spec_CXX='${wl}-E'
12903 ;;
12904 esac
12905 fi
12906 case $host_cpu in
12907 hppa*64*|ia64*)
12908 hardcode_direct_CXX=no
12909 hardcode_shlibpath_var_CXX=no
12910 ;;
12911 *)
12912 hardcode_direct_CXX=yes
12913 hardcode_direct_absolute_CXX=yes
12914 hardcode_minus_L_CXX=yes # Not in the search PATH,
12915 # but as the default
12916 # location of the library.
12917 ;;
12918 esac
12919
12920 case $cc_basename in
12921 CC*)
12922 # FIXME: insert proper C++ library support
12923 ld_shlibs_CXX=no
12924 ;;
12925 aCC*)
12926 case $host_cpu in
12927 hppa*64*)
12928 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12929 ;;
12930 ia64*)
12931 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12932 ;;
12933 *)
12934 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12935 ;;
12936 esac
12937 # Commands to make compiler produce verbose output that lists
12938 # what "hidden" libraries, object files and flags are used when
12939 # linking a shared library.
12940 #
12941 # There doesn't appear to be a way to prevent this compiler from
12942 # explicitly linking system object files so we need to strip them
12943 # from the output so that they don't get included in the library
12944 # dependencies.
12945 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"'
12946 ;;
12947 *)
12948 if test "$GXX" = yes; then
12949 if test $with_gnu_ld = no; then
12950 case $host_cpu in
12951 hppa*64*)
12952 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12953 ;;
12954 ia64*)
12955 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12956 ;;
12957 *)
12958 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'
12959 ;;
12960 esac
12961 fi
12962 else
12963 # FIXME: insert proper C++ library support
12964 ld_shlibs_CXX=no
12965 fi
12966 ;;
12967 esac
12968 ;;
12969
12970 interix[3-9]*)
12971 hardcode_direct_CXX=no
12972 hardcode_shlibpath_var_CXX=no
12973 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12974 export_dynamic_flag_spec_CXX='${wl}-E'
12975 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12976 # Instead, shared libraries are loaded at an image base (0x10000000 by
12977 # default) and relocated if they conflict, which is a slow very memory
12978 # consuming and fragmenting process. To avoid this, we pick a random,
12979 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12980 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12981 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'
12982 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'
12983 ;;
12984 irix5* | irix6*)
12985 case $cc_basename in
12986 CC*)
12987 # SGI C++
12988 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'
12989
12990 # Archives containing C++ object files must be created using
12991 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12992 # necessary to make sure instantiated templates are included
12993 # in the archive.
12994 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12995 ;;
12996 *)
12997 if test "$GXX" = yes; then
12998 if test "$with_gnu_ld" = no; then
12999 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'
13000 else
13001 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'
13002 fi
13003 fi
13004 link_all_deplibs_CXX=yes
13005 ;;
13006 esac
13007 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13008 hardcode_libdir_separator_CXX=:
13009 inherit_rpath_CXX=yes
13010 ;;
13011
13012 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13013 case $cc_basename in
13014 KCC*)
13015 # Kuck and Associates, Inc. (KAI) C++ Compiler
13016
13017 # KCC will only create a shared library if the output file
13018 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13019 # to its proper name (with version) after linking.
13020 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'
13021 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'
13022 # Commands to make compiler produce verbose output that lists
13023 # what "hidden" libraries, object files and flags are used when
13024 # linking a shared library.
13025 #
13026 # There doesn't appear to be a way to prevent this compiler from
13027 # explicitly linking system object files so we need to strip them
13028 # from the output so that they don't get included in the library
13029 # dependencies.
13030 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"'
13031
13032 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13033 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13034
13035 # Archives containing C++ object files must be created using
13036 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13037 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13038 ;;
13039 icpc* | ecpc* )
13040 # Intel C++
13041 with_gnu_ld=yes
13042 # version 8.0 and above of icpc choke on multiply defined symbols
13043 # if we add $predep_objects and $postdep_objects, however 7.1 and
13044 # earlier do not add the objects themselves.
13045 case `$CC -V 2>&1` in
13046 *"Version 7."*)
13047 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13048 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'
13049 ;;
13050 *) # Version 8.0 or newer
13051 tmp_idyn=
13052 case $host_cpu in
13053 ia64*) tmp_idyn=' -i_dynamic';;
13054 esac
13055 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13056 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'
13057 ;;
13058 esac
13059 archive_cmds_need_lc_CXX=no
13060 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13061 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13062 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13063 ;;
13064 pgCC* | pgcpp*)
13065 # Portland Group C++ compiler
13066 case `$CC -V` in
13067 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13068 prelink_cmds_CXX='tpldir=Template.dir~
13069 rm -rf $tpldir~
13070 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13071 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13072 old_archive_cmds_CXX='tpldir=Template.dir~
13073 rm -rf $tpldir~
13074 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13075 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13076 $RANLIB $oldlib'
13077 archive_cmds_CXX='tpldir=Template.dir~
13078 rm -rf $tpldir~
13079 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13080 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13081 archive_expsym_cmds_CXX='tpldir=Template.dir~
13082 rm -rf $tpldir~
13083 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13084 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13085 ;;
13086 *) # Version 6 and above use weak symbols
13087 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13088 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'
13089 ;;
13090 esac
13091
13092 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13093 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13094 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'
13095 ;;
13096 cxx*)
13097 # Compaq C++
13098 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13099 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'
13100
13101 runpath_var=LD_RUN_PATH
13102 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13103 hardcode_libdir_separator_CXX=:
13104
13105 # Commands to make compiler produce verbose output that lists
13106 # what "hidden" libraries, object files and flags are used when
13107 # linking a shared library.
13108 #
13109 # There doesn't appear to be a way to prevent this compiler from
13110 # explicitly linking system object files so we need to strip them
13111 # from the output so that they don't get included in the library
13112 # dependencies.
13113 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'
13114 ;;
13115 xl* | mpixl* | bgxl*)
13116 # IBM XL 8.0 on PPC, with GNU ld
13117 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13118 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13119 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13120 if test "x$supports_anon_versioning" = xyes; then
13121 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13122 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13123 echo "local: *; };" >> $output_objdir/$libname.ver~
13124 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13125 fi
13126 ;;
13127 *)
13128 case `$CC -V 2>&1 | sed 5q` in
13129 *Sun\ C*)
13130 # Sun C++ 5.9
13131 no_undefined_flag_CXX=' -zdefs'
13132 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13133 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'
13134 hardcode_libdir_flag_spec_CXX='-R$libdir'
13135 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'
13136 compiler_needs_object_CXX=yes
13137
13138 # Not sure whether something based on
13139 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13140 # would be better.
13141 output_verbose_link_cmd='func_echo_all'
13142
13143 # Archives containing C++ object files must be created using
13144 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13145 # necessary to make sure instantiated templates are included
13146 # in the archive.
13147 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13148 ;;
13149 esac
13150 ;;
13151 esac
13152 ;;
13153
13154 lynxos*)
13155 # FIXME: insert proper C++ library support
13156 ld_shlibs_CXX=no
13157 ;;
13158
13159 m88k*)
13160 # FIXME: insert proper C++ library support
13161 ld_shlibs_CXX=no
13162 ;;
13163
13164 mvs*)
13165 case $cc_basename in
13166 cxx*)
13167 # FIXME: insert proper C++ library support
13168 ld_shlibs_CXX=no
13169 ;;
13170 *)
13171 # FIXME: insert proper C++ library support
13172 ld_shlibs_CXX=no
13173 ;;
13174 esac
13175 ;;
13176
13177 netbsd*)
13178 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13179 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13180 wlarc=
13181 hardcode_libdir_flag_spec_CXX='-R$libdir'
13182 hardcode_direct_CXX=yes
13183 hardcode_shlibpath_var_CXX=no
13184 fi
13185 # Workaround some broken pre-1.5 toolchains
13186 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13187 ;;
13188
13189 *nto* | *qnx*)
13190 ld_shlibs_CXX=yes
13191 ;;
13192
13193 openbsd2*)
13194 # C++ shared libraries are fairly broken
13195 ld_shlibs_CXX=no
13196 ;;
13197
13198 openbsd*)
13199 if test -f /usr/libexec/ld.so; then
13200 hardcode_direct_CXX=yes
13201 hardcode_shlibpath_var_CXX=no
13202 hardcode_direct_absolute_CXX=yes
13203 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13204 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13206 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13207 export_dynamic_flag_spec_CXX='${wl}-E'
13208 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13209 fi
13210 output_verbose_link_cmd=func_echo_all
13211 else
13212 ld_shlibs_CXX=no
13213 fi
13214 ;;
13215
13216 osf3* | osf4* | osf5*)
13217 case $cc_basename in
13218 KCC*)
13219 # Kuck and Associates, Inc. (KAI) C++ Compiler
13220
13221 # KCC will only create a shared library if the output file
13222 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13223 # to its proper name (with version) after linking.
13224 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'
13225
13226 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13227 hardcode_libdir_separator_CXX=:
13228
13229 # Archives containing C++ object files must be created using
13230 # the KAI C++ compiler.
13231 case $host in
13232 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13233 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13234 esac
13235 ;;
13236 RCC*)
13237 # Rational C++ 2.4.1
13238 # FIXME: insert proper C++ library support
13239 ld_shlibs_CXX=no
13240 ;;
13241 cxx*)
13242 case $host in
13243 osf3*)
13244 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13245 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'
13246 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13247 ;;
13248 *)
13249 allow_undefined_flag_CXX=' -expect_unresolved \*'
13250 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'
13251 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13252 echo "-hidden">> $lib.exp~
13253 $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~
13254 $RM $lib.exp'
13255 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13256 ;;
13257 esac
13258
13259 hardcode_libdir_separator_CXX=:
13260
13261 # Commands to make compiler produce verbose output that lists
13262 # what "hidden" libraries, object files and flags are used when
13263 # linking a shared library.
13264 #
13265 # There doesn't appear to be a way to prevent this compiler from
13266 # explicitly linking system object files so we need to strip them
13267 # from the output so that they don't get included in the library
13268 # dependencies.
13269 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"'
13270 ;;
13271 *)
13272 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13273 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13274 case $host in
13275 osf3*)
13276 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'
13277 ;;
13278 *)
13279 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'
13280 ;;
13281 esac
13282
13283 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13284 hardcode_libdir_separator_CXX=:
13285
13286 # Commands to make compiler produce verbose output that lists
13287 # what "hidden" libraries, object files and flags are used when
13288 # linking a shared library.
13289 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13290
13291 else
13292 # FIXME: insert proper C++ library support
13293 ld_shlibs_CXX=no
13294 fi
13295 ;;
13296 esac
13297 ;;
13298
13299 psos*)
13300 # FIXME: insert proper C++ library support
13301 ld_shlibs_CXX=no
13302 ;;
13303
13304 sunos4*)
13305 case $cc_basename in
13306 CC*)
13307 # Sun C++ 4.x
13308 # FIXME: insert proper C++ library support
13309 ld_shlibs_CXX=no
13310 ;;
13311 lcc*)
13312 # Lucid
13313 # FIXME: insert proper C++ library support
13314 ld_shlibs_CXX=no
13315 ;;
13316 *)
13317 # FIXME: insert proper C++ library support
13318 ld_shlibs_CXX=no
13319 ;;
13320 esac
13321 ;;
13322
13323 solaris*)
13324 case $cc_basename in
13325 CC*)
13326 # Sun C++ 4.2, 5.x and Centerline C++
13327 archive_cmds_need_lc_CXX=yes
13328 no_undefined_flag_CXX=' -zdefs'
13329 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13330 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13331 $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'
13332
13333 hardcode_libdir_flag_spec_CXX='-R$libdir'
13334 hardcode_shlibpath_var_CXX=no
13335 case $host_os in
13336 solaris2.[0-5] | solaris2.[0-5].*) ;;
13337 *)
13338 # The compiler driver will combine and reorder linker options,
13339 # but understands `-z linker_flag'.
13340 # Supported since Solaris 2.6 (maybe 2.5.1?)
13341 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13342 ;;
13343 esac
13344 link_all_deplibs_CXX=yes
13345
13346 output_verbose_link_cmd='func_echo_all'
13347
13348 # Archives containing C++ object files must be created using
13349 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13350 # necessary to make sure instantiated templates are included
13351 # in the archive.
13352 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13353 ;;
13354 gcx*)
13355 # Green Hills C++ Compiler
13356 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13357
13358 # The C++ compiler must be used to create the archive.
13359 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13360 ;;
13361 *)
13362 # GNU C++ compiler with Solaris linker
13363 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13364 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13365 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13366 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13367 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13368 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13369
13370 # Commands to make compiler produce verbose output that lists
13371 # what "hidden" libraries, object files and flags are used when
13372 # linking a shared library.
13373 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13374 else
13375 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13376 # platform.
13377 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13378 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13379 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13380
13381 # Commands to make compiler produce verbose output that lists
13382 # what "hidden" libraries, object files and flags are used when
13383 # linking a shared library.
13384 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13385 fi
13386
13387 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13388 case $host_os in
13389 solaris2.[0-5] | solaris2.[0-5].*) ;;
13390 *)
13391 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13392 ;;
13393 esac
13394 fi
13395 ;;
13396 esac
13397 ;;
13398
13399 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13400 no_undefined_flag_CXX='${wl}-z,text'
13401 archive_cmds_need_lc_CXX=no
13402 hardcode_shlibpath_var_CXX=no
13403 runpath_var='LD_RUN_PATH'
13404
13405 case $cc_basename in
13406 CC*)
13407 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13408 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13409 ;;
13410 *)
13411 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13412 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13413 ;;
13414 esac
13415 ;;
13416
13417 sysv5* | sco3.2v5* | sco5v6*)
13418 # Note: We can NOT use -z defs as we might desire, because we do not
13419 # link with -lc, and that would cause any symbols used from libc to
13420 # always be unresolved, which means just about no library would
13421 # ever link correctly. If we're not using GNU ld we use -z text
13422 # though, which does catch some bad symbols but isn't as heavy-handed
13423 # as -z defs.
13424 no_undefined_flag_CXX='${wl}-z,text'
13425 allow_undefined_flag_CXX='${wl}-z,nodefs'
13426 archive_cmds_need_lc_CXX=no
13427 hardcode_shlibpath_var_CXX=no
13428 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13429 hardcode_libdir_separator_CXX=':'
13430 link_all_deplibs_CXX=yes
13431 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13432 runpath_var='LD_RUN_PATH'
13433
13434 case $cc_basename in
13435 CC*)
13436 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13437 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13438 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13439 '"$old_archive_cmds_CXX"
13440 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13441 '"$reload_cmds_CXX"
13442 ;;
13443 *)
13444 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13445 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13446 ;;
13447 esac
13448 ;;
13449
13450 tandem*)
13451 case $cc_basename in
13452 NCC*)
13453 # NonStop-UX NCC 3.20
13454 # FIXME: insert proper C++ library support
13455 ld_shlibs_CXX=no
13456 ;;
13457 *)
13458 # FIXME: insert proper C++ library support
13459 ld_shlibs_CXX=no
13460 ;;
13461 esac
13462 ;;
13463
13464 vxworks*)
13465 # FIXME: insert proper C++ library support
13466 ld_shlibs_CXX=no
13467 ;;
13468
13469 *)
13470 # FIXME: insert proper C++ library support
13471 ld_shlibs_CXX=no
13472 ;;
13473 esac
13474
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13476$as_echo "$ld_shlibs_CXX" >&6; }
13477 test "$ld_shlibs_CXX" = no && can_build_shared=no
13478
13479 GCC_CXX="$GXX"
13480 LD_CXX="$LD"
13481
13482 ## CAVEAT EMPTOR:
13483 ## There is no encapsulation within the following macros, do not change
13484 ## the running order or otherwise move them around unless you know exactly
13485 ## what you are doing...
13486 # Dependencies to place before and after the object being linked:
13487predep_objects_CXX=
13488postdep_objects_CXX=
13489predeps_CXX=
13490postdeps_CXX=
13491compiler_lib_search_path_CXX=
13492
13493cat > conftest.$ac_ext <<_LT_EOF
13494class Foo
13495{
13496public:
13497 Foo (void) { a = 0; }
13498private:
13499 int a;
13500};
13501_LT_EOF
13502
13503if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13504 (eval $ac_compile) 2>&5
13505 ac_status=$?
13506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13507 test $ac_status = 0; }; then
13508 # Parse the compiler output and extract the necessary
13509 # objects, libraries and library flags.
13510
13511 # Sentinel used to keep track of whether or not we are before
13512 # the conftest object file.
13513 pre_test_object_deps_done=no
13514
13515 for p in `eval "$output_verbose_link_cmd"`; do
13516 case $p in
13517
13518 -L* | -R* | -l*)
13519 # Some compilers place space between "-{L,R}" and the path.
13520 # Remove the space.
13521 if test $p = "-L" ||
13522 test $p = "-R"; then
13523 prev=$p
13524 continue
13525 else
13526 prev=
13527 fi
13528
13529 if test "$pre_test_object_deps_done" = no; then
13530 case $p in
13531 -L* | -R*)
13532 # Internal compiler library paths should come after those
13533 # provided the user. The postdeps already come after the
13534 # user supplied libs so there is no need to process them.
13535 if test -z "$compiler_lib_search_path_CXX"; then
13536 compiler_lib_search_path_CXX="${prev}${p}"
13537 else
13538 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13539 fi
13540 ;;
13541 # The "-l" case would never come before the object being
13542 # linked, so don't bother handling this case.
13543 esac
13544 else
13545 if test -z "$postdeps_CXX"; then
13546 postdeps_CXX="${prev}${p}"
13547 else
13548 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13549 fi
13550 fi
13551 ;;
13552
13553 *.$objext)
13554 # This assumes that the test object file only shows up
13555 # once in the compiler output.
13556 if test "$p" = "conftest.$objext"; then
13557 pre_test_object_deps_done=yes
13558 continue
13559 fi
13560
13561 if test "$pre_test_object_deps_done" = no; then
13562 if test -z "$predep_objects_CXX"; then
13563 predep_objects_CXX="$p"
13564 else
13565 predep_objects_CXX="$predep_objects_CXX $p"
13566 fi
13567 else
13568 if test -z "$postdep_objects_CXX"; then
13569 postdep_objects_CXX="$p"
13570 else
13571 postdep_objects_CXX="$postdep_objects_CXX $p"
13572 fi
13573 fi
13574 ;;
13575
13576 *) ;; # Ignore the rest.
13577
13578 esac
13579 done
13580
13581 # Clean up.
13582 rm -f a.out a.exe
13583else
13584 echo "libtool.m4: error: problem compiling CXX test program"
13585fi
13586
13587$RM -f confest.$objext
13588
13589# PORTME: override above test on systems where it is broken
13590case $host_os in
13591interix[3-9]*)
13592 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13593 # hack all around it, let's just trust "g++" to DTRT.
13594 predep_objects_CXX=
13595 postdep_objects_CXX=
13596 postdeps_CXX=
13597 ;;
13598
13599linux*)
13600 case `$CC -V 2>&1 | sed 5q` in
13601 *Sun\ C*)
13602 # Sun C++ 5.9
13603
13604 # The more standards-conforming stlport4 library is
13605 # incompatible with the Cstd library. Avoid specifying
13606 # it if it's in CXXFLAGS. Ignore libCrun as
13607 # -library=stlport4 depends on it.
13608 case " $CXX $CXXFLAGS " in
13609 *" -library=stlport4 "*)
13610 solaris_use_stlport4=yes
13611 ;;
13612 esac
13613
13614 if test "$solaris_use_stlport4" != yes; then
13615 postdeps_CXX='-library=Cstd -library=Crun'
13616 fi
13617 ;;
13618 esac
13619 ;;
13620
13621solaris*)
13622 case $cc_basename in
13623 CC*)
13624 # The more standards-conforming stlport4 library is
13625 # incompatible with the Cstd library. Avoid specifying
13626 # it if it's in CXXFLAGS. Ignore libCrun as
13627 # -library=stlport4 depends on it.
13628 case " $CXX $CXXFLAGS " in
13629 *" -library=stlport4 "*)
13630 solaris_use_stlport4=yes
13631 ;;
13632 esac
13633
13634 # Adding this requires a known-good setup of shared libraries for
13635 # Sun compiler versions before 5.6, else PIC objects from an old
13636 # archive will be linked into the output, leading to subtle bugs.
13637 if test "$solaris_use_stlport4" != yes; then
13638 postdeps_CXX='-library=Cstd -library=Crun'
13639 fi
13640 ;;
13641 esac
13642 ;;
13643esac
13644
13645
13646case " $postdeps_CXX " in
13647*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13648esac
13649 compiler_lib_search_dirs_CXX=
13650if test -n "${compiler_lib_search_path_CXX}"; then
13651 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13652fi
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684 lt_prog_compiler_wl_CXX=
13685lt_prog_compiler_pic_CXX=
13686lt_prog_compiler_static_CXX=
13687
13688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13689$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13690
13691 # C++ specific cases for pic, static, wl, etc.
13692 if test "$GXX" = yes; then
13693 lt_prog_compiler_wl_CXX='-Wl,'
13694 lt_prog_compiler_static_CXX='-static'
13695
13696 case $host_os in
13697 aix*)
13698 # All AIX code is PIC.
13699 if test "$host_cpu" = ia64; then
13700 # AIX 5 now supports IA64 processor
13701 lt_prog_compiler_static_CXX='-Bstatic'
13702 fi
690c45b8 13703 lt_prog_compiler_pic_CXX='-fPIC'
0a35513e
AH
13704 ;;
13705
13706 amigaos*)
13707 case $host_cpu in
13708 powerpc)
13709 # see comment about AmigaOS4 .so support
13710 lt_prog_compiler_pic_CXX='-fPIC'
13711 ;;
13712 m68k)
13713 # FIXME: we need at least 68020 code to build shared libraries, but
13714 # adding the `-m68020' flag to GCC prevents building anything better,
13715 # like `-m68040'.
13716 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13717 ;;
13718 esac
13719 ;;
13720
13721 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13722 # PIC is the default for these OSes.
13723 ;;
13724 mingw* | cygwin* | os2* | pw32* | cegcc*)
13725 # This hack is so that the source file can tell whether it is being
13726 # built for inclusion in a dll (and should export symbols for example).
13727 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13728 # (--disable-auto-import) libraries
13729 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13730 ;;
13731 darwin* | rhapsody*)
13732 # PIC is the default on this platform
13733 # Common symbols not allowed in MH_DYLIB files
13734 lt_prog_compiler_pic_CXX='-fno-common'
13735 ;;
13736 *djgpp*)
13737 # DJGPP does not support shared libraries at all
13738 lt_prog_compiler_pic_CXX=
13739 ;;
13740 haiku*)
13741 # PIC is the default for Haiku.
13742 # The "-static" flag exists, but is broken.
13743 lt_prog_compiler_static_CXX=
13744 ;;
13745 interix[3-9]*)
13746 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13747 # Instead, we relocate shared libraries at runtime.
13748 ;;
13749 sysv4*MP*)
13750 if test -d /usr/nec; then
13751 lt_prog_compiler_pic_CXX=-Kconform_pic
13752 fi
13753 ;;
13754 hpux*)
13755 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13756 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13757 # sets the default TLS model and affects inlining.
13758 case $host_cpu in
13759 hppa*64*)
13760 ;;
13761 *)
13762 lt_prog_compiler_pic_CXX='-fPIC'
13763 ;;
13764 esac
13765 ;;
13766 *qnx* | *nto*)
13767 # QNX uses GNU C++, but need to define -shared option too, otherwise
13768 # it will coredump.
13769 lt_prog_compiler_pic_CXX='-fPIC -shared'
13770 ;;
13771 *)
13772 lt_prog_compiler_pic_CXX='-fPIC'
13773 ;;
13774 esac
13775 else
13776 case $host_os in
13777 aix[4-9]*)
13778 # All AIX code is PIC.
13779 if test "$host_cpu" = ia64; then
13780 # AIX 5 now supports IA64 processor
13781 lt_prog_compiler_static_CXX='-Bstatic'
13782 else
13783 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13784 fi
13785 ;;
13786 chorus*)
13787 case $cc_basename in
13788 cxch68*)
13789 # Green Hills C++ Compiler
13790 # _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"
13791 ;;
13792 esac
13793 ;;
13794 dgux*)
13795 case $cc_basename in
13796 ec++*)
13797 lt_prog_compiler_pic_CXX='-KPIC'
13798 ;;
13799 ghcx*)
13800 # Green Hills C++ Compiler
13801 lt_prog_compiler_pic_CXX='-pic'
13802 ;;
13803 *)
13804 ;;
13805 esac
13806 ;;
13807 freebsd* | dragonfly*)
13808 # FreeBSD uses GNU C++
13809 ;;
13810 hpux9* | hpux10* | hpux11*)
13811 case $cc_basename in
13812 CC*)
13813 lt_prog_compiler_wl_CXX='-Wl,'
13814 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13815 if test "$host_cpu" != ia64; then
13816 lt_prog_compiler_pic_CXX='+Z'
13817 fi
13818 ;;
13819 aCC*)
13820 lt_prog_compiler_wl_CXX='-Wl,'
13821 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13822 case $host_cpu in
13823 hppa*64*|ia64*)
13824 # +Z the default
13825 ;;
13826 *)
13827 lt_prog_compiler_pic_CXX='+Z'
13828 ;;
13829 esac
13830 ;;
13831 *)
13832 ;;
13833 esac
13834 ;;
13835 interix*)
13836 # This is c89, which is MS Visual C++ (no shared libs)
13837 # Anyone wants to do a port?
13838 ;;
13839 irix5* | irix6* | nonstopux*)
13840 case $cc_basename in
13841 CC*)
13842 lt_prog_compiler_wl_CXX='-Wl,'
13843 lt_prog_compiler_static_CXX='-non_shared'
13844 # CC pic flag -KPIC is the default.
13845 ;;
13846 *)
13847 ;;
13848 esac
13849 ;;
13850 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13851 case $cc_basename in
13852 KCC*)
13853 # KAI C++ Compiler
13854 lt_prog_compiler_wl_CXX='--backend -Wl,'
13855 lt_prog_compiler_pic_CXX='-fPIC'
13856 ;;
13857 ecpc* )
13858 # old Intel C++ for x86_64 which still supported -KPIC.
13859 lt_prog_compiler_wl_CXX='-Wl,'
13860 lt_prog_compiler_pic_CXX='-KPIC'
13861 lt_prog_compiler_static_CXX='-static'
13862 ;;
13863 icpc* )
13864 # Intel C++, used to be incompatible with GCC.
13865 # ICC 10 doesn't accept -KPIC any more.
13866 lt_prog_compiler_wl_CXX='-Wl,'
13867 lt_prog_compiler_pic_CXX='-fPIC'
13868 lt_prog_compiler_static_CXX='-static'
13869 ;;
13870 pgCC* | pgcpp*)
13871 # Portland Group C++ compiler
13872 lt_prog_compiler_wl_CXX='-Wl,'
13873 lt_prog_compiler_pic_CXX='-fpic'
13874 lt_prog_compiler_static_CXX='-Bstatic'
13875 ;;
13876 cxx*)
13877 # Compaq C++
13878 # Make sure the PIC flag is empty. It appears that all Alpha
13879 # Linux and Compaq Tru64 Unix objects are PIC.
13880 lt_prog_compiler_pic_CXX=
13881 lt_prog_compiler_static_CXX='-non_shared'
13882 ;;
13883 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13884 # IBM XL 8.0, 9.0 on PPC and BlueGene
13885 lt_prog_compiler_wl_CXX='-Wl,'
13886 lt_prog_compiler_pic_CXX='-qpic'
13887 lt_prog_compiler_static_CXX='-qstaticlink'
13888 ;;
13889 *)
13890 case `$CC -V 2>&1 | sed 5q` in
13891 *Sun\ C*)
13892 # Sun C++ 5.9
13893 lt_prog_compiler_pic_CXX='-KPIC'
13894 lt_prog_compiler_static_CXX='-Bstatic'
13895 lt_prog_compiler_wl_CXX='-Qoption ld '
13896 ;;
13897 esac
13898 ;;
13899 esac
13900 ;;
13901 lynxos*)
13902 ;;
13903 m88k*)
13904 ;;
13905 mvs*)
13906 case $cc_basename in
13907 cxx*)
13908 lt_prog_compiler_pic_CXX='-W c,exportall'
13909 ;;
13910 *)
13911 ;;
13912 esac
13913 ;;
13914 netbsd*)
13915 ;;
13916 *qnx* | *nto*)
13917 # QNX uses GNU C++, but need to define -shared option too, otherwise
13918 # it will coredump.
13919 lt_prog_compiler_pic_CXX='-fPIC -shared'
13920 ;;
13921 osf3* | osf4* | osf5*)
13922 case $cc_basename in
13923 KCC*)
13924 lt_prog_compiler_wl_CXX='--backend -Wl,'
13925 ;;
13926 RCC*)
13927 # Rational C++ 2.4.1
13928 lt_prog_compiler_pic_CXX='-pic'
13929 ;;
13930 cxx*)
13931 # Digital/Compaq C++
13932 lt_prog_compiler_wl_CXX='-Wl,'
13933 # Make sure the PIC flag is empty. It appears that all Alpha
13934 # Linux and Compaq Tru64 Unix objects are PIC.
13935 lt_prog_compiler_pic_CXX=
13936 lt_prog_compiler_static_CXX='-non_shared'
13937 ;;
13938 *)
13939 ;;
13940 esac
13941 ;;
13942 psos*)
13943 ;;
13944 solaris*)
13945 case $cc_basename in
13946 CC*)
13947 # Sun C++ 4.2, 5.x and Centerline C++
13948 lt_prog_compiler_pic_CXX='-KPIC'
13949 lt_prog_compiler_static_CXX='-Bstatic'
13950 lt_prog_compiler_wl_CXX='-Qoption ld '
13951 ;;
13952 gcx*)
13953 # Green Hills C++ Compiler
13954 lt_prog_compiler_pic_CXX='-PIC'
13955 ;;
13956 *)
13957 ;;
13958 esac
13959 ;;
13960 sunos4*)
13961 case $cc_basename in
13962 CC*)
13963 # Sun C++ 4.x
13964 lt_prog_compiler_pic_CXX='-pic'
13965 lt_prog_compiler_static_CXX='-Bstatic'
13966 ;;
13967 lcc*)
13968 # Lucid
13969 lt_prog_compiler_pic_CXX='-pic'
13970 ;;
13971 *)
13972 ;;
13973 esac
13974 ;;
13975 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13976 case $cc_basename in
13977 CC*)
13978 lt_prog_compiler_wl_CXX='-Wl,'
13979 lt_prog_compiler_pic_CXX='-KPIC'
13980 lt_prog_compiler_static_CXX='-Bstatic'
13981 ;;
13982 esac
13983 ;;
13984 tandem*)
13985 case $cc_basename in
13986 NCC*)
13987 # NonStop-UX NCC 3.20
13988 lt_prog_compiler_pic_CXX='-KPIC'
13989 ;;
13990 *)
13991 ;;
13992 esac
13993 ;;
13994 vxworks*)
13995 ;;
13996 *)
13997 lt_prog_compiler_can_build_shared_CXX=no
13998 ;;
13999 esac
14000 fi
14001
14002case $host_os in
14003 # For platforms which do not support PIC, -DPIC is meaningless:
14004 *djgpp*)
14005 lt_prog_compiler_pic_CXX=
14006 ;;
14007 *)
14008 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14009 ;;
14010esac
14011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14012$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14013
14014
14015
14016#
14017# Check to make sure the PIC flag actually works.
14018#
14019if test -n "$lt_prog_compiler_pic_CXX"; then
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14021$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14022if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14023 $as_echo_n "(cached) " >&6
14024else
14025 lt_cv_prog_compiler_pic_works_CXX=no
14026 ac_outfile=conftest.$ac_objext
14027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14028 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14029 # Insert the option either (1) after the last *FLAGS variable, or
14030 # (2) before a word containing "conftest.", or (3) at the end.
14031 # Note that $ac_compile itself does not contain backslashes and begins
14032 # with a dollar sign (not a hyphen), so the echo should work correctly.
14033 # The option is referenced via a variable to avoid confusing sed.
14034 lt_compile=`echo "$ac_compile" | $SED \
14035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14037 -e 's:$: $lt_compiler_flag:'`
14038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14039 (eval "$lt_compile" 2>conftest.err)
14040 ac_status=$?
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 if (exit $ac_status) && test -s "$ac_outfile"; then
14044 # The compiler can only warn and ignore the option if not recognized
14045 # So say no if there are warnings other than the usual output.
14046 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14047 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14048 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14049 lt_cv_prog_compiler_pic_works_CXX=yes
14050 fi
14051 fi
14052 $RM conftest*
14053
14054fi
14055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14056$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14057
14058if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14059 case $lt_prog_compiler_pic_CXX in
14060 "" | " "*) ;;
14061 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14062 esac
14063else
14064 lt_prog_compiler_pic_CXX=
14065 lt_prog_compiler_can_build_shared_CXX=no
14066fi
14067
14068fi
14069
14070
14071
14072#
14073# Check to make sure the static flag actually works.
14074#
14075wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14077$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14078if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14079 $as_echo_n "(cached) " >&6
14080else
14081 lt_cv_prog_compiler_static_works_CXX=no
14082 save_LDFLAGS="$LDFLAGS"
14083 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14084 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14085 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14086 # The linker can only warn and ignore the option if not recognized
14087 # So say no if there are warnings
14088 if test -s conftest.err; then
14089 # Append any errors to the config.log.
14090 cat conftest.err 1>&5
14091 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14093 if diff conftest.exp conftest.er2 >/dev/null; then
14094 lt_cv_prog_compiler_static_works_CXX=yes
14095 fi
14096 else
14097 lt_cv_prog_compiler_static_works_CXX=yes
14098 fi
14099 fi
14100 $RM -r conftest*
14101 LDFLAGS="$save_LDFLAGS"
14102
14103fi
14104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14105$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14106
14107if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14108 :
14109else
14110 lt_prog_compiler_static_CXX=
14111fi
14112
14113
14114
14115
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14117$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14118if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14119 $as_echo_n "(cached) " >&6
14120else
14121 lt_cv_prog_compiler_c_o_CXX=no
14122 $RM -r conftest 2>/dev/null
14123 mkdir conftest
14124 cd conftest
14125 mkdir out
14126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14127
14128 lt_compiler_flag="-o out/conftest2.$ac_objext"
14129 # Insert the option either (1) after the last *FLAGS variable, or
14130 # (2) before a word containing "conftest.", or (3) at the end.
14131 # Note that $ac_compile itself does not contain backslashes and begins
14132 # with a dollar sign (not a hyphen), so the echo should work correctly.
14133 lt_compile=`echo "$ac_compile" | $SED \
14134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14136 -e 's:$: $lt_compiler_flag:'`
14137 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14138 (eval "$lt_compile" 2>out/conftest.err)
14139 ac_status=$?
14140 cat out/conftest.err >&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14143 then
14144 # The compiler can only warn and ignore the option if not recognized
14145 # So say no if there are warnings
14146 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14147 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14148 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14149 lt_cv_prog_compiler_c_o_CXX=yes
14150 fi
14151 fi
14152 chmod u+w . 2>&5
14153 $RM conftest*
14154 # SGI C++ compiler will create directory out/ii_files/ for
14155 # template instantiation
14156 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14157 $RM out/* && rmdir out
14158 cd ..
14159 $RM -r conftest
14160 $RM conftest*
14161
14162fi
14163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14164$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14165
14166
14167
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14169$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14170if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14171 $as_echo_n "(cached) " >&6
14172else
14173 lt_cv_prog_compiler_c_o_CXX=no
14174 $RM -r conftest 2>/dev/null
14175 mkdir conftest
14176 cd conftest
14177 mkdir out
14178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14179
14180 lt_compiler_flag="-o out/conftest2.$ac_objext"
14181 # Insert the option either (1) after the last *FLAGS variable, or
14182 # (2) before a word containing "conftest.", or (3) at the end.
14183 # Note that $ac_compile itself does not contain backslashes and begins
14184 # with a dollar sign (not a hyphen), so the echo should work correctly.
14185 lt_compile=`echo "$ac_compile" | $SED \
14186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14188 -e 's:$: $lt_compiler_flag:'`
14189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14190 (eval "$lt_compile" 2>out/conftest.err)
14191 ac_status=$?
14192 cat out/conftest.err >&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14195 then
14196 # The compiler can only warn and ignore the option if not recognized
14197 # So say no if there are warnings
14198 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14199 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14200 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14201 lt_cv_prog_compiler_c_o_CXX=yes
14202 fi
14203 fi
14204 chmod u+w . 2>&5
14205 $RM conftest*
14206 # SGI C++ compiler will create directory out/ii_files/ for
14207 # template instantiation
14208 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14209 $RM out/* && rmdir out
14210 cd ..
14211 $RM -r conftest
14212 $RM conftest*
14213
14214fi
14215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14216$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14217
14218
14219
14220
14221hard_links="nottested"
14222if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14223 # do not overwrite the value of need_locks provided by the user
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14225$as_echo_n "checking if we can lock with hard links... " >&6; }
14226 hard_links=yes
14227 $RM conftest*
14228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14229 touch conftest.a
14230 ln conftest.a conftest.b 2>&5 || hard_links=no
14231 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14233$as_echo "$hard_links" >&6; }
14234 if test "$hard_links" = no; then
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14236$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14237 need_locks=warn
14238 fi
14239else
14240 need_locks=no
14241fi
14242
14243
14244
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14246$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14247
14248 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14249 case $host_os in
14250 aix[4-9]*)
14251 # If we're using GNU nm, then we don't want the "-C" option.
14252 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14253 # Also, AIX nm treats weak defined symbols like other global defined
14254 # symbols, whereas GNU nm marks them as "W".
14255 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14256 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'
14257 else
84c1b9d3 14258 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'
0a35513e
AH
14259 fi
14260 ;;
14261 pw32*)
14262 export_symbols_cmds_CXX="$ltdll_cmds"
14263 ;;
14264 cygwin* | mingw* | cegcc*)
14265 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'
14266 ;;
14267 *)
14268 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14269 ;;
14270 esac
14271 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14272
14273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14274$as_echo "$ld_shlibs_CXX" >&6; }
14275test "$ld_shlibs_CXX" = no && can_build_shared=no
14276
14277with_gnu_ld_CXX=$with_gnu_ld
14278
14279
14280
14281
14282
14283
14284#
14285# Do we need to explicitly link libc?
14286#
14287case "x$archive_cmds_need_lc_CXX" in
14288x|xyes)
14289 # Assume -lc should be added
14290 archive_cmds_need_lc_CXX=yes
14291
14292 if test "$enable_shared" = yes && test "$GCC" = yes; then
14293 case $archive_cmds_CXX in
14294 *'~'*)
14295 # FIXME: we may have to deal with multi-command sequences.
14296 ;;
14297 '$CC '*)
14298 # Test whether the compiler implicitly links with -lc since on some
14299 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14300 # to ld, don't add -lc before -lgcc.
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14302$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14303if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14304 $as_echo_n "(cached) " >&6
14305else
14306 $RM conftest*
14307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14308
14309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14310 (eval $ac_compile) 2>&5
14311 ac_status=$?
14312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14313 test $ac_status = 0; } 2>conftest.err; then
14314 soname=conftest
14315 lib=conftest
14316 libobjs=conftest.$ac_objext
14317 deplibs=
14318 wl=$lt_prog_compiler_wl_CXX
14319 pic_flag=$lt_prog_compiler_pic_CXX
14320 compiler_flags=-v
14321 linker_flags=-v
14322 verstring=
14323 output_objdir=.
14324 libname=conftest
14325 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14326 allow_undefined_flag_CXX=
14327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14328 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14329 ac_status=$?
14330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14331 test $ac_status = 0; }
14332 then
14333 lt_cv_archive_cmds_need_lc_CXX=no
14334 else
14335 lt_cv_archive_cmds_need_lc_CXX=yes
14336 fi
14337 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14338 else
14339 cat conftest.err 1>&5
14340 fi
14341 $RM conftest*
14342
14343fi
14344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14345$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14346 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14347 ;;
14348 esac
14349 fi
14350 ;;
14351esac
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14417$as_echo_n "checking dynamic linker characteristics... " >&6; }
14418
14419library_names_spec=
14420libname_spec='lib$name'
14421soname_spec=
14422shrext_cmds=".so"
14423postinstall_cmds=
14424postuninstall_cmds=
14425finish_cmds=
14426finish_eval=
14427shlibpath_var=
14428shlibpath_overrides_runpath=unknown
14429version_type=none
14430dynamic_linker="$host_os ld.so"
14431sys_lib_dlsearch_path_spec="/lib /usr/lib"
14432need_lib_prefix=unknown
14433hardcode_into_libs=no
14434
14435# when you set need_version to no, make sure it does not cause -set_version
14436# flags to be left without arguments
14437need_version=unknown
14438
14439case $host_os in
14440aix3*)
14441 version_type=linux
14442 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14443 shlibpath_var=LIBPATH
14444
14445 # AIX 3 has no versioning support, so we append a major version to the name.
14446 soname_spec='${libname}${release}${shared_ext}$major'
14447 ;;
14448
14449aix[4-9]*)
14450 version_type=linux
14451 need_lib_prefix=no
14452 need_version=no
14453 hardcode_into_libs=yes
14454 if test "$host_cpu" = ia64; then
14455 # AIX 5 supports IA64
14456 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14457 shlibpath_var=LD_LIBRARY_PATH
14458 else
14459 # With GCC up to 2.95.x, collect2 would create an import file
14460 # for dependence libraries. The import file would start with
14461 # the line `#! .'. This would cause the generated library to
14462 # depend on `.', always an invalid library. This was fixed in
14463 # development snapshots of GCC prior to 3.0.
14464 case $host_os in
14465 aix4 | aix4.[01] | aix4.[01].*)
14466 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14467 echo ' yes '
14468 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14469 :
14470 else
14471 can_build_shared=no
14472 fi
14473 ;;
14474 esac
14475 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14476 # soname into executable. Probably we can add versioning support to
14477 # collect2, so additional links can be useful in future.
14478 if test "$aix_use_runtimelinking" = yes; then
14479 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14480 # instead of lib<name>.a to let people know that these are not
14481 # typical AIX shared libraries.
14482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14483 else
14484 # We preserve .a as extension for shared libraries through AIX4.2
14485 # and later when we are not doing run time linking.
14486 library_names_spec='${libname}${release}.a $libname.a'
14487 soname_spec='${libname}${release}${shared_ext}$major'
14488 fi
14489 shlibpath_var=LIBPATH
14490 fi
14491 ;;
14492
14493amigaos*)
14494 case $host_cpu in
14495 powerpc)
14496 # Since July 2007 AmigaOS4 officially supports .so libraries.
14497 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14499 ;;
14500 m68k)
14501 library_names_spec='$libname.ixlibrary $libname.a'
14502 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14503 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'
14504 ;;
14505 esac
14506 ;;
14507
14508beos*)
14509 library_names_spec='${libname}${shared_ext}'
14510 dynamic_linker="$host_os ld.so"
14511 shlibpath_var=LIBRARY_PATH
14512 ;;
14513
14514bsdi[45]*)
14515 version_type=linux
14516 need_version=no
14517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518 soname_spec='${libname}${release}${shared_ext}$major'
14519 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14520 shlibpath_var=LD_LIBRARY_PATH
14521 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14522 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14523 # the default ld.so.conf also contains /usr/contrib/lib and
14524 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14525 # libtool to hard-code these into programs
14526 ;;
14527
14528cygwin* | mingw* | pw32* | cegcc*)
14529 version_type=windows
14530 shrext_cmds=".dll"
14531 need_version=no
14532 need_lib_prefix=no
14533
14534 case $GCC,$host_os in
14535 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14536 library_names_spec='$libname.dll.a'
14537 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14538 postinstall_cmds='base_file=`basename \${file}`~
14539 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14540 dldir=$destdir/`dirname \$dlpath`~
14541 test -d \$dldir || mkdir -p \$dldir~
14542 $install_prog $dir/$dlname \$dldir/$dlname~
14543 chmod a+x \$dldir/$dlname~
14544 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14545 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14546 fi'
14547 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14548 dlpath=$dir/\$dldll~
14549 $RM \$dlpath'
14550 shlibpath_overrides_runpath=yes
14551
14552 case $host_os in
14553 cygwin*)
14554 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14555 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14556
14557 ;;
14558 mingw* | cegcc*)
14559 # MinGW DLLs use traditional 'lib' prefix
14560 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14561 ;;
14562 pw32*)
14563 # pw32 DLLs use 'pw' prefix rather than 'lib'
14564 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14565 ;;
14566 esac
14567 ;;
14568
14569 *)
14570 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14571 ;;
14572 esac
14573 dynamic_linker='Win32 ld.exe'
14574 # FIXME: first we should search . and the directory the executable is in
14575 shlibpath_var=PATH
14576 ;;
14577
14578darwin* | rhapsody*)
14579 dynamic_linker="$host_os dyld"
14580 version_type=darwin
14581 need_lib_prefix=no
14582 need_version=no
14583 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14584 soname_spec='${libname}${release}${major}$shared_ext'
14585 shlibpath_overrides_runpath=yes
14586 shlibpath_var=DYLD_LIBRARY_PATH
14587 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14588
14589 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14590 ;;
14591
14592dgux*)
14593 version_type=linux
14594 need_lib_prefix=no
14595 need_version=no
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14597 soname_spec='${libname}${release}${shared_ext}$major'
14598 shlibpath_var=LD_LIBRARY_PATH
14599 ;;
14600
14601freebsd* | dragonfly*)
14602 # DragonFly does not have aout. When/if they implement a new
14603 # versioning mechanism, adjust this.
14604 if test -x /usr/bin/objformat; then
14605 objformat=`/usr/bin/objformat`
14606 else
14607 case $host_os in
c6084f68 14608 freebsd[23].*) objformat=aout ;;
0a35513e
AH
14609 *) objformat=elf ;;
14610 esac
14611 fi
14612 version_type=freebsd-$objformat
14613 case $version_type in
14614 freebsd-elf*)
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14616 need_version=no
14617 need_lib_prefix=no
14618 ;;
14619 freebsd-*)
14620 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14621 need_version=yes
14622 ;;
14623 esac
14624 shlibpath_var=LD_LIBRARY_PATH
14625 case $host_os in
c6084f68 14626 freebsd2.*)
0a35513e
AH
14627 shlibpath_overrides_runpath=yes
14628 ;;
14629 freebsd3.[01]* | freebsdelf3.[01]*)
14630 shlibpath_overrides_runpath=yes
14631 hardcode_into_libs=yes
14632 ;;
14633 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14634 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14635 shlibpath_overrides_runpath=no
14636 hardcode_into_libs=yes
14637 ;;
14638 *) # from 4.6 on, and DragonFly
14639 shlibpath_overrides_runpath=yes
14640 hardcode_into_libs=yes
14641 ;;
14642 esac
14643 ;;
14644
14645gnu*)
14646 version_type=linux
14647 need_lib_prefix=no
14648 need_version=no
14649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14650 soname_spec='${libname}${release}${shared_ext}$major'
14651 shlibpath_var=LD_LIBRARY_PATH
14652 hardcode_into_libs=yes
14653 ;;
14654
14655haiku*)
14656 version_type=linux
14657 need_lib_prefix=no
14658 need_version=no
14659 dynamic_linker="$host_os runtime_loader"
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14661 soname_spec='${libname}${release}${shared_ext}$major'
14662 shlibpath_var=LIBRARY_PATH
14663 shlibpath_overrides_runpath=yes
14664 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14665 hardcode_into_libs=yes
14666 ;;
14667
14668hpux9* | hpux10* | hpux11*)
14669 # Give a soname corresponding to the major version so that dld.sl refuses to
14670 # link against other versions.
14671 version_type=sunos
14672 need_lib_prefix=no
14673 need_version=no
14674 case $host_cpu in
14675 ia64*)
14676 shrext_cmds='.so'
14677 hardcode_into_libs=yes
14678 dynamic_linker="$host_os dld.so"
14679 shlibpath_var=LD_LIBRARY_PATH
14680 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14682 soname_spec='${libname}${release}${shared_ext}$major'
14683 if test "X$HPUX_IA64_MODE" = X32; then
14684 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14685 else
14686 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14687 fi
14688 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14689 ;;
14690 hppa*64*)
14691 shrext_cmds='.sl'
14692 hardcode_into_libs=yes
14693 dynamic_linker="$host_os dld.sl"
14694 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14695 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697 soname_spec='${libname}${release}${shared_ext}$major'
14698 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14699 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14700 ;;
14701 *)
14702 shrext_cmds='.sl'
14703 dynamic_linker="$host_os dld.sl"
14704 shlibpath_var=SHLIB_PATH
14705 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707 soname_spec='${libname}${release}${shared_ext}$major'
14708 ;;
14709 esac
14710 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14711 postinstall_cmds='chmod 555 $lib'
14712 # or fails outright, so override atomically:
14713 install_override_mode=555
14714 ;;
14715
14716interix[3-9]*)
14717 version_type=linux
14718 need_lib_prefix=no
14719 need_version=no
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14721 soname_spec='${libname}${release}${shared_ext}$major'
14722 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14723 shlibpath_var=LD_LIBRARY_PATH
14724 shlibpath_overrides_runpath=no
14725 hardcode_into_libs=yes
14726 ;;
14727
14728irix5* | irix6* | nonstopux*)
14729 case $host_os in
14730 nonstopux*) version_type=nonstopux ;;
14731 *)
14732 if test "$lt_cv_prog_gnu_ld" = yes; then
14733 version_type=linux
14734 else
14735 version_type=irix
14736 fi ;;
14737 esac
14738 need_lib_prefix=no
14739 need_version=no
14740 soname_spec='${libname}${release}${shared_ext}$major'
14741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14742 case $host_os in
14743 irix5* | nonstopux*)
14744 libsuff= shlibsuff=
14745 ;;
14746 *)
14747 case $LD in # libtool.m4 will add one of these switches to LD
14748 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14749 libsuff= shlibsuff= libmagic=32-bit;;
14750 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14751 libsuff=32 shlibsuff=N32 libmagic=N32;;
14752 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14753 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14754 *) libsuff= shlibsuff= libmagic=never-match;;
14755 esac
14756 ;;
14757 esac
14758 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14759 shlibpath_overrides_runpath=no
14760 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14761 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14762 hardcode_into_libs=yes
14763 ;;
14764
14765# No shared lib support for Linux oldld, aout, or coff.
14766linux*oldld* | linux*aout* | linux*coff*)
14767 dynamic_linker=no
14768 ;;
14769
14770# This must be Linux ELF.
14771linux* | k*bsd*-gnu | kopensolaris*-gnu)
14772 version_type=linux
14773 need_lib_prefix=no
14774 need_version=no
14775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14776 soname_spec='${libname}${release}${shared_ext}$major'
14777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14778 shlibpath_var=LD_LIBRARY_PATH
14779 shlibpath_overrides_runpath=no
14780
14781 # Some binutils ld are patched to set DT_RUNPATH
14782 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14783 $as_echo_n "(cached) " >&6
14784else
14785 lt_cv_shlibpath_overrides_runpath=no
14786 save_LDFLAGS=$LDFLAGS
14787 save_libdir=$libdir
14788 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14789 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791/* end confdefs.h. */
14792
14793int
14794main ()
14795{
14796
14797 ;
14798 return 0;
14799}
14800_ACEOF
14801if ac_fn_cxx_try_link "$LINENO"; then :
14802 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14803 lt_cv_shlibpath_overrides_runpath=yes
14804fi
14805fi
14806rm -f core conftest.err conftest.$ac_objext \
14807 conftest$ac_exeext conftest.$ac_ext
14808 LDFLAGS=$save_LDFLAGS
14809 libdir=$save_libdir
14810
14811fi
14812
14813 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14814
14815 # This implies no fast_install, which is unacceptable.
14816 # Some rework will be needed to allow for fast_install
14817 # before this can be enabled.
14818 hardcode_into_libs=yes
14819
14820 # Append ld.so.conf contents to the search path
14821 if test -f /etc/ld.so.conf; then
14822 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' ' '`
14823 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14824 fi
14825
14826 # We used to test for /lib/ld.so.1 and disable shared libraries on
14827 # powerpc, because MkLinux only supported shared libraries with the
14828 # GNU dynamic linker. Since this was broken with cross compilers,
14829 # most powerpc-linux boxes support dynamic linking these days and
14830 # people can always --disable-shared, the test was removed, and we
14831 # assume the GNU/Linux dynamic linker is in use.
14832 dynamic_linker='GNU/Linux ld.so'
14833 ;;
14834
14835netbsd*)
14836 version_type=sunos
14837 need_lib_prefix=no
14838 need_version=no
14839 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14842 dynamic_linker='NetBSD (a.out) ld.so'
14843 else
14844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14845 soname_spec='${libname}${release}${shared_ext}$major'
14846 dynamic_linker='NetBSD ld.elf_so'
14847 fi
14848 shlibpath_var=LD_LIBRARY_PATH
14849 shlibpath_overrides_runpath=yes
14850 hardcode_into_libs=yes
14851 ;;
14852
14853newsos6)
14854 version_type=linux
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856 shlibpath_var=LD_LIBRARY_PATH
14857 shlibpath_overrides_runpath=yes
14858 ;;
14859
14860*nto* | *qnx*)
14861 version_type=qnx
14862 need_lib_prefix=no
14863 need_version=no
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865 soname_spec='${libname}${release}${shared_ext}$major'
14866 shlibpath_var=LD_LIBRARY_PATH
14867 shlibpath_overrides_runpath=no
14868 hardcode_into_libs=yes
14869 dynamic_linker='ldqnx.so'
14870 ;;
14871
14872openbsd*)
14873 version_type=sunos
14874 sys_lib_dlsearch_path_spec="/usr/lib"
14875 need_lib_prefix=no
14876 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14877 case $host_os in
14878 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14879 *) need_version=no ;;
14880 esac
14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14883 shlibpath_var=LD_LIBRARY_PATH
14884 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14885 case $host_os in
14886 openbsd2.[89] | openbsd2.[89].*)
14887 shlibpath_overrides_runpath=no
14888 ;;
14889 *)
14890 shlibpath_overrides_runpath=yes
14891 ;;
14892 esac
14893 else
14894 shlibpath_overrides_runpath=yes
14895 fi
14896 ;;
14897
14898os2*)
14899 libname_spec='$name'
14900 shrext_cmds=".dll"
14901 need_lib_prefix=no
14902 library_names_spec='$libname${shared_ext} $libname.a'
14903 dynamic_linker='OS/2 ld.exe'
14904 shlibpath_var=LIBPATH
14905 ;;
14906
14907osf3* | osf4* | osf5*)
14908 version_type=osf
14909 need_lib_prefix=no
14910 need_version=no
14911 soname_spec='${libname}${release}${shared_ext}$major'
14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14913 shlibpath_var=LD_LIBRARY_PATH
14914 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14915 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14916 ;;
14917
14918rdos*)
14919 dynamic_linker=no
14920 ;;
14921
14922solaris*)
14923 version_type=linux
14924 need_lib_prefix=no
14925 need_version=no
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927 soname_spec='${libname}${release}${shared_ext}$major'
14928 shlibpath_var=LD_LIBRARY_PATH
14929 shlibpath_overrides_runpath=yes
14930 hardcode_into_libs=yes
14931 # ldd complains unless libraries are executable
14932 postinstall_cmds='chmod +x $lib'
14933 ;;
14934
14935sunos4*)
14936 version_type=sunos
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14938 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14939 shlibpath_var=LD_LIBRARY_PATH
14940 shlibpath_overrides_runpath=yes
14941 if test "$with_gnu_ld" = yes; then
14942 need_lib_prefix=no
14943 fi
14944 need_version=yes
14945 ;;
14946
14947sysv4 | sysv4.3*)
14948 version_type=linux
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14950 soname_spec='${libname}${release}${shared_ext}$major'
14951 shlibpath_var=LD_LIBRARY_PATH
14952 case $host_vendor in
14953 sni)
14954 shlibpath_overrides_runpath=no
14955 need_lib_prefix=no
14956 runpath_var=LD_RUN_PATH
14957 ;;
14958 siemens)
14959 need_lib_prefix=no
14960 ;;
14961 motorola)
14962 need_lib_prefix=no
14963 need_version=no
14964 shlibpath_overrides_runpath=no
14965 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14966 ;;
14967 esac
14968 ;;
14969
14970sysv4*MP*)
14971 if test -d /usr/nec ;then
14972 version_type=linux
14973 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14974 soname_spec='$libname${shared_ext}.$major'
14975 shlibpath_var=LD_LIBRARY_PATH
14976 fi
14977 ;;
14978
14979sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14980 version_type=freebsd-elf
14981 need_lib_prefix=no
14982 need_version=no
14983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14984 soname_spec='${libname}${release}${shared_ext}$major'
14985 shlibpath_var=LD_LIBRARY_PATH
14986 shlibpath_overrides_runpath=yes
14987 hardcode_into_libs=yes
14988 if test "$with_gnu_ld" = yes; then
14989 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14990 else
14991 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14992 case $host_os in
14993 sco3.2v5*)
14994 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14995 ;;
14996 esac
14997 fi
14998 sys_lib_dlsearch_path_spec='/usr/lib'
14999 ;;
15000
15001tpf*)
15002 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15003 version_type=linux
15004 need_lib_prefix=no
15005 need_version=no
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007 shlibpath_var=LD_LIBRARY_PATH
15008 shlibpath_overrides_runpath=no
15009 hardcode_into_libs=yes
15010 ;;
15011
15012uts4*)
15013 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
15017 ;;
15018
15019*)
15020 dynamic_linker=no
15021 ;;
15022esac
15023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15024$as_echo "$dynamic_linker" >&6; }
15025test "$dynamic_linker" = no && can_build_shared=no
15026
15027variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15028if test "$GCC" = yes; then
15029 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15030fi
15031
15032if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15033 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15034fi
15035if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15036 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15037fi
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15077$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15078hardcode_action_CXX=
15079if test -n "$hardcode_libdir_flag_spec_CXX" ||
15080 test -n "$runpath_var_CXX" ||
15081 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15082
15083 # We can hardcode non-existent directories.
15084 if test "$hardcode_direct_CXX" != no &&
15085 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15086 # have to relink, otherwise we might link with an installed library
15087 # when we should be linking with a yet-to-be-installed one
15088 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15089 test "$hardcode_minus_L_CXX" != no; then
15090 # Linking always hardcodes the temporary library directory.
15091 hardcode_action_CXX=relink
15092 else
15093 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15094 hardcode_action_CXX=immediate
15095 fi
15096else
15097 # We cannot hardcode anything, or else we can only hardcode existing
15098 # directories.
15099 hardcode_action_CXX=unsupported
15100fi
15101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15102$as_echo "$hardcode_action_CXX" >&6; }
15103
15104if test "$hardcode_action_CXX" = relink ||
15105 test "$inherit_rpath_CXX" = yes; then
15106 # Fast installation is not supported
15107 enable_fast_install=no
15108elif test "$shlibpath_overrides_runpath" = yes ||
15109 test "$enable_shared" = no; then
15110 # Fast installation is not necessary
15111 enable_fast_install=needless
15112fi
15113
15114
15115
15116
15117
15118
15119
15120 fi # test -n "$compiler"
15121
15122 CC=$lt_save_CC
15123 LDCXX=$LD
15124 LD=$lt_save_LD
15125 GCC=$lt_save_GCC
15126 with_gnu_ld=$lt_save_with_gnu_ld
15127 lt_cv_path_LDCXX=$lt_cv_path_LD
15128 lt_cv_path_LD=$lt_save_path_LD
15129 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15130 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15131fi # test "$_lt_caught_CXX_error" != yes
15132
15133ac_ext=c
15134ac_cpp='$CPP $CPPFLAGS'
15135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15137ac_compiler_gnu=$ac_cv_c_compiler_gnu
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151 ac_config_commands="$ac_config_commands libtool"
15152
15153
15154
15155
15156# Only expand once:
15157
15158
15159
15160
15161
15162
15163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15164$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15165 # Check whether --enable-maintainer-mode was given.
15166if test "${enable_maintainer_mode+set}" = set; then :
15167 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15168else
15169 USE_MAINTAINER_MODE=no
15170fi
15171
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15173$as_echo "$USE_MAINTAINER_MODE" >&6; }
15174 if test $USE_MAINTAINER_MODE = yes; then
15175 MAINTAINER_MODE_TRUE=
15176 MAINTAINER_MODE_FALSE='#'
15177else
15178 MAINTAINER_MODE_TRUE='#'
15179 MAINTAINER_MODE_FALSE=
15180fi
15181
15182 MAINT=$MAINTAINER_MODE_TRUE
15183
15184
15185
15186# For libtool versioning info, format is CURRENT:REVISION:AGE
15187libtool_VERSION=1:0:0
15188
15189
15190# Check header files.
15191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15192$as_echo_n "checking for ANSI C header files... " >&6; }
15193if test "${ac_cv_header_stdc+set}" = set; then :
15194 $as_echo_n "(cached) " >&6
15195else
15196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197/* end confdefs.h. */
15198#include <stdlib.h>
15199#include <stdarg.h>
15200#include <string.h>
15201#include <float.h>
15202
15203int
15204main ()
15205{
15206
15207 ;
15208 return 0;
15209}
15210_ACEOF
15211if ac_fn_c_try_compile "$LINENO"; then :
15212 ac_cv_header_stdc=yes
15213else
15214 ac_cv_header_stdc=no
15215fi
15216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15217
15218if test $ac_cv_header_stdc = yes; then
15219 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221/* end confdefs.h. */
15222#include <string.h>
15223
15224_ACEOF
15225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15226 $EGREP "memchr" >/dev/null 2>&1; then :
15227
15228else
15229 ac_cv_header_stdc=no
15230fi
15231rm -f conftest*
15232
15233fi
15234
15235if test $ac_cv_header_stdc = yes; then
15236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238/* end confdefs.h. */
15239#include <stdlib.h>
15240
15241_ACEOF
15242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15243 $EGREP "free" >/dev/null 2>&1; then :
15244
15245else
15246 ac_cv_header_stdc=no
15247fi
15248rm -f conftest*
15249
15250fi
15251
15252if test $ac_cv_header_stdc = yes; then
15253 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15254 if test "$cross_compiling" = yes; then :
15255 :
15256else
15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258/* end confdefs.h. */
15259#include <ctype.h>
15260#include <stdlib.h>
15261#if ((' ' & 0x0FF) == 0x020)
15262# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15263# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15264#else
15265# define ISLOWER(c) \
15266 (('a' <= (c) && (c) <= 'i') \
15267 || ('j' <= (c) && (c) <= 'r') \
15268 || ('s' <= (c) && (c) <= 'z'))
15269# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15270#endif
15271
15272#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15273int
15274main ()
15275{
15276 int i;
15277 for (i = 0; i < 256; i++)
15278 if (XOR (islower (i), ISLOWER (i))
15279 || toupper (i) != TOUPPER (i))
15280 return 2;
15281 return 0;
15282}
15283_ACEOF
15284if ac_fn_c_try_run "$LINENO"; then :
15285
15286else
15287 ac_cv_header_stdc=no
15288fi
15289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15290 conftest.$ac_objext conftest.beam conftest.$ac_ext
15291fi
15292
15293fi
15294fi
15295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15296$as_echo "$ac_cv_header_stdc" >&6; }
15297if test $ac_cv_header_stdc = yes; then
15298
15299$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15300
15301fi
15302
15303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15304$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15305if test "${ac_cv_header_time+set}" = set; then :
15306 $as_echo_n "(cached) " >&6
15307else
15308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15309/* end confdefs.h. */
15310#include <sys/types.h>
15311#include <sys/time.h>
15312#include <time.h>
15313
15314int
15315main ()
15316{
15317if ((struct tm *) 0)
15318return 0;
15319 ;
15320 return 0;
15321}
15322_ACEOF
15323if ac_fn_c_try_compile "$LINENO"; then :
15324 ac_cv_header_time=yes
15325else
15326 ac_cv_header_time=no
15327fi
15328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15329fi
15330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15331$as_echo "$ac_cv_header_time" >&6; }
15332if test $ac_cv_header_time = yes; then
15333
15334$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15335
15336fi
15337
15338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15339$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15340if test "${gcc_cv_header_string+set}" = set; then :
15341 $as_echo_n "(cached) " >&6
15342else
15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344/* end confdefs.h. */
15345#include <string.h>
15346#include <strings.h>
15347int
15348main ()
15349{
15350
15351 ;
15352 return 0;
15353}
15354_ACEOF
15355if ac_fn_c_try_compile "$LINENO"; then :
15356 gcc_cv_header_string=yes
15357else
15358 gcc_cv_header_string=no
15359fi
15360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15361fi
15362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15363$as_echo "$gcc_cv_header_string" >&6; }
15364if test $gcc_cv_header_string = yes; then
15365
15366$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15367
15368fi
15369
0258b6e4 15370for ac_header in unistd.h semaphore.h sys/time.h sys/auxv.h malloc.h
0a35513e
AH
15371do :
15372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15373ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15374eval as_val=\$$as_ac_Header
15375 if test "x$as_val" = x""yes; then :
15376 cat >>confdefs.h <<_ACEOF
15377#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15378_ACEOF
15379
15380fi
15381
15382done
15383
15384
15385
15386
15387inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15388
15389acx_cv_header_stdint=stddef.h
15390acx_cv_header_stdint_kind="(already complete)"
15391for i in stdint.h $inttype_headers; do
15392 unset ac_cv_type_uintptr_t
15393 unset ac_cv_type_uintmax_t
15394 unset ac_cv_type_int_least32_t
15395 unset ac_cv_type_int_fast32_t
15396 unset ac_cv_type_uint64_t
15397 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15398 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15399#include <$i>
15400"
15401if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15402 acx_cv_header_stdint=$i
15403else
15404 continue
15405fi
15406
15407 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15408#include <$i>
15409"
15410if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15411
15412else
15413 acx_cv_header_stdint_kind="(mostly complete)"
15414fi
15415
15416 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15417#include <$i>
15418"
15419if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15420
15421else
15422 acx_cv_header_stdint_kind="(mostly complete)"
15423fi
15424
15425 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15426#include <$i>
15427"
15428if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15429
15430else
15431 acx_cv_header_stdint_kind="(mostly complete)"
15432fi
15433
15434 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15435#include <$i>
15436"
15437if test "x$ac_cv_type_uint64_t" = x""yes; then :
15438
15439else
15440 acx_cv_header_stdint_kind="(lacks uint64_t)"
15441fi
15442
15443 break
15444done
15445if test "$acx_cv_header_stdint" = stddef.h; then
15446 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15447 for i in stdint.h $inttype_headers; do
15448 unset ac_cv_type_uintptr_t
15449 unset ac_cv_type_uint32_t
15450 unset ac_cv_type_uint64_t
15451 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15452 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15453#include <$i>
15454"
15455if test "x$ac_cv_type_uint32_t" = x""yes; then :
15456 acx_cv_header_stdint=$i
15457else
15458 continue
15459fi
15460
15461 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15462#include <$i>
15463"
15464if test "x$ac_cv_type_uint64_t" = x""yes; then :
15465
15466fi
15467
15468 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15469#include <$i>
15470"
15471if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15472
15473fi
15474
15475 break
15476 done
15477fi
15478if test "$acx_cv_header_stdint" = stddef.h; then
15479 acx_cv_header_stdint_kind="(u_intXX_t style)"
15480 for i in sys/types.h $inttype_headers; do
15481 unset ac_cv_type_u_int32_t
15482 unset ac_cv_type_u_int64_t
15483 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15484 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15485#include <$i>
15486"
15487if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15488 acx_cv_header_stdint=$i
15489else
15490 continue
15491fi
15492
15493 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15494#include <$i>
15495"
15496if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15497
15498fi
15499
15500 break
15501 done
15502fi
15503if test "$acx_cv_header_stdint" = stddef.h; then
15504 acx_cv_header_stdint_kind="(using manual detection)"
15505fi
15506
15507test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15508test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15509test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15510test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15511test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15512
15513# ----------------- Summarize what we found so far
15514
15515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15516$as_echo_n "checking what to include in gstdint.h... " >&6; }
15517
15518case `$as_basename -- gstdint.h ||
15519$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15520 Xgstdint.h : 'X\(//\)$' \| \
15521 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15522$as_echo X/gstdint.h |
15523 sed '/^.*\/\([^/][^/]*\)\/*$/{
15524 s//\1/
15525 q
15526 }
15527 /^X\/\(\/\/\)$/{
15528 s//\1/
15529 q
15530 }
15531 /^X\/\(\/\).*/{
15532 s//\1/
15533 q
15534 }
15535 s/.*/./; q'` in
15536 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15537$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15538 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15539$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15540 *) ;;
15541esac
15542
15543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15544$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15545
15546# ----------------- done included file, check C basic types --------
15547
15548# Lacking an uintptr_t? Test size of void *
15549case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15550 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15551# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15552# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15553# This bug is HP SR number 8606223364.
15554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15555$as_echo_n "checking size of void *... " >&6; }
15556if test "${ac_cv_sizeof_void_p+set}" = set; then :
15557 $as_echo_n "(cached) " >&6
15558else
15559 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15560
15561else
15562 if test "$ac_cv_type_void_p" = yes; then
15563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15565{ as_fn_set_status 77
15566as_fn_error "cannot compute sizeof (void *)
15567See \`config.log' for more details." "$LINENO" 5; }; }
15568 else
15569 ac_cv_sizeof_void_p=0
15570 fi
15571fi
15572
15573fi
15574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15575$as_echo "$ac_cv_sizeof_void_p" >&6; }
15576
15577
15578
15579cat >>confdefs.h <<_ACEOF
15580#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15581_ACEOF
15582
15583 ;;
15584esac
15585
15586# Lacking an uint64_t? Test size of long
15587case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15588 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15589# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15590# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15591# This bug is HP SR number 8606223364.
15592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15593$as_echo_n "checking size of long... " >&6; }
15594if test "${ac_cv_sizeof_long+set}" = set; then :
15595 $as_echo_n "(cached) " >&6
15596else
15597 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15598
15599else
15600 if test "$ac_cv_type_long" = yes; then
15601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15603{ as_fn_set_status 77
15604as_fn_error "cannot compute sizeof (long)
15605See \`config.log' for more details." "$LINENO" 5; }; }
15606 else
15607 ac_cv_sizeof_long=0
15608 fi
15609fi
15610
15611fi
15612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15613$as_echo "$ac_cv_sizeof_long" >&6; }
15614
15615
15616
15617cat >>confdefs.h <<_ACEOF
15618#define SIZEOF_LONG $ac_cv_sizeof_long
15619_ACEOF
15620
15621 ;;
15622esac
15623
15624if test $acx_cv_header_stdint = stddef.h; then
15625 # Lacking a good header? Test size of everything and deduce all types.
15626 # The cast to long int works around a bug in the HP C Compiler
15627# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15628# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15629# This bug is HP SR number 8606223364.
15630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15631$as_echo_n "checking size of int... " >&6; }
15632if test "${ac_cv_sizeof_int+set}" = set; then :
15633 $as_echo_n "(cached) " >&6
15634else
15635 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15636
15637else
15638 if test "$ac_cv_type_int" = yes; then
15639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15640$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15641{ as_fn_set_status 77
15642as_fn_error "cannot compute sizeof (int)
15643See \`config.log' for more details." "$LINENO" 5; }; }
15644 else
15645 ac_cv_sizeof_int=0
15646 fi
15647fi
15648
15649fi
15650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15651$as_echo "$ac_cv_sizeof_int" >&6; }
15652
15653
15654
15655cat >>confdefs.h <<_ACEOF
15656#define SIZEOF_INT $ac_cv_sizeof_int
15657_ACEOF
15658
15659
15660 # The cast to long int works around a bug in the HP C Compiler
15661# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15662# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15663# This bug is HP SR number 8606223364.
15664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15665$as_echo_n "checking size of short... " >&6; }
15666if test "${ac_cv_sizeof_short+set}" = set; then :
15667 $as_echo_n "(cached) " >&6
15668else
15669 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15670
15671else
15672 if test "$ac_cv_type_short" = yes; then
15673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15675{ as_fn_set_status 77
15676as_fn_error "cannot compute sizeof (short)
15677See \`config.log' for more details." "$LINENO" 5; }; }
15678 else
15679 ac_cv_sizeof_short=0
15680 fi
15681fi
15682
15683fi
15684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15685$as_echo "$ac_cv_sizeof_short" >&6; }
15686
15687
15688
15689cat >>confdefs.h <<_ACEOF
15690#define SIZEOF_SHORT $ac_cv_sizeof_short
15691_ACEOF
15692
15693
15694 # The cast to long int works around a bug in the HP C Compiler
15695# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15696# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15697# This bug is HP SR number 8606223364.
15698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15699$as_echo_n "checking size of char... " >&6; }
15700if test "${ac_cv_sizeof_char+set}" = set; then :
15701 $as_echo_n "(cached) " >&6
15702else
15703 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15704
15705else
15706 if test "$ac_cv_type_char" = yes; then
15707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15709{ as_fn_set_status 77
15710as_fn_error "cannot compute sizeof (char)
15711See \`config.log' for more details." "$LINENO" 5; }; }
15712 else
15713 ac_cv_sizeof_char=0
15714 fi
15715fi
15716
15717fi
15718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15719$as_echo "$ac_cv_sizeof_char" >&6; }
15720
15721
15722
15723cat >>confdefs.h <<_ACEOF
15724#define SIZEOF_CHAR $ac_cv_sizeof_char
15725_ACEOF
15726
15727
15728
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15730$as_echo_n "checking for type equivalent to int8_t... " >&6; }
15731 case "$ac_cv_sizeof_char" in
15732 1) acx_cv_type_int8_t=char ;;
15733 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15734 esac
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15736$as_echo "$acx_cv_type_int8_t" >&6; }
15737
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15739$as_echo_n "checking for type equivalent to int16_t... " >&6; }
15740 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15741 2:*) acx_cv_type_int16_t=int ;;
15742 *:2) acx_cv_type_int16_t=short ;;
15743 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15744 esac
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15746$as_echo "$acx_cv_type_int16_t" >&6; }
15747
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15749$as_echo_n "checking for type equivalent to int32_t... " >&6; }
15750 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15751 4:*) acx_cv_type_int32_t=int ;;
15752 *:4) acx_cv_type_int32_t=long ;;
15753 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15754 esac
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15756$as_echo "$acx_cv_type_int32_t" >&6; }
15757fi
15758
15759# These tests are here to make the output prettier
15760
15761if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15762 case "$ac_cv_sizeof_long" in
15763 8) acx_cv_type_int64_t=long ;;
15764 esac
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15766$as_echo_n "checking for type equivalent to int64_t... " >&6; }
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15768$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15769fi
15770
15771# Now we can use the above types
15772
15773if test "$ac_cv_type_uintptr_t" != yes; then
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15775$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15776 case $ac_cv_sizeof_void_p in
15777 2) acx_cv_type_intptr_t=int16_t ;;
15778 4) acx_cv_type_intptr_t=int32_t ;;
15779 8) acx_cv_type_intptr_t=int64_t ;;
15780 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15781 esac
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15783$as_echo "$acx_cv_type_intptr_t" >&6; }
15784fi
15785
15786# ----------------- done all checks, emit header -------------
15787ac_config_commands="$ac_config_commands gstdint.h"
15788
15789
15790
15791
15792
15793ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15794if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
15795 gcc_header_sys_mman_h=yes
15796else
15797 gcc_header_sys_mman_h=no
15798fi
15799
15800
15801ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15802if test "x$ac_cv_func_mmap" = x""yes; then :
15803 gcc_func_mmap=yes
15804else
15805 gcc_func_mmap=no
15806fi
15807
15808if test "$gcc_header_sys_mman_h" != yes \
15809 || test "$gcc_func_mmap" != yes; then
15810 gcc_cv_func_mmap_file=no
15811 gcc_cv_func_mmap_dev_zero=no
15812 gcc_cv_func_mmap_anon=no
15813else
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15815$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15816if test "${gcc_cv_func_mmap_file+set}" = set; then :
15817 $as_echo_n "(cached) " >&6
15818else
15819 # Add a system to this blacklist if
15820 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15821 # memory area containing the same data that you'd get if you applied
15822 # read() to the same fd. The only system known to have a problem here
15823 # is VMS, where text files have record structure.
15824 case "$host_os" in
2f6935f4 15825 *vms* | ultrix*)
0a35513e
AH
15826 gcc_cv_func_mmap_file=no ;;
15827 *)
15828 gcc_cv_func_mmap_file=yes;;
15829 esac
15830fi
15831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
15832$as_echo "$gcc_cv_func_mmap_file" >&6; }
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15834$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15835if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
15836 $as_echo_n "(cached) " >&6
15837else
15838 # Add a system to this blacklist if it has mmap() but /dev/zero
15839 # does not exist, or if mmapping /dev/zero does not give anonymous
15840 # zeroed pages with both the following properties:
15841 # 1. If you map N consecutive pages in with one call, and then
15842 # unmap any subset of those pages, the pages that were not
15843 # explicitly unmapped remain accessible.
15844 # 2. If you map two adjacent blocks of memory and then unmap them
15845 # both at once, they must both go away.
15846 # Systems known to be in this category are Windows (all variants),
15847 # VMS, and Darwin.
15848 case "$host_os" in
2f6935f4 15849 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
0a35513e
AH
15850 gcc_cv_func_mmap_dev_zero=no ;;
15851 *)
15852 gcc_cv_func_mmap_dev_zero=yes;;
15853 esac
15854fi
15855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
15856$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
15857
15858 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15860$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15861if test "${gcc_cv_decl_map_anon+set}" = set; then :
15862 $as_echo_n "(cached) " >&6
15863else
15864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15865/* end confdefs.h. */
15866#include <sys/types.h>
15867#include <sys/mman.h>
15868#include <unistd.h>
15869
15870#ifndef MAP_ANONYMOUS
15871#define MAP_ANONYMOUS MAP_ANON
15872#endif
15873
15874int
15875main ()
15876{
15877int n = MAP_ANONYMOUS;
15878 ;
15879 return 0;
15880}
15881_ACEOF
15882if ac_fn_c_try_compile "$LINENO"; then :
15883 gcc_cv_decl_map_anon=yes
15884else
15885 gcc_cv_decl_map_anon=no
15886fi
15887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15888fi
15889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
15890$as_echo "$gcc_cv_decl_map_anon" >&6; }
15891
15892 if test $gcc_cv_decl_map_anon = no; then
15893 gcc_cv_func_mmap_anon=no
15894 else
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15896$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15897if test "${gcc_cv_func_mmap_anon+set}" = set; then :
15898 $as_echo_n "(cached) " >&6
15899else
15900 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15901 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15902 # doesn't give anonymous zeroed pages with the same properties listed
15903 # above for use of /dev/zero.
15904 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15905 case "$host_os" in
2f6935f4 15906 *vms* | cygwin* | pe | mingw* | sco* | udk* )
0a35513e
AH
15907 gcc_cv_func_mmap_anon=no ;;
15908 *)
15909 gcc_cv_func_mmap_anon=yes;;
15910 esac
15911fi
15912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
15913$as_echo "$gcc_cv_func_mmap_anon" >&6; }
15914 fi
15915fi
15916
15917if test $gcc_cv_func_mmap_file = yes; then
15918
15919$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15920
15921fi
15922if test $gcc_cv_func_mmap_dev_zero = yes; then
15923
15924$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15925
15926fi
15927if test $gcc_cv_func_mmap_anon = yes; then
15928
15929$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15930
15931fi
15932
15933
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15935$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15936if test "${ac_cv_c_bigendian+set}" = set; then :
15937 $as_echo_n "(cached) " >&6
15938else
15939 ac_cv_c_bigendian=unknown
15940 # See if we're dealing with a universal compiler.
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942/* end confdefs.h. */
15943#ifndef __APPLE_CC__
15944 not a universal capable compiler
15945 #endif
15946 typedef int dummy;
15947
15948_ACEOF
15949if ac_fn_c_try_compile "$LINENO"; then :
15950
15951 # Check for potential -arch flags. It is not universal unless
15952 # there are at least two -arch flags with different values.
15953 ac_arch=
15954 ac_prev=
15955 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15956 if test -n "$ac_prev"; then
15957 case $ac_word in
15958 i?86 | x86_64 | ppc | ppc64)
15959 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15960 ac_arch=$ac_word
15961 else
15962 ac_cv_c_bigendian=universal
15963 break
15964 fi
15965 ;;
15966 esac
15967 ac_prev=
15968 elif test "x$ac_word" = "x-arch"; then
15969 ac_prev=arch
15970 fi
15971 done
15972fi
15973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15974 if test $ac_cv_c_bigendian = unknown; then
15975 # See if sys/param.h defines the BYTE_ORDER macro.
15976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977/* end confdefs.h. */
15978#include <sys/types.h>
15979 #include <sys/param.h>
15980
15981int
15982main ()
15983{
15984#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15985 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15986 && LITTLE_ENDIAN)
15987 bogus endian macros
15988 #endif
15989
15990 ;
15991 return 0;
15992}
15993_ACEOF
15994if ac_fn_c_try_compile "$LINENO"; then :
15995 # It does; now see whether it defined to BIG_ENDIAN or not.
15996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997/* end confdefs.h. */
15998#include <sys/types.h>
15999 #include <sys/param.h>
16000
16001int
16002main ()
16003{
16004#if BYTE_ORDER != BIG_ENDIAN
16005 not big endian
16006 #endif
16007
16008 ;
16009 return 0;
16010}
16011_ACEOF
16012if ac_fn_c_try_compile "$LINENO"; then :
16013 ac_cv_c_bigendian=yes
16014else
16015 ac_cv_c_bigendian=no
16016fi
16017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16018fi
16019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16020 fi
16021 if test $ac_cv_c_bigendian = unknown; then
16022 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024/* end confdefs.h. */
16025#include <limits.h>
16026
16027int
16028main ()
16029{
16030#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16031 bogus endian macros
16032 #endif
16033
16034 ;
16035 return 0;
16036}
16037_ACEOF
16038if ac_fn_c_try_compile "$LINENO"; then :
16039 # It does; now see whether it defined to _BIG_ENDIAN or not.
16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041/* end confdefs.h. */
16042#include <limits.h>
16043
16044int
16045main ()
16046{
16047#ifndef _BIG_ENDIAN
16048 not big endian
16049 #endif
16050
16051 ;
16052 return 0;
16053}
16054_ACEOF
16055if ac_fn_c_try_compile "$LINENO"; then :
16056 ac_cv_c_bigendian=yes
16057else
16058 ac_cv_c_bigendian=no
16059fi
16060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061fi
16062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16063 fi
16064 if test $ac_cv_c_bigendian = unknown; then
16065 # Compile a test program.
16066 if test "$cross_compiling" = yes; then :
16067 # Try to guess by grepping values from an object file.
16068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16069/* end confdefs.h. */
16070short int ascii_mm[] =
16071 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16072 short int ascii_ii[] =
16073 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16074 int use_ascii (int i) {
16075 return ascii_mm[i] + ascii_ii[i];
16076 }
16077 short int ebcdic_ii[] =
16078 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16079 short int ebcdic_mm[] =
16080 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16081 int use_ebcdic (int i) {
16082 return ebcdic_mm[i] + ebcdic_ii[i];
16083 }
16084 extern int foo;
16085
16086int
16087main ()
16088{
16089return use_ascii (foo) == use_ebcdic (foo);
16090 ;
16091 return 0;
16092}
16093_ACEOF
16094if ac_fn_c_try_compile "$LINENO"; then :
16095 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16096 ac_cv_c_bigendian=yes
16097 fi
16098 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16099 if test "$ac_cv_c_bigendian" = unknown; then
16100 ac_cv_c_bigendian=no
16101 else
16102 # finding both strings is unlikely to happen, but who knows?
16103 ac_cv_c_bigendian=unknown
16104 fi
16105 fi
16106fi
16107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16108else
16109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16110/* end confdefs.h. */
16111$ac_includes_default
16112int
16113main ()
16114{
16115
16116 /* Are we little or big endian? From Harbison&Steele. */
16117 union
16118 {
16119 long int l;
16120 char c[sizeof (long int)];
16121 } u;
16122 u.l = 1;
16123 return u.c[sizeof (long int) - 1] == 1;
16124
16125 ;
16126 return 0;
16127}
16128_ACEOF
16129if ac_fn_c_try_run "$LINENO"; then :
16130 ac_cv_c_bigendian=no
16131else
16132 ac_cv_c_bigendian=yes
16133fi
16134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16135 conftest.$ac_objext conftest.beam conftest.$ac_ext
16136fi
16137
16138 fi
16139fi
16140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16141$as_echo "$ac_cv_c_bigendian" >&6; }
16142 case $ac_cv_c_bigendian in #(
16143 yes)
16144 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16145;; #(
16146 no)
16147 ;; #(
16148 universal)
16149
16150$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16151
16152 ;; #(
16153 *)
16154 as_fn_error "unknown endianness
16155 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16156 esac
16157
16158# I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16159
16160
16161# Check to see if -pthread or -lpthread is needed. Prefer the former.
16162# In case the pthread.h system header is not found, this test will fail.
16163XPCFLAGS=""
16164CFLAGS="$CFLAGS -pthread"
16165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166/* end confdefs.h. */
16167#include <pthread.h>
16168 void *g(void *d) { return NULL; }
16169int
16170main ()
16171{
16172pthread_t t; pthread_create(&t,NULL,g,NULL);
16173 ;
16174 return 0;
16175}
16176_ACEOF
16177if ac_fn_c_try_link "$LINENO"; then :
16178 XPCFLAGS=" -Wc,-pthread"
16179else
16180 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16182/* end confdefs.h. */
16183#include <pthread.h>
16184 void *g(void *d) { return NULL; }
16185int
16186main ()
16187{
16188pthread_t t; pthread_create(&t,NULL,g,NULL);
16189 ;
16190 return 0;
16191}
16192_ACEOF
16193if ac_fn_c_try_link "$LINENO"; then :
16194
16195else
16196 as_fn_error "Pthreads are required to build libitm" "$LINENO" 5
16197fi
16198rm -f core conftest.err conftest.$ac_objext \
16199 conftest$ac_exeext conftest.$ac_ext
16200fi
16201rm -f core conftest.err conftest.$ac_objext \
16202 conftest$ac_exeext conftest.$ac_ext
16203
16204# Check for functions needed.
0258b6e4 16205for ac_func in strtoull memalign posix_memalign getauxval
0a35513e
AH
16206do :
16207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16208ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16209eval as_val=\$$as_ac_var
16210 if test "x$as_val" = x""yes; then :
16211 cat >>confdefs.h <<_ACEOF
16212#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16213_ACEOF
16214
16215fi
16216done
16217
16218
16219# Check for broken semaphore implementation on darwin.
16220# sem_init returns: sem_init error: Function not implemented.
16221case "$host" in
16222 *-darwin*)
16223
16224$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16225
16226 ;;
16227esac
16228
16229 # Check whether --enable-linux-futex was given.
16230if test "${enable_linux_futex+set}" = set; then :
16231 enableval=$enable_linux_futex;
16232 case "$enableval" in
16233 yes|no|default) ;;
16234 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16235 esac
16236
16237else
16238 enable_linux_futex=default
16239fi
16240
16241
16242case "$target" in
16243 *-linux*)
16244 case "$enable_linux_futex" in
16245 default)
16246 # If headers don't have gettid/futex syscalls definition, then
16247 # default to no, otherwise there will be compile time failures.
16248 # Otherwise, default to yes. If we don't detect we are
16249 # compiled/linked against NPTL and not cross-compiling, check
16250 # if programs are run by default against NPTL and if not, issue
16251 # a warning.
16252 enable_linux_futex=no
16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254/* end confdefs.h. */
16255#include <sys/syscall.h>
16256 int lk;
16257int
16258main ()
16259{
16260syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16261 ;
16262 return 0;
16263}
16264_ACEOF
16265if ac_fn_c_try_link "$LINENO"; then :
16266 save_LIBS="$LIBS"
16267 LIBS="-lpthread $LIBS"
16268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16269/* end confdefs.h. */
16270#ifndef _GNU_SOURCE
16271 #define _GNU_SOURCE 1
16272 #endif
16273 #include <pthread.h>
16274 pthread_t th; void *status;
16275int
16276main ()
16277{
16278pthread_tryjoin_np (th, &status);
16279 ;
16280 return 0;
16281}
16282_ACEOF
16283if ac_fn_c_try_link "$LINENO"; then :
16284 enable_linux_futex=yes
16285else
16286 if test x$cross_compiling = xno; then
16287 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16288 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16290If so, please configure with --disable-linux-futex" >&5
16291$as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16292If so, please configure with --disable-linux-futex" >&2;}
16293 fi
16294 fi
16295 enable_linux_futex=yes
16296fi
16297rm -f core conftest.err conftest.$ac_objext \
16298 conftest$ac_exeext conftest.$ac_ext
16299 LIBS="$save_LIBS"
16300fi
16301rm -f core conftest.err conftest.$ac_objext \
16302 conftest$ac_exeext conftest.$ac_ext
16303 ;;
16304 yes)
16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306/* end confdefs.h. */
16307#include <sys/syscall.h>
16308 int lk;
16309int
16310main ()
16311{
16312syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16313 ;
16314 return 0;
16315}
16316_ACEOF
16317if ac_fn_c_try_link "$LINENO"; then :
16318
16319else
16320 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16321fi
16322rm -f core conftest.err conftest.$ac_objext \
16323 conftest$ac_exeext conftest.$ac_ext
16324 ;;
16325 esac
16326 ;;
16327 *)
16328 enable_linux_futex=no
16329 ;;
16330esac
16331if test x$enable_linux_futex = xyes; then
16332 :
16333fi
16334
16335
16336# See if we support thread-local storage.
16337
16338
16339 # Check whether --enable-tls was given.
16340if test "${enable_tls+set}" = set; then :
16341 enableval=$enable_tls;
16342 case "$enableval" in
16343 yes|no) ;;
16344 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16345 esac
16346
16347else
16348 enable_tls=yes
16349fi
16350
16351
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16353$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16354if test "${gcc_cv_have_tls+set}" = set; then :
16355 $as_echo_n "(cached) " >&6
16356else
16357
16358 if test "$cross_compiling" = yes; then :
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360/* end confdefs.h. */
16361__thread int a; int b; int main() { return a = b; }
16362_ACEOF
16363if ac_fn_c_try_link "$LINENO"; then :
16364 chktls_save_LDFLAGS="$LDFLAGS"
16365 case $host in
16366 *-*-linux*)
16367 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16368 ;;
16369 esac
16370 chktls_save_CFLAGS="$CFLAGS"
16371 CFLAGS="-fPIC $CFLAGS"
16372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373/* end confdefs.h. */
16374int f() { return 0; }
16375_ACEOF
16376if ac_fn_c_try_link "$LINENO"; then :
16377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378/* end confdefs.h. */
16379__thread int a; int b; int f() { return a = b; }
16380_ACEOF
16381if ac_fn_c_try_link "$LINENO"; then :
16382 gcc_cv_have_tls=yes
16383else
16384 gcc_cv_have_tls=no
16385fi
16386rm -f core conftest.err conftest.$ac_objext \
16387 conftest$ac_exeext conftest.$ac_ext
16388else
16389 gcc_cv_have_tls=yes
16390fi
16391rm -f core conftest.err conftest.$ac_objext \
16392 conftest$ac_exeext conftest.$ac_ext
16393 CFLAGS="$chktls_save_CFLAGS"
16394 LDFLAGS="$chktls_save_LDFLAGS"
16395else
16396 gcc_cv_have_tls=no
16397fi
16398rm -f core conftest.err conftest.$ac_objext \
16399 conftest$ac_exeext conftest.$ac_ext
16400
16401
16402else
16403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16404/* end confdefs.h. */
16405__thread int a; int b; int main() { return a = b; }
16406_ACEOF
16407if ac_fn_c_try_run "$LINENO"; then :
16408 chktls_save_LDFLAGS="$LDFLAGS"
16409 LDFLAGS="-static $LDFLAGS"
16410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16411/* end confdefs.h. */
16412int main() { return 0; }
16413_ACEOF
16414if ac_fn_c_try_link "$LINENO"; then :
16415 if test "$cross_compiling" = yes; then :
16416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16418as_fn_error "cannot run test program while cross compiling
16419See \`config.log' for more details." "$LINENO" 5; }
16420else
16421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16422/* end confdefs.h. */
16423__thread int a; int b; int main() { return a = b; }
16424_ACEOF
16425if ac_fn_c_try_run "$LINENO"; then :
16426 gcc_cv_have_tls=yes
16427else
16428 gcc_cv_have_tls=no
16429fi
16430rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16431 conftest.$ac_objext conftest.beam conftest.$ac_ext
16432fi
16433
16434else
16435 gcc_cv_have_tls=yes
16436fi
16437rm -f core conftest.err conftest.$ac_objext \
16438 conftest$ac_exeext conftest.$ac_ext
16439 LDFLAGS="$chktls_save_LDFLAGS"
16440 if test $gcc_cv_have_tls = yes; then
16441 chktls_save_CFLAGS="$CFLAGS"
16442 thread_CFLAGS=failed
16443 for flag in '' '-pthread' '-lpthread'; do
16444 CFLAGS="$flag $chktls_save_CFLAGS"
16445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446/* end confdefs.h. */
16447#include <pthread.h>
16448 void *g(void *d) { return NULL; }
16449int
16450main ()
16451{
16452pthread_t t; pthread_create(&t,NULL,g,NULL);
16453 ;
16454 return 0;
16455}
16456_ACEOF
16457if ac_fn_c_try_link "$LINENO"; then :
16458 thread_CFLAGS="$flag"
16459fi
16460rm -f core conftest.err conftest.$ac_objext \
16461 conftest$ac_exeext conftest.$ac_ext
16462 if test "X$thread_CFLAGS" != Xfailed; then
16463 break
16464 fi
16465 done
16466 CFLAGS="$chktls_save_CFLAGS"
16467 if test "X$thread_CFLAGS" != Xfailed; then
16468 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16469 if test "$cross_compiling" = yes; then :
16470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16472as_fn_error "cannot run test program while cross compiling
16473See \`config.log' for more details." "$LINENO" 5; }
16474else
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476/* end confdefs.h. */
16477#include <pthread.h>
16478 __thread int a;
16479 static int *volatile a_in_other_thread;
16480 static void *
16481 thread_func (void *arg)
16482 {
16483 a_in_other_thread = &a;
16484 return (void *)0;
16485 }
16486int
16487main ()
16488{
16489pthread_t thread;
16490 void *thread_retval;
16491 int *volatile a_in_main_thread;
16492 a_in_main_thread = &a;
16493 if (pthread_create (&thread, (pthread_attr_t *)0,
16494 thread_func, (void *)0))
16495 return 0;
16496 if (pthread_join (thread, &thread_retval))
16497 return 0;
16498 return (a_in_other_thread == a_in_main_thread);
16499 ;
16500 return 0;
16501}
16502_ACEOF
16503if ac_fn_c_try_run "$LINENO"; then :
16504 gcc_cv_have_tls=yes
16505else
16506 gcc_cv_have_tls=no
16507fi
16508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16509 conftest.$ac_objext conftest.beam conftest.$ac_ext
16510fi
16511
16512 CFLAGS="$chktls_save_CFLAGS"
16513 fi
16514 fi
16515else
16516 gcc_cv_have_tls=no
16517fi
16518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16519 conftest.$ac_objext conftest.beam conftest.$ac_ext
16520fi
16521
16522fi
16523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16524$as_echo "$gcc_cv_have_tls" >&6; }
16525 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16526
16527$as_echo "#define HAVE_TLS 1" >>confdefs.h
16528
16529 fi
16530
9ce91011 16531# See what sort of export controls are available.
0a35513e
AH
16532
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16534$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16535if test "${libitm_cv_have_attribute_visibility+set}" = set; then :
16536 $as_echo_n "(cached) " >&6
16537else
16538
16539 save_CFLAGS="$CFLAGS"
16540 CFLAGS="$CFLAGS -Werror"
16541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16542/* end confdefs.h. */
16543void __attribute__((visibility("hidden"))) foo(void) { }
16544int
16545main ()
16546{
16547
16548 ;
16549 return 0;
16550}
16551_ACEOF
16552if ac_fn_c_try_compile "$LINENO"; then :
16553 libitm_cv_have_attribute_visibility=yes
16554else
16555 libitm_cv_have_attribute_visibility=no
16556fi
16557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16558 CFLAGS="$save_CFLAGS"
16559fi
16560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16561$as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16562 if test $libitm_cv_have_attribute_visibility = yes; then
16563
16564$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16565
16566 fi
16567
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16569$as_echo_n "checking whether the target supports dllexport... " >&6; }
16570if test "${libitm_cv_have_attribute_dllexport+set}" = set; then :
16571 $as_echo_n "(cached) " >&6
16572else
16573
16574 save_CFLAGS="$CFLAGS"
16575 CFLAGS="$CFLAGS -Werror"
16576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16577/* end confdefs.h. */
16578void __attribute__((dllexport)) foo(void) { }
16579int
16580main ()
16581{
16582
16583 ;
16584 return 0;
16585}
16586_ACEOF
16587if ac_fn_c_try_compile "$LINENO"; then :
16588 libitm_cv_have_attribute_dllexport=yes
16589else
16590 libitm_cv_have_attribute_dllexport=no
16591fi
16592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16593 CFLAGS="$save_CFLAGS"
16594fi
16595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16596$as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16597 if test $libitm_cv_have_attribute_dllexport = yes; then
16598
16599$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16600
16601 fi
16602
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16604$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16605if test "${libitm_cv_have_attribute_alias+set}" = set; then :
16606 $as_echo_n "(cached) " >&6
16607else
16608
16609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16610/* end confdefs.h. */
16611
16612void foo(void) { }
16613extern void bar(void) __attribute__((alias("foo")));
16614int
16615main ()
16616{
16617bar();
16618 ;
16619 return 0;
16620}
16621_ACEOF
16622if ac_fn_c_try_link "$LINENO"; then :
16623 libitm_cv_have_attribute_alias=yes
16624else
16625 libitm_cv_have_attribute_alias=no
16626fi
16627rm -f core conftest.err conftest.$ac_objext \
16628 conftest$ac_exeext conftest.$ac_ext
16629fi
16630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16631$as_echo "$libitm_cv_have_attribute_alias" >&6; }
16632 if test $libitm_cv_have_attribute_alias = yes; then
16633
16634$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16635
16636 fi
16637
9ce91011
RO
16638# Check linker hardware capability support.
16639
0a35513e
AH
16640
16641# Check whether --with-gnu-ld was given.
16642if test "${with_gnu_ld+set}" = set; then :
16643 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16644else
16645 with_gnu_ld=no
16646fi
16647
16648ac_prog=ld
16649if test "$GCC" = yes; then
16650 # Check if gcc -print-prog-name=ld gives a path.
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16652$as_echo_n "checking for ld used by $CC... " >&6; }
16653 case $host in
16654 *-*-mingw*)
16655 # gcc leaves a trailing carriage return which upsets mingw
16656 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16657 *)
16658 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16659 esac
16660 case $ac_prog in
16661 # Accept absolute paths.
16662 [\\/]* | ?:[\\/]*)
16663 re_direlt='/[^/][^/]*/\.\./'
16664 # Canonicalize the pathname of ld
16665 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16666 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16667 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16668 done
16669 test -z "$LD" && LD="$ac_prog"
16670 ;;
16671 "")
16672 # If it fails, then pretend we aren't using GCC.
16673 ac_prog=ld
16674 ;;
16675 *)
16676 # If it is relative, then search for the first ld in PATH.
16677 with_gnu_ld=unknown
16678 ;;
16679 esac
16680elif test "$with_gnu_ld" = yes; then
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16682$as_echo_n "checking for GNU ld... " >&6; }
16683else
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16685$as_echo_n "checking for non-GNU ld... " >&6; }
16686fi
16687if test "${lt_cv_path_LD+set}" = set; then :
16688 $as_echo_n "(cached) " >&6
16689else
16690 if test -z "$LD"; then
16691 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16692 for ac_dir in $PATH; do
16693 IFS="$lt_save_ifs"
16694 test -z "$ac_dir" && ac_dir=.
16695 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16696 lt_cv_path_LD="$ac_dir/$ac_prog"
16697 # Check to see if the program is GNU ld. I'd rather use --version,
16698 # but apparently some variants of GNU ld only accept -v.
16699 # Break only if it was the GNU/non-GNU ld that we prefer.
16700 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16701 *GNU* | *'with BFD'*)
16702 test "$with_gnu_ld" != no && break
16703 ;;
16704 *)
16705 test "$with_gnu_ld" != yes && break
16706 ;;
16707 esac
16708 fi
16709 done
16710 IFS="$lt_save_ifs"
16711else
16712 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16713fi
16714fi
16715
16716LD="$lt_cv_path_LD"
16717if test -n "$LD"; then
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16719$as_echo "$LD" >&6; }
16720else
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16722$as_echo "no" >&6; }
16723fi
16724test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16726$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16727if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16728 $as_echo_n "(cached) " >&6
16729else
16730 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16731case `$LD -v 2>&1 </dev/null` in
16732*GNU* | *'with BFD'*)
16733 lt_cv_prog_gnu_ld=yes
16734 ;;
16735*)
16736 lt_cv_prog_gnu_ld=no
16737 ;;
16738esac
16739fi
16740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16741$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16742with_gnu_ld=$lt_cv_prog_gnu_ld
16743
16744
16745
16746
16747
16748
16749
9ce91011
RO
16750 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
16751
16752
16753 ac_save_LDFLAGS="$LDFLAGS"
3c698bf0 16754 LDFLAGS="$LFLAGS -mclear-hwcap"
9ce91011 16755
3c698bf0
RO
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
16757$as_echo_n "checking for -mclear-hwcap... " >&6; }
9ce91011
RO
16758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16759/* end confdefs.h. */
16760
16761int
16762main ()
16763{
16764return 0;
16765 ;
16766 return 0;
16767}
16768_ACEOF
16769if ac_fn_c_try_link "$LINENO"; then :
16770 ac_hwcap_ldflags=yes
16771else
16772 ac_hwcap_ldflags=no
16773fi
16774rm -f core conftest.err conftest.$ac_objext \
16775 conftest$ac_exeext conftest.$ac_ext
16776 if test "$ac_hwcap_ldflags" = "yes"; then
3c698bf0 16777 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
9ce91011
RO
16778 fi
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
16780$as_echo "$ac_hwcap_ldflags" >&6; }
16781
16782 LDFLAGS="$ac_save_LDFLAGS"
16783
16784
16785
16786 if test $ac_hwcap_ldflags != no; then
16787 HAVE_HWCAP_TRUE=
16788 HAVE_HWCAP_FALSE='#'
16789else
16790 HAVE_HWCAP_TRUE='#'
16791 HAVE_HWCAP_FALSE=
16792fi
16793
16794
16795# If defaulting to -mavx, don't clear hwcaps.
16796ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
16797if test "x$ac_cv_have_decl___AVX__" = x""yes; then :
16798 HWCAP_LDFLAGS=''
16799fi
16800
16801
16802
0a35513e
AH
16803 # If we're not using GNU ld, then there's no point in even trying these
16804 # tests. Check for that first. We should have already tested for gld
16805 # by now (in libtool), but require it now just to be safe...
16806 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16807 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16808
16809
16810
16811 # The name set by libtool depends on the version of libtool. Shame on us
16812 # for depending on an impl detail, but c'est la vie. Older versions used
16813 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16814 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16815 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16816 # set (hence we're using an older libtool), then set it.
16817 if test x${with_gnu_ld+set} != xset; then
16818 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16819 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16820 with_gnu_ld=no
16821 else
16822 with_gnu_ld=$ac_cv_prog_gnu_ld
16823 fi
16824 fi
16825
16826 # Start by getting the version number. I think the libtool test already
16827 # does some of this, but throws away the result.
adcd36bc
RO
16828 libitm_ld_is_gold=no
16829 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16830 libitm_ld_is_gold=yes
16831 fi
0a35513e 16832
adcd36bc
RO
16833 ldver=`$LD --version 2>/dev/null |
16834 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
0a35513e
AH
16835
16836 libitm_gnu_ld_version=`echo $ldver | \
16837 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16838
16839 # Set --gc-sections.
16840 if test "$with_gnu_ld" = "notbroken"; then
16841 # GNU ld it is! Joy and bunny rabbits!
16842
16843 # All these tests are for C++; save the language and the compiler flags.
16844 # Need to do this so that g++ won't try to link in libstdc++
16845 ac_test_CFLAGS="${CFLAGS+set}"
16846 ac_save_CFLAGS="$CFLAGS"
16847 CFLAGS='-x c++ -Wl,--gc-sections'
16848
16849 # Check for -Wl,--gc-sections
16850 # XXX This test is broken at the moment, as symbols required for linking
16851 # are now in libsupc++ (not built yet). In addition, this test has
16852 # cored on solaris in the past. In addition, --gc-sections doesn't
16853 # really work at the moment (keeps on discarding used sections, first
16854 # .eh_frame and now some of the glibc sections for iconv).
16855 # Bzzzzt. Thanks for playing, maybe next time.
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16857$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16858 if test "$cross_compiling" = yes; then :
16859 ac_sectionLDflags=yes
16860else
16861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16862/* end confdefs.h. */
16863
16864 int main(void)
16865 {
16866 try { throw 1; }
16867 catch (...) { };
16868 return 0;
16869 }
16870
16871_ACEOF
16872if ac_fn_c_try_run "$LINENO"; then :
16873 ac_sectionLDflags=yes
16874else
16875 ac_sectionLDflags=no
16876fi
16877rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16878 conftest.$ac_objext conftest.beam conftest.$ac_ext
16879fi
16880
16881 if test "$ac_test_CFLAGS" = set; then
16882 CFLAGS="$ac_save_CFLAGS"
16883 else
16884 # this is the suspicious part
16885 CFLAGS=''
16886 fi
16887 if test "$ac_sectionLDflags" = "yes"; then
16888 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16889 fi
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16891$as_echo "$ac_sectionLDflags" >&6; }
16892 fi
16893
16894 # Set linker optimization flags.
16895 if test x"$with_gnu_ld" = x"yes"; then
16896 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16897 fi
16898
16899
16900
16901
16902
16903
16904 # Check whether --enable-symvers was given.
16905if test "${enable_symvers+set}" = set; then :
16906 enableval=$enable_symvers;
16907 case "$enableval" in
adcd36bc 16908 yes|no|gnu*|sun) ;;
0a35513e
AH
16909 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16910 esac
16911
16912else
16913 enable_symvers=yes
16914fi
16915
16916
16917
16918# If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
16919# don't know enough about $LD to do tricks...
16920
adcd36bc
RO
16921
16922# Turn a 'yes' into a suitable default.
16923if test x$enable_symvers = xyes ; then
16924 # FIXME The following test is too strict, in theory.
16925 if test $enable_shared = no || test "x$LD" = x; then
16926 enable_symvers=no
16927 else
16928 if test $with_gnu_ld = yes ; then
16929 enable_symvers=gnu
16930 else
16931 case ${target_os} in
16932 # Sun symbol versioning exists since Solaris 2.5.
16933 solaris2.[5-9]* | solaris2.1[0-9]*)
16934 enable_symvers=sun ;;
16935 *)
16936 enable_symvers=no ;;
16937 esac
16938 fi
16939 fi
16940fi
16941
16942# Check if 'sun' was requested on non-Solaris 2 platforms.
16943if test x$enable_symvers = xsun ; then
16944 case ${target_os} in
16945 solaris2*)
16946 # All fine.
16947 ;;
16948 *)
16949 # Unlikely to work.
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16951$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16953$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16955$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16956 enable_symvers=no
16957 ;;
16958 esac
0a35513e
AH
16959fi
16960
16961# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16962if test $enable_symvers != no; then
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16964$as_echo_n "checking for shared libgcc... " >&6; }
16965 ac_save_CFLAGS="$CFLAGS"
16966 CFLAGS=' -lgcc_s'
16967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16968/* end confdefs.h. */
16969
16970int
16971main ()
16972{
16973return 0;
16974 ;
16975 return 0;
16976}
16977_ACEOF
16978if ac_fn_c_try_link "$LINENO"; then :
16979 libitm_shared_libgcc=yes
16980else
16981 libitm_shared_libgcc=no
16982fi
16983rm -f core conftest.err conftest.$ac_objext \
16984 conftest$ac_exeext conftest.$ac_ext
16985 CFLAGS="$ac_save_CFLAGS"
16986 if test $libitm_shared_libgcc = no; then
16987 cat > conftest.c <<EOF
16988int main (void) { return 0; }
16989EOF
16990 libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16991 -shared -shared-libgcc -o conftest.so \
16992 conftest.c -v 2>&1 >/dev/null \
16993 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16994 rm -f conftest.c conftest.so
16995 if test x${libitm_libgcc_s_suffix+set} = xset; then
16996 CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
16997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16998/* end confdefs.h. */
16999
17000int
17001main ()
17002{
17003return 0;
17004 ;
17005 return 0;
17006}
17007_ACEOF
17008if ac_fn_c_try_link "$LINENO"; then :
17009 libitm_shared_libgcc=yes
17010fi
17011rm -f core conftest.err conftest.$ac_objext \
17012 conftest$ac_exeext conftest.$ac_ext
17013 CFLAGS="$ac_save_CFLAGS"
17014 fi
17015 fi
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
17017$as_echo "$libitm_shared_libgcc" >&6; }
17018fi
17019
17020# For GNU ld, we need at least this version. The format is described in
17021# LIBITM_CHECK_LINKER_FEATURES above.
17022libitm_min_gnu_ld_version=21400
17023# XXXXXXXXXXX libitm_gnu_ld_version=21390
17024
17025# Check to see if unspecified "yes" value can win, given results above.
17026# Change "yes" into either "no" or a style name.
adcd36bc
RO
17027if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
17028 if test $with_gnu_ld = yes; then
0a35513e
AH
17029 if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
17030 enable_symvers=gnu
adcd36bc
RO
17031 elif test $libitm_ld_is_gold = yes ; then
17032 enable_symvers=gnu
0a35513e
AH
17033 else
17034 # The right tools, the right setup, but too old. Fallbacks?
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
17036$as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17038$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17040$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
17042$as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
17043 if test $libitm_gnu_ld_version -ge 21200 ; then
17044 # Globbing fix is present, proper block support is not.
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17046$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17047 enable_symvers=no
17048 else
17049 # 2.11 or older.
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17051$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17052 enable_symvers=no
17053 fi
17054 fi
adcd36bc
RO
17055 elif test $enable_symvers = sun; then
17056 : All interesting versions of Sun ld support sun style symbol versioning.
0a35513e
AH
17057 else
17058 # just fail for now
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17060$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17062$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17064$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17066$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17067 enable_symvers=no
17068 fi
17069fi
17070
17071 if test $enable_symvers != no; then
17072 LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
17073 LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
17074else
17075 LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
17076 LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
17077fi
17078
adcd36bc
RO
17079 if test $enable_symvers = gnu; then
17080 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17081 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17082else
17083 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17084 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17085fi
17086
17087 if test $enable_symvers = sun; then
17088 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17089 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17090else
17091 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17092 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17093fi
17094
0a35513e
AH
17095{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17096$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17097
0a35513e
AH
17098if test $enable_symvers = gnu; then
17099
17100$as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17101
17102fi
17103
4bdd090f
RH
17104# See if we can emit unwind info in the sjlj stub.
17105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
17106$as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
17107if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
17108 $as_echo_n "(cached) " >&6
17109else
17110
17111 gcc_cv_as_cfi_pseudo_op=unknown
17112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17113/* end confdefs.h. */
17114asm (".cfi_startproc\n\t.cfi_endproc");
17115int
17116main ()
17117{
17118
17119 ;
17120 return 0;
17121}
17122_ACEOF
17123if ac_fn_c_try_compile "$LINENO"; then :
17124 gcc_cv_as_cfi_pseudo_op=yes
17125else
17126 gcc_cv_as_cfi_pseudo_op=no
17127fi
17128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17129
17130fi
17131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17132$as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17133 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
17134
17135$as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17136
17137 fi
17138
17139
0a35513e
AH
17140# Determine the proper ABI type for size_t.
17141
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17143$as_echo_n "checking how size_t is mangled... " >&6; }
17144if test "${libitm_cv_size_t_mangling+set}" = set; then :
17145 $as_echo_n "(cached) " >&6
17146else
17147
17148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149/* end confdefs.h. */
17150
17151int
17152main ()
17153{
17154extern __SIZE_TYPE__ x; extern unsigned long x;
17155 ;
17156 return 0;
17157}
17158_ACEOF
17159if ac_fn_c_try_compile "$LINENO"; then :
17160 libitm_cv_size_t_mangling=m
17161else
17162
17163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164/* end confdefs.h. */
17165
17166int
17167main ()
17168{
17169extern __SIZE_TYPE__ x; extern unsigned int x;
17170 ;
17171 return 0;
17172}
17173_ACEOF
17174if ac_fn_c_try_compile "$LINENO"; then :
17175 libitm_cv_size_t_mangling=j
17176else
17177
17178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17179/* end confdefs.h. */
17180
17181int
17182main ()
17183{
17184extern __SIZE_TYPE__ x; extern unsigned long long x;
17185 ;
17186 return 0;
17187}
17188_ACEOF
17189if ac_fn_c_try_compile "$LINENO"; then :
17190 libitm_cv_size_t_mangling=y
17191else
17192
17193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194/* end confdefs.h. */
17195
17196int
17197main ()
17198{
17199extern __SIZE_TYPE__ x; extern unsigned short x;
17200 ;
17201 return 0;
17202}
17203_ACEOF
17204if ac_fn_c_try_compile "$LINENO"; then :
17205 libitm_cv_size_t_mangling=t
17206else
17207 libitm_cv_size_t_mangling=x
17208fi
17209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17210
17211fi
17212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17213
17214fi
17215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17216
17217fi
17218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17219
17220fi
17221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17222$as_echo "$libitm_cv_size_t_mangling" >&6; }
17223 if test $libitm_cv_size_t_mangling = x; then
17224 as_fn_error "Unknown underlying type for size_t" "$LINENO" 5
17225 fi
17226
17227cat >>confdefs.h <<_ACEOF
17228#define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17229_ACEOF
17230
17231
17232
17233# Get target configury.
17234. ${srcdir}/configure.tgt
01f3428c
RH
17235if test -n "$UNSUPPORTED"; then
17236 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
17237fi
17238
0a35513e
AH
17239CFLAGS="$save_CFLAGS $XCFLAGS"
17240
17241# Check for __sync_val_compare_and_swap, but only after the target has
17242# had a chance to set XCFLAGS.
17243
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17245$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17246if test "${libitm_cv_have_sync_builtins+set}" = set; then :
17247 $as_echo_n "(cached) " >&6
17248else
17249
17250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251/* end confdefs.h. */
17252
17253int
17254main ()
17255{
17256int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17257 ;
17258 return 0;
17259}
17260_ACEOF
17261if ac_fn_c_try_link "$LINENO"; then :
17262 libitm_cv_have_sync_builtins=yes
17263else
17264 libitm_cv_have_sync_builtins=no
17265fi
17266rm -f core conftest.err conftest.$ac_objext \
17267 conftest$ac_exeext conftest.$ac_ext
17268fi
17269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17270$as_echo "$libitm_cv_have_sync_builtins" >&6; }
17271 if test $libitm_cv_have_sync_builtins = yes; then
17272
17273$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17274
17275 fi
17276
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17278$as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17279if test "${libitm_cv_have_64bit_sync_builtins+set}" = set; then :
17280 $as_echo_n "(cached) " >&6
17281else
17282
17283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17284/* end confdefs.h. */
17285#include <stdint.h>
17286int
17287main ()
17288{
17289uint64_t foo, bar;
17290 bar = __sync_val_compare_and_swap(&foo, 0, 1);
17291 ;
17292 return 0;
17293}
17294_ACEOF
17295if ac_fn_c_try_link "$LINENO"; then :
17296 libitm_cv_have_64bit_sync_builtins=yes
17297else
17298 libitm_cv_have_64bit_sync_builtins=no
17299fi
17300rm -f core conftest.err conftest.$ac_objext \
17301 conftest$ac_exeext conftest.$ac_ext
17302fi
17303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17304$as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17305 if test $libitm_cv_have_64bit_sync_builtins = yes; then
17306
17307$as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17308
17309 fi
17310
430616e7 17311case "${target_cpu}" in
80713347 17312i[34567]86 | x86_64)
430616e7
RH
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17314$as_echo_n "checking if the assembler supports AVX... " >&6; }
17315if test "${libitm_cv_as_avx+set}" = set; then :
17316 $as_echo_n "(cached) " >&6
17317else
17318
17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17320/* end confdefs.h. */
17321
17322int
17323main ()
17324{
17325asm("vzeroupper");
17326 ;
17327 return 0;
17328}
17329_ACEOF
17330if ac_fn_c_try_compile "$LINENO"; then :
17331 libitm_cv_as_avx=yes
17332else
17333 libitm_cv_as_avx=no
17334fi
17335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17336
17337fi
17338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17339$as_echo "$libitm_cv_as_avx" >&6; }
17340 if test x$libitm_cv_as_avx = xyes; then
17341
17342$as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17343
17344 fi
17345 ;;
17346esac
17347
07d3b5c8
RH
17348case "${target_cpu}" in
17349i[34567]86 | x86_64)
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports RTM" >&5
17351$as_echo_n "checking if the assembler supports RTM... " >&6; }
17352if test "${libitm_cv_as_rtm+set}" = set; then :
17353 $as_echo_n "(cached) " >&6
17354else
17355
17356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17357/* end confdefs.h. */
17358
17359int
17360main ()
17361{
17362asm("1: xbegin 1b; xend");
17363 ;
17364 return 0;
17365}
17366_ACEOF
17367if ac_fn_c_try_compile "$LINENO"; then :
17368 libitm_cv_as_rtm=yes
17369else
17370 libitm_cv_as_rtm=no
17371fi
17372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17373
17374fi
17375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_rtm" >&5
17376$as_echo "$libitm_cv_as_rtm" >&6; }
17377 if test x$libitm_cv_as_rtm = xyes; then
17378
17379$as_echo "#define HAVE_AS_RTM 1" >>confdefs.h
17380
17381 fi
17382 ;;
17383esac
17384
0258b6e4
PB
17385case "${target_cpu}" in
17386powerpc*)
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17388$as_echo_n "checking if the assembler supports HTM... " >&6; }
17389if test "${libitm_cv_as_htm+set}" = set; then :
17390 $as_echo_n "(cached) " >&6
17391else
17392
17393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17394/* end confdefs.h. */
17395
17396int
17397main ()
17398{
17399asm("tbegin. 0; tend. 0");
17400 ;
17401 return 0;
17402}
17403_ACEOF
17404if ac_fn_c_try_compile "$LINENO"; then :
17405 libitm_cv_as_htm=yes
17406else
17407 libitm_cv_as_htm=no
17408fi
17409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17410
17411fi
17412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17413$as_echo "$libitm_cv_as_htm" >&6; }
17414 if test x$libitm_cv_as_htm = xyes; then
17415
167f68ed
AK
17416$as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17417
17418 fi
17419 ;;
17420s390*)
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17422$as_echo_n "checking if the assembler supports HTM... " >&6; }
17423if test "${libitm_cv_as_htm+set}" = set; then :
17424 $as_echo_n "(cached) " >&6
17425else
17426
17427 save_CFLAGS="$CFLAGS"
17428 CFLAGS="$CFLAGS -march=zEC12"
17429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17430/* end confdefs.h. */
17431
17432int
17433main ()
17434{
17435asm("tbegin 0,0; tend");
17436 ;
17437 return 0;
17438}
17439_ACEOF
17440if ac_fn_c_try_compile "$LINENO"; then :
17441 libitm_cv_as_htm=yes
17442else
17443 libitm_cv_as_htm=no
17444fi
17445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17446 CFLAGS="$save_CFLAGS"
17447fi
17448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17449$as_echo "$libitm_cv_as_htm" >&6; }
17450 if test x$libitm_cv_as_htm = xyes; then
17451
0258b6e4
PB
17452$as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17453
17454 fi
17455 ;;
17456esac
17457
8cf36bb3
IS
17458
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
17460$as_echo_n "checking whether weak refs work like ELF... " >&6; }
17461if test "${ac_cv_have_elf_style_weakref+set}" = set; then :
17462 $as_echo_n "(cached) " >&6
17463else
17464
17465 weakref_m4_saved_CFLAGS="$CFLAGS"
17466 case "${host}" in
17467 *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
17468 *) ;;
17469 esac
17470 if test "$cross_compiling" = yes; then :
17471
17472case "${host}" in
8cf36bb3
IS
17473 *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
17474 *) ac_cv_have_elf_style_weakref=yes;;
17475esac
17476else
17477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17478/* end confdefs.h. */
17479
17480extern void fNotToBeFound(void) __attribute__((weak));
17481int main ()
17482{
17483 if (fNotToBeFound)
17484 return 1;
17485 else
17486 return 0;
17487}
17488
17489_ACEOF
17490if ac_fn_c_try_run "$LINENO"; then :
17491 ac_cv_have_elf_style_weakref=yes
17492else
17493 ac_cv_have_elf_style_weakref=no
17494fi
17495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17496 conftest.$ac_objext conftest.beam conftest.$ac_ext
17497fi
17498CFLAGS="$weakref_m4_saved_CFLAGS"
17499fi
17500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
17501$as_echo "$ac_cv_have_elf_style_weakref" >&6; }
17502if test x"$ac_cv_have_elf_style_weakref" = xyes; then
17503
17504$as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
17505
17506fi
17507
0a35513e
AH
17508# Cleanup and exit.
17509CFLAGS="$save_CFLAGS"
17510cat >confcache <<\_ACEOF
17511# This file is a shell script that caches the results of configure
17512# tests run on this system so they can be shared between configure
17513# scripts and configure runs, see configure's option --config-cache.
17514# It is not useful on other systems. If it contains results you don't
17515# want to keep, you may remove or edit it.
17516#
17517# config.status only pays attention to the cache file if you give it
17518# the --recheck option to rerun configure.
17519#
17520# `ac_cv_env_foo' variables (set or unset) will be overridden when
17521# loading this file, other *unset* `ac_cv_foo' will be assigned the
17522# following values.
17523
17524_ACEOF
17525
17526# The following way of writing the cache mishandles newlines in values,
17527# but we know of no workaround that is simple, portable, and efficient.
17528# So, we kill variables containing newlines.
17529# Ultrix sh set writes to stderr and can't be redirected directly,
17530# and sets the high bit in the cache file unless we assign to the vars.
17531(
17532 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17533 eval ac_val=\$$ac_var
17534 case $ac_val in #(
17535 *${as_nl}*)
17536 case $ac_var in #(
17537 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17538$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17539 esac
17540 case $ac_var in #(
17541 _ | IFS | as_nl) ;; #(
17542 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17543 *) { eval $ac_var=; unset $ac_var;} ;;
17544 esac ;;
17545 esac
17546 done
17547
17548 (set) 2>&1 |
17549 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17550 *${as_nl}ac_space=\ *)
17551 # `set' does not quote correctly, so add quotes: double-quote
17552 # substitution turns \\\\ into \\, and sed turns \\ into \.
17553 sed -n \
17554 "s/'/'\\\\''/g;
17555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17556 ;; #(
17557 *)
17558 # `set' quotes correctly as required by POSIX, so do not add quotes.
17559 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17560 ;;
17561 esac |
17562 sort
17563) |
17564 sed '
17565 /^ac_cv_env_/b end
17566 t clear
17567 :clear
17568 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17569 t end
17570 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17571 :end' >>confcache
17572if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17573 if test -w "$cache_file"; then
17574 test "x$cache_file" != "x/dev/null" &&
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17576$as_echo "$as_me: updating cache $cache_file" >&6;}
17577 cat confcache >$cache_file
17578 else
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17580$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17581 fi
17582fi
17583rm -f confcache
17584
17585# Add -Wall -Werror if we are using GCC.
17586if test "x$GCC" = "xyes"; then
17587 XCFLAGS="$XCFLAGS -Wall -Werror"
17588fi
17589
17590XCFLAGS="$XCFLAGS $XPCFLAGS"
17591
c51081fc
IT
17592# Add CET specific flags if CET is enabled
17593 # Check whether --enable-cet was given.
17594if test "${enable_cet+set}" = set; then :
17595 enableval=$enable_cet;
17596 case "$enableval" in
17597 yes|no|default) ;;
17598 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
17599 esac
17600
17601else
17602 enable_cet=default
17603fi
17604
17605
14e335ed
IT
17606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
17607$as_echo_n "checking for CET support... " >&6; }
17608
c51081fc
IT
17609case "$host" in
17610 i[34567]86-*-linux* | x86_64-*-linux*)
17611 case "$enable_cet" in
17612 default)
14e335ed
IT
17613 # Check if target supports multi-byte NOPs
17614 # and if assembler supports CET insn.
c51081fc
IT
17615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17616/* end confdefs.h. */
17617
17618int
17619main ()
17620{
14e335ed
IT
17621
17622#if !defined(__SSE2__)
17623#error target does not support multi-byte NOPs
17624#else
c51081fc 17625asm ("setssbsy");
14e335ed
IT
17626#endif
17627
c51081fc
IT
17628 ;
17629 return 0;
17630}
17631_ACEOF
17632if ac_fn_c_try_compile "$LINENO"; then :
17633 enable_cet=yes
17634else
17635 enable_cet=no
17636fi
17637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17638 ;;
17639 yes)
17640 # Check if assembler supports CET.
17641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17642/* end confdefs.h. */
17643
17644int
17645main ()
17646{
17647asm ("setssbsy");
17648 ;
17649 return 0;
17650}
17651_ACEOF
17652if ac_fn_c_try_compile "$LINENO"; then :
17653
17654else
17655 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
17656fi
17657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17658 ;;
17659 esac
17660 ;;
17661 *)
17662 enable_cet=no
17663 ;;
17664esac
17665if test x$enable_cet = xyes; then
17666 CET_FLAGS="-fcf-protection -mcet"
14e335ed
IT
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17668$as_echo "yes" >&6; }
17669else
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17671$as_echo "no" >&6; }
c51081fc
IT
17672fi
17673
17674XCFLAGS="$XCFLAGS $CET_FLAGS"
17675
0a35513e
AH
17676
17677
17678
17679
17680if test ${multilib} = yes; then
17681 multilib_arg="--enable-multilib"
17682else
17683 multilib_arg=
17684fi
17685
17686# Set up the set of libraries that we need to link against for libitm.
255a9a1b 17687# Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
0a35513e
AH
17688# which will force linkage against -lpthread (or equivalent for the system).
17689# That's not 100% ideal, but about the best we can do easily.
17690if test $enable_shared = yes; then
17691 link_itm="-litm %{static: $LIBS}"
17692else
17693 link_itm="-litm $LIBS"
17694fi
17695
17696
aebac0ca
RH
17697 if test "$ARCH" = arm; then
17698 ARCH_ARM_TRUE=
17699 ARCH_ARM_FALSE='#'
17700else
17701 ARCH_ARM_TRUE='#'
17702 ARCH_ARM_FALSE=
17703fi
17704
0a35513e
AH
17705 if test "$ARCH" = x86; then
17706 ARCH_X86_TRUE=
17707 ARCH_X86_FALSE='#'
17708else
17709 ARCH_X86_TRUE='#'
17710 ARCH_X86_FALSE=
17711fi
17712
d4b17902
RH
17713 if test "$libitm_cv_as_avx" = yes; then
17714 ARCH_X86_AVX_TRUE=
17715 ARCH_X86_AVX_FALSE='#'
17716else
17717 ARCH_X86_AVX_TRUE='#'
17718 ARCH_X86_AVX_FALSE=
17719fi
17720
0a35513e
AH
17721 if test $enable_linux_futex = yes; then
17722 ARCH_FUTEX_TRUE=
17723 ARCH_FUTEX_FALSE='#'
17724else
17725 ARCH_FUTEX_TRUE='#'
17726 ARCH_FUTEX_FALSE=
17727fi
17728
17729
3c36aa6b
JJ
17730# Determine what GCC version number to use in filesystem paths.
17731
17732 get_gcc_base_ver="cat"
17733
17734# Check whether --with-gcc-major-version-only was given.
17735if test "${with_gcc_major_version_only+set}" = set; then :
17736 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 17737 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
17738 fi
17739
17740fi
17741
17742
17743
17744
0a35513e
AH
17745ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
17746
17747cat >confcache <<\_ACEOF
17748# This file is a shell script that caches the results of configure
17749# tests run on this system so they can be shared between configure
17750# scripts and configure runs, see configure's option --config-cache.
17751# It is not useful on other systems. If it contains results you don't
17752# want to keep, you may remove or edit it.
17753#
17754# config.status only pays attention to the cache file if you give it
17755# the --recheck option to rerun configure.
17756#
17757# `ac_cv_env_foo' variables (set or unset) will be overridden when
17758# loading this file, other *unset* `ac_cv_foo' will be assigned the
17759# following values.
17760
17761_ACEOF
17762
17763# The following way of writing the cache mishandles newlines in values,
17764# but we know of no workaround that is simple, portable, and efficient.
17765# So, we kill variables containing newlines.
17766# Ultrix sh set writes to stderr and can't be redirected directly,
17767# and sets the high bit in the cache file unless we assign to the vars.
17768(
17769 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17770 eval ac_val=\$$ac_var
17771 case $ac_val in #(
17772 *${as_nl}*)
17773 case $ac_var in #(
17774 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17775$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17776 esac
17777 case $ac_var in #(
17778 _ | IFS | as_nl) ;; #(
17779 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17780 *) { eval $ac_var=; unset $ac_var;} ;;
17781 esac ;;
17782 esac
17783 done
17784
17785 (set) 2>&1 |
17786 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17787 *${as_nl}ac_space=\ *)
17788 # `set' does not quote correctly, so add quotes: double-quote
17789 # substitution turns \\\\ into \\, and sed turns \\ into \.
17790 sed -n \
17791 "s/'/'\\\\''/g;
17792 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17793 ;; #(
17794 *)
17795 # `set' quotes correctly as required by POSIX, so do not add quotes.
17796 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17797 ;;
17798 esac |
17799 sort
17800) |
17801 sed '
17802 /^ac_cv_env_/b end
17803 t clear
17804 :clear
17805 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17806 t end
17807 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17808 :end' >>confcache
17809if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17810 if test -w "$cache_file"; then
17811 test "x$cache_file" != "x/dev/null" &&
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17813$as_echo "$as_me: updating cache $cache_file" >&6;}
17814 cat confcache >$cache_file
17815 else
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17817$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17818 fi
17819fi
17820rm -f confcache
17821
17822test "x$prefix" = xNONE && prefix=$ac_default_prefix
17823# Let make expand exec_prefix.
17824test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17825
17826DEFS=-DHAVE_CONFIG_H
17827
17828ac_libobjs=
17829ac_ltlibobjs=
17830for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17831 # 1. Remove the extension, and $U if already installed.
17832 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17833 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17834 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17835 # will be set to the directory where LIBOBJS objects are built.
17836 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17837 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17838done
17839LIBOBJS=$ac_libobjs
17840
17841LTLIBOBJS=$ac_ltlibobjs
17842
17843
17844if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17845 as_fn_error "conditional \"GENINSRC\" was never defined.
17846Usually this means the macro was only invoked conditionally." "$LINENO" 5
17847fi
17848 if test -n "$EXEEXT"; then
17849 am__EXEEXT_TRUE=
17850 am__EXEEXT_FALSE='#'
17851else
17852 am__EXEEXT_TRUE='#'
17853 am__EXEEXT_FALSE=
17854fi
17855
17856if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17857 as_fn_error "conditional \"AMDEP\" was never defined.
17858Usually this means the macro was only invoked conditionally." "$LINENO" 5
17859fi
17860if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17861 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17862Usually this means the macro was only invoked conditionally." "$LINENO" 5
17863fi
17864if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17865 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17866Usually this means the macro was only invoked conditionally." "$LINENO" 5
17867fi
17868if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17869 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
17870Usually this means the macro was only invoked conditionally." "$LINENO" 5
17871fi
17872if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17873 as_fn_error "conditional \"BUILD_INFO\" was never defined.
17874Usually this means the macro was only invoked conditionally." "$LINENO" 5
17875fi
17876if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17877 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17878Usually this means the macro was only invoked conditionally." "$LINENO" 5
17879fi
17880
9ce91011
RO
17881if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
17882 as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
17883Usually this means the macro was only invoked conditionally." "$LINENO" 5
17884fi
0a35513e
AH
17885if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
17886 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
17887Usually this means the macro was only invoked conditionally." "$LINENO" 5
17888fi
adcd36bc
RO
17889if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17890 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17891Usually this means the macro was only invoked conditionally." "$LINENO" 5
17892fi
17893if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17894 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17895Usually this means the macro was only invoked conditionally." "$LINENO" 5
17896fi
aebac0ca
RH
17897if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
17898 as_fn_error "conditional \"ARCH_ARM\" was never defined.
17899Usually this means the macro was only invoked conditionally." "$LINENO" 5
17900fi
0a35513e
AH
17901if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
17902 as_fn_error "conditional \"ARCH_X86\" was never defined.
17903Usually this means the macro was only invoked conditionally." "$LINENO" 5
17904fi
d4b17902
RH
17905if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
17906 as_fn_error "conditional \"ARCH_X86_AVX\" was never defined.
17907Usually this means the macro was only invoked conditionally." "$LINENO" 5
17908fi
0a35513e
AH
17909if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
17910 as_fn_error "conditional \"ARCH_FUTEX\" was never defined.
17911Usually this means the macro was only invoked conditionally." "$LINENO" 5
17912fi
17913
17914: ${CONFIG_STATUS=./config.status}
17915ac_write_fail=0
17916ac_clean_files_save=$ac_clean_files
17917ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17918{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17919$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17920as_write_fail=0
17921cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17922#! $SHELL
17923# Generated by $as_me.
17924# Run this file to recreate the current configuration.
17925# Compiler output produced by configure, useful for debugging
17926# configure, is in config.log if it exists.
17927
17928debug=false
17929ac_cs_recheck=false
17930ac_cs_silent=false
17931
17932SHELL=\${CONFIG_SHELL-$SHELL}
17933export SHELL
17934_ASEOF
17935cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17936## -------------------- ##
17937## M4sh Initialization. ##
17938## -------------------- ##
17939
17940# Be more Bourne compatible
17941DUALCASE=1; export DUALCASE # for MKS sh
17942if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17943 emulate sh
17944 NULLCMD=:
17945 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17946 # is contrary to our usage. Disable this feature.
17947 alias -g '${1+"$@"}'='"$@"'
17948 setopt NO_GLOB_SUBST
17949else
17950 case `(set -o) 2>/dev/null` in #(
17951 *posix*) :
17952 set -o posix ;; #(
17953 *) :
17954 ;;
17955esac
17956fi
17957
17958
17959as_nl='
17960'
17961export as_nl
17962# Printing a long string crashes Solaris 7 /usr/bin/printf.
17963as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17964as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17965as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17966# Prefer a ksh shell builtin over an external printf program on Solaris,
17967# but without wasting forks for bash or zsh.
17968if test -z "$BASH_VERSION$ZSH_VERSION" \
17969 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17970 as_echo='print -r --'
17971 as_echo_n='print -rn --'
17972elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17973 as_echo='printf %s\n'
17974 as_echo_n='printf %s'
17975else
17976 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17977 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17978 as_echo_n='/usr/ucb/echo -n'
17979 else
17980 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17981 as_echo_n_body='eval
17982 arg=$1;
17983 case $arg in #(
17984 *"$as_nl"*)
17985 expr "X$arg" : "X\\(.*\\)$as_nl";
17986 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17987 esac;
17988 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17989 '
17990 export as_echo_n_body
17991 as_echo_n='sh -c $as_echo_n_body as_echo'
17992 fi
17993 export as_echo_body
17994 as_echo='sh -c $as_echo_body as_echo'
17995fi
17996
17997# The user is always right.
17998if test "${PATH_SEPARATOR+set}" != set; then
17999 PATH_SEPARATOR=:
18000 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18001 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18002 PATH_SEPARATOR=';'
18003 }
18004fi
18005
18006
18007# IFS
18008# We need space, tab and new line, in precisely that order. Quoting is
18009# there to prevent editors from complaining about space-tab.
18010# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18011# splitting by setting IFS to empty value.)
18012IFS=" "" $as_nl"
18013
18014# Find who we are. Look in the path if we contain no directory separator.
18015case $0 in #((
18016 *[\\/]* ) as_myself=$0 ;;
18017 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18018for as_dir in $PATH
18019do
18020 IFS=$as_save_IFS
18021 test -z "$as_dir" && as_dir=.
18022 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18023 done
18024IFS=$as_save_IFS
18025
18026 ;;
18027esac
18028# We did not find ourselves, most probably we were run as `sh COMMAND'
18029# in which case we are not to be found in the path.
18030if test "x$as_myself" = x; then
18031 as_myself=$0
18032fi
18033if test ! -f "$as_myself"; then
18034 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18035 exit 1
18036fi
18037
18038# Unset variables that we do not need and which cause bugs (e.g. in
18039# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18040# suppresses any "Segmentation fault" message there. '((' could
18041# trigger a bug in pdksh 5.2.14.
18042for as_var in BASH_ENV ENV MAIL MAILPATH
18043do eval test x\${$as_var+set} = xset \
18044 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18045done
18046PS1='$ '
18047PS2='> '
18048PS4='+ '
18049
18050# NLS nuisances.
18051LC_ALL=C
18052export LC_ALL
18053LANGUAGE=C
18054export LANGUAGE
18055
18056# CDPATH.
18057(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18058
18059
18060# as_fn_error ERROR [LINENO LOG_FD]
18061# ---------------------------------
18062# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18063# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18064# script with status $?, using 1 if that was 0.
18065as_fn_error ()
18066{
18067 as_status=$?; test $as_status -eq 0 && as_status=1
18068 if test "$3"; then
18069 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18070 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18071 fi
18072 $as_echo "$as_me: error: $1" >&2
18073 as_fn_exit $as_status
18074} # as_fn_error
18075
18076
18077# as_fn_set_status STATUS
18078# -----------------------
18079# Set $? to STATUS, without forking.
18080as_fn_set_status ()
18081{
18082 return $1
18083} # as_fn_set_status
18084
18085# as_fn_exit STATUS
18086# -----------------
18087# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18088as_fn_exit ()
18089{
18090 set +e
18091 as_fn_set_status $1
18092 exit $1
18093} # as_fn_exit
18094
18095# as_fn_unset VAR
18096# ---------------
18097# Portably unset VAR.
18098as_fn_unset ()
18099{
18100 { eval $1=; unset $1;}
18101}
18102as_unset=as_fn_unset
18103# as_fn_append VAR VALUE
18104# ----------------------
18105# Append the text in VALUE to the end of the definition contained in VAR. Take
18106# advantage of any shell optimizations that allow amortized linear growth over
18107# repeated appends, instead of the typical quadratic growth present in naive
18108# implementations.
18109if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18110 eval 'as_fn_append ()
18111 {
18112 eval $1+=\$2
18113 }'
18114else
18115 as_fn_append ()
18116 {
18117 eval $1=\$$1\$2
18118 }
18119fi # as_fn_append
18120
18121# as_fn_arith ARG...
18122# ------------------
18123# Perform arithmetic evaluation on the ARGs, and store the result in the
18124# global $as_val. Take advantage of shells that can avoid forks. The arguments
18125# must be portable across $(()) and expr.
18126if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18127 eval 'as_fn_arith ()
18128 {
18129 as_val=$(( $* ))
18130 }'
18131else
18132 as_fn_arith ()
18133 {
18134 as_val=`expr "$@" || test $? -eq 1`
18135 }
18136fi # as_fn_arith
18137
18138
18139if expr a : '\(a\)' >/dev/null 2>&1 &&
18140 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18141 as_expr=expr
18142else
18143 as_expr=false
18144fi
18145
18146if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18147 as_basename=basename
18148else
18149 as_basename=false
18150fi
18151
18152if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18153 as_dirname=dirname
18154else
18155 as_dirname=false
18156fi
18157
18158as_me=`$as_basename -- "$0" ||
18159$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18160 X"$0" : 'X\(//\)$' \| \
18161 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18162$as_echo X/"$0" |
18163 sed '/^.*\/\([^/][^/]*\)\/*$/{
18164 s//\1/
18165 q
18166 }
18167 /^X\/\(\/\/\)$/{
18168 s//\1/
18169 q
18170 }
18171 /^X\/\(\/\).*/{
18172 s//\1/
18173 q
18174 }
18175 s/.*/./; q'`
18176
18177# Avoid depending upon Character Ranges.
18178as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18179as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18180as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18181as_cr_digits='0123456789'
18182as_cr_alnum=$as_cr_Letters$as_cr_digits
18183
18184ECHO_C= ECHO_N= ECHO_T=
18185case `echo -n x` in #(((((
18186-n*)
18187 case `echo 'xy\c'` in
18188 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18189 xy) ECHO_C='\c';;
18190 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18191 ECHO_T=' ';;
18192 esac;;
18193*)
18194 ECHO_N='-n';;
18195esac
18196
18197rm -f conf$$ conf$$.exe conf$$.file
18198if test -d conf$$.dir; then
18199 rm -f conf$$.dir/conf$$.file
18200else
18201 rm -f conf$$.dir
18202 mkdir conf$$.dir 2>/dev/null
18203fi
18204if (echo >conf$$.file) 2>/dev/null; then
18205 if ln -s conf$$.file conf$$ 2>/dev/null; then
18206 as_ln_s='ln -s'
18207 # ... but there are two gotchas:
18208 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18209 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18210 # In both cases, we have to default to `cp -p'.
18211 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18212 as_ln_s='cp -p'
18213 elif ln conf$$.file conf$$ 2>/dev/null; then
18214 as_ln_s=ln
18215 else
18216 as_ln_s='cp -p'
18217 fi
18218else
18219 as_ln_s='cp -p'
18220fi
18221rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18222rmdir conf$$.dir 2>/dev/null
18223
18224
18225# as_fn_mkdir_p
18226# -------------
18227# Create "$as_dir" as a directory, including parents if necessary.
18228as_fn_mkdir_p ()
18229{
18230
18231 case $as_dir in #(
18232 -*) as_dir=./$as_dir;;
18233 esac
18234 test -d "$as_dir" || eval $as_mkdir_p || {
18235 as_dirs=
18236 while :; do
18237 case $as_dir in #(
18238 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18239 *) as_qdir=$as_dir;;
18240 esac
18241 as_dirs="'$as_qdir' $as_dirs"
18242 as_dir=`$as_dirname -- "$as_dir" ||
18243$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18244 X"$as_dir" : 'X\(//\)[^/]' \| \
18245 X"$as_dir" : 'X\(//\)$' \| \
18246 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18247$as_echo X"$as_dir" |
18248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18249 s//\1/
18250 q
18251 }
18252 /^X\(\/\/\)[^/].*/{
18253 s//\1/
18254 q
18255 }
18256 /^X\(\/\/\)$/{
18257 s//\1/
18258 q
18259 }
18260 /^X\(\/\).*/{
18261 s//\1/
18262 q
18263 }
18264 s/.*/./; q'`
18265 test -d "$as_dir" && break
18266 done
18267 test -z "$as_dirs" || eval "mkdir $as_dirs"
18268 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18269
18270
18271} # as_fn_mkdir_p
18272if mkdir -p . 2>/dev/null; then
18273 as_mkdir_p='mkdir -p "$as_dir"'
18274else
18275 test -d ./-p && rmdir ./-p
18276 as_mkdir_p=false
18277fi
18278
18279if test -x / >/dev/null 2>&1; then
18280 as_test_x='test -x'
18281else
18282 if ls -dL / >/dev/null 2>&1; then
18283 as_ls_L_option=L
18284 else
18285 as_ls_L_option=
18286 fi
18287 as_test_x='
18288 eval sh -c '\''
18289 if test -d "$1"; then
18290 test -d "$1/.";
18291 else
18292 case $1 in #(
18293 -*)set "./$1";;
18294 esac;
18295 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18296 ???[sx]*):;;*)false;;esac;fi
18297 '\'' sh
18298 '
18299fi
18300as_executable_p=$as_test_x
18301
18302# Sed expression to map a string onto a valid CPP name.
18303as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18304
18305# Sed expression to map a string onto a valid variable name.
18306as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18307
18308
18309exec 6>&1
18310## ----------------------------------- ##
18311## Main body of $CONFIG_STATUS script. ##
18312## ----------------------------------- ##
18313_ASEOF
18314test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18315
18316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18317# Save the log message, to keep $0 and so on meaningful, and to
18318# report actual input values of CONFIG_FILES etc. instead of their
18319# values after options handling.
18320ac_log="
18321This file was extended by GNU TM Runtime Library $as_me 1.0, which was
18322generated by GNU Autoconf 2.64. Invocation command line was
18323
18324 CONFIG_FILES = $CONFIG_FILES
18325 CONFIG_HEADERS = $CONFIG_HEADERS
18326 CONFIG_LINKS = $CONFIG_LINKS
18327 CONFIG_COMMANDS = $CONFIG_COMMANDS
18328 $ $0 $@
18329
18330on `(hostname || uname -n) 2>/dev/null | sed 1q`
18331"
18332
18333_ACEOF
18334
18335case $ac_config_files in *"
18336"*) set x $ac_config_files; shift; ac_config_files=$*;;
18337esac
18338
18339case $ac_config_headers in *"
18340"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18341esac
18342
18343
18344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18345# Files that config.status was made for.
18346config_files="$ac_config_files"
18347config_headers="$ac_config_headers"
18348config_commands="$ac_config_commands"
18349
18350_ACEOF
18351
18352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18353ac_cs_usage="\
18354\`$as_me' instantiates files and other configuration actions
18355from templates according to the current configuration. Unless the files
18356and actions are specified as TAGs, all are instantiated by default.
18357
18358Usage: $0 [OPTION]... [TAG]...
18359
18360 -h, --help print this help, then exit
18361 -V, --version print version number and configuration settings, then exit
18362 -q, --quiet, --silent
18363 do not print progress messages
18364 -d, --debug don't remove temporary files
18365 --recheck update $as_me by reconfiguring in the same conditions
18366 --file=FILE[:TEMPLATE]
18367 instantiate the configuration file FILE
18368 --header=FILE[:TEMPLATE]
18369 instantiate the configuration header FILE
18370
18371Configuration files:
18372$config_files
18373
18374Configuration headers:
18375$config_headers
18376
18377Configuration commands:
18378$config_commands
18379
18380Report bugs to the package provider.
18381GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
18382General help using GNU software: <http://www.gnu.org/gethelp/>."
18383
18384_ACEOF
18385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18386ac_cs_version="\\
18387GNU TM Runtime Library config.status 1.0
18388configured by $0, generated by GNU Autoconf 2.64,
18389 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18390
18391Copyright (C) 2009 Free Software Foundation, Inc.
18392This config.status script is free software; the Free Software Foundation
18393gives unlimited permission to copy, distribute and modify it."
18394
18395ac_pwd='$ac_pwd'
18396srcdir='$srcdir'
18397INSTALL='$INSTALL'
18398MKDIR_P='$MKDIR_P'
18399AWK='$AWK'
18400test -n "\$AWK" || AWK=awk
18401_ACEOF
18402
18403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18404# The default lists apply if the user does not specify any file.
18405ac_need_defaults=:
18406while test $# != 0
18407do
18408 case $1 in
18409 --*=*)
18410 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18411 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18412 ac_shift=:
18413 ;;
18414 *)
18415 ac_option=$1
18416 ac_optarg=$2
18417 ac_shift=shift
18418 ;;
18419 esac
18420
18421 case $ac_option in
18422 # Handling of the options.
18423 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18424 ac_cs_recheck=: ;;
18425 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18426 $as_echo "$ac_cs_version"; exit ;;
18427 --debug | --debu | --deb | --de | --d | -d )
18428 debug=: ;;
18429 --file | --fil | --fi | --f )
18430 $ac_shift
18431 case $ac_optarg in
18432 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18433 esac
18434 as_fn_append CONFIG_FILES " '$ac_optarg'"
18435 ac_need_defaults=false;;
18436 --header | --heade | --head | --hea )
18437 $ac_shift
18438 case $ac_optarg in
18439 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18440 esac
18441 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18442 ac_need_defaults=false;;
18443 --he | --h)
18444 # Conflict between --help and --header
18445 as_fn_error "ambiguous option: \`$1'
18446Try \`$0 --help' for more information.";;
18447 --help | --hel | -h )
18448 $as_echo "$ac_cs_usage"; exit ;;
18449 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18450 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18451 ac_cs_silent=: ;;
18452
18453 # This is an error.
18454 -*) as_fn_error "unrecognized option: \`$1'
18455Try \`$0 --help' for more information." ;;
18456
18457 *) as_fn_append ac_config_targets " $1"
18458 ac_need_defaults=false ;;
18459
18460 esac
18461 shift
18462done
18463
18464ac_configure_extra_args=
18465
18466if $ac_cs_silent; then
18467 exec 6>/dev/null
18468 ac_configure_extra_args="$ac_configure_extra_args --silent"
18469fi
18470
18471_ACEOF
18472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18473if \$ac_cs_recheck; then
18474 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18475 shift
18476 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18477 CONFIG_SHELL='$SHELL'
18478 export CONFIG_SHELL
18479 exec "\$@"
18480fi
18481
18482_ACEOF
18483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18484exec 5>>config.log
18485{
18486 echo
18487 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18488## Running $as_me. ##
18489_ASBOX
18490 $as_echo "$ac_log"
18491} >&5
18492
18493_ACEOF
18494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18495#
18496# INIT-COMMANDS
18497#
18498
18499srcdir="$srcdir"
18500host="$host"
18501target="$target"
18502with_multisubdir="$with_multisubdir"
18503with_multisrctop="$with_multisrctop"
18504with_target_subdir="$with_target_subdir"
18505ac_configure_args="${multilib_arg} ${ac_configure_args}"
18506multi_basedir="$multi_basedir"
18507CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18508CC="$CC"
18509CXX="$CXX"
18510GFORTRAN="$GFORTRAN"
0a35513e
AH
18511AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18512
18513
18514# The HP-UX ksh and POSIX shell print the target directory to stdout
18515# if CDPATH is set.
18516(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18517
18518sed_quote_subst='$sed_quote_subst'
18519double_quote_subst='$double_quote_subst'
18520delay_variable_subst='$delay_variable_subst'
18521macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18522macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18523enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18524enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18525pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18526enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18527SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18528ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18529host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18530host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18531host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18532build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18533build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18534build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18535SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18536Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18537GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18538EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18539FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18540LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18541NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18542LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18543max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18544ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18545exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18546lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18547lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18548lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18549reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18550reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18551OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18552deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18553file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18554AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18555AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18556STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18557RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18558old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18559old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18560old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18561lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18562CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18563CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18564compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18565GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18566lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18567lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18568lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18569lt_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"`'
18570objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18571MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18572lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18573lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18574lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18575lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18576lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18577need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18578DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18579NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18580LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18581OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18582OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18583libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18584shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18585extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18586archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18587enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18588export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18589whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18590compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18591old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18592old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18593archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18594archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18595module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18596module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18597with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18598allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18599no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18600hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18601hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18602hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18603hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18604hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18605hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18606hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18607hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18608inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18609link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18610fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18611always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18612export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18613exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18614include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18615prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18616file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18617variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18618need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18619need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18620version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18621runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18622shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18623shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18624libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18625library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18626soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18627install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18628postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18629postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18630finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18631finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18632hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18633sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18634sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18635hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18636enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18637enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18638enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18639old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18640striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18641compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18642predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18643postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18644predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18645postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18646compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18647LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18648reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18649reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18650old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18651compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18652GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18653lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18654lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18655lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18656lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18657lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18658archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18659enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18660export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18661whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18662compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18663old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18664old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18665archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18666archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18667module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18668module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18669with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18670allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18671no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18672hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18673hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18674hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18675hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18676hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18677hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18678hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18679hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18680inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18681link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18682fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18683always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18684export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18685exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18686include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18687prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18688file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18689hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18690compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18691predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18692postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18693predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18694postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18695compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18696
18697LTCC='$LTCC'
18698LTCFLAGS='$LTCFLAGS'
18699compiler='$compiler_DEFAULT'
18700
18701# A function that is used when there is no print builtin or printf.
18702func_fallback_echo ()
18703{
18704 eval 'cat <<_LTECHO_EOF
18705\$1
18706_LTECHO_EOF'
18707}
18708
18709# Quote evaled strings.
18710for var in SHELL \
18711ECHO \
18712SED \
18713GREP \
18714EGREP \
18715FGREP \
18716LD \
18717NM \
18718LN_S \
18719lt_SP2NL \
18720lt_NL2SP \
18721reload_flag \
18722OBJDUMP \
18723deplibs_check_method \
18724file_magic_cmd \
18725AR \
18726AR_FLAGS \
18727STRIP \
18728RANLIB \
18729CC \
18730CFLAGS \
18731compiler \
18732lt_cv_sys_global_symbol_pipe \
18733lt_cv_sys_global_symbol_to_cdecl \
18734lt_cv_sys_global_symbol_to_c_name_address \
18735lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18736lt_prog_compiler_no_builtin_flag \
18737lt_prog_compiler_wl \
18738lt_prog_compiler_pic \
18739lt_prog_compiler_static \
18740lt_cv_prog_compiler_c_o \
18741need_locks \
18742DSYMUTIL \
18743NMEDIT \
18744LIPO \
18745OTOOL \
18746OTOOL64 \
18747shrext_cmds \
18748export_dynamic_flag_spec \
18749whole_archive_flag_spec \
18750compiler_needs_object \
18751with_gnu_ld \
18752allow_undefined_flag \
18753no_undefined_flag \
18754hardcode_libdir_flag_spec \
18755hardcode_libdir_flag_spec_ld \
18756hardcode_libdir_separator \
18757fix_srcfile_path \
18758exclude_expsyms \
18759include_expsyms \
18760file_list_spec \
18761variables_saved_for_relink \
18762libname_spec \
18763library_names_spec \
18764soname_spec \
18765install_override_mode \
18766finish_eval \
18767old_striplib \
18768striplib \
18769compiler_lib_search_dirs \
18770predep_objects \
18771postdep_objects \
18772predeps \
18773postdeps \
18774compiler_lib_search_path \
18775LD_CXX \
18776reload_flag_CXX \
18777compiler_CXX \
18778lt_prog_compiler_no_builtin_flag_CXX \
18779lt_prog_compiler_wl_CXX \
18780lt_prog_compiler_pic_CXX \
18781lt_prog_compiler_static_CXX \
18782lt_cv_prog_compiler_c_o_CXX \
18783export_dynamic_flag_spec_CXX \
18784whole_archive_flag_spec_CXX \
18785compiler_needs_object_CXX \
18786with_gnu_ld_CXX \
18787allow_undefined_flag_CXX \
18788no_undefined_flag_CXX \
18789hardcode_libdir_flag_spec_CXX \
18790hardcode_libdir_flag_spec_ld_CXX \
18791hardcode_libdir_separator_CXX \
18792fix_srcfile_path_CXX \
18793exclude_expsyms_CXX \
18794include_expsyms_CXX \
18795file_list_spec_CXX \
18796compiler_lib_search_dirs_CXX \
18797predep_objects_CXX \
18798postdep_objects_CXX \
18799predeps_CXX \
18800postdeps_CXX \
18801compiler_lib_search_path_CXX; do
18802 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18803 *[\\\\\\\`\\"\\\$]*)
18804 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18805 ;;
18806 *)
18807 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18808 ;;
18809 esac
18810done
18811
18812# Double-quote double-evaled strings.
18813for var in reload_cmds \
18814old_postinstall_cmds \
18815old_postuninstall_cmds \
18816old_archive_cmds \
18817extract_expsyms_cmds \
18818old_archive_from_new_cmds \
18819old_archive_from_expsyms_cmds \
18820archive_cmds \
18821archive_expsym_cmds \
18822module_cmds \
18823module_expsym_cmds \
18824export_symbols_cmds \
18825prelink_cmds \
18826postinstall_cmds \
18827postuninstall_cmds \
18828finish_cmds \
18829sys_lib_search_path_spec \
18830sys_lib_dlsearch_path_spec \
18831reload_cmds_CXX \
18832old_archive_cmds_CXX \
18833old_archive_from_new_cmds_CXX \
18834old_archive_from_expsyms_cmds_CXX \
18835archive_cmds_CXX \
18836archive_expsym_cmds_CXX \
18837module_cmds_CXX \
18838module_expsym_cmds_CXX \
18839export_symbols_cmds_CXX \
18840prelink_cmds_CXX; do
18841 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18842 *[\\\\\\\`\\"\\\$]*)
18843 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18844 ;;
18845 *)
18846 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18847 ;;
18848 esac
18849done
18850
18851ac_aux_dir='$ac_aux_dir'
18852xsi_shell='$xsi_shell'
18853lt_shell_append='$lt_shell_append'
18854
18855# See if we are running on zsh, and set the options which allow our
18856# commands through without removal of \ escapes INIT.
18857if test -n "\${ZSH_VERSION+set}" ; then
18858 setopt NO_GLOB_SUBST
18859fi
18860
18861
18862 PACKAGE='$PACKAGE'
18863 VERSION='$VERSION'
18864 TIMESTAMP='$TIMESTAMP'
18865 RM='$RM'
18866 ofile='$ofile'
18867
18868
18869
18870
18871
18872
18873GCC="$GCC"
18874CC="$CC"
18875acx_cv_header_stdint="$acx_cv_header_stdint"
18876acx_cv_type_int8_t="$acx_cv_type_int8_t"
18877acx_cv_type_int16_t="$acx_cv_type_int16_t"
18878acx_cv_type_int32_t="$acx_cv_type_int32_t"
18879acx_cv_type_int64_t="$acx_cv_type_int64_t"
18880acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18881ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18882ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18883ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18884ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18885ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18886ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18887ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18888ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18889
18890
18891_ACEOF
18892
18893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18894
18895# Handling of arguments.
18896for ac_config_target in $ac_config_targets
18897do
18898 case $ac_config_target in
18899 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18900 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18901 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18902 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18903 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18904 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18905 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18906 "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
18907
18908 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18909 esac
18910done
18911
18912
18913# If the user did not use the arguments to specify the items to instantiate,
18914# then the envvar interface is used. Set only those that are not.
18915# We use the long form for the default assignment because of an extremely
18916# bizarre bug on SunOS 4.1.3.
18917if $ac_need_defaults; then
18918 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18919 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18920 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18921fi
18922
18923# Have a temporary directory for convenience. Make it in the build tree
18924# simply because there is no reason against having it here, and in addition,
18925# creating and moving files from /tmp can sometimes cause problems.
18926# Hook for its removal unless debugging.
18927# Note that there is a small window in which the directory will not be cleaned:
18928# after its creation but before its name has been assigned to `$tmp'.
18929$debug ||
18930{
18931 tmp=
18932 trap 'exit_status=$?
18933 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18934' 0
18935 trap 'as_fn_exit 1' 1 2 13 15
18936}
18937# Create a (secure) tmp directory for tmp files.
18938
18939{
18940 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18941 test -n "$tmp" && test -d "$tmp"
18942} ||
18943{
18944 tmp=./conf$$-$RANDOM
18945 (umask 077 && mkdir "$tmp")
18946} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18947
18948# Set up the scripts for CONFIG_FILES section.
18949# No need to generate them if there are no CONFIG_FILES.
18950# This happens for instance with `./config.status config.h'.
18951if test -n "$CONFIG_FILES"; then
18952
18953
18954ac_cr=`echo X | tr X '\015'`
18955# On cygwin, bash can eat \r inside `` if the user requested igncr.
18956# But we know of no other shell where ac_cr would be empty at this
18957# point, so we can use a bashism as a fallback.
18958if test "x$ac_cr" = x; then
18959 eval ac_cr=\$\'\\r\'
18960fi
18961ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18962if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18963 ac_cs_awk_cr='\r'
18964else
18965 ac_cs_awk_cr=$ac_cr
18966fi
18967
18968echo 'BEGIN {' >"$tmp/subs1.awk" &&
18969_ACEOF
18970
18971
18972{
18973 echo "cat >conf$$subs.awk <<_ACEOF" &&
18974 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18975 echo "_ACEOF"
18976} >conf$$subs.sh ||
18977 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18978ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18979ac_delim='%!_!# '
18980for ac_last_try in false false false false false :; do
18981 . ./conf$$subs.sh ||
18982 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18983
18984 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18985 if test $ac_delim_n = $ac_delim_num; then
18986 break
18987 elif $ac_last_try; then
18988 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18989 else
18990 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18991 fi
18992done
18993rm -f conf$$subs.sh
18994
18995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18996cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18997_ACEOF
18998sed -n '
18999h
19000s/^/S["/; s/!.*/"]=/
19001p
19002g
19003s/^[^!]*!//
19004:repl
19005t repl
19006s/'"$ac_delim"'$//
19007t delim
19008:nl
19009h
19010s/\(.\{148\}\).*/\1/
19011t more1
19012s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19013p
19014n
19015b repl
19016:more1
19017s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19018p
19019g
19020s/.\{148\}//
19021t nl
19022:delim
19023h
19024s/\(.\{148\}\).*/\1/
19025t more2
19026s/["\\]/\\&/g; s/^/"/; s/$/"/
19027p
19028b
19029:more2
19030s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19031p
19032g
19033s/.\{148\}//
19034t delim
19035' <conf$$subs.awk | sed '
19036/^[^""]/{
19037 N
19038 s/\n//
19039}
19040' >>$CONFIG_STATUS || ac_write_fail=1
19041rm -f conf$$subs.awk
19042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19043_ACAWK
19044cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19045 for (key in S) S_is_set[key] = 1
19046 FS = "\a"
19047
19048}
19049{
19050 line = $ 0
19051 nfields = split(line, field, "@")
19052 substed = 0
19053 len = length(field[1])
19054 for (i = 2; i < nfields; i++) {
19055 key = field[i]
19056 keylen = length(key)
19057 if (S_is_set[key]) {
19058 value = S[key]
19059 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19060 len += length(value) + length(field[++i])
19061 substed = 1
19062 } else
19063 len += 1 + keylen
19064 }
19065
19066 print line
19067}
19068
19069_ACAWK
19070_ACEOF
19071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19072if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19073 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19074else
19075 cat
19076fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19077 || as_fn_error "could not setup config files machinery" "$LINENO" 5
19078_ACEOF
19079
19080# VPATH may cause trouble with some makes, so we remove $(srcdir),
19081# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19082# trailing colons and then remove the whole line if VPATH becomes empty
19083# (actually we leave an empty line to preserve line numbers).
19084if test "x$srcdir" = x.; then
19085 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19086s/:*\$(srcdir):*/:/
19087s/:*\${srcdir}:*/:/
19088s/:*@srcdir@:*/:/
19089s/^\([^=]*=[ ]*\):*/\1/
19090s/:*$//
19091s/^[^=]*=[ ]*$//
19092}'
19093fi
19094
19095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19096fi # test -n "$CONFIG_FILES"
19097
19098# Set up the scripts for CONFIG_HEADERS section.
19099# No need to generate them if there are no CONFIG_HEADERS.
19100# This happens for instance with `./config.status Makefile'.
19101if test -n "$CONFIG_HEADERS"; then
19102cat >"$tmp/defines.awk" <<\_ACAWK ||
19103BEGIN {
19104_ACEOF
19105
19106# Transform confdefs.h into an awk script `defines.awk', embedded as
19107# here-document in config.status, that substitutes the proper values into
19108# config.h.in to produce config.h.
19109
19110# Create a delimiter string that does not exist in confdefs.h, to ease
19111# handling of long lines.
19112ac_delim='%!_!# '
19113for ac_last_try in false false :; do
19114 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19115 if test -z "$ac_t"; then
19116 break
19117 elif $ac_last_try; then
19118 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19119 else
19120 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19121 fi
19122done
19123
19124# For the awk script, D is an array of macro values keyed by name,
19125# likewise P contains macro parameters if any. Preserve backslash
19126# newline sequences.
19127
19128ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19129sed -n '
19130s/.\{148\}/&'"$ac_delim"'/g
19131t rset
19132:rset
19133s/^[ ]*#[ ]*define[ ][ ]*/ /
19134t def
19135d
19136:def
19137s/\\$//
19138t bsnl
19139s/["\\]/\\&/g
19140s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19141D["\1"]=" \3"/p
19142s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19143d
19144:bsnl
19145s/["\\]/\\&/g
19146s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19147D["\1"]=" \3\\\\\\n"\\/p
19148t cont
19149s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19150t cont
19151d
19152:cont
19153n
19154s/.\{148\}/&'"$ac_delim"'/g
19155t clear
19156:clear
19157s/\\$//
19158t bsnlc
19159s/["\\]/\\&/g; s/^/"/; s/$/"/p
19160d
19161:bsnlc
19162s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19163b cont
19164' <confdefs.h | sed '
19165s/'"$ac_delim"'/"\\\
19166"/g' >>$CONFIG_STATUS || ac_write_fail=1
19167
19168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19169 for (key in D) D_is_set[key] = 1
19170 FS = "\a"
19171}
19172/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19173 line = \$ 0
19174 split(line, arg, " ")
19175 if (arg[1] == "#") {
19176 defundef = arg[2]
19177 mac1 = arg[3]
19178 } else {
19179 defundef = substr(arg[1], 2)
19180 mac1 = arg[2]
19181 }
19182 split(mac1, mac2, "(") #)
19183 macro = mac2[1]
19184 prefix = substr(line, 1, index(line, defundef) - 1)
19185 if (D_is_set[macro]) {
19186 # Preserve the white space surrounding the "#".
19187 print prefix "define", macro P[macro] D[macro]
19188 next
19189 } else {
19190 # Replace #undef with comments. This is necessary, for example,
19191 # in the case of _POSIX_SOURCE, which is predefined and required
19192 # on some systems where configure will not decide to define it.
19193 if (defundef == "undef") {
19194 print "/*", prefix defundef, macro, "*/"
19195 next
19196 }
19197 }
19198}
19199{ print }
19200_ACAWK
19201_ACEOF
19202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19203 as_fn_error "could not setup config headers machinery" "$LINENO" 5
19204fi # test -n "$CONFIG_HEADERS"
19205
19206
19207eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19208shift
19209for ac_tag
19210do
19211 case $ac_tag in
19212 :[FHLC]) ac_mode=$ac_tag; continue;;
19213 esac
19214 case $ac_mode$ac_tag in
19215 :[FHL]*:*);;
19216 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19217 :[FH]-) ac_tag=-:-;;
19218 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19219 esac
19220 ac_save_IFS=$IFS
19221 IFS=:
19222 set x $ac_tag
19223 IFS=$ac_save_IFS
19224 shift
19225 ac_file=$1
19226 shift
19227
19228 case $ac_mode in
19229 :L) ac_source=$1;;
19230 :[FH])
19231 ac_file_inputs=
19232 for ac_f
19233 do
19234 case $ac_f in
19235 -) ac_f="$tmp/stdin";;
19236 *) # Look for the file first in the build tree, then in the source tree
19237 # (if the path is not absolute). The absolute path cannot be DOS-style,
19238 # because $ac_f cannot contain `:'.
19239 test -f "$ac_f" ||
19240 case $ac_f in
19241 [\\/$]*) false;;
19242 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19243 esac ||
19244 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19245 esac
19246 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19247 as_fn_append ac_file_inputs " '$ac_f'"
19248 done
19249
19250 # Let's still pretend it is `configure' which instantiates (i.e., don't
19251 # use $as_me), people would be surprised to read:
19252 # /* config.h. Generated by config.status. */
19253 configure_input='Generated from '`
19254 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19255 `' by configure.'
19256 if test x"$ac_file" != x-; then
19257 configure_input="$ac_file. $configure_input"
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19259$as_echo "$as_me: creating $ac_file" >&6;}
19260 fi
19261 # Neutralize special characters interpreted by sed in replacement strings.
19262 case $configure_input in #(
19263 *\&* | *\|* | *\\* )
19264 ac_sed_conf_input=`$as_echo "$configure_input" |
19265 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19266 *) ac_sed_conf_input=$configure_input;;
19267 esac
19268
19269 case $ac_tag in
19270 *:-:* | *:-) cat >"$tmp/stdin" \
19271 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19272 esac
19273 ;;
19274 esac
19275
19276 ac_dir=`$as_dirname -- "$ac_file" ||
19277$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19278 X"$ac_file" : 'X\(//\)[^/]' \| \
19279 X"$ac_file" : 'X\(//\)$' \| \
19280 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19281$as_echo X"$ac_file" |
19282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19283 s//\1/
19284 q
19285 }
19286 /^X\(\/\/\)[^/].*/{
19287 s//\1/
19288 q
19289 }
19290 /^X\(\/\/\)$/{
19291 s//\1/
19292 q
19293 }
19294 /^X\(\/\).*/{
19295 s//\1/
19296 q
19297 }
19298 s/.*/./; q'`
19299 as_dir="$ac_dir"; as_fn_mkdir_p
19300 ac_builddir=.
19301
19302case "$ac_dir" in
19303.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19304*)
19305 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19306 # A ".." for each directory in $ac_dir_suffix.
19307 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19308 case $ac_top_builddir_sub in
19309 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19310 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19311 esac ;;
19312esac
19313ac_abs_top_builddir=$ac_pwd
19314ac_abs_builddir=$ac_pwd$ac_dir_suffix
19315# for backward compatibility:
19316ac_top_builddir=$ac_top_build_prefix
19317
19318case $srcdir in
19319 .) # We are building in place.
19320 ac_srcdir=.
19321 ac_top_srcdir=$ac_top_builddir_sub
19322 ac_abs_top_srcdir=$ac_pwd ;;
19323 [\\/]* | ?:[\\/]* ) # Absolute name.
19324 ac_srcdir=$srcdir$ac_dir_suffix;
19325 ac_top_srcdir=$srcdir
19326 ac_abs_top_srcdir=$srcdir ;;
19327 *) # Relative name.
19328 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19329 ac_top_srcdir=$ac_top_build_prefix$srcdir
19330 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19331esac
19332ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19333
19334
19335 case $ac_mode in
19336 :F)
19337 #
19338 # CONFIG_FILE
19339 #
19340
19341 case $INSTALL in
19342 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19343 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19344 esac
19345 ac_MKDIR_P=$MKDIR_P
19346 case $MKDIR_P in
19347 [\\/$]* | ?:[\\/]* ) ;;
19348 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19349 esac
19350_ACEOF
19351
19352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19353# If the template does not know about datarootdir, expand it.
19354# FIXME: This hack should be removed a few years after 2.60.
19355ac_datarootdir_hack=; ac_datarootdir_seen=
19356ac_sed_dataroot='
19357/datarootdir/ {
19358 p
19359 q
19360}
19361/@datadir@/p
19362/@docdir@/p
19363/@infodir@/p
19364/@localedir@/p
19365/@mandir@/p'
19366case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19367*datarootdir*) ac_datarootdir_seen=yes;;
19368*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19370$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19371_ACEOF
19372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19373 ac_datarootdir_hack='
19374 s&@datadir@&$datadir&g
19375 s&@docdir@&$docdir&g
19376 s&@infodir@&$infodir&g
19377 s&@localedir@&$localedir&g
19378 s&@mandir@&$mandir&g
19379 s&\\\${datarootdir}&$datarootdir&g' ;;
19380esac
19381_ACEOF
19382
19383# Neutralize VPATH when `$srcdir' = `.'.
19384# Shell code in configure.ac might set extrasub.
19385# FIXME: do we really want to maintain this feature?
19386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19387ac_sed_extra="$ac_vpsub
19388$extrasub
19389_ACEOF
19390cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19391:t
19392/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19393s|@configure_input@|$ac_sed_conf_input|;t t
19394s&@top_builddir@&$ac_top_builddir_sub&;t t
19395s&@top_build_prefix@&$ac_top_build_prefix&;t t
19396s&@srcdir@&$ac_srcdir&;t t
19397s&@abs_srcdir@&$ac_abs_srcdir&;t t
19398s&@top_srcdir@&$ac_top_srcdir&;t t
19399s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19400s&@builddir@&$ac_builddir&;t t
19401s&@abs_builddir@&$ac_abs_builddir&;t t
19402s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19403s&@INSTALL@&$ac_INSTALL&;t t
19404s&@MKDIR_P@&$ac_MKDIR_P&;t t
19405$ac_datarootdir_hack
19406"
19407eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19408 || as_fn_error "could not create $ac_file" "$LINENO" 5
19409
19410test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19411 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19412 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19414which seems to be undefined. Please make sure it is defined." >&5
19415$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19416which seems to be undefined. Please make sure it is defined." >&2;}
19417
19418 rm -f "$tmp/stdin"
19419 case $ac_file in
19420 -) cat "$tmp/out" && rm -f "$tmp/out";;
19421 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19422 esac \
19423 || as_fn_error "could not create $ac_file" "$LINENO" 5
19424 ;;
19425 :H)
19426 #
19427 # CONFIG_HEADER
19428 #
19429 if test x"$ac_file" != x-; then
19430 {
19431 $as_echo "/* $configure_input */" \
19432 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19433 } >"$tmp/config.h" \
19434 || as_fn_error "could not create $ac_file" "$LINENO" 5
19435 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19437$as_echo "$as_me: $ac_file is unchanged" >&6;}
19438 else
19439 rm -f "$ac_file"
19440 mv "$tmp/config.h" "$ac_file" \
19441 || as_fn_error "could not create $ac_file" "$LINENO" 5
19442 fi
19443 else
19444 $as_echo "/* $configure_input */" \
19445 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19446 || as_fn_error "could not create -" "$LINENO" 5
19447 fi
19448# Compute "$ac_file"'s index in $config_headers.
19449_am_arg="$ac_file"
19450_am_stamp_count=1
19451for _am_header in $config_headers :; do
19452 case $_am_header in
19453 $_am_arg | $_am_arg:* )
19454 break ;;
19455 * )
19456 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19457 esac
19458done
19459echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19460$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19461 X"$_am_arg" : 'X\(//\)[^/]' \| \
19462 X"$_am_arg" : 'X\(//\)$' \| \
19463 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19464$as_echo X"$_am_arg" |
19465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19466 s//\1/
19467 q
19468 }
19469 /^X\(\/\/\)[^/].*/{
19470 s//\1/
19471 q
19472 }
19473 /^X\(\/\/\)$/{
19474 s//\1/
19475 q
19476 }
19477 /^X\(\/\).*/{
19478 s//\1/
19479 q
19480 }
19481 s/.*/./; q'`/stamp-h$_am_stamp_count
19482 ;;
19483
19484 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19485$as_echo "$as_me: executing $ac_file commands" >&6;}
19486 ;;
19487 esac
19488
19489
19490 case $ac_file$ac_mode in
19491 "default-1":C)
19492# Only add multilib support code if we just rebuilt the top-level
19493# Makefile.
19494case " $CONFIG_FILES " in
19495 *" Makefile "*)
19496 ac_file=Makefile . ${multi_basedir}/config-ml.in
19497 ;;
19498esac ;;
19499 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19500 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19501 # are listed without --file. Let's play safe and only enable the eval
19502 # if we detect the quoting.
19503 case $CONFIG_FILES in
19504 *\'*) eval set x "$CONFIG_FILES" ;;
19505 *) set x $CONFIG_FILES ;;
19506 esac
19507 shift
19508 for mf
19509 do
19510 # Strip MF so we end up with the name of the file.
19511 mf=`echo "$mf" | sed -e 's/:.*$//'`
19512 # Check whether this is an Automake generated Makefile or not.
19513 # We used to match only the files named `Makefile.in', but
19514 # some people rename them; so instead we look at the file content.
19515 # Grep'ing the first line is not enough: some people post-process
19516 # each Makefile.in and add a new line on top of each file to say so.
19517 # Grep'ing the whole file is not good either: AIX grep has a line
19518 # limit of 2048, but all sed's we know have understand at least 4000.
19519 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19520 dirpart=`$as_dirname -- "$mf" ||
19521$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19522 X"$mf" : 'X\(//\)[^/]' \| \
19523 X"$mf" : 'X\(//\)$' \| \
19524 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19525$as_echo X"$mf" |
19526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19527 s//\1/
19528 q
19529 }
19530 /^X\(\/\/\)[^/].*/{
19531 s//\1/
19532 q
19533 }
19534 /^X\(\/\/\)$/{
19535 s//\1/
19536 q
19537 }
19538 /^X\(\/\).*/{
19539 s//\1/
19540 q
19541 }
19542 s/.*/./; q'`
19543 else
19544 continue
19545 fi
19546 # Extract the definition of DEPDIR, am__include, and am__quote
19547 # from the Makefile without running `make'.
19548 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19549 test -z "$DEPDIR" && continue
19550 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19551 test -z "am__include" && continue
19552 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19553 # When using ansi2knr, U may be empty or an underscore; expand it
19554 U=`sed -n 's/^U = //p' < "$mf"`
19555 # Find all dependency output files, they are included files with
19556 # $(DEPDIR) in their names. We invoke sed twice because it is the
19557 # simplest approach to changing $(DEPDIR) to its actual value in the
19558 # expansion.
19559 for file in `sed -n "
19560 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19561 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19562 # Make sure the directory exists.
19563 test -f "$dirpart/$file" && continue
19564 fdir=`$as_dirname -- "$file" ||
19565$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19566 X"$file" : 'X\(//\)[^/]' \| \
19567 X"$file" : 'X\(//\)$' \| \
19568 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19569$as_echo X"$file" |
19570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19571 s//\1/
19572 q
19573 }
19574 /^X\(\/\/\)[^/].*/{
19575 s//\1/
19576 q
19577 }
19578 /^X\(\/\/\)$/{
19579 s//\1/
19580 q
19581 }
19582 /^X\(\/\).*/{
19583 s//\1/
19584 q
19585 }
19586 s/.*/./; q'`
19587 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19588 # echo "creating $dirpart/$file"
19589 echo '# dummy' > "$dirpart/$file"
19590 done
19591 done
19592}
19593 ;;
19594 "libtool":C)
19595
19596 # See if we are running on zsh, and set the options which allow our
19597 # commands through without removal of \ escapes.
19598 if test -n "${ZSH_VERSION+set}" ; then
19599 setopt NO_GLOB_SUBST
19600 fi
19601
19602 cfgfile="${ofile}T"
19603 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19604 $RM "$cfgfile"
19605
19606 cat <<_LT_EOF >> "$cfgfile"
19607#! $SHELL
19608
19609# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19610# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19611# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19612# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19613#
19614# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19615# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19616# Written by Gordon Matzigkeit, 1996
19617#
19618# This file is part of GNU Libtool.
19619#
19620# GNU Libtool is free software; you can redistribute it and/or
19621# modify it under the terms of the GNU General Public License as
19622# published by the Free Software Foundation; either version 2 of
19623# the License, or (at your option) any later version.
19624#
19625# As a special exception to the GNU General Public License,
19626# if you distribute this file as part of a program or library that
19627# is built using GNU Libtool, you may include this file under the
19628# same distribution terms that you use for the rest of that program.
19629#
19630# GNU Libtool is distributed in the hope that it will be useful,
19631# but WITHOUT ANY WARRANTY; without even the implied warranty of
19632# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19633# GNU General Public License for more details.
19634#
19635# You should have received a copy of the GNU General Public License
19636# along with GNU Libtool; see the file COPYING. If not, a copy
19637# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19638# obtained by writing to the Free Software Foundation, Inc.,
19639# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19640
19641
19642# The names of the tagged configurations supported by this script.
19643available_tags="CXX "
19644
19645# ### BEGIN LIBTOOL CONFIG
19646
19647# Which release of libtool.m4 was used?
19648macro_version=$macro_version
19649macro_revision=$macro_revision
19650
19651# Whether or not to build shared libraries.
19652build_libtool_libs=$enable_shared
19653
19654# Whether or not to build static libraries.
19655build_old_libs=$enable_static
19656
19657# What type of objects to build.
19658pic_mode=$pic_mode
19659
19660# Whether or not to optimize for fast installation.
19661fast_install=$enable_fast_install
19662
19663# Shell to use when invoking shell scripts.
19664SHELL=$lt_SHELL
19665
19666# An echo program that protects backslashes.
19667ECHO=$lt_ECHO
19668
19669# The host system.
19670host_alias=$host_alias
19671host=$host
19672host_os=$host_os
19673
19674# The build system.
19675build_alias=$build_alias
19676build=$build
19677build_os=$build_os
19678
19679# A sed program that does not truncate output.
19680SED=$lt_SED
19681
19682# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19683Xsed="\$SED -e 1s/^X//"
19684
19685# A grep program that handles long lines.
19686GREP=$lt_GREP
19687
19688# An ERE matcher.
19689EGREP=$lt_EGREP
19690
19691# A literal string matcher.
19692FGREP=$lt_FGREP
19693
19694# A BSD- or MS-compatible name lister.
19695NM=$lt_NM
19696
19697# Whether we need soft or hard links.
19698LN_S=$lt_LN_S
19699
19700# What is the maximum length of a command?
19701max_cmd_len=$max_cmd_len
19702
19703# Object file suffix (normally "o").
19704objext=$ac_objext
19705
19706# Executable file suffix (normally "").
19707exeext=$exeext
19708
19709# whether the shell understands "unset".
19710lt_unset=$lt_unset
19711
19712# turn spaces into newlines.
19713SP2NL=$lt_lt_SP2NL
19714
19715# turn newlines into spaces.
19716NL2SP=$lt_lt_NL2SP
19717
19718# An object symbol dumper.
19719OBJDUMP=$lt_OBJDUMP
19720
19721# Method to check whether dependent libraries are shared objects.
19722deplibs_check_method=$lt_deplibs_check_method
19723
19724# Command to use when deplibs_check_method == "file_magic".
19725file_magic_cmd=$lt_file_magic_cmd
19726
19727# The archiver.
19728AR=$lt_AR
19729AR_FLAGS=$lt_AR_FLAGS
19730
19731# A symbol stripping program.
19732STRIP=$lt_STRIP
19733
19734# Commands used to install an old-style archive.
19735RANLIB=$lt_RANLIB
19736old_postinstall_cmds=$lt_old_postinstall_cmds
19737old_postuninstall_cmds=$lt_old_postuninstall_cmds
19738
19739# Whether to use a lock for old archive extraction.
19740lock_old_archive_extraction=$lock_old_archive_extraction
19741
19742# A C compiler.
19743LTCC=$lt_CC
19744
19745# LTCC compiler flags.
19746LTCFLAGS=$lt_CFLAGS
19747
19748# Take the output of nm and produce a listing of raw symbols and C names.
19749global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19750
19751# Transform the output of nm in a proper C declaration.
19752global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19753
19754# Transform the output of nm in a C name address pair.
19755global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19756
19757# Transform the output of nm in a C name address pair when lib prefix is needed.
19758global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19759
19760# The name of the directory that contains temporary libtool files.
19761objdir=$objdir
19762
19763# Used to examine libraries when file_magic_cmd begins with "file".
19764MAGIC_CMD=$MAGIC_CMD
19765
19766# Must we lock files when doing compilation?
19767need_locks=$lt_need_locks
19768
19769# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19770DSYMUTIL=$lt_DSYMUTIL
19771
19772# Tool to change global to local symbols on Mac OS X.
19773NMEDIT=$lt_NMEDIT
19774
19775# Tool to manipulate fat objects and archives on Mac OS X.
19776LIPO=$lt_LIPO
19777
19778# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19779OTOOL=$lt_OTOOL
19780
19781# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19782OTOOL64=$lt_OTOOL64
19783
19784# Old archive suffix (normally "a").
19785libext=$libext
19786
19787# Shared library suffix (normally ".so").
19788shrext_cmds=$lt_shrext_cmds
19789
19790# The commands to extract the exported symbol list from a shared archive.
19791extract_expsyms_cmds=$lt_extract_expsyms_cmds
19792
19793# Variables whose values should be saved in libtool wrapper scripts and
19794# restored at link time.
19795variables_saved_for_relink=$lt_variables_saved_for_relink
19796
19797# Do we need the "lib" prefix for modules?
19798need_lib_prefix=$need_lib_prefix
19799
19800# Do we need a version for libraries?
19801need_version=$need_version
19802
19803# Library versioning type.
19804version_type=$version_type
19805
19806# Shared library runtime path variable.
19807runpath_var=$runpath_var
19808
19809# Shared library path variable.
19810shlibpath_var=$shlibpath_var
19811
19812# Is shlibpath searched before the hard-coded library search path?
19813shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19814
19815# Format of library name prefix.
19816libname_spec=$lt_libname_spec
19817
19818# List of archive names. First name is the real one, the rest are links.
19819# The last name is the one that the linker finds with -lNAME
19820library_names_spec=$lt_library_names_spec
19821
19822# The coded name of the library, if different from the real name.
19823soname_spec=$lt_soname_spec
19824
19825# Permission mode override for installation of shared libraries.
19826install_override_mode=$lt_install_override_mode
19827
19828# Command to use after installation of a shared archive.
19829postinstall_cmds=$lt_postinstall_cmds
19830
19831# Command to use after uninstallation of a shared archive.
19832postuninstall_cmds=$lt_postuninstall_cmds
19833
19834# Commands used to finish a libtool library installation in a directory.
19835finish_cmds=$lt_finish_cmds
19836
19837# As "finish_cmds", except a single script fragment to be evaled but
19838# not shown.
19839finish_eval=$lt_finish_eval
19840
19841# Whether we should hardcode library paths into libraries.
19842hardcode_into_libs=$hardcode_into_libs
19843
19844# Compile-time system search path for libraries.
19845sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19846
19847# Run-time system search path for libraries.
19848sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19849
19850# Whether dlopen is supported.
19851dlopen_support=$enable_dlopen
19852
19853# Whether dlopen of programs is supported.
19854dlopen_self=$enable_dlopen_self
19855
19856# Whether dlopen of statically linked programs is supported.
19857dlopen_self_static=$enable_dlopen_self_static
19858
19859# Commands to strip libraries.
19860old_striplib=$lt_old_striplib
19861striplib=$lt_striplib
19862
19863
19864# The linker used to build libraries.
19865LD=$lt_LD
19866
19867# How to create reloadable object files.
19868reload_flag=$lt_reload_flag
19869reload_cmds=$lt_reload_cmds
19870
19871# Commands used to build an old-style archive.
19872old_archive_cmds=$lt_old_archive_cmds
19873
19874# A language specific compiler.
19875CC=$lt_compiler
19876
19877# Is the compiler the GNU compiler?
19878with_gcc=$GCC
19879
19880# Compiler flag to turn off builtin functions.
19881no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19882
19883# How to pass a linker flag through the compiler.
19884wl=$lt_lt_prog_compiler_wl
19885
19886# Additional compiler flags for building library objects.
19887pic_flag=$lt_lt_prog_compiler_pic
19888
19889# Compiler flag to prevent dynamic linking.
19890link_static_flag=$lt_lt_prog_compiler_static
19891
19892# Does compiler simultaneously support -c and -o options?
19893compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19894
19895# Whether or not to add -lc for building shared libraries.
19896build_libtool_need_lc=$archive_cmds_need_lc
19897
19898# Whether or not to disallow shared libs when runtime libs are static.
19899allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19900
19901# Compiler flag to allow reflexive dlopens.
19902export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19903
19904# Compiler flag to generate shared objects directly from archives.
19905whole_archive_flag_spec=$lt_whole_archive_flag_spec
19906
19907# Whether the compiler copes with passing no objects directly.
19908compiler_needs_object=$lt_compiler_needs_object
19909
19910# Create an old-style archive from a shared archive.
19911old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19912
19913# Create a temporary old-style archive to link instead of a shared archive.
19914old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19915
19916# Commands used to build a shared archive.
19917archive_cmds=$lt_archive_cmds
19918archive_expsym_cmds=$lt_archive_expsym_cmds
19919
19920# Commands used to build a loadable module if different from building
19921# a shared archive.
19922module_cmds=$lt_module_cmds
19923module_expsym_cmds=$lt_module_expsym_cmds
19924
19925# Whether we are building with GNU ld or not.
19926with_gnu_ld=$lt_with_gnu_ld
19927
19928# Flag that allows shared libraries with undefined symbols to be built.
19929allow_undefined_flag=$lt_allow_undefined_flag
19930
19931# Flag that enforces no undefined symbols.
19932no_undefined_flag=$lt_no_undefined_flag
19933
19934# Flag to hardcode \$libdir into a binary during linking.
19935# This must work even if \$libdir does not exist
19936hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19937
19938# If ld is used when linking, flag to hardcode \$libdir into a binary
19939# during linking. This must work even if \$libdir does not exist.
19940hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19941
19942# Whether we need a single "-rpath" flag with a separated argument.
19943hardcode_libdir_separator=$lt_hardcode_libdir_separator
19944
19945# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19946# DIR into the resulting binary.
19947hardcode_direct=$hardcode_direct
19948
19949# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19950# DIR into the resulting binary and the resulting library dependency is
19951# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19952# library is relocated.
19953hardcode_direct_absolute=$hardcode_direct_absolute
19954
19955# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19956# into the resulting binary.
19957hardcode_minus_L=$hardcode_minus_L
19958
19959# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19960# into the resulting binary.
19961hardcode_shlibpath_var=$hardcode_shlibpath_var
19962
19963# Set to "yes" if building a shared library automatically hardcodes DIR
19964# into the library and all subsequent libraries and executables linked
19965# against it.
19966hardcode_automatic=$hardcode_automatic
19967
19968# Set to yes if linker adds runtime paths of dependent libraries
19969# to runtime path list.
19970inherit_rpath=$inherit_rpath
19971
19972# Whether libtool must link a program against all its dependency libraries.
19973link_all_deplibs=$link_all_deplibs
19974
19975# Fix the shell variable \$srcfile for the compiler.
19976fix_srcfile_path=$lt_fix_srcfile_path
19977
19978# Set to "yes" if exported symbols are required.
19979always_export_symbols=$always_export_symbols
19980
19981# The commands to list exported symbols.
19982export_symbols_cmds=$lt_export_symbols_cmds
19983
19984# Symbols that should not be listed in the preloaded symbols.
19985exclude_expsyms=$lt_exclude_expsyms
19986
19987# Symbols that must always be exported.
19988include_expsyms=$lt_include_expsyms
19989
19990# Commands necessary for linking programs (against libraries) with templates.
19991prelink_cmds=$lt_prelink_cmds
19992
19993# Specify filename containing input files.
19994file_list_spec=$lt_file_list_spec
19995
19996# How to hardcode a shared library path into an executable.
19997hardcode_action=$hardcode_action
19998
19999# The directories searched by this compiler when creating a shared library.
20000compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20001
20002# Dependencies to place before and after the objects being linked to
20003# create a shared library.
20004predep_objects=$lt_predep_objects
20005postdep_objects=$lt_postdep_objects
20006predeps=$lt_predeps
20007postdeps=$lt_postdeps
20008
20009# The library search path used internally by the compiler when linking
20010# a shared library.
20011compiler_lib_search_path=$lt_compiler_lib_search_path
20012
20013# ### END LIBTOOL CONFIG
20014
20015_LT_EOF
20016
20017 case $host_os in
20018 aix3*)
20019 cat <<\_LT_EOF >> "$cfgfile"
20020# AIX sometimes has problems with the GCC collect2 program. For some
20021# reason, if we set the COLLECT_NAMES environment variable, the problems
20022# vanish in a puff of smoke.
20023if test "X${COLLECT_NAMES+set}" != Xset; then
20024 COLLECT_NAMES=
20025 export COLLECT_NAMES
20026fi
20027_LT_EOF
20028 ;;
20029 esac
20030
20031
20032ltmain="$ac_aux_dir/ltmain.sh"
20033
20034
20035 # We use sed instead of cat because bash on DJGPP gets confused if
20036 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20037 # text mode, it properly converts lines to CR/LF. This bash problem
20038 # is reportedly fixed, but why not run on old versions too?
20039 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20040 || (rm -f "$cfgfile"; exit 1)
20041
20042 case $xsi_shell in
20043 yes)
20044 cat << \_LT_EOF >> "$cfgfile"
20045
20046# func_dirname file append nondir_replacement
20047# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20048# otherwise set result to NONDIR_REPLACEMENT.
20049func_dirname ()
20050{
20051 case ${1} in
20052 */*) func_dirname_result="${1%/*}${2}" ;;
20053 * ) func_dirname_result="${3}" ;;
20054 esac
20055}
20056
20057# func_basename file
20058func_basename ()
20059{
20060 func_basename_result="${1##*/}"
20061}
20062
20063# func_dirname_and_basename file append nondir_replacement
20064# perform func_basename and func_dirname in a single function
20065# call:
20066# dirname: Compute the dirname of FILE. If nonempty,
20067# add APPEND to the result, otherwise set result
20068# to NONDIR_REPLACEMENT.
20069# value returned in "$func_dirname_result"
20070# basename: Compute filename of FILE.
20071# value retuned in "$func_basename_result"
20072# Implementation must be kept synchronized with func_dirname
20073# and func_basename. For efficiency, we do not delegate to
20074# those functions but instead duplicate the functionality here.
20075func_dirname_and_basename ()
20076{
20077 case ${1} in
20078 */*) func_dirname_result="${1%/*}${2}" ;;
20079 * ) func_dirname_result="${3}" ;;
20080 esac
20081 func_basename_result="${1##*/}"
20082}
20083
20084# func_stripname prefix suffix name
20085# strip PREFIX and SUFFIX off of NAME.
20086# PREFIX and SUFFIX must not contain globbing or regex special
20087# characters, hashes, percent signs, but SUFFIX may contain a leading
20088# dot (in which case that matches only a dot).
20089func_stripname ()
20090{
20091 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20092 # positional parameters, so assign one to ordinary parameter first.
20093 func_stripname_result=${3}
20094 func_stripname_result=${func_stripname_result#"${1}"}
20095 func_stripname_result=${func_stripname_result%"${2}"}
20096}
20097
20098# func_opt_split
20099func_opt_split ()
20100{
20101 func_opt_split_opt=${1%%=*}
20102 func_opt_split_arg=${1#*=}
20103}
20104
20105# func_lo2o object
20106func_lo2o ()
20107{
20108 case ${1} in
20109 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20110 *) func_lo2o_result=${1} ;;
20111 esac
20112}
20113
20114# func_xform libobj-or-source
20115func_xform ()
20116{
20117 func_xform_result=${1%.*}.lo
20118}
20119
20120# func_arith arithmetic-term...
20121func_arith ()
20122{
20123 func_arith_result=$(( $* ))
20124}
20125
20126# func_len string
20127# STRING may not start with a hyphen.
20128func_len ()
20129{
20130 func_len_result=${#1}
20131}
20132
20133_LT_EOF
20134 ;;
20135 *) # Bourne compatible functions.
20136 cat << \_LT_EOF >> "$cfgfile"
20137
20138# func_dirname file append nondir_replacement
20139# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20140# otherwise set result to NONDIR_REPLACEMENT.
20141func_dirname ()
20142{
20143 # Extract subdirectory from the argument.
20144 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
20145 if test "X$func_dirname_result" = "X${1}"; then
20146 func_dirname_result="${3}"
20147 else
20148 func_dirname_result="$func_dirname_result${2}"
20149 fi
20150}
20151
20152# func_basename file
20153func_basename ()
20154{
20155 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
20156}
20157
20158
20159# func_stripname prefix suffix name
20160# strip PREFIX and SUFFIX off of NAME.
20161# PREFIX and SUFFIX must not contain globbing or regex special
20162# characters, hashes, percent signs, but SUFFIX may contain a leading
20163# dot (in which case that matches only a dot).
20164# func_strip_suffix prefix name
20165func_stripname ()
20166{
20167 case ${2} in
20168 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
20169 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
20170 esac
20171}
20172
20173# sed scripts:
20174my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20175my_sed_long_arg='1s/^-[^=]*=//'
20176
20177# func_opt_split
20178func_opt_split ()
20179{
20180 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
20181 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
20182}
20183
20184# func_lo2o object
20185func_lo2o ()
20186{
20187 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
20188}
20189
20190# func_xform libobj-or-source
20191func_xform ()
20192{
20193 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
20194}
20195
20196# func_arith arithmetic-term...
20197func_arith ()
20198{
20199 func_arith_result=`expr "$@"`
20200}
20201
20202# func_len string
20203# STRING may not start with a hyphen.
20204func_len ()
20205{
20206 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20207}
20208
20209_LT_EOF
20210esac
20211
20212case $lt_shell_append in
20213 yes)
20214 cat << \_LT_EOF >> "$cfgfile"
20215
20216# func_append var value
20217# Append VALUE to the end of shell variable VAR.
20218func_append ()
20219{
20220 eval "$1+=\$2"
20221}
20222_LT_EOF
20223 ;;
20224 *)
20225 cat << \_LT_EOF >> "$cfgfile"
20226
20227# func_append var value
20228# Append VALUE to the end of shell variable VAR.
20229func_append ()
20230{
20231 eval "$1=\$$1\$2"
20232}
20233
20234_LT_EOF
20235 ;;
20236 esac
20237
20238
20239 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20240 || (rm -f "$cfgfile"; exit 1)
20241
20242 mv -f "$cfgfile" "$ofile" ||
20243 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20244 chmod +x "$ofile"
20245
20246
20247 cat <<_LT_EOF >> "$ofile"
20248
20249# ### BEGIN LIBTOOL TAG CONFIG: CXX
20250
20251# The linker used to build libraries.
20252LD=$lt_LD_CXX
20253
20254# How to create reloadable object files.
20255reload_flag=$lt_reload_flag_CXX
20256reload_cmds=$lt_reload_cmds_CXX
20257
20258# Commands used to build an old-style archive.
20259old_archive_cmds=$lt_old_archive_cmds_CXX
20260
20261# A language specific compiler.
20262CC=$lt_compiler_CXX
20263
20264# Is the compiler the GNU compiler?
20265with_gcc=$GCC_CXX
20266
20267# Compiler flag to turn off builtin functions.
20268no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20269
20270# How to pass a linker flag through the compiler.
20271wl=$lt_lt_prog_compiler_wl_CXX
20272
20273# Additional compiler flags for building library objects.
20274pic_flag=$lt_lt_prog_compiler_pic_CXX
20275
20276# Compiler flag to prevent dynamic linking.
20277link_static_flag=$lt_lt_prog_compiler_static_CXX
20278
20279# Does compiler simultaneously support -c and -o options?
20280compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20281
20282# Whether or not to add -lc for building shared libraries.
20283build_libtool_need_lc=$archive_cmds_need_lc_CXX
20284
20285# Whether or not to disallow shared libs when runtime libs are static.
20286allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20287
20288# Compiler flag to allow reflexive dlopens.
20289export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20290
20291# Compiler flag to generate shared objects directly from archives.
20292whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20293
20294# Whether the compiler copes with passing no objects directly.
20295compiler_needs_object=$lt_compiler_needs_object_CXX
20296
20297# Create an old-style archive from a shared archive.
20298old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20299
20300# Create a temporary old-style archive to link instead of a shared archive.
20301old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20302
20303# Commands used to build a shared archive.
20304archive_cmds=$lt_archive_cmds_CXX
20305archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20306
20307# Commands used to build a loadable module if different from building
20308# a shared archive.
20309module_cmds=$lt_module_cmds_CXX
20310module_expsym_cmds=$lt_module_expsym_cmds_CXX
20311
20312# Whether we are building with GNU ld or not.
20313with_gnu_ld=$lt_with_gnu_ld_CXX
20314
20315# Flag that allows shared libraries with undefined symbols to be built.
20316allow_undefined_flag=$lt_allow_undefined_flag_CXX
20317
20318# Flag that enforces no undefined symbols.
20319no_undefined_flag=$lt_no_undefined_flag_CXX
20320
20321# Flag to hardcode \$libdir into a binary during linking.
20322# This must work even if \$libdir does not exist
20323hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20324
20325# If ld is used when linking, flag to hardcode \$libdir into a binary
20326# during linking. This must work even if \$libdir does not exist.
20327hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20328
20329# Whether we need a single "-rpath" flag with a separated argument.
20330hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20331
20332# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20333# DIR into the resulting binary.
20334hardcode_direct=$hardcode_direct_CXX
20335
20336# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20337# DIR into the resulting binary and the resulting library dependency is
20338# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20339# library is relocated.
20340hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20341
20342# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20343# into the resulting binary.
20344hardcode_minus_L=$hardcode_minus_L_CXX
20345
20346# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20347# into the resulting binary.
20348hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20349
20350# Set to "yes" if building a shared library automatically hardcodes DIR
20351# into the library and all subsequent libraries and executables linked
20352# against it.
20353hardcode_automatic=$hardcode_automatic_CXX
20354
20355# Set to yes if linker adds runtime paths of dependent libraries
20356# to runtime path list.
20357inherit_rpath=$inherit_rpath_CXX
20358
20359# Whether libtool must link a program against all its dependency libraries.
20360link_all_deplibs=$link_all_deplibs_CXX
20361
20362# Fix the shell variable \$srcfile for the compiler.
20363fix_srcfile_path=$lt_fix_srcfile_path_CXX
20364
20365# Set to "yes" if exported symbols are required.
20366always_export_symbols=$always_export_symbols_CXX
20367
20368# The commands to list exported symbols.
20369export_symbols_cmds=$lt_export_symbols_cmds_CXX
20370
20371# Symbols that should not be listed in the preloaded symbols.
20372exclude_expsyms=$lt_exclude_expsyms_CXX
20373
20374# Symbols that must always be exported.
20375include_expsyms=$lt_include_expsyms_CXX
20376
20377# Commands necessary for linking programs (against libraries) with templates.
20378prelink_cmds=$lt_prelink_cmds_CXX
20379
20380# Specify filename containing input files.
20381file_list_spec=$lt_file_list_spec_CXX
20382
20383# How to hardcode a shared library path into an executable.
20384hardcode_action=$hardcode_action_CXX
20385
20386# The directories searched by this compiler when creating a shared library.
20387compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20388
20389# Dependencies to place before and after the objects being linked to
20390# create a shared library.
20391predep_objects=$lt_predep_objects_CXX
20392postdep_objects=$lt_postdep_objects_CXX
20393predeps=$lt_predeps_CXX
20394postdeps=$lt_postdeps_CXX
20395
20396# The library search path used internally by the compiler when linking
20397# a shared library.
20398compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20399
20400# ### END LIBTOOL TAG CONFIG: CXX
20401_LT_EOF
20402
20403 ;;
20404 "gstdint.h":C)
20405if test "$GCC" = yes; then
20406 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20407else
20408 echo "/* generated for $CC */" > tmp-stdint.h
20409fi
20410
20411sed 's/^ *//' >> tmp-stdint.h <<EOF
20412
20413 #ifndef GCC_GENERATED_STDINT_H
20414 #define GCC_GENERATED_STDINT_H 1
20415
20416 #include <sys/types.h>
20417EOF
20418
20419if test "$acx_cv_header_stdint" != stdint.h; then
20420 echo "#include <stddef.h>" >> tmp-stdint.h
20421fi
20422if test "$acx_cv_header_stdint" != stddef.h; then
20423 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20424fi
20425
20426sed 's/^ *//' >> tmp-stdint.h <<EOF
20427 /* glibc uses these symbols as guards to prevent redefinitions. */
20428 #ifdef __int8_t_defined
20429 #define _INT8_T
20430 #define _INT16_T
20431 #define _INT32_T
20432 #endif
20433 #ifdef __uint32_t_defined
20434 #define _UINT32_T
20435 #endif
20436
20437EOF
20438
20439# ----------------- done header, emit basic int types -------------
20440if test "$acx_cv_header_stdint" = stddef.h; then
20441 sed 's/^ *//' >> tmp-stdint.h <<EOF
20442
20443 #ifndef _UINT8_T
20444 #define _UINT8_T
20445 #ifndef __uint8_t_defined
20446 #define __uint8_t_defined
20447 #ifndef uint8_t
20448 typedef unsigned $acx_cv_type_int8_t uint8_t;
20449 #endif
20450 #endif
20451 #endif
20452
20453 #ifndef _UINT16_T
20454 #define _UINT16_T
20455 #ifndef __uint16_t_defined
20456 #define __uint16_t_defined
20457 #ifndef uint16_t
20458 typedef unsigned $acx_cv_type_int16_t uint16_t;
20459 #endif
20460 #endif
20461 #endif
20462
20463 #ifndef _UINT32_T
20464 #define _UINT32_T
20465 #ifndef __uint32_t_defined
20466 #define __uint32_t_defined
20467 #ifndef uint32_t
20468 typedef unsigned $acx_cv_type_int32_t uint32_t;
20469 #endif
20470 #endif
20471 #endif
20472
20473 #ifndef _INT8_T
20474 #define _INT8_T
20475 #ifndef __int8_t_defined
20476 #define __int8_t_defined
20477 #ifndef int8_t
20478 typedef $acx_cv_type_int8_t int8_t;
20479 #endif
20480 #endif
20481 #endif
20482
20483 #ifndef _INT16_T
20484 #define _INT16_T
20485 #ifndef __int16_t_defined
20486 #define __int16_t_defined
20487 #ifndef int16_t
20488 typedef $acx_cv_type_int16_t int16_t;
20489 #endif
20490 #endif
20491 #endif
20492
20493 #ifndef _INT32_T
20494 #define _INT32_T
20495 #ifndef __int32_t_defined
20496 #define __int32_t_defined
20497 #ifndef int32_t
20498 typedef $acx_cv_type_int32_t int32_t;
20499 #endif
20500 #endif
20501 #endif
20502EOF
20503elif test "$ac_cv_type_u_int32_t" = yes; then
20504 sed 's/^ *//' >> tmp-stdint.h <<EOF
20505
20506 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20507 #ifndef _INT8_T
20508 #define _INT8_T
20509 #endif
20510 #ifndef _INT16_T
20511 #define _INT16_T
20512 #endif
20513 #ifndef _INT32_T
20514 #define _INT32_T
20515 #endif
20516
20517 #ifndef _UINT8_T
20518 #define _UINT8_T
20519 #ifndef __uint8_t_defined
20520 #define __uint8_t_defined
20521 #ifndef uint8_t
20522 typedef u_int8_t uint8_t;
20523 #endif
20524 #endif
20525 #endif
20526
20527 #ifndef _UINT16_T
20528 #define _UINT16_T
20529 #ifndef __uint16_t_defined
20530 #define __uint16_t_defined
20531 #ifndef uint16_t
20532 typedef u_int16_t uint16_t;
20533 #endif
20534 #endif
20535 #endif
20536
20537 #ifndef _UINT32_T
20538 #define _UINT32_T
20539 #ifndef __uint32_t_defined
20540 #define __uint32_t_defined
20541 #ifndef uint32_t
20542 typedef u_int32_t uint32_t;
20543 #endif
20544 #endif
20545 #endif
20546EOF
20547else
20548 sed 's/^ *//' >> tmp-stdint.h <<EOF
20549
20550 /* Some systems have guard macros to prevent redefinitions, define them. */
20551 #ifndef _INT8_T
20552 #define _INT8_T
20553 #endif
20554 #ifndef _INT16_T
20555 #define _INT16_T
20556 #endif
20557 #ifndef _INT32_T
20558 #define _INT32_T
20559 #endif
20560 #ifndef _UINT8_T
20561 #define _UINT8_T
20562 #endif
20563 #ifndef _UINT16_T
20564 #define _UINT16_T
20565 #endif
20566 #ifndef _UINT32_T
20567 #define _UINT32_T
20568 #endif
20569EOF
20570fi
20571
20572# ------------- done basic int types, emit int64_t types ------------
20573if test "$ac_cv_type_uint64_t" = yes; then
20574 sed 's/^ *//' >> tmp-stdint.h <<EOF
20575
20576 /* system headers have good uint64_t and int64_t */
20577 #ifndef _INT64_T
20578 #define _INT64_T
20579 #endif
20580 #ifndef _UINT64_T
20581 #define _UINT64_T
20582 #endif
20583EOF
20584elif test "$ac_cv_type_u_int64_t" = yes; then
20585 sed 's/^ *//' >> tmp-stdint.h <<EOF
20586
20587 /* system headers have an u_int64_t (and int64_t) */
20588 #ifndef _INT64_T
20589 #define _INT64_T
20590 #endif
20591 #ifndef _UINT64_T
20592 #define _UINT64_T
20593 #ifndef __uint64_t_defined
20594 #define __uint64_t_defined
20595 #ifndef uint64_t
20596 typedef u_int64_t uint64_t;
20597 #endif
20598 #endif
20599 #endif
20600EOF
20601elif test -n "$acx_cv_type_int64_t"; then
20602 sed 's/^ *//' >> tmp-stdint.h <<EOF
20603
20604 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20605 #ifndef _INT64_T
20606 #define _INT64_T
20607 #ifndef int64_t
20608 typedef $acx_cv_type_int64_t int64_t;
20609 #endif
20610 #endif
20611 #ifndef _UINT64_T
20612 #define _UINT64_T
20613 #ifndef __uint64_t_defined
20614 #define __uint64_t_defined
20615 #ifndef uint64_t
20616 typedef unsigned $acx_cv_type_int64_t uint64_t;
20617 #endif
20618 #endif
20619 #endif
20620EOF
20621else
20622 sed 's/^ *//' >> tmp-stdint.h <<EOF
20623
20624 /* some common heuristics for int64_t, using compiler-specific tests */
20625 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20626 #ifndef _INT64_T
20627 #define _INT64_T
20628 #ifndef __int64_t_defined
20629 #ifndef int64_t
20630 typedef long long int64_t;
20631 #endif
20632 #endif
20633 #endif
20634 #ifndef _UINT64_T
20635 #define _UINT64_T
20636 #ifndef uint64_t
20637 typedef unsigned long long uint64_t;
20638 #endif
20639 #endif
20640
20641 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20642 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20643 does not implement __extension__. But that compiler doesn't define
20644 __GNUC_MINOR__. */
20645 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20646 # define __extension__
20647 # endif
20648
20649 # ifndef _INT64_T
20650 # define _INT64_T
20651 # ifndef int64_t
20652 __extension__ typedef long long int64_t;
20653 # endif
20654 # endif
20655 # ifndef _UINT64_T
20656 # define _UINT64_T
20657 # ifndef uint64_t
20658 __extension__ typedef unsigned long long uint64_t;
20659 # endif
20660 # endif
20661
20662 #elif !defined __STRICT_ANSI__
20663 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20664
20665 # ifndef _INT64_T
20666 # define _INT64_T
20667 # ifndef int64_t
20668 typedef __int64 int64_t;
20669 # endif
20670 # endif
20671 # ifndef _UINT64_T
20672 # define _UINT64_T
20673 # ifndef uint64_t
20674 typedef unsigned __int64 uint64_t;
20675 # endif
20676 # endif
20677 # endif /* compiler */
20678
20679 #endif /* ANSI version */
20680EOF
20681fi
20682
20683# ------------- done int64_t types, emit intptr types ------------
20684if test "$ac_cv_type_uintptr_t" != yes; then
20685 sed 's/^ *//' >> tmp-stdint.h <<EOF
20686
20687 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20688 #ifndef __uintptr_t_defined
20689 #ifndef uintptr_t
20690 typedef u$acx_cv_type_intptr_t uintptr_t;
20691 #endif
20692 #endif
20693 #ifndef __intptr_t_defined
20694 #ifndef intptr_t
20695 typedef $acx_cv_type_intptr_t intptr_t;
20696 #endif
20697 #endif
20698EOF
20699fi
20700
20701# ------------- done intptr types, emit int_least types ------------
20702if test "$ac_cv_type_int_least32_t" != yes; then
20703 sed 's/^ *//' >> tmp-stdint.h <<EOF
20704
20705 /* Define int_least types */
20706 typedef int8_t int_least8_t;
20707 typedef int16_t int_least16_t;
20708 typedef int32_t int_least32_t;
20709 #ifdef _INT64_T
20710 typedef int64_t int_least64_t;
20711 #endif
20712
20713 typedef uint8_t uint_least8_t;
20714 typedef uint16_t uint_least16_t;
20715 typedef uint32_t uint_least32_t;
20716 #ifdef _UINT64_T
20717 typedef uint64_t uint_least64_t;
20718 #endif
20719EOF
20720fi
20721
20722# ------------- done intptr types, emit int_fast types ------------
20723if test "$ac_cv_type_int_fast32_t" != yes; then
20724 sed 's/^ *//' >> tmp-stdint.h <<EOF
20725
20726 /* Define int_fast types. short is often slow */
20727 typedef int8_t int_fast8_t;
20728 typedef int int_fast16_t;
20729 typedef int32_t int_fast32_t;
20730 #ifdef _INT64_T
20731 typedef int64_t int_fast64_t;
20732 #endif
20733
20734 typedef uint8_t uint_fast8_t;
20735 typedef unsigned int uint_fast16_t;
20736 typedef uint32_t uint_fast32_t;
20737 #ifdef _UINT64_T
20738 typedef uint64_t uint_fast64_t;
20739 #endif
20740EOF
20741fi
20742
20743if test "$ac_cv_type_uintmax_t" != yes; then
20744 sed 's/^ *//' >> tmp-stdint.h <<EOF
20745
20746 /* Define intmax based on what we found */
20747 #ifndef intmax_t
20748 #ifdef _INT64_T
20749 typedef int64_t intmax_t;
20750 #else
20751 typedef long intmax_t;
20752 #endif
20753 #endif
20754 #ifndef uintmax_t
20755 #ifdef _UINT64_T
20756 typedef uint64_t uintmax_t;
20757 #else
20758 typedef unsigned long uintmax_t;
20759 #endif
20760 #endif
20761EOF
20762fi
20763
20764sed 's/^ *//' >> tmp-stdint.h <<EOF
20765
20766 #endif /* GCC_GENERATED_STDINT_H */
20767EOF
20768
20769if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20770 rm -f tmp-stdint.h
20771else
20772 mv -f tmp-stdint.h gstdint.h
20773fi
20774
20775 ;;
20776
20777 esac
20778done # for ac_tag
20779
20780
20781as_fn_exit 0
20782_ACEOF
20783ac_clean_files=$ac_clean_files_save
20784
20785test $ac_write_fail = 0 ||
20786 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20787
20788
20789# configure is writing to config.log, and then calls config.status.
20790# config.status does its own redirection, appending to config.log.
20791# Unfortunately, on DOS this fails, as config.log is still kept open
20792# by configure, so config.status won't be able to write to it; its
20793# output is simply discarded. So we exec the FD to /dev/null,
20794# effectively closing config.log, so it can be properly (re)opened and
20795# appended to by config.status. When coming back to configure, we
20796# need to make the FD available again.
20797if test "$no_create" != yes; then
20798 ac_cs_success=:
20799 ac_config_status_args=
20800 test "$silent" = yes &&
20801 ac_config_status_args="$ac_config_status_args --quiet"
20802 exec 5>/dev/null
20803 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20804 exec 5>>config.log
20805 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20806 # would make configure fail if this is the last instruction.
20807 $ac_cs_success || as_fn_exit $?
20808fi
20809if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20811$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20812fi
20813