]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/configure
2011-11-16 Paolo Carlini <paolo.carlini@oracle.com>
[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
604ARCH_FUTEX_FALSE
605ARCH_FUTEX_TRUE
d4b17902
RH
606ARCH_X86_AVX_FALSE
607ARCH_X86_AVX_TRUE
0a35513e
AH
608ARCH_X86_FALSE
609ARCH_X86_TRUE
610link_itm
611XLDFLAGS
612XCFLAGS
613config_path
614LIBITM_BUILD_VERSIONED_SHLIB_FALSE
615LIBITM_BUILD_VERSIONED_SHLIB_TRUE
616OPT_LDFLAGS
617SECTION_LDFLAGS
618libtool_VERSION
619MAINT
620MAINTAINER_MODE_FALSE
621MAINTAINER_MODE_TRUE
622enable_static
623enable_shared
624CXXCPP
625CPP
626OTOOL64
627OTOOL
628LIPO
629NMEDIT
630DSYMUTIL
631OBJDUMP
632LN_S
633ac_ct_DUMPBIN
634DUMPBIN
635LD
636FGREP
637EGREP
638GREP
639SED
640LIBTOOL
641BUILD_INFO_FALSE
642BUILD_INFO_TRUE
643PERL
644RANLIB
645NM
646AR
647am__fastdepCCAS_FALSE
648am__fastdepCCAS_TRUE
649CCASDEPMODE
650CCASFLAGS
651CCAS
652am__fastdepCXX_FALSE
653am__fastdepCXX_TRUE
654CXXDEPMODE
655ac_ct_CXX
656CXXFLAGS
657CXX
658am__fastdepCC_FALSE
659am__fastdepCC_TRUE
660CCDEPMODE
661AMDEPBACKSLASH
662AMDEP_FALSE
663AMDEP_TRUE
664am__quote
665am__include
666DEPDIR
667OBJEXT
668EXEEXT
669ac_ct_CC
670CPPFLAGS
671LDFLAGS
672CFLAGS
673CC
674toolexeclibdir
675toolexecdir
676multi_basedir
677am__untar
678am__tar
679AMTAR
680am__leading_dot
681SET_MAKE
682AWK
683mkdir_p
684MKDIR_P
685INSTALL_STRIP_PROGRAM
686STRIP
687install_sh
688MAKEINFO
689AUTOHEADER
690AUTOMAKE
691AUTOCONF
692ACLOCAL
693VERSION
694PACKAGE
695CYGPATH_W
696am__isrc
697INSTALL_DATA
698INSTALL_SCRIPT
699INSTALL_PROGRAM
700target_os
701target_vendor
702target_cpu
703target
704host_os
705host_vendor
706host_cpu
707host
708build_os
709build_vendor
710build_cpu
711build
712GENINSRC_FALSE
713GENINSRC_TRUE
714target_alias
715host_alias
716build_alias
717LIBS
718ECHO_T
719ECHO_N
720ECHO_C
721DEFS
722mandir
723localedir
724libdir
725psdir
726pdfdir
727dvidir
728htmldir
729infodir
730docdir
731oldincludedir
732includedir
733localstatedir
734sharedstatedir
735sysconfdir
736datadir
737datarootdir
738libexecdir
739sbindir
740bindir
741program_transform_name
742prefix
743exec_prefix
744PACKAGE_URL
745PACKAGE_BUGREPORT
746PACKAGE_STRING
747PACKAGE_VERSION
748PACKAGE_TARNAME
749PACKAGE_NAME
750PATH_SEPARATOR
751SHELL'
752ac_subst_files=''
753ac_user_opts='
754enable_option_checking
755enable_version_specific_runtime_libs
756enable_generated_files_in_srcdir
757enable_multilib
758enable_dependency_tracking
759enable_shared
760enable_static
761with_pic
762enable_fast_install
763with_gnu_ld
764enable_libtool_lock
765enable_maintainer_mode
766enable_linux_futex
767enable_tls
768enable_symvers
769'
770 ac_precious_vars='build_alias
771host_alias
772target_alias
773CPP
774CPPFLAGS
775CXXCPP'
776
777
778# Initialize some variables set by options.
779ac_init_help=
780ac_init_version=false
781ac_unrecognized_opts=
782ac_unrecognized_sep=
783# The variables have the same names as the options, with
784# dashes changed to underlines.
785cache_file=/dev/null
786exec_prefix=NONE
787no_create=
788no_recursion=
789prefix=NONE
790program_prefix=NONE
791program_suffix=NONE
792program_transform_name=s,x,x,
793silent=
794site=
795srcdir=
796verbose=
797x_includes=NONE
798x_libraries=NONE
799
800# Installation directory options.
801# These are left unexpanded so users can "make install exec_prefix=/foo"
802# and all the variables that are supposed to be based on exec_prefix
803# by default will actually change.
804# Use braces instead of parens because sh, perl, etc. also accept them.
805# (The list follows the same order as the GNU Coding Standards.)
806bindir='${exec_prefix}/bin'
807sbindir='${exec_prefix}/sbin'
808libexecdir='${exec_prefix}/libexec'
809datarootdir='${prefix}/share'
810datadir='${datarootdir}'
811sysconfdir='${prefix}/etc'
812sharedstatedir='${prefix}/com'
813localstatedir='${prefix}/var'
814includedir='${prefix}/include'
815oldincludedir='/usr/include'
816docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817infodir='${datarootdir}/info'
818htmldir='${docdir}'
819dvidir='${docdir}'
820pdfdir='${docdir}'
821psdir='${docdir}'
822libdir='${exec_prefix}/lib'
823localedir='${datarootdir}/locale'
824mandir='${datarootdir}/man'
825
826ac_prev=
827ac_dashdash=
828for ac_option
829do
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
833 ac_prev=
834 continue
835 fi
836
837 case $ac_option in
838 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 *) ac_optarg=yes ;;
840 esac
841
842 # Accept the important Cygnus configure options, so we can diagnose typos.
843
844 case $ac_dashdash$ac_option in
845 --)
846 ac_dashdash=yes ;;
847
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
852
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
857
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
864
865 --config-cache | -C)
866 cache_file=config.cache ;;
867
868 -datadir | --datadir | --datadi | --datad)
869 ac_prev=datadir ;;
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
872
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
879
880 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
888 *"
889"enable_$ac_useropt"
890"*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=no ;;
895
896 -docdir | --docdir | --docdi | --doc | --do)
897 ac_prev=docdir ;;
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 docdir=$ac_optarg ;;
900
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 ac_prev=dvidir ;;
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 dvidir=$ac_optarg ;;
905
906 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915"enable_$ac_useropt"
916"*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=\$ac_optarg ;;
921
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
930
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
934
935 -help | --help | --hel | --he | -h)
936 ac_init_help=long ;;
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
941
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
946
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 ac_prev=htmldir ;;
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 | --ht=*)
951 htmldir=$ac_optarg ;;
952
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
959
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 ac_prev=infodir ;;
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
964
965 -libdir | --libdir | --libdi | --libd)
966 ac_prev=libdir ;;
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 libdir=$ac_optarg ;;
969
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
976
977 -localedir | --localedir | --localedi | --localed | --locale)
978 ac_prev=localedir ;;
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
981
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
988
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 ac_prev=mandir ;;
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 mandir=$ac_optarg ;;
993
994 -nfp | --nfp | --nf)
995 # Obsolete; use --without-fp.
996 with_fp=no ;;
997
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1000 no_create=yes ;;
1001
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 no_recursion=yes ;;
1005
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1014
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 ac_prev=prefix ;;
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1019
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1026
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1033
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1050
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 ac_prev=pdfdir ;;
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1055
1056 -psdir | --psdir | --psdi | --psd | --ps)
1057 ac_prev=psdir ;;
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 psdir=$ac_optarg ;;
1060
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 silent=yes ;;
1064
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 ac_prev=sbindir ;;
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 | --sbi=* | --sb=*)
1069 sbindir=$ac_optarg ;;
1070
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1074 | --sha | --sh)
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 | --sha=* | --sh=*)
1080 sharedstatedir=$ac_optarg ;;
1081
1082 -site | --site | --sit)
1083 ac_prev=site ;;
1084 -site=* | --site=* | --sit=*)
1085 site=$ac_optarg ;;
1086
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 ac_prev=srcdir ;;
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1091
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1098
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1103
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 verbose=yes ;;
1106
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1109
1110 -with-* | --with-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1118 *"
1119"with_$ac_useropt"
1120"*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval with_$ac_useropt=\$ac_optarg ;;
1125
1126 -without-* | --without-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135"with_$ac_useropt"
1136"*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=no ;;
1141
1142 --x)
1143 # Obsolete; use --with-x.
1144 with_x=yes ;;
1145
1146 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147 | --x-incl | --x-inc | --x-in | --x-i)
1148 ac_prev=x_includes ;;
1149 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151 x_includes=$ac_optarg ;;
1152
1153 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155 ac_prev=x_libraries ;;
1156 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;;
1159
1160 -*) as_fn_error "unrecognized option: \`$ac_option'
1161Try \`$0 --help' for more information."
1162 ;;
1163
1164 *=*)
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #(
1168 '' | [0-9]* | *[!_$as_cr_alnum]* )
1169 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1170 esac
1171 eval $ac_envvar=\$ac_optarg
1172 export $ac_envvar ;;
1173
1174 *)
1175 # FIXME: should be removed in autoconf 3.0.
1176 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1180 ;;
1181
1182 esac
1183done
1184
1185if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error "missing argument to $ac_option"
1188fi
1189
1190if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1192 no) ;;
1193 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195 esac
1196fi
1197
1198# Check all directory arguments for consistency.
1199for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
1203do
1204 eval ac_val=\$$ac_var
1205 # Remove trailing slashes.
1206 case $ac_val in
1207 */ )
1208 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\$ac_val;;
1210 esac
1211 # Be sure to have absolute directory names.
1212 case $ac_val in
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 esac
1216 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1217done
1218
1219# There might be people who depend on the old broken behavior: `$host'
1220# used to hold the argument of --host etc.
1221# FIXME: To remove some day.
1222build=$build_alias
1223host=$host_alias
1224target=$target_alias
1225
1226# FIXME: To remove some day.
1227if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
1243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error "working directory cannot be determined"
1247test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error "pwd does not report name of working directory"
1249
1250
1251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$as_myself" ||
1256$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260$as_echo X"$as_myself" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
1278 srcdir=$ac_confdir
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 srcdir=..
1281 fi
1282else
1283 ac_srcdir_defaulted=no
1284fi
1285if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1288fi
1289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`(
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1292 pwd)`
1293# When building in place, set srcdir=.
1294if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 srcdir=.
1296fi
1297# Remove unnecessary trailing slashes from srcdir.
1298# Double slashes in file names in object file debugging info
1299# mess up M-x gdb in Emacs.
1300case $srcdir in
1301*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302esac
1303for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308done
1309
1310#
1311# Report the --help message.
1312#
1313if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1316 cat <<_ACEOF
1317\`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1318
1319Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322VAR=VALUE. See below for descriptions of some of the useful variables.
1323
1324Defaults for the options are specified in brackets.
1325
1326Configuration:
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336
1337Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 [PREFIX]
1342
1343By default, \`make install' will install all the files in
1344\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346for instance \`--prefix=\$HOME'.
1347
1348For better control, use the options below.
1349
1350Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1370_ACEOF
1371
1372 cat <<\_ACEOF
1373
1374Program names:
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1378
1379System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1383_ACEOF
1384fi
1385
1386if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1389 esac
1390 cat <<\_ACEOF
1391
1392Optional Features:
1393 --disable-option-checking ignore unrecognized --enable/--with options
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-version-specific-runtime-libs
1397 Specify that runtime libraries should be installed
1398 in a compiler-specific directory [default=no]
1399 --enable-generated-files-in-srcdir
1400 put copies of generated files in source dir intended
1401 for creating source tarballs for users without
1402 texinfo bison or flex. [default=no]
1403 --enable-multilib build many library versions (default)
1404 --disable-dependency-tracking speeds up one-time build
1405 --enable-dependency-tracking do not reject slow dependency extractors
1406 --enable-shared[=PKGS] build shared libraries [default=yes]
1407 --enable-static[=PKGS] build static libraries [default=yes]
1408 --enable-fast-install[=PKGS]
1409 optimize for fast installation [default=yes]
1410 --disable-libtool-lock avoid locking (might break parallel builds)
1411 --enable-maintainer-mode enable make rules and dependencies not useful
1412 (and sometimes confusing) to the casual installer
1413 --enable-linux-futex use the Linux futex system call [default=default]
1414 --enable-tls Use thread-local storage [default=yes]
1415 --enable-symvers=STYLE enables symbol versioning of the shared library
1416 [default=yes]
1417
1418Optional Packages:
1419 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1420 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1421 --with-pic try to use only PIC/non-PIC objects [default=use
1422 both]
1423 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1424
1425Some influential environment variables:
1426 CC C compiler command
1427 CFLAGS C compiler flags
1428 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1429 nonstandard directory <lib dir>
1430 LIBS libraries to pass to the linker, e.g. -l<library>
1431 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1432 you have headers in a nonstandard directory <include dir>
1433 CXX C++ compiler command
1434 CXXFLAGS C++ compiler flags
1435 CCAS assembler compiler command (defaults to CC)
1436 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1437 CPP C preprocessor
1438 CXXCPP C++ preprocessor
1439
1440Use these variables to override the choices made by `configure' or to help
1441it to find libraries and programs with nonstandard names/locations.
1442
1443Report bugs to the package provider.
1444GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1445General help using GNU software: <http://www.gnu.org/gethelp/>.
1446_ACEOF
1447ac_status=$?
1448fi
1449
1450if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455 continue
1456 ac_builddir=.
1457
1458case "$ac_dir" in
1459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460*)
1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467 esac ;;
1468esac
1469ac_abs_top_builddir=$ac_pwd
1470ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471# for backward compatibility:
1472ac_top_builddir=$ac_top_build_prefix
1473
1474case $srcdir in
1475 .) # We are building in place.
1476 ac_srcdir=.
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
1480 ac_srcdir=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1483 *) # Relative name.
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487esac
1488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1498 else
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500 fi || ac_status=$?
1501 cd "$ac_pwd" || { ac_status=$?; break; }
1502 done
1503fi
1504
1505test -n "$ac_init_help" && exit $ac_status
1506if $ac_init_version; then
1507 cat <<\_ACEOF
1508GNU TM Runtime Library configure 1.0
1509generated by GNU Autoconf 2.64
1510
1511Copyright (C) 2009 Free Software Foundation, Inc.
1512This configure script is free software; the Free Software Foundation
1513gives unlimited permission to copy, distribute and modify it.
1514_ACEOF
1515 exit
1516fi
1517
1518## ------------------------ ##
1519## Autoconf initialization. ##
1520## ------------------------ ##
1521
1522# ac_fn_c_try_compile LINENO
1523# --------------------------
1524# Try to compile conftest.$ac_ext, and return whether this succeeded.
1525ac_fn_c_try_compile ()
1526{
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1530case "(($ac_try" in
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1533esac
1534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535$as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1537 ac_status=$?
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1542 fi
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext; then :
1548 ac_retval=0
1549else
1550 $as_echo "$as_me: failed program was:" >&5
1551sed 's/^/| /' conftest.$ac_ext >&5
1552
1553 ac_retval=1
1554fi
1555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1556 return $ac_retval
1557
1558} # ac_fn_c_try_compile
1559
1560# ac_fn_cxx_try_compile LINENO
1561# ----------------------------
1562# Try to compile conftest.$ac_ext, and return whether this succeeded.
1563ac_fn_cxx_try_compile ()
1564{
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext
1567 if { { ac_try="$ac_compile"
1568case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571esac
1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573$as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1580 fi
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_cxx_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.$ac_objext; then :
1586 ac_retval=0
1587else
1588 $as_echo "$as_me: failed program was:" >&5
1589sed 's/^/| /' conftest.$ac_ext >&5
1590
1591 ac_retval=1
1592fi
1593 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1594 return $ac_retval
1595
1596} # ac_fn_cxx_try_compile
1597
1598# ac_fn_c_try_link LINENO
1599# -----------------------
1600# Try to link conftest.$ac_ext, and return whether this succeeded.
1601ac_fn_c_try_link ()
1602{
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext conftest$ac_exeext
1605 if { { ac_try="$ac_link"
1606case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609esac
1610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611$as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_link") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest$ac_exeext && {
1624 test "$cross_compiling" = yes ||
1625 $as_test_x conftest$ac_exeext
1626 }; then :
1627 ac_retval=0
1628else
1629 $as_echo "$as_me: failed program was:" >&5
1630sed 's/^/| /' conftest.$ac_ext >&5
1631
1632 ac_retval=1
1633fi
1634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1636 # interfere with the next link command; also delete a directory that is
1637 # left behind by Apple's compiler. We do this before executing the actions.
1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 return $ac_retval
1641
1642} # ac_fn_c_try_link
1643
1644# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1645# -------------------------------------------------------
1646# Tests whether HEADER exists and can be compiled using the include files in
1647# INCLUDES, setting the cache variable VAR accordingly.
1648ac_fn_c_check_header_compile ()
1649{
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652$as_echo_n "checking for $2... " >&6; }
1653if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1654 $as_echo_n "(cached) " >&6
1655else
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657/* end confdefs.h. */
1658$4
1659#include <$2>
1660_ACEOF
1661if ac_fn_c_try_compile "$LINENO"; then :
1662 eval "$3=yes"
1663else
1664 eval "$3=no"
1665fi
1666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1667fi
1668eval ac_res=\$$3
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670$as_echo "$ac_res" >&6; }
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672
1673} # ac_fn_c_check_header_compile
1674
1675# ac_fn_c_try_cpp LINENO
1676# ----------------------
1677# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1678ac_fn_c_try_cpp ()
1679{
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 if { { ac_try="$ac_cpp conftest.$ac_ext"
1682case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } >/dev/null && {
1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 }; then :
1700 ac_retval=0
1701else
1702 $as_echo "$as_me: failed program was:" >&5
1703sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1
1706fi
1707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708 return $ac_retval
1709
1710} # ac_fn_c_try_cpp
1711
1712# ac_fn_c_try_run LINENO
1713# ----------------------
1714# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1715# that executables *can* be run.
1716ac_fn_c_try_run ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_link"
1720case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>&5
1727 ac_status=$?
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1730 { { case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_try") 2>&5
1737 ac_status=$?
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; }; }; then :
1740 ac_retval=0
1741else
1742 $as_echo "$as_me: program exited with status $ac_status" >&5
1743 $as_echo "$as_me: failed program was:" >&5
1744sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=$ac_status
1747fi
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750 return $ac_retval
1751
1752} # ac_fn_c_try_run
1753
1754# ac_fn_c_check_func LINENO FUNC VAR
1755# ----------------------------------
1756# Tests whether FUNC exists, setting the cache variable VAR accordingly
1757ac_fn_c_check_func ()
1758{
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761$as_echo_n "checking for $2... " >&6; }
1762if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1763 $as_echo_n "(cached) " >&6
1764else
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h. */
1767/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1769#define $2 innocuous_$2
1770
1771/* System header to define __stub macros and hopefully few prototypes,
1772 which can conflict with char $2 (); below.
1773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1774 <limits.h> exists even on freestanding compilers. */
1775
1776#ifdef __STDC__
1777# include <limits.h>
1778#else
1779# include <assert.h>
1780#endif
1781
1782#undef $2
1783
1784/* Override any GCC internal prototype to avoid an error.
1785 Use char because int might match the return type of a GCC
1786 builtin and then its argument prototype would still apply. */
1787#ifdef __cplusplus
1788extern "C"
1789#endif
1790char $2 ();
1791/* The GNU C library defines this for functions which it implements
1792 to always fail with ENOSYS. Some functions are actually named
1793 something starting with __ and the normal name is an alias. */
1794#if defined __stub_$2 || defined __stub___$2
1795choke me
1796#endif
1797
1798int
1799main ()
1800{
1801return $2 ();
1802 ;
1803 return 0;
1804}
1805_ACEOF
1806if ac_fn_c_try_link "$LINENO"; then :
1807 eval "$3=yes"
1808else
1809 eval "$3=no"
1810fi
1811rm -f core conftest.err conftest.$ac_objext \
1812 conftest$ac_exeext conftest.$ac_ext
1813fi
1814eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816$as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818
1819} # ac_fn_c_check_func
1820
1821# ac_fn_cxx_try_cpp LINENO
1822# ------------------------
1823# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1824ac_fn_cxx_try_cpp ()
1825{
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { { ac_try="$ac_cpp conftest.$ac_ext"
1828case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831esac
1832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833$as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1840 fi
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } >/dev/null && {
1843 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1844 test ! -s conftest.err
1845 }; then :
1846 ac_retval=0
1847else
1848 $as_echo "$as_me: failed program was:" >&5
1849sed 's/^/| /' conftest.$ac_ext >&5
1850
1851 ac_retval=1
1852fi
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 return $ac_retval
1855
1856} # ac_fn_cxx_try_cpp
1857
1858# ac_fn_cxx_try_link LINENO
1859# -------------------------
1860# Try to link conftest.$ac_ext, and return whether this succeeded.
1861ac_fn_cxx_try_link ()
1862{
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 rm -f conftest.$ac_objext conftest$ac_exeext
1865 if { { ac_try="$ac_link"
1866case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869esac
1870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871$as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_link") 2>conftest.err
1873 ac_status=$?
1874 if test -s conftest.err; then
1875 grep -v '^ *+' conftest.err >conftest.er1
1876 cat conftest.er1 >&5
1877 mv -f conftest.er1 conftest.err
1878 fi
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && {
1881 test -z "$ac_cxx_werror_flag" ||
1882 test ! -s conftest.err
1883 } && test -s conftest$ac_exeext && {
1884 test "$cross_compiling" = yes ||
1885 $as_test_x conftest$ac_exeext
1886 }; then :
1887 ac_retval=0
1888else
1889 $as_echo "$as_me: failed program was:" >&5
1890sed 's/^/| /' conftest.$ac_ext >&5
1891
1892 ac_retval=1
1893fi
1894 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1895 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1896 # interfere with the next link command; also delete a directory that is
1897 # left behind by Apple's compiler. We do this before executing the actions.
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1900 return $ac_retval
1901
1902} # ac_fn_cxx_try_link
1903
1904# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1905# -------------------------------------------------------
1906# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1907# the include files in INCLUDES and setting the cache variable VAR
1908# accordingly.
1909ac_fn_c_check_header_mongrel ()
1910{
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914$as_echo_n "checking for $2... " >&6; }
1915if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1916 $as_echo_n "(cached) " >&6
1917fi
1918eval ac_res=\$$3
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920$as_echo "$ac_res" >&6; }
1921else
1922 # Is the header compilable?
1923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1924$as_echo_n "checking $2 usability... " >&6; }
1925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926/* end confdefs.h. */
1927$4
1928#include <$2>
1929_ACEOF
1930if ac_fn_c_try_compile "$LINENO"; then :
1931 ac_header_compiler=yes
1932else
1933 ac_header_compiler=no
1934fi
1935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1937$as_echo "$ac_header_compiler" >&6; }
1938
1939# Is the header present?
1940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1941$as_echo_n "checking $2 presence... " >&6; }
1942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h. */
1944#include <$2>
1945_ACEOF
1946if ac_fn_c_try_cpp "$LINENO"; then :
1947 ac_header_preproc=yes
1948else
1949 ac_header_preproc=no
1950fi
1951rm -f conftest.err conftest.$ac_ext
1952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1953$as_echo "$ac_header_preproc" >&6; }
1954
1955# So? What about this header?
1956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1957 yes:no: )
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1959$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1961$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1962 ;;
1963 no:yes:* )
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1965$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1967$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1969$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1971$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1973$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1974 ;;
1975esac
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977$as_echo_n "checking for $2... " >&6; }
1978if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1979 $as_echo_n "(cached) " >&6
1980else
1981 eval "$3=\$ac_header_compiler"
1982fi
1983eval ac_res=\$$3
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985$as_echo "$ac_res" >&6; }
1986fi
1987 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1988
1989} # ac_fn_c_check_header_mongrel
1990
1991# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1992# -------------------------------------------
1993# Tests whether TYPE exists after having included INCLUDES, setting cache
1994# variable VAR accordingly.
1995ac_fn_c_check_type ()
1996{
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999$as_echo_n "checking for $2... " >&6; }
2000if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2001 $as_echo_n "(cached) " >&6
2002else
2003 eval "$3=no"
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h. */
2006$4
2007int
2008main ()
2009{
2010if (sizeof ($2))
2011 return 0;
2012 ;
2013 return 0;
2014}
2015_ACEOF
2016if ac_fn_c_try_compile "$LINENO"; then :
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018/* end confdefs.h. */
2019$4
2020int
2021main ()
2022{
2023if (sizeof (($2)))
2024 return 0;
2025 ;
2026 return 0;
2027}
2028_ACEOF
2029if ac_fn_c_try_compile "$LINENO"; then :
2030
2031else
2032 eval "$3=yes"
2033fi
2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037fi
2038eval ac_res=\$$3
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040$as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2042
2043} # ac_fn_c_check_type
2044
2045# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2046# --------------------------------------------
2047# Tries to find the compile-time value of EXPR in a program that includes
2048# INCLUDES, setting VAR accordingly. Returns whether the value could be
2049# computed
2050ac_fn_c_compute_int ()
2051{
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 if test "$cross_compiling" = yes; then
2054 # Depending upon the size, compute the lo and hi bounds.
2055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056/* end confdefs.h. */
2057$4
2058int
2059main ()
2060{
2061static int test_array [1 - 2 * !(($2) >= 0)];
2062test_array [0] = 0
2063
2064 ;
2065 return 0;
2066}
2067_ACEOF
2068if ac_fn_c_try_compile "$LINENO"; then :
2069 ac_lo=0 ac_mid=0
2070 while :; do
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072/* end confdefs.h. */
2073$4
2074int
2075main ()
2076{
2077static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2078test_array [0] = 0
2079
2080 ;
2081 return 0;
2082}
2083_ACEOF
2084if ac_fn_c_try_compile "$LINENO"; then :
2085 ac_hi=$ac_mid; break
2086else
2087 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2088 if test $ac_lo -le $ac_mid; then
2089 ac_lo= ac_hi=
2090 break
2091 fi
2092 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2093fi
2094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 done
2096else
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098/* end confdefs.h. */
2099$4
2100int
2101main ()
2102{
2103static int test_array [1 - 2 * !(($2) < 0)];
2104test_array [0] = 0
2105
2106 ;
2107 return 0;
2108}
2109_ACEOF
2110if ac_fn_c_try_compile "$LINENO"; then :
2111 ac_hi=-1 ac_mid=-1
2112 while :; do
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h. */
2115$4
2116int
2117main ()
2118{
2119static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2120test_array [0] = 0
2121
2122 ;
2123 return 0;
2124}
2125_ACEOF
2126if ac_fn_c_try_compile "$LINENO"; then :
2127 ac_lo=$ac_mid; break
2128else
2129 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2130 if test $ac_mid -le $ac_hi; then
2131 ac_lo= ac_hi=
2132 break
2133 fi
2134 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2135fi
2136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 done
2138else
2139 ac_lo= ac_hi=
2140fi
2141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142fi
2143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144# Binary search between lo and hi bounds.
2145while test "x$ac_lo" != "x$ac_hi"; do
2146 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148/* end confdefs.h. */
2149$4
2150int
2151main ()
2152{
2153static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2154test_array [0] = 0
2155
2156 ;
2157 return 0;
2158}
2159_ACEOF
2160if ac_fn_c_try_compile "$LINENO"; then :
2161 ac_hi=$ac_mid
2162else
2163 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2164fi
2165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166done
2167case $ac_lo in #((
2168?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2169'') ac_retval=1 ;;
2170esac
2171 else
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173/* end confdefs.h. */
2174$4
2175static long int longval () { return $2; }
2176static unsigned long int ulongval () { return $2; }
2177#include <stdio.h>
2178#include <stdlib.h>
2179int
2180main ()
2181{
2182
2183 FILE *f = fopen ("conftest.val", "w");
2184 if (! f)
2185 return 1;
2186 if (($2) < 0)
2187 {
2188 long int i = longval ();
2189 if (i != ($2))
2190 return 1;
2191 fprintf (f, "%ld", i);
2192 }
2193 else
2194 {
2195 unsigned long int i = ulongval ();
2196 if (i != ($2))
2197 return 1;
2198 fprintf (f, "%lu", i);
2199 }
2200 /* Do not output a trailing newline, as this causes \r\n confusion
2201 on some platforms. */
2202 return ferror (f) || fclose (f) != 0;
2203
2204 ;
2205 return 0;
2206}
2207_ACEOF
2208if ac_fn_c_try_run "$LINENO"; then :
2209 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2210else
2211 ac_retval=1
2212fi
2213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2214 conftest.$ac_objext conftest.beam conftest.$ac_ext
2215rm -f conftest.val
2216
2217 fi
2218 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2219 return $ac_retval
2220
2221} # ac_fn_c_compute_int
2222cat >config.log <<_ACEOF
2223This file contains any messages produced by compilers while
2224running configure, to aid debugging if configure makes a mistake.
2225
2226It was created by GNU TM Runtime Library $as_me 1.0, which was
2227generated by GNU Autoconf 2.64. Invocation command line was
2228
2229 $ $0 $@
2230
2231_ACEOF
2232exec 5>>config.log
2233{
2234cat <<_ASUNAME
2235## --------- ##
2236## Platform. ##
2237## --------- ##
2238
2239hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2240uname -m = `(uname -m) 2>/dev/null || echo unknown`
2241uname -r = `(uname -r) 2>/dev/null || echo unknown`
2242uname -s = `(uname -s) 2>/dev/null || echo unknown`
2243uname -v = `(uname -v) 2>/dev/null || echo unknown`
2244
2245/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2246/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2247
2248/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2249/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2250/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2251/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2252/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2253/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2254/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2255
2256_ASUNAME
2257
2258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259for as_dir in $PATH
2260do
2261 IFS=$as_save_IFS
2262 test -z "$as_dir" && as_dir=.
2263 $as_echo "PATH: $as_dir"
2264 done
2265IFS=$as_save_IFS
2266
2267} >&5
2268
2269cat >&5 <<_ACEOF
2270
2271
2272## ----------- ##
2273## Core tests. ##
2274## ----------- ##
2275
2276_ACEOF
2277
2278
2279# Keep a trace of the command line.
2280# Strip out --no-create and --no-recursion so they do not pile up.
2281# Strip out --silent because we don't want to record it for future runs.
2282# Also quote any args containing shell meta-characters.
2283# Make two passes to allow for proper duplicate-argument suppression.
2284ac_configure_args=
2285ac_configure_args0=
2286ac_configure_args1=
2287ac_must_keep_next=false
2288for ac_pass in 1 2
2289do
2290 for ac_arg
2291 do
2292 case $ac_arg in
2293 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2295 | -silent | --silent | --silen | --sile | --sil)
2296 continue ;;
2297 *\'*)
2298 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2299 esac
2300 case $ac_pass in
2301 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2302 2)
2303 as_fn_append ac_configure_args1 " '$ac_arg'"
2304 if test $ac_must_keep_next = true; then
2305 ac_must_keep_next=false # Got value, back to normal.
2306 else
2307 case $ac_arg in
2308 *=* | --config-cache | -C | -disable-* | --disable-* \
2309 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2310 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2311 | -with-* | --with-* | -without-* | --without-* | --x)
2312 case "$ac_configure_args0 " in
2313 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2314 esac
2315 ;;
2316 -* ) ac_must_keep_next=true ;;
2317 esac
2318 fi
2319 as_fn_append ac_configure_args " '$ac_arg'"
2320 ;;
2321 esac
2322 done
2323done
2324{ ac_configure_args0=; unset ac_configure_args0;}
2325{ ac_configure_args1=; unset ac_configure_args1;}
2326
2327# When interrupted or exit'd, cleanup temporary files, and complete
2328# config.log. We remove comments because anyway the quotes in there
2329# would cause problems or look ugly.
2330# WARNING: Use '\'' to represent an apostrophe within the trap.
2331# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2332trap 'exit_status=$?
2333 # Save into config.log some information that might help in debugging.
2334 {
2335 echo
2336
2337 cat <<\_ASBOX
2338## ---------------- ##
2339## Cache variables. ##
2340## ---------------- ##
2341_ASBOX
2342 echo
2343 # The following way of writing the cache mishandles newlines in values,
2344(
2345 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2346 eval ac_val=\$$ac_var
2347 case $ac_val in #(
2348 *${as_nl}*)
2349 case $ac_var in #(
2350 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2351$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2352 esac
2353 case $ac_var in #(
2354 _ | IFS | as_nl) ;; #(
2355 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2356 *) { eval $ac_var=; unset $ac_var;} ;;
2357 esac ;;
2358 esac
2359 done
2360 (set) 2>&1 |
2361 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2362 *${as_nl}ac_space=\ *)
2363 sed -n \
2364 "s/'\''/'\''\\\\'\'''\''/g;
2365 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2366 ;; #(
2367 *)
2368 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2369 ;;
2370 esac |
2371 sort
2372)
2373 echo
2374
2375 cat <<\_ASBOX
2376## ----------------- ##
2377## Output variables. ##
2378## ----------------- ##
2379_ASBOX
2380 echo
2381 for ac_var in $ac_subst_vars
2382 do
2383 eval ac_val=\$$ac_var
2384 case $ac_val in
2385 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2386 esac
2387 $as_echo "$ac_var='\''$ac_val'\''"
2388 done | sort
2389 echo
2390
2391 if test -n "$ac_subst_files"; then
2392 cat <<\_ASBOX
2393## ------------------- ##
2394## File substitutions. ##
2395## ------------------- ##
2396_ASBOX
2397 echo
2398 for ac_var in $ac_subst_files
2399 do
2400 eval ac_val=\$$ac_var
2401 case $ac_val in
2402 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2403 esac
2404 $as_echo "$ac_var='\''$ac_val'\''"
2405 done | sort
2406 echo
2407 fi
2408
2409 if test -s confdefs.h; then
2410 cat <<\_ASBOX
2411## ----------- ##
2412## confdefs.h. ##
2413## ----------- ##
2414_ASBOX
2415 echo
2416 cat confdefs.h
2417 echo
2418 fi
2419 test "$ac_signal" != 0 &&
2420 $as_echo "$as_me: caught signal $ac_signal"
2421 $as_echo "$as_me: exit $exit_status"
2422 } >&5
2423 rm -f core *.core core.conftest.* &&
2424 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2425 exit $exit_status
2426' 0
2427for ac_signal in 1 2 13 15; do
2428 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2429done
2430ac_signal=0
2431
2432# confdefs.h avoids OS command line length limits that DEFS can exceed.
2433rm -f -r conftest* confdefs.h
2434
2435$as_echo "/* confdefs.h */" > confdefs.h
2436
2437# Predefined preprocessor variables.
2438
2439cat >>confdefs.h <<_ACEOF
2440#define PACKAGE_NAME "$PACKAGE_NAME"
2441_ACEOF
2442
2443cat >>confdefs.h <<_ACEOF
2444#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2445_ACEOF
2446
2447cat >>confdefs.h <<_ACEOF
2448#define PACKAGE_VERSION "$PACKAGE_VERSION"
2449_ACEOF
2450
2451cat >>confdefs.h <<_ACEOF
2452#define PACKAGE_STRING "$PACKAGE_STRING"
2453_ACEOF
2454
2455cat >>confdefs.h <<_ACEOF
2456#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2457_ACEOF
2458
2459cat >>confdefs.h <<_ACEOF
2460#define PACKAGE_URL "$PACKAGE_URL"
2461_ACEOF
2462
2463
2464# Let the site file select an alternate cache file if it wants to.
2465# Prefer an explicitly selected file to automatically selected ones.
2466ac_site_file1=NONE
2467ac_site_file2=NONE
2468if test -n "$CONFIG_SITE"; then
2469 ac_site_file1=$CONFIG_SITE
2470elif test "x$prefix" != xNONE; then
2471 ac_site_file1=$prefix/share/config.site
2472 ac_site_file2=$prefix/etc/config.site
2473else
2474 ac_site_file1=$ac_default_prefix/share/config.site
2475 ac_site_file2=$ac_default_prefix/etc/config.site
2476fi
2477for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2478do
2479 test "x$ac_site_file" = xNONE && continue
2480 if test -r "$ac_site_file"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2482$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2483 sed 's/^/| /' "$ac_site_file" >&5
2484 . "$ac_site_file"
2485 fi
2486done
2487
2488if test -r "$cache_file"; then
2489 # Some versions of bash will fail to source /dev/null (special
2490 # files actually), so we avoid doing that.
2491 if test -f "$cache_file"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2493$as_echo "$as_me: loading cache $cache_file" >&6;}
2494 case $cache_file in
2495 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2496 *) . "./$cache_file";;
2497 esac
2498 fi
2499else
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2501$as_echo "$as_me: creating cache $cache_file" >&6;}
2502 >$cache_file
2503fi
2504
2505# Check that the precious variables saved in the cache have kept the same
2506# value.
2507ac_cache_corrupted=false
2508for ac_var in $ac_precious_vars; do
2509 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2510 eval ac_new_set=\$ac_env_${ac_var}_set
2511 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2512 eval ac_new_val=\$ac_env_${ac_var}_value
2513 case $ac_old_set,$ac_new_set in
2514 set,)
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2516$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2517 ac_cache_corrupted=: ;;
2518 ,set)
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2520$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2521 ac_cache_corrupted=: ;;
2522 ,);;
2523 *)
2524 if test "x$ac_old_val" != "x$ac_new_val"; then
2525 # differences in whitespace do not lead to failure.
2526 ac_old_val_w=`echo x $ac_old_val`
2527 ac_new_val_w=`echo x $ac_new_val`
2528 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2530$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2531 ac_cache_corrupted=:
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2534$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2535 eval $ac_var=\$ac_old_val
2536 fi
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2538$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2540$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2541 fi;;
2542 esac
2543 # Pass precious variables to config.status.
2544 if test "$ac_new_set" = set; then
2545 case $ac_new_val in
2546 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2547 *) ac_arg=$ac_var=$ac_new_val ;;
2548 esac
2549 case " $ac_configure_args " in
2550 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2551 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2552 esac
2553 fi
2554done
2555if $ac_cache_corrupted; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2559$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2560 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2561fi
2562## -------------------- ##
2563## Main body of script. ##
2564## -------------------- ##
2565
2566ac_ext=c
2567ac_cpp='$CPP $CPPFLAGS'
2568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570ac_compiler_gnu=$ac_cv_c_compiler_gnu
2571
2572
2573
2574
2575
2576ac_config_headers="$ac_config_headers config.h"
2577
2578
2579# -------
2580# Options
2581# -------
2582
2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2584$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2585 # Check whether --enable-version-specific-runtime-libs was given.
2586if test "${enable_version_specific_runtime_libs+set}" = set; then :
2587 enableval=$enable_version_specific_runtime_libs;
2588 case "$enableval" in
2589 yes|no) ;;
2590 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2591 esac
2592
2593else
2594 enable_version_specific_runtime_libs=no
2595fi
2596
2597
2598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2599$as_echo "$enable_version_specific_runtime_libs" >&6; }
2600
2601# We would like our source tree to be readonly. However when releases or
2602# pre-releases are generated, the flex/bison generated files as well as the
2603# various formats of manuals need to be included along with the rest of the
2604# sources. Therefore we have --enable-generated-files-in-srcdir to do
2605# just that.
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2607$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2608 # Check whether --enable-generated-files-in-srcdir was given.
2609if test "${enable_generated_files_in_srcdir+set}" = set; then :
2610 enableval=$enable_generated_files_in_srcdir;
2611 case "$enableval" in
2612 yes|no) ;;
2613 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2614 esac
2615
2616else
2617 enable_generated_files_in_srcdir=no
2618fi
2619
2620
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2622$as_echo "$enable_generated_files_in_srcdir" >&6; }
2623 if test "$enable_generated_files_in_srcdir" = yes; then
2624 GENINSRC_TRUE=
2625 GENINSRC_FALSE='#'
2626else
2627 GENINSRC_TRUE='#'
2628 GENINSRC_FALSE=
2629fi
2630
2631
2632
2633# -------
2634# -------
2635
2636# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2637#
2638# You will slowly go insane if you do not grok the following fact: when
2639# building this library, the top-level /target/ becomes the library's /host/.
2640#
2641# configure then causes --target to default to --host, exactly like any
2642# other package using autoconf. Therefore, 'target' and 'host' will
2643# always be the same. This makes sense both for native and cross compilers
2644# just think about it for a little while. :-)
2645#
2646# Also, if this library is being configured as part of a cross compiler, the
2647# top-level configure script will pass the "real" host as $with_cross_host.
2648#
2649# Do not delete or change the following two lines. For why, see
2650# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2651ac_aux_dir=
2652for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2653 for ac_t in install-sh install.sh shtool; do
2654 if test -f "$ac_dir/$ac_t"; then
2655 ac_aux_dir=$ac_dir
2656 ac_install_sh="$ac_aux_dir/$ac_t -c"
2657 break 2
2658 fi
2659 done
2660done
2661if test -z "$ac_aux_dir"; then
2662 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2663fi
2664
2665# These three variables are undocumented and unsupported,
2666# and are intended to be withdrawn in a future Autoconf release.
2667# They can cause serious problems if a builder's source tree is in a directory
2668# whose full name contains unusual characters.
2669ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2670ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2671ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2672
2673
2674# Make sure we can run config.sub.
2675$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2676 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2677
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2679$as_echo_n "checking build system type... " >&6; }
2680if test "${ac_cv_build+set}" = set; then :
2681 $as_echo_n "(cached) " >&6
2682else
2683 ac_build_alias=$build_alias
2684test "x$ac_build_alias" = x &&
2685 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2686test "x$ac_build_alias" = x &&
2687 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2688ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2689 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2690
2691fi
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2693$as_echo "$ac_cv_build" >&6; }
2694case $ac_cv_build in
2695*-*-*) ;;
2696*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2697esac
2698build=$ac_cv_build
2699ac_save_IFS=$IFS; IFS='-'
2700set x $ac_cv_build
2701shift
2702build_cpu=$1
2703build_vendor=$2
2704shift; shift
2705# Remember, the first character of IFS is used to create $*,
2706# except with old shells:
2707build_os=$*
2708IFS=$ac_save_IFS
2709case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2710
2711
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2713$as_echo_n "checking host system type... " >&6; }
2714if test "${ac_cv_host+set}" = set; then :
2715 $as_echo_n "(cached) " >&6
2716else
2717 if test "x$host_alias" = x; then
2718 ac_cv_host=$ac_cv_build
2719else
2720 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2721 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2722fi
2723
2724fi
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2726$as_echo "$ac_cv_host" >&6; }
2727case $ac_cv_host in
2728*-*-*) ;;
2729*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2730esac
2731host=$ac_cv_host
2732ac_save_IFS=$IFS; IFS='-'
2733set x $ac_cv_host
2734shift
2735host_cpu=$1
2736host_vendor=$2
2737shift; shift
2738# Remember, the first character of IFS is used to create $*,
2739# except with old shells:
2740host_os=$*
2741IFS=$ac_save_IFS
2742case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2743
2744
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2746$as_echo_n "checking target system type... " >&6; }
2747if test "${ac_cv_target+set}" = set; then :
2748 $as_echo_n "(cached) " >&6
2749else
2750 if test "x$target_alias" = x; then
2751 ac_cv_target=$ac_cv_host
2752else
2753 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2754 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2755fi
2756
2757fi
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2759$as_echo "$ac_cv_target" >&6; }
2760case $ac_cv_target in
2761*-*-*) ;;
2762*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2763esac
2764target=$ac_cv_target
2765ac_save_IFS=$IFS; IFS='-'
2766set x $ac_cv_target
2767shift
2768target_cpu=$1
2769target_vendor=$2
2770shift; shift
2771# Remember, the first character of IFS is used to create $*,
2772# except with old shells:
2773target_os=$*
2774IFS=$ac_save_IFS
2775case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2776
2777
2778# The aliases save the names the user supplied, while $host etc.
2779# will get canonicalized.
2780test -n "$target_alias" &&
2781 test "$program_prefix$program_suffix$program_transform_name" = \
2782 NONENONEs,x,x, &&
2783 program_prefix=${target_alias}-
2784
2785target_alias=${target_alias-$host_alias}
2786
2787# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2788# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2789# 1.9.0: minimum required version
2790# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2791# of other PACKAGE_* variables will, however, and there's nothing
2792# we can do about that; they come from AC_INIT).
2793# foreign: we don't follow the normal rules for GNU packages (no COPYING
2794# file in the top srcdir, etc, etc), so stop complaining.
2795# -Wall: turns on all automake warnings...
2796# -Wno-portability: ...except this one, since GNU make is required.
2797# -Wno-override: ... and this one, since we do want this in testsuite.
2798am__api_version='1.11'
2799
2800# Find a good install program. We prefer a C program (faster),
2801# so one script is as good as another. But avoid the broken or
2802# incompatible versions:
2803# SysV /etc/install, /usr/sbin/install
2804# SunOS /usr/etc/install
2805# IRIX /sbin/install
2806# AIX /bin/install
2807# AmigaOS /C/install, which installs bootblocks on floppy discs
2808# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2809# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2810# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2811# OS/2's system install, which has a completely different semantic
2812# ./install, which can be erroneously created by make from ./install.sh.
2813# Reject install programs that cannot install multiple files.
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2815$as_echo_n "checking for a BSD-compatible install... " >&6; }
2816if test -z "$INSTALL"; then
2817if test "${ac_cv_path_install+set}" = set; then :
2818 $as_echo_n "(cached) " >&6
2819else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 # Account for people who put trailing slashes in PATH elements.
2826case $as_dir/ in #((
2827 ./ | .// | /[cC]/* | \
2828 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2829 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2830 /usr/ucb/* ) ;;
2831 *)
2832 # OSF1 and SCO ODT 3.0 have their own names for install.
2833 # Don't use installbsd from OSF since it installs stuff as root
2834 # by default.
2835 for ac_prog in ginstall scoinst install; do
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2838 if test $ac_prog = install &&
2839 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2840 # AIX install. It has an incompatible calling convention.
2841 :
2842 elif test $ac_prog = install &&
2843 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2844 # program-specific install script used by HP pwplus--don't use.
2845 :
2846 else
2847 rm -rf conftest.one conftest.two conftest.dir
2848 echo one > conftest.one
2849 echo two > conftest.two
2850 mkdir conftest.dir
2851 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2852 test -s conftest.one && test -s conftest.two &&
2853 test -s conftest.dir/conftest.one &&
2854 test -s conftest.dir/conftest.two
2855 then
2856 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2857 break 3
2858 fi
2859 fi
2860 fi
2861 done
2862 done
2863 ;;
2864esac
2865
2866 done
2867IFS=$as_save_IFS
2868
2869rm -rf conftest.one conftest.two conftest.dir
2870
2871fi
2872 if test "${ac_cv_path_install+set}" = set; then
2873 INSTALL=$ac_cv_path_install
2874 else
2875 # As a last resort, use the slow shell script. Don't cache a
2876 # value for INSTALL within a source directory, because that will
2877 # break other packages using the cache if that directory is
2878 # removed, or if the value is a relative name.
2879 INSTALL=$ac_install_sh
2880 fi
2881fi
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2883$as_echo "$INSTALL" >&6; }
2884
2885# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2886# It thinks the first close brace ends the variable substitution.
2887test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2888
2889test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2890
2891test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2892
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2894$as_echo_n "checking whether build environment is sane... " >&6; }
2895# Just in case
2896sleep 1
2897echo timestamp > conftest.file
2898# Reject unsafe characters in $srcdir or the absolute working directory
2899# name. Accept space and tab only in the latter.
2900am_lf='
2901'
2902case `pwd` in
2903 *[\\\"\#\$\&\'\`$am_lf]*)
2904 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2905esac
2906case $srcdir in
2907 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2908 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2909esac
2910
2911# Do `set' in a subshell so we don't clobber the current shell's
2912# arguments. Must try -L first in case configure is actually a
2913# symlink; some systems play weird games with the mod time of symlinks
2914# (eg FreeBSD returns the mod time of the symlink's containing
2915# directory).
2916if (
2917 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2918 if test "$*" = "X"; then
2919 # -L didn't work.
2920 set X `ls -t "$srcdir/configure" conftest.file`
2921 fi
2922 rm -f conftest.file
2923 if test "$*" != "X $srcdir/configure conftest.file" \
2924 && test "$*" != "X conftest.file $srcdir/configure"; then
2925
2926 # If neither matched, then we have a broken ls. This can happen
2927 # if, for instance, CONFIG_SHELL is bash and it inherits a
2928 # broken ls alias from the environment. This has actually
2929 # happened. Such a system could not be considered "sane".
2930 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2931alias in your environment" "$LINENO" 5
2932 fi
2933
2934 test "$2" = conftest.file
2935 )
2936then
2937 # Ok.
2938 :
2939else
2940 as_fn_error "newly created file is older than distributed files!
2941Check your system clock" "$LINENO" 5
2942fi
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2944$as_echo "yes" >&6; }
2945test "$program_prefix" != NONE &&
2946 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2947# Use a double $ so make ignores it.
2948test "$program_suffix" != NONE &&
2949 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2950# Double any \ or $.
2951# By default was `s,x,x', remove it if useless.
2952ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2953program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2954
2955# expand $ac_aux_dir to an absolute path
2956am_aux_dir=`cd $ac_aux_dir && pwd`
2957
2958if test x"${MISSING+set}" != xset; then
2959 case $am_aux_dir in
2960 *\ * | *\ *)
2961 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2962 *)
2963 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2964 esac
2965fi
2966# Use eval to expand $SHELL
2967if eval "$MISSING --run true"; then
2968 am_missing_run="$MISSING --run "
2969else
2970 am_missing_run=
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2972$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2973fi
2974
2975if test x"${install_sh}" != xset; then
2976 case $am_aux_dir in
2977 *\ * | *\ *)
2978 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2979 *)
2980 install_sh="\${SHELL} $am_aux_dir/install-sh"
2981 esac
2982fi
2983
2984# Installed binaries are usually stripped using `strip' when the user
2985# run `make install-strip'. However `strip' might not be the right
2986# tool to use in cross-compilation environments, therefore Automake
2987# will honor the `STRIP' environment variable to overrule this program.
2988if test "$cross_compiling" != no; then
2989 if test -n "$ac_tool_prefix"; then
2990 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2991set dummy ${ac_tool_prefix}strip; ac_word=$2
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993$as_echo_n "checking for $ac_word... " >&6; }
2994if test "${ac_cv_prog_STRIP+set}" = set; then :
2995 $as_echo_n "(cached) " >&6
2996else
2997 if test -n "$STRIP"; then
2998 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2999else
3000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001for as_dir in $PATH
3002do
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 break 2
3010 fi
3011done
3012 done
3013IFS=$as_save_IFS
3014
3015fi
3016fi
3017STRIP=$ac_cv_prog_STRIP
3018if test -n "$STRIP"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3020$as_echo "$STRIP" >&6; }
3021else
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023$as_echo "no" >&6; }
3024fi
3025
3026
3027fi
3028if test -z "$ac_cv_prog_STRIP"; then
3029 ac_ct_STRIP=$STRIP
3030 # Extract the first word of "strip", so it can be a program name with args.
3031set dummy strip; ac_word=$2
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033$as_echo_n "checking for $ac_word... " >&6; }
3034if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3035 $as_echo_n "(cached) " >&6
3036else
3037 if test -n "$ac_ct_STRIP"; then
3038 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3039else
3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_ac_ct_STRIP="strip"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3050 fi
3051done
3052 done
3053IFS=$as_save_IFS
3054
3055fi
3056fi
3057ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3058if test -n "$ac_ct_STRIP"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3060$as_echo "$ac_ct_STRIP" >&6; }
3061else
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063$as_echo "no" >&6; }
3064fi
3065
3066 if test "x$ac_ct_STRIP" = x; then
3067 STRIP=":"
3068 else
3069 case $cross_compiling:$ac_tool_warned in
3070yes:)
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3073ac_tool_warned=yes ;;
3074esac
3075 STRIP=$ac_ct_STRIP
3076 fi
3077else
3078 STRIP="$ac_cv_prog_STRIP"
3079fi
3080
3081fi
3082INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3083
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3085$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3086if test -z "$MKDIR_P"; then
3087 if test "${ac_cv_path_mkdir+set}" = set; then :
3088 $as_echo_n "(cached) " >&6
3089else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3092do
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_prog in mkdir gmkdir; do
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3098 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3099 'mkdir (GNU coreutils) '* | \
3100 'mkdir (coreutils) '* | \
3101 'mkdir (fileutils) '4.1*)
3102 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3103 break 3;;
3104 esac
3105 done
3106 done
3107 done
3108IFS=$as_save_IFS
3109
3110fi
3111
3112 if test "${ac_cv_path_mkdir+set}" = set; then
3113 MKDIR_P="$ac_cv_path_mkdir -p"
3114 else
3115 # As a last resort, use the slow shell script. Don't cache a
3116 # value for MKDIR_P within a source directory, because that will
3117 # break other packages using the cache if that directory is
3118 # removed, or if the value is a relative name.
3119 test -d ./--version && rmdir ./--version
3120 MKDIR_P="$ac_install_sh -d"
3121 fi
3122fi
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3124$as_echo "$MKDIR_P" >&6; }
3125
3126mkdir_p="$MKDIR_P"
3127case $mkdir_p in
3128 [\\/$]* | ?:[\\/]*) ;;
3129 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3130esac
3131
3132for ac_prog in gawk mawk nawk awk
3133do
3134 # Extract the first word of "$ac_prog", so it can be a program name with args.
3135set dummy $ac_prog; ac_word=$2
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137$as_echo_n "checking for $ac_word... " >&6; }
3138if test "${ac_cv_prog_AWK+set}" = set; then :
3139 $as_echo_n "(cached) " >&6
3140else
3141 if test -n "$AWK"; then
3142 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3143else
3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH
3146do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3151 ac_cv_prog_AWK="$ac_prog"
3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 break 2
3154 fi
3155done
3156 done
3157IFS=$as_save_IFS
3158
3159fi
3160fi
3161AWK=$ac_cv_prog_AWK
3162if test -n "$AWK"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3164$as_echo "$AWK" >&6; }
3165else
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167$as_echo "no" >&6; }
3168fi
3169
3170
3171 test -n "$AWK" && break
3172done
3173
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3175$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3176set x ${MAKE-make}
3177ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3178if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3179 $as_echo_n "(cached) " >&6
3180else
3181 cat >conftest.make <<\_ACEOF
3182SHELL = /bin/sh
3183all:
3184 @echo '@@@%%%=$(MAKE)=@@@%%%'
3185_ACEOF
3186# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3187case `${MAKE-make} -f conftest.make 2>/dev/null` in
3188 *@@@%%%=?*=@@@%%%*)
3189 eval ac_cv_prog_make_${ac_make}_set=yes;;
3190 *)
3191 eval ac_cv_prog_make_${ac_make}_set=no;;
3192esac
3193rm -f conftest.make
3194fi
3195if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3197$as_echo "yes" >&6; }
3198 SET_MAKE=
3199else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201$as_echo "no" >&6; }
3202 SET_MAKE="MAKE=${MAKE-make}"
3203fi
3204
3205rm -rf .tst 2>/dev/null
3206mkdir .tst 2>/dev/null
3207if test -d .tst; then
3208 am__leading_dot=.
3209else
3210 am__leading_dot=_
3211fi
3212rmdir .tst 2>/dev/null
3213
3214if test "`cd $srcdir && pwd`" != "`pwd`"; then
3215 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3216 # is not polluted with repeated "-I."
3217 am__isrc=' -I$(srcdir)'
3218 # test to see if srcdir already configured
3219 if test -f $srcdir/config.status; then
3220 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3221 fi
3222fi
3223
3224# test whether we have cygpath
3225if test -z "$CYGPATH_W"; then
3226 if (cygpath --version) >/dev/null 2>/dev/null; then
3227 CYGPATH_W='cygpath -w'
3228 else
3229 CYGPATH_W=echo
3230 fi
3231fi
3232
3233
3234# Define the identity of the package.
3235 PACKAGE='libitm'
3236 VERSION='1.0'
3237
3238
3239cat >>confdefs.h <<_ACEOF
3240#define PACKAGE "$PACKAGE"
3241_ACEOF
3242
3243
3244cat >>confdefs.h <<_ACEOF
3245#define VERSION "$VERSION"
3246_ACEOF
3247
3248# Some tools Automake needs.
3249
3250ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3251
3252
3253AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3254
3255
3256AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3257
3258
3259AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3260
3261
3262MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3263
3264# We need awk for the "check" target. The system "awk" is bad on
3265# some platforms.
3266# Always define AMTAR for backward compatibility.
3267
3268AMTAR=${AMTAR-"${am_missing_run}tar"}
3269
3270am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3271
3272
3273
3274
3275
3276# Default to --enable-multilib
3277# Check whether --enable-multilib was given.
3278if test "${enable_multilib+set}" = set; then :
3279 enableval=$enable_multilib; case "$enableval" in
3280 yes) multilib=yes ;;
3281 no) multilib=no ;;
3282 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3283 esac
3284else
3285 multilib=yes
3286fi
3287
3288
3289# We may get other options which we leave undocumented:
3290# --with-target-subdir, --with-multisrctop, --with-multisubdir
3291# See config-ml.in if you want the gory details.
3292
3293if test "$srcdir" = "."; then
3294 if test "$with_target_subdir" != "."; then
3295 multi_basedir="$srcdir/$with_multisrctop../.."
3296 else
3297 multi_basedir="$srcdir/$with_multisrctop.."
3298 fi
3299else
3300 multi_basedir="$srcdir/.."
3301fi
3302
3303
3304# Even if the default multilib is not a cross compilation,
3305# it may be that some of the other multilibs are.
3306if test $cross_compiling = no && test $multilib = yes \
3307 && test "x${with_multisubdir}" != x ; then
3308 cross_compiling=maybe
3309fi
3310
3311ac_config_commands="$ac_config_commands default-1"
3312
3313
3314# Calculate toolexeclibdir
3315# Also toolexecdir, though it's only used in toolexeclibdir
3316case ${enable_version_specific_runtime_libs} in
3317 yes)
3318 # Need the gcc compiler version to know where to install libraries
3319 # and header files if --enable-version-specific-runtime-libs option
3320 # is selected.
3321 toolexecdir='$(libdir)/gcc/$(target_alias)'
3322 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3323 ;;
3324 no)
3325 if test -n "$with_cross_host" &&
3326 test x"$with_cross_host" != x"no"; then
3327 # Install a library built with a cross compiler in tooldir, not libdir.
3328 toolexecdir='$(exec_prefix)/$(target_alias)'
3329 toolexeclibdir='$(toolexecdir)/lib'
3330 else
3331 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3332 toolexeclibdir='$(libdir)'
3333 fi
3334 multi_os_directory=`$CC -print-multi-os-directory`
3335 case $multi_os_directory in
3336 .) ;; # Avoid trailing /.
3337 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3338 esac
3339 ;;
3340esac
3341
3342
3343
3344# Check the compiler.
3345# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3346# We must force CC to /not/ be precious variables; otherwise
3347# the wrong, non-multilib-adjusted value will be used in multilibs.
3348# As a side effect, we have to subst CFLAGS ourselves.
3349
3350
3351
3352ac_ext=c
3353ac_cpp='$CPP $CPPFLAGS'
3354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357if test -n "$ac_tool_prefix"; then
3358 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3359set dummy ${ac_tool_prefix}gcc; ac_word=$2
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361$as_echo_n "checking for $ac_word... " >&6; }
3362if test "${ac_cv_prog_CC+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3364else
3365 if test -n "$CC"; then
3366 ac_cv_prog_CC="$CC" # Let the user override the test.
3367else
3368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369for as_dir in $PATH
3370do
3371 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 break 2
3378 fi
3379done
3380 done
3381IFS=$as_save_IFS
3382
3383fi
3384fi
3385CC=$ac_cv_prog_CC
3386if test -n "$CC"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3388$as_echo "$CC" >&6; }
3389else
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391$as_echo "no" >&6; }
3392fi
3393
3394
3395fi
3396if test -z "$ac_cv_prog_CC"; then
3397 ac_ct_CC=$CC
3398 # Extract the first word of "gcc", so it can be a program name with args.
3399set dummy gcc; ac_word=$2
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401$as_echo_n "checking for $ac_word... " >&6; }
3402if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3403 $as_echo_n "(cached) " >&6
3404else
3405 if test -n "$ac_ct_CC"; then
3406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3407else
3408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409for as_dir in $PATH
3410do
3411 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 ac_cv_prog_ac_ct_CC="gcc"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2
3418 fi
3419done
3420 done
3421IFS=$as_save_IFS
3422
3423fi
3424fi
3425ac_ct_CC=$ac_cv_prog_ac_ct_CC
3426if test -n "$ac_ct_CC"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3428$as_echo "$ac_ct_CC" >&6; }
3429else
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431$as_echo "no" >&6; }
3432fi
3433
3434 if test "x$ac_ct_CC" = x; then
3435 CC=""
3436 else
3437 case $cross_compiling:$ac_tool_warned in
3438yes:)
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3441ac_tool_warned=yes ;;
3442esac
3443 CC=$ac_ct_CC
3444 fi
3445else
3446 CC="$ac_cv_prog_CC"
3447fi
3448
3449if test -z "$CC"; then
3450 if test -n "$ac_tool_prefix"; then
3451 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3452set dummy ${ac_tool_prefix}cc; ac_word=$2
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454$as_echo_n "checking for $ac_word... " >&6; }
3455if test "${ac_cv_prog_CC+set}" = set; then :
3456 $as_echo_n "(cached) " >&6
3457else
3458 if test -n "$CC"; then
3459 ac_cv_prog_CC="$CC" # Let the user override the test.
3460else
3461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462for as_dir in $PATH
3463do
3464 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468 ac_cv_prog_CC="${ac_tool_prefix}cc"
3469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 break 2
3471 fi
3472done
3473 done
3474IFS=$as_save_IFS
3475
3476fi
3477fi
3478CC=$ac_cv_prog_CC
3479if test -n "$CC"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3481$as_echo "$CC" >&6; }
3482else
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484$as_echo "no" >&6; }
3485fi
3486
3487
3488 fi
3489fi
3490if test -z "$CC"; then
3491 # Extract the first word of "cc", so it can be a program name with args.
3492set dummy cc; ac_word=$2
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494$as_echo_n "checking for $ac_word... " >&6; }
3495if test "${ac_cv_prog_CC+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3497else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500else
3501 ac_prog_rejected=no
3502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503for as_dir in $PATH
3504do
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3510 ac_prog_rejected=yes
3511 continue
3512 fi
3513 ac_cv_prog_CC="cc"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3516 fi
3517done
3518 done
3519IFS=$as_save_IFS
3520
3521if test $ac_prog_rejected = yes; then
3522 # We found a bogon in the path, so make sure we never use it.
3523 set dummy $ac_cv_prog_CC
3524 shift
3525 if test $# != 0; then
3526 # We chose a different compiler from the bogus one.
3527 # However, it has the same basename, so the bogon will be chosen
3528 # first if we set CC to just the basename; use the full file name.
3529 shift
3530 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3531 fi
3532fi
3533fi
3534fi
3535CC=$ac_cv_prog_CC
3536if test -n "$CC"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538$as_echo "$CC" >&6; }
3539else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541$as_echo "no" >&6; }
3542fi
3543
3544
3545fi
3546if test -z "$CC"; then
3547 if test -n "$ac_tool_prefix"; then
3548 for ac_prog in cl.exe
3549 do
3550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3551set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553$as_echo_n "checking for $ac_word... " >&6; }
3554if test "${ac_cv_prog_CC+set}" = set; then :
3555 $as_echo_n "(cached) " >&6
3556else
3557 if test -n "$CC"; then
3558 ac_cv_prog_CC="$CC" # Let the user override the test.
3559else
3560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561for as_dir in $PATH
3562do
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3567 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 break 2
3570 fi
3571done
3572 done
3573IFS=$as_save_IFS
3574
3575fi
3576fi
3577CC=$ac_cv_prog_CC
3578if test -n "$CC"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3580$as_echo "$CC" >&6; }
3581else
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583$as_echo "no" >&6; }
3584fi
3585
3586
3587 test -n "$CC" && break
3588 done
3589fi
3590if test -z "$CC"; then
3591 ac_ct_CC=$CC
3592 for ac_prog in cl.exe
3593do
3594 # Extract the first word of "$ac_prog", so it can be a program name with args.
3595set dummy $ac_prog; ac_word=$2
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597$as_echo_n "checking for $ac_word... " >&6; }
3598if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3599 $as_echo_n "(cached) " >&6
3600else
3601 if test -n "$ac_ct_CC"; then
3602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3603else
3604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605for as_dir in $PATH
3606do
3607 IFS=$as_save_IFS
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611 ac_cv_prog_ac_ct_CC="$ac_prog"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 break 2
3614 fi
3615done
3616 done
3617IFS=$as_save_IFS
3618
3619fi
3620fi
3621ac_ct_CC=$ac_cv_prog_ac_ct_CC
3622if test -n "$ac_ct_CC"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3624$as_echo "$ac_ct_CC" >&6; }
3625else
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627$as_echo "no" >&6; }
3628fi
3629
3630
3631 test -n "$ac_ct_CC" && break
3632done
3633
3634 if test "x$ac_ct_CC" = x; then
3635 CC=""
3636 else
3637 case $cross_compiling:$ac_tool_warned in
3638yes:)
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3641ac_tool_warned=yes ;;
3642esac
3643 CC=$ac_ct_CC
3644 fi
3645fi
3646
3647fi
3648
3649
3650test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3652as_fn_error "no acceptable C compiler found in \$PATH
3653See \`config.log' for more details." "$LINENO" 5; }
3654
3655# Provide some information about the compiler.
3656$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3657set X $ac_compile
3658ac_compiler=$2
3659for ac_option in --version -v -V -qversion; do
3660 { { ac_try="$ac_compiler $ac_option >&5"
3661case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664esac
3665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666$as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3668 ac_status=$?
3669 if test -s conftest.err; then
3670 sed '10a\
3671... rest of stderr output deleted ...
3672 10q' conftest.err >conftest.er1
3673 cat conftest.er1 >&5
3674 rm -f conftest.er1 conftest.err
3675 fi
3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677 test $ac_status = 0; }
3678done
3679
3680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681/* end confdefs.h. */
3682
3683int
3684main ()
3685{
3686
3687 ;
3688 return 0;
3689}
3690_ACEOF
3691ac_clean_files_save=$ac_clean_files
3692ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3693# Try to create an executable without -o first, disregard a.out.
3694# It will help us diagnose broken compilers, and finding out an intuition
3695# of exeext.
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3697$as_echo_n "checking for C compiler default output file name... " >&6; }
3698ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3699
3700# The possible output files:
3701ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3702
3703ac_rmfiles=
3704for ac_file in $ac_files
3705do
3706 case $ac_file in
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3708 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3709 esac
3710done
3711rm -f $ac_rmfiles
3712
3713if { { ac_try="$ac_link_default"
3714case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3717esac
3718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3719$as_echo "$ac_try_echo"; } >&5
3720 (eval "$ac_link_default") 2>&5
3721 ac_status=$?
3722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3723 test $ac_status = 0; }; then :
3724 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3725# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3726# in a Makefile. We should not override ac_cv_exeext if it was cached,
3727# so that the user can short-circuit this test for compilers unknown to
3728# Autoconf.
3729for ac_file in $ac_files ''
3730do
3731 test -f "$ac_file" || continue
3732 case $ac_file in
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3734 ;;
3735 [ab].out )
3736 # We found the default executable, but exeext='' is most
3737 # certainly right.
3738 break;;
3739 *.* )
3740 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3741 then :; else
3742 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3743 fi
3744 # We set ac_cv_exeext here because the later test for it is not
3745 # safe: cross compilers may not add the suffix if given an `-o'
3746 # argument, so we may need to know it at that point already.
3747 # Even if this section looks crufty: it has the advantage of
3748 # actually working.
3749 break;;
3750 * )
3751 break;;
3752 esac
3753done
3754test "$ac_cv_exeext" = no && ac_cv_exeext=
3755
3756else
3757 ac_file=''
3758fi
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3760$as_echo "$ac_file" >&6; }
3761if test -z "$ac_file"; then :
3762 $as_echo "$as_me: failed program was:" >&5
3763sed 's/^/| /' conftest.$ac_ext >&5
3764
3765{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767{ as_fn_set_status 77
3768as_fn_error "C compiler cannot create executables
3769See \`config.log' for more details." "$LINENO" 5; }; }
3770fi
3771ac_exeext=$ac_cv_exeext
3772
3773# Check that the compiler produces executables we can run. If not, either
3774# the compiler is broken, or we cross compile.
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3776$as_echo_n "checking whether the C compiler works... " >&6; }
3777# If not cross compiling, check that we can run a simple program.
3778if test "$cross_compiling" != yes; then
3779 if { ac_try='./$ac_file'
3780 { { case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783esac
3784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785$as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_try") 2>&5
3787 ac_status=$?
3788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789 test $ac_status = 0; }; }; then
3790 cross_compiling=no
3791 else
3792 if test "$cross_compiling" = maybe; then
3793 cross_compiling=yes
3794 else
3795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797as_fn_error "cannot run C compiled programs.
3798If you meant to cross compile, use \`--host'.
3799See \`config.log' for more details." "$LINENO" 5; }
3800 fi
3801 fi
3802fi
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3804$as_echo "yes" >&6; }
3805
3806rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3807ac_clean_files=$ac_clean_files_save
3808# Check that the compiler produces executables we can run. If not, either
3809# the compiler is broken, or we cross compile.
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3811$as_echo_n "checking whether we are cross compiling... " >&6; }
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3813$as_echo "$cross_compiling" >&6; }
3814
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3816$as_echo_n "checking for suffix of executables... " >&6; }
3817if { { ac_try="$ac_link"
3818case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821esac
3822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823$as_echo "$ac_try_echo"; } >&5
3824 (eval "$ac_link") 2>&5
3825 ac_status=$?
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }; then :
3828 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3829# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3830# work properly (i.e., refer to `conftest.exe'), while it won't with
3831# `rm'.
3832for ac_file in conftest.exe conftest conftest.*; do
3833 test -f "$ac_file" || continue
3834 case $ac_file in
3835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3836 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3837 break;;
3838 * ) break;;
3839 esac
3840done
3841else
3842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3844as_fn_error "cannot compute suffix of executables: cannot compile and link
3845See \`config.log' for more details." "$LINENO" 5; }
3846fi
3847rm -f conftest$ac_cv_exeext
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3849$as_echo "$ac_cv_exeext" >&6; }
3850
3851rm -f conftest.$ac_ext
3852EXEEXT=$ac_cv_exeext
3853ac_exeext=$EXEEXT
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3855$as_echo_n "checking for suffix of object files... " >&6; }
3856if test "${ac_cv_objext+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
3858else
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860/* end confdefs.h. */
3861
3862int
3863main ()
3864{
3865
3866 ;
3867 return 0;
3868}
3869_ACEOF
3870rm -f conftest.o conftest.obj
3871if { { ac_try="$ac_compile"
3872case "(($ac_try" in
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3875esac
3876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877$as_echo "$ac_try_echo"; } >&5
3878 (eval "$ac_compile") 2>&5
3879 ac_status=$?
3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881 test $ac_status = 0; }; then :
3882 for ac_file in conftest.o conftest.obj conftest.*; do
3883 test -f "$ac_file" || continue;
3884 case $ac_file in
3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3886 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3887 break;;
3888 esac
3889done
3890else
3891 $as_echo "$as_me: failed program was:" >&5
3892sed 's/^/| /' conftest.$ac_ext >&5
3893
3894{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3896as_fn_error "cannot compute suffix of object files: cannot compile
3897See \`config.log' for more details." "$LINENO" 5; }
3898fi
3899rm -f conftest.$ac_cv_objext conftest.$ac_ext
3900fi
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3902$as_echo "$ac_cv_objext" >&6; }
3903OBJEXT=$ac_cv_objext
3904ac_objext=$OBJEXT
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3906$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3907if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
3909else
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911/* end confdefs.h. */
3912
3913int
3914main ()
3915{
3916#ifndef __GNUC__
3917 choke me
3918#endif
3919
3920 ;
3921 return 0;
3922}
3923_ACEOF
3924if ac_fn_c_try_compile "$LINENO"; then :
3925 ac_compiler_gnu=yes
3926else
3927 ac_compiler_gnu=no
3928fi
3929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930ac_cv_c_compiler_gnu=$ac_compiler_gnu
3931
3932fi
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3934$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3935if test $ac_compiler_gnu = yes; then
3936 GCC=yes
3937else
3938 GCC=
3939fi
3940ac_test_CFLAGS=${CFLAGS+set}
3941ac_save_CFLAGS=$CFLAGS
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3943$as_echo_n "checking whether $CC accepts -g... " >&6; }
3944if test "${ac_cv_prog_cc_g+set}" = set; then :
3945 $as_echo_n "(cached) " >&6
3946else
3947 ac_save_c_werror_flag=$ac_c_werror_flag
3948 ac_c_werror_flag=yes
3949 ac_cv_prog_cc_g=no
3950 CFLAGS="-g"
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952/* end confdefs.h. */
3953
3954int
3955main ()
3956{
3957
3958 ;
3959 return 0;
3960}
3961_ACEOF
3962if ac_fn_c_try_compile "$LINENO"; then :
3963 ac_cv_prog_cc_g=yes
3964else
3965 CFLAGS=""
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967/* end confdefs.h. */
3968
3969int
3970main ()
3971{
3972
3973 ;
3974 return 0;
3975}
3976_ACEOF
3977if ac_fn_c_try_compile "$LINENO"; then :
3978
3979else
3980 ac_c_werror_flag=$ac_save_c_werror_flag
3981 CFLAGS="-g"
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983/* end confdefs.h. */
3984
3985int
3986main ()
3987{
3988
3989 ;
3990 return 0;
3991}
3992_ACEOF
3993if ac_fn_c_try_compile "$LINENO"; then :
3994 ac_cv_prog_cc_g=yes
3995fi
3996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997fi
3998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999fi
4000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001 ac_c_werror_flag=$ac_save_c_werror_flag
4002fi
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4004$as_echo "$ac_cv_prog_cc_g" >&6; }
4005if test "$ac_test_CFLAGS" = set; then
4006 CFLAGS=$ac_save_CFLAGS
4007elif test $ac_cv_prog_cc_g = yes; then
4008 if test "$GCC" = yes; then
4009 CFLAGS="-g -O2"
4010 else
4011 CFLAGS="-g"
4012 fi
4013else
4014 if test "$GCC" = yes; then
4015 CFLAGS="-O2"
4016 else
4017 CFLAGS=
4018 fi
4019fi
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4021$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4022if test "${ac_cv_prog_cc_c89+set}" = set; then :
4023 $as_echo_n "(cached) " >&6
4024else
4025 ac_cv_prog_cc_c89=no
4026ac_save_CC=$CC
4027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028/* end confdefs.h. */
4029#include <stdarg.h>
4030#include <stdio.h>
4031#include <sys/types.h>
4032#include <sys/stat.h>
4033/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4034struct buf { int x; };
4035FILE * (*rcsopen) (struct buf *, struct stat *, int);
4036static char *e (p, i)
4037 char **p;
4038 int i;
4039{
4040 return p[i];
4041}
4042static char *f (char * (*g) (char **, int), char **p, ...)
4043{
4044 char *s;
4045 va_list v;
4046 va_start (v,p);
4047 s = g (p, va_arg (v,int));
4048 va_end (v);
4049 return s;
4050}
4051
4052/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4053 function prototypes and stuff, but not '\xHH' hex character constants.
4054 These don't provoke an error unfortunately, instead are silently treated
4055 as 'x'. The following induces an error, until -std is added to get
4056 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4057 array size at least. It's necessary to write '\x00'==0 to get something
4058 that's true only with -std. */
4059int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4060
4061/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4062 inside strings and character constants. */
4063#define FOO(x) 'x'
4064int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4065
4066int test (int i, double x);
4067struct s1 {int (*f) (int a);};
4068struct s2 {int (*f) (double a);};
4069int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4070int argc;
4071char **argv;
4072int
4073main ()
4074{
4075return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4076 ;
4077 return 0;
4078}
4079_ACEOF
4080for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4081 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4082do
4083 CC="$ac_save_CC $ac_arg"
4084 if ac_fn_c_try_compile "$LINENO"; then :
4085 ac_cv_prog_cc_c89=$ac_arg
4086fi
4087rm -f core conftest.err conftest.$ac_objext
4088 test "x$ac_cv_prog_cc_c89" != "xno" && break
4089done
4090rm -f conftest.$ac_ext
4091CC=$ac_save_CC
4092
4093fi
4094# AC_CACHE_VAL
4095case "x$ac_cv_prog_cc_c89" in
4096 x)
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4098$as_echo "none needed" >&6; } ;;
4099 xno)
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4101$as_echo "unsupported" >&6; } ;;
4102 *)
4103 CC="$CC $ac_cv_prog_cc_c89"
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4105$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4106esac
4107if test "x$ac_cv_prog_cc_c89" != xno; then :
4108
4109fi
4110
4111ac_ext=c
4112ac_cpp='$CPP $CPPFLAGS'
4113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115ac_compiler_gnu=$ac_cv_c_compiler_gnu
4116DEPDIR="${am__leading_dot}deps"
4117
4118ac_config_commands="$ac_config_commands depfiles"
4119
4120
4121am_make=${MAKE-make}
4122cat > confinc << 'END'
4123am__doit:
4124 @echo this is the am__doit target
4125.PHONY: am__doit
4126END
4127# If we don't find an include directive, just comment out the code.
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4129$as_echo_n "checking for style of include used by $am_make... " >&6; }
4130am__include="#"
4131am__quote=
4132_am_result=none
4133# First try GNU make style include.
4134echo "include confinc" > confmf
4135# Ignore all kinds of additional output from `make'.
4136case `$am_make -s -f confmf 2> /dev/null` in #(
4137*the\ am__doit\ target*)
4138 am__include=include
4139 am__quote=
4140 _am_result=GNU
4141 ;;
4142esac
4143# Now try BSD make style include.
4144if test "$am__include" = "#"; then
4145 echo '.include "confinc"' > confmf
4146 case `$am_make -s -f confmf 2> /dev/null` in #(
4147 *the\ am__doit\ target*)
4148 am__include=.include
4149 am__quote="\""
4150 _am_result=BSD
4151 ;;
4152 esac
4153fi
4154
4155
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4157$as_echo "$_am_result" >&6; }
4158rm -f confinc confmf
4159
4160# Check whether --enable-dependency-tracking was given.
4161if test "${enable_dependency_tracking+set}" = set; then :
4162 enableval=$enable_dependency_tracking;
4163fi
4164
4165if test "x$enable_dependency_tracking" != xno; then
4166 am_depcomp="$ac_aux_dir/depcomp"
4167 AMDEPBACKSLASH='\'
4168fi
4169 if test "x$enable_dependency_tracking" != xno; then
4170 AMDEP_TRUE=
4171 AMDEP_FALSE='#'
4172else
4173 AMDEP_TRUE='#'
4174 AMDEP_FALSE=
4175fi
4176
4177
4178
4179depcc="$CC" am_compiler_list=
4180
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4182$as_echo_n "checking dependency style of $depcc... " >&6; }
4183if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4184 $as_echo_n "(cached) " >&6
4185else
4186 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4187 # We make a subdir and do the tests there. Otherwise we can end up
4188 # making bogus files that we don't know about and never remove. For
4189 # instance it was reported that on HP-UX the gcc test will end up
4190 # making a dummy file named `D' -- because `-MD' means `put the output
4191 # in D'.
4192 mkdir conftest.dir
4193 # Copy depcomp to subdir because otherwise we won't find it if we're
4194 # using a relative directory.
4195 cp "$am_depcomp" conftest.dir
4196 cd conftest.dir
4197 # We will build objects and dependencies in a subdirectory because
4198 # it helps to detect inapplicable dependency modes. For instance
4199 # both Tru64's cc and ICC support -MD to output dependencies as a
4200 # side effect of compilation, but ICC will put the dependencies in
4201 # the current directory while Tru64 will put them in the object
4202 # directory.
4203 mkdir sub
4204
4205 am_cv_CC_dependencies_compiler_type=none
4206 if test "$am_compiler_list" = ""; then
4207 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4208 fi
4209 am__universal=false
4210 case " $depcc " in #(
4211 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4212 esac
4213
4214 for depmode in $am_compiler_list; do
4215 # Setup a source with many dependencies, because some compilers
4216 # like to wrap large dependency lists on column 80 (with \), and
4217 # we should not choose a depcomp mode which is confused by this.
4218 #
4219 # We need to recreate these files for each test, as the compiler may
4220 # overwrite some of them when testing with obscure command lines.
4221 # This happens at least with the AIX C compiler.
4222 : > sub/conftest.c
4223 for i in 1 2 3 4 5 6; do
4224 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4225 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4226 # Solaris 8's {/usr,}/bin/sh.
4227 touch sub/conftst$i.h
4228 done
4229 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4230
4231 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4232 # mode. It turns out that the SunPro C++ compiler does not properly
4233 # handle `-M -o', and we need to detect this. Also, some Intel
4234 # versions had trouble with output in subdirs
4235 am__obj=sub/conftest.${OBJEXT-o}
4236 am__minus_obj="-o $am__obj"
4237 case $depmode in
4238 gcc)
4239 # This depmode causes a compiler race in universal mode.
4240 test "$am__universal" = false || continue
4241 ;;
4242 nosideeffect)
4243 # after this tag, mechanisms are not by side-effect, so they'll
4244 # only be used when explicitly requested
4245 if test "x$enable_dependency_tracking" = xyes; then
4246 continue
4247 else
4248 break
4249 fi
4250 ;;
4251 msvisualcpp | msvcmsys)
4252 # This compiler won't grok `-c -o', but also, the minuso test has
4253 # not run yet. These depmodes are late enough in the game, and
4254 # so weak that their functioning should not be impacted.
4255 am__obj=conftest.${OBJEXT-o}
4256 am__minus_obj=
4257 ;;
4258 none) break ;;
4259 esac
4260 if depmode=$depmode \
4261 source=sub/conftest.c object=$am__obj \
4262 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4263 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4264 >/dev/null 2>conftest.err &&
4265 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4266 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4267 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4268 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4269 # icc doesn't choke on unknown options, it will just issue warnings
4270 # or remarks (even with -Werror). So we grep stderr for any message
4271 # that says an option was ignored or not supported.
4272 # When given -MP, icc 7.0 and 7.1 complain thusly:
4273 # icc: Command line warning: ignoring option '-M'; no argument required
4274 # The diagnosis changed in icc 8.0:
4275 # icc: Command line remark: option '-MP' not supported
4276 if (grep 'ignoring option' conftest.err ||
4277 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4278 am_cv_CC_dependencies_compiler_type=$depmode
4279 break
4280 fi
4281 fi
4282 done
4283
4284 cd ..
4285 rm -rf conftest.dir
4286else
4287 am_cv_CC_dependencies_compiler_type=none
4288fi
4289
4290fi
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4292$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4293CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4294
4295 if
4296 test "x$enable_dependency_tracking" != xno \
4297 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4298 am__fastdepCC_TRUE=
4299 am__fastdepCC_FALSE='#'
4300else
4301 am__fastdepCC_TRUE='#'
4302 am__fastdepCC_FALSE=
4303fi
4304
4305
4306ac_ext=cpp
4307ac_cpp='$CXXCPP $CPPFLAGS'
4308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4311if test -z "$CXX"; then
4312 if test -n "$CCC"; then
4313 CXX=$CCC
4314 else
4315 if test -n "$ac_tool_prefix"; then
4316 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4317 do
4318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4319set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321$as_echo_n "checking for $ac_word... " >&6; }
4322if test "${ac_cv_prog_CXX+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4324else
4325 if test -n "$CXX"; then
4326 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4327else
4328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329for as_dir in $PATH
4330do
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 break 2
4338 fi
4339done
4340 done
4341IFS=$as_save_IFS
4342
4343fi
4344fi
4345CXX=$ac_cv_prog_CXX
4346if test -n "$CXX"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4348$as_echo "$CXX" >&6; }
4349else
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351$as_echo "no" >&6; }
4352fi
4353
4354
4355 test -n "$CXX" && break
4356 done
4357fi
4358if test -z "$CXX"; then
4359 ac_ct_CXX=$CXX
4360 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4361do
4362 # Extract the first word of "$ac_prog", so it can be a program name with args.
4363set dummy $ac_prog; ac_word=$2
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365$as_echo_n "checking for $ac_word... " >&6; }
4366if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4368else
4369 if test -n "$ac_ct_CXX"; then
4370 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4371else
4372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373for as_dir in $PATH
4374do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_ac_ct_CXX="$ac_prog"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4382 fi
4383done
4384 done
4385IFS=$as_save_IFS
4386
4387fi
4388fi
4389ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4390if test -n "$ac_ct_CXX"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4392$as_echo "$ac_ct_CXX" >&6; }
4393else
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395$as_echo "no" >&6; }
4396fi
4397
4398
4399 test -n "$ac_ct_CXX" && break
4400done
4401
4402 if test "x$ac_ct_CXX" = x; then
4403 CXX="g++"
4404 else
4405 case $cross_compiling:$ac_tool_warned in
4406yes:)
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4409ac_tool_warned=yes ;;
4410esac
4411 CXX=$ac_ct_CXX
4412 fi
4413fi
4414
4415 fi
4416fi
4417# Provide some information about the compiler.
4418$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4419set X $ac_compile
4420ac_compiler=$2
4421for ac_option in --version -v -V -qversion; do
4422 { { ac_try="$ac_compiler $ac_option >&5"
4423case "(($ac_try" in
4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425 *) ac_try_echo=$ac_try;;
4426esac
4427eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4428$as_echo "$ac_try_echo"; } >&5
4429 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4430 ac_status=$?
4431 if test -s conftest.err; then
4432 sed '10a\
4433... rest of stderr output deleted ...
4434 10q' conftest.err >conftest.er1
4435 cat conftest.er1 >&5
4436 rm -f conftest.er1 conftest.err
4437 fi
4438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439 test $ac_status = 0; }
4440done
4441
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4443$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4444if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
4446else
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448/* end confdefs.h. */
4449
4450int
4451main ()
4452{
4453#ifndef __GNUC__
4454 choke me
4455#endif
4456
4457 ;
4458 return 0;
4459}
4460_ACEOF
4461if ac_fn_cxx_try_compile "$LINENO"; then :
4462 ac_compiler_gnu=yes
4463else
4464 ac_compiler_gnu=no
4465fi
4466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4468
4469fi
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4471$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4472if test $ac_compiler_gnu = yes; then
4473 GXX=yes
4474else
4475 GXX=
4476fi
4477ac_test_CXXFLAGS=${CXXFLAGS+set}
4478ac_save_CXXFLAGS=$CXXFLAGS
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4480$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4481if test "${ac_cv_prog_cxx_g+set}" = set; then :
4482 $as_echo_n "(cached) " >&6
4483else
4484 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4485 ac_cxx_werror_flag=yes
4486 ac_cv_prog_cxx_g=no
4487 CXXFLAGS="-g"
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489/* end confdefs.h. */
4490
4491int
4492main ()
4493{
4494
4495 ;
4496 return 0;
4497}
4498_ACEOF
4499if ac_fn_cxx_try_compile "$LINENO"; then :
4500 ac_cv_prog_cxx_g=yes
4501else
4502 CXXFLAGS=""
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504/* end confdefs.h. */
4505
4506int
4507main ()
4508{
4509
4510 ;
4511 return 0;
4512}
4513_ACEOF
4514if ac_fn_cxx_try_compile "$LINENO"; then :
4515
4516else
4517 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4518 CXXFLAGS="-g"
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520/* end confdefs.h. */
4521
4522int
4523main ()
4524{
4525
4526 ;
4527 return 0;
4528}
4529_ACEOF
4530if ac_fn_cxx_try_compile "$LINENO"; then :
4531 ac_cv_prog_cxx_g=yes
4532fi
4533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534fi
4535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536fi
4537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4539fi
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4541$as_echo "$ac_cv_prog_cxx_g" >&6; }
4542if test "$ac_test_CXXFLAGS" = set; then
4543 CXXFLAGS=$ac_save_CXXFLAGS
4544elif test $ac_cv_prog_cxx_g = yes; then
4545 if test "$GXX" = yes; then
4546 CXXFLAGS="-g -O2"
4547 else
4548 CXXFLAGS="-g"
4549 fi
4550else
4551 if test "$GXX" = yes; then
4552 CXXFLAGS="-O2"
4553 else
4554 CXXFLAGS=
4555 fi
4556fi
4557ac_ext=c
4558ac_cpp='$CPP $CPPFLAGS'
4559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561ac_compiler_gnu=$ac_cv_c_compiler_gnu
4562
4563depcc="$CXX" am_compiler_list=
4564
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4566$as_echo_n "checking dependency style of $depcc... " >&6; }
4567if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569else
4570 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4571 # We make a subdir and do the tests there. Otherwise we can end up
4572 # making bogus files that we don't know about and never remove. For
4573 # instance it was reported that on HP-UX the gcc test will end up
4574 # making a dummy file named `D' -- because `-MD' means `put the output
4575 # in D'.
4576 mkdir conftest.dir
4577 # Copy depcomp to subdir because otherwise we won't find it if we're
4578 # using a relative directory.
4579 cp "$am_depcomp" conftest.dir
4580 cd conftest.dir
4581 # We will build objects and dependencies in a subdirectory because
4582 # it helps to detect inapplicable dependency modes. For instance
4583 # both Tru64's cc and ICC support -MD to output dependencies as a
4584 # side effect of compilation, but ICC will put the dependencies in
4585 # the current directory while Tru64 will put them in the object
4586 # directory.
4587 mkdir sub
4588
4589 am_cv_CXX_dependencies_compiler_type=none
4590 if test "$am_compiler_list" = ""; then
4591 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4592 fi
4593 am__universal=false
4594 case " $depcc " in #(
4595 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4596 esac
4597
4598 for depmode in $am_compiler_list; do
4599 # Setup a source with many dependencies, because some compilers
4600 # like to wrap large dependency lists on column 80 (with \), and
4601 # we should not choose a depcomp mode which is confused by this.
4602 #
4603 # We need to recreate these files for each test, as the compiler may
4604 # overwrite some of them when testing with obscure command lines.
4605 # This happens at least with the AIX C compiler.
4606 : > sub/conftest.c
4607 for i in 1 2 3 4 5 6; do
4608 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4609 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4610 # Solaris 8's {/usr,}/bin/sh.
4611 touch sub/conftst$i.h
4612 done
4613 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4614
4615 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4616 # mode. It turns out that the SunPro C++ compiler does not properly
4617 # handle `-M -o', and we need to detect this. Also, some Intel
4618 # versions had trouble with output in subdirs
4619 am__obj=sub/conftest.${OBJEXT-o}
4620 am__minus_obj="-o $am__obj"
4621 case $depmode in
4622 gcc)
4623 # This depmode causes a compiler race in universal mode.
4624 test "$am__universal" = false || continue
4625 ;;
4626 nosideeffect)
4627 # after this tag, mechanisms are not by side-effect, so they'll
4628 # only be used when explicitly requested
4629 if test "x$enable_dependency_tracking" = xyes; then
4630 continue
4631 else
4632 break
4633 fi
4634 ;;
4635 msvisualcpp | msvcmsys)
4636 # This compiler won't grok `-c -o', but also, the minuso test has
4637 # not run yet. These depmodes are late enough in the game, and
4638 # so weak that their functioning should not be impacted.
4639 am__obj=conftest.${OBJEXT-o}
4640 am__minus_obj=
4641 ;;
4642 none) break ;;
4643 esac
4644 if depmode=$depmode \
4645 source=sub/conftest.c object=$am__obj \
4646 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4647 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4648 >/dev/null 2>conftest.err &&
4649 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4650 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4651 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4652 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4653 # icc doesn't choke on unknown options, it will just issue warnings
4654 # or remarks (even with -Werror). So we grep stderr for any message
4655 # that says an option was ignored or not supported.
4656 # When given -MP, icc 7.0 and 7.1 complain thusly:
4657 # icc: Command line warning: ignoring option '-M'; no argument required
4658 # The diagnosis changed in icc 8.0:
4659 # icc: Command line remark: option '-MP' not supported
4660 if (grep 'ignoring option' conftest.err ||
4661 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4662 am_cv_CXX_dependencies_compiler_type=$depmode
4663 break
4664 fi
4665 fi
4666 done
4667
4668 cd ..
4669 rm -rf conftest.dir
4670else
4671 am_cv_CXX_dependencies_compiler_type=none
4672fi
4673
4674fi
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4676$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4677CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4678
4679 if
4680 test "x$enable_dependency_tracking" != xno \
4681 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4682 am__fastdepCXX_TRUE=
4683 am__fastdepCXX_FALSE='#'
4684else
4685 am__fastdepCXX_TRUE='#'
4686 am__fastdepCXX_FALSE=
4687fi
4688
4689
4690# By default we simply use the C compiler to build assembly code.
4691
4692test "${CCAS+set}" = set || CCAS=$CC
4693test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4694
4695
4696
4697depcc="$CCAS" am_compiler_list=
4698
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4700$as_echo_n "checking dependency style of $depcc... " >&6; }
4701if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4703else
4704 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4705 # We make a subdir and do the tests there. Otherwise we can end up
4706 # making bogus files that we don't know about and never remove. For
4707 # instance it was reported that on HP-UX the gcc test will end up
4708 # making a dummy file named `D' -- because `-MD' means `put the output
4709 # in D'.
4710 mkdir conftest.dir
4711 # Copy depcomp to subdir because otherwise we won't find it if we're
4712 # using a relative directory.
4713 cp "$am_depcomp" conftest.dir
4714 cd conftest.dir
4715 # We will build objects and dependencies in a subdirectory because
4716 # it helps to detect inapplicable dependency modes. For instance
4717 # both Tru64's cc and ICC support -MD to output dependencies as a
4718 # side effect of compilation, but ICC will put the dependencies in
4719 # the current directory while Tru64 will put them in the object
4720 # directory.
4721 mkdir sub
4722
4723 am_cv_CCAS_dependencies_compiler_type=none
4724 if test "$am_compiler_list" = ""; then
4725 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4726 fi
4727 am__universal=false
4728
4729
4730 for depmode in $am_compiler_list; do
4731 # Setup a source with many dependencies, because some compilers
4732 # like to wrap large dependency lists on column 80 (with \), and
4733 # we should not choose a depcomp mode which is confused by this.
4734 #
4735 # We need to recreate these files for each test, as the compiler may
4736 # overwrite some of them when testing with obscure command lines.
4737 # This happens at least with the AIX C compiler.
4738 : > sub/conftest.c
4739 for i in 1 2 3 4 5 6; do
4740 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4741 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4742 # Solaris 8's {/usr,}/bin/sh.
4743 touch sub/conftst$i.h
4744 done
4745 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4746
4747 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4748 # mode. It turns out that the SunPro C++ compiler does not properly
4749 # handle `-M -o', and we need to detect this. Also, some Intel
4750 # versions had trouble with output in subdirs
4751 am__obj=sub/conftest.${OBJEXT-o}
4752 am__minus_obj="-o $am__obj"
4753 case $depmode in
4754 gcc)
4755 # This depmode causes a compiler race in universal mode.
4756 test "$am__universal" = false || continue
4757 ;;
4758 nosideeffect)
4759 # after this tag, mechanisms are not by side-effect, so they'll
4760 # only be used when explicitly requested
4761 if test "x$enable_dependency_tracking" = xyes; then
4762 continue
4763 else
4764 break
4765 fi
4766 ;;
4767 msvisualcpp | msvcmsys)
4768 # This compiler won't grok `-c -o', but also, the minuso test has
4769 # not run yet. These depmodes are late enough in the game, and
4770 # so weak that their functioning should not be impacted.
4771 am__obj=conftest.${OBJEXT-o}
4772 am__minus_obj=
4773 ;;
4774 none) break ;;
4775 esac
4776 if depmode=$depmode \
4777 source=sub/conftest.c object=$am__obj \
4778 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4779 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4780 >/dev/null 2>conftest.err &&
4781 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4782 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4783 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4784 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4785 # icc doesn't choke on unknown options, it will just issue warnings
4786 # or remarks (even with -Werror). So we grep stderr for any message
4787 # that says an option was ignored or not supported.
4788 # When given -MP, icc 7.0 and 7.1 complain thusly:
4789 # icc: Command line warning: ignoring option '-M'; no argument required
4790 # The diagnosis changed in icc 8.0:
4791 # icc: Command line remark: option '-MP' not supported
4792 if (grep 'ignoring option' conftest.err ||
4793 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4794 am_cv_CCAS_dependencies_compiler_type=$depmode
4795 break
4796 fi
4797 fi
4798 done
4799
4800 cd ..
4801 rm -rf conftest.dir
4802else
4803 am_cv_CCAS_dependencies_compiler_type=none
4804fi
4805
4806fi
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4808$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4809CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4810
4811 if
4812 test "x$enable_dependency_tracking" != xno \
4813 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4814 am__fastdepCCAS_TRUE=
4815 am__fastdepCCAS_FALSE='#'
4816else
4817 am__fastdepCCAS_TRUE='#'
4818 am__fastdepCCAS_FALSE=
4819fi
4820
4821
4822
4823
4824
4825
4826# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4827# in XCFLAGS. But we need them in CFLAGS during configury. So put them
4828# in both places for now and restore CFLAGS at the end of config.
4829save_CFLAGS="$CFLAGS"
4830
4831# Find other programs we need.
4832if test -n "$ac_tool_prefix"; then
4833 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4834set dummy ${ac_tool_prefix}ar; ac_word=$2
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836$as_echo_n "checking for $ac_word... " >&6; }
4837if test "${ac_cv_prog_AR+set}" = set; then :
4838 $as_echo_n "(cached) " >&6
4839else
4840 if test -n "$AR"; then
4841 ac_cv_prog_AR="$AR" # Let the user override the test.
4842else
4843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844for as_dir in $PATH
4845do
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4850 ac_cv_prog_AR="${ac_tool_prefix}ar"
4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4853 fi
4854done
4855 done
4856IFS=$as_save_IFS
4857
4858fi
4859fi
4860AR=$ac_cv_prog_AR
4861if test -n "$AR"; then
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4863$as_echo "$AR" >&6; }
4864else
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866$as_echo "no" >&6; }
4867fi
4868
4869
4870fi
4871if test -z "$ac_cv_prog_AR"; then
4872 ac_ct_AR=$AR
4873 # Extract the first word of "ar", so it can be a program name with args.
4874set dummy ar; ac_word=$2
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876$as_echo_n "checking for $ac_word... " >&6; }
4877if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4878 $as_echo_n "(cached) " >&6
4879else
4880 if test -n "$ac_ct_AR"; then
4881 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4882else
4883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884for as_dir in $PATH
4885do
4886 IFS=$as_save_IFS
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4890 ac_cv_prog_ac_ct_AR="ar"
4891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 break 2
4893 fi
4894done
4895 done
4896IFS=$as_save_IFS
4897
4898fi
4899fi
4900ac_ct_AR=$ac_cv_prog_ac_ct_AR
4901if test -n "$ac_ct_AR"; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4903$as_echo "$ac_ct_AR" >&6; }
4904else
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906$as_echo "no" >&6; }
4907fi
4908
4909 if test "x$ac_ct_AR" = x; then
4910 AR=""
4911 else
4912 case $cross_compiling:$ac_tool_warned in
4913yes:)
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4916ac_tool_warned=yes ;;
4917esac
4918 AR=$ac_ct_AR
4919 fi
4920else
4921 AR="$ac_cv_prog_AR"
4922fi
4923
4924if test -n "$ac_tool_prefix"; then
4925 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4926set dummy ${ac_tool_prefix}nm; ac_word=$2
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928$as_echo_n "checking for $ac_word... " >&6; }
4929if test "${ac_cv_prog_NM+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
4931else
4932 if test -n "$NM"; then
4933 ac_cv_prog_NM="$NM" # Let the user override the test.
4934else
4935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936for as_dir in $PATH
4937do
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942 ac_cv_prog_NM="${ac_tool_prefix}nm"
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 break 2
4945 fi
4946done
4947 done
4948IFS=$as_save_IFS
4949
4950fi
4951fi
4952NM=$ac_cv_prog_NM
4953if test -n "$NM"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4955$as_echo "$NM" >&6; }
4956else
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958$as_echo "no" >&6; }
4959fi
4960
4961
4962fi
4963if test -z "$ac_cv_prog_NM"; then
4964 ac_ct_NM=$NM
4965 # Extract the first word of "nm", so it can be a program name with args.
4966set dummy nm; ac_word=$2
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968$as_echo_n "checking for $ac_word... " >&6; }
4969if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
4970 $as_echo_n "(cached) " >&6
4971else
4972 if test -n "$ac_ct_NM"; then
4973 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4974else
4975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976for as_dir in $PATH
4977do
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_prog_ac_ct_NM="nm"
4983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 break 2
4985 fi
4986done
4987 done
4988IFS=$as_save_IFS
4989
4990fi
4991fi
4992ac_ct_NM=$ac_cv_prog_ac_ct_NM
4993if test -n "$ac_ct_NM"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4995$as_echo "$ac_ct_NM" >&6; }
4996else
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998$as_echo "no" >&6; }
4999fi
5000
5001 if test "x$ac_ct_NM" = x; then
5002 NM=""
5003 else
5004 case $cross_compiling:$ac_tool_warned in
5005yes:)
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5008ac_tool_warned=yes ;;
5009esac
5010 NM=$ac_ct_NM
5011 fi
5012else
5013 NM="$ac_cv_prog_NM"
5014fi
5015
5016if test -n "$ac_tool_prefix"; then
5017 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5018set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5020$as_echo_n "checking for $ac_word... " >&6; }
5021if test "${ac_cv_prog_RANLIB+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5023else
5024 if test -n "$RANLIB"; then
5025 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5026else
5027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028for as_dir in $PATH
5029do
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5037 fi
5038done
5039 done
5040IFS=$as_save_IFS
5041
5042fi
5043fi
5044RANLIB=$ac_cv_prog_RANLIB
5045if test -n "$RANLIB"; then
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5047$as_echo "$RANLIB" >&6; }
5048else
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050$as_echo "no" >&6; }
5051fi
5052
5053
5054fi
5055if test -z "$ac_cv_prog_RANLIB"; then
5056 ac_ct_RANLIB=$RANLIB
5057 # Extract the first word of "ranlib", so it can be a program name with args.
5058set dummy ranlib; ac_word=$2
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060$as_echo_n "checking for $ac_word... " >&6; }
5061if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5062 $as_echo_n "(cached) " >&6
5063else
5064 if test -n "$ac_ct_RANLIB"; then
5065 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5066else
5067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068for as_dir in $PATH
5069do
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074 ac_cv_prog_ac_ct_RANLIB="ranlib"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5077 fi
5078done
5079 done
5080IFS=$as_save_IFS
5081
5082fi
5083fi
5084ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5085if test -n "$ac_ct_RANLIB"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5087$as_echo "$ac_ct_RANLIB" >&6; }
5088else
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090$as_echo "no" >&6; }
5091fi
5092
5093 if test "x$ac_ct_RANLIB" = x; then
5094 RANLIB="ranlib-not-found-in-path-error"
5095 else
5096 case $cross_compiling:$ac_tool_warned in
5097yes:)
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5100ac_tool_warned=yes ;;
5101esac
5102 RANLIB=$ac_ct_RANLIB
5103 fi
5104else
5105 RANLIB="$ac_cv_prog_RANLIB"
5106fi
5107
5108# Extract the first word of "perl", so it can be a program name with args.
5109set dummy perl; ac_word=$2
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111$as_echo_n "checking for $ac_word... " >&6; }
5112if test "${ac_cv_path_PERL+set}" = set; then :
5113 $as_echo_n "(cached) " >&6
5114else
5115 case $PERL in
5116 [\\/]* | ?:[\\/]*)
5117 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5118 ;;
5119 *)
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121for as_dir in $PATH
5122do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5130 fi
5131done
5132 done
5133IFS=$as_save_IFS
5134
5135 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
5136 ;;
5137esac
5138fi
5139PERL=$ac_cv_path_PERL
5140if test -n "$PERL"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5142$as_echo "$PERL" >&6; }
5143else
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145$as_echo "no" >&6; }
5146fi
5147
5148
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5150$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5151set x ${MAKE-make}
5152ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5153if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5154 $as_echo_n "(cached) " >&6
5155else
5156 cat >conftest.make <<\_ACEOF
5157SHELL = /bin/sh
5158all:
5159 @echo '@@@%%%=$(MAKE)=@@@%%%'
5160_ACEOF
5161# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5162case `${MAKE-make} -f conftest.make 2>/dev/null` in
5163 *@@@%%%=?*=@@@%%%*)
5164 eval ac_cv_prog_make_${ac_make}_set=yes;;
5165 *)
5166 eval ac_cv_prog_make_${ac_make}_set=no;;
5167esac
5168rm -f conftest.make
5169fi
5170if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5172$as_echo "yes" >&6; }
5173 SET_MAKE=
5174else
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176$as_echo "no" >&6; }
5177 SET_MAKE="MAKE=${MAKE-make}"
5178fi
5179
5180
5181
5182# See if makeinfo has been installed and is modern enough
5183# that we can use it.
5184
5185 # Extract the first word of "makeinfo", so it can be a program name with args.
5186set dummy makeinfo; ac_word=$2
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188$as_echo_n "checking for $ac_word... " >&6; }
5189if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
5190 $as_echo_n "(cached) " >&6
5191else
5192 if test -n "$MAKEINFO"; then
5193 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5194else
5195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH
5197do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202 ac_cv_prog_MAKEINFO="makeinfo"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5205 fi
5206done
5207 done
5208IFS=$as_save_IFS
5209
5210fi
5211fi
5212MAKEINFO=$ac_cv_prog_MAKEINFO
5213if test -n "$MAKEINFO"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5215$as_echo "$MAKEINFO" >&6; }
5216else
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218$as_echo "no" >&6; }
5219fi
5220
5221
5222 if test -n "$MAKEINFO"; then
5223 # Found it, now check the version.
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5225$as_echo_n "checking for modern makeinfo... " >&6; }
5226if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5228else
5229 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5230 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5231
5232 case $ac_prog_version in
5233 '') gcc_cv_prog_makeinfo_modern=no;;
5234 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
5235 *) gcc_cv_prog_makeinfo_modern=no;;
5236 esac
5237
5238fi
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5240$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5241 else
5242 gcc_cv_prog_makeinfo_modern=no
5243 fi
5244 if test $gcc_cv_prog_makeinfo_modern = no; then
5245 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5246 fi
5247
5248 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5249 BUILD_INFO_TRUE=
5250 BUILD_INFO_FALSE='#'
5251else
5252 BUILD_INFO_TRUE='#'
5253 BUILD_INFO_FALSE=
5254fi
5255
5256
5257
5258# Configure libtool
5259case `pwd` in
5260 *\ * | *\ *)
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5262$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5263esac
5264
5265
5266
5267macro_version='2.2.7a'
5268macro_revision='1.3134'
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282ltmain="$ac_aux_dir/ltmain.sh"
5283
5284# Backslashify metacharacters that are still active within
5285# double-quoted strings.
5286sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5287
5288# Same as above, but do not quote variable references.
5289double_quote_subst='s/\(["`\\]\)/\\\1/g'
5290
5291# Sed substitution to delay expansion of an escaped shell variable in a
5292# double_quote_subst'ed string.
5293delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5294
5295# Sed substitution to delay expansion of an escaped single quote.
5296delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5297
5298# Sed substitution to avoid accidental globbing in evaled expressions
5299no_glob_subst='s/\*/\\\*/g'
5300
5301ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5302ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5303ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5304
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5306$as_echo_n "checking how to print strings... " >&6; }
5307# Test print first, because it will be a builtin if present.
5308if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5309 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5310 ECHO='print -r --'
5311elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5312 ECHO='printf %s\n'
5313else
5314 # Use this function as a fallback that always works.
5315 func_fallback_echo ()
5316 {
5317 eval 'cat <<_LTECHO_EOF
5318$1
5319_LTECHO_EOF'
5320 }
5321 ECHO='func_fallback_echo'
5322fi
5323
5324# func_echo_all arg...
5325# Invoke $ECHO with all args, space-separated.
5326func_echo_all ()
5327{
5328 $ECHO ""
5329}
5330
5331case "$ECHO" in
5332 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5333$as_echo "printf" >&6; } ;;
5334 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5335$as_echo "print -r" >&6; } ;;
5336 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5337$as_echo "cat" >&6; } ;;
5338esac
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5354$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5355if test "${ac_cv_path_SED+set}" = set; then :
5356 $as_echo_n "(cached) " >&6
5357else
5358 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5359 for ac_i in 1 2 3 4 5 6 7; do
5360 ac_script="$ac_script$as_nl$ac_script"
5361 done
5362 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5363 { ac_script=; unset ac_script;}
5364 if test -z "$SED"; then
5365 ac_path_SED_found=false
5366 # Loop through the user's path and test for each of PROGNAME-LIST
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368for as_dir in $PATH
5369do
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_prog in sed gsed; do
5373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5375 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5376# Check for GNU ac_path_SED and select it if it is found.
5377 # Check for GNU $ac_path_SED
5378case `"$ac_path_SED" --version 2>&1` in
5379*GNU*)
5380 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5381*)
5382 ac_count=0
5383 $as_echo_n 0123456789 >"conftest.in"
5384 while :
5385 do
5386 cat "conftest.in" "conftest.in" >"conftest.tmp"
5387 mv "conftest.tmp" "conftest.in"
5388 cp "conftest.in" "conftest.nl"
5389 $as_echo '' >> "conftest.nl"
5390 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5392 as_fn_arith $ac_count + 1 && ac_count=$as_val
5393 if test $ac_count -gt ${ac_path_SED_max-0}; then
5394 # Best one so far, save it but keep looking for a better one
5395 ac_cv_path_SED="$ac_path_SED"
5396 ac_path_SED_max=$ac_count
5397 fi
5398 # 10*(2^10) chars as input seems more than enough
5399 test $ac_count -gt 10 && break
5400 done
5401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5402esac
5403
5404 $ac_path_SED_found && break 3
5405 done
5406 done
5407 done
5408IFS=$as_save_IFS
5409 if test -z "$ac_cv_path_SED"; then
5410 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5411 fi
5412else
5413 ac_cv_path_SED=$SED
5414fi
5415
5416fi
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5418$as_echo "$ac_cv_path_SED" >&6; }
5419 SED="$ac_cv_path_SED"
5420 rm -f conftest.sed
5421
5422test -z "$SED" && SED=sed
5423Xsed="$SED -e 1s/^X//"
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5436$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5437if test "${ac_cv_path_GREP+set}" = set; then :
5438 $as_echo_n "(cached) " >&6
5439else
5440 if test -z "$GREP"; then
5441 ac_path_GREP_found=false
5442 # Loop through the user's path and test for each of PROGNAME-LIST
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5445do
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_prog in grep ggrep; do
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5451 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5452# Check for GNU ac_path_GREP and select it if it is found.
5453 # Check for GNU $ac_path_GREP
5454case `"$ac_path_GREP" --version 2>&1` in
5455*GNU*)
5456 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5457*)
5458 ac_count=0
5459 $as_echo_n 0123456789 >"conftest.in"
5460 while :
5461 do
5462 cat "conftest.in" "conftest.in" >"conftest.tmp"
5463 mv "conftest.tmp" "conftest.in"
5464 cp "conftest.in" "conftest.nl"
5465 $as_echo 'GREP' >> "conftest.nl"
5466 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5468 as_fn_arith $ac_count + 1 && ac_count=$as_val
5469 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5470 # Best one so far, save it but keep looking for a better one
5471 ac_cv_path_GREP="$ac_path_GREP"
5472 ac_path_GREP_max=$ac_count
5473 fi
5474 # 10*(2^10) chars as input seems more than enough
5475 test $ac_count -gt 10 && break
5476 done
5477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5478esac
5479
5480 $ac_path_GREP_found && break 3
5481 done
5482 done
5483 done
5484IFS=$as_save_IFS
5485 if test -z "$ac_cv_path_GREP"; then
5486 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5487 fi
5488else
5489 ac_cv_path_GREP=$GREP
5490fi
5491
5492fi
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5494$as_echo "$ac_cv_path_GREP" >&6; }
5495 GREP="$ac_cv_path_GREP"
5496
5497
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5499$as_echo_n "checking for egrep... " >&6; }
5500if test "${ac_cv_path_EGREP+set}" = set; then :
5501 $as_echo_n "(cached) " >&6
5502else
5503 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5504 then ac_cv_path_EGREP="$GREP -E"
5505 else
5506 if test -z "$EGREP"; then
5507 ac_path_EGREP_found=false
5508 # Loop through the user's path and test for each of PROGNAME-LIST
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5511do
5512 IFS=$as_save_IFS
5513 test -z "$as_dir" && as_dir=.
5514 for ac_prog in egrep; do
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5517 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5518# Check for GNU ac_path_EGREP and select it if it is found.
5519 # Check for GNU $ac_path_EGREP
5520case `"$ac_path_EGREP" --version 2>&1` in
5521*GNU*)
5522 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5523*)
5524 ac_count=0
5525 $as_echo_n 0123456789 >"conftest.in"
5526 while :
5527 do
5528 cat "conftest.in" "conftest.in" >"conftest.tmp"
5529 mv "conftest.tmp" "conftest.in"
5530 cp "conftest.in" "conftest.nl"
5531 $as_echo 'EGREP' >> "conftest.nl"
5532 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5534 as_fn_arith $ac_count + 1 && ac_count=$as_val
5535 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5536 # Best one so far, save it but keep looking for a better one
5537 ac_cv_path_EGREP="$ac_path_EGREP"
5538 ac_path_EGREP_max=$ac_count
5539 fi
5540 # 10*(2^10) chars as input seems more than enough
5541 test $ac_count -gt 10 && break
5542 done
5543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5544esac
5545
5546 $ac_path_EGREP_found && break 3
5547 done
5548 done
5549 done
5550IFS=$as_save_IFS
5551 if test -z "$ac_cv_path_EGREP"; then
5552 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5553 fi
5554else
5555 ac_cv_path_EGREP=$EGREP
5556fi
5557
5558 fi
5559fi
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5561$as_echo "$ac_cv_path_EGREP" >&6; }
5562 EGREP="$ac_cv_path_EGREP"
5563
5564
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5566$as_echo_n "checking for fgrep... " >&6; }
5567if test "${ac_cv_path_FGREP+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5569else
5570 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5571 then ac_cv_path_FGREP="$GREP -F"
5572 else
5573 if test -z "$FGREP"; then
5574 ac_path_FGREP_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 fgrep; do
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5584 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5585# Check for GNU ac_path_FGREP and select it if it is found.
5586 # Check for GNU $ac_path_FGREP
5587case `"$ac_path_FGREP" --version 2>&1` in
5588*GNU*)
5589 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_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 'FGREP' >> "conftest.nl"
5599 "$ac_path_FGREP" FGREP < "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_FGREP_max-0}; then
5603 # Best one so far, save it but keep looking for a better one
5604 ac_cv_path_FGREP="$ac_path_FGREP"
5605 ac_path_FGREP_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_FGREP_found && break 3
5614 done
5615 done
5616 done
5617IFS=$as_save_IFS
5618 if test -z "$ac_cv_path_FGREP"; then
5619 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5620 fi
5621else
5622 ac_cv_path_FGREP=$FGREP
5623fi
5624
5625 fi
5626fi
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5628$as_echo "$ac_cv_path_FGREP" >&6; }
5629 FGREP="$ac_cv_path_FGREP"
5630
5631
5632test -z "$GREP" && GREP=grep
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652# Check whether --with-gnu-ld was given.
5653if test "${with_gnu_ld+set}" = set; then :
5654 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5655else
5656 with_gnu_ld=no
5657fi
5658
5659ac_prog=ld
5660if test "$GCC" = yes; then
5661 # Check if gcc -print-prog-name=ld gives a path.
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5663$as_echo_n "checking for ld used by $CC... " >&6; }
5664 case $host in
5665 *-*-mingw*)
5666 # gcc leaves a trailing carriage return which upsets mingw
5667 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5668 *)
5669 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5670 esac
5671 case $ac_prog in
5672 # Accept absolute paths.
5673 [\\/]* | ?:[\\/]*)
5674 re_direlt='/[^/][^/]*/\.\./'
5675 # Canonicalize the pathname of ld
5676 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5677 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5678 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5679 done
5680 test -z "$LD" && LD="$ac_prog"
5681 ;;
5682 "")
5683 # If it fails, then pretend we aren't using GCC.
5684 ac_prog=ld
5685 ;;
5686 *)
5687 # If it is relative, then search for the first ld in PATH.
5688 with_gnu_ld=unknown
5689 ;;
5690 esac
5691elif test "$with_gnu_ld" = yes; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5693$as_echo_n "checking for GNU ld... " >&6; }
5694else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5696$as_echo_n "checking for non-GNU ld... " >&6; }
5697fi
5698if test "${lt_cv_path_LD+set}" = set; then :
5699 $as_echo_n "(cached) " >&6
5700else
5701 if test -z "$LD"; then
5702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5703 for ac_dir in $PATH; do
5704 IFS="$lt_save_ifs"
5705 test -z "$ac_dir" && ac_dir=.
5706 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5707 lt_cv_path_LD="$ac_dir/$ac_prog"
5708 # Check to see if the program is GNU ld. I'd rather use --version,
5709 # but apparently some variants of GNU ld only accept -v.
5710 # Break only if it was the GNU/non-GNU ld that we prefer.
5711 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5712 *GNU* | *'with BFD'*)
5713 test "$with_gnu_ld" != no && break
5714 ;;
5715 *)
5716 test "$with_gnu_ld" != yes && break
5717 ;;
5718 esac
5719 fi
5720 done
5721 IFS="$lt_save_ifs"
5722else
5723 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5724fi
5725fi
5726
5727LD="$lt_cv_path_LD"
5728if test -n "$LD"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5730$as_echo "$LD" >&6; }
5731else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733$as_echo "no" >&6; }
5734fi
5735test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5737$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5738if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5739 $as_echo_n "(cached) " >&6
5740else
5741 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5742case `$LD -v 2>&1 </dev/null` in
5743*GNU* | *'with BFD'*)
5744 lt_cv_prog_gnu_ld=yes
5745 ;;
5746*)
5747 lt_cv_prog_gnu_ld=no
5748 ;;
5749esac
5750fi
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5752$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5753with_gnu_ld=$lt_cv_prog_gnu_ld
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5764$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5765if test "${lt_cv_path_NM+set}" = set; then :
5766 $as_echo_n "(cached) " >&6
5767else
5768 if test -n "$NM"; then
5769 # Let the user override the test.
5770 lt_cv_path_NM="$NM"
5771else
5772 lt_nm_to_check="${ac_tool_prefix}nm"
5773 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5774 lt_nm_to_check="$lt_nm_to_check nm"
5775 fi
5776 for lt_tmp_nm in $lt_nm_to_check; do
5777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5778 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5779 IFS="$lt_save_ifs"
5780 test -z "$ac_dir" && ac_dir=.
5781 tmp_nm="$ac_dir/$lt_tmp_nm"
5782 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5783 # Check to see if the nm accepts a BSD-compat flag.
5784 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5785 # nm: unknown option "B" ignored
5786 # Tru64's nm complains that /dev/null is an invalid object file
5787 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5788 */dev/null* | *'Invalid file or object type'*)
5789 lt_cv_path_NM="$tmp_nm -B"
5790 break
5791 ;;
5792 *)
5793 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5794 */dev/null*)
5795 lt_cv_path_NM="$tmp_nm -p"
5796 break
5797 ;;
5798 *)
5799 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5800 continue # so that we can try to find one that supports BSD flags
5801 ;;
5802 esac
5803 ;;
5804 esac
5805 fi
5806 done
5807 IFS="$lt_save_ifs"
5808 done
5809 : ${lt_cv_path_NM=no}
5810fi
5811fi
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5813$as_echo "$lt_cv_path_NM" >&6; }
5814if test "$lt_cv_path_NM" != "no"; then
5815 NM="$lt_cv_path_NM"
5816else
5817 # Didn't find any BSD compatible name lister, look for dumpbin.
5818 if test -n "$DUMPBIN"; then :
5819 # Let the user override the test.
5820 else
5821 if test -n "$ac_tool_prefix"; then
5822 for ac_prog in dumpbin "link -dump"
5823 do
5824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5825set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827$as_echo_n "checking for $ac_word... " >&6; }
5828if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5830else
5831 if test -n "$DUMPBIN"; then
5832 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5833else
5834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835for as_dir in $PATH
5836do
5837 IFS=$as_save_IFS
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 break 2
5844 fi
5845done
5846 done
5847IFS=$as_save_IFS
5848
5849fi
5850fi
5851DUMPBIN=$ac_cv_prog_DUMPBIN
5852if test -n "$DUMPBIN"; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5854$as_echo "$DUMPBIN" >&6; }
5855else
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857$as_echo "no" >&6; }
5858fi
5859
5860
5861 test -n "$DUMPBIN" && break
5862 done
5863fi
5864if test -z "$DUMPBIN"; then
5865 ac_ct_DUMPBIN=$DUMPBIN
5866 for ac_prog in dumpbin "link -dump"
5867do
5868 # Extract the first word of "$ac_prog", so it can be a program name with args.
5869set dummy $ac_prog; ac_word=$2
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871$as_echo_n "checking for $ac_word... " >&6; }
5872if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5874else
5875 if test -n "$ac_ct_DUMPBIN"; then
5876 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5877else
5878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879for as_dir in $PATH
5880do
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5888 fi
5889done
5890 done
5891IFS=$as_save_IFS
5892
5893fi
5894fi
5895ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5896if test -n "$ac_ct_DUMPBIN"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5898$as_echo "$ac_ct_DUMPBIN" >&6; }
5899else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901$as_echo "no" >&6; }
5902fi
5903
5904
5905 test -n "$ac_ct_DUMPBIN" && break
5906done
5907
5908 if test "x$ac_ct_DUMPBIN" = x; then
5909 DUMPBIN=":"
5910 else
5911 case $cross_compiling:$ac_tool_warned in
5912yes:)
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5915ac_tool_warned=yes ;;
5916esac
5917 DUMPBIN=$ac_ct_DUMPBIN
5918 fi
5919fi
5920
5921 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5922 *COFF*)
5923 DUMPBIN="$DUMPBIN -symbols"
5924 ;;
5925 *)
5926 DUMPBIN=:
5927 ;;
5928 esac
5929 fi
5930
5931 if test "$DUMPBIN" != ":"; then
5932 NM="$DUMPBIN"
5933 fi
5934fi
5935test -z "$NM" && NM=nm
5936
5937
5938
5939
5940
5941
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5943$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5944if test "${lt_cv_nm_interface+set}" = set; then :
5945 $as_echo_n "(cached) " >&6
5946else
5947 lt_cv_nm_interface="BSD nm"
5948 echo "int some_variable = 0;" > conftest.$ac_ext
5949 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5950 (eval "$ac_compile" 2>conftest.err)
5951 cat conftest.err >&5
5952 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5953 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5954 cat conftest.err >&5
5955 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5956 cat conftest.out >&5
5957 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5958 lt_cv_nm_interface="MS dumpbin"
5959 fi
5960 rm -f conftest*
5961fi
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5963$as_echo "$lt_cv_nm_interface" >&6; }
5964
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5966$as_echo_n "checking whether ln -s works... " >&6; }
5967LN_S=$as_ln_s
5968if test "$LN_S" = "ln -s"; then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5970$as_echo "yes" >&6; }
5971else
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5973$as_echo "no, using $LN_S" >&6; }
5974fi
5975
5976# find the maximum length of command line arguments
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5978$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5979if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5980 $as_echo_n "(cached) " >&6
5981else
5982 i=0
5983 teststring="ABCD"
5984
5985 case $build_os in
5986 msdosdjgpp*)
5987 # On DJGPP, this test can blow up pretty badly due to problems in libc
5988 # (any single argument exceeding 2000 bytes causes a buffer overrun
5989 # during glob expansion). Even if it were fixed, the result of this
5990 # check would be larger than it should be.
5991 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5992 ;;
5993
5994 gnu*)
5995 # Under GNU Hurd, this test is not required because there is
5996 # no limit to the length of command line arguments.
5997 # Libtool will interpret -1 as no limit whatsoever
5998 lt_cv_sys_max_cmd_len=-1;
5999 ;;
6000
6001 cygwin* | mingw* | cegcc*)
6002 # On Win9x/ME, this test blows up -- it succeeds, but takes
6003 # about 5 minutes as the teststring grows exponentially.
6004 # Worse, since 9x/ME are not pre-emptively multitasking,
6005 # you end up with a "frozen" computer, even though with patience
6006 # the test eventually succeeds (with a max line length of 256k).
6007 # Instead, let's just punt: use the minimum linelength reported by
6008 # all of the supported platforms: 8192 (on NT/2K/XP).
6009 lt_cv_sys_max_cmd_len=8192;
6010 ;;
6011
6012 mint*)
6013 # On MiNT this can take a long time and run out of memory.
6014 lt_cv_sys_max_cmd_len=8192;
6015 ;;
6016
6017 amigaos*)
6018 # On AmigaOS with pdksh, this test takes hours, literally.
6019 # So we just punt and use a minimum line length of 8192.
6020 lt_cv_sys_max_cmd_len=8192;
6021 ;;
6022
6023 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6024 # This has been around since 386BSD, at least. Likely further.
6025 if test -x /sbin/sysctl; then
6026 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6027 elif test -x /usr/sbin/sysctl; then
6028 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6029 else
6030 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6031 fi
6032 # And add a safety zone
6033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6035 ;;
6036
6037 interix*)
6038 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6039 lt_cv_sys_max_cmd_len=196608
6040 ;;
6041
6042 osf*)
6043 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6044 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6045 # nice to cause kernel panics so lets avoid the loop below.
6046 # First set a reasonable default.
6047 lt_cv_sys_max_cmd_len=16384
6048 #
6049 if test -x /sbin/sysconfig; then
6050 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6051 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6052 esac
6053 fi
6054 ;;
6055 sco3.2v5*)
6056 lt_cv_sys_max_cmd_len=102400
6057 ;;
6058 sysv5* | sco5v6* | sysv4.2uw2*)
6059 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6060 if test -n "$kargmax"; then
6061 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6062 else
6063 lt_cv_sys_max_cmd_len=32768
6064 fi
6065 ;;
6066 *)
6067 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6068 if test -n "$lt_cv_sys_max_cmd_len"; then
6069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6071 else
6072 # Make teststring a little bigger before we do anything with it.
6073 # a 1K string should be a reasonable start.
6074 for i in 1 2 3 4 5 6 7 8 ; do
6075 teststring=$teststring$teststring
6076 done
6077 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6078 # If test is not a shell built-in, we'll probably end up computing a
6079 # maximum length that is only half of the actual maximum length, but
6080 # we can't tell.
6081 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6082 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6083 test $i != 17 # 1/2 MB should be enough
6084 do
6085 i=`expr $i + 1`
6086 teststring=$teststring$teststring
6087 done
6088 # Only check the string length outside the loop.
6089 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6090 teststring=
6091 # Add a significant safety factor because C++ compilers can tack on
6092 # massive amounts of additional arguments before passing them to the
6093 # linker. It appears as though 1/2 is a usable value.
6094 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6095 fi
6096 ;;
6097 esac
6098
6099fi
6100
6101if test -n $lt_cv_sys_max_cmd_len ; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6103$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6104else
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6106$as_echo "none" >&6; }
6107fi
6108max_cmd_len=$lt_cv_sys_max_cmd_len
6109
6110
6111
6112
6113
6114
6115: ${CP="cp -f"}
6116: ${MV="mv -f"}
6117: ${RM="rm -f"}
6118
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6120$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6121# Try some XSI features
6122xsi_shell=no
6123( _lt_dummy="a/b/c"
6124 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6125 = c,a/b,, \
6126 && eval 'test $(( 1 + 1 )) -eq 2 \
6127 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6128 && xsi_shell=yes
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6130$as_echo "$xsi_shell" >&6; }
6131
6132
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6134$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6135lt_shell_append=no
6136( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6137 >/dev/null 2>&1 \
6138 && lt_shell_append=yes
6139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6140$as_echo "$lt_shell_append" >&6; }
6141
6142
6143if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6144 lt_unset=unset
6145else
6146 lt_unset=false
6147fi
6148
6149
6150
6151
6152
6153# test EBCDIC or ASCII
6154case `echo X|tr X '\101'` in
6155 A) # ASCII based system
6156 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6157 lt_SP2NL='tr \040 \012'
6158 lt_NL2SP='tr \015\012 \040\040'
6159 ;;
6160 *) # EBCDIC based system
6161 lt_SP2NL='tr \100 \n'
6162 lt_NL2SP='tr \r\n \100\100'
6163 ;;
6164esac
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6175$as_echo_n "checking for $LD option to reload object files... " >&6; }
6176if test "${lt_cv_ld_reload_flag+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6178else
6179 lt_cv_ld_reload_flag='-r'
6180fi
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6182$as_echo "$lt_cv_ld_reload_flag" >&6; }
6183reload_flag=$lt_cv_ld_reload_flag
6184case $reload_flag in
6185"" | " "*) ;;
6186*) reload_flag=" $reload_flag" ;;
6187esac
6188reload_cmds='$LD$reload_flag -o $output$reload_objs'
6189case $host_os in
6190 darwin*)
6191 if test "$GCC" = yes; then
6192 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6193 else
6194 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6195 fi
6196 ;;
6197esac
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207if test -n "$ac_tool_prefix"; then
6208 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6209set dummy ${ac_tool_prefix}objdump; ac_word=$2
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211$as_echo_n "checking for $ac_word... " >&6; }
6212if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6214else
6215 if test -n "$OBJDUMP"; then
6216 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6217else
6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 break 2
6228 fi
6229done
6230 done
6231IFS=$as_save_IFS
6232
6233fi
6234fi
6235OBJDUMP=$ac_cv_prog_OBJDUMP
6236if test -n "$OBJDUMP"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6238$as_echo "$OBJDUMP" >&6; }
6239else
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241$as_echo "no" >&6; }
6242fi
6243
6244
6245fi
6246if test -z "$ac_cv_prog_OBJDUMP"; then
6247 ac_ct_OBJDUMP=$OBJDUMP
6248 # Extract the first word of "objdump", so it can be a program name with args.
6249set dummy objdump; ac_word=$2
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251$as_echo_n "checking for $ac_word... " >&6; }
6252if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
6254else
6255 if test -n "$ac_ct_OBJDUMP"; then
6256 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6257else
6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259for as_dir in $PATH
6260do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 break 2
6268 fi
6269done
6270 done
6271IFS=$as_save_IFS
6272
6273fi
6274fi
6275ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6276if test -n "$ac_ct_OBJDUMP"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6278$as_echo "$ac_ct_OBJDUMP" >&6; }
6279else
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281$as_echo "no" >&6; }
6282fi
6283
6284 if test "x$ac_ct_OBJDUMP" = x; then
6285 OBJDUMP="false"
6286 else
6287 case $cross_compiling:$ac_tool_warned in
6288yes:)
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6291ac_tool_warned=yes ;;
6292esac
6293 OBJDUMP=$ac_ct_OBJDUMP
6294 fi
6295else
6296 OBJDUMP="$ac_cv_prog_OBJDUMP"
6297fi
6298
6299test -z "$OBJDUMP" && OBJDUMP=objdump
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6310$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6311if test "${lt_cv_deplibs_check_method+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6313else
6314 lt_cv_file_magic_cmd='$MAGIC_CMD'
6315lt_cv_file_magic_test_file=
6316lt_cv_deplibs_check_method='unknown'
6317# Need to set the preceding variable on all platforms that support
6318# interlibrary dependencies.
6319# 'none' -- dependencies not supported.
6320# `unknown' -- same as none, but documents that we really don't know.
6321# 'pass_all' -- all dependencies passed with no checks.
6322# 'test_compile' -- check by making test program.
6323# 'file_magic [[regex]]' -- check by looking for files in library path
6324# which responds to the $file_magic_cmd with a given extended regex.
6325# If you have `file' or equivalent on your system and you're not sure
6326# whether `pass_all' will *always* work, you probably want this one.
6327
6328case $host_os in
6329aix[4-9]*)
6330 lt_cv_deplibs_check_method=pass_all
6331 ;;
6332
6333beos*)
6334 lt_cv_deplibs_check_method=pass_all
6335 ;;
6336
6337bsdi[45]*)
6338 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6339 lt_cv_file_magic_cmd='/usr/bin/file -L'
6340 lt_cv_file_magic_test_file=/shlib/libc.so
6341 ;;
6342
6343cygwin*)
6344 # func_win32_libid is a shell function defined in ltmain.sh
6345 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6346 lt_cv_file_magic_cmd='func_win32_libid'
6347 ;;
6348
6349mingw* | pw32*)
6350 # Base MSYS/MinGW do not provide the 'file' command needed by
6351 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6352 # unless we find 'file', for example because we are cross-compiling.
6353 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6354 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6355 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6356 lt_cv_file_magic_cmd='func_win32_libid'
6357 else
6358 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6359 lt_cv_file_magic_cmd='$OBJDUMP -f'
6360 fi
6361 ;;
6362
6363cegcc*)
6364 # use the weaker test based on 'objdump'. See mingw*.
6365 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6366 lt_cv_file_magic_cmd='$OBJDUMP -f'
6367 ;;
6368
6369darwin* | rhapsody*)
6370 lt_cv_deplibs_check_method=pass_all
6371 ;;
6372
6373freebsd* | dragonfly*)
6374 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6375 case $host_cpu in
6376 i*86 )
6377 # Not sure whether the presence of OpenBSD here was a mistake.
6378 # Let's accept both of them until this is cleared up.
6379 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6380 lt_cv_file_magic_cmd=/usr/bin/file
6381 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6382 ;;
6383 esac
6384 else
6385 lt_cv_deplibs_check_method=pass_all
6386 fi
6387 ;;
6388
6389gnu*)
6390 lt_cv_deplibs_check_method=pass_all
6391 ;;
6392
6393haiku*)
6394 lt_cv_deplibs_check_method=pass_all
6395 ;;
6396
6397hpux10.20* | hpux11*)
6398 lt_cv_file_magic_cmd=/usr/bin/file
6399 case $host_cpu in
6400 ia64*)
6401 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6402 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6403 ;;
6404 hppa*64*)
6405 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]'
6406 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6407 ;;
6408 *)
6409 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6410 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6411 ;;
6412 esac
6413 ;;
6414
6415interix[3-9]*)
6416 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6418 ;;
6419
6420irix5* | irix6* | nonstopux*)
6421 case $LD in
6422 *-32|*"-32 ") libmagic=32-bit;;
6423 *-n32|*"-n32 ") libmagic=N32;;
6424 *-64|*"-64 ") libmagic=64-bit;;
6425 *) libmagic=never-match;;
6426 esac
6427 lt_cv_deplibs_check_method=pass_all
6428 ;;
6429
6430# This must be Linux ELF.
6431linux* | k*bsd*-gnu | kopensolaris*-gnu)
6432 lt_cv_deplibs_check_method=pass_all
6433 ;;
6434
6435netbsd*)
6436 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6438 else
6439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6440 fi
6441 ;;
6442
6443newos6*)
6444 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6445 lt_cv_file_magic_cmd=/usr/bin/file
6446 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6447 ;;
6448
6449*nto* | *qnx*)
6450 lt_cv_deplibs_check_method=pass_all
6451 ;;
6452
6453openbsd*)
6454 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6455 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6456 else
6457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6458 fi
6459 ;;
6460
6461osf3* | osf4* | osf5*)
6462 lt_cv_deplibs_check_method=pass_all
6463 ;;
6464
6465rdos*)
6466 lt_cv_deplibs_check_method=pass_all
6467 ;;
6468
6469solaris*)
6470 lt_cv_deplibs_check_method=pass_all
6471 ;;
6472
6473sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6474 lt_cv_deplibs_check_method=pass_all
6475 ;;
6476
6477sysv4 | sysv4.3*)
6478 case $host_vendor in
6479 motorola)
6480 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]'
6481 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6482 ;;
6483 ncr)
6484 lt_cv_deplibs_check_method=pass_all
6485 ;;
6486 sequent)
6487 lt_cv_file_magic_cmd='/bin/file'
6488 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6489 ;;
6490 sni)
6491 lt_cv_file_magic_cmd='/bin/file'
6492 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6493 lt_cv_file_magic_test_file=/lib/libc.so
6494 ;;
6495 siemens)
6496 lt_cv_deplibs_check_method=pass_all
6497 ;;
6498 pc)
6499 lt_cv_deplibs_check_method=pass_all
6500 ;;
6501 esac
6502 ;;
6503
6504tpf*)
6505 lt_cv_deplibs_check_method=pass_all
6506 ;;
6507esac
6508
6509fi
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6511$as_echo "$lt_cv_deplibs_check_method" >&6; }
6512file_magic_cmd=$lt_cv_file_magic_cmd
6513deplibs_check_method=$lt_cv_deplibs_check_method
6514test -z "$deplibs_check_method" && deplibs_check_method=unknown
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527if test -n "$ac_tool_prefix"; then
6528 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6529set dummy ${ac_tool_prefix}ar; ac_word=$2
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531$as_echo_n "checking for $ac_word... " >&6; }
6532if test "${ac_cv_prog_AR+set}" = set; then :
6533 $as_echo_n "(cached) " >&6
6534else
6535 if test -n "$AR"; then
6536 ac_cv_prog_AR="$AR" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6545 ac_cv_prog_AR="${ac_tool_prefix}ar"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549done
6550 done
6551IFS=$as_save_IFS
6552
6553fi
6554fi
6555AR=$ac_cv_prog_AR
6556if test -n "$AR"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6558$as_echo "$AR" >&6; }
6559else
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561$as_echo "no" >&6; }
6562fi
6563
6564
6565fi
6566if test -z "$ac_cv_prog_AR"; then
6567 ac_ct_AR=$AR
6568 # Extract the first word of "ar", so it can be a program name with args.
6569set dummy ar; ac_word=$2
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571$as_echo_n "checking for $ac_word... " >&6; }
6572if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6573 $as_echo_n "(cached) " >&6
6574else
6575 if test -n "$ac_ct_AR"; then
6576 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6577else
6578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579for as_dir in $PATH
6580do
6581 IFS=$as_save_IFS
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_prog_ac_ct_AR="ar"
6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 break 2
6588 fi
6589done
6590 done
6591IFS=$as_save_IFS
6592
6593fi
6594fi
6595ac_ct_AR=$ac_cv_prog_ac_ct_AR
6596if test -n "$ac_ct_AR"; then
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6598$as_echo "$ac_ct_AR" >&6; }
6599else
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601$as_echo "no" >&6; }
6602fi
6603
6604 if test "x$ac_ct_AR" = x; then
6605 AR="false"
6606 else
6607 case $cross_compiling:$ac_tool_warned in
6608yes:)
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6611ac_tool_warned=yes ;;
6612esac
6613 AR=$ac_ct_AR
6614 fi
6615else
6616 AR="$ac_cv_prog_AR"
6617fi
6618
6619test -z "$AR" && AR=ar
6620test -z "$AR_FLAGS" && AR_FLAGS=cru
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632if test -n "$ac_tool_prefix"; then
6633 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6634set dummy ${ac_tool_prefix}strip; ac_word=$2
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636$as_echo_n "checking for $ac_word... " >&6; }
6637if test "${ac_cv_prog_STRIP+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
6639else
6640 if test -n "$STRIP"; then
6641 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6642else
6643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644for as_dir in $PATH
6645do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654done
6655 done
6656IFS=$as_save_IFS
6657
6658fi
6659fi
6660STRIP=$ac_cv_prog_STRIP
6661if test -n "$STRIP"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6663$as_echo "$STRIP" >&6; }
6664else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666$as_echo "no" >&6; }
6667fi
6668
6669
6670fi
6671if test -z "$ac_cv_prog_STRIP"; then
6672 ac_ct_STRIP=$STRIP
6673 # Extract the first word of "strip", so it can be a program name with args.
6674set dummy strip; ac_word=$2
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676$as_echo_n "checking for $ac_word... " >&6; }
6677if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6678 $as_echo_n "(cached) " >&6
6679else
6680 if test -n "$ac_ct_STRIP"; then
6681 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6682else
6683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in $PATH
6685do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_prog_ac_ct_STRIP="strip"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 break 2
6693 fi
6694done
6695 done
6696IFS=$as_save_IFS
6697
6698fi
6699fi
6700ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6701if test -n "$ac_ct_STRIP"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6703$as_echo "$ac_ct_STRIP" >&6; }
6704else
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706$as_echo "no" >&6; }
6707fi
6708
6709 if test "x$ac_ct_STRIP" = x; then
6710 STRIP=":"
6711 else
6712 case $cross_compiling:$ac_tool_warned in
6713yes:)
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716ac_tool_warned=yes ;;
6717esac
6718 STRIP=$ac_ct_STRIP
6719 fi
6720else
6721 STRIP="$ac_cv_prog_STRIP"
6722fi
6723
6724test -z "$STRIP" && STRIP=:
6725
6726
6727
6728
6729
6730
6731if test -n "$ac_tool_prefix"; then
6732 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6733set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735$as_echo_n "checking for $ac_word... " >&6; }
6736if test "${ac_cv_prog_RANLIB+set}" = set; then :
6737 $as_echo_n "(cached) " >&6
6738else
6739 if test -n "$RANLIB"; then
6740 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753done
6754 done
6755IFS=$as_save_IFS
6756
6757fi
6758fi
6759RANLIB=$ac_cv_prog_RANLIB
6760if test -n "$RANLIB"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6762$as_echo "$RANLIB" >&6; }
6763else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765$as_echo "no" >&6; }
6766fi
6767
6768
6769fi
6770if test -z "$ac_cv_prog_RANLIB"; then
6771 ac_ct_RANLIB=$RANLIB
6772 # Extract the first word of "ranlib", so it can be a program name with args.
6773set dummy ranlib; ac_word=$2
6774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775$as_echo_n "checking for $ac_word... " >&6; }
6776if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6777 $as_echo_n "(cached) " >&6
6778else
6779 if test -n "$ac_ct_RANLIB"; then
6780 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6781else
6782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783for as_dir in $PATH
6784do
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789 ac_cv_prog_ac_ct_RANLIB="ranlib"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793done
6794 done
6795IFS=$as_save_IFS
6796
6797fi
6798fi
6799ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6800if test -n "$ac_ct_RANLIB"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6802$as_echo "$ac_ct_RANLIB" >&6; }
6803else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805$as_echo "no" >&6; }
6806fi
6807
6808 if test "x$ac_ct_RANLIB" = x; then
6809 RANLIB=":"
6810 else
6811 case $cross_compiling:$ac_tool_warned in
6812yes:)
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6815ac_tool_warned=yes ;;
6816esac
6817 RANLIB=$ac_ct_RANLIB
6818 fi
6819else
6820 RANLIB="$ac_cv_prog_RANLIB"
6821fi
6822
6823test -z "$RANLIB" && RANLIB=:
6824
6825
6826
6827
6828
6829
6830# Determine commands to create old-style static archives.
6831old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6832old_postinstall_cmds='chmod 644 $oldlib'
6833old_postuninstall_cmds=
6834
6835if test -n "$RANLIB"; then
6836 case $host_os in
6837 openbsd*)
6838 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6839 ;;
6840 *)
6841 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6842 ;;
6843 esac
6844 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6845fi
6846
6847case $host_os in
6848 darwin*)
6849 lock_old_archive_extraction=yes ;;
6850 *)
6851 lock_old_archive_extraction=no ;;
6852esac
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892# If no C compiler was specified, use CC.
6893LTCC=${LTCC-"$CC"}
6894
6895# If no C compiler flags were specified, use CFLAGS.
6896LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6897
6898# Allow CC to be a program name with arguments.
6899compiler=$CC
6900
6901
6902# Check for command to grab the raw symbol name followed by C symbol from nm.
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6904$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6905if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6906 $as_echo_n "(cached) " >&6
6907else
6908
6909# These are sane defaults that work on at least a few old systems.
6910# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6911
6912# Character class describing NM global symbol codes.
6913symcode='[BCDEGRST]'
6914
6915# Regexp to match symbols that can be accessed directly from C.
6916sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6917
6918# Define system-specific variables.
6919case $host_os in
6920aix*)
6921 symcode='[BCDT]'
6922 ;;
6923cygwin* | mingw* | pw32* | cegcc*)
6924 symcode='[ABCDGISTW]'
6925 ;;
6926hpux*)
6927 if test "$host_cpu" = ia64; then
6928 symcode='[ABCDEGRST]'
6929 fi
6930 ;;
6931irix* | nonstopux*)
6932 symcode='[BCDEGRST]'
6933 ;;
6934osf*)
6935 symcode='[BCDEGQRST]'
6936 ;;
6937solaris*)
6938 symcode='[BDRT]'
6939 ;;
6940sco3.2v5*)
6941 symcode='[DT]'
6942 ;;
6943sysv4.2uw2*)
6944 symcode='[DT]'
6945 ;;
6946sysv5* | sco5v6* | unixware* | OpenUNIX*)
6947 symcode='[ABDT]'
6948 ;;
6949sysv4)
6950 symcode='[DFNSTU]'
6951 ;;
6952esac
6953
6954# If we're using GNU nm, then use its standard symbol codes.
6955case `$NM -V 2>&1` in
6956*GNU* | *'with BFD'*)
6957 symcode='[ABCDGIRSTW]' ;;
6958esac
6959
6960# Transform an extracted symbol line into a proper C declaration.
6961# Some systems (esp. on ia64) link data and code symbols differently,
6962# so use this general approach.
6963lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6964
6965# Transform an extracted symbol line into symbol name and symbol address
6966lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6967lt_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'"
6968
6969# Handle CRLF in mingw tool chain
6970opt_cr=
6971case $build_os in
6972mingw*)
6973 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6974 ;;
6975esac
6976
6977# Try without a prefix underscore, then with it.
6978for ac_symprfx in "" "_"; do
6979
6980 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6981 symxfrm="\\1 $ac_symprfx\\2 \\2"
6982
6983 # Write the raw and C identifiers.
6984 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6985 # Fake it for dumpbin and say T for any non-static function
6986 # and D for any global variable.
6987 # Also find C++ and __fastcall symbols from MSVC++,
6988 # which start with @ or ?.
6989 lt_cv_sys_global_symbol_pipe="$AWK '"\
6990" {last_section=section; section=\$ 3};"\
6991" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6992" \$ 0!~/External *\|/{next};"\
6993" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6994" {if(hide[section]) next};"\
6995" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6996" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6997" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6998" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6999" ' prfx=^$ac_symprfx"
7000 else
7001 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7002 fi
7003
7004 # Check to see that the pipe works correctly.
7005 pipe_works=no
7006
7007 rm -f conftest*
7008 cat > conftest.$ac_ext <<_LT_EOF
7009#ifdef __cplusplus
7010extern "C" {
7011#endif
7012char nm_test_var;
7013void nm_test_func(void);
7014void nm_test_func(void){}
7015#ifdef __cplusplus
7016}
7017#endif
7018int main(){nm_test_var='a';nm_test_func();return(0);}
7019_LT_EOF
7020
7021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7022 (eval $ac_compile) 2>&5
7023 ac_status=$?
7024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7025 test $ac_status = 0; }; then
7026 # Now try to grab the symbols.
7027 nlist=conftest.nm
7028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7029 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7030 ac_status=$?
7031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7032 test $ac_status = 0; } && test -s "$nlist"; then
7033 # Try sorting and uniquifying the output.
7034 if sort "$nlist" | uniq > "$nlist"T; then
7035 mv -f "$nlist"T "$nlist"
7036 else
7037 rm -f "$nlist"T
7038 fi
7039
7040 # Make sure that we snagged all the symbols we need.
7041 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7042 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7043 cat <<_LT_EOF > conftest.$ac_ext
7044#ifdef __cplusplus
7045extern "C" {
7046#endif
7047
7048_LT_EOF
7049 # Now generate the symbol file.
7050 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7051
7052 cat <<_LT_EOF >> conftest.$ac_ext
7053
7054/* The mapping between symbol names and symbols. */
7055const struct {
7056 const char *name;
7057 void *address;
7058}
7059lt__PROGRAM__LTX_preloaded_symbols[] =
7060{
7061 { "@PROGRAM@", (void *) 0 },
7062_LT_EOF
7063 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7064 cat <<\_LT_EOF >> conftest.$ac_ext
7065 {0, (void *) 0}
7066};
7067
7068/* This works around a problem in FreeBSD linker */
7069#ifdef FREEBSD_WORKAROUND
7070static const void *lt_preloaded_setup() {
7071 return lt__PROGRAM__LTX_preloaded_symbols;
7072}
7073#endif
7074
7075#ifdef __cplusplus
7076}
7077#endif
7078_LT_EOF
7079 # Now try linking the two files.
7080 mv conftest.$ac_objext conftstm.$ac_objext
7081 lt_save_LIBS="$LIBS"
7082 lt_save_CFLAGS="$CFLAGS"
7083 LIBS="conftstm.$ac_objext"
7084 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7086 (eval $ac_link) 2>&5
7087 ac_status=$?
7088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7089 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7090 pipe_works=yes
7091 fi
7092 LIBS="$lt_save_LIBS"
7093 CFLAGS="$lt_save_CFLAGS"
7094 else
7095 echo "cannot find nm_test_func in $nlist" >&5
7096 fi
7097 else
7098 echo "cannot find nm_test_var in $nlist" >&5
7099 fi
7100 else
7101 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7102 fi
7103 else
7104 echo "$progname: failed program was:" >&5
7105 cat conftest.$ac_ext >&5
7106 fi
7107 rm -rf conftest* conftst*
7108
7109 # Do not use the global_symbol_pipe unless it works.
7110 if test "$pipe_works" = yes; then
7111 break
7112 else
7113 lt_cv_sys_global_symbol_pipe=
7114 fi
7115done
7116
7117fi
7118
7119if test -z "$lt_cv_sys_global_symbol_pipe"; then
7120 lt_cv_sys_global_symbol_to_cdecl=
7121fi
7122if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7124$as_echo "failed" >&6; }
7125else
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7127$as_echo "ok" >&6; }
7128fi
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152# Check whether --enable-libtool-lock was given.
7153if test "${enable_libtool_lock+set}" = set; then :
7154 enableval=$enable_libtool_lock;
7155fi
7156
7157test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7158
7159# Some flags need to be propagated to the compiler or linker for good
7160# libtool support.
7161case $host in
7162ia64-*-hpux*)
7163 # Find out which ABI we are using.
7164 echo 'int i;' > conftest.$ac_ext
7165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7166 (eval $ac_compile) 2>&5
7167 ac_status=$?
7168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7169 test $ac_status = 0; }; then
7170 case `/usr/bin/file conftest.$ac_objext` in
7171 *ELF-32*)
7172 HPUX_IA64_MODE="32"
7173 ;;
7174 *ELF-64*)
7175 HPUX_IA64_MODE="64"
7176 ;;
7177 esac
7178 fi
7179 rm -rf conftest*
7180 ;;
7181*-*-irix6*)
7182 # Find out which ABI we are using.
7183 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7185 (eval $ac_compile) 2>&5
7186 ac_status=$?
7187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7188 test $ac_status = 0; }; then
7189 if test "$lt_cv_prog_gnu_ld" = yes; then
7190 case `/usr/bin/file conftest.$ac_objext` in
7191 *32-bit*)
7192 LD="${LD-ld} -melf32bsmip"
7193 ;;
7194 *N32*)
7195 LD="${LD-ld} -melf32bmipn32"
7196 ;;
7197 *64-bit*)
7198 LD="${LD-ld} -melf64bmip"
7199 ;;
7200 esac
7201 else
7202 case `/usr/bin/file conftest.$ac_objext` in
7203 *32-bit*)
7204 LD="${LD-ld} -32"
7205 ;;
7206 *N32*)
7207 LD="${LD-ld} -n32"
7208 ;;
7209 *64-bit*)
7210 LD="${LD-ld} -64"
7211 ;;
7212 esac
7213 fi
7214 fi
7215 rm -rf conftest*
7216 ;;
7217
7218x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7219s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7220 # Find out which ABI we are using.
7221 echo 'int i;' > conftest.$ac_ext
7222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7223 (eval $ac_compile) 2>&5
7224 ac_status=$?
7225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226 test $ac_status = 0; }; then
7227 case `/usr/bin/file conftest.o` in
7228 *32-bit*)
7229 case $host in
7230 x86_64-*kfreebsd*-gnu)
7231 LD="${LD-ld} -m elf_i386_fbsd"
7232 ;;
7233 x86_64-*linux*)
7234 LD="${LD-ld} -m elf_i386"
7235 ;;
7236 ppc64-*linux*|powerpc64-*linux*)
7237 LD="${LD-ld} -m elf32ppclinux"
7238 ;;
7239 s390x-*linux*)
7240 LD="${LD-ld} -m elf_s390"
7241 ;;
7242 sparc64-*linux*)
7243 LD="${LD-ld} -m elf32_sparc"
7244 ;;
7245 esac
7246 ;;
7247 *64-bit*)
7248 case $host in
7249 x86_64-*kfreebsd*-gnu)
7250 LD="${LD-ld} -m elf_x86_64_fbsd"
7251 ;;
7252 x86_64-*linux*)
7253 LD="${LD-ld} -m elf_x86_64"
7254 ;;
7255 ppc*-*linux*|powerpc*-*linux*)
7256 LD="${LD-ld} -m elf64ppc"
7257 ;;
7258 s390*-*linux*|s390*-*tpf*)
7259 LD="${LD-ld} -m elf64_s390"
7260 ;;
7261 sparc*-*linux*)
7262 LD="${LD-ld} -m elf64_sparc"
7263 ;;
7264 esac
7265 ;;
7266 esac
7267 fi
7268 rm -rf conftest*
7269 ;;
7270
7271*-*-sco3.2v5*)
7272 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7273 SAVE_CFLAGS="$CFLAGS"
7274 CFLAGS="$CFLAGS -belf"
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7276$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7277if test "${lt_cv_cc_needs_belf+set}" = set; then :
7278 $as_echo_n "(cached) " >&6
7279else
7280 ac_ext=c
7281ac_cpp='$CPP $CPPFLAGS'
7282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7284ac_compiler_gnu=$ac_cv_c_compiler_gnu
7285
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287/* end confdefs.h. */
7288
7289int
7290main ()
7291{
7292
7293 ;
7294 return 0;
7295}
7296_ACEOF
7297if ac_fn_c_try_link "$LINENO"; then :
7298 lt_cv_cc_needs_belf=yes
7299else
7300 lt_cv_cc_needs_belf=no
7301fi
7302rm -f core conftest.err conftest.$ac_objext \
7303 conftest$ac_exeext conftest.$ac_ext
7304 ac_ext=c
7305ac_cpp='$CPP $CPPFLAGS'
7306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7308ac_compiler_gnu=$ac_cv_c_compiler_gnu
7309
7310fi
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7312$as_echo "$lt_cv_cc_needs_belf" >&6; }
7313 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7314 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7315 CFLAGS="$SAVE_CFLAGS"
7316 fi
7317 ;;
7318sparc*-*solaris*)
7319 # Find out which ABI we are using.
7320 echo 'int i;' > conftest.$ac_ext
7321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7322 (eval $ac_compile) 2>&5
7323 ac_status=$?
7324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7325 test $ac_status = 0; }; then
7326 case `/usr/bin/file conftest.o` in
7327 *64-bit*)
7328 case $lt_cv_prog_gnu_ld in
7329 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7330 *)
7331 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7332 LD="${LD-ld} -64"
7333 fi
7334 ;;
7335 esac
7336 ;;
7337 esac
7338 fi
7339 rm -rf conftest*
7340 ;;
7341esac
7342
7343need_locks="$enable_libtool_lock"
7344
7345
7346 case $host_os in
7347 rhapsody* | darwin*)
7348 if test -n "$ac_tool_prefix"; then
7349 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7350set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352$as_echo_n "checking for $ac_word... " >&6; }
7353if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7354 $as_echo_n "(cached) " >&6
7355else
7356 if test -n "$DSYMUTIL"; then
7357 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7358else
7359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH
7361do
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7366 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 break 2
7369 fi
7370done
7371 done
7372IFS=$as_save_IFS
7373
7374fi
7375fi
7376DSYMUTIL=$ac_cv_prog_DSYMUTIL
7377if test -n "$DSYMUTIL"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7379$as_echo "$DSYMUTIL" >&6; }
7380else
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382$as_echo "no" >&6; }
7383fi
7384
7385
7386fi
7387if test -z "$ac_cv_prog_DSYMUTIL"; then
7388 ac_ct_DSYMUTIL=$DSYMUTIL
7389 # Extract the first word of "dsymutil", so it can be a program name with args.
7390set dummy dsymutil; ac_word=$2
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392$as_echo_n "checking for $ac_word... " >&6; }
7393if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7394 $as_echo_n "(cached) " >&6
7395else
7396 if test -n "$ac_ct_DSYMUTIL"; then
7397 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7398else
7399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7406 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 break 2
7409 fi
7410done
7411 done
7412IFS=$as_save_IFS
7413
7414fi
7415fi
7416ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7417if test -n "$ac_ct_DSYMUTIL"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7419$as_echo "$ac_ct_DSYMUTIL" >&6; }
7420else
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422$as_echo "no" >&6; }
7423fi
7424
7425 if test "x$ac_ct_DSYMUTIL" = x; then
7426 DSYMUTIL=":"
7427 else
7428 case $cross_compiling:$ac_tool_warned in
7429yes:)
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7432ac_tool_warned=yes ;;
7433esac
7434 DSYMUTIL=$ac_ct_DSYMUTIL
7435 fi
7436else
7437 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7438fi
7439
7440 if test -n "$ac_tool_prefix"; then
7441 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7442set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444$as_echo_n "checking for $ac_word... " >&6; }
7445if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7447else
7448 if test -n "$NMEDIT"; then
7449 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7450else
7451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452for as_dir in $PATH
7453do
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 break 2
7461 fi
7462done
7463 done
7464IFS=$as_save_IFS
7465
7466fi
7467fi
7468NMEDIT=$ac_cv_prog_NMEDIT
7469if test -n "$NMEDIT"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7471$as_echo "$NMEDIT" >&6; }
7472else
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474$as_echo "no" >&6; }
7475fi
7476
7477
7478fi
7479if test -z "$ac_cv_prog_NMEDIT"; then
7480 ac_ct_NMEDIT=$NMEDIT
7481 # Extract the first word of "nmedit", so it can be a program name with args.
7482set dummy nmedit; ac_word=$2
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484$as_echo_n "checking for $ac_word... " >&6; }
7485if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
7487else
7488 if test -n "$ac_ct_NMEDIT"; then
7489 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7490else
7491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7501 fi
7502done
7503 done
7504IFS=$as_save_IFS
7505
7506fi
7507fi
7508ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7509if test -n "$ac_ct_NMEDIT"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7511$as_echo "$ac_ct_NMEDIT" >&6; }
7512else
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514$as_echo "no" >&6; }
7515fi
7516
7517 if test "x$ac_ct_NMEDIT" = x; then
7518 NMEDIT=":"
7519 else
7520 case $cross_compiling:$ac_tool_warned in
7521yes:)
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7523$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7524ac_tool_warned=yes ;;
7525esac
7526 NMEDIT=$ac_ct_NMEDIT
7527 fi
7528else
7529 NMEDIT="$ac_cv_prog_NMEDIT"
7530fi
7531
7532 if test -n "$ac_tool_prefix"; then
7533 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7534set dummy ${ac_tool_prefix}lipo; ac_word=$2
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536$as_echo_n "checking for $ac_word... " >&6; }
7537if test "${ac_cv_prog_LIPO+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7539else
7540 if test -n "$LIPO"; then
7541 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7542else
7543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544for as_dir in $PATH
7545do
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7553 fi
7554done
7555 done
7556IFS=$as_save_IFS
7557
7558fi
7559fi
7560LIPO=$ac_cv_prog_LIPO
7561if test -n "$LIPO"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7563$as_echo "$LIPO" >&6; }
7564else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566$as_echo "no" >&6; }
7567fi
7568
7569
7570fi
7571if test -z "$ac_cv_prog_LIPO"; then
7572 ac_ct_LIPO=$LIPO
7573 # Extract the first word of "lipo", so it can be a program name with args.
7574set dummy lipo; ac_word=$2
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576$as_echo_n "checking for $ac_word... " >&6; }
7577if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7578 $as_echo_n "(cached) " >&6
7579else
7580 if test -n "$ac_ct_LIPO"; then
7581 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7582else
7583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7590 ac_cv_prog_ac_ct_LIPO="lipo"
7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 break 2
7593 fi
7594done
7595 done
7596IFS=$as_save_IFS
7597
7598fi
7599fi
7600ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7601if test -n "$ac_ct_LIPO"; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7603$as_echo "$ac_ct_LIPO" >&6; }
7604else
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606$as_echo "no" >&6; }
7607fi
7608
7609 if test "x$ac_ct_LIPO" = x; then
7610 LIPO=":"
7611 else
7612 case $cross_compiling:$ac_tool_warned in
7613yes:)
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7616ac_tool_warned=yes ;;
7617esac
7618 LIPO=$ac_ct_LIPO
7619 fi
7620else
7621 LIPO="$ac_cv_prog_LIPO"
7622fi
7623
7624 if test -n "$ac_tool_prefix"; then
7625 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7626set dummy ${ac_tool_prefix}otool; ac_word=$2
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628$as_echo_n "checking for $ac_word... " >&6; }
7629if test "${ac_cv_prog_OTOOL+set}" = set; then :
7630 $as_echo_n "(cached) " >&6
7631else
7632 if test -n "$OTOOL"; then
7633 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7634else
7635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636for as_dir in $PATH
7637do
7638 IFS=$as_save_IFS
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7642 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 break 2
7645 fi
7646done
7647 done
7648IFS=$as_save_IFS
7649
7650fi
7651fi
7652OTOOL=$ac_cv_prog_OTOOL
7653if test -n "$OTOOL"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7655$as_echo "$OTOOL" >&6; }
7656else
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658$as_echo "no" >&6; }
7659fi
7660
7661
7662fi
7663if test -z "$ac_cv_prog_OTOOL"; then
7664 ac_ct_OTOOL=$OTOOL
7665 # Extract the first word of "otool", so it can be a program name with args.
7666set dummy otool; ac_word=$2
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668$as_echo_n "checking for $ac_word... " >&6; }
7669if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7670 $as_echo_n "(cached) " >&6
7671else
7672 if test -n "$ac_ct_OTOOL"; then
7673 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7674else
7675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in $PATH
7677do
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7682 ac_cv_prog_ac_ct_OTOOL="otool"
7683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 break 2
7685 fi
7686done
7687 done
7688IFS=$as_save_IFS
7689
7690fi
7691fi
7692ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7693if test -n "$ac_ct_OTOOL"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7695$as_echo "$ac_ct_OTOOL" >&6; }
7696else
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698$as_echo "no" >&6; }
7699fi
7700
7701 if test "x$ac_ct_OTOOL" = x; then
7702 OTOOL=":"
7703 else
7704 case $cross_compiling:$ac_tool_warned in
7705yes:)
7706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7708ac_tool_warned=yes ;;
7709esac
7710 OTOOL=$ac_ct_OTOOL
7711 fi
7712else
7713 OTOOL="$ac_cv_prog_OTOOL"
7714fi
7715
7716 if test -n "$ac_tool_prefix"; then
7717 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7718set dummy ${ac_tool_prefix}otool64; ac_word=$2
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720$as_echo_n "checking for $ac_word... " >&6; }
7721if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
7723else
7724 if test -n "$OTOOL64"; then
7725 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7726else
7727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728for as_dir in $PATH
7729do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 break 2
7737 fi
7738done
7739 done
7740IFS=$as_save_IFS
7741
7742fi
7743fi
7744OTOOL64=$ac_cv_prog_OTOOL64
7745if test -n "$OTOOL64"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7747$as_echo "$OTOOL64" >&6; }
7748else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750$as_echo "no" >&6; }
7751fi
7752
7753
7754fi
7755if test -z "$ac_cv_prog_OTOOL64"; then
7756 ac_ct_OTOOL64=$OTOOL64
7757 # Extract the first word of "otool64", so it can be a program name with args.
7758set dummy otool64; ac_word=$2
7759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760$as_echo_n "checking for $ac_word... " >&6; }
7761if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7762 $as_echo_n "(cached) " >&6
7763else
7764 if test -n "$ac_ct_OTOOL64"; then
7765 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7766else
7767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768for as_dir in $PATH
7769do
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7774 ac_cv_prog_ac_ct_OTOOL64="otool64"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7777 fi
7778done
7779 done
7780IFS=$as_save_IFS
7781
7782fi
7783fi
7784ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7785if test -n "$ac_ct_OTOOL64"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7787$as_echo "$ac_ct_OTOOL64" >&6; }
7788else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790$as_echo "no" >&6; }
7791fi
7792
7793 if test "x$ac_ct_OTOOL64" = x; then
7794 OTOOL64=":"
7795 else
7796 case $cross_compiling:$ac_tool_warned in
7797yes:)
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7800ac_tool_warned=yes ;;
7801esac
7802 OTOOL64=$ac_ct_OTOOL64
7803 fi
7804else
7805 OTOOL64="$ac_cv_prog_OTOOL64"
7806fi
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7835$as_echo_n "checking for -single_module linker flag... " >&6; }
7836if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7837 $as_echo_n "(cached) " >&6
7838else
7839 lt_cv_apple_cc_single_mod=no
7840 if test -z "${LT_MULTI_MODULE}"; then
7841 # By default we will add the -single_module flag. You can override
7842 # by either setting the environment variable LT_MULTI_MODULE
7843 # non-empty at configure time, or by adding -multi_module to the
7844 # link flags.
7845 rm -rf libconftest.dylib*
7846 echo "int foo(void){return 1;}" > conftest.c
7847 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7848-dynamiclib -Wl,-single_module conftest.c" >&5
7849 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7850 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7851 _lt_result=$?
7852 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7853 lt_cv_apple_cc_single_mod=yes
7854 else
7855 cat conftest.err >&5
7856 fi
7857 rm -rf libconftest.dylib*
7858 rm -f conftest.*
7859 fi
7860fi
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7862$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7864$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7865if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7866 $as_echo_n "(cached) " >&6
7867else
7868 lt_cv_ld_exported_symbols_list=no
7869 save_LDFLAGS=$LDFLAGS
7870 echo "_main" > conftest.sym
7871 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873/* end confdefs.h. */
7874
7875int
7876main ()
7877{
7878
7879 ;
7880 return 0;
7881}
7882_ACEOF
7883if ac_fn_c_try_link "$LINENO"; then :
7884 lt_cv_ld_exported_symbols_list=yes
7885else
7886 lt_cv_ld_exported_symbols_list=no
7887fi
7888rm -f core conftest.err conftest.$ac_objext \
7889 conftest$ac_exeext conftest.$ac_ext
7890 LDFLAGS="$save_LDFLAGS"
7891
7892fi
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7894$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7896$as_echo_n "checking for -force_load linker flag... " >&6; }
7897if test "${lt_cv_ld_force_load+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7899else
7900 lt_cv_ld_force_load=no
7901 cat > conftest.c << _LT_EOF
7902int forced_loaded() { return 2;}
7903_LT_EOF
7904 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7905 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7906 echo "$AR cru libconftest.a conftest.o" >&5
7907 $AR cru libconftest.a conftest.o 2>&5
7908 cat > conftest.c << _LT_EOF
7909int main() { return 0;}
7910_LT_EOF
7911 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7912 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7913 _lt_result=$?
7914 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7915 lt_cv_ld_force_load=yes
7916 else
7917 cat conftest.err >&5
7918 fi
7919 rm -f conftest.err libconftest.a conftest conftest.c
7920 rm -rf conftest.dSYM
7921
7922fi
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7924$as_echo "$lt_cv_ld_force_load" >&6; }
7925 case $host_os in
7926 rhapsody* | darwin1.[012])
7927 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7928 darwin1.*)
7929 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7930 darwin*) # darwin 5.x on
7931 # if running on 10.5 or later, the deployment target defaults
7932 # to the OS version, if on x86, and 10.4, the deployment
7933 # target defaults to 10.4. Don't you love it?
7934 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7935 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7936 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7937 10.[012]*)
7938 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7939 10.*)
7940 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7941 esac
7942 ;;
7943 esac
7944 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7945 _lt_dar_single_mod='$single_module'
7946 fi
7947 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7948 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7949 else
7950 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7951 fi
7952 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7953 _lt_dsymutil='~$DSYMUTIL $lib || :'
7954 else
7955 _lt_dsymutil=
7956 fi
7957 ;;
7958 esac
7959
7960ac_ext=c
7961ac_cpp='$CPP $CPPFLAGS'
7962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964ac_compiler_gnu=$ac_cv_c_compiler_gnu
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7966$as_echo_n "checking how to run the C preprocessor... " >&6; }
7967# On Suns, sometimes $CPP names a directory.
7968if test -n "$CPP" && test -d "$CPP"; then
7969 CPP=
7970fi
7971if test -z "$CPP"; then
7972 if test "${ac_cv_prog_CPP+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7974else
7975 # Double quotes because CPP needs to be expanded
7976 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7977 do
7978 ac_preproc_ok=false
7979for ac_c_preproc_warn_flag in '' yes
7980do
7981 # Use a header file that comes with gcc, so configuring glibc
7982 # with a fresh cross-compiler works.
7983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7984 # <limits.h> exists even on freestanding compilers.
7985 # On the NeXT, cc -E runs the code through the compiler's parser,
7986 # not just through cpp. "Syntax error" is here to catch this case.
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988/* end confdefs.h. */
7989#ifdef __STDC__
7990# include <limits.h>
7991#else
7992# include <assert.h>
7993#endif
7994 Syntax error
7995_ACEOF
7996if ac_fn_c_try_cpp "$LINENO"; then :
7997
7998else
7999 # Broken: fails on valid input.
8000continue
8001fi
8002rm -f conftest.err conftest.$ac_ext
8003
8004 # OK, works on sane cases. Now check whether nonexistent headers
8005 # can be detected and how.
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007/* end confdefs.h. */
8008#include <ac_nonexistent.h>
8009_ACEOF
8010if ac_fn_c_try_cpp "$LINENO"; then :
8011 # Broken: success on invalid input.
8012continue
8013else
8014 # Passes both tests.
8015ac_preproc_ok=:
8016break
8017fi
8018rm -f conftest.err conftest.$ac_ext
8019
8020done
8021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8022rm -f conftest.err conftest.$ac_ext
8023if $ac_preproc_ok; then :
8024 break
8025fi
8026
8027 done
8028 ac_cv_prog_CPP=$CPP
8029
8030fi
8031 CPP=$ac_cv_prog_CPP
8032else
8033 ac_cv_prog_CPP=$CPP
8034fi
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8036$as_echo "$CPP" >&6; }
8037ac_preproc_ok=false
8038for ac_c_preproc_warn_flag in '' yes
8039do
8040 # Use a header file that comes with gcc, so configuring glibc
8041 # with a fresh cross-compiler works.
8042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8043 # <limits.h> exists even on freestanding compilers.
8044 # On the NeXT, cc -E runs the code through the compiler's parser,
8045 # not just through cpp. "Syntax error" is here to catch this case.
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047/* end confdefs.h. */
8048#ifdef __STDC__
8049# include <limits.h>
8050#else
8051# include <assert.h>
8052#endif
8053 Syntax error
8054_ACEOF
8055if ac_fn_c_try_cpp "$LINENO"; then :
8056
8057else
8058 # Broken: fails on valid input.
8059continue
8060fi
8061rm -f conftest.err conftest.$ac_ext
8062
8063 # OK, works on sane cases. Now check whether nonexistent headers
8064 # can be detected and how.
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066/* end confdefs.h. */
8067#include <ac_nonexistent.h>
8068_ACEOF
8069if ac_fn_c_try_cpp "$LINENO"; then :
8070 # Broken: success on invalid input.
8071continue
8072else
8073 # Passes both tests.
8074ac_preproc_ok=:
8075break
8076fi
8077rm -f conftest.err conftest.$ac_ext
8078
8079done
8080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8081rm -f conftest.err conftest.$ac_ext
8082if $ac_preproc_ok; then :
8083
8084else
8085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8087as_fn_error "C preprocessor \"$CPP\" fails sanity check
8088See \`config.log' for more details." "$LINENO" 5; }
8089fi
8090
8091ac_ext=c
8092ac_cpp='$CPP $CPPFLAGS'
8093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8095ac_compiler_gnu=$ac_cv_c_compiler_gnu
8096
8097
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8099$as_echo_n "checking for ANSI C header files... " >&6; }
8100if test "${ac_cv_header_stdc+set}" = set; then :
8101 $as_echo_n "(cached) " >&6
8102else
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104/* end confdefs.h. */
8105#include <stdlib.h>
8106#include <stdarg.h>
8107#include <string.h>
8108#include <float.h>
8109
8110int
8111main ()
8112{
8113
8114 ;
8115 return 0;
8116}
8117_ACEOF
8118if ac_fn_c_try_compile "$LINENO"; then :
8119 ac_cv_header_stdc=yes
8120else
8121 ac_cv_header_stdc=no
8122fi
8123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124
8125if test $ac_cv_header_stdc = yes; then
8126 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128/* end confdefs.h. */
8129#include <string.h>
8130
8131_ACEOF
8132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8133 $EGREP "memchr" >/dev/null 2>&1; then :
8134
8135else
8136 ac_cv_header_stdc=no
8137fi
8138rm -f conftest*
8139
8140fi
8141
8142if test $ac_cv_header_stdc = yes; then
8143 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145/* end confdefs.h. */
8146#include <stdlib.h>
8147
8148_ACEOF
8149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8150 $EGREP "free" >/dev/null 2>&1; then :
8151
8152else
8153 ac_cv_header_stdc=no
8154fi
8155rm -f conftest*
8156
8157fi
8158
8159if test $ac_cv_header_stdc = yes; then
8160 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8161 if test "$cross_compiling" = yes; then :
8162 :
8163else
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165/* end confdefs.h. */
8166#include <ctype.h>
8167#include <stdlib.h>
8168#if ((' ' & 0x0FF) == 0x020)
8169# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8170# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8171#else
8172# define ISLOWER(c) \
8173 (('a' <= (c) && (c) <= 'i') \
8174 || ('j' <= (c) && (c) <= 'r') \
8175 || ('s' <= (c) && (c) <= 'z'))
8176# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8177#endif
8178
8179#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8180int
8181main ()
8182{
8183 int i;
8184 for (i = 0; i < 256; i++)
8185 if (XOR (islower (i), ISLOWER (i))
8186 || toupper (i) != TOUPPER (i))
8187 return 2;
8188 return 0;
8189}
8190_ACEOF
8191if ac_fn_c_try_run "$LINENO"; then :
8192
8193else
8194 ac_cv_header_stdc=no
8195fi
8196rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8197 conftest.$ac_objext conftest.beam conftest.$ac_ext
8198fi
8199
8200fi
8201fi
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8203$as_echo "$ac_cv_header_stdc" >&6; }
8204if test $ac_cv_header_stdc = yes; then
8205
8206$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8207
8208fi
8209
8210# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8211for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8212 inttypes.h stdint.h unistd.h
8213do :
8214 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8215ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8216"
8217eval as_val=\$$as_ac_Header
8218 if test "x$as_val" = x""yes; then :
8219 cat >>confdefs.h <<_ACEOF
8220#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8221_ACEOF
8222
8223fi
8224
8225done
8226
8227
8228for ac_header in dlfcn.h
8229do :
8230 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8231"
8232if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8233 cat >>confdefs.h <<_ACEOF
8234#define HAVE_DLFCN_H 1
8235_ACEOF
8236
8237fi
8238
8239done
8240
8241
8242
8243
8244
8245
8246# Set options
8247
8248
8249
8250 enable_dlopen=no
8251
8252
8253 enable_win32_dll=no
8254
8255
8256 # Check whether --enable-shared was given.
8257if test "${enable_shared+set}" = set; then :
8258 enableval=$enable_shared; p=${PACKAGE-default}
8259 case $enableval in
8260 yes) enable_shared=yes ;;
8261 no) enable_shared=no ;;
8262 *)
8263 enable_shared=no
8264 # Look at the argument we got. We use all the common list separators.
8265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8266 for pkg in $enableval; do
8267 IFS="$lt_save_ifs"
8268 if test "X$pkg" = "X$p"; then
8269 enable_shared=yes
8270 fi
8271 done
8272 IFS="$lt_save_ifs"
8273 ;;
8274 esac
8275else
8276 enable_shared=yes
8277fi
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287 # Check whether --enable-static was given.
8288if test "${enable_static+set}" = set; then :
8289 enableval=$enable_static; p=${PACKAGE-default}
8290 case $enableval in
8291 yes) enable_static=yes ;;
8292 no) enable_static=no ;;
8293 *)
8294 enable_static=no
8295 # Look at the argument we got. We use all the common list separators.
8296 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8297 for pkg in $enableval; do
8298 IFS="$lt_save_ifs"
8299 if test "X$pkg" = "X$p"; then
8300 enable_static=yes
8301 fi
8302 done
8303 IFS="$lt_save_ifs"
8304 ;;
8305 esac
8306else
8307 enable_static=yes
8308fi
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319# Check whether --with-pic was given.
8320if test "${with_pic+set}" = set; then :
8321 withval=$with_pic; pic_mode="$withval"
8322else
8323 pic_mode=default
8324fi
8325
8326
8327test -z "$pic_mode" && pic_mode=default
8328
8329
8330
8331
8332
8333
8334
8335 # Check whether --enable-fast-install was given.
8336if test "${enable_fast_install+set}" = set; then :
8337 enableval=$enable_fast_install; p=${PACKAGE-default}
8338 case $enableval in
8339 yes) enable_fast_install=yes ;;
8340 no) enable_fast_install=no ;;
8341 *)
8342 enable_fast_install=no
8343 # Look at the argument we got. We use all the common list separators.
8344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8345 for pkg in $enableval; do
8346 IFS="$lt_save_ifs"
8347 if test "X$pkg" = "X$p"; then
8348 enable_fast_install=yes
8349 fi
8350 done
8351 IFS="$lt_save_ifs"
8352 ;;
8353 esac
8354else
8355 enable_fast_install=yes
8356fi
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368# This can be used to rebuild libtool when needed
8369LIBTOOL_DEPS="$ltmain"
8370
8371# Always use our own libtool.
8372LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399test -z "$LN_S" && LN_S="ln -s"
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414if test -n "${ZSH_VERSION+set}" ; then
8415 setopt NO_GLOB_SUBST
8416fi
8417
8418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8419$as_echo_n "checking for objdir... " >&6; }
8420if test "${lt_cv_objdir+set}" = set; then :
8421 $as_echo_n "(cached) " >&6
8422else
8423 rm -f .libs 2>/dev/null
8424mkdir .libs 2>/dev/null
8425if test -d .libs; then
8426 lt_cv_objdir=.libs
8427else
8428 # MS-DOS does not allow filenames that begin with a dot.
8429 lt_cv_objdir=_libs
8430fi
8431rmdir .libs 2>/dev/null
8432fi
8433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8434$as_echo "$lt_cv_objdir" >&6; }
8435objdir=$lt_cv_objdir
8436
8437
8438
8439
8440
8441cat >>confdefs.h <<_ACEOF
8442#define LT_OBJDIR "$lt_cv_objdir/"
8443_ACEOF
8444
8445
8446
8447
8448case $host_os in
8449aix3*)
8450 # AIX sometimes has problems with the GCC collect2 program. For some
8451 # reason, if we set the COLLECT_NAMES environment variable, the problems
8452 # vanish in a puff of smoke.
8453 if test "X${COLLECT_NAMES+set}" != Xset; then
8454 COLLECT_NAMES=
8455 export COLLECT_NAMES
8456 fi
8457 ;;
8458esac
8459
8460# Global variables:
8461ofile=libtool
8462can_build_shared=yes
8463
8464# All known linkers require a `.a' archive for static linking (except MSVC,
8465# which needs '.lib').
8466libext=a
8467
8468with_gnu_ld="$lt_cv_prog_gnu_ld"
8469
8470old_CC="$CC"
8471old_CFLAGS="$CFLAGS"
8472
8473# Set sane defaults for various variables
8474test -z "$CC" && CC=cc
8475test -z "$LTCC" && LTCC=$CC
8476test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8477test -z "$LD" && LD=ld
8478test -z "$ac_objext" && ac_objext=o
8479
8480for cc_temp in $compiler""; do
8481 case $cc_temp in
8482 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8483 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8484 \-*) ;;
8485 *) break;;
8486 esac
8487done
8488cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8489
8490
8491# Only perform the check for file, if the check method requires it
8492test -z "$MAGIC_CMD" && MAGIC_CMD=file
8493case $deplibs_check_method in
8494file_magic*)
8495 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8497$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8498if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
8500else
8501 case $MAGIC_CMD in
8502[\\/*] | ?:[\\/]*)
8503 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8504 ;;
8505*)
8506 lt_save_MAGIC_CMD="$MAGIC_CMD"
8507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8508 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8509 for ac_dir in $ac_dummy; do
8510 IFS="$lt_save_ifs"
8511 test -z "$ac_dir" && ac_dir=.
8512 if test -f $ac_dir/${ac_tool_prefix}file; then
8513 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8514 if test -n "$file_magic_test_file"; then
8515 case $deplibs_check_method in
8516 "file_magic "*)
8517 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8519 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8520 $EGREP "$file_magic_regex" > /dev/null; then
8521 :
8522 else
8523 cat <<_LT_EOF 1>&2
8524
8525*** Warning: the command libtool uses to detect shared libraries,
8526*** $file_magic_cmd, produces output that libtool cannot recognize.
8527*** The result is that libtool may fail to recognize shared libraries
8528*** as such. This will affect the creation of libtool libraries that
8529*** depend on shared libraries, but programs linked with such libtool
8530*** libraries will work regardless of this problem. Nevertheless, you
8531*** may want to report the problem to your system manager and/or to
8532*** bug-libtool@gnu.org
8533
8534_LT_EOF
8535 fi ;;
8536 esac
8537 fi
8538 break
8539 fi
8540 done
8541 IFS="$lt_save_ifs"
8542 MAGIC_CMD="$lt_save_MAGIC_CMD"
8543 ;;
8544esac
8545fi
8546
8547MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8548if test -n "$MAGIC_CMD"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8550$as_echo "$MAGIC_CMD" >&6; }
8551else
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553$as_echo "no" >&6; }
8554fi
8555
8556
8557
8558
8559
8560if test -z "$lt_cv_path_MAGIC_CMD"; then
8561 if test -n "$ac_tool_prefix"; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8563$as_echo_n "checking for file... " >&6; }
8564if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8565 $as_echo_n "(cached) " >&6
8566else
8567 case $MAGIC_CMD in
8568[\\/*] | ?:[\\/]*)
8569 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8570 ;;
8571*)
8572 lt_save_MAGIC_CMD="$MAGIC_CMD"
8573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8574 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8575 for ac_dir in $ac_dummy; do
8576 IFS="$lt_save_ifs"
8577 test -z "$ac_dir" && ac_dir=.
8578 if test -f $ac_dir/file; then
8579 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8580 if test -n "$file_magic_test_file"; then
8581 case $deplibs_check_method in
8582 "file_magic "*)
8583 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8584 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8585 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8586 $EGREP "$file_magic_regex" > /dev/null; then
8587 :
8588 else
8589 cat <<_LT_EOF 1>&2
8590
8591*** Warning: the command libtool uses to detect shared libraries,
8592*** $file_magic_cmd, produces output that libtool cannot recognize.
8593*** The result is that libtool may fail to recognize shared libraries
8594*** as such. This will affect the creation of libtool libraries that
8595*** depend on shared libraries, but programs linked with such libtool
8596*** libraries will work regardless of this problem. Nevertheless, you
8597*** may want to report the problem to your system manager and/or to
8598*** bug-libtool@gnu.org
8599
8600_LT_EOF
8601 fi ;;
8602 esac
8603 fi
8604 break
8605 fi
8606 done
8607 IFS="$lt_save_ifs"
8608 MAGIC_CMD="$lt_save_MAGIC_CMD"
8609 ;;
8610esac
8611fi
8612
8613MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8614if test -n "$MAGIC_CMD"; then
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8616$as_echo "$MAGIC_CMD" >&6; }
8617else
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619$as_echo "no" >&6; }
8620fi
8621
8622
8623 else
8624 MAGIC_CMD=:
8625 fi
8626fi
8627
8628 fi
8629 ;;
8630esac
8631
8632# Use C for the default configuration in the libtool script
8633
8634lt_save_CC="$CC"
8635ac_ext=c
8636ac_cpp='$CPP $CPPFLAGS'
8637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8639ac_compiler_gnu=$ac_cv_c_compiler_gnu
8640
8641
8642# Source file extension for C test sources.
8643ac_ext=c
8644
8645# Object file extension for compiled C test sources.
8646objext=o
8647objext=$objext
8648
8649# Code to be used in simple compile tests
8650lt_simple_compile_test_code="int some_variable = 0;"
8651
8652# Code to be used in simple link tests
8653lt_simple_link_test_code='int main(){return(0);}'
8654
8655
8656
8657
8658
8659
8660
8661# If no C compiler was specified, use CC.
8662LTCC=${LTCC-"$CC"}
8663
8664# If no C compiler flags were specified, use CFLAGS.
8665LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8666
8667# Allow CC to be a program name with arguments.
8668compiler=$CC
8669
8670# Save the default compiler, since it gets overwritten when the other
8671# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8672compiler_DEFAULT=$CC
8673
8674# save warnings/boilerplate of simple test code
8675ac_outfile=conftest.$ac_objext
8676echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8677eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8678_lt_compiler_boilerplate=`cat conftest.err`
8679$RM conftest*
8680
8681ac_outfile=conftest.$ac_objext
8682echo "$lt_simple_link_test_code" >conftest.$ac_ext
8683eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8684_lt_linker_boilerplate=`cat conftest.err`
8685$RM -r conftest*
8686
8687
8688## CAVEAT EMPTOR:
8689## There is no encapsulation within the following macros, do not change
8690## the running order or otherwise move them around unless you know exactly
8691## what you are doing...
8692if test -n "$compiler"; then
8693
8694lt_prog_compiler_no_builtin_flag=
8695
8696if test "$GCC" = yes; then
8697 case $cc_basename in
8698 nvcc*)
8699 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8700 *)
8701 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8702 esac
8703
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8705$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8706if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8707 $as_echo_n "(cached) " >&6
8708else
8709 lt_cv_prog_compiler_rtti_exceptions=no
8710 ac_outfile=conftest.$ac_objext
8711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8712 lt_compiler_flag="-fno-rtti -fno-exceptions"
8713 # Insert the option either (1) after the last *FLAGS variable, or
8714 # (2) before a word containing "conftest.", or (3) at the end.
8715 # Note that $ac_compile itself does not contain backslashes and begins
8716 # with a dollar sign (not a hyphen), so the echo should work correctly.
8717 # The option is referenced via a variable to avoid confusing sed.
8718 lt_compile=`echo "$ac_compile" | $SED \
8719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8721 -e 's:$: $lt_compiler_flag:'`
8722 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8723 (eval "$lt_compile" 2>conftest.err)
8724 ac_status=$?
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 if (exit $ac_status) && test -s "$ac_outfile"; then
8728 # The compiler can only warn and ignore the option if not recognized
8729 # So say no if there are warnings other than the usual output.
8730 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8732 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8733 lt_cv_prog_compiler_rtti_exceptions=yes
8734 fi
8735 fi
8736 $RM conftest*
8737
8738fi
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8740$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8741
8742if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8743 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8744else
8745 :
8746fi
8747
8748fi
8749
8750
8751
8752
8753
8754
8755 lt_prog_compiler_wl=
8756lt_prog_compiler_pic=
8757lt_prog_compiler_static=
8758
8759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8760$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8761
8762 if test "$GCC" = yes; then
8763 lt_prog_compiler_wl='-Wl,'
8764 lt_prog_compiler_static='-static'
8765
8766 case $host_os in
8767 aix*)
8768 # All AIX code is PIC.
8769 if test "$host_cpu" = ia64; then
8770 # AIX 5 now supports IA64 processor
8771 lt_prog_compiler_static='-Bstatic'
8772 fi
8773 ;;
8774
8775 amigaos*)
8776 case $host_cpu in
8777 powerpc)
8778 # see comment about AmigaOS4 .so support
8779 lt_prog_compiler_pic='-fPIC'
8780 ;;
8781 m68k)
8782 # FIXME: we need at least 68020 code to build shared libraries, but
8783 # adding the `-m68020' flag to GCC prevents building anything better,
8784 # like `-m68040'.
8785 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8786 ;;
8787 esac
8788 ;;
8789
8790 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8791 # PIC is the default for these OSes.
8792 ;;
8793
8794 mingw* | cygwin* | pw32* | os2* | cegcc*)
8795 # This hack is so that the source file can tell whether it is being
8796 # built for inclusion in a dll (and should export symbols for example).
8797 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8798 # (--disable-auto-import) libraries
8799 lt_prog_compiler_pic='-DDLL_EXPORT'
8800 ;;
8801
8802 darwin* | rhapsody*)
8803 # PIC is the default on this platform
8804 # Common symbols not allowed in MH_DYLIB files
8805 lt_prog_compiler_pic='-fno-common'
8806 ;;
8807
8808 haiku*)
8809 # PIC is the default for Haiku.
8810 # The "-static" flag exists, but is broken.
8811 lt_prog_compiler_static=
8812 ;;
8813
8814 hpux*)
8815 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8816 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8817 # sets the default TLS model and affects inlining.
8818 case $host_cpu in
8819 hppa*64*)
8820 # +Z the default
8821 ;;
8822 *)
8823 lt_prog_compiler_pic='-fPIC'
8824 ;;
8825 esac
8826 ;;
8827
8828 interix[3-9]*)
8829 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8830 # Instead, we relocate shared libraries at runtime.
8831 ;;
8832
8833 msdosdjgpp*)
8834 # Just because we use GCC doesn't mean we suddenly get shared libraries
8835 # on systems that don't support them.
8836 lt_prog_compiler_can_build_shared=no
8837 enable_shared=no
8838 ;;
8839
8840 *nto* | *qnx*)
8841 # QNX uses GNU C++, but need to define -shared option too, otherwise
8842 # it will coredump.
8843 lt_prog_compiler_pic='-fPIC -shared'
8844 ;;
8845
8846 sysv4*MP*)
8847 if test -d /usr/nec; then
8848 lt_prog_compiler_pic=-Kconform_pic
8849 fi
8850 ;;
8851
8852 *)
8853 lt_prog_compiler_pic='-fPIC'
8854 ;;
8855 esac
8856
8857 case $cc_basename in
8858 nvcc*) # Cuda Compiler Driver 2.2
8859 lt_prog_compiler_wl='-Xlinker '
8860 lt_prog_compiler_pic='-Xcompiler -fPIC'
8861 ;;
8862 esac
8863 else
8864 # PORTME Check for flag to pass linker flags through the system compiler.
8865 case $host_os in
8866 aix*)
8867 lt_prog_compiler_wl='-Wl,'
8868 if test "$host_cpu" = ia64; then
8869 # AIX 5 now supports IA64 processor
8870 lt_prog_compiler_static='-Bstatic'
8871 else
8872 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8873 fi
8874 ;;
8875
8876 mingw* | cygwin* | pw32* | os2* | cegcc*)
8877 # This hack is so that the source file can tell whether it is being
8878 # built for inclusion in a dll (and should export symbols for example).
8879 lt_prog_compiler_pic='-DDLL_EXPORT'
8880 ;;
8881
8882 hpux9* | hpux10* | hpux11*)
8883 lt_prog_compiler_wl='-Wl,'
8884 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8885 # not for PA HP-UX.
8886 case $host_cpu in
8887 hppa*64*|ia64*)
8888 # +Z the default
8889 ;;
8890 *)
8891 lt_prog_compiler_pic='+Z'
8892 ;;
8893 esac
8894 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8895 lt_prog_compiler_static='${wl}-a ${wl}archive'
8896 ;;
8897
8898 irix5* | irix6* | nonstopux*)
8899 lt_prog_compiler_wl='-Wl,'
8900 # PIC (with -KPIC) is the default.
8901 lt_prog_compiler_static='-non_shared'
8902 ;;
8903
8904 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8905 case $cc_basename in
8906 # old Intel for x86_64 which still supported -KPIC.
8907 ecc*)
8908 lt_prog_compiler_wl='-Wl,'
8909 lt_prog_compiler_pic='-KPIC'
8910 lt_prog_compiler_static='-static'
8911 ;;
8912 # icc used to be incompatible with GCC.
8913 # ICC 10 doesn't accept -KPIC any more.
8914 icc* | ifort*)
8915 lt_prog_compiler_wl='-Wl,'
8916 lt_prog_compiler_pic='-fPIC'
8917 lt_prog_compiler_static='-static'
8918 ;;
8919 # Lahey Fortran 8.1.
8920 lf95*)
8921 lt_prog_compiler_wl='-Wl,'
8922 lt_prog_compiler_pic='--shared'
8923 lt_prog_compiler_static='--static'
8924 ;;
8925 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8926 # Portland Group compilers (*not* the Pentium gcc compiler,
8927 # which looks to be a dead project)
8928 lt_prog_compiler_wl='-Wl,'
8929 lt_prog_compiler_pic='-fpic'
8930 lt_prog_compiler_static='-Bstatic'
8931 ;;
8932 ccc*)
8933 lt_prog_compiler_wl='-Wl,'
8934 # All Alpha code is PIC.
8935 lt_prog_compiler_static='-non_shared'
8936 ;;
8937 xl* | bgxl* | bgf* | mpixl*)
8938 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_pic='-qpic'
8941 lt_prog_compiler_static='-qstaticlink'
8942 ;;
8943 *)
8944 case `$CC -V 2>&1 | sed 5q` in
8945 *Sun\ F* | *Sun*Fortran*)
8946 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8947 lt_prog_compiler_pic='-KPIC'
8948 lt_prog_compiler_static='-Bstatic'
8949 lt_prog_compiler_wl=''
8950 ;;
8951 *Sun\ C*)
8952 # Sun C 5.9
8953 lt_prog_compiler_pic='-KPIC'
8954 lt_prog_compiler_static='-Bstatic'
8955 lt_prog_compiler_wl='-Wl,'
8956 ;;
8957 esac
8958 ;;
8959 esac
8960 ;;
8961
8962 newsos6)
8963 lt_prog_compiler_pic='-KPIC'
8964 lt_prog_compiler_static='-Bstatic'
8965 ;;
8966
8967 *nto* | *qnx*)
8968 # QNX uses GNU C++, but need to define -shared option too, otherwise
8969 # it will coredump.
8970 lt_prog_compiler_pic='-fPIC -shared'
8971 ;;
8972
8973 osf3* | osf4* | osf5*)
8974 lt_prog_compiler_wl='-Wl,'
8975 # All OSF/1 code is PIC.
8976 lt_prog_compiler_static='-non_shared'
8977 ;;
8978
8979 rdos*)
8980 lt_prog_compiler_static='-non_shared'
8981 ;;
8982
8983 solaris*)
8984 lt_prog_compiler_pic='-KPIC'
8985 lt_prog_compiler_static='-Bstatic'
8986 case $cc_basename in
8987 f77* | f90* | f95*)
8988 lt_prog_compiler_wl='-Qoption ld ';;
8989 *)
8990 lt_prog_compiler_wl='-Wl,';;
8991 esac
8992 ;;
8993
8994 sunos4*)
8995 lt_prog_compiler_wl='-Qoption ld '
8996 lt_prog_compiler_pic='-PIC'
8997 lt_prog_compiler_static='-Bstatic'
8998 ;;
8999
9000 sysv4 | sysv4.2uw2* | sysv4.3*)
9001 lt_prog_compiler_wl='-Wl,'
9002 lt_prog_compiler_pic='-KPIC'
9003 lt_prog_compiler_static='-Bstatic'
9004 ;;
9005
9006 sysv4*MP*)
9007 if test -d /usr/nec ;then
9008 lt_prog_compiler_pic='-Kconform_pic'
9009 lt_prog_compiler_static='-Bstatic'
9010 fi
9011 ;;
9012
9013 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9014 lt_prog_compiler_wl='-Wl,'
9015 lt_prog_compiler_pic='-KPIC'
9016 lt_prog_compiler_static='-Bstatic'
9017 ;;
9018
9019 unicos*)
9020 lt_prog_compiler_wl='-Wl,'
9021 lt_prog_compiler_can_build_shared=no
9022 ;;
9023
9024 uts4*)
9025 lt_prog_compiler_pic='-pic'
9026 lt_prog_compiler_static='-Bstatic'
9027 ;;
9028
9029 *)
9030 lt_prog_compiler_can_build_shared=no
9031 ;;
9032 esac
9033 fi
9034
9035case $host_os in
9036 # For platforms which do not support PIC, -DPIC is meaningless:
9037 *djgpp*)
9038 lt_prog_compiler_pic=
9039 ;;
9040 *)
9041 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9042 ;;
9043esac
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9045$as_echo "$lt_prog_compiler_pic" >&6; }
9046
9047
9048
9049
9050
9051
9052#
9053# Check to make sure the PIC flag actually works.
9054#
9055if test -n "$lt_prog_compiler_pic"; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9057$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9058if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9059 $as_echo_n "(cached) " >&6
9060else
9061 lt_cv_prog_compiler_pic_works=no
9062 ac_outfile=conftest.$ac_objext
9063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9064 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9065 # Insert the option either (1) after the last *FLAGS variable, or
9066 # (2) before a word containing "conftest.", or (3) at the end.
9067 # Note that $ac_compile itself does not contain backslashes and begins
9068 # with a dollar sign (not a hyphen), so the echo should work correctly.
9069 # The option is referenced via a variable to avoid confusing sed.
9070 lt_compile=`echo "$ac_compile" | $SED \
9071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9073 -e 's:$: $lt_compiler_flag:'`
9074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9075 (eval "$lt_compile" 2>conftest.err)
9076 ac_status=$?
9077 cat conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 if (exit $ac_status) && test -s "$ac_outfile"; then
9080 # The compiler can only warn and ignore the option if not recognized
9081 # So say no if there are warnings other than the usual output.
9082 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9084 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9085 lt_cv_prog_compiler_pic_works=yes
9086 fi
9087 fi
9088 $RM conftest*
9089
9090fi
9091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9092$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9093
9094if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9095 case $lt_prog_compiler_pic in
9096 "" | " "*) ;;
9097 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9098 esac
9099else
9100 lt_prog_compiler_pic=
9101 lt_prog_compiler_can_build_shared=no
9102fi
9103
9104fi
9105
9106
9107
9108
9109
9110
9111#
9112# Check to make sure the static flag actually works.
9113#
9114wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9116$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9117if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9118 $as_echo_n "(cached) " >&6
9119else
9120 lt_cv_prog_compiler_static_works=no
9121 save_LDFLAGS="$LDFLAGS"
9122 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9123 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9124 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9125 # The linker can only warn and ignore the option if not recognized
9126 # So say no if there are warnings
9127 if test -s conftest.err; then
9128 # Append any errors to the config.log.
9129 cat conftest.err 1>&5
9130 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9132 if diff conftest.exp conftest.er2 >/dev/null; then
9133 lt_cv_prog_compiler_static_works=yes
9134 fi
9135 else
9136 lt_cv_prog_compiler_static_works=yes
9137 fi
9138 fi
9139 $RM -r conftest*
9140 LDFLAGS="$save_LDFLAGS"
9141
9142fi
9143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9144$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9145
9146if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9147 :
9148else
9149 lt_prog_compiler_static=
9150fi
9151
9152
9153
9154
9155
9156
9157
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9159$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9160if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9161 $as_echo_n "(cached) " >&6
9162else
9163 lt_cv_prog_compiler_c_o=no
9164 $RM -r conftest 2>/dev/null
9165 mkdir conftest
9166 cd conftest
9167 mkdir out
9168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9169
9170 lt_compiler_flag="-o out/conftest2.$ac_objext"
9171 # Insert the option either (1) after the last *FLAGS variable, or
9172 # (2) before a word containing "conftest.", or (3) at the end.
9173 # Note that $ac_compile itself does not contain backslashes and begins
9174 # with a dollar sign (not a hyphen), so the echo should work correctly.
9175 lt_compile=`echo "$ac_compile" | $SED \
9176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9178 -e 's:$: $lt_compiler_flag:'`
9179 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9180 (eval "$lt_compile" 2>out/conftest.err)
9181 ac_status=$?
9182 cat out/conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9185 then
9186 # The compiler can only warn and ignore the option if not recognized
9187 # So say no if there are warnings
9188 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9189 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9190 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9191 lt_cv_prog_compiler_c_o=yes
9192 fi
9193 fi
9194 chmod u+w . 2>&5
9195 $RM conftest*
9196 # SGI C++ compiler will create directory out/ii_files/ for
9197 # template instantiation
9198 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9199 $RM out/* && rmdir out
9200 cd ..
9201 $RM -r conftest
9202 $RM conftest*
9203
9204fi
9205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9206$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9207
9208
9209
9210
9211
9212
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9214$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9215if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9216 $as_echo_n "(cached) " >&6
9217else
9218 lt_cv_prog_compiler_c_o=no
9219 $RM -r conftest 2>/dev/null
9220 mkdir conftest
9221 cd conftest
9222 mkdir out
9223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9224
9225 lt_compiler_flag="-o out/conftest2.$ac_objext"
9226 # Insert the option either (1) after the last *FLAGS variable, or
9227 # (2) before a word containing "conftest.", or (3) at the end.
9228 # Note that $ac_compile itself does not contain backslashes and begins
9229 # with a dollar sign (not a hyphen), so the echo should work correctly.
9230 lt_compile=`echo "$ac_compile" | $SED \
9231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9233 -e 's:$: $lt_compiler_flag:'`
9234 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9235 (eval "$lt_compile" 2>out/conftest.err)
9236 ac_status=$?
9237 cat out/conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9240 then
9241 # The compiler can only warn and ignore the option if not recognized
9242 # So say no if there are warnings
9243 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9244 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9245 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9246 lt_cv_prog_compiler_c_o=yes
9247 fi
9248 fi
9249 chmod u+w . 2>&5
9250 $RM conftest*
9251 # SGI C++ compiler will create directory out/ii_files/ for
9252 # template instantiation
9253 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9254 $RM out/* && rmdir out
9255 cd ..
9256 $RM -r conftest
9257 $RM conftest*
9258
9259fi
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9261$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9262
9263
9264
9265
9266hard_links="nottested"
9267if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9268 # do not overwrite the value of need_locks provided by the user
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9270$as_echo_n "checking if we can lock with hard links... " >&6; }
9271 hard_links=yes
9272 $RM conftest*
9273 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9274 touch conftest.a
9275 ln conftest.a conftest.b 2>&5 || hard_links=no
9276 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9278$as_echo "$hard_links" >&6; }
9279 if test "$hard_links" = no; then
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9281$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9282 need_locks=warn
9283 fi
9284else
9285 need_locks=no
9286fi
9287
9288
9289
9290
9291
9292
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9294$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9295
9296 runpath_var=
9297 allow_undefined_flag=
9298 always_export_symbols=no
9299 archive_cmds=
9300 archive_expsym_cmds=
9301 compiler_needs_object=no
9302 enable_shared_with_static_runtimes=no
9303 export_dynamic_flag_spec=
9304 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9305 hardcode_automatic=no
9306 hardcode_direct=no
9307 hardcode_direct_absolute=no
9308 hardcode_libdir_flag_spec=
9309 hardcode_libdir_flag_spec_ld=
9310 hardcode_libdir_separator=
9311 hardcode_minus_L=no
9312 hardcode_shlibpath_var=unsupported
9313 inherit_rpath=no
9314 link_all_deplibs=unknown
9315 module_cmds=
9316 module_expsym_cmds=
9317 old_archive_from_new_cmds=
9318 old_archive_from_expsyms_cmds=
9319 thread_safe_flag_spec=
9320 whole_archive_flag_spec=
9321 # include_expsyms should be a list of space-separated symbols to be *always*
9322 # included in the symbol list
9323 include_expsyms=
9324 # exclude_expsyms can be an extended regexp of symbols to exclude
9325 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9326 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9327 # as well as any symbol that contains `d'.
9328 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9329 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9330 # platforms (ab)use it in PIC code, but their linkers get confused if
9331 # the symbol is explicitly referenced. Since portable code cannot
9332 # rely on this symbol name, it's probably fine to never include it in
9333 # preloaded symbol tables.
9334 # Exclude shared library initialization/finalization symbols.
9335 extract_expsyms_cmds=
9336
9337 case $host_os in
9338 cygwin* | mingw* | pw32* | cegcc*)
9339 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9340 # When not using gcc, we currently assume that we are using
9341 # Microsoft Visual C++.
9342 if test "$GCC" != yes; then
9343 with_gnu_ld=no
9344 fi
9345 ;;
9346 interix*)
9347 # we just hope/assume this is gcc and not c89 (= MSVC++)
9348 with_gnu_ld=yes
9349 ;;
9350 openbsd*)
9351 with_gnu_ld=no
9352 ;;
9353 esac
9354
9355 ld_shlibs=yes
9356
9357 # On some targets, GNU ld is compatible enough with the native linker
9358 # that we're better off using the native interface for both.
9359 lt_use_gnu_ld_interface=no
9360 if test "$with_gnu_ld" = yes; then
9361 case $host_os in
9362 aix*)
9363 # The AIX port of GNU ld has always aspired to compatibility
9364 # with the native linker. However, as the warning in the GNU ld
9365 # block says, versions before 2.19.5* couldn't really create working
9366 # shared libraries, regardless of the interface used.
9367 case `$LD -v 2>&1` in
9368 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9369 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9370 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9371 *)
9372 lt_use_gnu_ld_interface=yes
9373 ;;
9374 esac
9375 ;;
9376 *)
9377 lt_use_gnu_ld_interface=yes
9378 ;;
9379 esac
9380 fi
9381
9382 if test "$lt_use_gnu_ld_interface" = yes; then
9383 # If archive_cmds runs LD, not CC, wlarc should be empty
9384 wlarc='${wl}'
9385
9386 # Set some defaults for GNU ld with shared library support. These
9387 # are reset later if shared libraries are not supported. Putting them
9388 # here allows them to be overridden if necessary.
9389 runpath_var=LD_RUN_PATH
9390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9391 export_dynamic_flag_spec='${wl}--export-dynamic'
9392 # ancient GNU ld didn't support --whole-archive et. al.
9393 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9394 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9395 else
9396 whole_archive_flag_spec=
9397 fi
9398 supports_anon_versioning=no
9399 case `$LD -v 2>&1` in
9400 *GNU\ gold*) supports_anon_versioning=yes ;;
9401 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9402 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9403 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9404 *\ 2.11.*) ;; # other 2.11 versions
9405 *) supports_anon_versioning=yes ;;
9406 esac
9407
9408 # See if GNU ld supports shared libraries.
9409 case $host_os in
9410 aix[3-9]*)
9411 # On AIX/PPC, the GNU linker is very broken
9412 if test "$host_cpu" != ia64; then
9413 ld_shlibs=no
9414 cat <<_LT_EOF 1>&2
9415
9416*** Warning: the GNU linker, at least up to release 2.19, is reported
9417*** to be unable to reliably create shared libraries on AIX.
9418*** Therefore, libtool is disabling shared libraries support. If you
9419*** really care for shared libraries, you may want to install binutils
9420*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9421*** You will then need to restart the configuration process.
9422
9423_LT_EOF
9424 fi
9425 ;;
9426
9427 amigaos*)
9428 case $host_cpu in
9429 powerpc)
9430 # see comment about AmigaOS4 .so support
9431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9432 archive_expsym_cmds=''
9433 ;;
9434 m68k)
9435 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)'
9436 hardcode_libdir_flag_spec='-L$libdir'
9437 hardcode_minus_L=yes
9438 ;;
9439 esac
9440 ;;
9441
9442 beos*)
9443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9444 allow_undefined_flag=unsupported
9445 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9446 # support --undefined. This deserves some investigation. FIXME
9447 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9448 else
9449 ld_shlibs=no
9450 fi
9451 ;;
9452
9453 cygwin* | mingw* | pw32* | cegcc*)
9454 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9455 # as there is no search path for DLLs.
9456 hardcode_libdir_flag_spec='-L$libdir'
9457 export_dynamic_flag_spec='${wl}--export-all-symbols'
9458 allow_undefined_flag=unsupported
9459 always_export_symbols=no
9460 enable_shared_with_static_runtimes=yes
9461 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9462
9463 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9465 # If the export-symbols file already is a .def file (1st line
9466 # is EXPORTS), use it as is; otherwise, prepend...
9467 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9468 cp $export_symbols $output_objdir/$soname.def;
9469 else
9470 echo EXPORTS > $output_objdir/$soname.def;
9471 cat $export_symbols >> $output_objdir/$soname.def;
9472 fi~
9473 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9474 else
9475 ld_shlibs=no
9476 fi
9477 ;;
9478
9479 haiku*)
9480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9481 link_all_deplibs=yes
9482 ;;
9483
9484 interix[3-9]*)
9485 hardcode_direct=no
9486 hardcode_shlibpath_var=no
9487 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9488 export_dynamic_flag_spec='${wl}-E'
9489 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9490 # Instead, shared libraries are loaded at an image base (0x10000000 by
9491 # default) and relocated if they conflict, which is a slow very memory
9492 # consuming and fragmenting process. To avoid this, we pick a random,
9493 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9494 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9495 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9496 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'
9497 ;;
9498
9499 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9500 tmp_diet=no
9501 if test "$host_os" = linux-dietlibc; then
9502 case $cc_basename in
9503 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9504 esac
9505 fi
9506 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9507 && test "$tmp_diet" = no
9508 then
9509 tmp_addflag=
9510 tmp_sharedflag='-shared'
9511 case $cc_basename,$host_cpu in
9512 pgcc*) # Portland Group C compiler
9513 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'
9514 tmp_addflag=' $pic_flag'
9515 ;;
9516 pgf77* | pgf90* | pgf95* | pgfortran*)
9517 # Portland Group f77 and f90 compilers
9518 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'
9519 tmp_addflag=' $pic_flag -Mnomain' ;;
9520 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9521 tmp_addflag=' -i_dynamic' ;;
9522 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9523 tmp_addflag=' -i_dynamic -nofor_main' ;;
9524 ifc* | ifort*) # Intel Fortran compiler
9525 tmp_addflag=' -nofor_main' ;;
9526 lf95*) # Lahey Fortran 8.1
9527 whole_archive_flag_spec=
9528 tmp_sharedflag='--shared' ;;
9529 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9530 tmp_sharedflag='-qmkshrobj'
9531 tmp_addflag= ;;
9532 nvcc*) # Cuda Compiler Driver 2.2
9533 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'
9534 compiler_needs_object=yes
9535 ;;
9536 esac
9537 case `$CC -V 2>&1 | sed 5q` in
9538 *Sun\ C*) # Sun C 5.9
9539 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'
9540 compiler_needs_object=yes
9541 tmp_sharedflag='-G' ;;
9542 *Sun\ F*) # Sun Fortran 8.3
9543 tmp_sharedflag='-G' ;;
9544 esac
9545 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9546
9547 if test "x$supports_anon_versioning" = xyes; then
9548 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9549 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9550 echo "local: *; };" >> $output_objdir/$libname.ver~
9551 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9552 fi
9553
9554 case $cc_basename in
9555 xlf* | bgf* | bgxlf* | mpixlf*)
9556 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9557 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9558 hardcode_libdir_flag_spec=
9559 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9560 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9561 if test "x$supports_anon_versioning" = xyes; then
9562 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9563 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9564 echo "local: *; };" >> $output_objdir/$libname.ver~
9565 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9566 fi
9567 ;;
9568 esac
9569 else
9570 ld_shlibs=no
9571 fi
9572 ;;
9573
9574 netbsd*)
9575 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9576 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9577 wlarc=
9578 else
9579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9580 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9581 fi
9582 ;;
9583
9584 solaris*)
9585 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9586 ld_shlibs=no
9587 cat <<_LT_EOF 1>&2
9588
9589*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9590*** create shared libraries on Solaris systems. Therefore, libtool
9591*** is disabling shared libraries support. We urge you to upgrade GNU
9592*** binutils to release 2.9.1 or newer. Another option is to modify
9593*** your PATH or compiler configuration so that the native linker is
9594*** used, and then restart.
9595
9596_LT_EOF
9597 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9599 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9600 else
9601 ld_shlibs=no
9602 fi
9603 ;;
9604
9605 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9606 case `$LD -v 2>&1` in
9607 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9608 ld_shlibs=no
9609 cat <<_LT_EOF 1>&2
9610
9611*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9612*** reliably create shared libraries on SCO systems. Therefore, libtool
9613*** is disabling shared libraries support. We urge you to upgrade GNU
9614*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9615*** your PATH or compiler configuration so that the native linker is
9616*** used, and then restart.
9617
9618_LT_EOF
9619 ;;
9620 *)
9621 # For security reasons, it is highly recommended that you always
9622 # use absolute paths for naming shared libraries, and exclude the
9623 # DT_RUNPATH tag from executables and libraries. But doing so
9624 # requires that you compile everything twice, which is a pain.
9625 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9627 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9628 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9629 else
9630 ld_shlibs=no
9631 fi
9632 ;;
9633 esac
9634 ;;
9635
9636 sunos4*)
9637 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9638 wlarc=
9639 hardcode_direct=yes
9640 hardcode_shlibpath_var=no
9641 ;;
9642
9643 *)
9644 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9646 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9647 else
9648 ld_shlibs=no
9649 fi
9650 ;;
9651 esac
9652
9653 if test "$ld_shlibs" = no; then
9654 runpath_var=
9655 hardcode_libdir_flag_spec=
9656 export_dynamic_flag_spec=
9657 whole_archive_flag_spec=
9658 fi
9659 else
9660 # PORTME fill in a description of your system's linker (not GNU ld)
9661 case $host_os in
9662 aix3*)
9663 allow_undefined_flag=unsupported
9664 always_export_symbols=yes
9665 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'
9666 # Note: this linker hardcodes the directories in LIBPATH if there
9667 # are no directories specified by -L.
9668 hardcode_minus_L=yes
9669 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9670 # Neither direct hardcoding nor static linking is supported with a
9671 # broken collect2.
9672 hardcode_direct=unsupported
9673 fi
9674 ;;
9675
9676 aix[4-9]*)
9677 if test "$host_cpu" = ia64; then
9678 # On IA64, the linker does run time linking by default, so we don't
9679 # have to do anything special.
9680 aix_use_runtimelinking=no
9681 exp_sym_flag='-Bexport'
9682 no_entry_flag=""
9683 else
9684 # If we're using GNU nm, then we don't want the "-C" option.
9685 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9686 # Also, AIX nm treats weak defined symbols like other global
9687 # defined symbols, whereas GNU nm marks them as "W".
9688 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9689 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'
9690 else
9691 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9692 fi
9693 aix_use_runtimelinking=no
9694
9695 # Test if we are trying to use run time linking or normal
9696 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9697 # need to do runtime linking.
9698 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9699 for ld_flag in $LDFLAGS; do
9700 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9701 aix_use_runtimelinking=yes
9702 break
9703 fi
9704 done
9705 ;;
9706 esac
9707
9708 exp_sym_flag='-bexport'
9709 no_entry_flag='-bnoentry'
9710 fi
9711
9712 # When large executables or shared objects are built, AIX ld can
9713 # have problems creating the table of contents. If linking a library
9714 # or program results in "error TOC overflow" add -mminimal-toc to
9715 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9716 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9717
9718 archive_cmds=''
9719 hardcode_direct=yes
9720 hardcode_direct_absolute=yes
9721 hardcode_libdir_separator=':'
9722 link_all_deplibs=yes
9723 file_list_spec='${wl}-f,'
9724
9725 if test "$GCC" = yes; then
9726 case $host_os in aix4.[012]|aix4.[012].*)
9727 # We only want to do this on AIX 4.2 and lower, the check
9728 # below for broken collect2 doesn't work under 4.3+
9729 collect2name=`${CC} -print-prog-name=collect2`
9730 if test -f "$collect2name" &&
9731 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9732 then
9733 # We have reworked collect2
9734 :
9735 else
9736 # We have old collect2
9737 hardcode_direct=unsupported
9738 # It fails to find uninstalled libraries when the uninstalled
9739 # path is not listed in the libpath. Setting hardcode_minus_L
9740 # to unsupported forces relinking
9741 hardcode_minus_L=yes
9742 hardcode_libdir_flag_spec='-L$libdir'
9743 hardcode_libdir_separator=
9744 fi
9745 ;;
9746 esac
9747 shared_flag='-shared'
9748 if test "$aix_use_runtimelinking" = yes; then
9749 shared_flag="$shared_flag "'${wl}-G'
9750 fi
9751 else
9752 # not using gcc
9753 if test "$host_cpu" = ia64; then
9754 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9755 # chokes on -Wl,-G. The following line is correct:
9756 shared_flag='-G'
9757 else
9758 if test "$aix_use_runtimelinking" = yes; then
9759 shared_flag='${wl}-G'
9760 else
9761 shared_flag='${wl}-bM:SRE'
9762 fi
9763 fi
9764 fi
9765
9766 export_dynamic_flag_spec='${wl}-bexpall'
9767 # It seems that -bexpall does not export symbols beginning with
9768 # underscore (_), so it is better to generate a list of symbols to export.
9769 always_export_symbols=yes
9770 if test "$aix_use_runtimelinking" = yes; then
9771 # Warning - without using the other runtime loading flags (-brtl),
9772 # -berok will link without error, but may produce a broken library.
9773 allow_undefined_flag='-berok'
9774 # Determine the default libpath from the value encoded in an
9775 # empty executable.
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777/* end confdefs.h. */
9778
9779int
9780main ()
9781{
9782
9783 ;
9784 return 0;
9785}
9786_ACEOF
9787if ac_fn_c_try_link "$LINENO"; then :
9788
9789lt_aix_libpath_sed='
9790 /Import File Strings/,/^$/ {
9791 /^0/ {
9792 s/^0 *\(.*\)$/\1/
9793 p
9794 }
9795 }'
9796aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9797# Check for a 64-bit object if we didn't find anything.
9798if test -z "$aix_libpath"; then
9799 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9800fi
9801fi
9802rm -f core conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
9804if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9805
9806 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9807 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"
9808 else
9809 if test "$host_cpu" = ia64; then
9810 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9811 allow_undefined_flag="-z nodefs"
9812 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"
9813 else
9814 # Determine the default libpath from the value encoded in an
9815 # empty executable.
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817/* end confdefs.h. */
9818
9819int
9820main ()
9821{
9822
9823 ;
9824 return 0;
9825}
9826_ACEOF
9827if ac_fn_c_try_link "$LINENO"; then :
9828
9829lt_aix_libpath_sed='
9830 /Import File Strings/,/^$/ {
9831 /^0/ {
9832 s/^0 *\(.*\)$/\1/
9833 p
9834 }
9835 }'
9836aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9837# Check for a 64-bit object if we didn't find anything.
9838if test -z "$aix_libpath"; then
9839 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9840fi
9841fi
9842rm -f core conftest.err conftest.$ac_objext \
9843 conftest$ac_exeext conftest.$ac_ext
9844if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9845
9846 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9847 # Warning - without using the other run time loading flags,
9848 # -berok will link without error, but may produce a broken library.
9849 no_undefined_flag=' ${wl}-bernotok'
9850 allow_undefined_flag=' ${wl}-berok'
9851 if test "$with_gnu_ld" = yes; then
9852 # We only use this code for GNU lds that support --whole-archive.
9853 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9854 else
9855 # Exported symbols can be pulled into shared objects from archives
9856 whole_archive_flag_spec='$convenience'
9857 fi
9858 archive_cmds_need_lc=yes
9859 # This is similar to how AIX traditionally builds its shared libraries.
9860 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'
9861 fi
9862 fi
9863 ;;
9864
9865 amigaos*)
9866 case $host_cpu in
9867 powerpc)
9868 # see comment about AmigaOS4 .so support
9869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9870 archive_expsym_cmds=''
9871 ;;
9872 m68k)
9873 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)'
9874 hardcode_libdir_flag_spec='-L$libdir'
9875 hardcode_minus_L=yes
9876 ;;
9877 esac
9878 ;;
9879
9880 bsdi[45]*)
9881 export_dynamic_flag_spec=-rdynamic
9882 ;;
9883
9884 cygwin* | mingw* | pw32* | cegcc*)
9885 # When not using gcc, we currently assume that we are using
9886 # Microsoft Visual C++.
9887 # hardcode_libdir_flag_spec is actually meaningless, as there is
9888 # no search path for DLLs.
9889 hardcode_libdir_flag_spec=' '
9890 allow_undefined_flag=unsupported
9891 # Tell ltmain to make .lib files, not .a files.
9892 libext=lib
9893 # Tell ltmain to make .dll files, not .so files.
9894 shrext_cmds=".dll"
9895 # FIXME: Setting linknames here is a bad hack.
9896 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9897 # The linker will automatically build a .lib file if we build a DLL.
9898 old_archive_from_new_cmds='true'
9899 # FIXME: Should let the user specify the lib program.
9900 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9901 fix_srcfile_path='`cygpath -w "$srcfile"`'
9902 enable_shared_with_static_runtimes=yes
9903 ;;
9904
9905 darwin* | rhapsody*)
9906
9907
9908 archive_cmds_need_lc=no
9909 hardcode_direct=no
9910 hardcode_automatic=yes
9911 hardcode_shlibpath_var=unsupported
9912 if test "$lt_cv_ld_force_load" = "yes"; then
9913 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\"`'
9914 else
9915 whole_archive_flag_spec=''
9916 fi
9917 link_all_deplibs=yes
9918 allow_undefined_flag="$_lt_dar_allow_undefined"
9919 case $cc_basename in
9920 ifort*) _lt_dar_can_shared=yes ;;
9921 *) _lt_dar_can_shared=$GCC ;;
9922 esac
9923 if test "$_lt_dar_can_shared" = "yes"; then
9924 output_verbose_link_cmd=func_echo_all
9925 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9926 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9927 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}"
9928 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}"
9929
9930 else
9931 ld_shlibs=no
9932 fi
9933
9934 ;;
9935
9936 dgux*)
9937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9938 hardcode_libdir_flag_spec='-L$libdir'
9939 hardcode_shlibpath_var=no
9940 ;;
9941
9942 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9943 # support. Future versions do this automatically, but an explicit c++rt0.o
9944 # does not break anything, and helps significantly (at the cost of a little
9945 # extra space).
9946 freebsd2.2*)
9947 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9948 hardcode_libdir_flag_spec='-R$libdir'
9949 hardcode_direct=yes
9950 hardcode_shlibpath_var=no
9951 ;;
9952
9953 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9954 freebsd2*)
9955 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9956 hardcode_direct=yes
9957 hardcode_minus_L=yes
9958 hardcode_shlibpath_var=no
9959 ;;
9960
9961 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9962 freebsd* | dragonfly*)
9963 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9964 hardcode_libdir_flag_spec='-R$libdir'
9965 hardcode_direct=yes
9966 hardcode_shlibpath_var=no
9967 ;;
9968
9969 hpux9*)
9970 if test "$GCC" = yes; then
9971 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'
9972 else
9973 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'
9974 fi
9975 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9976 hardcode_libdir_separator=:
9977 hardcode_direct=yes
9978
9979 # hardcode_minus_L: Not really in the search PATH,
9980 # but as the default location of the library.
9981 hardcode_minus_L=yes
9982 export_dynamic_flag_spec='${wl}-E'
9983 ;;
9984
9985 hpux10*)
9986 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9987 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9988 else
9989 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9990 fi
9991 if test "$with_gnu_ld" = no; then
9992 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9993 hardcode_libdir_flag_spec_ld='+b $libdir'
9994 hardcode_libdir_separator=:
9995 hardcode_direct=yes
9996 hardcode_direct_absolute=yes
9997 export_dynamic_flag_spec='${wl}-E'
9998 # hardcode_minus_L: Not really in the search PATH,
9999 # but as the default location of the library.
10000 hardcode_minus_L=yes
10001 fi
10002 ;;
10003
10004 hpux11*)
10005 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10006 case $host_cpu in
10007 hppa*64*)
10008 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10009 ;;
10010 ia64*)
10011 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10012 ;;
10013 *)
10014 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10015 ;;
10016 esac
10017 else
10018 case $host_cpu in
10019 hppa*64*)
10020 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10021 ;;
10022 ia64*)
10023 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10024 ;;
10025 *)
10026
10027 # Older versions of the 11.00 compiler do not understand -b yet
10028 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10030$as_echo_n "checking if $CC understands -b... " >&6; }
10031if test "${lt_cv_prog_compiler__b+set}" = set; then :
10032 $as_echo_n "(cached) " >&6
10033else
10034 lt_cv_prog_compiler__b=no
10035 save_LDFLAGS="$LDFLAGS"
10036 LDFLAGS="$LDFLAGS -b"
10037 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10038 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10039 # The linker can only warn and ignore the option if not recognized
10040 # So say no if there are warnings
10041 if test -s conftest.err; then
10042 # Append any errors to the config.log.
10043 cat conftest.err 1>&5
10044 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10046 if diff conftest.exp conftest.er2 >/dev/null; then
10047 lt_cv_prog_compiler__b=yes
10048 fi
10049 else
10050 lt_cv_prog_compiler__b=yes
10051 fi
10052 fi
10053 $RM -r conftest*
10054 LDFLAGS="$save_LDFLAGS"
10055
10056fi
10057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10058$as_echo "$lt_cv_prog_compiler__b" >&6; }
10059
10060if test x"$lt_cv_prog_compiler__b" = xyes; then
10061 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10062else
10063 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10064fi
10065
10066 ;;
10067 esac
10068 fi
10069 if test "$with_gnu_ld" = no; then
10070 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10071 hardcode_libdir_separator=:
10072
10073 case $host_cpu in
10074 hppa*64*|ia64*)
10075 hardcode_direct=no
10076 hardcode_shlibpath_var=no
10077 ;;
10078 *)
10079 hardcode_direct=yes
10080 hardcode_direct_absolute=yes
10081 export_dynamic_flag_spec='${wl}-E'
10082
10083 # hardcode_minus_L: Not really in the search PATH,
10084 # but as the default location of the library.
10085 hardcode_minus_L=yes
10086 ;;
10087 esac
10088 fi
10089 ;;
10090
10091 irix5* | irix6* | nonstopux*)
10092 if test "$GCC" = yes; then
10093 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'
10094 # Try to use the -exported_symbol ld option, if it does not
10095 # work, assume that -exports_file does not work either and
10096 # implicitly export all symbols.
10097 save_LDFLAGS="$LDFLAGS"
10098 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100/* end confdefs.h. */
10101int foo(void) {}
10102_ACEOF
10103if ac_fn_c_try_link "$LINENO"; then :
10104 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'
10105
10106fi
10107rm -f core conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext conftest.$ac_ext
10109 LDFLAGS="$save_LDFLAGS"
10110 else
10111 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'
10112 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'
10113 fi
10114 archive_cmds_need_lc='no'
10115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10116 hardcode_libdir_separator=:
10117 inherit_rpath=yes
10118 link_all_deplibs=yes
10119 ;;
10120
10121 netbsd*)
10122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10124 else
10125 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10126 fi
10127 hardcode_libdir_flag_spec='-R$libdir'
10128 hardcode_direct=yes
10129 hardcode_shlibpath_var=no
10130 ;;
10131
10132 newsos6)
10133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134 hardcode_direct=yes
10135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10136 hardcode_libdir_separator=:
10137 hardcode_shlibpath_var=no
10138 ;;
10139
10140 *nto* | *qnx*)
10141 ;;
10142
10143 openbsd*)
10144 if test -f /usr/libexec/ld.so; then
10145 hardcode_direct=yes
10146 hardcode_shlibpath_var=no
10147 hardcode_direct_absolute=yes
10148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10149 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10150 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10152 export_dynamic_flag_spec='${wl}-E'
10153 else
10154 case $host_os in
10155 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10157 hardcode_libdir_flag_spec='-R$libdir'
10158 ;;
10159 *)
10160 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10161 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10162 ;;
10163 esac
10164 fi
10165 else
10166 ld_shlibs=no
10167 fi
10168 ;;
10169
10170 os2*)
10171 hardcode_libdir_flag_spec='-L$libdir'
10172 hardcode_minus_L=yes
10173 allow_undefined_flag=unsupported
10174 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'
10175 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10176 ;;
10177
10178 osf3*)
10179 if test "$GCC" = yes; then
10180 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10181 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'
10182 else
10183 allow_undefined_flag=' -expect_unresolved \*'
10184 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'
10185 fi
10186 archive_cmds_need_lc='no'
10187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10188 hardcode_libdir_separator=:
10189 ;;
10190
10191 osf4* | osf5*) # as osf3* with the addition of -msym flag
10192 if test "$GCC" = yes; then
10193 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10194 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'
10195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10196 else
10197 allow_undefined_flag=' -expect_unresolved \*'
10198 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'
10199 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~
10200 $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'
10201
10202 # Both c and cxx compiler support -rpath directly
10203 hardcode_libdir_flag_spec='-rpath $libdir'
10204 fi
10205 archive_cmds_need_lc='no'
10206 hardcode_libdir_separator=:
10207 ;;
10208
10209 solaris*)
10210 no_undefined_flag=' -z defs'
10211 if test "$GCC" = yes; then
10212 wlarc='${wl}'
10213 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10214 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10215 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10216 else
10217 case `$CC -V 2>&1` in
10218 *"Compilers 5.0"*)
10219 wlarc=''
10220 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10221 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10222 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10223 ;;
10224 *)
10225 wlarc='${wl}'
10226 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10227 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10228 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10229 ;;
10230 esac
10231 fi
10232 hardcode_libdir_flag_spec='-R$libdir'
10233 hardcode_shlibpath_var=no
10234 case $host_os in
10235 solaris2.[0-5] | solaris2.[0-5].*) ;;
10236 *)
10237 # The compiler driver will combine and reorder linker options,
10238 # but understands `-z linker_flag'. GCC discards it without `$wl',
10239 # but is careful enough not to reorder.
10240 # Supported since Solaris 2.6 (maybe 2.5.1?)
10241 if test "$GCC" = yes; then
10242 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10243 else
10244 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10245 fi
10246 ;;
10247 esac
10248 link_all_deplibs=yes
10249 ;;
10250
10251 sunos4*)
10252 if test "x$host_vendor" = xsequent; then
10253 # Use $CC to link under sequent, because it throws in some extra .o
10254 # files that make .init and .fini sections work.
10255 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10256 else
10257 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10258 fi
10259 hardcode_libdir_flag_spec='-L$libdir'
10260 hardcode_direct=yes
10261 hardcode_minus_L=yes
10262 hardcode_shlibpath_var=no
10263 ;;
10264
10265 sysv4)
10266 case $host_vendor in
10267 sni)
10268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10269 hardcode_direct=yes # is this really true???
10270 ;;
10271 siemens)
10272 ## LD is ld it makes a PLAMLIB
10273 ## CC just makes a GrossModule.
10274 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10275 reload_cmds='$CC -r -o $output$reload_objs'
10276 hardcode_direct=no
10277 ;;
10278 motorola)
10279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10280 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10281 ;;
10282 esac
10283 runpath_var='LD_RUN_PATH'
10284 hardcode_shlibpath_var=no
10285 ;;
10286
10287 sysv4.3*)
10288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10289 hardcode_shlibpath_var=no
10290 export_dynamic_flag_spec='-Bexport'
10291 ;;
10292
10293 sysv4*MP*)
10294 if test -d /usr/nec; then
10295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10296 hardcode_shlibpath_var=no
10297 runpath_var=LD_RUN_PATH
10298 hardcode_runpath_var=yes
10299 ld_shlibs=yes
10300 fi
10301 ;;
10302
10303 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10304 no_undefined_flag='${wl}-z,text'
10305 archive_cmds_need_lc=no
10306 hardcode_shlibpath_var=no
10307 runpath_var='LD_RUN_PATH'
10308
10309 if test "$GCC" = yes; then
10310 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10311 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10312 else
10313 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10314 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10315 fi
10316 ;;
10317
10318 sysv5* | sco3.2v5* | sco5v6*)
10319 # Note: We can NOT use -z defs as we might desire, because we do not
10320 # link with -lc, and that would cause any symbols used from libc to
10321 # always be unresolved, which means just about no library would
10322 # ever link correctly. If we're not using GNU ld we use -z text
10323 # though, which does catch some bad symbols but isn't as heavy-handed
10324 # as -z defs.
10325 no_undefined_flag='${wl}-z,text'
10326 allow_undefined_flag='${wl}-z,nodefs'
10327 archive_cmds_need_lc=no
10328 hardcode_shlibpath_var=no
10329 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10330 hardcode_libdir_separator=':'
10331 link_all_deplibs=yes
10332 export_dynamic_flag_spec='${wl}-Bexport'
10333 runpath_var='LD_RUN_PATH'
10334
10335 if test "$GCC" = yes; then
10336 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10337 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10338 else
10339 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10340 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10341 fi
10342 ;;
10343
10344 uts4*)
10345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10346 hardcode_libdir_flag_spec='-L$libdir'
10347 hardcode_shlibpath_var=no
10348 ;;
10349
10350 *)
10351 ld_shlibs=no
10352 ;;
10353 esac
10354
10355 if test x$host_vendor = xsni; then
10356 case $host in
10357 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10358 export_dynamic_flag_spec='${wl}-Blargedynsym'
10359 ;;
10360 esac
10361 fi
10362 fi
10363
10364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10365$as_echo "$ld_shlibs" >&6; }
10366test "$ld_shlibs" = no && can_build_shared=no
10367
10368with_gnu_ld=$with_gnu_ld
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384#
10385# Do we need to explicitly link libc?
10386#
10387case "x$archive_cmds_need_lc" in
10388x|xyes)
10389 # Assume -lc should be added
10390 archive_cmds_need_lc=yes
10391
10392 if test "$enable_shared" = yes && test "$GCC" = yes; then
10393 case $archive_cmds in
10394 *'~'*)
10395 # FIXME: we may have to deal with multi-command sequences.
10396 ;;
10397 '$CC '*)
10398 # Test whether the compiler implicitly links with -lc since on some
10399 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10400 # to ld, don't add -lc before -lgcc.
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10402$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10403if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10404 $as_echo_n "(cached) " >&6
10405else
10406 $RM conftest*
10407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10408
10409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10410 (eval $ac_compile) 2>&5
10411 ac_status=$?
10412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10413 test $ac_status = 0; } 2>conftest.err; then
10414 soname=conftest
10415 lib=conftest
10416 libobjs=conftest.$ac_objext
10417 deplibs=
10418 wl=$lt_prog_compiler_wl
10419 pic_flag=$lt_prog_compiler_pic
10420 compiler_flags=-v
10421 linker_flags=-v
10422 verstring=
10423 output_objdir=.
10424 libname=conftest
10425 lt_save_allow_undefined_flag=$allow_undefined_flag
10426 allow_undefined_flag=
10427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10428 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10429 ac_status=$?
10430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10431 test $ac_status = 0; }
10432 then
10433 lt_cv_archive_cmds_need_lc=no
10434 else
10435 lt_cv_archive_cmds_need_lc=yes
10436 fi
10437 allow_undefined_flag=$lt_save_allow_undefined_flag
10438 else
10439 cat conftest.err 1>&5
10440 fi
10441 $RM conftest*
10442
10443fi
10444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10445$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10446 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10447 ;;
10448 esac
10449 fi
10450 ;;
10451esac
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10610$as_echo_n "checking dynamic linker characteristics... " >&6; }
10611
10612if test "$GCC" = yes; then
10613 case $host_os in
10614 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10615 *) lt_awk_arg="/^libraries:/" ;;
10616 esac
10617 case $host_os in
10618 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10619 *) lt_sed_strip_eq="s,=/,/,g" ;;
10620 esac
10621 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10622 case $lt_search_path_spec in
10623 *\;*)
10624 # if the path contains ";" then we assume it to be the separator
10625 # otherwise default to the standard path separator (i.e. ":") - it is
10626 # assumed that no part of a normal pathname contains ";" but that should
10627 # okay in the real world where ";" in dirpaths is itself problematic.
10628 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10629 ;;
10630 *)
10631 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10632 ;;
10633 esac
10634 # Ok, now we have the path, separated by spaces, we can step through it
10635 # and add multilib dir if necessary.
10636 lt_tmp_lt_search_path_spec=
10637 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10638 for lt_sys_path in $lt_search_path_spec; do
10639 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10640 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10641 else
10642 test -d "$lt_sys_path" && \
10643 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10644 fi
10645 done
10646 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10647BEGIN {RS=" "; FS="/|\n";} {
10648 lt_foo="";
10649 lt_count=0;
10650 for (lt_i = NF; lt_i > 0; lt_i--) {
10651 if ($lt_i != "" && $lt_i != ".") {
10652 if ($lt_i == "..") {
10653 lt_count++;
10654 } else {
10655 if (lt_count == 0) {
10656 lt_foo="/" $lt_i lt_foo;
10657 } else {
10658 lt_count--;
10659 }
10660 }
10661 }
10662 }
10663 if (lt_foo != "") { lt_freq[lt_foo]++; }
10664 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10665}'`
10666 # AWK program above erroneously prepends '/' to C:/dos/paths
10667 # for these hosts.
10668 case $host_os in
10669 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10670 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10671 esac
10672 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10673else
10674 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10675fi
10676library_names_spec=
10677libname_spec='lib$name'
10678soname_spec=
10679shrext_cmds=".so"
10680postinstall_cmds=
10681postuninstall_cmds=
10682finish_cmds=
10683finish_eval=
10684shlibpath_var=
10685shlibpath_overrides_runpath=unknown
10686version_type=none
10687dynamic_linker="$host_os ld.so"
10688sys_lib_dlsearch_path_spec="/lib /usr/lib"
10689need_lib_prefix=unknown
10690hardcode_into_libs=no
10691
10692# when you set need_version to no, make sure it does not cause -set_version
10693# flags to be left without arguments
10694need_version=unknown
10695
10696case $host_os in
10697aix3*)
10698 version_type=linux
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10700 shlibpath_var=LIBPATH
10701
10702 # AIX 3 has no versioning support, so we append a major version to the name.
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 ;;
10705
10706aix[4-9]*)
10707 version_type=linux
10708 need_lib_prefix=no
10709 need_version=no
10710 hardcode_into_libs=yes
10711 if test "$host_cpu" = ia64; then
10712 # AIX 5 supports IA64
10713 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10714 shlibpath_var=LD_LIBRARY_PATH
10715 else
10716 # With GCC up to 2.95.x, collect2 would create an import file
10717 # for dependence libraries. The import file would start with
10718 # the line `#! .'. This would cause the generated library to
10719 # depend on `.', always an invalid library. This was fixed in
10720 # development snapshots of GCC prior to 3.0.
10721 case $host_os in
10722 aix4 | aix4.[01] | aix4.[01].*)
10723 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10724 echo ' yes '
10725 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10726 :
10727 else
10728 can_build_shared=no
10729 fi
10730 ;;
10731 esac
10732 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10733 # soname into executable. Probably we can add versioning support to
10734 # collect2, so additional links can be useful in future.
10735 if test "$aix_use_runtimelinking" = yes; then
10736 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10737 # instead of lib<name>.a to let people know that these are not
10738 # typical AIX shared libraries.
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10740 else
10741 # We preserve .a as extension for shared libraries through AIX4.2
10742 # and later when we are not doing run time linking.
10743 library_names_spec='${libname}${release}.a $libname.a'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10745 fi
10746 shlibpath_var=LIBPATH
10747 fi
10748 ;;
10749
10750amigaos*)
10751 case $host_cpu in
10752 powerpc)
10753 # Since July 2007 AmigaOS4 officially supports .so libraries.
10754 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10756 ;;
10757 m68k)
10758 library_names_spec='$libname.ixlibrary $libname.a'
10759 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10760 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'
10761 ;;
10762 esac
10763 ;;
10764
10765beos*)
10766 library_names_spec='${libname}${shared_ext}'
10767 dynamic_linker="$host_os ld.so"
10768 shlibpath_var=LIBRARY_PATH
10769 ;;
10770
10771bsdi[45]*)
10772 version_type=linux
10773 need_version=no
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10779 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10780 # the default ld.so.conf also contains /usr/contrib/lib and
10781 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10782 # libtool to hard-code these into programs
10783 ;;
10784
10785cygwin* | mingw* | pw32* | cegcc*)
10786 version_type=windows
10787 shrext_cmds=".dll"
10788 need_version=no
10789 need_lib_prefix=no
10790
10791 case $GCC,$host_os in
10792 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10793 library_names_spec='$libname.dll.a'
10794 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10795 postinstall_cmds='base_file=`basename \${file}`~
10796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10797 dldir=$destdir/`dirname \$dlpath`~
10798 test -d \$dldir || mkdir -p \$dldir~
10799 $install_prog $dir/$dlname \$dldir/$dlname~
10800 chmod a+x \$dldir/$dlname~
10801 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10802 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10803 fi'
10804 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10805 dlpath=$dir/\$dldll~
10806 $RM \$dlpath'
10807 shlibpath_overrides_runpath=yes
10808
10809 case $host_os in
10810 cygwin*)
10811 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10812 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10813
10814 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10815 ;;
10816 mingw* | cegcc*)
10817 # MinGW DLLs use traditional 'lib' prefix
10818 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10819 ;;
10820 pw32*)
10821 # pw32 DLLs use 'pw' prefix rather than 'lib'
10822 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10823 ;;
10824 esac
10825 ;;
10826
10827 *)
10828 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10829 ;;
10830 esac
10831 dynamic_linker='Win32 ld.exe'
10832 # FIXME: first we should search . and the directory the executable is in
10833 shlibpath_var=PATH
10834 ;;
10835
10836darwin* | rhapsody*)
10837 dynamic_linker="$host_os dyld"
10838 version_type=darwin
10839 need_lib_prefix=no
10840 need_version=no
10841 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10842 soname_spec='${libname}${release}${major}$shared_ext'
10843 shlibpath_overrides_runpath=yes
10844 shlibpath_var=DYLD_LIBRARY_PATH
10845 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10846
10847 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10848 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10849 ;;
10850
10851dgux*)
10852 version_type=linux
10853 need_lib_prefix=no
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 shlibpath_var=LD_LIBRARY_PATH
10858 ;;
10859
10860freebsd* | dragonfly*)
10861 # DragonFly does not have aout. When/if they implement a new
10862 # versioning mechanism, adjust this.
10863 if test -x /usr/bin/objformat; then
10864 objformat=`/usr/bin/objformat`
10865 else
10866 case $host_os in
10867 freebsd[123]*) objformat=aout ;;
10868 *) objformat=elf ;;
10869 esac
10870 fi
10871 version_type=freebsd-$objformat
10872 case $version_type in
10873 freebsd-elf*)
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10875 need_version=no
10876 need_lib_prefix=no
10877 ;;
10878 freebsd-*)
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10880 need_version=yes
10881 ;;
10882 esac
10883 shlibpath_var=LD_LIBRARY_PATH
10884 case $host_os in
10885 freebsd2*)
10886 shlibpath_overrides_runpath=yes
10887 ;;
10888 freebsd3.[01]* | freebsdelf3.[01]*)
10889 shlibpath_overrides_runpath=yes
10890 hardcode_into_libs=yes
10891 ;;
10892 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10893 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10894 shlibpath_overrides_runpath=no
10895 hardcode_into_libs=yes
10896 ;;
10897 *) # from 4.6 on, and DragonFly
10898 shlibpath_overrides_runpath=yes
10899 hardcode_into_libs=yes
10900 ;;
10901 esac
10902 ;;
10903
10904gnu*)
10905 version_type=linux
10906 need_lib_prefix=no
10907 need_version=no
10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10909 soname_spec='${libname}${release}${shared_ext}$major'
10910 shlibpath_var=LD_LIBRARY_PATH
10911 hardcode_into_libs=yes
10912 ;;
10913
10914haiku*)
10915 version_type=linux
10916 need_lib_prefix=no
10917 need_version=no
10918 dynamic_linker="$host_os runtime_loader"
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10920 soname_spec='${libname}${release}${shared_ext}$major'
10921 shlibpath_var=LIBRARY_PATH
10922 shlibpath_overrides_runpath=yes
10923 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10924 hardcode_into_libs=yes
10925 ;;
10926
10927hpux9* | hpux10* | hpux11*)
10928 # Give a soname corresponding to the major version so that dld.sl refuses to
10929 # link against other versions.
10930 version_type=sunos
10931 need_lib_prefix=no
10932 need_version=no
10933 case $host_cpu in
10934 ia64*)
10935 shrext_cmds='.so'
10936 hardcode_into_libs=yes
10937 dynamic_linker="$host_os dld.so"
10938 shlibpath_var=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10941 soname_spec='${libname}${release}${shared_ext}$major'
10942 if test "X$HPUX_IA64_MODE" = X32; then
10943 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10944 else
10945 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10946 fi
10947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10948 ;;
10949 hppa*64*)
10950 shrext_cmds='.sl'
10951 hardcode_into_libs=yes
10952 dynamic_linker="$host_os dld.sl"
10953 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10956 soname_spec='${libname}${release}${shared_ext}$major'
10957 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10959 ;;
10960 *)
10961 shrext_cmds='.sl'
10962 dynamic_linker="$host_os dld.sl"
10963 shlibpath_var=SHLIB_PATH
10964 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10966 soname_spec='${libname}${release}${shared_ext}$major'
10967 ;;
10968 esac
10969 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10970 postinstall_cmds='chmod 555 $lib'
10971 # or fails outright, so override atomically:
10972 install_override_mode=555
10973 ;;
10974
10975interix[3-9]*)
10976 version_type=linux
10977 need_lib_prefix=no
10978 need_version=no
10979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10980 soname_spec='${libname}${release}${shared_ext}$major'
10981 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10982 shlibpath_var=LD_LIBRARY_PATH
10983 shlibpath_overrides_runpath=no
10984 hardcode_into_libs=yes
10985 ;;
10986
10987irix5* | irix6* | nonstopux*)
10988 case $host_os in
10989 nonstopux*) version_type=nonstopux ;;
10990 *)
10991 if test "$lt_cv_prog_gnu_ld" = yes; then
10992 version_type=linux
10993 else
10994 version_type=irix
10995 fi ;;
10996 esac
10997 need_lib_prefix=no
10998 need_version=no
10999 soname_spec='${libname}${release}${shared_ext}$major'
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11001 case $host_os in
11002 irix5* | nonstopux*)
11003 libsuff= shlibsuff=
11004 ;;
11005 *)
11006 case $LD in # libtool.m4 will add one of these switches to LD
11007 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11008 libsuff= shlibsuff= libmagic=32-bit;;
11009 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11010 libsuff=32 shlibsuff=N32 libmagic=N32;;
11011 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11012 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11013 *) libsuff= shlibsuff= libmagic=never-match;;
11014 esac
11015 ;;
11016 esac
11017 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11018 shlibpath_overrides_runpath=no
11019 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11020 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11021 hardcode_into_libs=yes
11022 ;;
11023
11024# No shared lib support for Linux oldld, aout, or coff.
11025linux*oldld* | linux*aout* | linux*coff*)
11026 dynamic_linker=no
11027 ;;
11028
11029# This must be Linux ELF.
11030linux* | k*bsd*-gnu | kopensolaris*-gnu)
11031 version_type=linux
11032 need_lib_prefix=no
11033 need_version=no
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11035 soname_spec='${libname}${release}${shared_ext}$major'
11036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11037 shlibpath_var=LD_LIBRARY_PATH
11038 shlibpath_overrides_runpath=no
11039
11040 # Some binutils ld are patched to set DT_RUNPATH
11041 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11042 $as_echo_n "(cached) " >&6
11043else
11044 lt_cv_shlibpath_overrides_runpath=no
11045 save_LDFLAGS=$LDFLAGS
11046 save_libdir=$libdir
11047 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11048 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11050/* end confdefs.h. */
11051
11052int
11053main ()
11054{
11055
11056 ;
11057 return 0;
11058}
11059_ACEOF
11060if ac_fn_c_try_link "$LINENO"; then :
11061 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11062 lt_cv_shlibpath_overrides_runpath=yes
11063fi
11064fi
11065rm -f core conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
11067 LDFLAGS=$save_LDFLAGS
11068 libdir=$save_libdir
11069
11070fi
11071
11072 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11073
11074 # This implies no fast_install, which is unacceptable.
11075 # Some rework will be needed to allow for fast_install
11076 # before this can be enabled.
11077 hardcode_into_libs=yes
11078
11079 # Append ld.so.conf contents to the search path
11080 if test -f /etc/ld.so.conf; then
11081 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' ' '`
11082 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11083 fi
11084
11085 # We used to test for /lib/ld.so.1 and disable shared libraries on
11086 # powerpc, because MkLinux only supported shared libraries with the
11087 # GNU dynamic linker. Since this was broken with cross compilers,
11088 # most powerpc-linux boxes support dynamic linking these days and
11089 # people can always --disable-shared, the test was removed, and we
11090 # assume the GNU/Linux dynamic linker is in use.
11091 dynamic_linker='GNU/Linux ld.so'
11092 ;;
11093
11094netbsd*)
11095 version_type=sunos
11096 need_lib_prefix=no
11097 need_version=no
11098 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11101 dynamic_linker='NetBSD (a.out) ld.so'
11102 else
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 dynamic_linker='NetBSD ld.elf_so'
11106 fi
11107 shlibpath_var=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath=yes
11109 hardcode_into_libs=yes
11110 ;;
11111
11112newsos6)
11113 version_type=linux
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=yes
11117 ;;
11118
11119*nto* | *qnx*)
11120 version_type=qnx
11121 need_lib_prefix=no
11122 need_version=no
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124 soname_spec='${libname}${release}${shared_ext}$major'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=no
11127 hardcode_into_libs=yes
11128 dynamic_linker='ldqnx.so'
11129 ;;
11130
11131openbsd*)
11132 version_type=sunos
11133 sys_lib_dlsearch_path_spec="/usr/lib"
11134 need_lib_prefix=no
11135 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11136 case $host_os in
11137 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11138 *) need_version=no ;;
11139 esac
11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11142 shlibpath_var=LD_LIBRARY_PATH
11143 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11144 case $host_os in
11145 openbsd2.[89] | openbsd2.[89].*)
11146 shlibpath_overrides_runpath=no
11147 ;;
11148 *)
11149 shlibpath_overrides_runpath=yes
11150 ;;
11151 esac
11152 else
11153 shlibpath_overrides_runpath=yes
11154 fi
11155 ;;
11156
11157os2*)
11158 libname_spec='$name'
11159 shrext_cmds=".dll"
11160 need_lib_prefix=no
11161 library_names_spec='$libname${shared_ext} $libname.a'
11162 dynamic_linker='OS/2 ld.exe'
11163 shlibpath_var=LIBPATH
11164 ;;
11165
11166osf3* | osf4* | osf5*)
11167 version_type=osf
11168 need_lib_prefix=no
11169 need_version=no
11170 soname_spec='${libname}${release}${shared_ext}$major'
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172 shlibpath_var=LD_LIBRARY_PATH
11173 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11174 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11175 ;;
11176
11177rdos*)
11178 dynamic_linker=no
11179 ;;
11180
11181solaris*)
11182 version_type=linux
11183 need_lib_prefix=no
11184 need_version=no
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 shlibpath_var=LD_LIBRARY_PATH
11188 shlibpath_overrides_runpath=yes
11189 hardcode_into_libs=yes
11190 # ldd complains unless libraries are executable
11191 postinstall_cmds='chmod +x $lib'
11192 ;;
11193
11194sunos4*)
11195 version_type=sunos
11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11197 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 shlibpath_overrides_runpath=yes
11200 if test "$with_gnu_ld" = yes; then
11201 need_lib_prefix=no
11202 fi
11203 need_version=yes
11204 ;;
11205
11206sysv4 | sysv4.3*)
11207 version_type=linux
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209 soname_spec='${libname}${release}${shared_ext}$major'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 case $host_vendor in
11212 sni)
11213 shlibpath_overrides_runpath=no
11214 need_lib_prefix=no
11215 runpath_var=LD_RUN_PATH
11216 ;;
11217 siemens)
11218 need_lib_prefix=no
11219 ;;
11220 motorola)
11221 need_lib_prefix=no
11222 need_version=no
11223 shlibpath_overrides_runpath=no
11224 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11225 ;;
11226 esac
11227 ;;
11228
11229sysv4*MP*)
11230 if test -d /usr/nec ;then
11231 version_type=linux
11232 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11233 soname_spec='$libname${shared_ext}.$major'
11234 shlibpath_var=LD_LIBRARY_PATH
11235 fi
11236 ;;
11237
11238sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11239 version_type=freebsd-elf
11240 need_lib_prefix=no
11241 need_version=no
11242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11243 soname_spec='${libname}${release}${shared_ext}$major'
11244 shlibpath_var=LD_LIBRARY_PATH
11245 shlibpath_overrides_runpath=yes
11246 hardcode_into_libs=yes
11247 if test "$with_gnu_ld" = yes; then
11248 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11249 else
11250 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11251 case $host_os in
11252 sco3.2v5*)
11253 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11254 ;;
11255 esac
11256 fi
11257 sys_lib_dlsearch_path_spec='/usr/lib'
11258 ;;
11259
11260tpf*)
11261 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11262 version_type=linux
11263 need_lib_prefix=no
11264 need_version=no
11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266 shlibpath_var=LD_LIBRARY_PATH
11267 shlibpath_overrides_runpath=no
11268 hardcode_into_libs=yes
11269 ;;
11270
11271uts4*)
11272 version_type=linux
11273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11274 soname_spec='${libname}${release}${shared_ext}$major'
11275 shlibpath_var=LD_LIBRARY_PATH
11276 ;;
11277
11278*)
11279 dynamic_linker=no
11280 ;;
11281esac
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11283$as_echo "$dynamic_linker" >&6; }
11284test "$dynamic_linker" = no && can_build_shared=no
11285
11286variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11287if test "$GCC" = yes; then
11288 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11289fi
11290
11291if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11292 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11293fi
11294if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11295 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11296fi
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11390$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11391hardcode_action=
11392if test -n "$hardcode_libdir_flag_spec" ||
11393 test -n "$runpath_var" ||
11394 test "X$hardcode_automatic" = "Xyes" ; then
11395
11396 # We can hardcode non-existent directories.
11397 if test "$hardcode_direct" != no &&
11398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11399 # have to relink, otherwise we might link with an installed library
11400 # when we should be linking with a yet-to-be-installed one
11401 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11402 test "$hardcode_minus_L" != no; then
11403 # Linking always hardcodes the temporary library directory.
11404 hardcode_action=relink
11405 else
11406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11407 hardcode_action=immediate
11408 fi
11409else
11410 # We cannot hardcode anything, or else we can only hardcode existing
11411 # directories.
11412 hardcode_action=unsupported
11413fi
11414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11415$as_echo "$hardcode_action" >&6; }
11416
11417if test "$hardcode_action" = relink ||
11418 test "$inherit_rpath" = yes; then
11419 # Fast installation is not supported
11420 enable_fast_install=no
11421elif test "$shlibpath_overrides_runpath" = yes ||
11422 test "$enable_shared" = no; then
11423 # Fast installation is not necessary
11424 enable_fast_install=needless
11425fi
11426
11427
11428
11429
11430
11431
11432 if test "x$enable_dlopen" != xyes; then
11433 enable_dlopen=unknown
11434 enable_dlopen_self=unknown
11435 enable_dlopen_self_static=unknown
11436else
11437 lt_cv_dlopen=no
11438 lt_cv_dlopen_libs=
11439
11440 case $host_os in
11441 beos*)
11442 lt_cv_dlopen="load_add_on"
11443 lt_cv_dlopen_libs=
11444 lt_cv_dlopen_self=yes
11445 ;;
11446
11447 mingw* | pw32* | cegcc*)
11448 lt_cv_dlopen="LoadLibrary"
11449 lt_cv_dlopen_libs=
11450 ;;
11451
11452 cygwin*)
11453 lt_cv_dlopen="dlopen"
11454 lt_cv_dlopen_libs=
11455 ;;
11456
11457 darwin*)
11458 # if libdl is installed we need to link against it
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11460$as_echo_n "checking for dlopen in -ldl... " >&6; }
11461if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11462 $as_echo_n "(cached) " >&6
11463else
11464 ac_check_lib_save_LIBS=$LIBS
11465LIBS="-ldl $LIBS"
11466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467/* end confdefs.h. */
11468
11469/* Override any GCC internal prototype to avoid an error.
11470 Use char because int might match the return type of a GCC
11471 builtin and then its argument prototype would still apply. */
11472#ifdef __cplusplus
11473extern "C"
11474#endif
11475char dlopen ();
11476int
11477main ()
11478{
11479return dlopen ();
11480 ;
11481 return 0;
11482}
11483_ACEOF
11484if ac_fn_c_try_link "$LINENO"; then :
11485 ac_cv_lib_dl_dlopen=yes
11486else
11487 ac_cv_lib_dl_dlopen=no
11488fi
11489rm -f core conftest.err conftest.$ac_objext \
11490 conftest$ac_exeext conftest.$ac_ext
11491LIBS=$ac_check_lib_save_LIBS
11492fi
11493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11494$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11495if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11496 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11497else
11498
11499 lt_cv_dlopen="dyld"
11500 lt_cv_dlopen_libs=
11501 lt_cv_dlopen_self=yes
11502
11503fi
11504
11505 ;;
11506
11507 *)
11508 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11509if test "x$ac_cv_func_shl_load" = x""yes; then :
11510 lt_cv_dlopen="shl_load"
11511else
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11513$as_echo_n "checking for shl_load in -ldld... " >&6; }
11514if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11516else
11517 ac_check_lib_save_LIBS=$LIBS
11518LIBS="-ldld $LIBS"
11519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520/* end confdefs.h. */
11521
11522/* Override any GCC internal prototype to avoid an error.
11523 Use char because int might match the return type of a GCC
11524 builtin and then its argument prototype would still apply. */
11525#ifdef __cplusplus
11526extern "C"
11527#endif
11528char shl_load ();
11529int
11530main ()
11531{
11532return shl_load ();
11533 ;
11534 return 0;
11535}
11536_ACEOF
11537if ac_fn_c_try_link "$LINENO"; then :
11538 ac_cv_lib_dld_shl_load=yes
11539else
11540 ac_cv_lib_dld_shl_load=no
11541fi
11542rm -f core conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext conftest.$ac_ext
11544LIBS=$ac_check_lib_save_LIBS
11545fi
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11547$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11548if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11549 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11550else
11551 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11552if test "x$ac_cv_func_dlopen" = x""yes; then :
11553 lt_cv_dlopen="dlopen"
11554else
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11556$as_echo_n "checking for dlopen in -ldl... " >&6; }
11557if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11558 $as_echo_n "(cached) " >&6
11559else
11560 ac_check_lib_save_LIBS=$LIBS
11561LIBS="-ldl $LIBS"
11562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11563/* end confdefs.h. */
11564
11565/* Override any GCC internal prototype to avoid an error.
11566 Use char because int might match the return type of a GCC
11567 builtin and then its argument prototype would still apply. */
11568#ifdef __cplusplus
11569extern "C"
11570#endif
11571char dlopen ();
11572int
11573main ()
11574{
11575return dlopen ();
11576 ;
11577 return 0;
11578}
11579_ACEOF
11580if ac_fn_c_try_link "$LINENO"; then :
11581 ac_cv_lib_dl_dlopen=yes
11582else
11583 ac_cv_lib_dl_dlopen=no
11584fi
11585rm -f core conftest.err conftest.$ac_objext \
11586 conftest$ac_exeext conftest.$ac_ext
11587LIBS=$ac_check_lib_save_LIBS
11588fi
11589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11590$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11591if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11592 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11593else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11595$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11596if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11597 $as_echo_n "(cached) " >&6
11598else
11599 ac_check_lib_save_LIBS=$LIBS
11600LIBS="-lsvld $LIBS"
11601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602/* end confdefs.h. */
11603
11604/* Override any GCC internal prototype to avoid an error.
11605 Use char because int might match the return type of a GCC
11606 builtin and then its argument prototype would still apply. */
11607#ifdef __cplusplus
11608extern "C"
11609#endif
11610char dlopen ();
11611int
11612main ()
11613{
11614return dlopen ();
11615 ;
11616 return 0;
11617}
11618_ACEOF
11619if ac_fn_c_try_link "$LINENO"; then :
11620 ac_cv_lib_svld_dlopen=yes
11621else
11622 ac_cv_lib_svld_dlopen=no
11623fi
11624rm -f core conftest.err conftest.$ac_objext \
11625 conftest$ac_exeext conftest.$ac_ext
11626LIBS=$ac_check_lib_save_LIBS
11627fi
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11629$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11630if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11631 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11632else
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11634$as_echo_n "checking for dld_link in -ldld... " >&6; }
11635if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11636 $as_echo_n "(cached) " >&6
11637else
11638 ac_check_lib_save_LIBS=$LIBS
11639LIBS="-ldld $LIBS"
11640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641/* end confdefs.h. */
11642
11643/* Override any GCC internal prototype to avoid an error.
11644 Use char because int might match the return type of a GCC
11645 builtin and then its argument prototype would still apply. */
11646#ifdef __cplusplus
11647extern "C"
11648#endif
11649char dld_link ();
11650int
11651main ()
11652{
11653return dld_link ();
11654 ;
11655 return 0;
11656}
11657_ACEOF
11658if ac_fn_c_try_link "$LINENO"; then :
11659 ac_cv_lib_dld_dld_link=yes
11660else
11661 ac_cv_lib_dld_dld_link=no
11662fi
11663rm -f core conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
11665LIBS=$ac_check_lib_save_LIBS
11666fi
11667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11668$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11669if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11670 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11671fi
11672
11673
11674fi
11675
11676
11677fi
11678
11679
11680fi
11681
11682
11683fi
11684
11685
11686fi
11687
11688 ;;
11689 esac
11690
11691 if test "x$lt_cv_dlopen" != xno; then
11692 enable_dlopen=yes
11693 else
11694 enable_dlopen=no
11695 fi
11696
11697 case $lt_cv_dlopen in
11698 dlopen)
11699 save_CPPFLAGS="$CPPFLAGS"
11700 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11701
11702 save_LDFLAGS="$LDFLAGS"
11703 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11704
11705 save_LIBS="$LIBS"
11706 LIBS="$lt_cv_dlopen_libs $LIBS"
11707
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11709$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11710if test "${lt_cv_dlopen_self+set}" = set; then :
11711 $as_echo_n "(cached) " >&6
11712else
11713 if test "$cross_compiling" = yes; then :
11714 lt_cv_dlopen_self=cross
11715else
11716 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11717 lt_status=$lt_dlunknown
11718 cat > conftest.$ac_ext <<_LT_EOF
d4b17902 11719#line 11719 "configure"
0a35513e
AH
11720#include "confdefs.h"
11721
11722#if HAVE_DLFCN_H
11723#include <dlfcn.h>
11724#endif
11725
11726#include <stdio.h>
11727
11728#ifdef RTLD_GLOBAL
11729# define LT_DLGLOBAL RTLD_GLOBAL
11730#else
11731# ifdef DL_GLOBAL
11732# define LT_DLGLOBAL DL_GLOBAL
11733# else
11734# define LT_DLGLOBAL 0
11735# endif
11736#endif
11737
11738/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11739 find out it does not work in some platform. */
11740#ifndef LT_DLLAZY_OR_NOW
11741# ifdef RTLD_LAZY
11742# define LT_DLLAZY_OR_NOW RTLD_LAZY
11743# else
11744# ifdef DL_LAZY
11745# define LT_DLLAZY_OR_NOW DL_LAZY
11746# else
11747# ifdef RTLD_NOW
11748# define LT_DLLAZY_OR_NOW RTLD_NOW
11749# else
11750# ifdef DL_NOW
11751# define LT_DLLAZY_OR_NOW DL_NOW
11752# else
11753# define LT_DLLAZY_OR_NOW 0
11754# endif
11755# endif
11756# endif
11757# endif
11758#endif
11759
11760/* When -fvisbility=hidden is used, assume the code has been annotated
11761 correspondingly for the symbols needed. */
11762#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11763void fnord () __attribute__((visibility("default")));
11764#endif
11765
11766void fnord () { int i=42; }
11767int main ()
11768{
11769 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11770 int status = $lt_dlunknown;
11771
11772 if (self)
11773 {
11774 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11775 else
11776 {
11777 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11778 else puts (dlerror ());
11779 }
11780 /* dlclose (self); */
11781 }
11782 else
11783 puts (dlerror ());
11784
11785 return status;
11786}
11787_LT_EOF
11788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11789 (eval $ac_link) 2>&5
11790 ac_status=$?
11791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11792 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11793 (./conftest; exit; ) >&5 2>/dev/null
11794 lt_status=$?
11795 case x$lt_status in
11796 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11797 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11798 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11799 esac
11800 else :
11801 # compilation failed
11802 lt_cv_dlopen_self=no
11803 fi
11804fi
11805rm -fr conftest*
11806
11807
11808fi
11809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11810$as_echo "$lt_cv_dlopen_self" >&6; }
11811
11812 if test "x$lt_cv_dlopen_self" = xyes; then
11813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11815$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11816if test "${lt_cv_dlopen_self_static+set}" = set; then :
11817 $as_echo_n "(cached) " >&6
11818else
11819 if test "$cross_compiling" = yes; then :
11820 lt_cv_dlopen_self_static=cross
11821else
11822 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11823 lt_status=$lt_dlunknown
11824 cat > conftest.$ac_ext <<_LT_EOF
d4b17902 11825#line 11825 "configure"
0a35513e
AH
11826#include "confdefs.h"
11827
11828#if HAVE_DLFCN_H
11829#include <dlfcn.h>
11830#endif
11831
11832#include <stdio.h>
11833
11834#ifdef RTLD_GLOBAL
11835# define LT_DLGLOBAL RTLD_GLOBAL
11836#else
11837# ifdef DL_GLOBAL
11838# define LT_DLGLOBAL DL_GLOBAL
11839# else
11840# define LT_DLGLOBAL 0
11841# endif
11842#endif
11843
11844/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11845 find out it does not work in some platform. */
11846#ifndef LT_DLLAZY_OR_NOW
11847# ifdef RTLD_LAZY
11848# define LT_DLLAZY_OR_NOW RTLD_LAZY
11849# else
11850# ifdef DL_LAZY
11851# define LT_DLLAZY_OR_NOW DL_LAZY
11852# else
11853# ifdef RTLD_NOW
11854# define LT_DLLAZY_OR_NOW RTLD_NOW
11855# else
11856# ifdef DL_NOW
11857# define LT_DLLAZY_OR_NOW DL_NOW
11858# else
11859# define LT_DLLAZY_OR_NOW 0
11860# endif
11861# endif
11862# endif
11863# endif
11864#endif
11865
11866/* When -fvisbility=hidden is used, assume the code has been annotated
11867 correspondingly for the symbols needed. */
11868#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11869void fnord () __attribute__((visibility("default")));
11870#endif
11871
11872void fnord () { int i=42; }
11873int main ()
11874{
11875 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11876 int status = $lt_dlunknown;
11877
11878 if (self)
11879 {
11880 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11881 else
11882 {
11883 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11884 else puts (dlerror ());
11885 }
11886 /* dlclose (self); */
11887 }
11888 else
11889 puts (dlerror ());
11890
11891 return status;
11892}
11893_LT_EOF
11894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11895 (eval $ac_link) 2>&5
11896 ac_status=$?
11897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11898 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11899 (./conftest; exit; ) >&5 2>/dev/null
11900 lt_status=$?
11901 case x$lt_status in
11902 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11903 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11904 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11905 esac
11906 else :
11907 # compilation failed
11908 lt_cv_dlopen_self_static=no
11909 fi
11910fi
11911rm -fr conftest*
11912
11913
11914fi
11915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11916$as_echo "$lt_cv_dlopen_self_static" >&6; }
11917 fi
11918
11919 CPPFLAGS="$save_CPPFLAGS"
11920 LDFLAGS="$save_LDFLAGS"
11921 LIBS="$save_LIBS"
11922 ;;
11923 esac
11924
11925 case $lt_cv_dlopen_self in
11926 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11927 *) enable_dlopen_self=unknown ;;
11928 esac
11929
11930 case $lt_cv_dlopen_self_static in
11931 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11932 *) enable_dlopen_self_static=unknown ;;
11933 esac
11934fi
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952striplib=
11953old_striplib=
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11955$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11956if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11957 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11958 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11960$as_echo "yes" >&6; }
11961else
11962# FIXME - insert some real tests, host_os isn't really good enough
11963 case $host_os in
11964 darwin*)
11965 if test -n "$STRIP" ; then
11966 striplib="$STRIP -x"
11967 old_striplib="$STRIP -S"
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11969$as_echo "yes" >&6; }
11970 else
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972$as_echo "no" >&6; }
11973 fi
11974 ;;
11975 *)
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977$as_echo "no" >&6; }
11978 ;;
11979 esac
11980fi
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993 # Report which library types will actually be built
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11995$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11997$as_echo "$can_build_shared" >&6; }
11998
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12000$as_echo_n "checking whether to build shared libraries... " >&6; }
12001 test "$can_build_shared" = "no" && enable_shared=no
12002
12003 # On AIX, shared libraries and static libraries use the same namespace, and
12004 # are all built from PIC.
12005 case $host_os in
12006 aix3*)
12007 test "$enable_shared" = yes && enable_static=no
12008 if test -n "$RANLIB"; then
12009 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12010 postinstall_cmds='$RANLIB $lib'
12011 fi
12012 ;;
12013
12014 aix[4-9]*)
12015 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12016 test "$enable_shared" = yes && enable_static=no
12017 fi
12018 ;;
12019 esac
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12021$as_echo "$enable_shared" >&6; }
12022
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12024$as_echo_n "checking whether to build static libraries... " >&6; }
12025 # Make sure either enable_shared or enable_static is yes.
12026 test "$enable_shared" = yes || enable_static=yes
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12028$as_echo "$enable_static" >&6; }
12029
12030
12031
12032
12033fi
12034ac_ext=c
12035ac_cpp='$CPP $CPPFLAGS'
12036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12038ac_compiler_gnu=$ac_cv_c_compiler_gnu
12039
12040CC="$lt_save_CC"
12041
12042 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12043 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12044 (test "X$CXX" != "Xg++"))) ; then
12045 ac_ext=cpp
12046ac_cpp='$CXXCPP $CPPFLAGS'
12047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12051$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12052if test -z "$CXXCPP"; then
12053 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12054 $as_echo_n "(cached) " >&6
12055else
12056 # Double quotes because CXXCPP needs to be expanded
12057 for CXXCPP in "$CXX -E" "/lib/cpp"
12058 do
12059 ac_preproc_ok=false
12060for ac_cxx_preproc_warn_flag in '' yes
12061do
12062 # Use a header file that comes with gcc, so configuring glibc
12063 # with a fresh cross-compiler works.
12064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12065 # <limits.h> exists even on freestanding compilers.
12066 # On the NeXT, cc -E runs the code through the compiler's parser,
12067 # not just through cpp. "Syntax error" is here to catch this case.
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069/* end confdefs.h. */
12070#ifdef __STDC__
12071# include <limits.h>
12072#else
12073# include <assert.h>
12074#endif
12075 Syntax error
12076_ACEOF
12077if ac_fn_cxx_try_cpp "$LINENO"; then :
12078
12079else
12080 # Broken: fails on valid input.
12081continue
12082fi
12083rm -f conftest.err conftest.$ac_ext
12084
12085 # OK, works on sane cases. Now check whether nonexistent headers
12086 # can be detected and how.
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088/* end confdefs.h. */
12089#include <ac_nonexistent.h>
12090_ACEOF
12091if ac_fn_cxx_try_cpp "$LINENO"; then :
12092 # Broken: success on invalid input.
12093continue
12094else
12095 # Passes both tests.
12096ac_preproc_ok=:
12097break
12098fi
12099rm -f conftest.err conftest.$ac_ext
12100
12101done
12102# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12103rm -f conftest.err conftest.$ac_ext
12104if $ac_preproc_ok; then :
12105 break
12106fi
12107
12108 done
12109 ac_cv_prog_CXXCPP=$CXXCPP
12110
12111fi
12112 CXXCPP=$ac_cv_prog_CXXCPP
12113else
12114 ac_cv_prog_CXXCPP=$CXXCPP
12115fi
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12117$as_echo "$CXXCPP" >&6; }
12118ac_preproc_ok=false
12119for ac_cxx_preproc_warn_flag in '' yes
12120do
12121 # Use a header file that comes with gcc, so configuring glibc
12122 # with a fresh cross-compiler works.
12123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12124 # <limits.h> exists even on freestanding compilers.
12125 # On the NeXT, cc -E runs the code through the compiler's parser,
12126 # not just through cpp. "Syntax error" is here to catch this case.
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128/* end confdefs.h. */
12129#ifdef __STDC__
12130# include <limits.h>
12131#else
12132# include <assert.h>
12133#endif
12134 Syntax error
12135_ACEOF
12136if ac_fn_cxx_try_cpp "$LINENO"; then :
12137
12138else
12139 # Broken: fails on valid input.
12140continue
12141fi
12142rm -f conftest.err conftest.$ac_ext
12143
12144 # OK, works on sane cases. Now check whether nonexistent headers
12145 # can be detected and how.
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147/* end confdefs.h. */
12148#include <ac_nonexistent.h>
12149_ACEOF
12150if ac_fn_cxx_try_cpp "$LINENO"; then :
12151 # Broken: success on invalid input.
12152continue
12153else
12154 # Passes both tests.
12155ac_preproc_ok=:
12156break
12157fi
12158rm -f conftest.err conftest.$ac_ext
12159
12160done
12161# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12162rm -f conftest.err conftest.$ac_ext
12163if $ac_preproc_ok; then :
12164
12165else
12166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12168as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12169See \`config.log' for more details." "$LINENO" 5; }
12170fi
12171
12172ac_ext=c
12173ac_cpp='$CPP $CPPFLAGS'
12174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12176ac_compiler_gnu=$ac_cv_c_compiler_gnu
12177
12178else
12179 _lt_caught_CXX_error=yes
12180fi
12181
12182ac_ext=cpp
12183ac_cpp='$CXXCPP $CPPFLAGS'
12184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12187
12188archive_cmds_need_lc_CXX=no
12189allow_undefined_flag_CXX=
12190always_export_symbols_CXX=no
12191archive_expsym_cmds_CXX=
12192compiler_needs_object_CXX=no
12193export_dynamic_flag_spec_CXX=
12194hardcode_direct_CXX=no
12195hardcode_direct_absolute_CXX=no
12196hardcode_libdir_flag_spec_CXX=
12197hardcode_libdir_flag_spec_ld_CXX=
12198hardcode_libdir_separator_CXX=
12199hardcode_minus_L_CXX=no
12200hardcode_shlibpath_var_CXX=unsupported
12201hardcode_automatic_CXX=no
12202inherit_rpath_CXX=no
12203module_cmds_CXX=
12204module_expsym_cmds_CXX=
12205link_all_deplibs_CXX=unknown
12206old_archive_cmds_CXX=$old_archive_cmds
12207reload_flag_CXX=$reload_flag
12208reload_cmds_CXX=$reload_cmds
12209no_undefined_flag_CXX=
12210whole_archive_flag_spec_CXX=
12211enable_shared_with_static_runtimes_CXX=no
12212
12213# Source file extension for C++ test sources.
12214ac_ext=cpp
12215
12216# Object file extension for compiled C++ test sources.
12217objext=o
12218objext_CXX=$objext
12219
12220# No sense in running all these tests if we already determined that
12221# the CXX compiler isn't working. Some variables (like enable_shared)
12222# are currently assumed to apply to all compilers on this platform,
12223# and will be corrupted by setting them based on a non-working compiler.
12224if test "$_lt_caught_CXX_error" != yes; then
12225 # Code to be used in simple compile tests
12226 lt_simple_compile_test_code="int some_variable = 0;"
12227
12228 # Code to be used in simple link tests
12229 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12230
12231 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12232
12233
12234
12235
12236
12237
12238# If no C compiler was specified, use CC.
12239LTCC=${LTCC-"$CC"}
12240
12241# If no C compiler flags were specified, use CFLAGS.
12242LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12243
12244# Allow CC to be a program name with arguments.
12245compiler=$CC
12246
12247
12248 # save warnings/boilerplate of simple test code
12249 ac_outfile=conftest.$ac_objext
12250echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12251eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12252_lt_compiler_boilerplate=`cat conftest.err`
12253$RM conftest*
12254
12255 ac_outfile=conftest.$ac_objext
12256echo "$lt_simple_link_test_code" >conftest.$ac_ext
12257eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12258_lt_linker_boilerplate=`cat conftest.err`
12259$RM -r conftest*
12260
12261
12262 # Allow CC to be a program name with arguments.
12263 lt_save_CC=$CC
12264 lt_save_LD=$LD
12265 lt_save_GCC=$GCC
12266 GCC=$GXX
12267 lt_save_with_gnu_ld=$with_gnu_ld
12268 lt_save_path_LD=$lt_cv_path_LD
12269 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12270 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12271 else
12272 $as_unset lt_cv_prog_gnu_ld
12273 fi
12274 if test -n "${lt_cv_path_LDCXX+set}"; then
12275 lt_cv_path_LD=$lt_cv_path_LDCXX
12276 else
12277 $as_unset lt_cv_path_LD
12278 fi
12279 test -z "${LDCXX+set}" || LD=$LDCXX
12280 CC=${CXX-"c++"}
12281 compiler=$CC
12282 compiler_CXX=$CC
12283 for cc_temp in $compiler""; do
12284 case $cc_temp in
12285 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12286 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12287 \-*) ;;
12288 *) break;;
12289 esac
12290done
12291cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12292
12293
12294 if test -n "$compiler"; then
12295 # We don't want -fno-exception when compiling C++ code, so set the
12296 # no_builtin_flag separately
12297 if test "$GXX" = yes; then
12298 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12299 else
12300 lt_prog_compiler_no_builtin_flag_CXX=
12301 fi
12302
12303 if test "$GXX" = yes; then
12304 # Set up default GNU C++ configuration
12305
12306
12307
12308# Check whether --with-gnu-ld was given.
12309if test "${with_gnu_ld+set}" = set; then :
12310 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12311else
12312 with_gnu_ld=no
12313fi
12314
12315ac_prog=ld
12316if test "$GCC" = yes; then
12317 # Check if gcc -print-prog-name=ld gives a path.
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12319$as_echo_n "checking for ld used by $CC... " >&6; }
12320 case $host in
12321 *-*-mingw*)
12322 # gcc leaves a trailing carriage return which upsets mingw
12323 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12324 *)
12325 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12326 esac
12327 case $ac_prog in
12328 # Accept absolute paths.
12329 [\\/]* | ?:[\\/]*)
12330 re_direlt='/[^/][^/]*/\.\./'
12331 # Canonicalize the pathname of ld
12332 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12333 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12334 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12335 done
12336 test -z "$LD" && LD="$ac_prog"
12337 ;;
12338 "")
12339 # If it fails, then pretend we aren't using GCC.
12340 ac_prog=ld
12341 ;;
12342 *)
12343 # If it is relative, then search for the first ld in PATH.
12344 with_gnu_ld=unknown
12345 ;;
12346 esac
12347elif test "$with_gnu_ld" = yes; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12349$as_echo_n "checking for GNU ld... " >&6; }
12350else
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12352$as_echo_n "checking for non-GNU ld... " >&6; }
12353fi
12354if test "${lt_cv_path_LD+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
12356else
12357 if test -z "$LD"; then
12358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12359 for ac_dir in $PATH; do
12360 IFS="$lt_save_ifs"
12361 test -z "$ac_dir" && ac_dir=.
12362 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12363 lt_cv_path_LD="$ac_dir/$ac_prog"
12364 # Check to see if the program is GNU ld. I'd rather use --version,
12365 # but apparently some variants of GNU ld only accept -v.
12366 # Break only if it was the GNU/non-GNU ld that we prefer.
12367 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12368 *GNU* | *'with BFD'*)
12369 test "$with_gnu_ld" != no && break
12370 ;;
12371 *)
12372 test "$with_gnu_ld" != yes && break
12373 ;;
12374 esac
12375 fi
12376 done
12377 IFS="$lt_save_ifs"
12378else
12379 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12380fi
12381fi
12382
12383LD="$lt_cv_path_LD"
12384if test -n "$LD"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12386$as_echo "$LD" >&6; }
12387else
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389$as_echo "no" >&6; }
12390fi
12391test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12393$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12394if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12395 $as_echo_n "(cached) " >&6
12396else
12397 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12398case `$LD -v 2>&1 </dev/null` in
12399*GNU* | *'with BFD'*)
12400 lt_cv_prog_gnu_ld=yes
12401 ;;
12402*)
12403 lt_cv_prog_gnu_ld=no
12404 ;;
12405esac
12406fi
12407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12408$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12409with_gnu_ld=$lt_cv_prog_gnu_ld
12410
12411
12412
12413
12414
12415
12416
12417 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12418 # archiving commands below assume that GNU ld is being used.
12419 if test "$with_gnu_ld" = yes; then
12420 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12421 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12422
12423 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12424 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12425
12426 # If archive_cmds runs LD, not CC, wlarc should be empty
12427 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12428 # investigate it a little bit more. (MM)
12429 wlarc='${wl}'
12430
12431 # ancient GNU ld didn't support --whole-archive et. al.
12432 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12433 $GREP 'no-whole-archive' > /dev/null; then
12434 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12435 else
12436 whole_archive_flag_spec_CXX=
12437 fi
12438 else
12439 with_gnu_ld=no
12440 wlarc=
12441
12442 # A generic and very simple default shared library creation
12443 # command for GNU C++ for the case where it uses the native
12444 # linker, instead of GNU ld. If possible, this setting should
12445 # overridden to take advantage of the native linker features on
12446 # the platform it is being used on.
12447 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12448 fi
12449
12450 # Commands to make compiler produce verbose output that lists
12451 # what "hidden" libraries, object files and flags are used when
12452 # linking a shared library.
12453 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12454
12455 else
12456 GXX=no
12457 with_gnu_ld=no
12458 wlarc=
12459 fi
12460
12461 # PORTME: fill in a description of your system's C++ link characteristics
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12463$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12464 ld_shlibs_CXX=yes
12465 case $host_os in
12466 aix3*)
12467 # FIXME: insert proper C++ library support
12468 ld_shlibs_CXX=no
12469 ;;
12470 aix[4-9]*)
12471 if test "$host_cpu" = ia64; then
12472 # On IA64, the linker does run time linking by default, so we don't
12473 # have to do anything special.
12474 aix_use_runtimelinking=no
12475 exp_sym_flag='-Bexport'
12476 no_entry_flag=""
12477 else
12478 aix_use_runtimelinking=no
12479
12480 # Test if we are trying to use run time linking or normal
12481 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12482 # need to do runtime linking.
12483 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12484 for ld_flag in $LDFLAGS; do
12485 case $ld_flag in
12486 *-brtl*)
12487 aix_use_runtimelinking=yes
12488 break
12489 ;;
12490 esac
12491 done
12492 ;;
12493 esac
12494
12495 exp_sym_flag='-bexport'
12496 no_entry_flag='-bnoentry'
12497 fi
12498
12499 # When large executables or shared objects are built, AIX ld can
12500 # have problems creating the table of contents. If linking a library
12501 # or program results in "error TOC overflow" add -mminimal-toc to
12502 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12503 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12504
12505 archive_cmds_CXX=''
12506 hardcode_direct_CXX=yes
12507 hardcode_direct_absolute_CXX=yes
12508 hardcode_libdir_separator_CXX=':'
12509 link_all_deplibs_CXX=yes
12510 file_list_spec_CXX='${wl}-f,'
12511
12512 if test "$GXX" = yes; then
12513 case $host_os in aix4.[012]|aix4.[012].*)
12514 # We only want to do this on AIX 4.2 and lower, the check
12515 # below for broken collect2 doesn't work under 4.3+
12516 collect2name=`${CC} -print-prog-name=collect2`
12517 if test -f "$collect2name" &&
12518 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12519 then
12520 # We have reworked collect2
12521 :
12522 else
12523 # We have old collect2
12524 hardcode_direct_CXX=unsupported
12525 # It fails to find uninstalled libraries when the uninstalled
12526 # path is not listed in the libpath. Setting hardcode_minus_L
12527 # to unsupported forces relinking
12528 hardcode_minus_L_CXX=yes
12529 hardcode_libdir_flag_spec_CXX='-L$libdir'
12530 hardcode_libdir_separator_CXX=
12531 fi
12532 esac
12533 shared_flag='-shared'
12534 if test "$aix_use_runtimelinking" = yes; then
12535 shared_flag="$shared_flag "'${wl}-G'
12536 fi
12537 else
12538 # not using gcc
12539 if test "$host_cpu" = ia64; then
12540 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12541 # chokes on -Wl,-G. The following line is correct:
12542 shared_flag='-G'
12543 else
12544 if test "$aix_use_runtimelinking" = yes; then
12545 shared_flag='${wl}-G'
12546 else
12547 shared_flag='${wl}-bM:SRE'
12548 fi
12549 fi
12550 fi
12551
12552 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12553 # It seems that -bexpall does not export symbols beginning with
12554 # underscore (_), so it is better to generate a list of symbols to
12555 # export.
12556 always_export_symbols_CXX=yes
12557 if test "$aix_use_runtimelinking" = yes; then
12558 # Warning - without using the other runtime loading flags (-brtl),
12559 # -berok will link without error, but may produce a broken library.
12560 allow_undefined_flag_CXX='-berok'
12561 # Determine the default libpath from the value encoded in an empty
12562 # executable.
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564/* end confdefs.h. */
12565
12566int
12567main ()
12568{
12569
12570 ;
12571 return 0;
12572}
12573_ACEOF
12574if ac_fn_cxx_try_link "$LINENO"; then :
12575
12576lt_aix_libpath_sed='
12577 /Import File Strings/,/^$/ {
12578 /^0/ {
12579 s/^0 *\(.*\)$/\1/
12580 p
12581 }
12582 }'
12583aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12584# Check for a 64-bit object if we didn't find anything.
12585if test -z "$aix_libpath"; then
12586 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12587fi
12588fi
12589rm -f core conftest.err conftest.$ac_objext \
12590 conftest$ac_exeext conftest.$ac_ext
12591if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12592
12593 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12594
12595 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"
12596 else
12597 if test "$host_cpu" = ia64; then
12598 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12599 allow_undefined_flag_CXX="-z nodefs"
12600 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"
12601 else
12602 # Determine the default libpath from the value encoded in an
12603 # empty executable.
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605/* end confdefs.h. */
12606
12607int
12608main ()
12609{
12610
12611 ;
12612 return 0;
12613}
12614_ACEOF
12615if ac_fn_cxx_try_link "$LINENO"; then :
12616
12617lt_aix_libpath_sed='
12618 /Import File Strings/,/^$/ {
12619 /^0/ {
12620 s/^0 *\(.*\)$/\1/
12621 p
12622 }
12623 }'
12624aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12625# Check for a 64-bit object if we didn't find anything.
12626if test -z "$aix_libpath"; then
12627 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12628fi
12629fi
12630rm -f core conftest.err conftest.$ac_objext \
12631 conftest$ac_exeext conftest.$ac_ext
12632if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12633
12634 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12635 # Warning - without using the other run time loading flags,
12636 # -berok will link without error, but may produce a broken library.
12637 no_undefined_flag_CXX=' ${wl}-bernotok'
12638 allow_undefined_flag_CXX=' ${wl}-berok'
12639 if test "$with_gnu_ld" = yes; then
12640 # We only use this code for GNU lds that support --whole-archive.
12641 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12642 else
12643 # Exported symbols can be pulled into shared objects from archives
12644 whole_archive_flag_spec_CXX='$convenience'
12645 fi
12646 archive_cmds_need_lc_CXX=yes
12647 # This is similar to how AIX traditionally builds its shared
12648 # libraries.
12649 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'
12650 fi
12651 fi
12652 ;;
12653
12654 beos*)
12655 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12656 allow_undefined_flag_CXX=unsupported
12657 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12658 # support --undefined. This deserves some investigation. FIXME
12659 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12660 else
12661 ld_shlibs_CXX=no
12662 fi
12663 ;;
12664
12665 chorus*)
12666 case $cc_basename in
12667 *)
12668 # FIXME: insert proper C++ library support
12669 ld_shlibs_CXX=no
12670 ;;
12671 esac
12672 ;;
12673
12674 cygwin* | mingw* | pw32* | cegcc*)
12675 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12676 # as there is no search path for DLLs.
12677 hardcode_libdir_flag_spec_CXX='-L$libdir'
12678 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12679 allow_undefined_flag_CXX=unsupported
12680 always_export_symbols_CXX=no
12681 enable_shared_with_static_runtimes_CXX=yes
12682
12683 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12684 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'
12685 # If the export-symbols file already is a .def file (1st line
12686 # is EXPORTS), use it as is; otherwise, prepend...
12687 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12688 cp $export_symbols $output_objdir/$soname.def;
12689 else
12690 echo EXPORTS > $output_objdir/$soname.def;
12691 cat $export_symbols >> $output_objdir/$soname.def;
12692 fi~
12693 $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'
12694 else
12695 ld_shlibs_CXX=no
12696 fi
12697 ;;
12698 darwin* | rhapsody*)
12699
12700
12701 archive_cmds_need_lc_CXX=no
12702 hardcode_direct_CXX=no
12703 hardcode_automatic_CXX=yes
12704 hardcode_shlibpath_var_CXX=unsupported
12705 if test "$lt_cv_ld_force_load" = "yes"; then
12706 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\"`'
12707 else
12708 whole_archive_flag_spec_CXX=''
12709 fi
12710 link_all_deplibs_CXX=yes
12711 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12712 case $cc_basename in
12713 ifort*) _lt_dar_can_shared=yes ;;
12714 *) _lt_dar_can_shared=$GCC ;;
12715 esac
12716 if test "$_lt_dar_can_shared" = "yes"; then
12717 output_verbose_link_cmd=func_echo_all
12718 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}"
12719 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12720 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}"
12721 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}"
12722 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12723 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}"
12724 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}"
12725 fi
12726
12727 else
12728 ld_shlibs_CXX=no
12729 fi
12730
12731 ;;
12732
12733 dgux*)
12734 case $cc_basename in
12735 ec++*)
12736 # FIXME: insert proper C++ library support
12737 ld_shlibs_CXX=no
12738 ;;
12739 ghcx*)
12740 # Green Hills C++ Compiler
12741 # FIXME: insert proper C++ library support
12742 ld_shlibs_CXX=no
12743 ;;
12744 *)
12745 # FIXME: insert proper C++ library support
12746 ld_shlibs_CXX=no
12747 ;;
12748 esac
12749 ;;
12750
12751 freebsd[12]*)
12752 # C++ shared libraries reported to be fairly broken before
12753 # switch to ELF
12754 ld_shlibs_CXX=no
12755 ;;
12756
12757 freebsd-elf*)
12758 archive_cmds_need_lc_CXX=no
12759 ;;
12760
12761 freebsd* | dragonfly*)
12762 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12763 # conventions
12764 ld_shlibs_CXX=yes
12765 ;;
12766
12767 gnu*)
12768 ;;
12769
12770 haiku*)
12771 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12772 link_all_deplibs_CXX=yes
12773 ;;
12774
12775 hpux9*)
12776 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12777 hardcode_libdir_separator_CXX=:
12778 export_dynamic_flag_spec_CXX='${wl}-E'
12779 hardcode_direct_CXX=yes
12780 hardcode_minus_L_CXX=yes # Not in the search PATH,
12781 # but as the default
12782 # location of the library.
12783
12784 case $cc_basename in
12785 CC*)
12786 # FIXME: insert proper C++ library support
12787 ld_shlibs_CXX=no
12788 ;;
12789 aCC*)
12790 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'
12791 # Commands to make compiler produce verbose output that lists
12792 # what "hidden" libraries, object files and flags are used when
12793 # linking a shared library.
12794 #
12795 # There doesn't appear to be a way to prevent this compiler from
12796 # explicitly linking system object files so we need to strip them
12797 # from the output so that they don't get included in the library
12798 # dependencies.
12799 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"'
12800 ;;
12801 *)
12802 if test "$GXX" = yes; then
12803 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'
12804 else
12805 # FIXME: insert proper C++ library support
12806 ld_shlibs_CXX=no
12807 fi
12808 ;;
12809 esac
12810 ;;
12811
12812 hpux10*|hpux11*)
12813 if test $with_gnu_ld = no; then
12814 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12815 hardcode_libdir_separator_CXX=:
12816
12817 case $host_cpu in
12818 hppa*64*|ia64*)
12819 ;;
12820 *)
12821 export_dynamic_flag_spec_CXX='${wl}-E'
12822 ;;
12823 esac
12824 fi
12825 case $host_cpu in
12826 hppa*64*|ia64*)
12827 hardcode_direct_CXX=no
12828 hardcode_shlibpath_var_CXX=no
12829 ;;
12830 *)
12831 hardcode_direct_CXX=yes
12832 hardcode_direct_absolute_CXX=yes
12833 hardcode_minus_L_CXX=yes # Not in the search PATH,
12834 # but as the default
12835 # location of the library.
12836 ;;
12837 esac
12838
12839 case $cc_basename in
12840 CC*)
12841 # FIXME: insert proper C++ library support
12842 ld_shlibs_CXX=no
12843 ;;
12844 aCC*)
12845 case $host_cpu in
12846 hppa*64*)
12847 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12848 ;;
12849 ia64*)
12850 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12851 ;;
12852 *)
12853 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12854 ;;
12855 esac
12856 # Commands to make compiler produce verbose output that lists
12857 # what "hidden" libraries, object files and flags are used when
12858 # linking a shared library.
12859 #
12860 # There doesn't appear to be a way to prevent this compiler from
12861 # explicitly linking system object files so we need to strip them
12862 # from the output so that they don't get included in the library
12863 # dependencies.
12864 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"'
12865 ;;
12866 *)
12867 if test "$GXX" = yes; then
12868 if test $with_gnu_ld = no; then
12869 case $host_cpu in
12870 hppa*64*)
12871 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12872 ;;
12873 ia64*)
12874 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12875 ;;
12876 *)
12877 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'
12878 ;;
12879 esac
12880 fi
12881 else
12882 # FIXME: insert proper C++ library support
12883 ld_shlibs_CXX=no
12884 fi
12885 ;;
12886 esac
12887 ;;
12888
12889 interix[3-9]*)
12890 hardcode_direct_CXX=no
12891 hardcode_shlibpath_var_CXX=no
12892 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12893 export_dynamic_flag_spec_CXX='${wl}-E'
12894 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12895 # Instead, shared libraries are loaded at an image base (0x10000000 by
12896 # default) and relocated if they conflict, which is a slow very memory
12897 # consuming and fragmenting process. To avoid this, we pick a random,
12898 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12899 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12900 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'
12901 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'
12902 ;;
12903 irix5* | irix6*)
12904 case $cc_basename in
12905 CC*)
12906 # SGI C++
12907 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'
12908
12909 # Archives containing C++ object files must be created using
12910 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12911 # necessary to make sure instantiated templates are included
12912 # in the archive.
12913 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12914 ;;
12915 *)
12916 if test "$GXX" = yes; then
12917 if test "$with_gnu_ld" = no; then
12918 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'
12919 else
12920 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'
12921 fi
12922 fi
12923 link_all_deplibs_CXX=yes
12924 ;;
12925 esac
12926 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12927 hardcode_libdir_separator_CXX=:
12928 inherit_rpath_CXX=yes
12929 ;;
12930
12931 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12932 case $cc_basename in
12933 KCC*)
12934 # Kuck and Associates, Inc. (KAI) C++ Compiler
12935
12936 # KCC will only create a shared library if the output file
12937 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12938 # to its proper name (with version) after linking.
12939 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'
12940 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'
12941 # Commands to make compiler produce verbose output that lists
12942 # what "hidden" libraries, object files and flags are used when
12943 # linking a shared library.
12944 #
12945 # There doesn't appear to be a way to prevent this compiler from
12946 # explicitly linking system object files so we need to strip them
12947 # from the output so that they don't get included in the library
12948 # dependencies.
12949 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"'
12950
12951 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12952 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12953
12954 # Archives containing C++ object files must be created using
12955 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12956 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12957 ;;
12958 icpc* | ecpc* )
12959 # Intel C++
12960 with_gnu_ld=yes
12961 # version 8.0 and above of icpc choke on multiply defined symbols
12962 # if we add $predep_objects and $postdep_objects, however 7.1 and
12963 # earlier do not add the objects themselves.
12964 case `$CC -V 2>&1` in
12965 *"Version 7."*)
12966 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12967 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'
12968 ;;
12969 *) # Version 8.0 or newer
12970 tmp_idyn=
12971 case $host_cpu in
12972 ia64*) tmp_idyn=' -i_dynamic';;
12973 esac
12974 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12975 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'
12976 ;;
12977 esac
12978 archive_cmds_need_lc_CXX=no
12979 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12980 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12981 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12982 ;;
12983 pgCC* | pgcpp*)
12984 # Portland Group C++ compiler
12985 case `$CC -V` in
12986 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12987 prelink_cmds_CXX='tpldir=Template.dir~
12988 rm -rf $tpldir~
12989 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12990 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12991 old_archive_cmds_CXX='tpldir=Template.dir~
12992 rm -rf $tpldir~
12993 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12994 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12995 $RANLIB $oldlib'
12996 archive_cmds_CXX='tpldir=Template.dir~
12997 rm -rf $tpldir~
12998 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12999 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13000 archive_expsym_cmds_CXX='tpldir=Template.dir~
13001 rm -rf $tpldir~
13002 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13003 $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'
13004 ;;
13005 *) # Version 6 and above use weak symbols
13006 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13007 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'
13008 ;;
13009 esac
13010
13011 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13012 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13013 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'
13014 ;;
13015 cxx*)
13016 # Compaq C++
13017 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13018 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'
13019
13020 runpath_var=LD_RUN_PATH
13021 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13022 hardcode_libdir_separator_CXX=:
13023
13024 # Commands to make compiler produce verbose output that lists
13025 # what "hidden" libraries, object files and flags are used when
13026 # linking a shared library.
13027 #
13028 # There doesn't appear to be a way to prevent this compiler from
13029 # explicitly linking system object files so we need to strip them
13030 # from the output so that they don't get included in the library
13031 # dependencies.
13032 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'
13033 ;;
13034 xl* | mpixl* | bgxl*)
13035 # IBM XL 8.0 on PPC, with GNU ld
13036 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13037 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13038 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13039 if test "x$supports_anon_versioning" = xyes; then
13040 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13041 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13042 echo "local: *; };" >> $output_objdir/$libname.ver~
13043 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13044 fi
13045 ;;
13046 *)
13047 case `$CC -V 2>&1 | sed 5q` in
13048 *Sun\ C*)
13049 # Sun C++ 5.9
13050 no_undefined_flag_CXX=' -zdefs'
13051 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13052 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'
13053 hardcode_libdir_flag_spec_CXX='-R$libdir'
13054 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'
13055 compiler_needs_object_CXX=yes
13056
13057 # Not sure whether something based on
13058 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13059 # would be better.
13060 output_verbose_link_cmd='func_echo_all'
13061
13062 # Archives containing C++ object files must be created using
13063 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13064 # necessary to make sure instantiated templates are included
13065 # in the archive.
13066 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13067 ;;
13068 esac
13069 ;;
13070 esac
13071 ;;
13072
13073 lynxos*)
13074 # FIXME: insert proper C++ library support
13075 ld_shlibs_CXX=no
13076 ;;
13077
13078 m88k*)
13079 # FIXME: insert proper C++ library support
13080 ld_shlibs_CXX=no
13081 ;;
13082
13083 mvs*)
13084 case $cc_basename in
13085 cxx*)
13086 # FIXME: insert proper C++ library support
13087 ld_shlibs_CXX=no
13088 ;;
13089 *)
13090 # FIXME: insert proper C++ library support
13091 ld_shlibs_CXX=no
13092 ;;
13093 esac
13094 ;;
13095
13096 netbsd*)
13097 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13098 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13099 wlarc=
13100 hardcode_libdir_flag_spec_CXX='-R$libdir'
13101 hardcode_direct_CXX=yes
13102 hardcode_shlibpath_var_CXX=no
13103 fi
13104 # Workaround some broken pre-1.5 toolchains
13105 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13106 ;;
13107
13108 *nto* | *qnx*)
13109 ld_shlibs_CXX=yes
13110 ;;
13111
13112 openbsd2*)
13113 # C++ shared libraries are fairly broken
13114 ld_shlibs_CXX=no
13115 ;;
13116
13117 openbsd*)
13118 if test -f /usr/libexec/ld.so; then
13119 hardcode_direct_CXX=yes
13120 hardcode_shlibpath_var_CXX=no
13121 hardcode_direct_absolute_CXX=yes
13122 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13123 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13124 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13125 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13126 export_dynamic_flag_spec_CXX='${wl}-E'
13127 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13128 fi
13129 output_verbose_link_cmd=func_echo_all
13130 else
13131 ld_shlibs_CXX=no
13132 fi
13133 ;;
13134
13135 osf3* | osf4* | osf5*)
13136 case $cc_basename in
13137 KCC*)
13138 # Kuck and Associates, Inc. (KAI) C++ Compiler
13139
13140 # KCC will only create a shared library if the output file
13141 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13142 # to its proper name (with version) after linking.
13143 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'
13144
13145 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13146 hardcode_libdir_separator_CXX=:
13147
13148 # Archives containing C++ object files must be created using
13149 # the KAI C++ compiler.
13150 case $host in
13151 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13152 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13153 esac
13154 ;;
13155 RCC*)
13156 # Rational C++ 2.4.1
13157 # FIXME: insert proper C++ library support
13158 ld_shlibs_CXX=no
13159 ;;
13160 cxx*)
13161 case $host in
13162 osf3*)
13163 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13164 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'
13165 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13166 ;;
13167 *)
13168 allow_undefined_flag_CXX=' -expect_unresolved \*'
13169 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'
13170 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13171 echo "-hidden">> $lib.exp~
13172 $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~
13173 $RM $lib.exp'
13174 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13175 ;;
13176 esac
13177
13178 hardcode_libdir_separator_CXX=:
13179
13180 # Commands to make compiler produce verbose output that lists
13181 # what "hidden" libraries, object files and flags are used when
13182 # linking a shared library.
13183 #
13184 # There doesn't appear to be a way to prevent this compiler from
13185 # explicitly linking system object files so we need to strip them
13186 # from the output so that they don't get included in the library
13187 # dependencies.
13188 output_verbose_link_cmd='templist=`$CC -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"'
13189 ;;
13190 *)
13191 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13192 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13193 case $host in
13194 osf3*)
13195 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'
13196 ;;
13197 *)
13198 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'
13199 ;;
13200 esac
13201
13202 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13203 hardcode_libdir_separator_CXX=:
13204
13205 # Commands to make compiler produce verbose output that lists
13206 # what "hidden" libraries, object files and flags are used when
13207 # linking a shared library.
13208 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13209
13210 else
13211 # FIXME: insert proper C++ library support
13212 ld_shlibs_CXX=no
13213 fi
13214 ;;
13215 esac
13216 ;;
13217
13218 psos*)
13219 # FIXME: insert proper C++ library support
13220 ld_shlibs_CXX=no
13221 ;;
13222
13223 sunos4*)
13224 case $cc_basename in
13225 CC*)
13226 # Sun C++ 4.x
13227 # FIXME: insert proper C++ library support
13228 ld_shlibs_CXX=no
13229 ;;
13230 lcc*)
13231 # Lucid
13232 # FIXME: insert proper C++ library support
13233 ld_shlibs_CXX=no
13234 ;;
13235 *)
13236 # FIXME: insert proper C++ library support
13237 ld_shlibs_CXX=no
13238 ;;
13239 esac
13240 ;;
13241
13242 solaris*)
13243 case $cc_basename in
13244 CC*)
13245 # Sun C++ 4.2, 5.x and Centerline C++
13246 archive_cmds_need_lc_CXX=yes
13247 no_undefined_flag_CXX=' -zdefs'
13248 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13249 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13250 $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'
13251
13252 hardcode_libdir_flag_spec_CXX='-R$libdir'
13253 hardcode_shlibpath_var_CXX=no
13254 case $host_os in
13255 solaris2.[0-5] | solaris2.[0-5].*) ;;
13256 *)
13257 # The compiler driver will combine and reorder linker options,
13258 # but understands `-z linker_flag'.
13259 # Supported since Solaris 2.6 (maybe 2.5.1?)
13260 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13261 ;;
13262 esac
13263 link_all_deplibs_CXX=yes
13264
13265 output_verbose_link_cmd='func_echo_all'
13266
13267 # Archives containing C++ object files must be created using
13268 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13269 # necessary to make sure instantiated templates are included
13270 # in the archive.
13271 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13272 ;;
13273 gcx*)
13274 # Green Hills C++ Compiler
13275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13276
13277 # The C++ compiler must be used to create the archive.
13278 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13279 ;;
13280 *)
13281 # GNU C++ compiler with Solaris linker
13282 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13283 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13284 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13285 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13286 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13287 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13288
13289 # Commands to make compiler produce verbose output that lists
13290 # what "hidden" libraries, object files and flags are used when
13291 # linking a shared library.
13292 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13293 else
13294 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13295 # platform.
13296 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13297 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13298 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13299
13300 # Commands to make compiler produce verbose output that lists
13301 # what "hidden" libraries, object files and flags are used when
13302 # linking a shared library.
13303 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13304 fi
13305
13306 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13307 case $host_os in
13308 solaris2.[0-5] | solaris2.[0-5].*) ;;
13309 *)
13310 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13311 ;;
13312 esac
13313 fi
13314 ;;
13315 esac
13316 ;;
13317
13318 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13319 no_undefined_flag_CXX='${wl}-z,text'
13320 archive_cmds_need_lc_CXX=no
13321 hardcode_shlibpath_var_CXX=no
13322 runpath_var='LD_RUN_PATH'
13323
13324 case $cc_basename in
13325 CC*)
13326 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13327 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13328 ;;
13329 *)
13330 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13332 ;;
13333 esac
13334 ;;
13335
13336 sysv5* | sco3.2v5* | sco5v6*)
13337 # Note: We can NOT use -z defs as we might desire, because we do not
13338 # link with -lc, and that would cause any symbols used from libc to
13339 # always be unresolved, which means just about no library would
13340 # ever link correctly. If we're not using GNU ld we use -z text
13341 # though, which does catch some bad symbols but isn't as heavy-handed
13342 # as -z defs.
13343 no_undefined_flag_CXX='${wl}-z,text'
13344 allow_undefined_flag_CXX='${wl}-z,nodefs'
13345 archive_cmds_need_lc_CXX=no
13346 hardcode_shlibpath_var_CXX=no
13347 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13348 hardcode_libdir_separator_CXX=':'
13349 link_all_deplibs_CXX=yes
13350 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13351 runpath_var='LD_RUN_PATH'
13352
13353 case $cc_basename in
13354 CC*)
13355 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13356 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13357 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13358 '"$old_archive_cmds_CXX"
13359 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13360 '"$reload_cmds_CXX"
13361 ;;
13362 *)
13363 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13364 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13365 ;;
13366 esac
13367 ;;
13368
13369 tandem*)
13370 case $cc_basename in
13371 NCC*)
13372 # NonStop-UX NCC 3.20
13373 # FIXME: insert proper C++ library support
13374 ld_shlibs_CXX=no
13375 ;;
13376 *)
13377 # FIXME: insert proper C++ library support
13378 ld_shlibs_CXX=no
13379 ;;
13380 esac
13381 ;;
13382
13383 vxworks*)
13384 # FIXME: insert proper C++ library support
13385 ld_shlibs_CXX=no
13386 ;;
13387
13388 *)
13389 # FIXME: insert proper C++ library support
13390 ld_shlibs_CXX=no
13391 ;;
13392 esac
13393
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13395$as_echo "$ld_shlibs_CXX" >&6; }
13396 test "$ld_shlibs_CXX" = no && can_build_shared=no
13397
13398 GCC_CXX="$GXX"
13399 LD_CXX="$LD"
13400
13401 ## CAVEAT EMPTOR:
13402 ## There is no encapsulation within the following macros, do not change
13403 ## the running order or otherwise move them around unless you know exactly
13404 ## what you are doing...
13405 # Dependencies to place before and after the object being linked:
13406predep_objects_CXX=
13407postdep_objects_CXX=
13408predeps_CXX=
13409postdeps_CXX=
13410compiler_lib_search_path_CXX=
13411
13412cat > conftest.$ac_ext <<_LT_EOF
13413class Foo
13414{
13415public:
13416 Foo (void) { a = 0; }
13417private:
13418 int a;
13419};
13420_LT_EOF
13421
13422if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13423 (eval $ac_compile) 2>&5
13424 ac_status=$?
13425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13426 test $ac_status = 0; }; then
13427 # Parse the compiler output and extract the necessary
13428 # objects, libraries and library flags.
13429
13430 # Sentinel used to keep track of whether or not we are before
13431 # the conftest object file.
13432 pre_test_object_deps_done=no
13433
13434 for p in `eval "$output_verbose_link_cmd"`; do
13435 case $p in
13436
13437 -L* | -R* | -l*)
13438 # Some compilers place space between "-{L,R}" and the path.
13439 # Remove the space.
13440 if test $p = "-L" ||
13441 test $p = "-R"; then
13442 prev=$p
13443 continue
13444 else
13445 prev=
13446 fi
13447
13448 if test "$pre_test_object_deps_done" = no; then
13449 case $p in
13450 -L* | -R*)
13451 # Internal compiler library paths should come after those
13452 # provided the user. The postdeps already come after the
13453 # user supplied libs so there is no need to process them.
13454 if test -z "$compiler_lib_search_path_CXX"; then
13455 compiler_lib_search_path_CXX="${prev}${p}"
13456 else
13457 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13458 fi
13459 ;;
13460 # The "-l" case would never come before the object being
13461 # linked, so don't bother handling this case.
13462 esac
13463 else
13464 if test -z "$postdeps_CXX"; then
13465 postdeps_CXX="${prev}${p}"
13466 else
13467 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13468 fi
13469 fi
13470 ;;
13471
13472 *.$objext)
13473 # This assumes that the test object file only shows up
13474 # once in the compiler output.
13475 if test "$p" = "conftest.$objext"; then
13476 pre_test_object_deps_done=yes
13477 continue
13478 fi
13479
13480 if test "$pre_test_object_deps_done" = no; then
13481 if test -z "$predep_objects_CXX"; then
13482 predep_objects_CXX="$p"
13483 else
13484 predep_objects_CXX="$predep_objects_CXX $p"
13485 fi
13486 else
13487 if test -z "$postdep_objects_CXX"; then
13488 postdep_objects_CXX="$p"
13489 else
13490 postdep_objects_CXX="$postdep_objects_CXX $p"
13491 fi
13492 fi
13493 ;;
13494
13495 *) ;; # Ignore the rest.
13496
13497 esac
13498 done
13499
13500 # Clean up.
13501 rm -f a.out a.exe
13502else
13503 echo "libtool.m4: error: problem compiling CXX test program"
13504fi
13505
13506$RM -f confest.$objext
13507
13508# PORTME: override above test on systems where it is broken
13509case $host_os in
13510interix[3-9]*)
13511 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13512 # hack all around it, let's just trust "g++" to DTRT.
13513 predep_objects_CXX=
13514 postdep_objects_CXX=
13515 postdeps_CXX=
13516 ;;
13517
13518linux*)
13519 case `$CC -V 2>&1 | sed 5q` in
13520 *Sun\ C*)
13521 # Sun C++ 5.9
13522
13523 # The more standards-conforming stlport4 library is
13524 # incompatible with the Cstd library. Avoid specifying
13525 # it if it's in CXXFLAGS. Ignore libCrun as
13526 # -library=stlport4 depends on it.
13527 case " $CXX $CXXFLAGS " in
13528 *" -library=stlport4 "*)
13529 solaris_use_stlport4=yes
13530 ;;
13531 esac
13532
13533 if test "$solaris_use_stlport4" != yes; then
13534 postdeps_CXX='-library=Cstd -library=Crun'
13535 fi
13536 ;;
13537 esac
13538 ;;
13539
13540solaris*)
13541 case $cc_basename in
13542 CC*)
13543 # The more standards-conforming stlport4 library is
13544 # incompatible with the Cstd library. Avoid specifying
13545 # it if it's in CXXFLAGS. Ignore libCrun as
13546 # -library=stlport4 depends on it.
13547 case " $CXX $CXXFLAGS " in
13548 *" -library=stlport4 "*)
13549 solaris_use_stlport4=yes
13550 ;;
13551 esac
13552
13553 # Adding this requires a known-good setup of shared libraries for
13554 # Sun compiler versions before 5.6, else PIC objects from an old
13555 # archive will be linked into the output, leading to subtle bugs.
13556 if test "$solaris_use_stlport4" != yes; then
13557 postdeps_CXX='-library=Cstd -library=Crun'
13558 fi
13559 ;;
13560 esac
13561 ;;
13562esac
13563
13564
13565case " $postdeps_CXX " in
13566*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13567esac
13568 compiler_lib_search_dirs_CXX=
13569if test -n "${compiler_lib_search_path_CXX}"; then
13570 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13571fi
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603 lt_prog_compiler_wl_CXX=
13604lt_prog_compiler_pic_CXX=
13605lt_prog_compiler_static_CXX=
13606
13607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13608$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13609
13610 # C++ specific cases for pic, static, wl, etc.
13611 if test "$GXX" = yes; then
13612 lt_prog_compiler_wl_CXX='-Wl,'
13613 lt_prog_compiler_static_CXX='-static'
13614
13615 case $host_os in
13616 aix*)
13617 # All AIX code is PIC.
13618 if test "$host_cpu" = ia64; then
13619 # AIX 5 now supports IA64 processor
13620 lt_prog_compiler_static_CXX='-Bstatic'
13621 fi
13622 ;;
13623
13624 amigaos*)
13625 case $host_cpu in
13626 powerpc)
13627 # see comment about AmigaOS4 .so support
13628 lt_prog_compiler_pic_CXX='-fPIC'
13629 ;;
13630 m68k)
13631 # FIXME: we need at least 68020 code to build shared libraries, but
13632 # adding the `-m68020' flag to GCC prevents building anything better,
13633 # like `-m68040'.
13634 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13635 ;;
13636 esac
13637 ;;
13638
13639 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13640 # PIC is the default for these OSes.
13641 ;;
13642 mingw* | cygwin* | os2* | pw32* | cegcc*)
13643 # This hack is so that the source file can tell whether it is being
13644 # built for inclusion in a dll (and should export symbols for example).
13645 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13646 # (--disable-auto-import) libraries
13647 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13648 ;;
13649 darwin* | rhapsody*)
13650 # PIC is the default on this platform
13651 # Common symbols not allowed in MH_DYLIB files
13652 lt_prog_compiler_pic_CXX='-fno-common'
13653 ;;
13654 *djgpp*)
13655 # DJGPP does not support shared libraries at all
13656 lt_prog_compiler_pic_CXX=
13657 ;;
13658 haiku*)
13659 # PIC is the default for Haiku.
13660 # The "-static" flag exists, but is broken.
13661 lt_prog_compiler_static_CXX=
13662 ;;
13663 interix[3-9]*)
13664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13665 # Instead, we relocate shared libraries at runtime.
13666 ;;
13667 sysv4*MP*)
13668 if test -d /usr/nec; then
13669 lt_prog_compiler_pic_CXX=-Kconform_pic
13670 fi
13671 ;;
13672 hpux*)
13673 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13674 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13675 # sets the default TLS model and affects inlining.
13676 case $host_cpu in
13677 hppa*64*)
13678 ;;
13679 *)
13680 lt_prog_compiler_pic_CXX='-fPIC'
13681 ;;
13682 esac
13683 ;;
13684 *qnx* | *nto*)
13685 # QNX uses GNU C++, but need to define -shared option too, otherwise
13686 # it will coredump.
13687 lt_prog_compiler_pic_CXX='-fPIC -shared'
13688 ;;
13689 *)
13690 lt_prog_compiler_pic_CXX='-fPIC'
13691 ;;
13692 esac
13693 else
13694 case $host_os in
13695 aix[4-9]*)
13696 # All AIX code is PIC.
13697 if test "$host_cpu" = ia64; then
13698 # AIX 5 now supports IA64 processor
13699 lt_prog_compiler_static_CXX='-Bstatic'
13700 else
13701 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13702 fi
13703 ;;
13704 chorus*)
13705 case $cc_basename in
13706 cxch68*)
13707 # Green Hills C++ Compiler
13708 # _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"
13709 ;;
13710 esac
13711 ;;
13712 dgux*)
13713 case $cc_basename in
13714 ec++*)
13715 lt_prog_compiler_pic_CXX='-KPIC'
13716 ;;
13717 ghcx*)
13718 # Green Hills C++ Compiler
13719 lt_prog_compiler_pic_CXX='-pic'
13720 ;;
13721 *)
13722 ;;
13723 esac
13724 ;;
13725 freebsd* | dragonfly*)
13726 # FreeBSD uses GNU C++
13727 ;;
13728 hpux9* | hpux10* | hpux11*)
13729 case $cc_basename in
13730 CC*)
13731 lt_prog_compiler_wl_CXX='-Wl,'
13732 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13733 if test "$host_cpu" != ia64; then
13734 lt_prog_compiler_pic_CXX='+Z'
13735 fi
13736 ;;
13737 aCC*)
13738 lt_prog_compiler_wl_CXX='-Wl,'
13739 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13740 case $host_cpu in
13741 hppa*64*|ia64*)
13742 # +Z the default
13743 ;;
13744 *)
13745 lt_prog_compiler_pic_CXX='+Z'
13746 ;;
13747 esac
13748 ;;
13749 *)
13750 ;;
13751 esac
13752 ;;
13753 interix*)
13754 # This is c89, which is MS Visual C++ (no shared libs)
13755 # Anyone wants to do a port?
13756 ;;
13757 irix5* | irix6* | nonstopux*)
13758 case $cc_basename in
13759 CC*)
13760 lt_prog_compiler_wl_CXX='-Wl,'
13761 lt_prog_compiler_static_CXX='-non_shared'
13762 # CC pic flag -KPIC is the default.
13763 ;;
13764 *)
13765 ;;
13766 esac
13767 ;;
13768 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13769 case $cc_basename in
13770 KCC*)
13771 # KAI C++ Compiler
13772 lt_prog_compiler_wl_CXX='--backend -Wl,'
13773 lt_prog_compiler_pic_CXX='-fPIC'
13774 ;;
13775 ecpc* )
13776 # old Intel C++ for x86_64 which still supported -KPIC.
13777 lt_prog_compiler_wl_CXX='-Wl,'
13778 lt_prog_compiler_pic_CXX='-KPIC'
13779 lt_prog_compiler_static_CXX='-static'
13780 ;;
13781 icpc* )
13782 # Intel C++, used to be incompatible with GCC.
13783 # ICC 10 doesn't accept -KPIC any more.
13784 lt_prog_compiler_wl_CXX='-Wl,'
13785 lt_prog_compiler_pic_CXX='-fPIC'
13786 lt_prog_compiler_static_CXX='-static'
13787 ;;
13788 pgCC* | pgcpp*)
13789 # Portland Group C++ compiler
13790 lt_prog_compiler_wl_CXX='-Wl,'
13791 lt_prog_compiler_pic_CXX='-fpic'
13792 lt_prog_compiler_static_CXX='-Bstatic'
13793 ;;
13794 cxx*)
13795 # Compaq C++
13796 # Make sure the PIC flag is empty. It appears that all Alpha
13797 # Linux and Compaq Tru64 Unix objects are PIC.
13798 lt_prog_compiler_pic_CXX=
13799 lt_prog_compiler_static_CXX='-non_shared'
13800 ;;
13801 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13802 # IBM XL 8.0, 9.0 on PPC and BlueGene
13803 lt_prog_compiler_wl_CXX='-Wl,'
13804 lt_prog_compiler_pic_CXX='-qpic'
13805 lt_prog_compiler_static_CXX='-qstaticlink'
13806 ;;
13807 *)
13808 case `$CC -V 2>&1 | sed 5q` in
13809 *Sun\ C*)
13810 # Sun C++ 5.9
13811 lt_prog_compiler_pic_CXX='-KPIC'
13812 lt_prog_compiler_static_CXX='-Bstatic'
13813 lt_prog_compiler_wl_CXX='-Qoption ld '
13814 ;;
13815 esac
13816 ;;
13817 esac
13818 ;;
13819 lynxos*)
13820 ;;
13821 m88k*)
13822 ;;
13823 mvs*)
13824 case $cc_basename in
13825 cxx*)
13826 lt_prog_compiler_pic_CXX='-W c,exportall'
13827 ;;
13828 *)
13829 ;;
13830 esac
13831 ;;
13832 netbsd*)
13833 ;;
13834 *qnx* | *nto*)
13835 # QNX uses GNU C++, but need to define -shared option too, otherwise
13836 # it will coredump.
13837 lt_prog_compiler_pic_CXX='-fPIC -shared'
13838 ;;
13839 osf3* | osf4* | osf5*)
13840 case $cc_basename in
13841 KCC*)
13842 lt_prog_compiler_wl_CXX='--backend -Wl,'
13843 ;;
13844 RCC*)
13845 # Rational C++ 2.4.1
13846 lt_prog_compiler_pic_CXX='-pic'
13847 ;;
13848 cxx*)
13849 # Digital/Compaq C++
13850 lt_prog_compiler_wl_CXX='-Wl,'
13851 # Make sure the PIC flag is empty. It appears that all Alpha
13852 # Linux and Compaq Tru64 Unix objects are PIC.
13853 lt_prog_compiler_pic_CXX=
13854 lt_prog_compiler_static_CXX='-non_shared'
13855 ;;
13856 *)
13857 ;;
13858 esac
13859 ;;
13860 psos*)
13861 ;;
13862 solaris*)
13863 case $cc_basename in
13864 CC*)
13865 # Sun C++ 4.2, 5.x and Centerline C++
13866 lt_prog_compiler_pic_CXX='-KPIC'
13867 lt_prog_compiler_static_CXX='-Bstatic'
13868 lt_prog_compiler_wl_CXX='-Qoption ld '
13869 ;;
13870 gcx*)
13871 # Green Hills C++ Compiler
13872 lt_prog_compiler_pic_CXX='-PIC'
13873 ;;
13874 *)
13875 ;;
13876 esac
13877 ;;
13878 sunos4*)
13879 case $cc_basename in
13880 CC*)
13881 # Sun C++ 4.x
13882 lt_prog_compiler_pic_CXX='-pic'
13883 lt_prog_compiler_static_CXX='-Bstatic'
13884 ;;
13885 lcc*)
13886 # Lucid
13887 lt_prog_compiler_pic_CXX='-pic'
13888 ;;
13889 *)
13890 ;;
13891 esac
13892 ;;
13893 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13894 case $cc_basename in
13895 CC*)
13896 lt_prog_compiler_wl_CXX='-Wl,'
13897 lt_prog_compiler_pic_CXX='-KPIC'
13898 lt_prog_compiler_static_CXX='-Bstatic'
13899 ;;
13900 esac
13901 ;;
13902 tandem*)
13903 case $cc_basename in
13904 NCC*)
13905 # NonStop-UX NCC 3.20
13906 lt_prog_compiler_pic_CXX='-KPIC'
13907 ;;
13908 *)
13909 ;;
13910 esac
13911 ;;
13912 vxworks*)
13913 ;;
13914 *)
13915 lt_prog_compiler_can_build_shared_CXX=no
13916 ;;
13917 esac
13918 fi
13919
13920case $host_os in
13921 # For platforms which do not support PIC, -DPIC is meaningless:
13922 *djgpp*)
13923 lt_prog_compiler_pic_CXX=
13924 ;;
13925 *)
13926 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13927 ;;
13928esac
13929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13930$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13931
13932
13933
13934#
13935# Check to make sure the PIC flag actually works.
13936#
13937if test -n "$lt_prog_compiler_pic_CXX"; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13939$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13940if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13941 $as_echo_n "(cached) " >&6
13942else
13943 lt_cv_prog_compiler_pic_works_CXX=no
13944 ac_outfile=conftest.$ac_objext
13945 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13946 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13947 # Insert the option either (1) after the last *FLAGS variable, or
13948 # (2) before a word containing "conftest.", or (3) at the end.
13949 # Note that $ac_compile itself does not contain backslashes and begins
13950 # with a dollar sign (not a hyphen), so the echo should work correctly.
13951 # The option is referenced via a variable to avoid confusing sed.
13952 lt_compile=`echo "$ac_compile" | $SED \
13953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13955 -e 's:$: $lt_compiler_flag:'`
13956 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13957 (eval "$lt_compile" 2>conftest.err)
13958 ac_status=$?
13959 cat conftest.err >&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 if (exit $ac_status) && test -s "$ac_outfile"; then
13962 # The compiler can only warn and ignore the option if not recognized
13963 # So say no if there are warnings other than the usual output.
13964 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13966 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13967 lt_cv_prog_compiler_pic_works_CXX=yes
13968 fi
13969 fi
13970 $RM conftest*
13971
13972fi
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13974$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13975
13976if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13977 case $lt_prog_compiler_pic_CXX in
13978 "" | " "*) ;;
13979 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13980 esac
13981else
13982 lt_prog_compiler_pic_CXX=
13983 lt_prog_compiler_can_build_shared_CXX=no
13984fi
13985
13986fi
13987
13988
13989
13990#
13991# Check to make sure the static flag actually works.
13992#
13993wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13995$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13996if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13997 $as_echo_n "(cached) " >&6
13998else
13999 lt_cv_prog_compiler_static_works_CXX=no
14000 save_LDFLAGS="$LDFLAGS"
14001 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14002 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14003 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14004 # The linker can only warn and ignore the option if not recognized
14005 # So say no if there are warnings
14006 if test -s conftest.err; then
14007 # Append any errors to the config.log.
14008 cat conftest.err 1>&5
14009 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14011 if diff conftest.exp conftest.er2 >/dev/null; then
14012 lt_cv_prog_compiler_static_works_CXX=yes
14013 fi
14014 else
14015 lt_cv_prog_compiler_static_works_CXX=yes
14016 fi
14017 fi
14018 $RM -r conftest*
14019 LDFLAGS="$save_LDFLAGS"
14020
14021fi
14022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14023$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14024
14025if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14026 :
14027else
14028 lt_prog_compiler_static_CXX=
14029fi
14030
14031
14032
14033
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14035$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14036if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14037 $as_echo_n "(cached) " >&6
14038else
14039 lt_cv_prog_compiler_c_o_CXX=no
14040 $RM -r conftest 2>/dev/null
14041 mkdir conftest
14042 cd conftest
14043 mkdir out
14044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14045
14046 lt_compiler_flag="-o out/conftest2.$ac_objext"
14047 # Insert the option either (1) after the last *FLAGS variable, or
14048 # (2) before a word containing "conftest.", or (3) at the end.
14049 # Note that $ac_compile itself does not contain backslashes and begins
14050 # with a dollar sign (not a hyphen), so the echo should work correctly.
14051 lt_compile=`echo "$ac_compile" | $SED \
14052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14054 -e 's:$: $lt_compiler_flag:'`
14055 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14056 (eval "$lt_compile" 2>out/conftest.err)
14057 ac_status=$?
14058 cat out/conftest.err >&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14061 then
14062 # The compiler can only warn and ignore the option if not recognized
14063 # So say no if there are warnings
14064 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14065 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14066 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14067 lt_cv_prog_compiler_c_o_CXX=yes
14068 fi
14069 fi
14070 chmod u+w . 2>&5
14071 $RM conftest*
14072 # SGI C++ compiler will create directory out/ii_files/ for
14073 # template instantiation
14074 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14075 $RM out/* && rmdir out
14076 cd ..
14077 $RM -r conftest
14078 $RM conftest*
14079
14080fi
14081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14082$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14083
14084
14085
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14087$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14088if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14089 $as_echo_n "(cached) " >&6
14090else
14091 lt_cv_prog_compiler_c_o_CXX=no
14092 $RM -r conftest 2>/dev/null
14093 mkdir conftest
14094 cd conftest
14095 mkdir out
14096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14097
14098 lt_compiler_flag="-o out/conftest2.$ac_objext"
14099 # Insert the option either (1) after the last *FLAGS variable, or
14100 # (2) before a word containing "conftest.", or (3) at the end.
14101 # Note that $ac_compile itself does not contain backslashes and begins
14102 # with a dollar sign (not a hyphen), so the echo should work correctly.
14103 lt_compile=`echo "$ac_compile" | $SED \
14104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14106 -e 's:$: $lt_compiler_flag:'`
14107 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14108 (eval "$lt_compile" 2>out/conftest.err)
14109 ac_status=$?
14110 cat out/conftest.err >&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14113 then
14114 # The compiler can only warn and ignore the option if not recognized
14115 # So say no if there are warnings
14116 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14117 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14118 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14119 lt_cv_prog_compiler_c_o_CXX=yes
14120 fi
14121 fi
14122 chmod u+w . 2>&5
14123 $RM conftest*
14124 # SGI C++ compiler will create directory out/ii_files/ for
14125 # template instantiation
14126 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14127 $RM out/* && rmdir out
14128 cd ..
14129 $RM -r conftest
14130 $RM conftest*
14131
14132fi
14133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14134$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14135
14136
14137
14138
14139hard_links="nottested"
14140if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14141 # do not overwrite the value of need_locks provided by the user
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14143$as_echo_n "checking if we can lock with hard links... " >&6; }
14144 hard_links=yes
14145 $RM conftest*
14146 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14147 touch conftest.a
14148 ln conftest.a conftest.b 2>&5 || hard_links=no
14149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14151$as_echo "$hard_links" >&6; }
14152 if test "$hard_links" = no; then
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14154$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14155 need_locks=warn
14156 fi
14157else
14158 need_locks=no
14159fi
14160
14161
14162
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14164$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14165
14166 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14167 case $host_os in
14168 aix[4-9]*)
14169 # If we're using GNU nm, then we don't want the "-C" option.
14170 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14171 # Also, AIX nm treats weak defined symbols like other global defined
14172 # symbols, whereas GNU nm marks them as "W".
14173 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14174 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'
14175 else
14176 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14177 fi
14178 ;;
14179 pw32*)
14180 export_symbols_cmds_CXX="$ltdll_cmds"
14181 ;;
14182 cygwin* | mingw* | cegcc*)
14183 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'
14184 ;;
14185 *)
14186 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14187 ;;
14188 esac
14189 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14190
14191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14192$as_echo "$ld_shlibs_CXX" >&6; }
14193test "$ld_shlibs_CXX" = no && can_build_shared=no
14194
14195with_gnu_ld_CXX=$with_gnu_ld
14196
14197
14198
14199
14200
14201
14202#
14203# Do we need to explicitly link libc?
14204#
14205case "x$archive_cmds_need_lc_CXX" in
14206x|xyes)
14207 # Assume -lc should be added
14208 archive_cmds_need_lc_CXX=yes
14209
14210 if test "$enable_shared" = yes && test "$GCC" = yes; then
14211 case $archive_cmds_CXX in
14212 *'~'*)
14213 # FIXME: we may have to deal with multi-command sequences.
14214 ;;
14215 '$CC '*)
14216 # Test whether the compiler implicitly links with -lc since on some
14217 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14218 # to ld, don't add -lc before -lgcc.
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14220$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14221if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14222 $as_echo_n "(cached) " >&6
14223else
14224 $RM conftest*
14225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14226
14227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14228 (eval $ac_compile) 2>&5
14229 ac_status=$?
14230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14231 test $ac_status = 0; } 2>conftest.err; then
14232 soname=conftest
14233 lib=conftest
14234 libobjs=conftest.$ac_objext
14235 deplibs=
14236 wl=$lt_prog_compiler_wl_CXX
14237 pic_flag=$lt_prog_compiler_pic_CXX
14238 compiler_flags=-v
14239 linker_flags=-v
14240 verstring=
14241 output_objdir=.
14242 libname=conftest
14243 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14244 allow_undefined_flag_CXX=
14245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14246 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14247 ac_status=$?
14248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14249 test $ac_status = 0; }
14250 then
14251 lt_cv_archive_cmds_need_lc_CXX=no
14252 else
14253 lt_cv_archive_cmds_need_lc_CXX=yes
14254 fi
14255 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14256 else
14257 cat conftest.err 1>&5
14258 fi
14259 $RM conftest*
14260
14261fi
14262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14263$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14264 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14265 ;;
14266 esac
14267 fi
14268 ;;
14269esac
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14335$as_echo_n "checking dynamic linker characteristics... " >&6; }
14336
14337library_names_spec=
14338libname_spec='lib$name'
14339soname_spec=
14340shrext_cmds=".so"
14341postinstall_cmds=
14342postuninstall_cmds=
14343finish_cmds=
14344finish_eval=
14345shlibpath_var=
14346shlibpath_overrides_runpath=unknown
14347version_type=none
14348dynamic_linker="$host_os ld.so"
14349sys_lib_dlsearch_path_spec="/lib /usr/lib"
14350need_lib_prefix=unknown
14351hardcode_into_libs=no
14352
14353# when you set need_version to no, make sure it does not cause -set_version
14354# flags to be left without arguments
14355need_version=unknown
14356
14357case $host_os in
14358aix3*)
14359 version_type=linux
14360 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14361 shlibpath_var=LIBPATH
14362
14363 # AIX 3 has no versioning support, so we append a major version to the name.
14364 soname_spec='${libname}${release}${shared_ext}$major'
14365 ;;
14366
14367aix[4-9]*)
14368 version_type=linux
14369 need_lib_prefix=no
14370 need_version=no
14371 hardcode_into_libs=yes
14372 if test "$host_cpu" = ia64; then
14373 # AIX 5 supports IA64
14374 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14375 shlibpath_var=LD_LIBRARY_PATH
14376 else
14377 # With GCC up to 2.95.x, collect2 would create an import file
14378 # for dependence libraries. The import file would start with
14379 # the line `#! .'. This would cause the generated library to
14380 # depend on `.', always an invalid library. This was fixed in
14381 # development snapshots of GCC prior to 3.0.
14382 case $host_os in
14383 aix4 | aix4.[01] | aix4.[01].*)
14384 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14385 echo ' yes '
14386 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14387 :
14388 else
14389 can_build_shared=no
14390 fi
14391 ;;
14392 esac
14393 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14394 # soname into executable. Probably we can add versioning support to
14395 # collect2, so additional links can be useful in future.
14396 if test "$aix_use_runtimelinking" = yes; then
14397 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14398 # instead of lib<name>.a to let people know that these are not
14399 # typical AIX shared libraries.
14400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14401 else
14402 # We preserve .a as extension for shared libraries through AIX4.2
14403 # and later when we are not doing run time linking.
14404 library_names_spec='${libname}${release}.a $libname.a'
14405 soname_spec='${libname}${release}${shared_ext}$major'
14406 fi
14407 shlibpath_var=LIBPATH
14408 fi
14409 ;;
14410
14411amigaos*)
14412 case $host_cpu in
14413 powerpc)
14414 # Since July 2007 AmigaOS4 officially supports .so libraries.
14415 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14417 ;;
14418 m68k)
14419 library_names_spec='$libname.ixlibrary $libname.a'
14420 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14421 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'
14422 ;;
14423 esac
14424 ;;
14425
14426beos*)
14427 library_names_spec='${libname}${shared_ext}'
14428 dynamic_linker="$host_os ld.so"
14429 shlibpath_var=LIBRARY_PATH
14430 ;;
14431
14432bsdi[45]*)
14433 version_type=linux
14434 need_version=no
14435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14436 soname_spec='${libname}${release}${shared_ext}$major'
14437 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14438 shlibpath_var=LD_LIBRARY_PATH
14439 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14440 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14441 # the default ld.so.conf also contains /usr/contrib/lib and
14442 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14443 # libtool to hard-code these into programs
14444 ;;
14445
14446cygwin* | mingw* | pw32* | cegcc*)
14447 version_type=windows
14448 shrext_cmds=".dll"
14449 need_version=no
14450 need_lib_prefix=no
14451
14452 case $GCC,$host_os in
14453 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14454 library_names_spec='$libname.dll.a'
14455 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14456 postinstall_cmds='base_file=`basename \${file}`~
14457 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14458 dldir=$destdir/`dirname \$dlpath`~
14459 test -d \$dldir || mkdir -p \$dldir~
14460 $install_prog $dir/$dlname \$dldir/$dlname~
14461 chmod a+x \$dldir/$dlname~
14462 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14463 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14464 fi'
14465 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14466 dlpath=$dir/\$dldll~
14467 $RM \$dlpath'
14468 shlibpath_overrides_runpath=yes
14469
14470 case $host_os in
14471 cygwin*)
14472 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14473 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14474
14475 ;;
14476 mingw* | cegcc*)
14477 # MinGW DLLs use traditional 'lib' prefix
14478 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14479 ;;
14480 pw32*)
14481 # pw32 DLLs use 'pw' prefix rather than 'lib'
14482 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14483 ;;
14484 esac
14485 ;;
14486
14487 *)
14488 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14489 ;;
14490 esac
14491 dynamic_linker='Win32 ld.exe'
14492 # FIXME: first we should search . and the directory the executable is in
14493 shlibpath_var=PATH
14494 ;;
14495
14496darwin* | rhapsody*)
14497 dynamic_linker="$host_os dyld"
14498 version_type=darwin
14499 need_lib_prefix=no
14500 need_version=no
14501 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14502 soname_spec='${libname}${release}${major}$shared_ext'
14503 shlibpath_overrides_runpath=yes
14504 shlibpath_var=DYLD_LIBRARY_PATH
14505 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14506
14507 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14508 ;;
14509
14510dgux*)
14511 version_type=linux
14512 need_lib_prefix=no
14513 need_version=no
14514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14515 soname_spec='${libname}${release}${shared_ext}$major'
14516 shlibpath_var=LD_LIBRARY_PATH
14517 ;;
14518
14519freebsd* | dragonfly*)
14520 # DragonFly does not have aout. When/if they implement a new
14521 # versioning mechanism, adjust this.
14522 if test -x /usr/bin/objformat; then
14523 objformat=`/usr/bin/objformat`
14524 else
14525 case $host_os in
14526 freebsd[123]*) objformat=aout ;;
14527 *) objformat=elf ;;
14528 esac
14529 fi
14530 version_type=freebsd-$objformat
14531 case $version_type in
14532 freebsd-elf*)
14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14534 need_version=no
14535 need_lib_prefix=no
14536 ;;
14537 freebsd-*)
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14539 need_version=yes
14540 ;;
14541 esac
14542 shlibpath_var=LD_LIBRARY_PATH
14543 case $host_os in
14544 freebsd2*)
14545 shlibpath_overrides_runpath=yes
14546 ;;
14547 freebsd3.[01]* | freebsdelf3.[01]*)
14548 shlibpath_overrides_runpath=yes
14549 hardcode_into_libs=yes
14550 ;;
14551 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14552 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14553 shlibpath_overrides_runpath=no
14554 hardcode_into_libs=yes
14555 ;;
14556 *) # from 4.6 on, and DragonFly
14557 shlibpath_overrides_runpath=yes
14558 hardcode_into_libs=yes
14559 ;;
14560 esac
14561 ;;
14562
14563gnu*)
14564 version_type=linux
14565 need_lib_prefix=no
14566 need_version=no
14567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14568 soname_spec='${libname}${release}${shared_ext}$major'
14569 shlibpath_var=LD_LIBRARY_PATH
14570 hardcode_into_libs=yes
14571 ;;
14572
14573haiku*)
14574 version_type=linux
14575 need_lib_prefix=no
14576 need_version=no
14577 dynamic_linker="$host_os runtime_loader"
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14579 soname_spec='${libname}${release}${shared_ext}$major'
14580 shlibpath_var=LIBRARY_PATH
14581 shlibpath_overrides_runpath=yes
14582 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14583 hardcode_into_libs=yes
14584 ;;
14585
14586hpux9* | hpux10* | hpux11*)
14587 # Give a soname corresponding to the major version so that dld.sl refuses to
14588 # link against other versions.
14589 version_type=sunos
14590 need_lib_prefix=no
14591 need_version=no
14592 case $host_cpu in
14593 ia64*)
14594 shrext_cmds='.so'
14595 hardcode_into_libs=yes
14596 dynamic_linker="$host_os dld.so"
14597 shlibpath_var=LD_LIBRARY_PATH
14598 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14600 soname_spec='${libname}${release}${shared_ext}$major'
14601 if test "X$HPUX_IA64_MODE" = X32; then
14602 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14603 else
14604 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14605 fi
14606 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14607 ;;
14608 hppa*64*)
14609 shrext_cmds='.sl'
14610 hardcode_into_libs=yes
14611 dynamic_linker="$host_os dld.sl"
14612 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14615 soname_spec='${libname}${release}${shared_ext}$major'
14616 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14618 ;;
14619 *)
14620 shrext_cmds='.sl'
14621 dynamic_linker="$host_os dld.sl"
14622 shlibpath_var=SHLIB_PATH
14623 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14625 soname_spec='${libname}${release}${shared_ext}$major'
14626 ;;
14627 esac
14628 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14629 postinstall_cmds='chmod 555 $lib'
14630 # or fails outright, so override atomically:
14631 install_override_mode=555
14632 ;;
14633
14634interix[3-9]*)
14635 version_type=linux
14636 need_lib_prefix=no
14637 need_version=no
14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14639 soname_spec='${libname}${release}${shared_ext}$major'
14640 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14641 shlibpath_var=LD_LIBRARY_PATH
14642 shlibpath_overrides_runpath=no
14643 hardcode_into_libs=yes
14644 ;;
14645
14646irix5* | irix6* | nonstopux*)
14647 case $host_os in
14648 nonstopux*) version_type=nonstopux ;;
14649 *)
14650 if test "$lt_cv_prog_gnu_ld" = yes; then
14651 version_type=linux
14652 else
14653 version_type=irix
14654 fi ;;
14655 esac
14656 need_lib_prefix=no
14657 need_version=no
14658 soname_spec='${libname}${release}${shared_ext}$major'
14659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14660 case $host_os in
14661 irix5* | nonstopux*)
14662 libsuff= shlibsuff=
14663 ;;
14664 *)
14665 case $LD in # libtool.m4 will add one of these switches to LD
14666 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14667 libsuff= shlibsuff= libmagic=32-bit;;
14668 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14669 libsuff=32 shlibsuff=N32 libmagic=N32;;
14670 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14671 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14672 *) libsuff= shlibsuff= libmagic=never-match;;
14673 esac
14674 ;;
14675 esac
14676 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14677 shlibpath_overrides_runpath=no
14678 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14679 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14680 hardcode_into_libs=yes
14681 ;;
14682
14683# No shared lib support for Linux oldld, aout, or coff.
14684linux*oldld* | linux*aout* | linux*coff*)
14685 dynamic_linker=no
14686 ;;
14687
14688# This must be Linux ELF.
14689linux* | k*bsd*-gnu | kopensolaris*-gnu)
14690 version_type=linux
14691 need_lib_prefix=no
14692 need_version=no
14693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694 soname_spec='${libname}${release}${shared_ext}$major'
14695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14696 shlibpath_var=LD_LIBRARY_PATH
14697 shlibpath_overrides_runpath=no
14698
14699 # Some binutils ld are patched to set DT_RUNPATH
14700 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14701 $as_echo_n "(cached) " >&6
14702else
14703 lt_cv_shlibpath_overrides_runpath=no
14704 save_LDFLAGS=$LDFLAGS
14705 save_libdir=$libdir
14706 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14707 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709/* end confdefs.h. */
14710
14711int
14712main ()
14713{
14714
14715 ;
14716 return 0;
14717}
14718_ACEOF
14719if ac_fn_cxx_try_link "$LINENO"; then :
14720 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14721 lt_cv_shlibpath_overrides_runpath=yes
14722fi
14723fi
14724rm -f core conftest.err conftest.$ac_objext \
14725 conftest$ac_exeext conftest.$ac_ext
14726 LDFLAGS=$save_LDFLAGS
14727 libdir=$save_libdir
14728
14729fi
14730
14731 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14732
14733 # This implies no fast_install, which is unacceptable.
14734 # Some rework will be needed to allow for fast_install
14735 # before this can be enabled.
14736 hardcode_into_libs=yes
14737
14738 # Append ld.so.conf contents to the search path
14739 if test -f /etc/ld.so.conf; then
14740 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' ' '`
14741 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14742 fi
14743
14744 # We used to test for /lib/ld.so.1 and disable shared libraries on
14745 # powerpc, because MkLinux only supported shared libraries with the
14746 # GNU dynamic linker. Since this was broken with cross compilers,
14747 # most powerpc-linux boxes support dynamic linking these days and
14748 # people can always --disable-shared, the test was removed, and we
14749 # assume the GNU/Linux dynamic linker is in use.
14750 dynamic_linker='GNU/Linux ld.so'
14751 ;;
14752
14753netbsd*)
14754 version_type=sunos
14755 need_lib_prefix=no
14756 need_version=no
14757 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14760 dynamic_linker='NetBSD (a.out) ld.so'
14761 else
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14763 soname_spec='${libname}${release}${shared_ext}$major'
14764 dynamic_linker='NetBSD ld.elf_so'
14765 fi
14766 shlibpath_var=LD_LIBRARY_PATH
14767 shlibpath_overrides_runpath=yes
14768 hardcode_into_libs=yes
14769 ;;
14770
14771newsos6)
14772 version_type=linux
14773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14774 shlibpath_var=LD_LIBRARY_PATH
14775 shlibpath_overrides_runpath=yes
14776 ;;
14777
14778*nto* | *qnx*)
14779 version_type=qnx
14780 need_lib_prefix=no
14781 need_version=no
14782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14783 soname_spec='${libname}${release}${shared_ext}$major'
14784 shlibpath_var=LD_LIBRARY_PATH
14785 shlibpath_overrides_runpath=no
14786 hardcode_into_libs=yes
14787 dynamic_linker='ldqnx.so'
14788 ;;
14789
14790openbsd*)
14791 version_type=sunos
14792 sys_lib_dlsearch_path_spec="/usr/lib"
14793 need_lib_prefix=no
14794 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14795 case $host_os in
14796 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14797 *) need_version=no ;;
14798 esac
14799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14801 shlibpath_var=LD_LIBRARY_PATH
14802 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14803 case $host_os in
14804 openbsd2.[89] | openbsd2.[89].*)
14805 shlibpath_overrides_runpath=no
14806 ;;
14807 *)
14808 shlibpath_overrides_runpath=yes
14809 ;;
14810 esac
14811 else
14812 shlibpath_overrides_runpath=yes
14813 fi
14814 ;;
14815
14816os2*)
14817 libname_spec='$name'
14818 shrext_cmds=".dll"
14819 need_lib_prefix=no
14820 library_names_spec='$libname${shared_ext} $libname.a'
14821 dynamic_linker='OS/2 ld.exe'
14822 shlibpath_var=LIBPATH
14823 ;;
14824
14825osf3* | osf4* | osf5*)
14826 version_type=osf
14827 need_lib_prefix=no
14828 need_version=no
14829 soname_spec='${libname}${release}${shared_ext}$major'
14830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14831 shlibpath_var=LD_LIBRARY_PATH
14832 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14833 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14834 ;;
14835
14836rdos*)
14837 dynamic_linker=no
14838 ;;
14839
14840solaris*)
14841 version_type=linux
14842 need_lib_prefix=no
14843 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
14847 shlibpath_overrides_runpath=yes
14848 hardcode_into_libs=yes
14849 # ldd complains unless libraries are executable
14850 postinstall_cmds='chmod +x $lib'
14851 ;;
14852
14853sunos4*)
14854 version_type=sunos
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14856 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14857 shlibpath_var=LD_LIBRARY_PATH
14858 shlibpath_overrides_runpath=yes
14859 if test "$with_gnu_ld" = yes; then
14860 need_lib_prefix=no
14861 fi
14862 need_version=yes
14863 ;;
14864
14865sysv4 | sysv4.3*)
14866 version_type=linux
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868 soname_spec='${libname}${release}${shared_ext}$major'
14869 shlibpath_var=LD_LIBRARY_PATH
14870 case $host_vendor in
14871 sni)
14872 shlibpath_overrides_runpath=no
14873 need_lib_prefix=no
14874 runpath_var=LD_RUN_PATH
14875 ;;
14876 siemens)
14877 need_lib_prefix=no
14878 ;;
14879 motorola)
14880 need_lib_prefix=no
14881 need_version=no
14882 shlibpath_overrides_runpath=no
14883 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14884 ;;
14885 esac
14886 ;;
14887
14888sysv4*MP*)
14889 if test -d /usr/nec ;then
14890 version_type=linux
14891 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14892 soname_spec='$libname${shared_ext}.$major'
14893 shlibpath_var=LD_LIBRARY_PATH
14894 fi
14895 ;;
14896
14897sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14898 version_type=freebsd-elf
14899 need_lib_prefix=no
14900 need_version=no
14901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14902 soname_spec='${libname}${release}${shared_ext}$major'
14903 shlibpath_var=LD_LIBRARY_PATH
14904 shlibpath_overrides_runpath=yes
14905 hardcode_into_libs=yes
14906 if test "$with_gnu_ld" = yes; then
14907 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14908 else
14909 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14910 case $host_os in
14911 sco3.2v5*)
14912 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14913 ;;
14914 esac
14915 fi
14916 sys_lib_dlsearch_path_spec='/usr/lib'
14917 ;;
14918
14919tpf*)
14920 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14921 version_type=linux
14922 need_lib_prefix=no
14923 need_version=no
14924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14925 shlibpath_var=LD_LIBRARY_PATH
14926 shlibpath_overrides_runpath=no
14927 hardcode_into_libs=yes
14928 ;;
14929
14930uts4*)
14931 version_type=linux
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14934 shlibpath_var=LD_LIBRARY_PATH
14935 ;;
14936
14937*)
14938 dynamic_linker=no
14939 ;;
14940esac
14941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14942$as_echo "$dynamic_linker" >&6; }
14943test "$dynamic_linker" = no && can_build_shared=no
14944
14945variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14946if test "$GCC" = yes; then
14947 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14948fi
14949
14950if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14951 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14952fi
14953if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14954 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14955fi
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14995$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14996hardcode_action_CXX=
14997if test -n "$hardcode_libdir_flag_spec_CXX" ||
14998 test -n "$runpath_var_CXX" ||
14999 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15000
15001 # We can hardcode non-existent directories.
15002 if test "$hardcode_direct_CXX" != no &&
15003 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15004 # have to relink, otherwise we might link with an installed library
15005 # when we should be linking with a yet-to-be-installed one
15006 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15007 test "$hardcode_minus_L_CXX" != no; then
15008 # Linking always hardcodes the temporary library directory.
15009 hardcode_action_CXX=relink
15010 else
15011 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15012 hardcode_action_CXX=immediate
15013 fi
15014else
15015 # We cannot hardcode anything, or else we can only hardcode existing
15016 # directories.
15017 hardcode_action_CXX=unsupported
15018fi
15019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15020$as_echo "$hardcode_action_CXX" >&6; }
15021
15022if test "$hardcode_action_CXX" = relink ||
15023 test "$inherit_rpath_CXX" = yes; then
15024 # Fast installation is not supported
15025 enable_fast_install=no
15026elif test "$shlibpath_overrides_runpath" = yes ||
15027 test "$enable_shared" = no; then
15028 # Fast installation is not necessary
15029 enable_fast_install=needless
15030fi
15031
15032
15033
15034
15035
15036
15037
15038 fi # test -n "$compiler"
15039
15040 CC=$lt_save_CC
15041 LDCXX=$LD
15042 LD=$lt_save_LD
15043 GCC=$lt_save_GCC
15044 with_gnu_ld=$lt_save_with_gnu_ld
15045 lt_cv_path_LDCXX=$lt_cv_path_LD
15046 lt_cv_path_LD=$lt_save_path_LD
15047 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15048 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15049fi # test "$_lt_caught_CXX_error" != yes
15050
15051ac_ext=c
15052ac_cpp='$CPP $CPPFLAGS'
15053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15055ac_compiler_gnu=$ac_cv_c_compiler_gnu
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069 ac_config_commands="$ac_config_commands libtool"
15070
15071
15072
15073
15074# Only expand once:
15075
15076
15077
15078
15079
15080
15081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15082$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15083 # Check whether --enable-maintainer-mode was given.
15084if test "${enable_maintainer_mode+set}" = set; then :
15085 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15086else
15087 USE_MAINTAINER_MODE=no
15088fi
15089
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15091$as_echo "$USE_MAINTAINER_MODE" >&6; }
15092 if test $USE_MAINTAINER_MODE = yes; then
15093 MAINTAINER_MODE_TRUE=
15094 MAINTAINER_MODE_FALSE='#'
15095else
15096 MAINTAINER_MODE_TRUE='#'
15097 MAINTAINER_MODE_FALSE=
15098fi
15099
15100 MAINT=$MAINTAINER_MODE_TRUE
15101
15102
15103
15104# For libtool versioning info, format is CURRENT:REVISION:AGE
15105libtool_VERSION=1:0:0
15106
15107
15108# Check header files.
15109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15110$as_echo_n "checking for ANSI C header files... " >&6; }
15111if test "${ac_cv_header_stdc+set}" = set; then :
15112 $as_echo_n "(cached) " >&6
15113else
15114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115/* end confdefs.h. */
15116#include <stdlib.h>
15117#include <stdarg.h>
15118#include <string.h>
15119#include <float.h>
15120
15121int
15122main ()
15123{
15124
15125 ;
15126 return 0;
15127}
15128_ACEOF
15129if ac_fn_c_try_compile "$LINENO"; then :
15130 ac_cv_header_stdc=yes
15131else
15132 ac_cv_header_stdc=no
15133fi
15134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15135
15136if test $ac_cv_header_stdc = yes; then
15137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139/* end confdefs.h. */
15140#include <string.h>
15141
15142_ACEOF
15143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15144 $EGREP "memchr" >/dev/null 2>&1; then :
15145
15146else
15147 ac_cv_header_stdc=no
15148fi
15149rm -f conftest*
15150
15151fi
15152
15153if test $ac_cv_header_stdc = yes; then
15154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156/* end confdefs.h. */
15157#include <stdlib.h>
15158
15159_ACEOF
15160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15161 $EGREP "free" >/dev/null 2>&1; then :
15162
15163else
15164 ac_cv_header_stdc=no
15165fi
15166rm -f conftest*
15167
15168fi
15169
15170if test $ac_cv_header_stdc = yes; then
15171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15172 if test "$cross_compiling" = yes; then :
15173 :
15174else
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176/* end confdefs.h. */
15177#include <ctype.h>
15178#include <stdlib.h>
15179#if ((' ' & 0x0FF) == 0x020)
15180# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15181# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15182#else
15183# define ISLOWER(c) \
15184 (('a' <= (c) && (c) <= 'i') \
15185 || ('j' <= (c) && (c) <= 'r') \
15186 || ('s' <= (c) && (c) <= 'z'))
15187# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15188#endif
15189
15190#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15191int
15192main ()
15193{
15194 int i;
15195 for (i = 0; i < 256; i++)
15196 if (XOR (islower (i), ISLOWER (i))
15197 || toupper (i) != TOUPPER (i))
15198 return 2;
15199 return 0;
15200}
15201_ACEOF
15202if ac_fn_c_try_run "$LINENO"; then :
15203
15204else
15205 ac_cv_header_stdc=no
15206fi
15207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15208 conftest.$ac_objext conftest.beam conftest.$ac_ext
15209fi
15210
15211fi
15212fi
15213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15214$as_echo "$ac_cv_header_stdc" >&6; }
15215if test $ac_cv_header_stdc = yes; then
15216
15217$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15218
15219fi
15220
15221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15222$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15223if test "${ac_cv_header_time+set}" = set; then :
15224 $as_echo_n "(cached) " >&6
15225else
15226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227/* end confdefs.h. */
15228#include <sys/types.h>
15229#include <sys/time.h>
15230#include <time.h>
15231
15232int
15233main ()
15234{
15235if ((struct tm *) 0)
15236return 0;
15237 ;
15238 return 0;
15239}
15240_ACEOF
15241if ac_fn_c_try_compile "$LINENO"; then :
15242 ac_cv_header_time=yes
15243else
15244 ac_cv_header_time=no
15245fi
15246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15247fi
15248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15249$as_echo "$ac_cv_header_time" >&6; }
15250if test $ac_cv_header_time = yes; then
15251
15252$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15253
15254fi
15255
15256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15257$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15258if test "${gcc_cv_header_string+set}" = set; then :
15259 $as_echo_n "(cached) " >&6
15260else
15261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262/* end confdefs.h. */
15263#include <string.h>
15264#include <strings.h>
15265int
15266main ()
15267{
15268
15269 ;
15270 return 0;
15271}
15272_ACEOF
15273if ac_fn_c_try_compile "$LINENO"; then :
15274 gcc_cv_header_string=yes
15275else
15276 gcc_cv_header_string=no
15277fi
15278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15279fi
15280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15281$as_echo "$gcc_cv_header_string" >&6; }
15282if test $gcc_cv_header_string = yes; then
15283
15284$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15285
15286fi
15287
15288for ac_header in unistd.h semaphore.h sys/time.h malloc.h
15289do :
15290 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15291ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15292eval as_val=\$$as_ac_Header
15293 if test "x$as_val" = x""yes; then :
15294 cat >>confdefs.h <<_ACEOF
15295#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15296_ACEOF
15297
15298fi
15299
15300done
15301
15302
15303
15304
15305inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15306
15307acx_cv_header_stdint=stddef.h
15308acx_cv_header_stdint_kind="(already complete)"
15309for i in stdint.h $inttype_headers; do
15310 unset ac_cv_type_uintptr_t
15311 unset ac_cv_type_uintmax_t
15312 unset ac_cv_type_int_least32_t
15313 unset ac_cv_type_int_fast32_t
15314 unset ac_cv_type_uint64_t
15315 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15316 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15317#include <$i>
15318"
15319if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15320 acx_cv_header_stdint=$i
15321else
15322 continue
15323fi
15324
15325 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15326#include <$i>
15327"
15328if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15329
15330else
15331 acx_cv_header_stdint_kind="(mostly complete)"
15332fi
15333
15334 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15335#include <$i>
15336"
15337if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15338
15339else
15340 acx_cv_header_stdint_kind="(mostly complete)"
15341fi
15342
15343 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15344#include <$i>
15345"
15346if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15347
15348else
15349 acx_cv_header_stdint_kind="(mostly complete)"
15350fi
15351
15352 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15353#include <$i>
15354"
15355if test "x$ac_cv_type_uint64_t" = x""yes; then :
15356
15357else
15358 acx_cv_header_stdint_kind="(lacks uint64_t)"
15359fi
15360
15361 break
15362done
15363if test "$acx_cv_header_stdint" = stddef.h; then
15364 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15365 for i in stdint.h $inttype_headers; do
15366 unset ac_cv_type_uintptr_t
15367 unset ac_cv_type_uint32_t
15368 unset ac_cv_type_uint64_t
15369 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15370 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15371#include <$i>
15372"
15373if test "x$ac_cv_type_uint32_t" = x""yes; then :
15374 acx_cv_header_stdint=$i
15375else
15376 continue
15377fi
15378
15379 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15380#include <$i>
15381"
15382if test "x$ac_cv_type_uint64_t" = x""yes; then :
15383
15384fi
15385
15386 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15387#include <$i>
15388"
15389if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15390
15391fi
15392
15393 break
15394 done
15395fi
15396if test "$acx_cv_header_stdint" = stddef.h; then
15397 acx_cv_header_stdint_kind="(u_intXX_t style)"
15398 for i in sys/types.h $inttype_headers; do
15399 unset ac_cv_type_u_int32_t
15400 unset ac_cv_type_u_int64_t
15401 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15402 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15403#include <$i>
15404"
15405if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15406 acx_cv_header_stdint=$i
15407else
15408 continue
15409fi
15410
15411 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15412#include <$i>
15413"
15414if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15415
15416fi
15417
15418 break
15419 done
15420fi
15421if test "$acx_cv_header_stdint" = stddef.h; then
15422 acx_cv_header_stdint_kind="(using manual detection)"
15423fi
15424
15425test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15426test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15427test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15428test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15429test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15430
15431# ----------------- Summarize what we found so far
15432
15433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15434$as_echo_n "checking what to include in gstdint.h... " >&6; }
15435
15436case `$as_basename -- gstdint.h ||
15437$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15438 Xgstdint.h : 'X\(//\)$' \| \
15439 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15440$as_echo X/gstdint.h |
15441 sed '/^.*\/\([^/][^/]*\)\/*$/{
15442 s//\1/
15443 q
15444 }
15445 /^X\/\(\/\/\)$/{
15446 s//\1/
15447 q
15448 }
15449 /^X\/\(\/\).*/{
15450 s//\1/
15451 q
15452 }
15453 s/.*/./; q'` in
15454 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15455$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15456 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15457$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15458 *) ;;
15459esac
15460
15461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15462$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15463
15464# ----------------- done included file, check C basic types --------
15465
15466# Lacking an uintptr_t? Test size of void *
15467case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15468 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15469# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15470# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15471# This bug is HP SR number 8606223364.
15472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15473$as_echo_n "checking size of void *... " >&6; }
15474if test "${ac_cv_sizeof_void_p+set}" = set; then :
15475 $as_echo_n "(cached) " >&6
15476else
15477 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15478
15479else
15480 if test "$ac_cv_type_void_p" = yes; then
15481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15483{ as_fn_set_status 77
15484as_fn_error "cannot compute sizeof (void *)
15485See \`config.log' for more details." "$LINENO" 5; }; }
15486 else
15487 ac_cv_sizeof_void_p=0
15488 fi
15489fi
15490
15491fi
15492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15493$as_echo "$ac_cv_sizeof_void_p" >&6; }
15494
15495
15496
15497cat >>confdefs.h <<_ACEOF
15498#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15499_ACEOF
15500
15501 ;;
15502esac
15503
15504# Lacking an uint64_t? Test size of long
15505case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15506 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15507# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15508# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15509# This bug is HP SR number 8606223364.
15510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15511$as_echo_n "checking size of long... " >&6; }
15512if test "${ac_cv_sizeof_long+set}" = set; then :
15513 $as_echo_n "(cached) " >&6
15514else
15515 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15516
15517else
15518 if test "$ac_cv_type_long" = yes; then
15519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15521{ as_fn_set_status 77
15522as_fn_error "cannot compute sizeof (long)
15523See \`config.log' for more details." "$LINENO" 5; }; }
15524 else
15525 ac_cv_sizeof_long=0
15526 fi
15527fi
15528
15529fi
15530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15531$as_echo "$ac_cv_sizeof_long" >&6; }
15532
15533
15534
15535cat >>confdefs.h <<_ACEOF
15536#define SIZEOF_LONG $ac_cv_sizeof_long
15537_ACEOF
15538
15539 ;;
15540esac
15541
15542if test $acx_cv_header_stdint = stddef.h; then
15543 # Lacking a good header? Test size of everything and deduce all types.
15544 # The cast to long int works around a bug in the HP C Compiler
15545# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15546# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15547# This bug is HP SR number 8606223364.
15548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15549$as_echo_n "checking size of int... " >&6; }
15550if test "${ac_cv_sizeof_int+set}" = set; then :
15551 $as_echo_n "(cached) " >&6
15552else
15553 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15554
15555else
15556 if test "$ac_cv_type_int" = yes; then
15557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15559{ as_fn_set_status 77
15560as_fn_error "cannot compute sizeof (int)
15561See \`config.log' for more details." "$LINENO" 5; }; }
15562 else
15563 ac_cv_sizeof_int=0
15564 fi
15565fi
15566
15567fi
15568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15569$as_echo "$ac_cv_sizeof_int" >&6; }
15570
15571
15572
15573cat >>confdefs.h <<_ACEOF
15574#define SIZEOF_INT $ac_cv_sizeof_int
15575_ACEOF
15576
15577
15578 # The cast to long int works around a bug in the HP C Compiler
15579# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15580# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15581# This bug is HP SR number 8606223364.
15582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15583$as_echo_n "checking size of short... " >&6; }
15584if test "${ac_cv_sizeof_short+set}" = set; then :
15585 $as_echo_n "(cached) " >&6
15586else
15587 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15588
15589else
15590 if test "$ac_cv_type_short" = yes; then
15591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15593{ as_fn_set_status 77
15594as_fn_error "cannot compute sizeof (short)
15595See \`config.log' for more details." "$LINENO" 5; }; }
15596 else
15597 ac_cv_sizeof_short=0
15598 fi
15599fi
15600
15601fi
15602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15603$as_echo "$ac_cv_sizeof_short" >&6; }
15604
15605
15606
15607cat >>confdefs.h <<_ACEOF
15608#define SIZEOF_SHORT $ac_cv_sizeof_short
15609_ACEOF
15610
15611
15612 # The cast to long int works around a bug in the HP C Compiler
15613# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15614# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15615# This bug is HP SR number 8606223364.
15616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15617$as_echo_n "checking size of char... " >&6; }
15618if test "${ac_cv_sizeof_char+set}" = set; then :
15619 $as_echo_n "(cached) " >&6
15620else
15621 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15622
15623else
15624 if test "$ac_cv_type_char" = yes; then
15625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15627{ as_fn_set_status 77
15628as_fn_error "cannot compute sizeof (char)
15629See \`config.log' for more details." "$LINENO" 5; }; }
15630 else
15631 ac_cv_sizeof_char=0
15632 fi
15633fi
15634
15635fi
15636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15637$as_echo "$ac_cv_sizeof_char" >&6; }
15638
15639
15640
15641cat >>confdefs.h <<_ACEOF
15642#define SIZEOF_CHAR $ac_cv_sizeof_char
15643_ACEOF
15644
15645
15646
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15648$as_echo_n "checking for type equivalent to int8_t... " >&6; }
15649 case "$ac_cv_sizeof_char" in
15650 1) acx_cv_type_int8_t=char ;;
15651 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15652 esac
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15654$as_echo "$acx_cv_type_int8_t" >&6; }
15655
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15657$as_echo_n "checking for type equivalent to int16_t... " >&6; }
15658 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15659 2:*) acx_cv_type_int16_t=int ;;
15660 *:2) acx_cv_type_int16_t=short ;;
15661 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15662 esac
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15664$as_echo "$acx_cv_type_int16_t" >&6; }
15665
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15667$as_echo_n "checking for type equivalent to int32_t... " >&6; }
15668 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15669 4:*) acx_cv_type_int32_t=int ;;
15670 *:4) acx_cv_type_int32_t=long ;;
15671 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15672 esac
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15674$as_echo "$acx_cv_type_int32_t" >&6; }
15675fi
15676
15677# These tests are here to make the output prettier
15678
15679if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15680 case "$ac_cv_sizeof_long" in
15681 8) acx_cv_type_int64_t=long ;;
15682 esac
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15684$as_echo_n "checking for type equivalent to int64_t... " >&6; }
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15686$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15687fi
15688
15689# Now we can use the above types
15690
15691if test "$ac_cv_type_uintptr_t" != yes; then
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15693$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15694 case $ac_cv_sizeof_void_p in
15695 2) acx_cv_type_intptr_t=int16_t ;;
15696 4) acx_cv_type_intptr_t=int32_t ;;
15697 8) acx_cv_type_intptr_t=int64_t ;;
15698 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15699 esac
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15701$as_echo "$acx_cv_type_intptr_t" >&6; }
15702fi
15703
15704# ----------------- done all checks, emit header -------------
15705ac_config_commands="$ac_config_commands gstdint.h"
15706
15707
15708
15709
15710
15711ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15712if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
15713 gcc_header_sys_mman_h=yes
15714else
15715 gcc_header_sys_mman_h=no
15716fi
15717
15718
15719ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15720if test "x$ac_cv_func_mmap" = x""yes; then :
15721 gcc_func_mmap=yes
15722else
15723 gcc_func_mmap=no
15724fi
15725
15726if test "$gcc_header_sys_mman_h" != yes \
15727 || test "$gcc_func_mmap" != yes; then
15728 gcc_cv_func_mmap_file=no
15729 gcc_cv_func_mmap_dev_zero=no
15730 gcc_cv_func_mmap_anon=no
15731else
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15733$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15734if test "${gcc_cv_func_mmap_file+set}" = set; then :
15735 $as_echo_n "(cached) " >&6
15736else
15737 # Add a system to this blacklist if
15738 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15739 # memory area containing the same data that you'd get if you applied
15740 # read() to the same fd. The only system known to have a problem here
15741 # is VMS, where text files have record structure.
15742 case "$host_os" in
15743 vms* | ultrix*)
15744 gcc_cv_func_mmap_file=no ;;
15745 *)
15746 gcc_cv_func_mmap_file=yes;;
15747 esac
15748fi
15749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
15750$as_echo "$gcc_cv_func_mmap_file" >&6; }
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15752$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15753if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
15754 $as_echo_n "(cached) " >&6
15755else
15756 # Add a system to this blacklist if it has mmap() but /dev/zero
15757 # does not exist, or if mmapping /dev/zero does not give anonymous
15758 # zeroed pages with both the following properties:
15759 # 1. If you map N consecutive pages in with one call, and then
15760 # unmap any subset of those pages, the pages that were not
15761 # explicitly unmapped remain accessible.
15762 # 2. If you map two adjacent blocks of memory and then unmap them
15763 # both at once, they must both go away.
15764 # Systems known to be in this category are Windows (all variants),
15765 # VMS, and Darwin.
15766 case "$host_os" in
15767 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15768 gcc_cv_func_mmap_dev_zero=no ;;
15769 *)
15770 gcc_cv_func_mmap_dev_zero=yes;;
15771 esac
15772fi
15773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
15774$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
15775
15776 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15778$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15779if test "${gcc_cv_decl_map_anon+set}" = set; then :
15780 $as_echo_n "(cached) " >&6
15781else
15782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15783/* end confdefs.h. */
15784#include <sys/types.h>
15785#include <sys/mman.h>
15786#include <unistd.h>
15787
15788#ifndef MAP_ANONYMOUS
15789#define MAP_ANONYMOUS MAP_ANON
15790#endif
15791
15792int
15793main ()
15794{
15795int n = MAP_ANONYMOUS;
15796 ;
15797 return 0;
15798}
15799_ACEOF
15800if ac_fn_c_try_compile "$LINENO"; then :
15801 gcc_cv_decl_map_anon=yes
15802else
15803 gcc_cv_decl_map_anon=no
15804fi
15805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15806fi
15807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
15808$as_echo "$gcc_cv_decl_map_anon" >&6; }
15809
15810 if test $gcc_cv_decl_map_anon = no; then
15811 gcc_cv_func_mmap_anon=no
15812 else
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15814$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15815if test "${gcc_cv_func_mmap_anon+set}" = set; then :
15816 $as_echo_n "(cached) " >&6
15817else
15818 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15819 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15820 # doesn't give anonymous zeroed pages with the same properties listed
15821 # above for use of /dev/zero.
15822 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15823 case "$host_os" in
15824 vms* | cygwin* | pe | mingw* | sco* | udk* )
15825 gcc_cv_func_mmap_anon=no ;;
15826 *)
15827 gcc_cv_func_mmap_anon=yes;;
15828 esac
15829fi
15830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
15831$as_echo "$gcc_cv_func_mmap_anon" >&6; }
15832 fi
15833fi
15834
15835if test $gcc_cv_func_mmap_file = yes; then
15836
15837$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15838
15839fi
15840if test $gcc_cv_func_mmap_dev_zero = yes; then
15841
15842$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15843
15844fi
15845if test $gcc_cv_func_mmap_anon = yes; then
15846
15847$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15848
15849fi
15850
15851
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15853$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15854if test "${ac_cv_c_bigendian+set}" = set; then :
15855 $as_echo_n "(cached) " >&6
15856else
15857 ac_cv_c_bigendian=unknown
15858 # See if we're dealing with a universal compiler.
15859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860/* end confdefs.h. */
15861#ifndef __APPLE_CC__
15862 not a universal capable compiler
15863 #endif
15864 typedef int dummy;
15865
15866_ACEOF
15867if ac_fn_c_try_compile "$LINENO"; then :
15868
15869 # Check for potential -arch flags. It is not universal unless
15870 # there are at least two -arch flags with different values.
15871 ac_arch=
15872 ac_prev=
15873 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15874 if test -n "$ac_prev"; then
15875 case $ac_word in
15876 i?86 | x86_64 | ppc | ppc64)
15877 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15878 ac_arch=$ac_word
15879 else
15880 ac_cv_c_bigendian=universal
15881 break
15882 fi
15883 ;;
15884 esac
15885 ac_prev=
15886 elif test "x$ac_word" = "x-arch"; then
15887 ac_prev=arch
15888 fi
15889 done
15890fi
15891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15892 if test $ac_cv_c_bigendian = unknown; then
15893 # See if sys/param.h defines the BYTE_ORDER macro.
15894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15895/* end confdefs.h. */
15896#include <sys/types.h>
15897 #include <sys/param.h>
15898
15899int
15900main ()
15901{
15902#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15903 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15904 && LITTLE_ENDIAN)
15905 bogus endian macros
15906 #endif
15907
15908 ;
15909 return 0;
15910}
15911_ACEOF
15912if ac_fn_c_try_compile "$LINENO"; then :
15913 # It does; now see whether it defined to BIG_ENDIAN or not.
15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915/* end confdefs.h. */
15916#include <sys/types.h>
15917 #include <sys/param.h>
15918
15919int
15920main ()
15921{
15922#if BYTE_ORDER != BIG_ENDIAN
15923 not big endian
15924 #endif
15925
15926 ;
15927 return 0;
15928}
15929_ACEOF
15930if ac_fn_c_try_compile "$LINENO"; then :
15931 ac_cv_c_bigendian=yes
15932else
15933 ac_cv_c_bigendian=no
15934fi
15935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15936fi
15937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15938 fi
15939 if test $ac_cv_c_bigendian = unknown; then
15940 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942/* end confdefs.h. */
15943#include <limits.h>
15944
15945int
15946main ()
15947{
15948#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15949 bogus endian macros
15950 #endif
15951
15952 ;
15953 return 0;
15954}
15955_ACEOF
15956if ac_fn_c_try_compile "$LINENO"; then :
15957 # It does; now see whether it defined to _BIG_ENDIAN or not.
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959/* end confdefs.h. */
15960#include <limits.h>
15961
15962int
15963main ()
15964{
15965#ifndef _BIG_ENDIAN
15966 not big endian
15967 #endif
15968
15969 ;
15970 return 0;
15971}
15972_ACEOF
15973if ac_fn_c_try_compile "$LINENO"; then :
15974 ac_cv_c_bigendian=yes
15975else
15976 ac_cv_c_bigendian=no
15977fi
15978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979fi
15980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15981 fi
15982 if test $ac_cv_c_bigendian = unknown; then
15983 # Compile a test program.
15984 if test "$cross_compiling" = yes; then :
15985 # Try to guess by grepping values from an object file.
15986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15987/* end confdefs.h. */
15988short int ascii_mm[] =
15989 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15990 short int ascii_ii[] =
15991 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15992 int use_ascii (int i) {
15993 return ascii_mm[i] + ascii_ii[i];
15994 }
15995 short int ebcdic_ii[] =
15996 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15997 short int ebcdic_mm[] =
15998 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15999 int use_ebcdic (int i) {
16000 return ebcdic_mm[i] + ebcdic_ii[i];
16001 }
16002 extern int foo;
16003
16004int
16005main ()
16006{
16007return use_ascii (foo) == use_ebcdic (foo);
16008 ;
16009 return 0;
16010}
16011_ACEOF
16012if ac_fn_c_try_compile "$LINENO"; then :
16013 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16014 ac_cv_c_bigendian=yes
16015 fi
16016 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16017 if test "$ac_cv_c_bigendian" = unknown; then
16018 ac_cv_c_bigendian=no
16019 else
16020 # finding both strings is unlikely to happen, but who knows?
16021 ac_cv_c_bigendian=unknown
16022 fi
16023 fi
16024fi
16025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16026else
16027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028/* end confdefs.h. */
16029$ac_includes_default
16030int
16031main ()
16032{
16033
16034 /* Are we little or big endian? From Harbison&Steele. */
16035 union
16036 {
16037 long int l;
16038 char c[sizeof (long int)];
16039 } u;
16040 u.l = 1;
16041 return u.c[sizeof (long int) - 1] == 1;
16042
16043 ;
16044 return 0;
16045}
16046_ACEOF
16047if ac_fn_c_try_run "$LINENO"; then :
16048 ac_cv_c_bigendian=no
16049else
16050 ac_cv_c_bigendian=yes
16051fi
16052rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16053 conftest.$ac_objext conftest.beam conftest.$ac_ext
16054fi
16055
16056 fi
16057fi
16058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16059$as_echo "$ac_cv_c_bigendian" >&6; }
16060 case $ac_cv_c_bigendian in #(
16061 yes)
16062 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16063;; #(
16064 no)
16065 ;; #(
16066 universal)
16067
16068$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16069
16070 ;; #(
16071 *)
16072 as_fn_error "unknown endianness
16073 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16074 esac
16075
16076# I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16077
16078
16079# Check to see if -pthread or -lpthread is needed. Prefer the former.
16080# In case the pthread.h system header is not found, this test will fail.
16081XPCFLAGS=""
16082CFLAGS="$CFLAGS -pthread"
16083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16084/* end confdefs.h. */
16085#include <pthread.h>
16086 void *g(void *d) { return NULL; }
16087int
16088main ()
16089{
16090pthread_t t; pthread_create(&t,NULL,g,NULL);
16091 ;
16092 return 0;
16093}
16094_ACEOF
16095if ac_fn_c_try_link "$LINENO"; then :
16096 XPCFLAGS=" -Wc,-pthread"
16097else
16098 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100/* end confdefs.h. */
16101#include <pthread.h>
16102 void *g(void *d) { return NULL; }
16103int
16104main ()
16105{
16106pthread_t t; pthread_create(&t,NULL,g,NULL);
16107 ;
16108 return 0;
16109}
16110_ACEOF
16111if ac_fn_c_try_link "$LINENO"; then :
16112
16113else
16114 as_fn_error "Pthreads are required to build libitm" "$LINENO" 5
16115fi
16116rm -f core conftest.err conftest.$ac_objext \
16117 conftest$ac_exeext conftest.$ac_ext
16118fi
16119rm -f core conftest.err conftest.$ac_objext \
16120 conftest$ac_exeext conftest.$ac_ext
16121
16122# Check for functions needed.
16123for ac_func in strtoull memalign posix_memalign
16124do :
16125 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16126ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16127eval as_val=\$$as_ac_var
16128 if test "x$as_val" = x""yes; then :
16129 cat >>confdefs.h <<_ACEOF
16130#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16131_ACEOF
16132
16133fi
16134done
16135
16136
16137# Check for broken semaphore implementation on darwin.
16138# sem_init returns: sem_init error: Function not implemented.
16139case "$host" in
16140 *-darwin*)
16141
16142$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16143
16144 ;;
16145esac
16146
16147 # Check whether --enable-linux-futex was given.
16148if test "${enable_linux_futex+set}" = set; then :
16149 enableval=$enable_linux_futex;
16150 case "$enableval" in
16151 yes|no|default) ;;
16152 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16153 esac
16154
16155else
16156 enable_linux_futex=default
16157fi
16158
16159
16160case "$target" in
16161 *-linux*)
16162 case "$enable_linux_futex" in
16163 default)
16164 # If headers don't have gettid/futex syscalls definition, then
16165 # default to no, otherwise there will be compile time failures.
16166 # Otherwise, default to yes. If we don't detect we are
16167 # compiled/linked against NPTL and not cross-compiling, check
16168 # if programs are run by default against NPTL and if not, issue
16169 # a warning.
16170 enable_linux_futex=no
16171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16172/* end confdefs.h. */
16173#include <sys/syscall.h>
16174 int lk;
16175int
16176main ()
16177{
16178syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16179 ;
16180 return 0;
16181}
16182_ACEOF
16183if ac_fn_c_try_link "$LINENO"; then :
16184 save_LIBS="$LIBS"
16185 LIBS="-lpthread $LIBS"
16186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187/* end confdefs.h. */
16188#ifndef _GNU_SOURCE
16189 #define _GNU_SOURCE 1
16190 #endif
16191 #include <pthread.h>
16192 pthread_t th; void *status;
16193int
16194main ()
16195{
16196pthread_tryjoin_np (th, &status);
16197 ;
16198 return 0;
16199}
16200_ACEOF
16201if ac_fn_c_try_link "$LINENO"; then :
16202 enable_linux_futex=yes
16203else
16204 if test x$cross_compiling = xno; then
16205 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16206 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16208If so, please configure with --disable-linux-futex" >&5
16209$as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16210If so, please configure with --disable-linux-futex" >&2;}
16211 fi
16212 fi
16213 enable_linux_futex=yes
16214fi
16215rm -f core conftest.err conftest.$ac_objext \
16216 conftest$ac_exeext conftest.$ac_ext
16217 LIBS="$save_LIBS"
16218fi
16219rm -f core conftest.err conftest.$ac_objext \
16220 conftest$ac_exeext conftest.$ac_ext
16221 ;;
16222 yes)
16223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224/* end confdefs.h. */
16225#include <sys/syscall.h>
16226 int lk;
16227int
16228main ()
16229{
16230syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16231 ;
16232 return 0;
16233}
16234_ACEOF
16235if ac_fn_c_try_link "$LINENO"; then :
16236
16237else
16238 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16239fi
16240rm -f core conftest.err conftest.$ac_objext \
16241 conftest$ac_exeext conftest.$ac_ext
16242 ;;
16243 esac
16244 ;;
16245 *)
16246 enable_linux_futex=no
16247 ;;
16248esac
16249if test x$enable_linux_futex = xyes; then
16250 :
16251fi
16252
16253
16254# See if we support thread-local storage.
16255
16256
16257 # Check whether --enable-tls was given.
16258if test "${enable_tls+set}" = set; then :
16259 enableval=$enable_tls;
16260 case "$enableval" in
16261 yes|no) ;;
16262 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16263 esac
16264
16265else
16266 enable_tls=yes
16267fi
16268
16269
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16271$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16272if test "${gcc_cv_have_tls+set}" = set; then :
16273 $as_echo_n "(cached) " >&6
16274else
16275
16276 if test "$cross_compiling" = yes; then :
16277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278/* end confdefs.h. */
16279__thread int a; int b; int main() { return a = b; }
16280_ACEOF
16281if ac_fn_c_try_link "$LINENO"; then :
16282 chktls_save_LDFLAGS="$LDFLAGS"
16283 case $host in
16284 *-*-linux*)
16285 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16286 ;;
16287 esac
16288 chktls_save_CFLAGS="$CFLAGS"
16289 CFLAGS="-fPIC $CFLAGS"
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291/* end confdefs.h. */
16292int f() { return 0; }
16293_ACEOF
16294if ac_fn_c_try_link "$LINENO"; then :
16295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16296/* end confdefs.h. */
16297__thread int a; int b; int f() { return a = b; }
16298_ACEOF
16299if ac_fn_c_try_link "$LINENO"; then :
16300 gcc_cv_have_tls=yes
16301else
16302 gcc_cv_have_tls=no
16303fi
16304rm -f core conftest.err conftest.$ac_objext \
16305 conftest$ac_exeext conftest.$ac_ext
16306else
16307 gcc_cv_have_tls=yes
16308fi
16309rm -f core conftest.err conftest.$ac_objext \
16310 conftest$ac_exeext conftest.$ac_ext
16311 CFLAGS="$chktls_save_CFLAGS"
16312 LDFLAGS="$chktls_save_LDFLAGS"
16313else
16314 gcc_cv_have_tls=no
16315fi
16316rm -f core conftest.err conftest.$ac_objext \
16317 conftest$ac_exeext conftest.$ac_ext
16318
16319
16320else
16321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322/* end confdefs.h. */
16323__thread int a; int b; int main() { return a = b; }
16324_ACEOF
16325if ac_fn_c_try_run "$LINENO"; then :
16326 chktls_save_LDFLAGS="$LDFLAGS"
16327 LDFLAGS="-static $LDFLAGS"
16328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16329/* end confdefs.h. */
16330int main() { return 0; }
16331_ACEOF
16332if ac_fn_c_try_link "$LINENO"; then :
16333 if test "$cross_compiling" = yes; then :
16334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16336as_fn_error "cannot run test program while cross compiling
16337See \`config.log' for more details." "$LINENO" 5; }
16338else
16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340/* end confdefs.h. */
16341__thread int a; int b; int main() { return a = b; }
16342_ACEOF
16343if ac_fn_c_try_run "$LINENO"; then :
16344 gcc_cv_have_tls=yes
16345else
16346 gcc_cv_have_tls=no
16347fi
16348rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16349 conftest.$ac_objext conftest.beam conftest.$ac_ext
16350fi
16351
16352else
16353 gcc_cv_have_tls=yes
16354fi
16355rm -f core conftest.err conftest.$ac_objext \
16356 conftest$ac_exeext conftest.$ac_ext
16357 LDFLAGS="$chktls_save_LDFLAGS"
16358 if test $gcc_cv_have_tls = yes; then
16359 chktls_save_CFLAGS="$CFLAGS"
16360 thread_CFLAGS=failed
16361 for flag in '' '-pthread' '-lpthread'; do
16362 CFLAGS="$flag $chktls_save_CFLAGS"
16363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16364/* end confdefs.h. */
16365#include <pthread.h>
16366 void *g(void *d) { return NULL; }
16367int
16368main ()
16369{
16370pthread_t t; pthread_create(&t,NULL,g,NULL);
16371 ;
16372 return 0;
16373}
16374_ACEOF
16375if ac_fn_c_try_link "$LINENO"; then :
16376 thread_CFLAGS="$flag"
16377fi
16378rm -f core conftest.err conftest.$ac_objext \
16379 conftest$ac_exeext conftest.$ac_ext
16380 if test "X$thread_CFLAGS" != Xfailed; then
16381 break
16382 fi
16383 done
16384 CFLAGS="$chktls_save_CFLAGS"
16385 if test "X$thread_CFLAGS" != Xfailed; then
16386 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16387 if test "$cross_compiling" = yes; then :
16388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16390as_fn_error "cannot run test program while cross compiling
16391See \`config.log' for more details." "$LINENO" 5; }
16392else
16393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16394/* end confdefs.h. */
16395#include <pthread.h>
16396 __thread int a;
16397 static int *volatile a_in_other_thread;
16398 static void *
16399 thread_func (void *arg)
16400 {
16401 a_in_other_thread = &a;
16402 return (void *)0;
16403 }
16404int
16405main ()
16406{
16407pthread_t thread;
16408 void *thread_retval;
16409 int *volatile a_in_main_thread;
16410 a_in_main_thread = &a;
16411 if (pthread_create (&thread, (pthread_attr_t *)0,
16412 thread_func, (void *)0))
16413 return 0;
16414 if (pthread_join (thread, &thread_retval))
16415 return 0;
16416 return (a_in_other_thread == a_in_main_thread);
16417 ;
16418 return 0;
16419}
16420_ACEOF
16421if ac_fn_c_try_run "$LINENO"; then :
16422 gcc_cv_have_tls=yes
16423else
16424 gcc_cv_have_tls=no
16425fi
16426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16427 conftest.$ac_objext conftest.beam conftest.$ac_ext
16428fi
16429
16430 CFLAGS="$chktls_save_CFLAGS"
16431 fi
16432 fi
16433else
16434 gcc_cv_have_tls=no
16435fi
16436rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16437 conftest.$ac_objext conftest.beam conftest.$ac_ext
16438fi
16439
16440fi
16441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16442$as_echo "$gcc_cv_have_tls" >&6; }
16443 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16444
16445$as_echo "#define HAVE_TLS 1" >>confdefs.h
16446
16447 fi
16448
16449# See what sort of export controls are availible.
16450
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16452$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16453if test "${libitm_cv_have_attribute_visibility+set}" = set; then :
16454 $as_echo_n "(cached) " >&6
16455else
16456
16457 save_CFLAGS="$CFLAGS"
16458 CFLAGS="$CFLAGS -Werror"
16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460/* end confdefs.h. */
16461void __attribute__((visibility("hidden"))) foo(void) { }
16462int
16463main ()
16464{
16465
16466 ;
16467 return 0;
16468}
16469_ACEOF
16470if ac_fn_c_try_compile "$LINENO"; then :
16471 libitm_cv_have_attribute_visibility=yes
16472else
16473 libitm_cv_have_attribute_visibility=no
16474fi
16475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16476 CFLAGS="$save_CFLAGS"
16477fi
16478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16479$as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16480 if test $libitm_cv_have_attribute_visibility = yes; then
16481
16482$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16483
16484 fi
16485
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16487$as_echo_n "checking whether the target supports dllexport... " >&6; }
16488if test "${libitm_cv_have_attribute_dllexport+set}" = set; then :
16489 $as_echo_n "(cached) " >&6
16490else
16491
16492 save_CFLAGS="$CFLAGS"
16493 CFLAGS="$CFLAGS -Werror"
16494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16495/* end confdefs.h. */
16496void __attribute__((dllexport)) foo(void) { }
16497int
16498main ()
16499{
16500
16501 ;
16502 return 0;
16503}
16504_ACEOF
16505if ac_fn_c_try_compile "$LINENO"; then :
16506 libitm_cv_have_attribute_dllexport=yes
16507else
16508 libitm_cv_have_attribute_dllexport=no
16509fi
16510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16511 CFLAGS="$save_CFLAGS"
16512fi
16513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16514$as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16515 if test $libitm_cv_have_attribute_dllexport = yes; then
16516
16517$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16518
16519 fi
16520
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16522$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16523if test "${libitm_cv_have_attribute_alias+set}" = set; then :
16524 $as_echo_n "(cached) " >&6
16525else
16526
16527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16528/* end confdefs.h. */
16529
16530void foo(void) { }
16531extern void bar(void) __attribute__((alias("foo")));
16532int
16533main ()
16534{
16535bar();
16536 ;
16537 return 0;
16538}
16539_ACEOF
16540if ac_fn_c_try_link "$LINENO"; then :
16541 libitm_cv_have_attribute_alias=yes
16542else
16543 libitm_cv_have_attribute_alias=no
16544fi
16545rm -f core conftest.err conftest.$ac_objext \
16546 conftest$ac_exeext conftest.$ac_ext
16547fi
16548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16549$as_echo "$libitm_cv_have_attribute_alias" >&6; }
16550 if test $libitm_cv_have_attribute_alias = yes; then
16551
16552$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16553
16554 fi
16555
16556
16557# Check whether --with-gnu-ld was given.
16558if test "${with_gnu_ld+set}" = set; then :
16559 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16560else
16561 with_gnu_ld=no
16562fi
16563
16564ac_prog=ld
16565if test "$GCC" = yes; then
16566 # Check if gcc -print-prog-name=ld gives a path.
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16568$as_echo_n "checking for ld used by $CC... " >&6; }
16569 case $host in
16570 *-*-mingw*)
16571 # gcc leaves a trailing carriage return which upsets mingw
16572 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16573 *)
16574 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16575 esac
16576 case $ac_prog in
16577 # Accept absolute paths.
16578 [\\/]* | ?:[\\/]*)
16579 re_direlt='/[^/][^/]*/\.\./'
16580 # Canonicalize the pathname of ld
16581 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16582 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16583 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16584 done
16585 test -z "$LD" && LD="$ac_prog"
16586 ;;
16587 "")
16588 # If it fails, then pretend we aren't using GCC.
16589 ac_prog=ld
16590 ;;
16591 *)
16592 # If it is relative, then search for the first ld in PATH.
16593 with_gnu_ld=unknown
16594 ;;
16595 esac
16596elif test "$with_gnu_ld" = yes; then
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16598$as_echo_n "checking for GNU ld... " >&6; }
16599else
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16601$as_echo_n "checking for non-GNU ld... " >&6; }
16602fi
16603if test "${lt_cv_path_LD+set}" = set; then :
16604 $as_echo_n "(cached) " >&6
16605else
16606 if test -z "$LD"; then
16607 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16608 for ac_dir in $PATH; do
16609 IFS="$lt_save_ifs"
16610 test -z "$ac_dir" && ac_dir=.
16611 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16612 lt_cv_path_LD="$ac_dir/$ac_prog"
16613 # Check to see if the program is GNU ld. I'd rather use --version,
16614 # but apparently some variants of GNU ld only accept -v.
16615 # Break only if it was the GNU/non-GNU ld that we prefer.
16616 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16617 *GNU* | *'with BFD'*)
16618 test "$with_gnu_ld" != no && break
16619 ;;
16620 *)
16621 test "$with_gnu_ld" != yes && break
16622 ;;
16623 esac
16624 fi
16625 done
16626 IFS="$lt_save_ifs"
16627else
16628 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16629fi
16630fi
16631
16632LD="$lt_cv_path_LD"
16633if test -n "$LD"; then
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16635$as_echo "$LD" >&6; }
16636else
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16638$as_echo "no" >&6; }
16639fi
16640test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16642$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16643if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16644 $as_echo_n "(cached) " >&6
16645else
16646 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16647case `$LD -v 2>&1 </dev/null` in
16648*GNU* | *'with BFD'*)
16649 lt_cv_prog_gnu_ld=yes
16650 ;;
16651*)
16652 lt_cv_prog_gnu_ld=no
16653 ;;
16654esac
16655fi
16656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16657$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16658with_gnu_ld=$lt_cv_prog_gnu_ld
16659
16660
16661
16662
16663
16664
16665
16666 # If we're not using GNU ld, then there's no point in even trying these
16667 # tests. Check for that first. We should have already tested for gld
16668 # by now (in libtool), but require it now just to be safe...
16669 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16670 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16671
16672
16673
16674 # The name set by libtool depends on the version of libtool. Shame on us
16675 # for depending on an impl detail, but c'est la vie. Older versions used
16676 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16677 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16678 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16679 # set (hence we're using an older libtool), then set it.
16680 if test x${with_gnu_ld+set} != xset; then
16681 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16682 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16683 with_gnu_ld=no
16684 else
16685 with_gnu_ld=$ac_cv_prog_gnu_ld
16686 fi
16687 fi
16688
16689 # Start by getting the version number. I think the libtool test already
16690 # does some of this, but throws away the result.
16691
16692 ldver=`$LD --version 2>/dev/null | head -1 | \
16693 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
16694
16695 libitm_gnu_ld_version=`echo $ldver | \
16696 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16697
16698 # Set --gc-sections.
16699 if test "$with_gnu_ld" = "notbroken"; then
16700 # GNU ld it is! Joy and bunny rabbits!
16701
16702 # All these tests are for C++; save the language and the compiler flags.
16703 # Need to do this so that g++ won't try to link in libstdc++
16704 ac_test_CFLAGS="${CFLAGS+set}"
16705 ac_save_CFLAGS="$CFLAGS"
16706 CFLAGS='-x c++ -Wl,--gc-sections'
16707
16708 # Check for -Wl,--gc-sections
16709 # XXX This test is broken at the moment, as symbols required for linking
16710 # are now in libsupc++ (not built yet). In addition, this test has
16711 # cored on solaris in the past. In addition, --gc-sections doesn't
16712 # really work at the moment (keeps on discarding used sections, first
16713 # .eh_frame and now some of the glibc sections for iconv).
16714 # Bzzzzt. Thanks for playing, maybe next time.
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16716$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16717 if test "$cross_compiling" = yes; then :
16718 ac_sectionLDflags=yes
16719else
16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721/* end confdefs.h. */
16722
16723 int main(void)
16724 {
16725 try { throw 1; }
16726 catch (...) { };
16727 return 0;
16728 }
16729
16730_ACEOF
16731if ac_fn_c_try_run "$LINENO"; then :
16732 ac_sectionLDflags=yes
16733else
16734 ac_sectionLDflags=no
16735fi
16736rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16737 conftest.$ac_objext conftest.beam conftest.$ac_ext
16738fi
16739
16740 if test "$ac_test_CFLAGS" = set; then
16741 CFLAGS="$ac_save_CFLAGS"
16742 else
16743 # this is the suspicious part
16744 CFLAGS=''
16745 fi
16746 if test "$ac_sectionLDflags" = "yes"; then
16747 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16748 fi
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16750$as_echo "$ac_sectionLDflags" >&6; }
16751 fi
16752
16753 # Set linker optimization flags.
16754 if test x"$with_gnu_ld" = x"yes"; then
16755 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16756 fi
16757
16758
16759
16760
16761
16762
16763 # Check whether --enable-symvers was given.
16764if test "${enable_symvers+set}" = set; then :
16765 enableval=$enable_symvers;
16766 case "$enableval" in
16767 yes|no|gnu) ;;
16768 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16769 esac
16770
16771else
16772 enable_symvers=yes
16773fi
16774
16775
16776
16777# If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
16778# don't know enough about $LD to do tricks...
16779
16780# FIXME The following test is too strict, in theory.
16781if test $enable_shared = no ||
16782 test "x$LD" = x ||
16783 test x$libitm_gnu_ld_version = x; then
16784 enable_symvers=no
16785fi
16786
16787# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16788if test $enable_symvers != no; then
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16790$as_echo_n "checking for shared libgcc... " >&6; }
16791 ac_save_CFLAGS="$CFLAGS"
16792 CFLAGS=' -lgcc_s'
16793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16794/* end confdefs.h. */
16795
16796int
16797main ()
16798{
16799return 0;
16800 ;
16801 return 0;
16802}
16803_ACEOF
16804if ac_fn_c_try_link "$LINENO"; then :
16805 libitm_shared_libgcc=yes
16806else
16807 libitm_shared_libgcc=no
16808fi
16809rm -f core conftest.err conftest.$ac_objext \
16810 conftest$ac_exeext conftest.$ac_ext
16811 CFLAGS="$ac_save_CFLAGS"
16812 if test $libitm_shared_libgcc = no; then
16813 cat > conftest.c <<EOF
16814int main (void) { return 0; }
16815EOF
16816 libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16817 -shared -shared-libgcc -o conftest.so \
16818 conftest.c -v 2>&1 >/dev/null \
16819 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16820 rm -f conftest.c conftest.so
16821 if test x${libitm_libgcc_s_suffix+set} = xset; then
16822 CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
16823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824/* end confdefs.h. */
16825
16826int
16827main ()
16828{
16829return 0;
16830 ;
16831 return 0;
16832}
16833_ACEOF
16834if ac_fn_c_try_link "$LINENO"; then :
16835 libitm_shared_libgcc=yes
16836fi
16837rm -f core conftest.err conftest.$ac_objext \
16838 conftest$ac_exeext conftest.$ac_ext
16839 CFLAGS="$ac_save_CFLAGS"
16840 fi
16841 fi
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
16843$as_echo "$libitm_shared_libgcc" >&6; }
16844fi
16845
16846# For GNU ld, we need at least this version. The format is described in
16847# LIBITM_CHECK_LINKER_FEATURES above.
16848libitm_min_gnu_ld_version=21400
16849# XXXXXXXXXXX libitm_gnu_ld_version=21390
16850
16851# Check to see if unspecified "yes" value can win, given results above.
16852# Change "yes" into either "no" or a style name.
16853if test $enable_symvers = yes; then
16854 if test $with_gnu_ld = yes &&
16855 test $libitm_shared_libgcc = yes;
16856 then
16857 if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
16858 enable_symvers=gnu
16859 else
16860 # The right tools, the right setup, but too old. Fallbacks?
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
16862$as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16864$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16866$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
16868$as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
16869 if test $libitm_gnu_ld_version -ge 21200 ; then
16870 # Globbing fix is present, proper block support is not.
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16872$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16873 enable_symvers=no
16874 else
16875 # 2.11 or older.
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16877$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16878 enable_symvers=no
16879 fi
16880 fi
16881 else
16882 # just fail for now
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16884$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16886$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16888$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16890$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16891 enable_symvers=no
16892 fi
16893fi
16894
16895 if test $enable_symvers != no; then
16896 LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
16897 LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
16898else
16899 LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
16900 LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
16901fi
16902
16903{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16904$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16905
16906
16907if test $enable_symvers = gnu; then
16908
16909$as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16910
16911fi
16912
4bdd090f
RH
16913# See if we can emit unwind info in the sjlj stub.
16914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
16915$as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
16916if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
16917 $as_echo_n "(cached) " >&6
16918else
16919
16920 gcc_cv_as_cfi_pseudo_op=unknown
16921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16922/* end confdefs.h. */
16923asm (".cfi_startproc\n\t.cfi_endproc");
16924int
16925main ()
16926{
16927
16928 ;
16929 return 0;
16930}
16931_ACEOF
16932if ac_fn_c_try_compile "$LINENO"; then :
16933 gcc_cv_as_cfi_pseudo_op=yes
16934else
16935 gcc_cv_as_cfi_pseudo_op=no
16936fi
16937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16938
16939fi
16940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
16941$as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
16942 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
16943
16944$as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
16945
16946 fi
16947
16948
0a35513e
AH
16949# Determine the proper ABI type for size_t.
16950
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
16952$as_echo_n "checking how size_t is mangled... " >&6; }
16953if test "${libitm_cv_size_t_mangling+set}" = set; then :
16954 $as_echo_n "(cached) " >&6
16955else
16956
16957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16958/* end confdefs.h. */
16959
16960int
16961main ()
16962{
16963extern __SIZE_TYPE__ x; extern unsigned long x;
16964 ;
16965 return 0;
16966}
16967_ACEOF
16968if ac_fn_c_try_compile "$LINENO"; then :
16969 libitm_cv_size_t_mangling=m
16970else
16971
16972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16973/* end confdefs.h. */
16974
16975int
16976main ()
16977{
16978extern __SIZE_TYPE__ x; extern unsigned int x;
16979 ;
16980 return 0;
16981}
16982_ACEOF
16983if ac_fn_c_try_compile "$LINENO"; then :
16984 libitm_cv_size_t_mangling=j
16985else
16986
16987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16988/* end confdefs.h. */
16989
16990int
16991main ()
16992{
16993extern __SIZE_TYPE__ x; extern unsigned long long x;
16994 ;
16995 return 0;
16996}
16997_ACEOF
16998if ac_fn_c_try_compile "$LINENO"; then :
16999 libitm_cv_size_t_mangling=y
17000else
17001
17002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17003/* end confdefs.h. */
17004
17005int
17006main ()
17007{
17008extern __SIZE_TYPE__ x; extern unsigned short x;
17009 ;
17010 return 0;
17011}
17012_ACEOF
17013if ac_fn_c_try_compile "$LINENO"; then :
17014 libitm_cv_size_t_mangling=t
17015else
17016 libitm_cv_size_t_mangling=x
17017fi
17018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17019
17020fi
17021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17022
17023fi
17024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17025
17026fi
17027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17028
17029fi
17030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17031$as_echo "$libitm_cv_size_t_mangling" >&6; }
17032 if test $libitm_cv_size_t_mangling = x; then
17033 as_fn_error "Unknown underlying type for size_t" "$LINENO" 5
17034 fi
17035
17036cat >>confdefs.h <<_ACEOF
17037#define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17038_ACEOF
17039
17040
17041
17042# Get target configury.
17043. ${srcdir}/configure.tgt
01f3428c
RH
17044if test -n "$UNSUPPORTED"; then
17045 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
17046fi
17047
0a35513e
AH
17048CFLAGS="$save_CFLAGS $XCFLAGS"
17049
17050# Check for __sync_val_compare_and_swap, but only after the target has
17051# had a chance to set XCFLAGS.
17052
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17054$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17055if test "${libitm_cv_have_sync_builtins+set}" = set; then :
17056 $as_echo_n "(cached) " >&6
17057else
17058
17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060/* end confdefs.h. */
17061
17062int
17063main ()
17064{
17065int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17066 ;
17067 return 0;
17068}
17069_ACEOF
17070if ac_fn_c_try_link "$LINENO"; then :
17071 libitm_cv_have_sync_builtins=yes
17072else
17073 libitm_cv_have_sync_builtins=no
17074fi
17075rm -f core conftest.err conftest.$ac_objext \
17076 conftest$ac_exeext conftest.$ac_ext
17077fi
17078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17079$as_echo "$libitm_cv_have_sync_builtins" >&6; }
17080 if test $libitm_cv_have_sync_builtins = yes; then
17081
17082$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17083
17084 fi
17085
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17087$as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17088if test "${libitm_cv_have_64bit_sync_builtins+set}" = set; then :
17089 $as_echo_n "(cached) " >&6
17090else
17091
17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093/* end confdefs.h. */
17094#include <stdint.h>
17095int
17096main ()
17097{
17098uint64_t foo, bar;
17099 bar = __sync_val_compare_and_swap(&foo, 0, 1);
17100 ;
17101 return 0;
17102}
17103_ACEOF
17104if ac_fn_c_try_link "$LINENO"; then :
17105 libitm_cv_have_64bit_sync_builtins=yes
17106else
17107 libitm_cv_have_64bit_sync_builtins=no
17108fi
17109rm -f core conftest.err conftest.$ac_objext \
17110 conftest$ac_exeext conftest.$ac_ext
17111fi
17112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17113$as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17114 if test $libitm_cv_have_64bit_sync_builtins = yes; then
17115
17116$as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17117
17118 fi
17119
430616e7
RH
17120case "${target_cpu}" in
17121i345686 | x86_64)
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17123$as_echo_n "checking if the assembler supports AVX... " >&6; }
17124if test "${libitm_cv_as_avx+set}" = set; then :
17125 $as_echo_n "(cached) " >&6
17126else
17127
17128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129/* end confdefs.h. */
17130
17131int
17132main ()
17133{
17134asm("vzeroupper");
17135 ;
17136 return 0;
17137}
17138_ACEOF
17139if ac_fn_c_try_compile "$LINENO"; then :
17140 libitm_cv_as_avx=yes
17141else
17142 libitm_cv_as_avx=no
17143fi
17144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17145
17146fi
17147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17148$as_echo "$libitm_cv_as_avx" >&6; }
17149 if test x$libitm_cv_as_avx = xyes; then
17150
17151$as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17152
17153 fi
17154 ;;
17155esac
17156
0a35513e
AH
17157# Cleanup and exit.
17158CFLAGS="$save_CFLAGS"
17159cat >confcache <<\_ACEOF
17160# This file is a shell script that caches the results of configure
17161# tests run on this system so they can be shared between configure
17162# scripts and configure runs, see configure's option --config-cache.
17163# It is not useful on other systems. If it contains results you don't
17164# want to keep, you may remove or edit it.
17165#
17166# config.status only pays attention to the cache file if you give it
17167# the --recheck option to rerun configure.
17168#
17169# `ac_cv_env_foo' variables (set or unset) will be overridden when
17170# loading this file, other *unset* `ac_cv_foo' will be assigned the
17171# following values.
17172
17173_ACEOF
17174
17175# The following way of writing the cache mishandles newlines in values,
17176# but we know of no workaround that is simple, portable, and efficient.
17177# So, we kill variables containing newlines.
17178# Ultrix sh set writes to stderr and can't be redirected directly,
17179# and sets the high bit in the cache file unless we assign to the vars.
17180(
17181 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17182 eval ac_val=\$$ac_var
17183 case $ac_val in #(
17184 *${as_nl}*)
17185 case $ac_var in #(
17186 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17187$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17188 esac
17189 case $ac_var in #(
17190 _ | IFS | as_nl) ;; #(
17191 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17192 *) { eval $ac_var=; unset $ac_var;} ;;
17193 esac ;;
17194 esac
17195 done
17196
17197 (set) 2>&1 |
17198 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17199 *${as_nl}ac_space=\ *)
17200 # `set' does not quote correctly, so add quotes: double-quote
17201 # substitution turns \\\\ into \\, and sed turns \\ into \.
17202 sed -n \
17203 "s/'/'\\\\''/g;
17204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17205 ;; #(
17206 *)
17207 # `set' quotes correctly as required by POSIX, so do not add quotes.
17208 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17209 ;;
17210 esac |
17211 sort
17212) |
17213 sed '
17214 /^ac_cv_env_/b end
17215 t clear
17216 :clear
17217 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17218 t end
17219 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17220 :end' >>confcache
17221if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17222 if test -w "$cache_file"; then
17223 test "x$cache_file" != "x/dev/null" &&
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17225$as_echo "$as_me: updating cache $cache_file" >&6;}
17226 cat confcache >$cache_file
17227 else
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17229$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17230 fi
17231fi
17232rm -f confcache
17233
17234# Add -Wall -Werror if we are using GCC.
17235if test "x$GCC" = "xyes"; then
17236 XCFLAGS="$XCFLAGS -Wall -Werror"
17237fi
17238
17239XCFLAGS="$XCFLAGS $XPCFLAGS"
17240
17241
17242
17243
17244
17245if test ${multilib} = yes; then
17246 multilib_arg="--enable-multilib"
17247else
17248 multilib_arg=
17249fi
17250
17251# Set up the set of libraries that we need to link against for libitm.
17252# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
17253# which will force linkage against -lpthread (or equivalent for the system).
17254# That's not 100% ideal, but about the best we can do easily.
17255if test $enable_shared = yes; then
17256 link_itm="-litm %{static: $LIBS}"
17257else
17258 link_itm="-litm $LIBS"
17259fi
17260
17261
17262 if test "$ARCH" = x86; then
17263 ARCH_X86_TRUE=
17264 ARCH_X86_FALSE='#'
17265else
17266 ARCH_X86_TRUE='#'
17267 ARCH_X86_FALSE=
17268fi
17269
d4b17902
RH
17270 if test "$libitm_cv_as_avx" = yes; then
17271 ARCH_X86_AVX_TRUE=
17272 ARCH_X86_AVX_FALSE='#'
17273else
17274 ARCH_X86_AVX_TRUE='#'
17275 ARCH_X86_AVX_FALSE=
17276fi
17277
0a35513e
AH
17278 if test $enable_linux_futex = yes; then
17279 ARCH_FUTEX_TRUE=
17280 ARCH_FUTEX_FALSE='#'
17281else
17282 ARCH_FUTEX_TRUE='#'
17283 ARCH_FUTEX_FALSE=
17284fi
17285
17286
17287ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
17288
17289cat >confcache <<\_ACEOF
17290# This file is a shell script that caches the results of configure
17291# tests run on this system so they can be shared between configure
17292# scripts and configure runs, see configure's option --config-cache.
17293# It is not useful on other systems. If it contains results you don't
17294# want to keep, you may remove or edit it.
17295#
17296# config.status only pays attention to the cache file if you give it
17297# the --recheck option to rerun configure.
17298#
17299# `ac_cv_env_foo' variables (set or unset) will be overridden when
17300# loading this file, other *unset* `ac_cv_foo' will be assigned the
17301# following values.
17302
17303_ACEOF
17304
17305# The following way of writing the cache mishandles newlines in values,
17306# but we know of no workaround that is simple, portable, and efficient.
17307# So, we kill variables containing newlines.
17308# Ultrix sh set writes to stderr and can't be redirected directly,
17309# and sets the high bit in the cache file unless we assign to the vars.
17310(
17311 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17312 eval ac_val=\$$ac_var
17313 case $ac_val in #(
17314 *${as_nl}*)
17315 case $ac_var in #(
17316 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17317$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17318 esac
17319 case $ac_var in #(
17320 _ | IFS | as_nl) ;; #(
17321 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17322 *) { eval $ac_var=; unset $ac_var;} ;;
17323 esac ;;
17324 esac
17325 done
17326
17327 (set) 2>&1 |
17328 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17329 *${as_nl}ac_space=\ *)
17330 # `set' does not quote correctly, so add quotes: double-quote
17331 # substitution turns \\\\ into \\, and sed turns \\ into \.
17332 sed -n \
17333 "s/'/'\\\\''/g;
17334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17335 ;; #(
17336 *)
17337 # `set' quotes correctly as required by POSIX, so do not add quotes.
17338 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17339 ;;
17340 esac |
17341 sort
17342) |
17343 sed '
17344 /^ac_cv_env_/b end
17345 t clear
17346 :clear
17347 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17348 t end
17349 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17350 :end' >>confcache
17351if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17352 if test -w "$cache_file"; then
17353 test "x$cache_file" != "x/dev/null" &&
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17355$as_echo "$as_me: updating cache $cache_file" >&6;}
17356 cat confcache >$cache_file
17357 else
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17359$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17360 fi
17361fi
17362rm -f confcache
17363
17364test "x$prefix" = xNONE && prefix=$ac_default_prefix
17365# Let make expand exec_prefix.
17366test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17367
17368DEFS=-DHAVE_CONFIG_H
17369
17370ac_libobjs=
17371ac_ltlibobjs=
17372for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17373 # 1. Remove the extension, and $U if already installed.
17374 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17375 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17376 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17377 # will be set to the directory where LIBOBJS objects are built.
17378 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17379 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17380done
17381LIBOBJS=$ac_libobjs
17382
17383LTLIBOBJS=$ac_ltlibobjs
17384
17385
17386if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17387 as_fn_error "conditional \"GENINSRC\" was never defined.
17388Usually this means the macro was only invoked conditionally." "$LINENO" 5
17389fi
17390 if test -n "$EXEEXT"; then
17391 am__EXEEXT_TRUE=
17392 am__EXEEXT_FALSE='#'
17393else
17394 am__EXEEXT_TRUE='#'
17395 am__EXEEXT_FALSE=
17396fi
17397
17398if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17399 as_fn_error "conditional \"AMDEP\" was never defined.
17400Usually this means the macro was only invoked conditionally." "$LINENO" 5
17401fi
17402if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17403 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17404Usually this means the macro was only invoked conditionally." "$LINENO" 5
17405fi
17406if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17407 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17408Usually this means the macro was only invoked conditionally." "$LINENO" 5
17409fi
17410if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17411 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
17412Usually this means the macro was only invoked conditionally." "$LINENO" 5
17413fi
17414if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17415 as_fn_error "conditional \"BUILD_INFO\" was never defined.
17416Usually this means the macro was only invoked conditionally." "$LINENO" 5
17417fi
17418if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17419 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17420Usually this means the macro was only invoked conditionally." "$LINENO" 5
17421fi
17422
17423if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
17424 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
17425Usually this means the macro was only invoked conditionally." "$LINENO" 5
17426fi
17427if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
17428 as_fn_error "conditional \"ARCH_X86\" was never defined.
17429Usually this means the macro was only invoked conditionally." "$LINENO" 5
17430fi
d4b17902
RH
17431if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
17432 as_fn_error "conditional \"ARCH_X86_AVX\" was never defined.
17433Usually this means the macro was only invoked conditionally." "$LINENO" 5
17434fi
0a35513e
AH
17435if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
17436 as_fn_error "conditional \"ARCH_FUTEX\" was never defined.
17437Usually this means the macro was only invoked conditionally." "$LINENO" 5
17438fi
17439
17440: ${CONFIG_STATUS=./config.status}
17441ac_write_fail=0
17442ac_clean_files_save=$ac_clean_files
17443ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17444{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17445$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17446as_write_fail=0
17447cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17448#! $SHELL
17449# Generated by $as_me.
17450# Run this file to recreate the current configuration.
17451# Compiler output produced by configure, useful for debugging
17452# configure, is in config.log if it exists.
17453
17454debug=false
17455ac_cs_recheck=false
17456ac_cs_silent=false
17457
17458SHELL=\${CONFIG_SHELL-$SHELL}
17459export SHELL
17460_ASEOF
17461cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17462## -------------------- ##
17463## M4sh Initialization. ##
17464## -------------------- ##
17465
17466# Be more Bourne compatible
17467DUALCASE=1; export DUALCASE # for MKS sh
17468if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17469 emulate sh
17470 NULLCMD=:
17471 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17472 # is contrary to our usage. Disable this feature.
17473 alias -g '${1+"$@"}'='"$@"'
17474 setopt NO_GLOB_SUBST
17475else
17476 case `(set -o) 2>/dev/null` in #(
17477 *posix*) :
17478 set -o posix ;; #(
17479 *) :
17480 ;;
17481esac
17482fi
17483
17484
17485as_nl='
17486'
17487export as_nl
17488# Printing a long string crashes Solaris 7 /usr/bin/printf.
17489as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17490as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17491as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17492# Prefer a ksh shell builtin over an external printf program on Solaris,
17493# but without wasting forks for bash or zsh.
17494if test -z "$BASH_VERSION$ZSH_VERSION" \
17495 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17496 as_echo='print -r --'
17497 as_echo_n='print -rn --'
17498elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17499 as_echo='printf %s\n'
17500 as_echo_n='printf %s'
17501else
17502 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17503 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17504 as_echo_n='/usr/ucb/echo -n'
17505 else
17506 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17507 as_echo_n_body='eval
17508 arg=$1;
17509 case $arg in #(
17510 *"$as_nl"*)
17511 expr "X$arg" : "X\\(.*\\)$as_nl";
17512 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17513 esac;
17514 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17515 '
17516 export as_echo_n_body
17517 as_echo_n='sh -c $as_echo_n_body as_echo'
17518 fi
17519 export as_echo_body
17520 as_echo='sh -c $as_echo_body as_echo'
17521fi
17522
17523# The user is always right.
17524if test "${PATH_SEPARATOR+set}" != set; then
17525 PATH_SEPARATOR=:
17526 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17527 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17528 PATH_SEPARATOR=';'
17529 }
17530fi
17531
17532
17533# IFS
17534# We need space, tab and new line, in precisely that order. Quoting is
17535# there to prevent editors from complaining about space-tab.
17536# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17537# splitting by setting IFS to empty value.)
17538IFS=" "" $as_nl"
17539
17540# Find who we are. Look in the path if we contain no directory separator.
17541case $0 in #((
17542 *[\\/]* ) as_myself=$0 ;;
17543 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17544for as_dir in $PATH
17545do
17546 IFS=$as_save_IFS
17547 test -z "$as_dir" && as_dir=.
17548 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17549 done
17550IFS=$as_save_IFS
17551
17552 ;;
17553esac
17554# We did not find ourselves, most probably we were run as `sh COMMAND'
17555# in which case we are not to be found in the path.
17556if test "x$as_myself" = x; then
17557 as_myself=$0
17558fi
17559if test ! -f "$as_myself"; then
17560 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17561 exit 1
17562fi
17563
17564# Unset variables that we do not need and which cause bugs (e.g. in
17565# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17566# suppresses any "Segmentation fault" message there. '((' could
17567# trigger a bug in pdksh 5.2.14.
17568for as_var in BASH_ENV ENV MAIL MAILPATH
17569do eval test x\${$as_var+set} = xset \
17570 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17571done
17572PS1='$ '
17573PS2='> '
17574PS4='+ '
17575
17576# NLS nuisances.
17577LC_ALL=C
17578export LC_ALL
17579LANGUAGE=C
17580export LANGUAGE
17581
17582# CDPATH.
17583(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17584
17585
17586# as_fn_error ERROR [LINENO LOG_FD]
17587# ---------------------------------
17588# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17589# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17590# script with status $?, using 1 if that was 0.
17591as_fn_error ()
17592{
17593 as_status=$?; test $as_status -eq 0 && as_status=1
17594 if test "$3"; then
17595 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17596 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17597 fi
17598 $as_echo "$as_me: error: $1" >&2
17599 as_fn_exit $as_status
17600} # as_fn_error
17601
17602
17603# as_fn_set_status STATUS
17604# -----------------------
17605# Set $? to STATUS, without forking.
17606as_fn_set_status ()
17607{
17608 return $1
17609} # as_fn_set_status
17610
17611# as_fn_exit STATUS
17612# -----------------
17613# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17614as_fn_exit ()
17615{
17616 set +e
17617 as_fn_set_status $1
17618 exit $1
17619} # as_fn_exit
17620
17621# as_fn_unset VAR
17622# ---------------
17623# Portably unset VAR.
17624as_fn_unset ()
17625{
17626 { eval $1=; unset $1;}
17627}
17628as_unset=as_fn_unset
17629# as_fn_append VAR VALUE
17630# ----------------------
17631# Append the text in VALUE to the end of the definition contained in VAR. Take
17632# advantage of any shell optimizations that allow amortized linear growth over
17633# repeated appends, instead of the typical quadratic growth present in naive
17634# implementations.
17635if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17636 eval 'as_fn_append ()
17637 {
17638 eval $1+=\$2
17639 }'
17640else
17641 as_fn_append ()
17642 {
17643 eval $1=\$$1\$2
17644 }
17645fi # as_fn_append
17646
17647# as_fn_arith ARG...
17648# ------------------
17649# Perform arithmetic evaluation on the ARGs, and store the result in the
17650# global $as_val. Take advantage of shells that can avoid forks. The arguments
17651# must be portable across $(()) and expr.
17652if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17653 eval 'as_fn_arith ()
17654 {
17655 as_val=$(( $* ))
17656 }'
17657else
17658 as_fn_arith ()
17659 {
17660 as_val=`expr "$@" || test $? -eq 1`
17661 }
17662fi # as_fn_arith
17663
17664
17665if expr a : '\(a\)' >/dev/null 2>&1 &&
17666 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17667 as_expr=expr
17668else
17669 as_expr=false
17670fi
17671
17672if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17673 as_basename=basename
17674else
17675 as_basename=false
17676fi
17677
17678if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17679 as_dirname=dirname
17680else
17681 as_dirname=false
17682fi
17683
17684as_me=`$as_basename -- "$0" ||
17685$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17686 X"$0" : 'X\(//\)$' \| \
17687 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17688$as_echo X/"$0" |
17689 sed '/^.*\/\([^/][^/]*\)\/*$/{
17690 s//\1/
17691 q
17692 }
17693 /^X\/\(\/\/\)$/{
17694 s//\1/
17695 q
17696 }
17697 /^X\/\(\/\).*/{
17698 s//\1/
17699 q
17700 }
17701 s/.*/./; q'`
17702
17703# Avoid depending upon Character Ranges.
17704as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17705as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17706as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17707as_cr_digits='0123456789'
17708as_cr_alnum=$as_cr_Letters$as_cr_digits
17709
17710ECHO_C= ECHO_N= ECHO_T=
17711case `echo -n x` in #(((((
17712-n*)
17713 case `echo 'xy\c'` in
17714 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17715 xy) ECHO_C='\c';;
17716 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17717 ECHO_T=' ';;
17718 esac;;
17719*)
17720 ECHO_N='-n';;
17721esac
17722
17723rm -f conf$$ conf$$.exe conf$$.file
17724if test -d conf$$.dir; then
17725 rm -f conf$$.dir/conf$$.file
17726else
17727 rm -f conf$$.dir
17728 mkdir conf$$.dir 2>/dev/null
17729fi
17730if (echo >conf$$.file) 2>/dev/null; then
17731 if ln -s conf$$.file conf$$ 2>/dev/null; then
17732 as_ln_s='ln -s'
17733 # ... but there are two gotchas:
17734 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17735 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17736 # In both cases, we have to default to `cp -p'.
17737 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17738 as_ln_s='cp -p'
17739 elif ln conf$$.file conf$$ 2>/dev/null; then
17740 as_ln_s=ln
17741 else
17742 as_ln_s='cp -p'
17743 fi
17744else
17745 as_ln_s='cp -p'
17746fi
17747rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17748rmdir conf$$.dir 2>/dev/null
17749
17750
17751# as_fn_mkdir_p
17752# -------------
17753# Create "$as_dir" as a directory, including parents if necessary.
17754as_fn_mkdir_p ()
17755{
17756
17757 case $as_dir in #(
17758 -*) as_dir=./$as_dir;;
17759 esac
17760 test -d "$as_dir" || eval $as_mkdir_p || {
17761 as_dirs=
17762 while :; do
17763 case $as_dir in #(
17764 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17765 *) as_qdir=$as_dir;;
17766 esac
17767 as_dirs="'$as_qdir' $as_dirs"
17768 as_dir=`$as_dirname -- "$as_dir" ||
17769$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17770 X"$as_dir" : 'X\(//\)[^/]' \| \
17771 X"$as_dir" : 'X\(//\)$' \| \
17772 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17773$as_echo X"$as_dir" |
17774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17775 s//\1/
17776 q
17777 }
17778 /^X\(\/\/\)[^/].*/{
17779 s//\1/
17780 q
17781 }
17782 /^X\(\/\/\)$/{
17783 s//\1/
17784 q
17785 }
17786 /^X\(\/\).*/{
17787 s//\1/
17788 q
17789 }
17790 s/.*/./; q'`
17791 test -d "$as_dir" && break
17792 done
17793 test -z "$as_dirs" || eval "mkdir $as_dirs"
17794 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17795
17796
17797} # as_fn_mkdir_p
17798if mkdir -p . 2>/dev/null; then
17799 as_mkdir_p='mkdir -p "$as_dir"'
17800else
17801 test -d ./-p && rmdir ./-p
17802 as_mkdir_p=false
17803fi
17804
17805if test -x / >/dev/null 2>&1; then
17806 as_test_x='test -x'
17807else
17808 if ls -dL / >/dev/null 2>&1; then
17809 as_ls_L_option=L
17810 else
17811 as_ls_L_option=
17812 fi
17813 as_test_x='
17814 eval sh -c '\''
17815 if test -d "$1"; then
17816 test -d "$1/.";
17817 else
17818 case $1 in #(
17819 -*)set "./$1";;
17820 esac;
17821 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17822 ???[sx]*):;;*)false;;esac;fi
17823 '\'' sh
17824 '
17825fi
17826as_executable_p=$as_test_x
17827
17828# Sed expression to map a string onto a valid CPP name.
17829as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17830
17831# Sed expression to map a string onto a valid variable name.
17832as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17833
17834
17835exec 6>&1
17836## ----------------------------------- ##
17837## Main body of $CONFIG_STATUS script. ##
17838## ----------------------------------- ##
17839_ASEOF
17840test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17841
17842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17843# Save the log message, to keep $0 and so on meaningful, and to
17844# report actual input values of CONFIG_FILES etc. instead of their
17845# values after options handling.
17846ac_log="
17847This file was extended by GNU TM Runtime Library $as_me 1.0, which was
17848generated by GNU Autoconf 2.64. Invocation command line was
17849
17850 CONFIG_FILES = $CONFIG_FILES
17851 CONFIG_HEADERS = $CONFIG_HEADERS
17852 CONFIG_LINKS = $CONFIG_LINKS
17853 CONFIG_COMMANDS = $CONFIG_COMMANDS
17854 $ $0 $@
17855
17856on `(hostname || uname -n) 2>/dev/null | sed 1q`
17857"
17858
17859_ACEOF
17860
17861case $ac_config_files in *"
17862"*) set x $ac_config_files; shift; ac_config_files=$*;;
17863esac
17864
17865case $ac_config_headers in *"
17866"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17867esac
17868
17869
17870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17871# Files that config.status was made for.
17872config_files="$ac_config_files"
17873config_headers="$ac_config_headers"
17874config_commands="$ac_config_commands"
17875
17876_ACEOF
17877
17878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17879ac_cs_usage="\
17880\`$as_me' instantiates files and other configuration actions
17881from templates according to the current configuration. Unless the files
17882and actions are specified as TAGs, all are instantiated by default.
17883
17884Usage: $0 [OPTION]... [TAG]...
17885
17886 -h, --help print this help, then exit
17887 -V, --version print version number and configuration settings, then exit
17888 -q, --quiet, --silent
17889 do not print progress messages
17890 -d, --debug don't remove temporary files
17891 --recheck update $as_me by reconfiguring in the same conditions
17892 --file=FILE[:TEMPLATE]
17893 instantiate the configuration file FILE
17894 --header=FILE[:TEMPLATE]
17895 instantiate the configuration header FILE
17896
17897Configuration files:
17898$config_files
17899
17900Configuration headers:
17901$config_headers
17902
17903Configuration commands:
17904$config_commands
17905
17906Report bugs to the package provider.
17907GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
17908General help using GNU software: <http://www.gnu.org/gethelp/>."
17909
17910_ACEOF
17911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17912ac_cs_version="\\
17913GNU TM Runtime Library config.status 1.0
17914configured by $0, generated by GNU Autoconf 2.64,
17915 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17916
17917Copyright (C) 2009 Free Software Foundation, Inc.
17918This config.status script is free software; the Free Software Foundation
17919gives unlimited permission to copy, distribute and modify it."
17920
17921ac_pwd='$ac_pwd'
17922srcdir='$srcdir'
17923INSTALL='$INSTALL'
17924MKDIR_P='$MKDIR_P'
17925AWK='$AWK'
17926test -n "\$AWK" || AWK=awk
17927_ACEOF
17928
17929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17930# The default lists apply if the user does not specify any file.
17931ac_need_defaults=:
17932while test $# != 0
17933do
17934 case $1 in
17935 --*=*)
17936 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17937 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17938 ac_shift=:
17939 ;;
17940 *)
17941 ac_option=$1
17942 ac_optarg=$2
17943 ac_shift=shift
17944 ;;
17945 esac
17946
17947 case $ac_option in
17948 # Handling of the options.
17949 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17950 ac_cs_recheck=: ;;
17951 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17952 $as_echo "$ac_cs_version"; exit ;;
17953 --debug | --debu | --deb | --de | --d | -d )
17954 debug=: ;;
17955 --file | --fil | --fi | --f )
17956 $ac_shift
17957 case $ac_optarg in
17958 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17959 esac
17960 as_fn_append CONFIG_FILES " '$ac_optarg'"
17961 ac_need_defaults=false;;
17962 --header | --heade | --head | --hea )
17963 $ac_shift
17964 case $ac_optarg in
17965 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17966 esac
17967 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17968 ac_need_defaults=false;;
17969 --he | --h)
17970 # Conflict between --help and --header
17971 as_fn_error "ambiguous option: \`$1'
17972Try \`$0 --help' for more information.";;
17973 --help | --hel | -h )
17974 $as_echo "$ac_cs_usage"; exit ;;
17975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17976 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17977 ac_cs_silent=: ;;
17978
17979 # This is an error.
17980 -*) as_fn_error "unrecognized option: \`$1'
17981Try \`$0 --help' for more information." ;;
17982
17983 *) as_fn_append ac_config_targets " $1"
17984 ac_need_defaults=false ;;
17985
17986 esac
17987 shift
17988done
17989
17990ac_configure_extra_args=
17991
17992if $ac_cs_silent; then
17993 exec 6>/dev/null
17994 ac_configure_extra_args="$ac_configure_extra_args --silent"
17995fi
17996
17997_ACEOF
17998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17999if \$ac_cs_recheck; then
18000 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18001 shift
18002 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18003 CONFIG_SHELL='$SHELL'
18004 export CONFIG_SHELL
18005 exec "\$@"
18006fi
18007
18008_ACEOF
18009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18010exec 5>>config.log
18011{
18012 echo
18013 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18014## Running $as_me. ##
18015_ASBOX
18016 $as_echo "$ac_log"
18017} >&5
18018
18019_ACEOF
18020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18021#
18022# INIT-COMMANDS
18023#
18024
18025srcdir="$srcdir"
18026host="$host"
18027target="$target"
18028with_multisubdir="$with_multisubdir"
18029with_multisrctop="$with_multisrctop"
18030with_target_subdir="$with_target_subdir"
18031ac_configure_args="${multilib_arg} ${ac_configure_args}"
18032multi_basedir="$multi_basedir"
18033CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18034CC="$CC"
18035CXX="$CXX"
18036GFORTRAN="$GFORTRAN"
18037GCJ="$GCJ"
18038AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18039
18040
18041# The HP-UX ksh and POSIX shell print the target directory to stdout
18042# if CDPATH is set.
18043(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18044
18045sed_quote_subst='$sed_quote_subst'
18046double_quote_subst='$double_quote_subst'
18047delay_variable_subst='$delay_variable_subst'
18048macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18049macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18050enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18051enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18052pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18053enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18054SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18055ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18056host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18057host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18058host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18059build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18060build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18061build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18062SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18063Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18064GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18065EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18066FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18067LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18068NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18069LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18070max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18071ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18072exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18073lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18074lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18075lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18076reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18077reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18078OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18079deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18080file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18081AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18082AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18083STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18084RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18085old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18086old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18087old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18088lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18089CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18090CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18091compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18092GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18093lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18094lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18095lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18096lt_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"`'
18097objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18098MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18099lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18100lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18101lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18102lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18103lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18104need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18105DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18106NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18107LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18108OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18109OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18110libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18111shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18112extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18113archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18114enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18115export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18116whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18117compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18118old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18119old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18120archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18121archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18122module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18123module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18124with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18125allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18126no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18127hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18128hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18129hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18130hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18131hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18132hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18133hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18134hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18135inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18136link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18137fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18138always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18139export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18140exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18141include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18142prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18143file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18144variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18145need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18146need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18147version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18148runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18149shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18150shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18151libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18152library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18153soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18154install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18155postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18156postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18157finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18158finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18159hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18160sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18161sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18162hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18163enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18164enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18165enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18166old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18167striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18168compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18169predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18170postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18171predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18172postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18173compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18174LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18175reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18176reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18177old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18178compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18179GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18180lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18181lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18182lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18183lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18184lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18185archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18186enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18187export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18188whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18189compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18190old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18191old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18192archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18193archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18194module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18195module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18196with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18197allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18198no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18199hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18200hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18201hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18202hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18203hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18204hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18205hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18206hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18207inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18208link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18209fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18210always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18211export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18212exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18213include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18214prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18215file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18216hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18217compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18218predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18219postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18220predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18221postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18222compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18223
18224LTCC='$LTCC'
18225LTCFLAGS='$LTCFLAGS'
18226compiler='$compiler_DEFAULT'
18227
18228# A function that is used when there is no print builtin or printf.
18229func_fallback_echo ()
18230{
18231 eval 'cat <<_LTECHO_EOF
18232\$1
18233_LTECHO_EOF'
18234}
18235
18236# Quote evaled strings.
18237for var in SHELL \
18238ECHO \
18239SED \
18240GREP \
18241EGREP \
18242FGREP \
18243LD \
18244NM \
18245LN_S \
18246lt_SP2NL \
18247lt_NL2SP \
18248reload_flag \
18249OBJDUMP \
18250deplibs_check_method \
18251file_magic_cmd \
18252AR \
18253AR_FLAGS \
18254STRIP \
18255RANLIB \
18256CC \
18257CFLAGS \
18258compiler \
18259lt_cv_sys_global_symbol_pipe \
18260lt_cv_sys_global_symbol_to_cdecl \
18261lt_cv_sys_global_symbol_to_c_name_address \
18262lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18263lt_prog_compiler_no_builtin_flag \
18264lt_prog_compiler_wl \
18265lt_prog_compiler_pic \
18266lt_prog_compiler_static \
18267lt_cv_prog_compiler_c_o \
18268need_locks \
18269DSYMUTIL \
18270NMEDIT \
18271LIPO \
18272OTOOL \
18273OTOOL64 \
18274shrext_cmds \
18275export_dynamic_flag_spec \
18276whole_archive_flag_spec \
18277compiler_needs_object \
18278with_gnu_ld \
18279allow_undefined_flag \
18280no_undefined_flag \
18281hardcode_libdir_flag_spec \
18282hardcode_libdir_flag_spec_ld \
18283hardcode_libdir_separator \
18284fix_srcfile_path \
18285exclude_expsyms \
18286include_expsyms \
18287file_list_spec \
18288variables_saved_for_relink \
18289libname_spec \
18290library_names_spec \
18291soname_spec \
18292install_override_mode \
18293finish_eval \
18294old_striplib \
18295striplib \
18296compiler_lib_search_dirs \
18297predep_objects \
18298postdep_objects \
18299predeps \
18300postdeps \
18301compiler_lib_search_path \
18302LD_CXX \
18303reload_flag_CXX \
18304compiler_CXX \
18305lt_prog_compiler_no_builtin_flag_CXX \
18306lt_prog_compiler_wl_CXX \
18307lt_prog_compiler_pic_CXX \
18308lt_prog_compiler_static_CXX \
18309lt_cv_prog_compiler_c_o_CXX \
18310export_dynamic_flag_spec_CXX \
18311whole_archive_flag_spec_CXX \
18312compiler_needs_object_CXX \
18313with_gnu_ld_CXX \
18314allow_undefined_flag_CXX \
18315no_undefined_flag_CXX \
18316hardcode_libdir_flag_spec_CXX \
18317hardcode_libdir_flag_spec_ld_CXX \
18318hardcode_libdir_separator_CXX \
18319fix_srcfile_path_CXX \
18320exclude_expsyms_CXX \
18321include_expsyms_CXX \
18322file_list_spec_CXX \
18323compiler_lib_search_dirs_CXX \
18324predep_objects_CXX \
18325postdep_objects_CXX \
18326predeps_CXX \
18327postdeps_CXX \
18328compiler_lib_search_path_CXX; do
18329 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18330 *[\\\\\\\`\\"\\\$]*)
18331 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18332 ;;
18333 *)
18334 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18335 ;;
18336 esac
18337done
18338
18339# Double-quote double-evaled strings.
18340for var in reload_cmds \
18341old_postinstall_cmds \
18342old_postuninstall_cmds \
18343old_archive_cmds \
18344extract_expsyms_cmds \
18345old_archive_from_new_cmds \
18346old_archive_from_expsyms_cmds \
18347archive_cmds \
18348archive_expsym_cmds \
18349module_cmds \
18350module_expsym_cmds \
18351export_symbols_cmds \
18352prelink_cmds \
18353postinstall_cmds \
18354postuninstall_cmds \
18355finish_cmds \
18356sys_lib_search_path_spec \
18357sys_lib_dlsearch_path_spec \
18358reload_cmds_CXX \
18359old_archive_cmds_CXX \
18360old_archive_from_new_cmds_CXX \
18361old_archive_from_expsyms_cmds_CXX \
18362archive_cmds_CXX \
18363archive_expsym_cmds_CXX \
18364module_cmds_CXX \
18365module_expsym_cmds_CXX \
18366export_symbols_cmds_CXX \
18367prelink_cmds_CXX; do
18368 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18369 *[\\\\\\\`\\"\\\$]*)
18370 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18371 ;;
18372 *)
18373 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18374 ;;
18375 esac
18376done
18377
18378ac_aux_dir='$ac_aux_dir'
18379xsi_shell='$xsi_shell'
18380lt_shell_append='$lt_shell_append'
18381
18382# See if we are running on zsh, and set the options which allow our
18383# commands through without removal of \ escapes INIT.
18384if test -n "\${ZSH_VERSION+set}" ; then
18385 setopt NO_GLOB_SUBST
18386fi
18387
18388
18389 PACKAGE='$PACKAGE'
18390 VERSION='$VERSION'
18391 TIMESTAMP='$TIMESTAMP'
18392 RM='$RM'
18393 ofile='$ofile'
18394
18395
18396
18397
18398
18399
18400GCC="$GCC"
18401CC="$CC"
18402acx_cv_header_stdint="$acx_cv_header_stdint"
18403acx_cv_type_int8_t="$acx_cv_type_int8_t"
18404acx_cv_type_int16_t="$acx_cv_type_int16_t"
18405acx_cv_type_int32_t="$acx_cv_type_int32_t"
18406acx_cv_type_int64_t="$acx_cv_type_int64_t"
18407acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18408ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18409ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18410ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18411ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18412ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18413ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18414ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18415ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18416
18417
18418_ACEOF
18419
18420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18421
18422# Handling of arguments.
18423for ac_config_target in $ac_config_targets
18424do
18425 case $ac_config_target in
18426 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18427 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18428 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18429 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18430 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18431 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18432 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18433 "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
18434
18435 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18436 esac
18437done
18438
18439
18440# If the user did not use the arguments to specify the items to instantiate,
18441# then the envvar interface is used. Set only those that are not.
18442# We use the long form for the default assignment because of an extremely
18443# bizarre bug on SunOS 4.1.3.
18444if $ac_need_defaults; then
18445 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18446 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18447 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18448fi
18449
18450# Have a temporary directory for convenience. Make it in the build tree
18451# simply because there is no reason against having it here, and in addition,
18452# creating and moving files from /tmp can sometimes cause problems.
18453# Hook for its removal unless debugging.
18454# Note that there is a small window in which the directory will not be cleaned:
18455# after its creation but before its name has been assigned to `$tmp'.
18456$debug ||
18457{
18458 tmp=
18459 trap 'exit_status=$?
18460 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18461' 0
18462 trap 'as_fn_exit 1' 1 2 13 15
18463}
18464# Create a (secure) tmp directory for tmp files.
18465
18466{
18467 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18468 test -n "$tmp" && test -d "$tmp"
18469} ||
18470{
18471 tmp=./conf$$-$RANDOM
18472 (umask 077 && mkdir "$tmp")
18473} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18474
18475# Set up the scripts for CONFIG_FILES section.
18476# No need to generate them if there are no CONFIG_FILES.
18477# This happens for instance with `./config.status config.h'.
18478if test -n "$CONFIG_FILES"; then
18479
18480
18481ac_cr=`echo X | tr X '\015'`
18482# On cygwin, bash can eat \r inside `` if the user requested igncr.
18483# But we know of no other shell where ac_cr would be empty at this
18484# point, so we can use a bashism as a fallback.
18485if test "x$ac_cr" = x; then
18486 eval ac_cr=\$\'\\r\'
18487fi
18488ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18489if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18490 ac_cs_awk_cr='\r'
18491else
18492 ac_cs_awk_cr=$ac_cr
18493fi
18494
18495echo 'BEGIN {' >"$tmp/subs1.awk" &&
18496_ACEOF
18497
18498
18499{
18500 echo "cat >conf$$subs.awk <<_ACEOF" &&
18501 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18502 echo "_ACEOF"
18503} >conf$$subs.sh ||
18504 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18505ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18506ac_delim='%!_!# '
18507for ac_last_try in false false false false false :; do
18508 . ./conf$$subs.sh ||
18509 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18510
18511 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18512 if test $ac_delim_n = $ac_delim_num; then
18513 break
18514 elif $ac_last_try; then
18515 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18516 else
18517 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18518 fi
18519done
18520rm -f conf$$subs.sh
18521
18522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18523cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18524_ACEOF
18525sed -n '
18526h
18527s/^/S["/; s/!.*/"]=/
18528p
18529g
18530s/^[^!]*!//
18531:repl
18532t repl
18533s/'"$ac_delim"'$//
18534t delim
18535:nl
18536h
18537s/\(.\{148\}\).*/\1/
18538t more1
18539s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18540p
18541n
18542b repl
18543:more1
18544s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18545p
18546g
18547s/.\{148\}//
18548t nl
18549:delim
18550h
18551s/\(.\{148\}\).*/\1/
18552t more2
18553s/["\\]/\\&/g; s/^/"/; s/$/"/
18554p
18555b
18556:more2
18557s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18558p
18559g
18560s/.\{148\}//
18561t delim
18562' <conf$$subs.awk | sed '
18563/^[^""]/{
18564 N
18565 s/\n//
18566}
18567' >>$CONFIG_STATUS || ac_write_fail=1
18568rm -f conf$$subs.awk
18569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18570_ACAWK
18571cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18572 for (key in S) S_is_set[key] = 1
18573 FS = "\a"
18574
18575}
18576{
18577 line = $ 0
18578 nfields = split(line, field, "@")
18579 substed = 0
18580 len = length(field[1])
18581 for (i = 2; i < nfields; i++) {
18582 key = field[i]
18583 keylen = length(key)
18584 if (S_is_set[key]) {
18585 value = S[key]
18586 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18587 len += length(value) + length(field[++i])
18588 substed = 1
18589 } else
18590 len += 1 + keylen
18591 }
18592
18593 print line
18594}
18595
18596_ACAWK
18597_ACEOF
18598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18599if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18600 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18601else
18602 cat
18603fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18604 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18605_ACEOF
18606
18607# VPATH may cause trouble with some makes, so we remove $(srcdir),
18608# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18609# trailing colons and then remove the whole line if VPATH becomes empty
18610# (actually we leave an empty line to preserve line numbers).
18611if test "x$srcdir" = x.; then
18612 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18613s/:*\$(srcdir):*/:/
18614s/:*\${srcdir}:*/:/
18615s/:*@srcdir@:*/:/
18616s/^\([^=]*=[ ]*\):*/\1/
18617s/:*$//
18618s/^[^=]*=[ ]*$//
18619}'
18620fi
18621
18622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18623fi # test -n "$CONFIG_FILES"
18624
18625# Set up the scripts for CONFIG_HEADERS section.
18626# No need to generate them if there are no CONFIG_HEADERS.
18627# This happens for instance with `./config.status Makefile'.
18628if test -n "$CONFIG_HEADERS"; then
18629cat >"$tmp/defines.awk" <<\_ACAWK ||
18630BEGIN {
18631_ACEOF
18632
18633# Transform confdefs.h into an awk script `defines.awk', embedded as
18634# here-document in config.status, that substitutes the proper values into
18635# config.h.in to produce config.h.
18636
18637# Create a delimiter string that does not exist in confdefs.h, to ease
18638# handling of long lines.
18639ac_delim='%!_!# '
18640for ac_last_try in false false :; do
18641 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18642 if test -z "$ac_t"; then
18643 break
18644 elif $ac_last_try; then
18645 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18646 else
18647 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18648 fi
18649done
18650
18651# For the awk script, D is an array of macro values keyed by name,
18652# likewise P contains macro parameters if any. Preserve backslash
18653# newline sequences.
18654
18655ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18656sed -n '
18657s/.\{148\}/&'"$ac_delim"'/g
18658t rset
18659:rset
18660s/^[ ]*#[ ]*define[ ][ ]*/ /
18661t def
18662d
18663:def
18664s/\\$//
18665t bsnl
18666s/["\\]/\\&/g
18667s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18668D["\1"]=" \3"/p
18669s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18670d
18671:bsnl
18672s/["\\]/\\&/g
18673s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18674D["\1"]=" \3\\\\\\n"\\/p
18675t cont
18676s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18677t cont
18678d
18679:cont
18680n
18681s/.\{148\}/&'"$ac_delim"'/g
18682t clear
18683:clear
18684s/\\$//
18685t bsnlc
18686s/["\\]/\\&/g; s/^/"/; s/$/"/p
18687d
18688:bsnlc
18689s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18690b cont
18691' <confdefs.h | sed '
18692s/'"$ac_delim"'/"\\\
18693"/g' >>$CONFIG_STATUS || ac_write_fail=1
18694
18695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18696 for (key in D) D_is_set[key] = 1
18697 FS = "\a"
18698}
18699/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18700 line = \$ 0
18701 split(line, arg, " ")
18702 if (arg[1] == "#") {
18703 defundef = arg[2]
18704 mac1 = arg[3]
18705 } else {
18706 defundef = substr(arg[1], 2)
18707 mac1 = arg[2]
18708 }
18709 split(mac1, mac2, "(") #)
18710 macro = mac2[1]
18711 prefix = substr(line, 1, index(line, defundef) - 1)
18712 if (D_is_set[macro]) {
18713 # Preserve the white space surrounding the "#".
18714 print prefix "define", macro P[macro] D[macro]
18715 next
18716 } else {
18717 # Replace #undef with comments. This is necessary, for example,
18718 # in the case of _POSIX_SOURCE, which is predefined and required
18719 # on some systems where configure will not decide to define it.
18720 if (defundef == "undef") {
18721 print "/*", prefix defundef, macro, "*/"
18722 next
18723 }
18724 }
18725}
18726{ print }
18727_ACAWK
18728_ACEOF
18729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18730 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18731fi # test -n "$CONFIG_HEADERS"
18732
18733
18734eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18735shift
18736for ac_tag
18737do
18738 case $ac_tag in
18739 :[FHLC]) ac_mode=$ac_tag; continue;;
18740 esac
18741 case $ac_mode$ac_tag in
18742 :[FHL]*:*);;
18743 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18744 :[FH]-) ac_tag=-:-;;
18745 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18746 esac
18747 ac_save_IFS=$IFS
18748 IFS=:
18749 set x $ac_tag
18750 IFS=$ac_save_IFS
18751 shift
18752 ac_file=$1
18753 shift
18754
18755 case $ac_mode in
18756 :L) ac_source=$1;;
18757 :[FH])
18758 ac_file_inputs=
18759 for ac_f
18760 do
18761 case $ac_f in
18762 -) ac_f="$tmp/stdin";;
18763 *) # Look for the file first in the build tree, then in the source tree
18764 # (if the path is not absolute). The absolute path cannot be DOS-style,
18765 # because $ac_f cannot contain `:'.
18766 test -f "$ac_f" ||
18767 case $ac_f in
18768 [\\/$]*) false;;
18769 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18770 esac ||
18771 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18772 esac
18773 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18774 as_fn_append ac_file_inputs " '$ac_f'"
18775 done
18776
18777 # Let's still pretend it is `configure' which instantiates (i.e., don't
18778 # use $as_me), people would be surprised to read:
18779 # /* config.h. Generated by config.status. */
18780 configure_input='Generated from '`
18781 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18782 `' by configure.'
18783 if test x"$ac_file" != x-; then
18784 configure_input="$ac_file. $configure_input"
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18786$as_echo "$as_me: creating $ac_file" >&6;}
18787 fi
18788 # Neutralize special characters interpreted by sed in replacement strings.
18789 case $configure_input in #(
18790 *\&* | *\|* | *\\* )
18791 ac_sed_conf_input=`$as_echo "$configure_input" |
18792 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18793 *) ac_sed_conf_input=$configure_input;;
18794 esac
18795
18796 case $ac_tag in
18797 *:-:* | *:-) cat >"$tmp/stdin" \
18798 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18799 esac
18800 ;;
18801 esac
18802
18803 ac_dir=`$as_dirname -- "$ac_file" ||
18804$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18805 X"$ac_file" : 'X\(//\)[^/]' \| \
18806 X"$ac_file" : 'X\(//\)$' \| \
18807 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18808$as_echo X"$ac_file" |
18809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18810 s//\1/
18811 q
18812 }
18813 /^X\(\/\/\)[^/].*/{
18814 s//\1/
18815 q
18816 }
18817 /^X\(\/\/\)$/{
18818 s//\1/
18819 q
18820 }
18821 /^X\(\/\).*/{
18822 s//\1/
18823 q
18824 }
18825 s/.*/./; q'`
18826 as_dir="$ac_dir"; as_fn_mkdir_p
18827 ac_builddir=.
18828
18829case "$ac_dir" in
18830.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18831*)
18832 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18833 # A ".." for each directory in $ac_dir_suffix.
18834 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18835 case $ac_top_builddir_sub in
18836 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18837 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18838 esac ;;
18839esac
18840ac_abs_top_builddir=$ac_pwd
18841ac_abs_builddir=$ac_pwd$ac_dir_suffix
18842# for backward compatibility:
18843ac_top_builddir=$ac_top_build_prefix
18844
18845case $srcdir in
18846 .) # We are building in place.
18847 ac_srcdir=.
18848 ac_top_srcdir=$ac_top_builddir_sub
18849 ac_abs_top_srcdir=$ac_pwd ;;
18850 [\\/]* | ?:[\\/]* ) # Absolute name.
18851 ac_srcdir=$srcdir$ac_dir_suffix;
18852 ac_top_srcdir=$srcdir
18853 ac_abs_top_srcdir=$srcdir ;;
18854 *) # Relative name.
18855 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18856 ac_top_srcdir=$ac_top_build_prefix$srcdir
18857 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18858esac
18859ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18860
18861
18862 case $ac_mode in
18863 :F)
18864 #
18865 # CONFIG_FILE
18866 #
18867
18868 case $INSTALL in
18869 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18870 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18871 esac
18872 ac_MKDIR_P=$MKDIR_P
18873 case $MKDIR_P in
18874 [\\/$]* | ?:[\\/]* ) ;;
18875 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18876 esac
18877_ACEOF
18878
18879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18880# If the template does not know about datarootdir, expand it.
18881# FIXME: This hack should be removed a few years after 2.60.
18882ac_datarootdir_hack=; ac_datarootdir_seen=
18883ac_sed_dataroot='
18884/datarootdir/ {
18885 p
18886 q
18887}
18888/@datadir@/p
18889/@docdir@/p
18890/@infodir@/p
18891/@localedir@/p
18892/@mandir@/p'
18893case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18894*datarootdir*) ac_datarootdir_seen=yes;;
18895*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18897$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18898_ACEOF
18899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18900 ac_datarootdir_hack='
18901 s&@datadir@&$datadir&g
18902 s&@docdir@&$docdir&g
18903 s&@infodir@&$infodir&g
18904 s&@localedir@&$localedir&g
18905 s&@mandir@&$mandir&g
18906 s&\\\${datarootdir}&$datarootdir&g' ;;
18907esac
18908_ACEOF
18909
18910# Neutralize VPATH when `$srcdir' = `.'.
18911# Shell code in configure.ac might set extrasub.
18912# FIXME: do we really want to maintain this feature?
18913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18914ac_sed_extra="$ac_vpsub
18915$extrasub
18916_ACEOF
18917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18918:t
18919/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18920s|@configure_input@|$ac_sed_conf_input|;t t
18921s&@top_builddir@&$ac_top_builddir_sub&;t t
18922s&@top_build_prefix@&$ac_top_build_prefix&;t t
18923s&@srcdir@&$ac_srcdir&;t t
18924s&@abs_srcdir@&$ac_abs_srcdir&;t t
18925s&@top_srcdir@&$ac_top_srcdir&;t t
18926s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18927s&@builddir@&$ac_builddir&;t t
18928s&@abs_builddir@&$ac_abs_builddir&;t t
18929s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18930s&@INSTALL@&$ac_INSTALL&;t t
18931s&@MKDIR_P@&$ac_MKDIR_P&;t t
18932$ac_datarootdir_hack
18933"
18934eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18935 || as_fn_error "could not create $ac_file" "$LINENO" 5
18936
18937test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18938 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18939 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18941which seems to be undefined. Please make sure it is defined." >&5
18942$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18943which seems to be undefined. Please make sure it is defined." >&2;}
18944
18945 rm -f "$tmp/stdin"
18946 case $ac_file in
18947 -) cat "$tmp/out" && rm -f "$tmp/out";;
18948 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18949 esac \
18950 || as_fn_error "could not create $ac_file" "$LINENO" 5
18951 ;;
18952 :H)
18953 #
18954 # CONFIG_HEADER
18955 #
18956 if test x"$ac_file" != x-; then
18957 {
18958 $as_echo "/* $configure_input */" \
18959 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18960 } >"$tmp/config.h" \
18961 || as_fn_error "could not create $ac_file" "$LINENO" 5
18962 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18964$as_echo "$as_me: $ac_file is unchanged" >&6;}
18965 else
18966 rm -f "$ac_file"
18967 mv "$tmp/config.h" "$ac_file" \
18968 || as_fn_error "could not create $ac_file" "$LINENO" 5
18969 fi
18970 else
18971 $as_echo "/* $configure_input */" \
18972 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18973 || as_fn_error "could not create -" "$LINENO" 5
18974 fi
18975# Compute "$ac_file"'s index in $config_headers.
18976_am_arg="$ac_file"
18977_am_stamp_count=1
18978for _am_header in $config_headers :; do
18979 case $_am_header in
18980 $_am_arg | $_am_arg:* )
18981 break ;;
18982 * )
18983 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18984 esac
18985done
18986echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18987$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18988 X"$_am_arg" : 'X\(//\)[^/]' \| \
18989 X"$_am_arg" : 'X\(//\)$' \| \
18990 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18991$as_echo X"$_am_arg" |
18992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18993 s//\1/
18994 q
18995 }
18996 /^X\(\/\/\)[^/].*/{
18997 s//\1/
18998 q
18999 }
19000 /^X\(\/\/\)$/{
19001 s//\1/
19002 q
19003 }
19004 /^X\(\/\).*/{
19005 s//\1/
19006 q
19007 }
19008 s/.*/./; q'`/stamp-h$_am_stamp_count
19009 ;;
19010
19011 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19012$as_echo "$as_me: executing $ac_file commands" >&6;}
19013 ;;
19014 esac
19015
19016
19017 case $ac_file$ac_mode in
19018 "default-1":C)
19019# Only add multilib support code if we just rebuilt the top-level
19020# Makefile.
19021case " $CONFIG_FILES " in
19022 *" Makefile "*)
19023 ac_file=Makefile . ${multi_basedir}/config-ml.in
19024 ;;
19025esac ;;
19026 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19027 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19028 # are listed without --file. Let's play safe and only enable the eval
19029 # if we detect the quoting.
19030 case $CONFIG_FILES in
19031 *\'*) eval set x "$CONFIG_FILES" ;;
19032 *) set x $CONFIG_FILES ;;
19033 esac
19034 shift
19035 for mf
19036 do
19037 # Strip MF so we end up with the name of the file.
19038 mf=`echo "$mf" | sed -e 's/:.*$//'`
19039 # Check whether this is an Automake generated Makefile or not.
19040 # We used to match only the files named `Makefile.in', but
19041 # some people rename them; so instead we look at the file content.
19042 # Grep'ing the first line is not enough: some people post-process
19043 # each Makefile.in and add a new line on top of each file to say so.
19044 # Grep'ing the whole file is not good either: AIX grep has a line
19045 # limit of 2048, but all sed's we know have understand at least 4000.
19046 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19047 dirpart=`$as_dirname -- "$mf" ||
19048$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19049 X"$mf" : 'X\(//\)[^/]' \| \
19050 X"$mf" : 'X\(//\)$' \| \
19051 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19052$as_echo X"$mf" |
19053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19054 s//\1/
19055 q
19056 }
19057 /^X\(\/\/\)[^/].*/{
19058 s//\1/
19059 q
19060 }
19061 /^X\(\/\/\)$/{
19062 s//\1/
19063 q
19064 }
19065 /^X\(\/\).*/{
19066 s//\1/
19067 q
19068 }
19069 s/.*/./; q'`
19070 else
19071 continue
19072 fi
19073 # Extract the definition of DEPDIR, am__include, and am__quote
19074 # from the Makefile without running `make'.
19075 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19076 test -z "$DEPDIR" && continue
19077 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19078 test -z "am__include" && continue
19079 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19080 # When using ansi2knr, U may be empty or an underscore; expand it
19081 U=`sed -n 's/^U = //p' < "$mf"`
19082 # Find all dependency output files, they are included files with
19083 # $(DEPDIR) in their names. We invoke sed twice because it is the
19084 # simplest approach to changing $(DEPDIR) to its actual value in the
19085 # expansion.
19086 for file in `sed -n "
19087 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19088 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19089 # Make sure the directory exists.
19090 test -f "$dirpart/$file" && continue
19091 fdir=`$as_dirname -- "$file" ||
19092$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19093 X"$file" : 'X\(//\)[^/]' \| \
19094 X"$file" : 'X\(//\)$' \| \
19095 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19096$as_echo X"$file" |
19097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19098 s//\1/
19099 q
19100 }
19101 /^X\(\/\/\)[^/].*/{
19102 s//\1/
19103 q
19104 }
19105 /^X\(\/\/\)$/{
19106 s//\1/
19107 q
19108 }
19109 /^X\(\/\).*/{
19110 s//\1/
19111 q
19112 }
19113 s/.*/./; q'`
19114 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19115 # echo "creating $dirpart/$file"
19116 echo '# dummy' > "$dirpart/$file"
19117 done
19118 done
19119}
19120 ;;
19121 "libtool":C)
19122
19123 # See if we are running on zsh, and set the options which allow our
19124 # commands through without removal of \ escapes.
19125 if test -n "${ZSH_VERSION+set}" ; then
19126 setopt NO_GLOB_SUBST
19127 fi
19128
19129 cfgfile="${ofile}T"
19130 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19131 $RM "$cfgfile"
19132
19133 cat <<_LT_EOF >> "$cfgfile"
19134#! $SHELL
19135
19136# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19137# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19138# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19139# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19140#
19141# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19142# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19143# Written by Gordon Matzigkeit, 1996
19144#
19145# This file is part of GNU Libtool.
19146#
19147# GNU Libtool is free software; you can redistribute it and/or
19148# modify it under the terms of the GNU General Public License as
19149# published by the Free Software Foundation; either version 2 of
19150# the License, or (at your option) any later version.
19151#
19152# As a special exception to the GNU General Public License,
19153# if you distribute this file as part of a program or library that
19154# is built using GNU Libtool, you may include this file under the
19155# same distribution terms that you use for the rest of that program.
19156#
19157# GNU Libtool is distributed in the hope that it will be useful,
19158# but WITHOUT ANY WARRANTY; without even the implied warranty of
19159# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19160# GNU General Public License for more details.
19161#
19162# You should have received a copy of the GNU General Public License
19163# along with GNU Libtool; see the file COPYING. If not, a copy
19164# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19165# obtained by writing to the Free Software Foundation, Inc.,
19166# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19167
19168
19169# The names of the tagged configurations supported by this script.
19170available_tags="CXX "
19171
19172# ### BEGIN LIBTOOL CONFIG
19173
19174# Which release of libtool.m4 was used?
19175macro_version=$macro_version
19176macro_revision=$macro_revision
19177
19178# Whether or not to build shared libraries.
19179build_libtool_libs=$enable_shared
19180
19181# Whether or not to build static libraries.
19182build_old_libs=$enable_static
19183
19184# What type of objects to build.
19185pic_mode=$pic_mode
19186
19187# Whether or not to optimize for fast installation.
19188fast_install=$enable_fast_install
19189
19190# Shell to use when invoking shell scripts.
19191SHELL=$lt_SHELL
19192
19193# An echo program that protects backslashes.
19194ECHO=$lt_ECHO
19195
19196# The host system.
19197host_alias=$host_alias
19198host=$host
19199host_os=$host_os
19200
19201# The build system.
19202build_alias=$build_alias
19203build=$build
19204build_os=$build_os
19205
19206# A sed program that does not truncate output.
19207SED=$lt_SED
19208
19209# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19210Xsed="\$SED -e 1s/^X//"
19211
19212# A grep program that handles long lines.
19213GREP=$lt_GREP
19214
19215# An ERE matcher.
19216EGREP=$lt_EGREP
19217
19218# A literal string matcher.
19219FGREP=$lt_FGREP
19220
19221# A BSD- or MS-compatible name lister.
19222NM=$lt_NM
19223
19224# Whether we need soft or hard links.
19225LN_S=$lt_LN_S
19226
19227# What is the maximum length of a command?
19228max_cmd_len=$max_cmd_len
19229
19230# Object file suffix (normally "o").
19231objext=$ac_objext
19232
19233# Executable file suffix (normally "").
19234exeext=$exeext
19235
19236# whether the shell understands "unset".
19237lt_unset=$lt_unset
19238
19239# turn spaces into newlines.
19240SP2NL=$lt_lt_SP2NL
19241
19242# turn newlines into spaces.
19243NL2SP=$lt_lt_NL2SP
19244
19245# An object symbol dumper.
19246OBJDUMP=$lt_OBJDUMP
19247
19248# Method to check whether dependent libraries are shared objects.
19249deplibs_check_method=$lt_deplibs_check_method
19250
19251# Command to use when deplibs_check_method == "file_magic".
19252file_magic_cmd=$lt_file_magic_cmd
19253
19254# The archiver.
19255AR=$lt_AR
19256AR_FLAGS=$lt_AR_FLAGS
19257
19258# A symbol stripping program.
19259STRIP=$lt_STRIP
19260
19261# Commands used to install an old-style archive.
19262RANLIB=$lt_RANLIB
19263old_postinstall_cmds=$lt_old_postinstall_cmds
19264old_postuninstall_cmds=$lt_old_postuninstall_cmds
19265
19266# Whether to use a lock for old archive extraction.
19267lock_old_archive_extraction=$lock_old_archive_extraction
19268
19269# A C compiler.
19270LTCC=$lt_CC
19271
19272# LTCC compiler flags.
19273LTCFLAGS=$lt_CFLAGS
19274
19275# Take the output of nm and produce a listing of raw symbols and C names.
19276global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19277
19278# Transform the output of nm in a proper C declaration.
19279global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19280
19281# Transform the output of nm in a C name address pair.
19282global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19283
19284# Transform the output of nm in a C name address pair when lib prefix is needed.
19285global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19286
19287# The name of the directory that contains temporary libtool files.
19288objdir=$objdir
19289
19290# Used to examine libraries when file_magic_cmd begins with "file".
19291MAGIC_CMD=$MAGIC_CMD
19292
19293# Must we lock files when doing compilation?
19294need_locks=$lt_need_locks
19295
19296# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19297DSYMUTIL=$lt_DSYMUTIL
19298
19299# Tool to change global to local symbols on Mac OS X.
19300NMEDIT=$lt_NMEDIT
19301
19302# Tool to manipulate fat objects and archives on Mac OS X.
19303LIPO=$lt_LIPO
19304
19305# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19306OTOOL=$lt_OTOOL
19307
19308# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19309OTOOL64=$lt_OTOOL64
19310
19311# Old archive suffix (normally "a").
19312libext=$libext
19313
19314# Shared library suffix (normally ".so").
19315shrext_cmds=$lt_shrext_cmds
19316
19317# The commands to extract the exported symbol list from a shared archive.
19318extract_expsyms_cmds=$lt_extract_expsyms_cmds
19319
19320# Variables whose values should be saved in libtool wrapper scripts and
19321# restored at link time.
19322variables_saved_for_relink=$lt_variables_saved_for_relink
19323
19324# Do we need the "lib" prefix for modules?
19325need_lib_prefix=$need_lib_prefix
19326
19327# Do we need a version for libraries?
19328need_version=$need_version
19329
19330# Library versioning type.
19331version_type=$version_type
19332
19333# Shared library runtime path variable.
19334runpath_var=$runpath_var
19335
19336# Shared library path variable.
19337shlibpath_var=$shlibpath_var
19338
19339# Is shlibpath searched before the hard-coded library search path?
19340shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19341
19342# Format of library name prefix.
19343libname_spec=$lt_libname_spec
19344
19345# List of archive names. First name is the real one, the rest are links.
19346# The last name is the one that the linker finds with -lNAME
19347library_names_spec=$lt_library_names_spec
19348
19349# The coded name of the library, if different from the real name.
19350soname_spec=$lt_soname_spec
19351
19352# Permission mode override for installation of shared libraries.
19353install_override_mode=$lt_install_override_mode
19354
19355# Command to use after installation of a shared archive.
19356postinstall_cmds=$lt_postinstall_cmds
19357
19358# Command to use after uninstallation of a shared archive.
19359postuninstall_cmds=$lt_postuninstall_cmds
19360
19361# Commands used to finish a libtool library installation in a directory.
19362finish_cmds=$lt_finish_cmds
19363
19364# As "finish_cmds", except a single script fragment to be evaled but
19365# not shown.
19366finish_eval=$lt_finish_eval
19367
19368# Whether we should hardcode library paths into libraries.
19369hardcode_into_libs=$hardcode_into_libs
19370
19371# Compile-time system search path for libraries.
19372sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19373
19374# Run-time system search path for libraries.
19375sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19376
19377# Whether dlopen is supported.
19378dlopen_support=$enable_dlopen
19379
19380# Whether dlopen of programs is supported.
19381dlopen_self=$enable_dlopen_self
19382
19383# Whether dlopen of statically linked programs is supported.
19384dlopen_self_static=$enable_dlopen_self_static
19385
19386# Commands to strip libraries.
19387old_striplib=$lt_old_striplib
19388striplib=$lt_striplib
19389
19390
19391# The linker used to build libraries.
19392LD=$lt_LD
19393
19394# How to create reloadable object files.
19395reload_flag=$lt_reload_flag
19396reload_cmds=$lt_reload_cmds
19397
19398# Commands used to build an old-style archive.
19399old_archive_cmds=$lt_old_archive_cmds
19400
19401# A language specific compiler.
19402CC=$lt_compiler
19403
19404# Is the compiler the GNU compiler?
19405with_gcc=$GCC
19406
19407# Compiler flag to turn off builtin functions.
19408no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19409
19410# How to pass a linker flag through the compiler.
19411wl=$lt_lt_prog_compiler_wl
19412
19413# Additional compiler flags for building library objects.
19414pic_flag=$lt_lt_prog_compiler_pic
19415
19416# Compiler flag to prevent dynamic linking.
19417link_static_flag=$lt_lt_prog_compiler_static
19418
19419# Does compiler simultaneously support -c and -o options?
19420compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19421
19422# Whether or not to add -lc for building shared libraries.
19423build_libtool_need_lc=$archive_cmds_need_lc
19424
19425# Whether or not to disallow shared libs when runtime libs are static.
19426allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19427
19428# Compiler flag to allow reflexive dlopens.
19429export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19430
19431# Compiler flag to generate shared objects directly from archives.
19432whole_archive_flag_spec=$lt_whole_archive_flag_spec
19433
19434# Whether the compiler copes with passing no objects directly.
19435compiler_needs_object=$lt_compiler_needs_object
19436
19437# Create an old-style archive from a shared archive.
19438old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19439
19440# Create a temporary old-style archive to link instead of a shared archive.
19441old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19442
19443# Commands used to build a shared archive.
19444archive_cmds=$lt_archive_cmds
19445archive_expsym_cmds=$lt_archive_expsym_cmds
19446
19447# Commands used to build a loadable module if different from building
19448# a shared archive.
19449module_cmds=$lt_module_cmds
19450module_expsym_cmds=$lt_module_expsym_cmds
19451
19452# Whether we are building with GNU ld or not.
19453with_gnu_ld=$lt_with_gnu_ld
19454
19455# Flag that allows shared libraries with undefined symbols to be built.
19456allow_undefined_flag=$lt_allow_undefined_flag
19457
19458# Flag that enforces no undefined symbols.
19459no_undefined_flag=$lt_no_undefined_flag
19460
19461# Flag to hardcode \$libdir into a binary during linking.
19462# This must work even if \$libdir does not exist
19463hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19464
19465# If ld is used when linking, flag to hardcode \$libdir into a binary
19466# during linking. This must work even if \$libdir does not exist.
19467hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19468
19469# Whether we need a single "-rpath" flag with a separated argument.
19470hardcode_libdir_separator=$lt_hardcode_libdir_separator
19471
19472# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19473# DIR into the resulting binary.
19474hardcode_direct=$hardcode_direct
19475
19476# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19477# DIR into the resulting binary and the resulting library dependency is
19478# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19479# library is relocated.
19480hardcode_direct_absolute=$hardcode_direct_absolute
19481
19482# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19483# into the resulting binary.
19484hardcode_minus_L=$hardcode_minus_L
19485
19486# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19487# into the resulting binary.
19488hardcode_shlibpath_var=$hardcode_shlibpath_var
19489
19490# Set to "yes" if building a shared library automatically hardcodes DIR
19491# into the library and all subsequent libraries and executables linked
19492# against it.
19493hardcode_automatic=$hardcode_automatic
19494
19495# Set to yes if linker adds runtime paths of dependent libraries
19496# to runtime path list.
19497inherit_rpath=$inherit_rpath
19498
19499# Whether libtool must link a program against all its dependency libraries.
19500link_all_deplibs=$link_all_deplibs
19501
19502# Fix the shell variable \$srcfile for the compiler.
19503fix_srcfile_path=$lt_fix_srcfile_path
19504
19505# Set to "yes" if exported symbols are required.
19506always_export_symbols=$always_export_symbols
19507
19508# The commands to list exported symbols.
19509export_symbols_cmds=$lt_export_symbols_cmds
19510
19511# Symbols that should not be listed in the preloaded symbols.
19512exclude_expsyms=$lt_exclude_expsyms
19513
19514# Symbols that must always be exported.
19515include_expsyms=$lt_include_expsyms
19516
19517# Commands necessary for linking programs (against libraries) with templates.
19518prelink_cmds=$lt_prelink_cmds
19519
19520# Specify filename containing input files.
19521file_list_spec=$lt_file_list_spec
19522
19523# How to hardcode a shared library path into an executable.
19524hardcode_action=$hardcode_action
19525
19526# The directories searched by this compiler when creating a shared library.
19527compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19528
19529# Dependencies to place before and after the objects being linked to
19530# create a shared library.
19531predep_objects=$lt_predep_objects
19532postdep_objects=$lt_postdep_objects
19533predeps=$lt_predeps
19534postdeps=$lt_postdeps
19535
19536# The library search path used internally by the compiler when linking
19537# a shared library.
19538compiler_lib_search_path=$lt_compiler_lib_search_path
19539
19540# ### END LIBTOOL CONFIG
19541
19542_LT_EOF
19543
19544 case $host_os in
19545 aix3*)
19546 cat <<\_LT_EOF >> "$cfgfile"
19547# AIX sometimes has problems with the GCC collect2 program. For some
19548# reason, if we set the COLLECT_NAMES environment variable, the problems
19549# vanish in a puff of smoke.
19550if test "X${COLLECT_NAMES+set}" != Xset; then
19551 COLLECT_NAMES=
19552 export COLLECT_NAMES
19553fi
19554_LT_EOF
19555 ;;
19556 esac
19557
19558
19559ltmain="$ac_aux_dir/ltmain.sh"
19560
19561
19562 # We use sed instead of cat because bash on DJGPP gets confused if
19563 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19564 # text mode, it properly converts lines to CR/LF. This bash problem
19565 # is reportedly fixed, but why not run on old versions too?
19566 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19567 || (rm -f "$cfgfile"; exit 1)
19568
19569 case $xsi_shell in
19570 yes)
19571 cat << \_LT_EOF >> "$cfgfile"
19572
19573# func_dirname file append nondir_replacement
19574# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19575# otherwise set result to NONDIR_REPLACEMENT.
19576func_dirname ()
19577{
19578 case ${1} in
19579 */*) func_dirname_result="${1%/*}${2}" ;;
19580 * ) func_dirname_result="${3}" ;;
19581 esac
19582}
19583
19584# func_basename file
19585func_basename ()
19586{
19587 func_basename_result="${1##*/}"
19588}
19589
19590# func_dirname_and_basename file append nondir_replacement
19591# perform func_basename and func_dirname in a single function
19592# call:
19593# dirname: Compute the dirname of FILE. If nonempty,
19594# add APPEND to the result, otherwise set result
19595# to NONDIR_REPLACEMENT.
19596# value returned in "$func_dirname_result"
19597# basename: Compute filename of FILE.
19598# value retuned in "$func_basename_result"
19599# Implementation must be kept synchronized with func_dirname
19600# and func_basename. For efficiency, we do not delegate to
19601# those functions but instead duplicate the functionality here.
19602func_dirname_and_basename ()
19603{
19604 case ${1} in
19605 */*) func_dirname_result="${1%/*}${2}" ;;
19606 * ) func_dirname_result="${3}" ;;
19607 esac
19608 func_basename_result="${1##*/}"
19609}
19610
19611# func_stripname prefix suffix name
19612# strip PREFIX and SUFFIX off of NAME.
19613# PREFIX and SUFFIX must not contain globbing or regex special
19614# characters, hashes, percent signs, but SUFFIX may contain a leading
19615# dot (in which case that matches only a dot).
19616func_stripname ()
19617{
19618 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19619 # positional parameters, so assign one to ordinary parameter first.
19620 func_stripname_result=${3}
19621 func_stripname_result=${func_stripname_result#"${1}"}
19622 func_stripname_result=${func_stripname_result%"${2}"}
19623}
19624
19625# func_opt_split
19626func_opt_split ()
19627{
19628 func_opt_split_opt=${1%%=*}
19629 func_opt_split_arg=${1#*=}
19630}
19631
19632# func_lo2o object
19633func_lo2o ()
19634{
19635 case ${1} in
19636 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19637 *) func_lo2o_result=${1} ;;
19638 esac
19639}
19640
19641# func_xform libobj-or-source
19642func_xform ()
19643{
19644 func_xform_result=${1%.*}.lo
19645}
19646
19647# func_arith arithmetic-term...
19648func_arith ()
19649{
19650 func_arith_result=$(( $* ))
19651}
19652
19653# func_len string
19654# STRING may not start with a hyphen.
19655func_len ()
19656{
19657 func_len_result=${#1}
19658}
19659
19660_LT_EOF
19661 ;;
19662 *) # Bourne compatible functions.
19663 cat << \_LT_EOF >> "$cfgfile"
19664
19665# func_dirname file append nondir_replacement
19666# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19667# otherwise set result to NONDIR_REPLACEMENT.
19668func_dirname ()
19669{
19670 # Extract subdirectory from the argument.
19671 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19672 if test "X$func_dirname_result" = "X${1}"; then
19673 func_dirname_result="${3}"
19674 else
19675 func_dirname_result="$func_dirname_result${2}"
19676 fi
19677}
19678
19679# func_basename file
19680func_basename ()
19681{
19682 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19683}
19684
19685
19686# func_stripname prefix suffix name
19687# strip PREFIX and SUFFIX off of NAME.
19688# PREFIX and SUFFIX must not contain globbing or regex special
19689# characters, hashes, percent signs, but SUFFIX may contain a leading
19690# dot (in which case that matches only a dot).
19691# func_strip_suffix prefix name
19692func_stripname ()
19693{
19694 case ${2} in
19695 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19696 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19697 esac
19698}
19699
19700# sed scripts:
19701my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19702my_sed_long_arg='1s/^-[^=]*=//'
19703
19704# func_opt_split
19705func_opt_split ()
19706{
19707 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19708 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19709}
19710
19711# func_lo2o object
19712func_lo2o ()
19713{
19714 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19715}
19716
19717# func_xform libobj-or-source
19718func_xform ()
19719{
19720 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19721}
19722
19723# func_arith arithmetic-term...
19724func_arith ()
19725{
19726 func_arith_result=`expr "$@"`
19727}
19728
19729# func_len string
19730# STRING may not start with a hyphen.
19731func_len ()
19732{
19733 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19734}
19735
19736_LT_EOF
19737esac
19738
19739case $lt_shell_append in
19740 yes)
19741 cat << \_LT_EOF >> "$cfgfile"
19742
19743# func_append var value
19744# Append VALUE to the end of shell variable VAR.
19745func_append ()
19746{
19747 eval "$1+=\$2"
19748}
19749_LT_EOF
19750 ;;
19751 *)
19752 cat << \_LT_EOF >> "$cfgfile"
19753
19754# func_append var value
19755# Append VALUE to the end of shell variable VAR.
19756func_append ()
19757{
19758 eval "$1=\$$1\$2"
19759}
19760
19761_LT_EOF
19762 ;;
19763 esac
19764
19765
19766 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19767 || (rm -f "$cfgfile"; exit 1)
19768
19769 mv -f "$cfgfile" "$ofile" ||
19770 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19771 chmod +x "$ofile"
19772
19773
19774 cat <<_LT_EOF >> "$ofile"
19775
19776# ### BEGIN LIBTOOL TAG CONFIG: CXX
19777
19778# The linker used to build libraries.
19779LD=$lt_LD_CXX
19780
19781# How to create reloadable object files.
19782reload_flag=$lt_reload_flag_CXX
19783reload_cmds=$lt_reload_cmds_CXX
19784
19785# Commands used to build an old-style archive.
19786old_archive_cmds=$lt_old_archive_cmds_CXX
19787
19788# A language specific compiler.
19789CC=$lt_compiler_CXX
19790
19791# Is the compiler the GNU compiler?
19792with_gcc=$GCC_CXX
19793
19794# Compiler flag to turn off builtin functions.
19795no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19796
19797# How to pass a linker flag through the compiler.
19798wl=$lt_lt_prog_compiler_wl_CXX
19799
19800# Additional compiler flags for building library objects.
19801pic_flag=$lt_lt_prog_compiler_pic_CXX
19802
19803# Compiler flag to prevent dynamic linking.
19804link_static_flag=$lt_lt_prog_compiler_static_CXX
19805
19806# Does compiler simultaneously support -c and -o options?
19807compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19808
19809# Whether or not to add -lc for building shared libraries.
19810build_libtool_need_lc=$archive_cmds_need_lc_CXX
19811
19812# Whether or not to disallow shared libs when runtime libs are static.
19813allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19814
19815# Compiler flag to allow reflexive dlopens.
19816export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19817
19818# Compiler flag to generate shared objects directly from archives.
19819whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19820
19821# Whether the compiler copes with passing no objects directly.
19822compiler_needs_object=$lt_compiler_needs_object_CXX
19823
19824# Create an old-style archive from a shared archive.
19825old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19826
19827# Create a temporary old-style archive to link instead of a shared archive.
19828old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19829
19830# Commands used to build a shared archive.
19831archive_cmds=$lt_archive_cmds_CXX
19832archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19833
19834# Commands used to build a loadable module if different from building
19835# a shared archive.
19836module_cmds=$lt_module_cmds_CXX
19837module_expsym_cmds=$lt_module_expsym_cmds_CXX
19838
19839# Whether we are building with GNU ld or not.
19840with_gnu_ld=$lt_with_gnu_ld_CXX
19841
19842# Flag that allows shared libraries with undefined symbols to be built.
19843allow_undefined_flag=$lt_allow_undefined_flag_CXX
19844
19845# Flag that enforces no undefined symbols.
19846no_undefined_flag=$lt_no_undefined_flag_CXX
19847
19848# Flag to hardcode \$libdir into a binary during linking.
19849# This must work even if \$libdir does not exist
19850hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19851
19852# If ld is used when linking, flag to hardcode \$libdir into a binary
19853# during linking. This must work even if \$libdir does not exist.
19854hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19855
19856# Whether we need a single "-rpath" flag with a separated argument.
19857hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19858
19859# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19860# DIR into the resulting binary.
19861hardcode_direct=$hardcode_direct_CXX
19862
19863# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19864# DIR into the resulting binary and the resulting library dependency is
19865# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19866# library is relocated.
19867hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19868
19869# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19870# into the resulting binary.
19871hardcode_minus_L=$hardcode_minus_L_CXX
19872
19873# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19874# into the resulting binary.
19875hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19876
19877# Set to "yes" if building a shared library automatically hardcodes DIR
19878# into the library and all subsequent libraries and executables linked
19879# against it.
19880hardcode_automatic=$hardcode_automatic_CXX
19881
19882# Set to yes if linker adds runtime paths of dependent libraries
19883# to runtime path list.
19884inherit_rpath=$inherit_rpath_CXX
19885
19886# Whether libtool must link a program against all its dependency libraries.
19887link_all_deplibs=$link_all_deplibs_CXX
19888
19889# Fix the shell variable \$srcfile for the compiler.
19890fix_srcfile_path=$lt_fix_srcfile_path_CXX
19891
19892# Set to "yes" if exported symbols are required.
19893always_export_symbols=$always_export_symbols_CXX
19894
19895# The commands to list exported symbols.
19896export_symbols_cmds=$lt_export_symbols_cmds_CXX
19897
19898# Symbols that should not be listed in the preloaded symbols.
19899exclude_expsyms=$lt_exclude_expsyms_CXX
19900
19901# Symbols that must always be exported.
19902include_expsyms=$lt_include_expsyms_CXX
19903
19904# Commands necessary for linking programs (against libraries) with templates.
19905prelink_cmds=$lt_prelink_cmds_CXX
19906
19907# Specify filename containing input files.
19908file_list_spec=$lt_file_list_spec_CXX
19909
19910# How to hardcode a shared library path into an executable.
19911hardcode_action=$hardcode_action_CXX
19912
19913# The directories searched by this compiler when creating a shared library.
19914compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19915
19916# Dependencies to place before and after the objects being linked to
19917# create a shared library.
19918predep_objects=$lt_predep_objects_CXX
19919postdep_objects=$lt_postdep_objects_CXX
19920predeps=$lt_predeps_CXX
19921postdeps=$lt_postdeps_CXX
19922
19923# The library search path used internally by the compiler when linking
19924# a shared library.
19925compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19926
19927# ### END LIBTOOL TAG CONFIG: CXX
19928_LT_EOF
19929
19930 ;;
19931 "gstdint.h":C)
19932if test "$GCC" = yes; then
19933 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19934else
19935 echo "/* generated for $CC */" > tmp-stdint.h
19936fi
19937
19938sed 's/^ *//' >> tmp-stdint.h <<EOF
19939
19940 #ifndef GCC_GENERATED_STDINT_H
19941 #define GCC_GENERATED_STDINT_H 1
19942
19943 #include <sys/types.h>
19944EOF
19945
19946if test "$acx_cv_header_stdint" != stdint.h; then
19947 echo "#include <stddef.h>" >> tmp-stdint.h
19948fi
19949if test "$acx_cv_header_stdint" != stddef.h; then
19950 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19951fi
19952
19953sed 's/^ *//' >> tmp-stdint.h <<EOF
19954 /* glibc uses these symbols as guards to prevent redefinitions. */
19955 #ifdef __int8_t_defined
19956 #define _INT8_T
19957 #define _INT16_T
19958 #define _INT32_T
19959 #endif
19960 #ifdef __uint32_t_defined
19961 #define _UINT32_T
19962 #endif
19963
19964EOF
19965
19966# ----------------- done header, emit basic int types -------------
19967if test "$acx_cv_header_stdint" = stddef.h; then
19968 sed 's/^ *//' >> tmp-stdint.h <<EOF
19969
19970 #ifndef _UINT8_T
19971 #define _UINT8_T
19972 #ifndef __uint8_t_defined
19973 #define __uint8_t_defined
19974 #ifndef uint8_t
19975 typedef unsigned $acx_cv_type_int8_t uint8_t;
19976 #endif
19977 #endif
19978 #endif
19979
19980 #ifndef _UINT16_T
19981 #define _UINT16_T
19982 #ifndef __uint16_t_defined
19983 #define __uint16_t_defined
19984 #ifndef uint16_t
19985 typedef unsigned $acx_cv_type_int16_t uint16_t;
19986 #endif
19987 #endif
19988 #endif
19989
19990 #ifndef _UINT32_T
19991 #define _UINT32_T
19992 #ifndef __uint32_t_defined
19993 #define __uint32_t_defined
19994 #ifndef uint32_t
19995 typedef unsigned $acx_cv_type_int32_t uint32_t;
19996 #endif
19997 #endif
19998 #endif
19999
20000 #ifndef _INT8_T
20001 #define _INT8_T
20002 #ifndef __int8_t_defined
20003 #define __int8_t_defined
20004 #ifndef int8_t
20005 typedef $acx_cv_type_int8_t int8_t;
20006 #endif
20007 #endif
20008 #endif
20009
20010 #ifndef _INT16_T
20011 #define _INT16_T
20012 #ifndef __int16_t_defined
20013 #define __int16_t_defined
20014 #ifndef int16_t
20015 typedef $acx_cv_type_int16_t int16_t;
20016 #endif
20017 #endif
20018 #endif
20019
20020 #ifndef _INT32_T
20021 #define _INT32_T
20022 #ifndef __int32_t_defined
20023 #define __int32_t_defined
20024 #ifndef int32_t
20025 typedef $acx_cv_type_int32_t int32_t;
20026 #endif
20027 #endif
20028 #endif
20029EOF
20030elif test "$ac_cv_type_u_int32_t" = yes; then
20031 sed 's/^ *//' >> tmp-stdint.h <<EOF
20032
20033 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20034 #ifndef _INT8_T
20035 #define _INT8_T
20036 #endif
20037 #ifndef _INT16_T
20038 #define _INT16_T
20039 #endif
20040 #ifndef _INT32_T
20041 #define _INT32_T
20042 #endif
20043
20044 #ifndef _UINT8_T
20045 #define _UINT8_T
20046 #ifndef __uint8_t_defined
20047 #define __uint8_t_defined
20048 #ifndef uint8_t
20049 typedef u_int8_t uint8_t;
20050 #endif
20051 #endif
20052 #endif
20053
20054 #ifndef _UINT16_T
20055 #define _UINT16_T
20056 #ifndef __uint16_t_defined
20057 #define __uint16_t_defined
20058 #ifndef uint16_t
20059 typedef u_int16_t uint16_t;
20060 #endif
20061 #endif
20062 #endif
20063
20064 #ifndef _UINT32_T
20065 #define _UINT32_T
20066 #ifndef __uint32_t_defined
20067 #define __uint32_t_defined
20068 #ifndef uint32_t
20069 typedef u_int32_t uint32_t;
20070 #endif
20071 #endif
20072 #endif
20073EOF
20074else
20075 sed 's/^ *//' >> tmp-stdint.h <<EOF
20076
20077 /* Some systems have guard macros to prevent redefinitions, define them. */
20078 #ifndef _INT8_T
20079 #define _INT8_T
20080 #endif
20081 #ifndef _INT16_T
20082 #define _INT16_T
20083 #endif
20084 #ifndef _INT32_T
20085 #define _INT32_T
20086 #endif
20087 #ifndef _UINT8_T
20088 #define _UINT8_T
20089 #endif
20090 #ifndef _UINT16_T
20091 #define _UINT16_T
20092 #endif
20093 #ifndef _UINT32_T
20094 #define _UINT32_T
20095 #endif
20096EOF
20097fi
20098
20099# ------------- done basic int types, emit int64_t types ------------
20100if test "$ac_cv_type_uint64_t" = yes; then
20101 sed 's/^ *//' >> tmp-stdint.h <<EOF
20102
20103 /* system headers have good uint64_t and int64_t */
20104 #ifndef _INT64_T
20105 #define _INT64_T
20106 #endif
20107 #ifndef _UINT64_T
20108 #define _UINT64_T
20109 #endif
20110EOF
20111elif test "$ac_cv_type_u_int64_t" = yes; then
20112 sed 's/^ *//' >> tmp-stdint.h <<EOF
20113
20114 /* system headers have an u_int64_t (and int64_t) */
20115 #ifndef _INT64_T
20116 #define _INT64_T
20117 #endif
20118 #ifndef _UINT64_T
20119 #define _UINT64_T
20120 #ifndef __uint64_t_defined
20121 #define __uint64_t_defined
20122 #ifndef uint64_t
20123 typedef u_int64_t uint64_t;
20124 #endif
20125 #endif
20126 #endif
20127EOF
20128elif test -n "$acx_cv_type_int64_t"; then
20129 sed 's/^ *//' >> tmp-stdint.h <<EOF
20130
20131 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20132 #ifndef _INT64_T
20133 #define _INT64_T
20134 #ifndef int64_t
20135 typedef $acx_cv_type_int64_t int64_t;
20136 #endif
20137 #endif
20138 #ifndef _UINT64_T
20139 #define _UINT64_T
20140 #ifndef __uint64_t_defined
20141 #define __uint64_t_defined
20142 #ifndef uint64_t
20143 typedef unsigned $acx_cv_type_int64_t uint64_t;
20144 #endif
20145 #endif
20146 #endif
20147EOF
20148else
20149 sed 's/^ *//' >> tmp-stdint.h <<EOF
20150
20151 /* some common heuristics for int64_t, using compiler-specific tests */
20152 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20153 #ifndef _INT64_T
20154 #define _INT64_T
20155 #ifndef __int64_t_defined
20156 #ifndef int64_t
20157 typedef long long int64_t;
20158 #endif
20159 #endif
20160 #endif
20161 #ifndef _UINT64_T
20162 #define _UINT64_T
20163 #ifndef uint64_t
20164 typedef unsigned long long uint64_t;
20165 #endif
20166 #endif
20167
20168 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20169 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20170 does not implement __extension__. But that compiler doesn't define
20171 __GNUC_MINOR__. */
20172 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20173 # define __extension__
20174 # endif
20175
20176 # ifndef _INT64_T
20177 # define _INT64_T
20178 # ifndef int64_t
20179 __extension__ typedef long long int64_t;
20180 # endif
20181 # endif
20182 # ifndef _UINT64_T
20183 # define _UINT64_T
20184 # ifndef uint64_t
20185 __extension__ typedef unsigned long long uint64_t;
20186 # endif
20187 # endif
20188
20189 #elif !defined __STRICT_ANSI__
20190 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20191
20192 # ifndef _INT64_T
20193 # define _INT64_T
20194 # ifndef int64_t
20195 typedef __int64 int64_t;
20196 # endif
20197 # endif
20198 # ifndef _UINT64_T
20199 # define _UINT64_T
20200 # ifndef uint64_t
20201 typedef unsigned __int64 uint64_t;
20202 # endif
20203 # endif
20204 # endif /* compiler */
20205
20206 #endif /* ANSI version */
20207EOF
20208fi
20209
20210# ------------- done int64_t types, emit intptr types ------------
20211if test "$ac_cv_type_uintptr_t" != yes; then
20212 sed 's/^ *//' >> tmp-stdint.h <<EOF
20213
20214 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20215 #ifndef __uintptr_t_defined
20216 #ifndef uintptr_t
20217 typedef u$acx_cv_type_intptr_t uintptr_t;
20218 #endif
20219 #endif
20220 #ifndef __intptr_t_defined
20221 #ifndef intptr_t
20222 typedef $acx_cv_type_intptr_t intptr_t;
20223 #endif
20224 #endif
20225EOF
20226fi
20227
20228# ------------- done intptr types, emit int_least types ------------
20229if test "$ac_cv_type_int_least32_t" != yes; then
20230 sed 's/^ *//' >> tmp-stdint.h <<EOF
20231
20232 /* Define int_least types */
20233 typedef int8_t int_least8_t;
20234 typedef int16_t int_least16_t;
20235 typedef int32_t int_least32_t;
20236 #ifdef _INT64_T
20237 typedef int64_t int_least64_t;
20238 #endif
20239
20240 typedef uint8_t uint_least8_t;
20241 typedef uint16_t uint_least16_t;
20242 typedef uint32_t uint_least32_t;
20243 #ifdef _UINT64_T
20244 typedef uint64_t uint_least64_t;
20245 #endif
20246EOF
20247fi
20248
20249# ------------- done intptr types, emit int_fast types ------------
20250if test "$ac_cv_type_int_fast32_t" != yes; then
20251 sed 's/^ *//' >> tmp-stdint.h <<EOF
20252
20253 /* Define int_fast types. short is often slow */
20254 typedef int8_t int_fast8_t;
20255 typedef int int_fast16_t;
20256 typedef int32_t int_fast32_t;
20257 #ifdef _INT64_T
20258 typedef int64_t int_fast64_t;
20259 #endif
20260
20261 typedef uint8_t uint_fast8_t;
20262 typedef unsigned int uint_fast16_t;
20263 typedef uint32_t uint_fast32_t;
20264 #ifdef _UINT64_T
20265 typedef uint64_t uint_fast64_t;
20266 #endif
20267EOF
20268fi
20269
20270if test "$ac_cv_type_uintmax_t" != yes; then
20271 sed 's/^ *//' >> tmp-stdint.h <<EOF
20272
20273 /* Define intmax based on what we found */
20274 #ifndef intmax_t
20275 #ifdef _INT64_T
20276 typedef int64_t intmax_t;
20277 #else
20278 typedef long intmax_t;
20279 #endif
20280 #endif
20281 #ifndef uintmax_t
20282 #ifdef _UINT64_T
20283 typedef uint64_t uintmax_t;
20284 #else
20285 typedef unsigned long uintmax_t;
20286 #endif
20287 #endif
20288EOF
20289fi
20290
20291sed 's/^ *//' >> tmp-stdint.h <<EOF
20292
20293 #endif /* GCC_GENERATED_STDINT_H */
20294EOF
20295
20296if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20297 rm -f tmp-stdint.h
20298else
20299 mv -f tmp-stdint.h gstdint.h
20300fi
20301
20302 ;;
20303
20304 esac
20305done # for ac_tag
20306
20307
20308as_fn_exit 0
20309_ACEOF
20310ac_clean_files=$ac_clean_files_save
20311
20312test $ac_write_fail = 0 ||
20313 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20314
20315
20316# configure is writing to config.log, and then calls config.status.
20317# config.status does its own redirection, appending to config.log.
20318# Unfortunately, on DOS this fails, as config.log is still kept open
20319# by configure, so config.status won't be able to write to it; its
20320# output is simply discarded. So we exec the FD to /dev/null,
20321# effectively closing config.log, so it can be properly (re)opened and
20322# appended to by config.status. When coming back to configure, we
20323# need to make the FD available again.
20324if test "$no_create" != yes; then
20325 ac_cs_success=:
20326 ac_config_status_args=
20327 test "$silent" = yes &&
20328 ac_config_status_args="$ac_config_status_args --quiet"
20329 exec 5>/dev/null
20330 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20331 exec 5>>config.log
20332 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20333 # would make configure fail if this is the last instruction.
20334 $ac_cs_success || as_fn_exit $?
20335fi
20336if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20338$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20339fi
20340