]> git.ipfire.org Git - thirdparty/gcc.git/blame - libsanitizer/configure
Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856).
[thirdparty/gcc.git] / libsanitizer / configure
CommitLineData
f35db108
WM
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272 3# Generated by GNU Autoconf 2.69 for package-unused version-unused.
f35db108
WM
4#
5# Report bugs to <libsanitizer>.
6#
22e05272
JM
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
f35db108 10#
f35db108
WM
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
22e05272 92as_myself=
f35db108
WM
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
22e05272
JM
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
f35db108
WM
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
22e05272
JM
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
f35db108
WM
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
c915a581 201test \$(( 1 + 1 )) = 2 || exit 1
f35db108
WM
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
c915a581 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
f35db108
WM
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
f35db108
WM
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about
278$0: your system, including any error possibly output before
279$0: this message. Then install a modern shell, or manually
280$0: run the script under such a shell if you do have one."
281 fi
282 exit 1
283fi
284fi
285fi
286SHELL=${CONFIG_SHELL-/bin/sh}
287export SHELL
288# Unset more variables known to interfere with behavior of common tools.
289CLICOLOR_FORCE= GREP_OPTIONS=
290unset CLICOLOR_FORCE GREP_OPTIONS
291
292## --------------------- ##
293## M4sh Shell Functions. ##
294## --------------------- ##
295# as_fn_unset VAR
296# ---------------
297# Portably unset VAR.
298as_fn_unset ()
299{
300 { eval $1=; unset $1;}
301}
302as_unset=as_fn_unset
303
304# as_fn_set_status STATUS
305# -----------------------
306# Set $? to STATUS, without forking.
307as_fn_set_status ()
308{
309 return $1
310} # as_fn_set_status
311
312# as_fn_exit STATUS
313# -----------------
314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315as_fn_exit ()
316{
317 set +e
318 as_fn_set_status $1
319 exit $1
320} # as_fn_exit
321
322# as_fn_mkdir_p
323# -------------
324# Create "$as_dir" as a directory, including parents if necessary.
325as_fn_mkdir_p ()
326{
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344$as_echo X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
f35db108
WM
366
367
368} # as_fn_mkdir_p
22e05272
JM
369
370# as_fn_executable_p FILE
371# -----------------------
372# Test if FILE is an executable regular file.
373as_fn_executable_p ()
374{
375 test -f "$1" && test -x "$1"
376} # as_fn_executable_p
f35db108
WM
377# as_fn_append VAR VALUE
378# ----------------------
379# Append the text in VALUE to the end of the definition contained in VAR. Take
380# advantage of any shell optimizations that allow amortized linear growth over
381# repeated appends, instead of the typical quadratic growth present in naive
382# implementations.
383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388else
389 as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 }
393fi # as_fn_append
394
395# as_fn_arith ARG...
396# ------------------
397# Perform arithmetic evaluation on the ARGs, and store the result in the
398# global $as_val. Take advantage of shells that can avoid forks. The arguments
399# must be portable across $(()) and expr.
400if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 eval 'as_fn_arith ()
402 {
403 as_val=$(( $* ))
404 }'
405else
406 as_fn_arith ()
407 {
408 as_val=`expr "$@" || test $? -eq 1`
409 }
410fi # as_fn_arith
411
412
22e05272
JM
413# as_fn_error STATUS ERROR [LINENO LOG_FD]
414# ----------------------------------------
f35db108
WM
415# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 417# script with STATUS, using 1 if that was 0.
f35db108
WM
418as_fn_error ()
419{
22e05272
JM
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
f35db108 424 fi
22e05272 425 $as_echo "$as_me: error: $2" >&2
f35db108
WM
426 as_fn_exit $as_status
427} # as_fn_error
428
429if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
432else
433 as_expr=false
434fi
435
436if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438else
439 as_basename=false
440fi
441
442if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444else
445 as_dirname=false
446fi
447
448as_me=`$as_basename -- "$0" ||
449$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452$as_echo X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
466
467# Avoid depending upon Character Ranges.
468as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471as_cr_digits='0123456789'
472as_cr_alnum=$as_cr_Letters$as_cr_digits
473
474
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 s/[$]LINENO.*/&-/
486 t lineno
487 b
488 :lineno
489 N
490 :loop
491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492 t loop
493 s/-\n.*//
494 ' >$as_me.lineno &&
495 chmod +x "$as_me.lineno" ||
496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
497
22e05272
JM
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
f35db108
WM
502 # Don't try to exec as it changes $[0], causing all sort of problems
503 # (the dirname of $[0] is not the place where we might find the
504 # original and so on. Autoconf is especially sensitive to this).
505 . "./$as_me.lineno"
506 # Exit status is that of the last command.
507 exit
508}
509
510ECHO_C= ECHO_N= ECHO_T=
511case `echo -n x` in #(((((
512-n*)
513 case `echo 'xy\c'` in
514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
515 xy) ECHO_C='\c';;
516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
517 ECHO_T=' ';;
518 esac;;
519*)
520 ECHO_N='-n';;
521esac
522
523rm -f conf$$ conf$$.exe conf$$.file
524if test -d conf$$.dir; then
525 rm -f conf$$.dir/conf$$.file
526else
527 rm -f conf$$.dir
528 mkdir conf$$.dir 2>/dev/null
529fi
530if (echo >conf$$.file) 2>/dev/null; then
531 if ln -s conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s='ln -s'
533 # ... but there are two gotchas:
534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 536 # In both cases, we have to default to `cp -pR'.
f35db108 537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 538 as_ln_s='cp -pR'
f35db108
WM
539 elif ln conf$$.file conf$$ 2>/dev/null; then
540 as_ln_s=ln
541 else
22e05272 542 as_ln_s='cp -pR'
f35db108
WM
543 fi
544else
22e05272 545 as_ln_s='cp -pR'
f35db108
WM
546fi
547rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548rmdir conf$$.dir 2>/dev/null
549
550if mkdir -p . 2>/dev/null; then
551 as_mkdir_p='mkdir -p "$as_dir"'
552else
553 test -d ./-p && rmdir ./-p
554 as_mkdir_p=false
555fi
556
22e05272
JM
557as_test_x='test -x'
558as_executable_p=as_fn_executable_p
f35db108
WM
559
560# Sed expression to map a string onto a valid CPP name.
561as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
562
563# Sed expression to map a string onto a valid variable name.
564as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
565
566SHELL=${CONFIG_SHELL-/bin/sh}
567
568
22e05272
JM
569test -n "$DJDIR" || exec 7<&0 </dev/null
570exec 6>&1
f35db108
WM
571
572# Name of the host.
22e05272 573# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
f35db108
WM
574# so uname gets run too.
575ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576
577#
578# Initializations.
579#
580ac_default_prefix=/usr/local
581ac_clean_files=
582ac_config_libobj_dir=.
583LIBOBJS=
584cross_compiling=no
585subdirs=
586MFLAGS=
587MAKEFLAGS=
588
589# Identity of this package.
590PACKAGE_NAME='package-unused'
591PACKAGE_TARNAME='package-unused'
592PACKAGE_VERSION='version-unused'
593PACKAGE_STRING='package-unused version-unused'
594PACKAGE_BUGREPORT='libsanitizer'
595PACKAGE_URL=''
596
597ac_unique_file="include/sanitizer/common_interface_defs.h"
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612# include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617# include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
9069eb28
IT
638EXTRA_CXXFLAGS
639EXTRA_CFLAGS
640EXTRA_ASFLAGS
3c36aa6b 641get_gcc_base_ver
10189819 642SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS
b0edd457 643TSAN_TARGET_DEPENDENT_OBJECTS
c915a581
JJ
644LIBBACKTRACE_SUPPORTED_FALSE
645LIBBACKTRACE_SUPPORTED_TRUE
d041a6fc 646RPC_DEFS
c915a581
JJ
647BACKTRACE_SUPPORTS_THREADS
648BACKTRACE_USES_MALLOC
649ALLOC_FILE
650VIEW_FILE
651BACKTRACE_SUPPORTED
652FORMAT_FILE
4a7eaf5f
YG
653SANITIZER_SUPPORTED_FALSE
654SANITIZER_SUPPORTED_TRUE
8c4d267c
KS
655USING_MAC_INTERPOSE_FALSE
656USING_MAC_INTERPOSE_TRUE
35814b03
JJ
657link_liblsan
658link_libubsan
659link_libtsan
660link_libasan
9065ada9
JJ
661LSAN_SUPPORTED_FALSE
662LSAN_SUPPORTED_TRUE
64548f3b
JJ
663TSAN_SUPPORTED_FALSE
664TSAN_SUPPORTED_TRUE
f35db108
WM
665enable_static
666enable_shared
667CXXCPP
f35db108
WM
668OTOOL64
669OTOOL
670LIPO
671NMEDIT
672DSYMUTIL
f35db108 673AR
f35db108
WM
674OBJDUMP
675LN_S
676NM
677ac_ct_DUMPBIN
678DUMPBIN
679LD
680FGREP
f35db108 681SED
f35db108 682LIBTOOL
c915a581 683RANLIB
f35db108
WM
684am__fastdepCCAS_FALSE
685am__fastdepCCAS_TRUE
686CCASDEPMODE
687CCASFLAGS
688CCAS
689am__fastdepCXX_FALSE
690am__fastdepCXX_TRUE
691CXXDEPMODE
692ac_ct_CXX
693CXXFLAGS
694CXX
c915a581
JJ
695toolexeclibdir
696toolexecdir
697MAINT
698MAINTAINER_MODE_FALSE
699MAINTAINER_MODE_TRUE
22e05272
JM
700AM_BACKSLASH
701AM_DEFAULT_VERBOSITY
702AM_DEFAULT_V
703AM_V
f35db108
WM
704am__fastdepCC_FALSE
705am__fastdepCC_TRUE
706CCDEPMODE
f3915b42 707am__nodep
f35db108
WM
708AMDEPBACKSLASH
709AMDEP_FALSE
710AMDEP_TRUE
711am__quote
712am__include
713DEPDIR
f35db108
WM
714am__untar
715am__tar
716AMTAR
717am__leading_dot
718SET_MAKE
719AWK
720mkdir_p
721MKDIR_P
722INSTALL_STRIP_PROGRAM
723STRIP
724install_sh
725MAKEINFO
726AUTOHEADER
727AUTOMAKE
728AUTOCONF
729ACLOCAL
730VERSION
731PACKAGE
732CYGPATH_W
733am__isrc
734INSTALL_DATA
735INSTALL_SCRIPT
736INSTALL_PROGRAM
e1e953d9 737LIBSTDCXX_RAW_CXX_LDFLAGS
d10a2df2
L
738LIBSTDCXX_RAW_CXX_CXXFLAGS
739target_noncanonical
2a6346c4
L
740target_os
741target_vendor
742target_cpu
743target
744host_os
745host_vendor
746host_cpu
747host
748build_os
749build_vendor
750build_cpu
751build
c915a581
JJ
752EGREP
753GREP
754CPP
755OBJEXT
756EXEEXT
757ac_ct_CC
758CPPFLAGS
759LDFLAGS
760CFLAGS
761CC
94213c10 762multi_basedir
f35db108
WM
763target_alias
764host_alias
765build_alias
766LIBS
767ECHO_T
768ECHO_N
769ECHO_C
770DEFS
771mandir
772localedir
773libdir
774psdir
775pdfdir
776dvidir
777htmldir
778infodir
779docdir
780oldincludedir
781includedir
782localstatedir
783sharedstatedir
784sysconfdir
785datadir
786datarootdir
787libexecdir
788sbindir
789bindir
790program_transform_name
791prefix
792exec_prefix
793PACKAGE_URL
794PACKAGE_BUGREPORT
795PACKAGE_STRING
796PACKAGE_VERSION
797PACKAGE_TARNAME
798PACKAGE_NAME
799PATH_SEPARATOR
800SHELL'
801ac_subst_files=''
802ac_user_opts='
803enable_option_checking
94213c10 804enable_multilib
2a6346c4 805enable_version_specific_runtime_libs
c915a581 806enable_dependency_tracking
22e05272 807enable_silent_rules
2b723e21 808enable_maintainer_mode
f35db108
WM
809enable_shared
810enable_static
811with_pic
812enable_fast_install
813with_gnu_ld
f35db108 814enable_libtool_lock
3c36aa6b 815with_gcc_major_version_only
9069eb28 816enable_cet
f35db108
WM
817'
818 ac_precious_vars='build_alias
819host_alias
820target_alias
821CC
822CFLAGS
823LDFLAGS
824LIBS
825CPPFLAGS
c915a581 826CPP
f35db108
WM
827CXX
828CXXFLAGS
829CCC
830CCAS
831CCASFLAGS
f35db108
WM
832CXXCPP'
833
834
835# Initialize some variables set by options.
836ac_init_help=
837ac_init_version=false
838ac_unrecognized_opts=
839ac_unrecognized_sep=
840# The variables have the same names as the options, with
841# dashes changed to underlines.
842cache_file=/dev/null
843exec_prefix=NONE
844no_create=
845no_recursion=
846prefix=NONE
847program_prefix=NONE
848program_suffix=NONE
849program_transform_name=s,x,x,
850silent=
851site=
852srcdir=
853verbose=
854x_includes=NONE
855x_libraries=NONE
856
857# Installation directory options.
858# These are left unexpanded so users can "make install exec_prefix=/foo"
859# and all the variables that are supposed to be based on exec_prefix
860# by default will actually change.
861# Use braces instead of parens because sh, perl, etc. also accept them.
862# (The list follows the same order as the GNU Coding Standards.)
863bindir='${exec_prefix}/bin'
864sbindir='${exec_prefix}/sbin'
865libexecdir='${exec_prefix}/libexec'
866datarootdir='${prefix}/share'
867datadir='${datarootdir}'
868sysconfdir='${prefix}/etc'
869sharedstatedir='${prefix}/com'
870localstatedir='${prefix}/var'
871includedir='${prefix}/include'
872oldincludedir='/usr/include'
873docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874infodir='${datarootdir}/info'
875htmldir='${docdir}'
876dvidir='${docdir}'
877pdfdir='${docdir}'
878psdir='${docdir}'
879libdir='${exec_prefix}/lib'
880localedir='${datarootdir}/locale'
881mandir='${datarootdir}/man'
882
883ac_prev=
884ac_dashdash=
885for ac_option
886do
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\$ac_option
890 ac_prev=
891 continue
892 fi
893
894 case $ac_option in
22e05272
JM
895 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 *=) ac_optarg= ;;
897 *) ac_optarg=yes ;;
f35db108
WM
898 esac
899
900 # Accept the important Cygnus configure options, so we can diagnose typos.
901
902 case $ac_dashdash$ac_option in
903 --)
904 ac_dashdash=yes ;;
905
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 ac_prev=bindir ;;
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 bindir=$ac_optarg ;;
910
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
915
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
922
923 --config-cache | -C)
924 cache_file=config.cache ;;
925
926 -datadir | --datadir | --datadi | --datad)
927 ac_prev=datadir ;;
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
930
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
937
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 942 as_fn_error $? "invalid feature name: $ac_useropt"
f35db108
WM
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947"enable_$ac_useropt"
948"*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=no ;;
953
954 -docdir | --docdir | --docdi | --doc | --do)
955 ac_prev=docdir ;;
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957 docdir=$ac_optarg ;;
958
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960 ac_prev=dvidir ;;
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962 dvidir=$ac_optarg ;;
963
964 -enable-* | --enable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 968 as_fn_error $? "invalid feature name: $ac_useropt"
f35db108
WM
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973"enable_$ac_useropt"
974"*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=\$ac_optarg ;;
979
980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982 | --exec | --exe | --ex)
983 ac_prev=exec_prefix ;;
984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986 | --exec=* | --exe=* | --ex=*)
987 exec_prefix=$ac_optarg ;;
988
989 -gas | --gas | --ga | --g)
990 # Obsolete; use --with-gas.
991 with_gas=yes ;;
992
993 -help | --help | --hel | --he | -h)
994 ac_init_help=long ;;
995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996 ac_init_help=recursive ;;
997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998 ac_init_help=short ;;
999
1000 -host | --host | --hos | --ho)
1001 ac_prev=host_alias ;;
1002 -host=* | --host=* | --hos=* | --ho=*)
1003 host_alias=$ac_optarg ;;
1004
1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006 ac_prev=htmldir ;;
1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008 | --ht=*)
1009 htmldir=$ac_optarg ;;
1010
1011 -includedir | --includedir | --includedi | --included | --include \
1012 | --includ | --inclu | --incl | --inc)
1013 ac_prev=includedir ;;
1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015 | --includ=* | --inclu=* | --incl=* | --inc=*)
1016 includedir=$ac_optarg ;;
1017
1018 -infodir | --infodir | --infodi | --infod | --info | --inf)
1019 ac_prev=infodir ;;
1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021 infodir=$ac_optarg ;;
1022
1023 -libdir | --libdir | --libdi | --libd)
1024 ac_prev=libdir ;;
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 libdir=$ac_optarg ;;
1027
1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029 | --libexe | --libex | --libe)
1030 ac_prev=libexecdir ;;
1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032 | --libexe=* | --libex=* | --libe=*)
1033 libexecdir=$ac_optarg ;;
1034
1035 -localedir | --localedir | --localedi | --localed | --locale)
1036 ac_prev=localedir ;;
1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038 localedir=$ac_optarg ;;
1039
1040 -localstatedir | --localstatedir | --localstatedi | --localstated \
1041 | --localstate | --localstat | --localsta | --localst | --locals)
1042 ac_prev=localstatedir ;;
1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045 localstatedir=$ac_optarg ;;
1046
1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048 ac_prev=mandir ;;
1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050 mandir=$ac_optarg ;;
1051
1052 -nfp | --nfp | --nf)
1053 # Obsolete; use --without-fp.
1054 with_fp=no ;;
1055
1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057 | --no-cr | --no-c | -n)
1058 no_create=yes ;;
1059
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062 no_recursion=yes ;;
1063
1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066 | --oldin | --oldi | --old | --ol | --o)
1067 ac_prev=oldincludedir ;;
1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071 oldincludedir=$ac_optarg ;;
1072
1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074 ac_prev=prefix ;;
1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076 prefix=$ac_optarg ;;
1077
1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079 | --program-pre | --program-pr | --program-p)
1080 ac_prev=program_prefix ;;
1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083 program_prefix=$ac_optarg ;;
1084
1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086 | --program-suf | --program-su | --program-s)
1087 ac_prev=program_suffix ;;
1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090 program_suffix=$ac_optarg ;;
1091
1092 -program-transform-name | --program-transform-name \
1093 | --program-transform-nam | --program-transform-na \
1094 | --program-transform-n | --program-transform- \
1095 | --program-transform | --program-transfor \
1096 | --program-transfo | --program-transf \
1097 | --program-trans | --program-tran \
1098 | --progr-tra | --program-tr | --program-t)
1099 ac_prev=program_transform_name ;;
1100 -program-transform-name=* | --program-transform-name=* \
1101 | --program-transform-nam=* | --program-transform-na=* \
1102 | --program-transform-n=* | --program-transform-=* \
1103 | --program-transform=* | --program-transfor=* \
1104 | --program-transfo=* | --program-transf=* \
1105 | --program-trans=* | --program-tran=* \
1106 | --progr-tra=* | --program-tr=* | --program-t=*)
1107 program_transform_name=$ac_optarg ;;
1108
1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110 ac_prev=pdfdir ;;
1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112 pdfdir=$ac_optarg ;;
1113
1114 -psdir | --psdir | --psdi | --psd | --ps)
1115 ac_prev=psdir ;;
1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117 psdir=$ac_optarg ;;
1118
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1121 silent=yes ;;
1122
1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124 ac_prev=sbindir ;;
1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126 | --sbi=* | --sb=*)
1127 sbindir=$ac_optarg ;;
1128
1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131 | --sharedst | --shareds | --shared | --share | --shar \
1132 | --sha | --sh)
1133 ac_prev=sharedstatedir ;;
1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137 | --sha=* | --sh=*)
1138 sharedstatedir=$ac_optarg ;;
1139
1140 -site | --site | --sit)
1141 ac_prev=site ;;
1142 -site=* | --site=* | --sit=*)
1143 site=$ac_optarg ;;
1144
1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146 ac_prev=srcdir ;;
1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148 srcdir=$ac_optarg ;;
1149
1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151 | --syscon | --sysco | --sysc | --sys | --sy)
1152 ac_prev=sysconfdir ;;
1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155 sysconfdir=$ac_optarg ;;
1156
1157 -target | --target | --targe | --targ | --tar | --ta | --t)
1158 ac_prev=target_alias ;;
1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160 target_alias=$ac_optarg ;;
1161
1162 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1163 verbose=yes ;;
1164
1165 -version | --version | --versio | --versi | --vers | -V)
1166 ac_init_version=: ;;
1167
1168 -with-* | --with-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1172 as_fn_error $? "invalid package name: $ac_useropt"
f35db108
WM
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177"with_$ac_useropt"
1178"*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=\$ac_optarg ;;
1183
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1188 as_fn_error $? "invalid package name: $ac_useropt"
f35db108
WM
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1192 *"
1193"with_$ac_useropt"
1194"*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=no ;;
1199
1200 --x)
1201 # Obsolete; use --with-x.
1202 with_x=yes ;;
1203
1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205 | --x-incl | --x-inc | --x-in | --x-i)
1206 ac_prev=x_includes ;;
1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209 x_includes=$ac_optarg ;;
1210
1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213 ac_prev=x_libraries ;;
1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216 x_libraries=$ac_optarg ;;
1217
22e05272
JM
1218 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1219Try \`$0 --help' for more information"
f35db108
WM
1220 ;;
1221
1222 *=*)
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1227 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
f35db108
WM
1228 esac
1229 eval $ac_envvar=\$ac_optarg
1230 export $ac_envvar ;;
1231
1232 *)
1233 # FIXME: should be removed in autoconf 3.0.
1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1237 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
f35db108
WM
1238 ;;
1239
1240 esac
1241done
1242
1243if test -n "$ac_prev"; then
1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1245 as_fn_error $? "missing argument to $ac_option"
f35db108
WM
1246fi
1247
1248if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1250 no) ;;
22e05272 1251 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
f35db108
WM
1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1253 esac
1254fi
1255
1256# Check all directory arguments for consistency.
1257for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir
1261do
1262 eval ac_val=\$$ac_var
1263 # Remove trailing slashes.
1264 case $ac_val in
1265 */ )
1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\$ac_val;;
1268 esac
1269 # Be sure to have absolute directory names.
1270 case $ac_val in
1271 [\\/$]* | ?:[\\/]* ) continue;;
1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273 esac
22e05272 1274 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
f35db108
WM
1275done
1276
1277# There might be people who depend on the old broken behavior: `$host'
1278# used to hold the argument of --host etc.
1279# FIXME: To remove some day.
1280build=$build_alias
1281host=$host_alias
1282target=$target_alias
1283
1284# FIXME: To remove some day.
1285if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
f35db108
WM
1288 elif test "x$build_alias" != "x$host_alias"; then
1289 cross_compiling=yes
1290 fi
1291fi
1292
1293ac_tool_prefix=
1294test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296test "$silent" = yes && exec 6>/dev/null
1297
1298
1299ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300ac_ls_di=`ls -di .` &&
1301ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1302 as_fn_error $? "working directory cannot be determined"
f35db108 1303test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1304 as_fn_error $? "pwd does not report name of working directory"
f35db108
WM
1305
1306
1307# Find the source files, if location was not specified.
1308if test -z "$srcdir"; then
1309 ac_srcdir_defaulted=yes
1310 # Try the directory containing this script, then the parent directory.
1311 ac_confdir=`$as_dirname -- "$as_myself" ||
1312$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313 X"$as_myself" : 'X\(//\)[^/]' \| \
1314 X"$as_myself" : 'X\(//\)$' \| \
1315 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316$as_echo X"$as_myself" |
1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)[^/].*/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\).*/{
1330 s//\1/
1331 q
1332 }
1333 s/.*/./; q'`
1334 srcdir=$ac_confdir
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 srcdir=..
1337 fi
1338else
1339 ac_srcdir_defaulted=no
1340fi
1341if test ! -r "$srcdir/$ac_unique_file"; then
1342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1343 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
f35db108
WM
1344fi
1345ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346ac_abs_confdir=`(
22e05272 1347 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
f35db108
WM
1348 pwd)`
1349# When building in place, set srcdir=.
1350if test "$ac_abs_confdir" = "$ac_pwd"; then
1351 srcdir=.
1352fi
1353# Remove unnecessary trailing slashes from srcdir.
1354# Double slashes in file names in object file debugging info
1355# mess up M-x gdb in Emacs.
1356case $srcdir in
1357*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358esac
1359for ac_var in $ac_precious_vars; do
1360 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_${ac_var}_value=\$${ac_var}
1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364done
1365
1366#
1367# Report the --help message.
1368#
1369if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1372 cat <<_ACEOF
1373\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1374
1375Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378VAR=VALUE. See below for descriptions of some of the useful variables.
1379
1380Defaults for the options are specified in brackets.
1381
1382Configuration:
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
22e05272 1387 -q, --quiet, --silent do not print \`checking ...' messages
f35db108
WM
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for \`--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392
1393Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
1395 [$ac_default_prefix]
1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397 [PREFIX]
1398
1399By default, \`make install' will install all the files in
1400\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1401an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402for instance \`--prefix=\$HOME'.
1403
1404For better control, use the options below.
1405
1406Fine tuning of the installation directories:
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --libdir=DIR object code libraries [EPREFIX/lib]
1414 --includedir=DIR C header files [PREFIX/include]
1415 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1418 --infodir=DIR info documentation [DATAROOTDIR/info]
1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1420 --mandir=DIR man documentation [DATAROOTDIR/man]
1421 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1426_ACEOF
1427
1428 cat <<\_ACEOF
1429
1430Program names:
1431 --program-prefix=PREFIX prepend PREFIX to installed program names
1432 --program-suffix=SUFFIX append SUFFIX to installed program names
1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1434
1435System types:
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2a6346c4 1438 --target=TARGET configure for building compilers for TARGET [HOST]
f35db108
WM
1439_ACEOF
1440fi
1441
1442if test -n "$ac_init_help"; then
1443 case $ac_init_help in
1444 short | recursive ) echo "Configuration of package-unused version-unused:";;
1445 esac
1446 cat <<\_ACEOF
1447
1448Optional Features:
1449 --disable-option-checking ignore unrecognized --enable/--with options
1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
94213c10 1452 --enable-multilib build many library versions (default)
2a6346c4 1453 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
22e05272
JM
1454 --enable-dependency-tracking
1455 do not reject slow dependency extractors
1456 --disable-dependency-tracking
1457 speeds up one-time build
1458 --enable-silent-rules less verbose build output (undo: "make V=1")
1459 --disable-silent-rules verbose build output (undo: "make V=0")
1460 --enable-maintainer-mode
1461 enable make rules and dependencies not useful (and
1462 sometimes confusing) to the casual installer
f35db108
WM
1463 --enable-shared[=PKGS] build shared libraries [default=yes]
1464 --enable-static[=PKGS] build static libraries [default=yes]
1465 --enable-fast-install[=PKGS]
1466 optimize for fast installation [default=yes]
1467 --disable-libtool-lock avoid locking (might break parallel builds)
a0e1df88 1468 --enable-cet enable Intel CET in target libraries [default=no]
f35db108
WM
1469
1470Optional Packages:
1471 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1472 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a2479b3d 1473 --with-pic try to use only PIC/non-PIC objects [default=use
f35db108
WM
1474 both]
1475 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3c36aa6b
JJ
1476 --with-gcc-major-version-only
1477 use only GCC major number in filesystem paths
f35db108
WM
1478
1479Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
1484 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1485 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
f35db108 1486 you have headers in a nonstandard directory <include dir>
c915a581 1487 CPP C preprocessor
f35db108
WM
1488 CXX C++ compiler command
1489 CXXFLAGS C++ compiler flags
1490 CCAS assembler compiler command (defaults to CC)
1491 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
f35db108
WM
1492 CXXCPP C++ preprocessor
1493
1494Use these variables to override the choices made by `configure' or to help
1495it to find libraries and programs with nonstandard names/locations.
1496
1497Report bugs to <libsanitizer>.
1498_ACEOF
1499ac_status=$?
1500fi
1501
1502if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 continue
1508 ac_builddir=.
1509
1510case "$ac_dir" in
1511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512*)
1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520esac
1521ac_abs_top_builddir=$ac_pwd
1522ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523# for backward compatibility:
1524ac_top_builddir=$ac_top_build_prefix
1525
1526case $srcdir in
1527 .) # We are building in place.
1528 ac_srcdir=.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539esac
1540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1550 else
1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 fi || ac_status=$?
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1554 done
1555fi
1556
1557test -n "$ac_init_help" && exit $ac_status
1558if $ac_init_version; then
1559 cat <<\_ACEOF
1560package-unused configure version-unused
22e05272 1561generated by GNU Autoconf 2.69
f35db108 1562
22e05272 1563Copyright (C) 2012 Free Software Foundation, Inc.
f35db108
WM
1564This configure script is free software; the Free Software Foundation
1565gives unlimited permission to copy, distribute and modify it.
1566_ACEOF
1567 exit
1568fi
1569
1570## ------------------------ ##
1571## Autoconf initialization. ##
1572## ------------------------ ##
1573
1574# ac_fn_c_try_compile LINENO
1575# --------------------------
1576# Try to compile conftest.$ac_ext, and return whether this succeeded.
1577ac_fn_c_try_compile ()
1578{
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1582case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585esac
1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587$as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.$ac_objext; then :
1600 ac_retval=0
1601else
1602 $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606fi
22e05272
JM
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
f35db108
WM
1609
1610} # ac_fn_c_try_compile
1611
c915a581
JJ
1612# ac_fn_c_try_cpp LINENO
1613# ----------------------
1614# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1615ac_fn_c_try_cpp ()
f35db108
WM
1616{
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c915a581 1618 if { { ac_try="$ac_cpp conftest.$ac_ext"
f35db108
WM
1619case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624$as_echo "$ac_try_echo"; } >&5
c915a581 1625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
f35db108
WM
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1633 test $ac_status = 0; } > conftest.i && {
c915a581 1634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
f35db108 1635 test ! -s conftest.err
c915a581 1636 }; then :
f35db108
WM
1637 ac_retval=0
1638else
1639 $as_echo "$as_me: failed program was:" >&5
1640sed 's/^/| /' conftest.$ac_ext >&5
1641
c915a581 1642 ac_retval=1
f35db108 1643fi
22e05272
JM
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
f35db108 1646
c915a581 1647} # ac_fn_c_try_cpp
f35db108 1648
c915a581
JJ
1649# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1650# -------------------------------------------------------
1651# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1652# the include files in INCLUDES and setting the cache variable VAR
1653# accordingly.
1654ac_fn_c_check_header_mongrel ()
1655{
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1657 if eval \${$3+:} false; then :
c915a581
JJ
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659$as_echo_n "checking for $2... " >&6; }
22e05272 1660if eval \${$3+:} false; then :
c915a581
JJ
1661 $as_echo_n "(cached) " >&6
1662fi
1663eval ac_res=\$$3
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665$as_echo "$ac_res" >&6; }
1666else
1667 # Is the header compilable?
1668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1669$as_echo_n "checking $2 usability... " >&6; }
1670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671/* end confdefs.h. */
1672$4
1673#include <$2>
1674_ACEOF
1675if ac_fn_c_try_compile "$LINENO"; then :
1676 ac_header_compiler=yes
1677else
1678 ac_header_compiler=no
1679fi
1680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1682$as_echo "$ac_header_compiler" >&6; }
1683
1684# Is the header present?
1685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1686$as_echo_n "checking $2 presence... " >&6; }
1687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688/* end confdefs.h. */
1689#include <$2>
1690_ACEOF
1691if ac_fn_c_try_cpp "$LINENO"; then :
1692 ac_header_preproc=yes
1693else
1694 ac_header_preproc=no
1695fi
22e05272 1696rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
1697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1698$as_echo "$ac_header_preproc" >&6; }
1699
1700# So? What about this header?
1701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1702 yes:no: )
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1704$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1706$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1707 ;;
1708 no:yes:* )
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1710$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1712$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1714$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1716$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1718$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
22e05272 1719( $as_echo "## --------------------------- ##
c915a581 1720## Report this to libsanitizer ##
22e05272 1721## --------------------------- ##"
c915a581
JJ
1722 ) | sed "s/^/$as_me: WARNING: /" >&2
1723 ;;
1724esac
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726$as_echo_n "checking for $2... " >&6; }
22e05272 1727if eval \${$3+:} false; then :
c915a581
JJ
1728 $as_echo_n "(cached) " >&6
1729else
1730 eval "$3=\$ac_header_compiler"
1731fi
1732eval ac_res=\$$3
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734$as_echo "$ac_res" >&6; }
1735fi
22e05272 1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c915a581
JJ
1737
1738} # ac_fn_c_check_header_mongrel
1739
1740# ac_fn_c_try_run LINENO
1741# ----------------------
1742# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1743# that executables *can* be run.
1744ac_fn_c_try_run ()
f35db108
WM
1745{
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
f35db108
WM
1747 if { { ac_try="$ac_link"
1748case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753$as_echo "$ac_try_echo"; } >&5
c915a581 1754 (eval "$ac_link") 2>&5
f35db108 1755 ac_status=$?
f35db108 1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c915a581
JJ
1757 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1758 { { case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_try") 2>&5
1765 ac_status=$?
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; }; }; then :
f35db108
WM
1768 ac_retval=0
1769else
c915a581
JJ
1770 $as_echo "$as_me: program exited with status $ac_status" >&5
1771 $as_echo "$as_me: failed program was:" >&5
f35db108
WM
1772sed 's/^/| /' conftest.$ac_ext >&5
1773
c915a581 1774 ac_retval=$ac_status
f35db108 1775fi
f35db108 1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
f35db108 1779
c915a581 1780} # ac_fn_c_try_run
f35db108
WM
1781
1782# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1783# -------------------------------------------------------
1784# Tests whether HEADER exists and can be compiled using the include files in
1785# INCLUDES, setting the cache variable VAR accordingly.
1786ac_fn_c_check_header_compile ()
1787{
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790$as_echo_n "checking for $2... " >&6; }
22e05272 1791if eval \${$3+:} false; then :
f35db108
WM
1792 $as_echo_n "(cached) " >&6
1793else
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795/* end confdefs.h. */
1796$4
1797#include <$2>
1798_ACEOF
1799if ac_fn_c_try_compile "$LINENO"; then :
1800 eval "$3=yes"
1801else
1802 eval "$3=no"
1803fi
1804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805fi
1806eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808$as_echo "$ac_res" >&6; }
22e05272 1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
f35db108
WM
1810
1811} # ac_fn_c_check_header_compile
1812
c915a581
JJ
1813# ac_fn_cxx_try_compile LINENO
1814# ----------------------------
1815# Try to compile conftest.$ac_ext, and return whether this succeeded.
1816ac_fn_cxx_try_compile ()
f35db108
WM
1817{
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c915a581
JJ
1819 rm -f conftest.$ac_objext
1820 if { { ac_try="$ac_compile"
f35db108
WM
1821case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
c915a581 1827 (eval "$ac_compile") 2>conftest.err
f35db108
WM
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1833 fi
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c915a581
JJ
1835 test $ac_status = 0; } && {
1836 test -z "$ac_cxx_werror_flag" ||
f35db108 1837 test ! -s conftest.err
c915a581 1838 } && test -s conftest.$ac_objext; then :
f35db108
WM
1839 ac_retval=0
1840else
1841 $as_echo "$as_me: failed program was:" >&5
1842sed 's/^/| /' conftest.$ac_ext >&5
1843
c915a581 1844 ac_retval=1
f35db108 1845fi
22e05272
JM
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
f35db108 1848
c915a581 1849} # ac_fn_cxx_try_compile
f35db108 1850
c915a581
JJ
1851# ac_fn_c_try_link LINENO
1852# -----------------------
1853# Try to link conftest.$ac_ext, and return whether this succeeded.
1854ac_fn_c_try_link ()
f35db108
WM
1855{
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c915a581 1857 rm -f conftest.$ac_objext conftest$ac_exeext
f35db108
WM
1858 if { { ac_try="$ac_link"
1859case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862esac
1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864$as_echo "$ac_try_echo"; } >&5
c915a581 1865 (eval "$ac_link") 2>conftest.err
f35db108 1866 ac_status=$?
c915a581
JJ
1867 if test -s conftest.err; then
1868 grep -v '^ *+' conftest.err >conftest.er1
1869 cat conftest.er1 >&5
1870 mv -f conftest.er1 conftest.err
1871 fi
f35db108 1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c915a581
JJ
1873 test $ac_status = 0; } && {
1874 test -z "$ac_c_werror_flag" ||
1875 test ! -s conftest.err
1876 } && test -s conftest$ac_exeext && {
1877 test "$cross_compiling" = yes ||
22e05272 1878 test -x conftest$ac_exeext
c915a581 1879 }; then :
f35db108
WM
1880 ac_retval=0
1881else
c915a581 1882 $as_echo "$as_me: failed program was:" >&5
f35db108
WM
1883sed 's/^/| /' conftest.$ac_ext >&5
1884
c915a581 1885 ac_retval=1
f35db108 1886fi
c915a581
JJ
1887 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1888 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1889 # interfere with the next link command; also delete a directory that is
1890 # left behind by Apple's compiler. We do this before executing the actions.
f35db108 1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 as_fn_set_status $ac_retval
f35db108 1894
c915a581 1895} # ac_fn_c_try_link
f35db108
WM
1896
1897# ac_fn_c_check_func LINENO FUNC VAR
1898# ----------------------------------
1899# Tests whether FUNC exists, setting the cache variable VAR accordingly
1900ac_fn_c_check_func ()
1901{
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904$as_echo_n "checking for $2... " >&6; }
22e05272 1905if eval \${$3+:} false; then :
f35db108
WM
1906 $as_echo_n "(cached) " >&6
1907else
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909/* end confdefs.h. */
1910/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1912#define $2 innocuous_$2
1913
1914/* System header to define __stub macros and hopefully few prototypes,
1915 which can conflict with char $2 (); below.
1916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1917 <limits.h> exists even on freestanding compilers. */
1918
1919#ifdef __STDC__
1920# include <limits.h>
1921#else
1922# include <assert.h>
1923#endif
1924
1925#undef $2
1926
1927/* Override any GCC internal prototype to avoid an error.
1928 Use char because int might match the return type of a GCC
1929 builtin and then its argument prototype would still apply. */
1930#ifdef __cplusplus
1931extern "C"
1932#endif
1933char $2 ();
1934/* The GNU C library defines this for functions which it implements
1935 to always fail with ENOSYS. Some functions are actually named
1936 something starting with __ and the normal name is an alias. */
1937#if defined __stub_$2 || defined __stub___$2
1938choke me
1939#endif
1940
1941int
1942main ()
1943{
1944return $2 ();
1945 ;
1946 return 0;
1947}
1948_ACEOF
1949if ac_fn_c_try_link "$LINENO"; then :
1950 eval "$3=yes"
1951else
1952 eval "$3=no"
1953fi
1954rm -f core conftest.err conftest.$ac_objext \
1955 conftest$ac_exeext conftest.$ac_ext
1956fi
1957eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959$as_echo "$ac_res" >&6; }
22e05272 1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
f35db108
WM
1961
1962} # ac_fn_c_check_func
1963
1964# ac_fn_cxx_try_cpp LINENO
1965# ------------------------
1966# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1967ac_fn_cxx_try_cpp ()
1968{
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 if { { ac_try="$ac_cpp conftest.$ac_ext"
1971case "(($ac_try" in
1972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973 *) ac_try_echo=$ac_try;;
1974esac
1975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976$as_echo "$ac_try_echo"; } >&5
1977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1978 ac_status=$?
1979 if test -s conftest.err; then
1980 grep -v '^ *+' conftest.err >conftest.er1
1981 cat conftest.er1 >&5
1982 mv -f conftest.er1 conftest.err
1983 fi
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1985 test $ac_status = 0; } > conftest.i && {
f35db108
WM
1986 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1987 test ! -s conftest.err
1988 }; then :
1989 ac_retval=0
1990else
1991 $as_echo "$as_me: failed program was:" >&5
1992sed 's/^/| /' conftest.$ac_ext >&5
1993
1994 ac_retval=1
1995fi
22e05272
JM
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 as_fn_set_status $ac_retval
f35db108
WM
1998
1999} # ac_fn_cxx_try_cpp
2000
2001# ac_fn_cxx_try_link LINENO
2002# -------------------------
2003# Try to link conftest.$ac_ext, and return whether this succeeded.
2004ac_fn_cxx_try_link ()
2005{
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 rm -f conftest.$ac_objext conftest$ac_exeext
2008 if { { ac_try="$ac_link"
2009case "(($ac_try" in
2010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011 *) ac_try_echo=$ac_try;;
2012esac
2013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014$as_echo "$ac_try_echo"; } >&5
2015 (eval "$ac_link") 2>conftest.err
2016 ac_status=$?
2017 if test -s conftest.err; then
2018 grep -v '^ *+' conftest.err >conftest.er1
2019 cat conftest.er1 >&5
2020 mv -f conftest.er1 conftest.err
2021 fi
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; } && {
2024 test -z "$ac_cxx_werror_flag" ||
2025 test ! -s conftest.err
2026 } && test -s conftest$ac_exeext && {
2027 test "$cross_compiling" = yes ||
22e05272 2028 test -x conftest$ac_exeext
f35db108
WM
2029 }; then :
2030 ac_retval=0
2031else
2032 $as_echo "$as_me: failed program was:" >&5
2033sed 's/^/| /' conftest.$ac_ext >&5
2034
2035 ac_retval=1
2036fi
2037 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2038 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2039 # interfere with the next link command; also delete a directory that is
2040 # left behind by Apple's compiler. We do this before executing the actions.
2041 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 as_fn_set_status $ac_retval
f35db108
WM
2044
2045} # ac_fn_cxx_try_link
64548f3b
JJ
2046
2047# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2048# --------------------------------------------
2049# Tries to find the compile-time value of EXPR in a program that includes
2050# INCLUDES, setting VAR accordingly. Returns whether the value could be
2051# computed
2052ac_fn_c_compute_int ()
2053{
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if test "$cross_compiling" = yes; then
2056 # Depending upon the size, compute the lo and hi bounds.
2057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h. */
2059$4
2060int
2061main ()
2062{
2063static int test_array [1 - 2 * !(($2) >= 0)];
22e05272
JM
2064test_array [0] = 0;
2065return test_array [0];
64548f3b
JJ
2066
2067 ;
2068 return 0;
2069}
2070_ACEOF
2071if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_lo=0 ac_mid=0
2073 while :; do
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075/* end confdefs.h. */
2076$4
2077int
2078main ()
2079{
2080static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2081test_array [0] = 0;
2082return test_array [0];
64548f3b
JJ
2083
2084 ;
2085 return 0;
2086}
2087_ACEOF
2088if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_hi=$ac_mid; break
2090else
2091 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2092 if test $ac_lo -le $ac_mid; then
2093 ac_lo= ac_hi=
2094 break
2095 fi
2096 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2097fi
2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 done
2100else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102/* end confdefs.h. */
2103$4
2104int
2105main ()
2106{
2107static int test_array [1 - 2 * !(($2) < 0)];
22e05272
JM
2108test_array [0] = 0;
2109return test_array [0];
64548f3b
JJ
2110
2111 ;
2112 return 0;
2113}
2114_ACEOF
2115if ac_fn_c_try_compile "$LINENO"; then :
2116 ac_hi=-1 ac_mid=-1
2117 while :; do
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119/* end confdefs.h. */
2120$4
2121int
2122main ()
2123{
2124static int test_array [1 - 2 * !(($2) >= $ac_mid)];
22e05272
JM
2125test_array [0] = 0;
2126return test_array [0];
64548f3b
JJ
2127
2128 ;
2129 return 0;
2130}
2131_ACEOF
2132if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_lo=$ac_mid; break
2134else
2135 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2136 if test $ac_mid -le $ac_hi; then
2137 ac_lo= ac_hi=
2138 break
2139 fi
2140 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2141fi
2142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 done
2144else
2145 ac_lo= ac_hi=
2146fi
2147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148fi
2149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150# Binary search between lo and hi bounds.
2151while test "x$ac_lo" != "x$ac_hi"; do
2152 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154/* end confdefs.h. */
2155$4
2156int
2157main ()
2158{
2159static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2160test_array [0] = 0;
2161return test_array [0];
64548f3b
JJ
2162
2163 ;
2164 return 0;
2165}
2166_ACEOF
2167if ac_fn_c_try_compile "$LINENO"; then :
2168 ac_hi=$ac_mid
2169else
2170 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2171fi
2172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173done
2174case $ac_lo in #((
2175?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2176'') ac_retval=1 ;;
2177esac
2178 else
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h. */
2181$4
2182static long int longval () { return $2; }
2183static unsigned long int ulongval () { return $2; }
2184#include <stdio.h>
2185#include <stdlib.h>
2186int
2187main ()
2188{
2189
2190 FILE *f = fopen ("conftest.val", "w");
2191 if (! f)
2192 return 1;
2193 if (($2) < 0)
2194 {
2195 long int i = longval ();
2196 if (i != ($2))
2197 return 1;
2198 fprintf (f, "%ld", i);
2199 }
2200 else
2201 {
2202 unsigned long int i = ulongval ();
2203 if (i != ($2))
2204 return 1;
2205 fprintf (f, "%lu", i);
2206 }
2207 /* Do not output a trailing newline, as this causes \r\n confusion
2208 on some platforms. */
2209 return ferror (f) || fclose (f) != 0;
2210
2211 ;
2212 return 0;
2213}
2214_ACEOF
2215if ac_fn_c_try_run "$LINENO"; then :
2216 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2217else
2218 ac_retval=1
2219fi
2220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2221 conftest.$ac_objext conftest.beam conftest.$ac_ext
2222rm -f conftest.val
2223
2224 fi
22e05272
JM
2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226 as_fn_set_status $ac_retval
64548f3b
JJ
2227
2228} # ac_fn_c_compute_int
f35db108 2229
c915a581
JJ
2230# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2231# -------------------------------------------
2232# Tests whether TYPE exists after having included INCLUDES, setting cache
2233# variable VAR accordingly.
2234ac_fn_c_check_type ()
f35db108 2235{
c915a581
JJ
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238$as_echo_n "checking for $2... " >&6; }
22e05272 2239if eval \${$3+:} false; then :
c915a581
JJ
2240 $as_echo_n "(cached) " >&6
2241else
2242 eval "$3=no"
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244/* end confdefs.h. */
2245$4
2246int
2247main ()
2248{
2249if (sizeof ($2))
2250 return 0;
2251 ;
2252 return 0;
2253}
2254_ACEOF
2255if ac_fn_c_try_compile "$LINENO"; then :
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257/* end confdefs.h. */
2258$4
2259int
2260main ()
2261{
2262if (sizeof (($2)))
2263 return 0;
2264 ;
2265 return 0;
2266}
2267_ACEOF
2268if ac_fn_c_try_compile "$LINENO"; then :
2269
2270else
2271 eval "$3=yes"
2272fi
2273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274fi
2275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276fi
2277eval ac_res=\$$3
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279$as_echo "$ac_res" >&6; }
22e05272 2280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c915a581
JJ
2281
2282} # ac_fn_c_check_type
2283
22e05272
JM
2284# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2285# ---------------------------------------------
2286# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2287# accordingly.
c915a581
JJ
2288ac_fn_c_check_decl ()
2289{
2290 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2291 as_decl_name=`echo $2|sed 's/ *(.*//'`
2292 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2294$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
22e05272 2295if eval \${$3+:} false; then :
c915a581
JJ
2296 $as_echo_n "(cached) " >&6
2297else
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299/* end confdefs.h. */
2300$4
2301int
2302main ()
2303{
2304#ifndef $as_decl_name
2305#ifdef __cplusplus
2306 (void) $as_decl_use;
2307#else
2308 (void) $as_decl_name;
2309#endif
2310#endif
2311
2312 ;
2313 return 0;
2314}
2315_ACEOF
2316if ac_fn_c_try_compile "$LINENO"; then :
2317 eval "$3=yes"
2318else
2319 eval "$3=no"
2320fi
2321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322fi
2323eval ac_res=\$$3
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325$as_echo "$ac_res" >&6; }
22e05272 2326 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c915a581
JJ
2327
2328} # ac_fn_c_check_decl
2329cat >config.log <<_ACEOF
2330This file contains any messages produced by compilers while
2331running configure, to aid debugging if configure makes a mistake.
2332
2333It was created by package-unused $as_me version-unused, which was
22e05272 2334generated by GNU Autoconf 2.69. Invocation command line was
c915a581
JJ
2335
2336 $ $0 $@
2337
2338_ACEOF
2339exec 5>>config.log
2340{
2341cat <<_ASUNAME
2342## --------- ##
2343## Platform. ##
2344## --------- ##
2345
2346hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2347uname -m = `(uname -m) 2>/dev/null || echo unknown`
2348uname -r = `(uname -r) 2>/dev/null || echo unknown`
2349uname -s = `(uname -s) 2>/dev/null || echo unknown`
2350uname -v = `(uname -v) 2>/dev/null || echo unknown`
2351
2352/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2353/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2354
2355/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2356/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2357/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
f35db108
WM
2358/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2359/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2360/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2361/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2362
2363_ASUNAME
2364
2365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366for as_dir in $PATH
2367do
2368 IFS=$as_save_IFS
2369 test -z "$as_dir" && as_dir=.
2370 $as_echo "PATH: $as_dir"
2371 done
2372IFS=$as_save_IFS
2373
2374} >&5
2375
2376cat >&5 <<_ACEOF
2377
2378
2379## ----------- ##
2380## Core tests. ##
2381## ----------- ##
2382
2383_ACEOF
2384
2385
2386# Keep a trace of the command line.
2387# Strip out --no-create and --no-recursion so they do not pile up.
2388# Strip out --silent because we don't want to record it for future runs.
2389# Also quote any args containing shell meta-characters.
2390# Make two passes to allow for proper duplicate-argument suppression.
2391ac_configure_args=
2392ac_configure_args0=
2393ac_configure_args1=
2394ac_must_keep_next=false
2395for ac_pass in 1 2
2396do
2397 for ac_arg
2398 do
2399 case $ac_arg in
2400 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2401 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2402 | -silent | --silent | --silen | --sile | --sil)
2403 continue ;;
2404 *\'*)
2405 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2406 esac
2407 case $ac_pass in
2408 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2409 2)
2410 as_fn_append ac_configure_args1 " '$ac_arg'"
2411 if test $ac_must_keep_next = true; then
2412 ac_must_keep_next=false # Got value, back to normal.
2413 else
2414 case $ac_arg in
2415 *=* | --config-cache | -C | -disable-* | --disable-* \
2416 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2417 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2418 | -with-* | --with-* | -without-* | --without-* | --x)
2419 case "$ac_configure_args0 " in
2420 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2421 esac
2422 ;;
2423 -* ) ac_must_keep_next=true ;;
2424 esac
2425 fi
2426 as_fn_append ac_configure_args " '$ac_arg'"
2427 ;;
2428 esac
2429 done
2430done
2431{ ac_configure_args0=; unset ac_configure_args0;}
2432{ ac_configure_args1=; unset ac_configure_args1;}
2433
2434# When interrupted or exit'd, cleanup temporary files, and complete
2435# config.log. We remove comments because anyway the quotes in there
2436# would cause problems or look ugly.
2437# WARNING: Use '\'' to represent an apostrophe within the trap.
2438# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2439trap 'exit_status=$?
2440 # Save into config.log some information that might help in debugging.
2441 {
2442 echo
2443
22e05272 2444 $as_echo "## ---------------- ##
f35db108 2445## Cache variables. ##
22e05272 2446## ---------------- ##"
f35db108
WM
2447 echo
2448 # The following way of writing the cache mishandles newlines in values,
2449(
2450 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2451 eval ac_val=\$$ac_var
2452 case $ac_val in #(
2453 *${as_nl}*)
2454 case $ac_var in #(
2455 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2456$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2457 esac
2458 case $ac_var in #(
2459 _ | IFS | as_nl) ;; #(
2460 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2461 *) { eval $ac_var=; unset $ac_var;} ;;
2462 esac ;;
2463 esac
2464 done
2465 (set) 2>&1 |
2466 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2467 *${as_nl}ac_space=\ *)
2468 sed -n \
2469 "s/'\''/'\''\\\\'\'''\''/g;
2470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2471 ;; #(
2472 *)
2473 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2474 ;;
2475 esac |
2476 sort
2477)
2478 echo
2479
22e05272 2480 $as_echo "## ----------------- ##
f35db108 2481## Output variables. ##
22e05272 2482## ----------------- ##"
f35db108
WM
2483 echo
2484 for ac_var in $ac_subst_vars
2485 do
2486 eval ac_val=\$$ac_var
2487 case $ac_val in
2488 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2489 esac
2490 $as_echo "$ac_var='\''$ac_val'\''"
2491 done | sort
2492 echo
2493
2494 if test -n "$ac_subst_files"; then
22e05272 2495 $as_echo "## ------------------- ##
f35db108 2496## File substitutions. ##
22e05272 2497## ------------------- ##"
f35db108
WM
2498 echo
2499 for ac_var in $ac_subst_files
2500 do
2501 eval ac_val=\$$ac_var
2502 case $ac_val in
2503 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2504 esac
2505 $as_echo "$ac_var='\''$ac_val'\''"
2506 done | sort
2507 echo
2508 fi
2509
2510 if test -s confdefs.h; then
22e05272 2511 $as_echo "## ----------- ##
f35db108 2512## confdefs.h. ##
22e05272 2513## ----------- ##"
f35db108
WM
2514 echo
2515 cat confdefs.h
2516 echo
2517 fi
2518 test "$ac_signal" != 0 &&
2519 $as_echo "$as_me: caught signal $ac_signal"
2520 $as_echo "$as_me: exit $exit_status"
2521 } >&5
2522 rm -f core *.core core.conftest.* &&
2523 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2524 exit $exit_status
2525' 0
2526for ac_signal in 1 2 13 15; do
2527 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2528done
2529ac_signal=0
2530
2531# confdefs.h avoids OS command line length limits that DEFS can exceed.
2532rm -f -r conftest* confdefs.h
2533
2534$as_echo "/* confdefs.h */" > confdefs.h
2535
2536# Predefined preprocessor variables.
2537
2538cat >>confdefs.h <<_ACEOF
2539#define PACKAGE_NAME "$PACKAGE_NAME"
2540_ACEOF
2541
2542cat >>confdefs.h <<_ACEOF
2543#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2544_ACEOF
2545
2546cat >>confdefs.h <<_ACEOF
2547#define PACKAGE_VERSION "$PACKAGE_VERSION"
2548_ACEOF
2549
2550cat >>confdefs.h <<_ACEOF
2551#define PACKAGE_STRING "$PACKAGE_STRING"
2552_ACEOF
2553
2554cat >>confdefs.h <<_ACEOF
2555#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2556_ACEOF
2557
2558cat >>confdefs.h <<_ACEOF
2559#define PACKAGE_URL "$PACKAGE_URL"
2560_ACEOF
2561
2562
2563# Let the site file select an alternate cache file if it wants to.
2564# Prefer an explicitly selected file to automatically selected ones.
2565ac_site_file1=NONE
2566ac_site_file2=NONE
2567if test -n "$CONFIG_SITE"; then
22e05272
JM
2568 # We do not want a PATH search for config.site.
2569 case $CONFIG_SITE in #((
2570 -*) ac_site_file1=./$CONFIG_SITE;;
2571 */*) ac_site_file1=$CONFIG_SITE;;
2572 *) ac_site_file1=./$CONFIG_SITE;;
2573 esac
f35db108
WM
2574elif test "x$prefix" != xNONE; then
2575 ac_site_file1=$prefix/share/config.site
2576 ac_site_file2=$prefix/etc/config.site
2577else
2578 ac_site_file1=$ac_default_prefix/share/config.site
2579 ac_site_file2=$ac_default_prefix/etc/config.site
2580fi
2581for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2582do
2583 test "x$ac_site_file" = xNONE && continue
22e05272 2584 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
f35db108
WM
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2586$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2587 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2588 . "$ac_site_file" \
2589 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2591as_fn_error $? "failed to load site script $ac_site_file
2592See \`config.log' for more details" "$LINENO" 5; }
f35db108
WM
2593 fi
2594done
2595
2596if test -r "$cache_file"; then
22e05272
JM
2597 # Some versions of bash will fail to source /dev/null (special files
2598 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2599 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
f35db108
WM
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2601$as_echo "$as_me: loading cache $cache_file" >&6;}
2602 case $cache_file in
2603 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2604 *) . "./$cache_file";;
2605 esac
2606 fi
2607else
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2609$as_echo "$as_me: creating cache $cache_file" >&6;}
2610 >$cache_file
2611fi
2612
2613# Check that the precious variables saved in the cache have kept the same
2614# value.
2615ac_cache_corrupted=false
2616for ac_var in $ac_precious_vars; do
2617 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2618 eval ac_new_set=\$ac_env_${ac_var}_set
2619 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2620 eval ac_new_val=\$ac_env_${ac_var}_value
2621 case $ac_old_set,$ac_new_set in
2622 set,)
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2624$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2625 ac_cache_corrupted=: ;;
2626 ,set)
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2628$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2629 ac_cache_corrupted=: ;;
2630 ,);;
2631 *)
2632 if test "x$ac_old_val" != "x$ac_new_val"; then
2633 # differences in whitespace do not lead to failure.
2634 ac_old_val_w=`echo x $ac_old_val`
2635 ac_new_val_w=`echo x $ac_new_val`
2636 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2638$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2639 ac_cache_corrupted=:
2640 else
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2642$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2643 eval $ac_var=\$ac_old_val
2644 fi
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2646$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2648$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2649 fi;;
2650 esac
2651 # Pass precious variables to config.status.
2652 if test "$ac_new_set" = set; then
2653 case $ac_new_val in
2654 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2655 *) ac_arg=$ac_var=$ac_new_val ;;
2656 esac
2657 case " $ac_configure_args " in
2658 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2659 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2660 esac
2661 fi
2662done
2663if $ac_cache_corrupted; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2667$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2668 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
f35db108
WM
2669fi
2670## -------------------- ##
2671## Main body of script. ##
2672## -------------------- ##
2673
2674ac_ext=c
2675ac_cpp='$CPP $CPPFLAGS'
2676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679
2680
2681
a2479b3d
L
2682
2683
2684
4053ca2c 2685
94213c10
MK
2686# Default to --enable-multilib
2687# Check whether --enable-multilib was given.
2688if test "${enable_multilib+set}" = set; then :
2689 enableval=$enable_multilib; case "$enableval" in
2690 yes) multilib=yes ;;
2691 no) multilib=no ;;
22e05272 2692 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
94213c10
MK
2693 esac
2694else
2695 multilib=yes
2696fi
2697
2698
2699# We may get other options which we leave undocumented:
2700# --with-target-subdir, --with-multisrctop, --with-multisubdir
2701# See config-ml.in if you want the gory details.
2702
2703if test "$srcdir" = "."; then
2704 if test "$with_target_subdir" != "."; then
2705 multi_basedir="$srcdir/$with_multisrctop../.."
2706 else
2707 multi_basedir="$srcdir/$with_multisrctop.."
2708 fi
2709else
2710 multi_basedir="$srcdir/.."
2711fi
2712
2713
2714# Even if the default multilib is not a cross compilation,
2715# it may be that some of the other multilibs are.
2716if test $cross_compiling = no && test $multilib = yes \
2717 && test "x${with_multisubdir}" != x ; then
2718 cross_compiling=maybe
2719fi
2720
2721ac_config_commands="$ac_config_commands default-1"
2722
2723
2a6346c4
L
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2725$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2726# Check whether --enable-version-specific-runtime-libs was given.
2727if test "${enable_version_specific_runtime_libs+set}" = set; then :
2728 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2729 yes) version_specific_libs=yes ;;
2730 no) version_specific_libs=no ;;
22e05272 2731 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2a6346c4
L
2732 esac
2733else
2734 version_specific_libs=no
2735fi
2736
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2738$as_echo "$version_specific_libs" >&6; }
2739
22e05272
JM
2740ac_aux_dir=
2741for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2742 if test -f "$ac_dir/install-sh"; then
2743 ac_aux_dir=$ac_dir
2744 ac_install_sh="$ac_aux_dir/install-sh -c"
2745 break
2746 elif test -f "$ac_dir/install.sh"; then
2747 ac_aux_dir=$ac_dir
2748 ac_install_sh="$ac_aux_dir/install.sh -c"
2749 break
2750 elif test -f "$ac_dir/shtool"; then
2751 ac_aux_dir=$ac_dir
2752 ac_install_sh="$ac_aux_dir/shtool install -c"
2753 break
2754 fi
2755done
2756if test -z "$ac_aux_dir"; then
2757 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2758fi
2759
2760# These three variables are undocumented and unsupported,
2761# and are intended to be withdrawn in a future Autoconf release.
2762# They can cause serious problems if a builder's source tree is in a directory
2763# whose full name contains unusual characters.
2764ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2765ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2766ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2767
2768
2769# Expand $ac_aux_dir to an absolute path.
2770am_aux_dir=`cd "$ac_aux_dir" && pwd`
2771
c915a581
JJ
2772ac_ext=c
2773ac_cpp='$CPP $CPPFLAGS'
2774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777if test -n "$ac_tool_prefix"; then
2778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2779set dummy ${ac_tool_prefix}gcc; ac_word=$2
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2782if ${ac_cv_prog_CC+:} false; then :
2a6346c4
L
2783 $as_echo_n "(cached) " >&6
2784else
c915a581
JJ
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC="$CC" # Let the user override the test.
2787else
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
2795 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799done
2800 done
2801IFS=$as_save_IFS
2a6346c4
L
2802
2803fi
c915a581
JJ
2804fi
2805CC=$ac_cv_prog_CC
2806if test -n "$CC"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2808$as_echo "$CC" >&6; }
2809else
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811$as_echo "no" >&6; }
2812fi
2a6346c4
L
2813
2814
c915a581
JJ
2815fi
2816if test -z "$ac_cv_prog_CC"; then
2817 ac_ct_CC=$CC
2818 # Extract the first word of "gcc", so it can be a program name with args.
2819set dummy gcc; ac_word=$2
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2822if ${ac_cv_prog_ac_ct_CC+:} false; then :
2a6346c4
L
2823 $as_echo_n "(cached) " >&6
2824else
c915a581
JJ
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2a6346c4 2827else
c915a581
JJ
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
2835 ac_cv_prog_ac_ct_CC="gcc"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839done
2840 done
2841IFS=$as_save_IFS
2a6346c4
L
2842
2843fi
c915a581
JJ
2844fi
2845ac_ct_CC=$ac_cv_prog_ac_ct_CC
2846if test -n "$ac_ct_CC"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2848$as_echo "$ac_ct_CC" >&6; }
2849else
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851$as_echo "no" >&6; }
2852fi
2853
2854 if test "x$ac_ct_CC" = x; then
2855 CC=""
2856 else
2857 case $cross_compiling:$ac_tool_warned in
2858yes:)
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2861ac_tool_warned=yes ;;
2a6346c4 2862esac
c915a581
JJ
2863 CC=$ac_ct_CC
2864 fi
2865else
2866 CC="$ac_cv_prog_CC"
2867fi
2a6346c4 2868
c915a581
JJ
2869if test -z "$CC"; then
2870 if test -n "$ac_tool_prefix"; then
2871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2872set dummy ${ac_tool_prefix}cc; ac_word=$2
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2875if ${ac_cv_prog_CC+:} false; then :
2a6346c4
L
2876 $as_echo_n "(cached) " >&6
2877else
c915a581
JJ
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2a6346c4 2880else
c915a581
JJ
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
2888 ac_cv_prog_CC="${ac_tool_prefix}cc"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892done
2893 done
2894IFS=$as_save_IFS
2a6346c4
L
2895
2896fi
c915a581
JJ
2897fi
2898CC=$ac_cv_prog_CC
2899if test -n "$CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2901$as_echo "$CC" >&6; }
2902else
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904$as_echo "no" >&6; }
2905fi
e1e953d9 2906
d10a2df2 2907
c915a581
JJ
2908 fi
2909fi
2910if test -z "$CC"; then
2911 # Extract the first word of "cc", so it can be a program name with args.
2912set dummy cc; ac_word=$2
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2915if ${ac_cv_prog_CC+:} false; then :
c915a581
JJ
2916 $as_echo_n "(cached) " >&6
2917else
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2920else
2921 ac_prog_rejected=no
2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
2929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2930 ac_prog_rejected=yes
2931 continue
2932 fi
2933 ac_cv_prog_CC="cc"
2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937done
2938 done
2939IFS=$as_save_IFS
d10a2df2 2940
c915a581
JJ
2941if test $ac_prog_rejected = yes; then
2942 # We found a bogon in the path, so make sure we never use it.
2943 set dummy $ac_cv_prog_CC
2944 shift
2945 if test $# != 0; then
2946 # We chose a different compiler from the bogus one.
2947 # However, it has the same basename, so the bogon will be chosen
2948 # first if we set CC to just the basename; use the full file name.
2949 shift
2950 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2951 fi
2952fi
2953fi
2954fi
2955CC=$ac_cv_prog_CC
2956if test -n "$CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958$as_echo "$CC" >&6; }
2959else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961$as_echo "no" >&6; }
2962fi
2a6346c4 2963
2a6346c4 2964
c915a581
JJ
2965fi
2966if test -z "$CC"; then
2967 if test -n "$ac_tool_prefix"; then
2968 for ac_prog in cl.exe
2969 do
2970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2971set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2974if ${ac_cv_prog_CC+:} false; then :
f35db108
WM
2975 $as_echo_n "(cached) " >&6
2976else
c915a581
JJ
2977 if test -n "$CC"; then
2978 ac_cv_prog_CC="$CC" # Let the user override the test.
2979else
2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
f35db108
WM
2981for as_dir in $PATH
2982do
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
c915a581 2985 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
2987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 break 2
2990 fi
2991done
f35db108
WM
2992 done
2993IFS=$as_save_IFS
2994
f35db108 2995fi
f35db108 2996fi
c915a581
JJ
2997CC=$ac_cv_prog_CC
2998if test -n "$CC"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3000$as_echo "$CC" >&6; }
f35db108 3001else
c915a581
JJ
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003$as_echo "no" >&6; }
f35db108 3004fi
f35db108 3005
f35db108 3006
c915a581
JJ
3007 test -n "$CC" && break
3008 done
f35db108 3009fi
c915a581
JJ
3010if test -z "$CC"; then
3011 ac_ct_CC=$CC
3012 for ac_prog in cl.exe
3013do
3014 # Extract the first word of "$ac_prog", so it can be a program name with args.
3015set dummy $ac_prog; ac_word=$2
f35db108
WM
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3018if ${ac_cv_prog_ac_ct_CC+:} false; then :
f35db108
WM
3019 $as_echo_n "(cached) " >&6
3020else
c915a581
JJ
3021 if test -n "$ac_ct_CC"; then
3022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
f35db108
WM
3023else
3024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025for as_dir in $PATH
3026do
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 3031 ac_cv_prog_ac_ct_CC="$ac_prog"
f35db108
WM
3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 break 2
3034 fi
3035done
3036 done
3037IFS=$as_save_IFS
3038
3039fi
3040fi
c915a581
JJ
3041ac_ct_CC=$ac_cv_prog_ac_ct_CC
3042if test -n "$ac_ct_CC"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3044$as_echo "$ac_ct_CC" >&6; }
f35db108
WM
3045else
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047$as_echo "no" >&6; }
3048fi
3049
3050
c915a581 3051 test -n "$ac_ct_CC" && break
f35db108 3052done
f35db108 3053
c915a581
JJ
3054 if test "x$ac_ct_CC" = x; then
3055 CC=""
f35db108
WM
3056 else
3057 case $cross_compiling:$ac_tool_warned in
3058yes:)
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3061ac_tool_warned=yes ;;
3062esac
c915a581 3063 CC=$ac_ct_CC
f35db108 3064 fi
f35db108
WM
3065fi
3066
3067fi
f35db108 3068
f35db108 3069
c915a581
JJ
3070test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3072as_fn_error $? "no acceptable C compiler found in \$PATH
3073See \`config.log' for more details" "$LINENO" 5; }
f35db108 3074
c915a581
JJ
3075# Provide some information about the compiler.
3076$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3077set X $ac_compile
3078ac_compiler=$2
3079for ac_option in --version -v -V -qversion; do
3080 { { ac_try="$ac_compiler $ac_option >&5"
3081case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
3085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086$as_echo "$ac_try_echo"; } >&5
3087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3088 ac_status=$?
3089 if test -s conftest.err; then
3090 sed '10a\
3091... rest of stderr output deleted ...
3092 10q' conftest.err >conftest.er1
3093 cat conftest.er1 >&5
f35db108 3094 fi
22e05272 3095 rm -f conftest.er1 conftest.err
c915a581
JJ
3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097 test $ac_status = 0; }
3098done
f35db108 3099
c915a581
JJ
3100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101/* end confdefs.h. */
f35db108 3102
c915a581
JJ
3103int
3104main ()
3105{
f35db108 3106
c915a581
JJ
3107 ;
3108 return 0;
3109}
3110_ACEOF
3111ac_clean_files_save=$ac_clean_files
22e05272 3112ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
c915a581
JJ
3113# Try to create an executable without -o first, disregard a.out.
3114# It will help us diagnose broken compilers, and finding out an intuition
3115# of exeext.
22e05272
JM
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3117$as_echo_n "checking whether the C compiler works... " >&6; }
c915a581 3118ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
f35db108 3119
c915a581
JJ
3120# The possible output files:
3121ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
f35db108 3122
c915a581
JJ
3123ac_rmfiles=
3124for ac_file in $ac_files
3125do
3126 case $ac_file in
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3128 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3129 esac
f35db108 3130done
c915a581 3131rm -f $ac_rmfiles
f35db108 3132
c915a581
JJ
3133if { { ac_try="$ac_link_default"
3134case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
f35db108 3137esac
c915a581
JJ
3138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139$as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_link_default") 2>&5
3141 ac_status=$?
3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 test $ac_status = 0; }; then :
3144 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3145# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3146# in a Makefile. We should not override ac_cv_exeext if it was cached,
3147# so that the user can short-circuit this test for compilers unknown to
3148# Autoconf.
3149for ac_file in $ac_files ''
3150do
3151 test -f "$ac_file" || continue
3152 case $ac_file in
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3154 ;;
3155 [ab].out )
3156 # We found the default executable, but exeext='' is most
3157 # certainly right.
3158 break;;
3159 *.* )
3160 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3161 then :; else
3162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3163 fi
3164 # We set ac_cv_exeext here because the later test for it is not
3165 # safe: cross compilers may not add the suffix if given an `-o'
3166 # argument, so we may need to know it at that point already.
3167 # Even if this section looks crufty: it has the advantage of
3168 # actually working.
3169 break;;
3170 * )
3171 break;;
3172 esac
3173done
3174test "$ac_cv_exeext" = no && ac_cv_exeext=
f35db108 3175
f35db108 3176else
c915a581 3177 ac_file=''
f35db108 3178fi
c915a581 3179if test -z "$ac_file"; then :
22e05272
JM
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181$as_echo "no" >&6; }
3182$as_echo "$as_me: failed program was:" >&5
c915a581 3183sed 's/^/| /' conftest.$ac_ext >&5
f35db108 3184
c915a581
JJ
3185{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3187as_fn_error 77 "C compiler cannot create executables
3188See \`config.log' for more details" "$LINENO" 5; }
3189else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191$as_echo "yes" >&6; }
f35db108 3192fi
22e05272
JM
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3194$as_echo_n "checking for C compiler default output file name... " >&6; }
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3196$as_echo "$ac_file" >&6; }
c915a581 3197ac_exeext=$ac_cv_exeext
f35db108 3198
22e05272 3199rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
c915a581 3200ac_clean_files=$ac_clean_files_save
c915a581
JJ
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3202$as_echo_n "checking for suffix of executables... " >&6; }
3203if { { ac_try="$ac_link"
3204case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207esac
3208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209$as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_link") 2>&5
3211 ac_status=$?
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }; then :
3214 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3215# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3216# work properly (i.e., refer to `conftest.exe'), while it won't with
3217# `rm'.
3218for ac_file in conftest.exe conftest conftest.*; do
3219 test -f "$ac_file" || continue
3220 case $ac_file in
3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3222 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3223 break;;
3224 * ) break;;
3225 esac
3226done
3227else
3228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3230as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3231See \`config.log' for more details" "$LINENO" 5; }
c915a581 3232fi
22e05272 3233rm -f conftest conftest$ac_cv_exeext
c915a581
JJ
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3235$as_echo "$ac_cv_exeext" >&6; }
f35db108 3236
c915a581
JJ
3237rm -f conftest.$ac_ext
3238EXEEXT=$ac_cv_exeext
3239ac_exeext=$EXEEXT
22e05272
JM
3240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241/* end confdefs.h. */
3242#include <stdio.h>
3243int
3244main ()
3245{
3246FILE *f = fopen ("conftest.out", "w");
3247 return ferror (f) || fclose (f) != 0;
3248
3249 ;
3250 return 0;
3251}
3252_ACEOF
3253ac_clean_files="$ac_clean_files conftest.out"
3254# Check that the compiler produces executables we can run. If not, either
3255# the compiler is broken, or we cross compile.
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3257$as_echo_n "checking whether we are cross compiling... " >&6; }
3258if test "$cross_compiling" != yes; then
3259 { { ac_try="$ac_link"
3260case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263esac
3264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265$as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_link") 2>&5
3267 ac_status=$?
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }
3270 if { ac_try='./conftest$ac_cv_exeext'
3271 { { case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274esac
3275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276$as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_try") 2>&5
3278 ac_status=$?
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; }; then
3281 cross_compiling=no
3282 else
3283 if test "$cross_compiling" = maybe; then
3284 cross_compiling=yes
3285 else
3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288as_fn_error $? "cannot run C compiled programs.
3289If you meant to cross compile, use \`--host'.
3290See \`config.log' for more details" "$LINENO" 5; }
3291 fi
3292 fi
3293fi
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3295$as_echo "$cross_compiling" >&6; }
3296
3297rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3298ac_clean_files=$ac_clean_files_save
c915a581
JJ
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3300$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3301if ${ac_cv_objext+:} false; then :
c915a581
JJ
3302 $as_echo_n "(cached) " >&6
3303else
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305/* end confdefs.h. */
f35db108 3306
c915a581
JJ
3307int
3308main ()
3309{
f35db108 3310
c915a581
JJ
3311 ;
3312 return 0;
3313}
3314_ACEOF
3315rm -f conftest.o conftest.obj
3316if { { ac_try="$ac_compile"
3317case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320esac
3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322$as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_compile") 2>&5
3324 ac_status=$?
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
3327 for ac_file in conftest.o conftest.obj conftest.*; do
3328 test -f "$ac_file" || continue;
3329 case $ac_file in
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3332 break;;
3333 esac
3334done
2a6346c4 3335else
c915a581
JJ
3336 $as_echo "$as_me: failed program was:" >&5
3337sed 's/^/| /' conftest.$ac_ext >&5
2a6346c4 3338
c915a581
JJ
3339{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3341as_fn_error $? "cannot compute suffix of object files: cannot compile
3342See \`config.log' for more details" "$LINENO" 5; }
2a6346c4 3343fi
c915a581 3344rm -f conftest.$ac_cv_objext conftest.$ac_ext
2a6346c4 3345fi
c915a581
JJ
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3347$as_echo "$ac_cv_objext" >&6; }
3348OBJEXT=$ac_cv_objext
3349ac_objext=$OBJEXT
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3351$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3352if ${ac_cv_c_compiler_gnu+:} false; then :
c915a581
JJ
3353 $as_echo_n "(cached) " >&6
3354else
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356/* end confdefs.h. */
2a6346c4 3357
c915a581
JJ
3358int
3359main ()
3360{
3361#ifndef __GNUC__
3362 choke me
3363#endif
2a6346c4 3364
c915a581
JJ
3365 ;
3366 return 0;
3367}
3368_ACEOF
3369if ac_fn_c_try_compile "$LINENO"; then :
3370 ac_compiler_gnu=yes
2b723e21 3371else
c915a581 3372 ac_compiler_gnu=no
2b723e21 3373fi
c915a581
JJ
3374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375ac_cv_c_compiler_gnu=$ac_compiler_gnu
2b723e21 3376
c915a581
JJ
3377fi
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3379$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3380if test $ac_compiler_gnu = yes; then
3381 GCC=yes
2b723e21 3382else
c915a581 3383 GCC=
2b723e21 3384fi
c915a581
JJ
3385ac_test_CFLAGS=${CFLAGS+set}
3386ac_save_CFLAGS=$CFLAGS
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3388$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3389if ${ac_cv_prog_cc_g+:} false; then :
c915a581
JJ
3390 $as_echo_n "(cached) " >&6
3391else
3392 ac_save_c_werror_flag=$ac_c_werror_flag
3393 ac_c_werror_flag=yes
3394 ac_cv_prog_cc_g=no
3395 CFLAGS="-g"
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397/* end confdefs.h. */
2b723e21 3398
c915a581
JJ
3399int
3400main ()
3401{
2b723e21 3402
c915a581
JJ
3403 ;
3404 return 0;
3405}
3406_ACEOF
3407if ac_fn_c_try_compile "$LINENO"; then :
3408 ac_cv_prog_cc_g=yes
3409else
3410 CFLAGS=""
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412/* end confdefs.h. */
2a6346c4 3413
c915a581
JJ
3414int
3415main ()
3416{
2a6346c4 3417
c915a581
JJ
3418 ;
3419 return 0;
3420}
3421_ACEOF
3422if ac_fn_c_try_compile "$LINENO"; then :
f35db108 3423
f35db108 3424else
c915a581
JJ
3425 ac_c_werror_flag=$ac_save_c_werror_flag
3426 CFLAGS="-g"
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428/* end confdefs.h. */
3429
3430int
3431main ()
3432{
f35db108 3433
c915a581
JJ
3434 ;
3435 return 0;
3436}
3437_ACEOF
3438if ac_fn_c_try_compile "$LINENO"; then :
3439 ac_cv_prog_cc_g=yes
f35db108 3440fi
c915a581 3441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 3442fi
c915a581 3443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 3444fi
c915a581
JJ
3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_c_werror_flag=$ac_save_c_werror_flag
f35db108 3447fi
c915a581
JJ
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3449$as_echo "$ac_cv_prog_cc_g" >&6; }
3450if test "$ac_test_CFLAGS" = set; then
3451 CFLAGS=$ac_save_CFLAGS
3452elif test $ac_cv_prog_cc_g = yes; then
3453 if test "$GCC" = yes; then
3454 CFLAGS="-g -O2"
3455 else
3456 CFLAGS="-g"
f35db108 3457 fi
f35db108 3458else
c915a581
JJ
3459 if test "$GCC" = yes; then
3460 CFLAGS="-O2"
f35db108 3461 else
c915a581 3462 CFLAGS=
f35db108 3463 fi
f35db108 3464fi
c915a581
JJ
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3466$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3467if ${ac_cv_prog_cc_c89+:} false; then :
f35db108
WM
3468 $as_echo_n "(cached) " >&6
3469else
c915a581
JJ
3470 ac_cv_prog_cc_c89=no
3471ac_save_CC=$CC
3472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473/* end confdefs.h. */
3474#include <stdarg.h>
3475#include <stdio.h>
22e05272 3476struct stat;
c915a581
JJ
3477/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3478struct buf { int x; };
3479FILE * (*rcsopen) (struct buf *, struct stat *, int);
3480static char *e (p, i)
3481 char **p;
3482 int i;
3483{
3484 return p[i];
3485}
3486static char *f (char * (*g) (char **, int), char **p, ...)
3487{
3488 char *s;
3489 va_list v;
3490 va_start (v,p);
3491 s = g (p, va_arg (v,int));
3492 va_end (v);
3493 return s;
3494}
f35db108 3495
c915a581
JJ
3496/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3497 function prototypes and stuff, but not '\xHH' hex character constants.
3498 These don't provoke an error unfortunately, instead are silently treated
3499 as 'x'. The following induces an error, until -std is added to get
3500 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3501 array size at least. It's necessary to write '\x00'==0 to get something
3502 that's true only with -std. */
3503int osf4_cc_array ['\x00' == 0 ? 1 : -1];
f35db108 3504
c915a581
JJ
3505/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3506 inside strings and character constants. */
3507#define FOO(x) 'x'
3508int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
f35db108 3509
c915a581
JJ
3510int test (int i, double x);
3511struct s1 {int (*f) (int a);};
3512struct s2 {int (*f) (double a);};
3513int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3514int argc;
3515char **argv;
3516int
3517main ()
3518{
3519return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3520 ;
3521 return 0;
3522}
3523_ACEOF
3524for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3525 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
f35db108 3526do
c915a581
JJ
3527 CC="$ac_save_CC $ac_arg"
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529 ac_cv_prog_cc_c89=$ac_arg
3530fi
3531rm -f core conftest.err conftest.$ac_objext
3532 test "x$ac_cv_prog_cc_c89" != "xno" && break
f35db108 3533done
c915a581
JJ
3534rm -f conftest.$ac_ext
3535CC=$ac_save_CC
f35db108 3536
f35db108 3537fi
c915a581
JJ
3538# AC_CACHE_VAL
3539case "x$ac_cv_prog_cc_c89" in
3540 x)
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3542$as_echo "none needed" >&6; } ;;
3543 xno)
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3545$as_echo "unsupported" >&6; } ;;
3546 *)
3547 CC="$CC $ac_cv_prog_cc_c89"
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3549$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3550esac
3551if test "x$ac_cv_prog_cc_c89" != xno; then :
3552
f35db108
WM
3553fi
3554
c915a581
JJ
3555ac_ext=c
3556ac_cpp='$CPP $CPPFLAGS'
3557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560
22e05272
JM
3561ac_ext=c
3562ac_cpp='$CPP $CPPFLAGS'
3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3567$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3568if ${am_cv_prog_cc_c_o+:} false; then :
3569 $as_echo_n "(cached) " >&6
3570else
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572/* end confdefs.h. */
3573
3574int
3575main ()
3576{
3577
3578 ;
3579 return 0;
3580}
3581_ACEOF
3582 # Make sure it works both with $CC and with simple cc.
3583 # Following AC_PROG_CC_C_O, we do the test twice because some
3584 # compilers refuse to overwrite an existing .o file with -o,
3585 # though they will create one.
3586 am_cv_prog_cc_c_o=yes
3587 for am_i in 1 2; do
3588 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3589 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } \
3593 && test -f conftest2.$ac_objext; then
3594 : OK
3595 else
3596 am_cv_prog_cc_c_o=no
3597 break
3598 fi
3599 done
3600 rm -f core conftest*
3601 unset am_i
3602fi
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3604$as_echo "$am_cv_prog_cc_c_o" >&6; }
3605if test "$am_cv_prog_cc_c_o" != yes; then
3606 # Losing compiler, so override with the script.
3607 # FIXME: It is wrong to rewrite CC.
3608 # But if we don't then we get into trouble of one sort or another.
3609 # A longer-term fix would be to have automake use am__CC in this case,
3610 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3611 CC="$am_aux_dir/compile $CC"
3612fi
3613ac_ext=c
3614ac_cpp='$CPP $CPPFLAGS'
3615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
3619
f35db108 3620
c915a581
JJ
3621ac_ext=c
3622ac_cpp='$CPP $CPPFLAGS'
3623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3627$as_echo_n "checking how to run the C preprocessor... " >&6; }
3628# On Suns, sometimes $CPP names a directory.
3629if test -n "$CPP" && test -d "$CPP"; then
3630 CPP=
f35db108 3631fi
c915a581 3632if test -z "$CPP"; then
22e05272 3633 if ${ac_cv_prog_CPP+:} false; then :
f35db108
WM
3634 $as_echo_n "(cached) " >&6
3635else
c915a581
JJ
3636 # Double quotes because CPP needs to be expanded
3637 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3638 do
3639 ac_preproc_ok=false
3640for ac_c_preproc_warn_flag in '' yes
f35db108 3641do
c915a581
JJ
3642 # Use a header file that comes with gcc, so configuring glibc
3643 # with a fresh cross-compiler works.
3644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3645 # <limits.h> exists even on freestanding compilers.
3646 # On the NeXT, cc -E runs the code through the compiler's parser,
3647 # not just through cpp. "Syntax error" is here to catch this case.
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649/* end confdefs.h. */
3650#ifdef __STDC__
3651# include <limits.h>
3652#else
3653# include <assert.h>
3654#endif
3655 Syntax error
3656_ACEOF
3657if ac_fn_c_try_cpp "$LINENO"; then :
f35db108 3658
c915a581
JJ
3659else
3660 # Broken: fails on valid input.
3661continue
f35db108 3662fi
22e05272 3663rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
3664
3665 # OK, works on sane cases. Now check whether nonexistent headers
3666 # can be detected and how.
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668/* end confdefs.h. */
3669#include <ac_nonexistent.h>
3670_ACEOF
3671if ac_fn_c_try_cpp "$LINENO"; then :
3672 # Broken: success on invalid input.
3673continue
f35db108 3674else
c915a581
JJ
3675 # Passes both tests.
3676ac_preproc_ok=:
3677break
3678fi
22e05272 3679rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
3680
3681done
3682# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3683rm -f conftest.i conftest.err conftest.$ac_ext
c915a581
JJ
3684if $ac_preproc_ok; then :
3685 break
f35db108
WM
3686fi
3687
c915a581
JJ
3688 done
3689 ac_cv_prog_CPP=$CPP
f35db108 3690
f35db108 3691fi
c915a581 3692 CPP=$ac_cv_prog_CPP
f35db108 3693else
c915a581
JJ
3694 ac_cv_prog_CPP=$CPP
3695fi
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3697$as_echo "$CPP" >&6; }
3698ac_preproc_ok=false
3699for ac_c_preproc_warn_flag in '' yes
f35db108 3700do
c915a581
JJ
3701 # Use a header file that comes with gcc, so configuring glibc
3702 # with a fresh cross-compiler works.
3703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3704 # <limits.h> exists even on freestanding compilers.
3705 # On the NeXT, cc -E runs the code through the compiler's parser,
3706 # not just through cpp. "Syntax error" is here to catch this case.
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708/* end confdefs.h. */
3709#ifdef __STDC__
3710# include <limits.h>
3711#else
3712# include <assert.h>
3713#endif
3714 Syntax error
3715_ACEOF
3716if ac_fn_c_try_cpp "$LINENO"; then :
f35db108 3717
c915a581
JJ
3718else
3719 # Broken: fails on valid input.
3720continue
f35db108 3721fi
22e05272 3722rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
3723
3724 # OK, works on sane cases. Now check whether nonexistent headers
3725 # can be detected and how.
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727/* end confdefs.h. */
3728#include <ac_nonexistent.h>
3729_ACEOF
3730if ac_fn_c_try_cpp "$LINENO"; then :
3731 # Broken: success on invalid input.
3732continue
3733else
3734 # Passes both tests.
3735ac_preproc_ok=:
3736break
f35db108 3737fi
22e05272 3738rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
3739
3740done
3741# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3742rm -f conftest.i conftest.err conftest.$ac_ext
c915a581
JJ
3743if $ac_preproc_ok; then :
3744
f35db108 3745else
c915a581
JJ
3746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3748as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3749See \`config.log' for more details" "$LINENO" 5; }
f35db108
WM
3750fi
3751
c915a581
JJ
3752ac_ext=c
3753ac_cpp='$CPP $CPPFLAGS'
3754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3756ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 3757
f35db108 3758
c915a581
JJ
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3760$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 3761if ${ac_cv_path_GREP+:} false; then :
c915a581
JJ
3762 $as_echo_n "(cached) " >&6
3763else
3764 if test -z "$GREP"; then
3765 ac_path_GREP_found=false
3766 # Loop through the user's path and test for each of PROGNAME-LIST
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_prog in grep ggrep; do
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3775 as_fn_executable_p "$ac_path_GREP" || continue
c915a581
JJ
3776# Check for GNU ac_path_GREP and select it if it is found.
3777 # Check for GNU $ac_path_GREP
3778case `"$ac_path_GREP" --version 2>&1` in
3779*GNU*)
3780 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3781*)
3782 ac_count=0
3783 $as_echo_n 0123456789 >"conftest.in"
3784 while :
3785 do
3786 cat "conftest.in" "conftest.in" >"conftest.tmp"
3787 mv "conftest.tmp" "conftest.in"
3788 cp "conftest.in" "conftest.nl"
3789 $as_echo 'GREP' >> "conftest.nl"
3790 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3791 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3792 as_fn_arith $ac_count + 1 && ac_count=$as_val
3793 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3794 # Best one so far, save it but keep looking for a better one
3795 ac_cv_path_GREP="$ac_path_GREP"
3796 ac_path_GREP_max=$ac_count
3797 fi
3798 # 10*(2^10) chars as input seems more than enough
3799 test $ac_count -gt 10 && break
3800 done
3801 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
f35db108 3802esac
c915a581
JJ
3803
3804 $ac_path_GREP_found && break 3
3805 done
3806 done
3807 done
3808IFS=$as_save_IFS
3809 if test -z "$ac_cv_path_GREP"; then
22e05272 3810 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
f35db108 3811 fi
c915a581
JJ
3812else
3813 ac_cv_path_GREP=$GREP
f35db108
WM
3814fi
3815
3816fi
c915a581
JJ
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3818$as_echo "$ac_cv_path_GREP" >&6; }
3819 GREP="$ac_cv_path_GREP"
f35db108
WM
3820
3821
c915a581
JJ
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3823$as_echo_n "checking for egrep... " >&6; }
22e05272 3824if ${ac_cv_path_EGREP+:} false; then :
c915a581
JJ
3825 $as_echo_n "(cached) " >&6
3826else
3827 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3828 then ac_cv_path_EGREP="$GREP -E"
3829 else
3830 if test -z "$EGREP"; then
3831 ac_path_EGREP_found=false
3832 # Loop through the user's path and test for each of PROGNAME-LIST
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
f35db108 3835do
c915a581
JJ
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_prog in egrep; do
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3841 as_fn_executable_p "$ac_path_EGREP" || continue
c915a581
JJ
3842# Check for GNU ac_path_EGREP and select it if it is found.
3843 # Check for GNU $ac_path_EGREP
3844case `"$ac_path_EGREP" --version 2>&1` in
3845*GNU*)
3846 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3847*)
3848 ac_count=0
3849 $as_echo_n 0123456789 >"conftest.in"
3850 while :
3851 do
3852 cat "conftest.in" "conftest.in" >"conftest.tmp"
3853 mv "conftest.tmp" "conftest.in"
3854 cp "conftest.in" "conftest.nl"
3855 $as_echo 'EGREP' >> "conftest.nl"
3856 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3858 as_fn_arith $ac_count + 1 && ac_count=$as_val
3859 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3860 # Best one so far, save it but keep looking for a better one
3861 ac_cv_path_EGREP="$ac_path_EGREP"
3862 ac_path_EGREP_max=$ac_count
3863 fi
3864 # 10*(2^10) chars as input seems more than enough
3865 test $ac_count -gt 10 && break
3866 done
3867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
f35db108 3868esac
f35db108 3869
c915a581
JJ
3870 $ac_path_EGREP_found && break 3
3871 done
3872 done
3873 done
3874IFS=$as_save_IFS
3875 if test -z "$ac_cv_path_EGREP"; then
22e05272 3876 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
c915a581 3877 fi
f35db108 3878else
c915a581 3879 ac_cv_path_EGREP=$EGREP
f35db108 3880fi
f35db108 3881
c915a581 3882 fi
a2479b3d 3883fi
c915a581
JJ
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3885$as_echo "$ac_cv_path_EGREP" >&6; }
3886 EGREP="$ac_cv_path_EGREP"
a2479b3d 3887
f35db108 3888
c915a581
JJ
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3890$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 3891if ${ac_cv_header_stdc+:} false; then :
f35db108
WM
3892 $as_echo_n "(cached) " >&6
3893else
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895/* end confdefs.h. */
c915a581
JJ
3896#include <stdlib.h>
3897#include <stdarg.h>
3898#include <string.h>
3899#include <float.h>
f35db108
WM
3900
3901int
3902main ()
3903{
3904
3905 ;
3906 return 0;
3907}
3908_ACEOF
c915a581
JJ
3909if ac_fn_c_try_compile "$LINENO"; then :
3910 ac_cv_header_stdc=yes
f35db108 3911else
c915a581 3912 ac_cv_header_stdc=no
f35db108 3913fi
c915a581
JJ
3914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915
3916if test $ac_cv_header_stdc = yes; then
3917 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
f35db108
WM
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919/* end confdefs.h. */
c915a581 3920#include <string.h>
f35db108 3921
f35db108 3922_ACEOF
c915a581
JJ
3923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924 $EGREP "memchr" >/dev/null 2>&1; then :
3925
f35db108 3926else
c915a581 3927 ac_cv_header_stdc=no
f35db108 3928fi
c915a581 3929rm -f conftest*
f35db108
WM
3930
3931fi
c915a581
JJ
3932
3933if test $ac_cv_header_stdc = yes; then
3934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936/* end confdefs.h. */
3937#include <stdlib.h>
3938
3939_ACEOF
3940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3941 $EGREP "free" >/dev/null 2>&1; then :
3942
f35db108 3943else
c915a581 3944 ac_cv_header_stdc=no
f35db108 3945fi
c915a581 3946rm -f conftest*
f35db108 3947
c915a581 3948fi
f35db108 3949
c915a581
JJ
3950if test $ac_cv_header_stdc = yes; then
3951 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3952 if test "$cross_compiling" = yes; then :
3953 :
f35db108 3954else
c915a581 3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108 3956/* end confdefs.h. */
c915a581
JJ
3957#include <ctype.h>
3958#include <stdlib.h>
3959#if ((' ' & 0x0FF) == 0x020)
3960# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3961# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3962#else
3963# define ISLOWER(c) \
3964 (('a' <= (c) && (c) <= 'i') \
3965 || ('j' <= (c) && (c) <= 'r') \
3966 || ('s' <= (c) && (c) <= 'z'))
3967# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3968#endif
f35db108 3969
c915a581 3970#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
f35db108
WM
3971int
3972main ()
3973{
c915a581
JJ
3974 int i;
3975 for (i = 0; i < 256; i++)
3976 if (XOR (islower (i), ISLOWER (i))
3977 || toupper (i) != TOUPPER (i))
3978 return 2;
f35db108
WM
3979 return 0;
3980}
3981_ACEOF
c915a581 3982if ac_fn_c_try_run "$LINENO"; then :
f35db108
WM
3983
3984else
c915a581
JJ
3985 ac_cv_header_stdc=no
3986fi
3987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3988 conftest.$ac_objext conftest.beam conftest.$ac_ext
3989fi
f35db108 3990
f35db108 3991fi
f35db108 3992fi
c915a581
JJ
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3994$as_echo "$ac_cv_header_stdc" >&6; }
3995if test $ac_cv_header_stdc = yes; then
3996
3997$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3998
f35db108 3999fi
c915a581
JJ
4000
4001# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4002for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4003 inttypes.h stdint.h unistd.h
4004do :
4005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4006ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4007"
22e05272 4008if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
c915a581
JJ
4009 cat >>confdefs.h <<_ACEOF
4010#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4011_ACEOF
4012
f35db108 4013fi
c915a581
JJ
4014
4015done
4016
4017
4018
4019 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
22e05272 4020if test "x$ac_cv_header_minix_config_h" = xyes; then :
c915a581 4021 MINIX=yes
f35db108 4022else
c915a581 4023 MINIX=
f35db108 4024fi
c915a581
JJ
4025
4026
4027 if test "$MINIX" = yes; then
4028
4029$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4030
4031
4032$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4033
4034
4035$as_echo "#define _MINIX 1" >>confdefs.h
4036
4037 fi
4038
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4041$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
22e05272 4042if ${ac_cv_safe_to_define___extensions__+:} false; then :
f35db108
WM
4043 $as_echo_n "(cached) " >&6
4044else
c915a581 4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108 4046/* end confdefs.h. */
f35db108 4047
22e05272
JM
4048# define __EXTENSIONS__ 1
4049 $ac_includes_default
f35db108
WM
4050int
4051main ()
4052{
c915a581 4053
f35db108
WM
4054 ;
4055 return 0;
4056}
4057_ACEOF
c915a581
JJ
4058if ac_fn_c_try_compile "$LINENO"; then :
4059 ac_cv_safe_to_define___extensions__=yes
4060else
4061 ac_cv_safe_to_define___extensions__=no
f35db108 4062fi
c915a581 4063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 4064fi
c915a581
JJ
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4066$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4067 test $ac_cv_safe_to_define___extensions__ = yes &&
4068 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
f35db108 4069
c915a581 4070 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
f35db108 4071
c915a581 4072 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
f35db108 4073
c915a581 4074 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
f35db108 4075
c915a581 4076 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
f35db108 4077
f35db108 4078
f35db108 4079
c915a581
JJ
4080# Do not delete or change the following two lines. For why, see
4081# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
c915a581
JJ
4082# Make sure we can run config.sub.
4083$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 4084 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
f35db108 4085
c915a581
JJ
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4087$as_echo_n "checking build system type... " >&6; }
22e05272 4088if ${ac_cv_build+:} false; then :
f35db108
WM
4089 $as_echo_n "(cached) " >&6
4090else
c915a581
JJ
4091 ac_build_alias=$build_alias
4092test "x$ac_build_alias" = x &&
4093 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4094test "x$ac_build_alias" = x &&
22e05272 4095 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
c915a581 4096ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 4097 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
f35db108 4098
c915a581
JJ
4099fi
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4101$as_echo "$ac_cv_build" >&6; }
4102case $ac_cv_build in
4103*-*-*) ;;
22e05272 4104*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
c915a581
JJ
4105esac
4106build=$ac_cv_build
4107ac_save_IFS=$IFS; IFS='-'
4108set x $ac_cv_build
4109shift
4110build_cpu=$1
4111build_vendor=$2
4112shift; shift
4113# Remember, the first character of IFS is used to create $*,
4114# except with old shells:
4115build_os=$*
4116IFS=$ac_save_IFS
4117case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
f35db108 4118
f35db108 4119
c915a581
JJ
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4121$as_echo_n "checking host system type... " >&6; }
22e05272 4122if ${ac_cv_host+:} false; then :
c915a581 4123 $as_echo_n "(cached) " >&6
f35db108 4124else
c915a581
JJ
4125 if test "x$host_alias" = x; then
4126 ac_cv_host=$ac_cv_build
4127else
4128 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 4129 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
f35db108
WM
4130fi
4131
4132fi
c915a581
JJ
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4134$as_echo "$ac_cv_host" >&6; }
4135case $ac_cv_host in
4136*-*-*) ;;
22e05272 4137*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
c915a581
JJ
4138esac
4139host=$ac_cv_host
4140ac_save_IFS=$IFS; IFS='-'
4141set x $ac_cv_host
4142shift
4143host_cpu=$1
4144host_vendor=$2
4145shift; shift
4146# Remember, the first character of IFS is used to create $*,
4147# except with old shells:
4148host_os=$*
4149IFS=$ac_save_IFS
4150case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
f35db108
WM
4151
4152
c915a581
JJ
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4154$as_echo_n "checking target system type... " >&6; }
22e05272 4155if ${ac_cv_target+:} false; then :
f35db108
WM
4156 $as_echo_n "(cached) " >&6
4157else
c915a581
JJ
4158 if test "x$target_alias" = x; then
4159 ac_cv_target=$ac_cv_host
f35db108 4160else
c915a581 4161 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 4162 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
f35db108
WM
4163fi
4164
f35db108 4165fi
c915a581
JJ
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4167$as_echo "$ac_cv_target" >&6; }
4168case $ac_cv_target in
4169*-*-*) ;;
22e05272 4170*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
c915a581
JJ
4171esac
4172target=$ac_cv_target
4173ac_save_IFS=$IFS; IFS='-'
4174set x $ac_cv_target
4175shift
4176target_cpu=$1
4177target_vendor=$2
4178shift; shift
4179# Remember, the first character of IFS is used to create $*,
4180# except with old shells:
4181target_os=$*
4182IFS=$ac_save_IFS
4183case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
f35db108 4184
f35db108 4185
c915a581
JJ
4186# The aliases save the names the user supplied, while $host etc.
4187# will get canonicalized.
4188test -n "$target_alias" &&
4189 test "$program_prefix$program_suffix$program_transform_name" = \
4190 NONENONEs,x,x, &&
4191 program_prefix=${target_alias}-
f35db108 4192
c915a581 4193target_alias=${target_alias-$host_alias}
f35db108 4194
c915a581
JJ
4195 case ${build_alias} in
4196 "") build_noncanonical=${build} ;;
4197 *) build_noncanonical=${build_alias} ;;
f35db108 4198esac
f35db108 4199
c915a581
JJ
4200 case ${host_alias} in
4201 "") host_noncanonical=${build_noncanonical} ;;
4202 *) host_noncanonical=${host_alias} ;;
f35db108 4203esac
f35db108 4204
c915a581
JJ
4205 case ${target_alias} in
4206 "") target_noncanonical=${host_noncanonical} ;;
4207 *) target_noncanonical=${target_alias} ;;
4208esac
f35db108 4209
f35db108 4210
f35db108 4211
f35db108 4212
f35db108 4213
c915a581
JJ
4214 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
4215 -I\$(top_builddir)/../libstdc++-v3/include \
4216 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
4217 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
4218 LIBSTDCXX_RAW_CXX_LDFLAGS="\
4219 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
f35db108 4220
f35db108 4221
f35db108 4222
f35db108 4223
22e05272 4224am__api_version='1.15'
f35db108 4225
c915a581
JJ
4226# Find a good install program. We prefer a C program (faster),
4227# so one script is as good as another. But avoid the broken or
4228# incompatible versions:
4229# SysV /etc/install, /usr/sbin/install
4230# SunOS /usr/etc/install
4231# IRIX /sbin/install
4232# AIX /bin/install
4233# AmigaOS /C/install, which installs bootblocks on floppy discs
4234# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4235# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4236# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4237# OS/2's system install, which has a completely different semantic
4238# ./install, which can be erroneously created by make from ./install.sh.
4239# Reject install programs that cannot install multiple files.
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4241$as_echo_n "checking for a BSD-compatible install... " >&6; }
4242if test -z "$INSTALL"; then
22e05272 4243if ${ac_cv_path_install+:} false; then :
f35db108
WM
4244 $as_echo_n "(cached) " >&6
4245else
c915a581
JJ
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247for as_dir in $PATH
4248do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 # Account for people who put trailing slashes in PATH elements.
4252case $as_dir/ in #((
4253 ./ | .// | /[cC]/* | \
4254 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4255 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4256 /usr/ucb/* ) ;;
4257 *)
4258 # OSF1 and SCO ODT 3.0 have their own names for install.
4259 # Don't use installbsd from OSF since it installs stuff as root
4260 # by default.
4261 for ac_prog in ginstall scoinst install; do
4262 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4263 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
c915a581
JJ
4264 if test $ac_prog = install &&
4265 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4266 # AIX install. It has an incompatible calling convention.
4267 :
4268 elif test $ac_prog = install &&
4269 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4270 # program-specific install script used by HP pwplus--don't use.
4271 :
4272 else
4273 rm -rf conftest.one conftest.two conftest.dir
4274 echo one > conftest.one
4275 echo two > conftest.two
4276 mkdir conftest.dir
4277 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4278 test -s conftest.one && test -s conftest.two &&
4279 test -s conftest.dir/conftest.one &&
4280 test -s conftest.dir/conftest.two
4281 then
4282 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4283 break 3
4284 fi
4285 fi
4286 fi
4287 done
f35db108 4288 done
c915a581
JJ
4289 ;;
4290esac
f35db108 4291
f35db108 4292 done
c915a581 4293IFS=$as_save_IFS
f35db108 4294
c915a581 4295rm -rf conftest.one conftest.two conftest.dir
f35db108
WM
4296
4297fi
c915a581
JJ
4298 if test "${ac_cv_path_install+set}" = set; then
4299 INSTALL=$ac_cv_path_install
4300 else
4301 # As a last resort, use the slow shell script. Don't cache a
4302 # value for INSTALL within a source directory, because that will
4303 # break other packages using the cache if that directory is
4304 # removed, or if the value is a relative name.
4305 INSTALL=$ac_install_sh
4306 fi
f35db108 4307fi
c915a581
JJ
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4309$as_echo "$INSTALL" >&6; }
f35db108 4310
c915a581
JJ
4311# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4312# It thinks the first close brace ends the variable substitution.
4313test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
f35db108 4314
c915a581 4315test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f35db108 4316
c915a581 4317test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
f35db108 4318
c915a581
JJ
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4320$as_echo_n "checking whether build environment is sane... " >&6; }
c915a581
JJ
4321# Reject unsafe characters in $srcdir or the absolute working directory
4322# name. Accept space and tab only in the latter.
4323am_lf='
4324'
4325case `pwd` in
4326 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 4327 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
c915a581
JJ
4328esac
4329case $srcdir in
4330 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 4331 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
c915a581 4332esac
f35db108 4333
22e05272 4334# Do 'set' in a subshell so we don't clobber the current shell's
c915a581
JJ
4335# arguments. Must try -L first in case configure is actually a
4336# symlink; some systems play weird games with the mod time of symlinks
4337# (eg FreeBSD returns the mod time of the symlink's containing
4338# directory).
4339if (
22e05272
JM
4340 am_has_slept=no
4341 for am_try in 1 2; do
4342 echo "timestamp, slept: $am_has_slept" > conftest.file
4343 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4344 if test "$*" = "X"; then
4345 # -L didn't work.
4346 set X `ls -t "$srcdir/configure" conftest.file`
4347 fi
4348 if test "$*" != "X $srcdir/configure conftest.file" \
4349 && test "$*" != "X conftest.file $srcdir/configure"; then
4350
4351 # If neither matched, then we have a broken ls. This can happen
4352 # if, for instance, CONFIG_SHELL is bash and it inherits a
4353 # broken ls alias from the environment. This has actually
4354 # happened. Such a system could not be considered "sane".
4355 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4356 alias in your environment" "$LINENO" 5
4357 fi
4358 if test "$2" = conftest.file || test $am_try -eq 2; then
4359 break
4360 fi
4361 # Just in case.
4362 sleep 1
4363 am_has_slept=yes
4364 done
c915a581
JJ
4365 test "$2" = conftest.file
4366 )
4367then
4368 # Ok.
4369 :
f35db108 4370else
22e05272 4371 as_fn_error $? "newly created file is older than distributed files!
c915a581 4372Check your system clock" "$LINENO" 5
f35db108 4373fi
c915a581
JJ
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4375$as_echo "yes" >&6; }
22e05272
JM
4376# If we didn't sleep, we still need to ensure time stamps of config.status and
4377# generated files are strictly newer.
4378am_sleep_pid=
4379if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4380 ( sleep 1 ) &
4381 am_sleep_pid=$!
4382fi
4383
4384rm -f conftest.file
4385
c915a581
JJ
4386test "$program_prefix" != NONE &&
4387 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4388# Use a double $ so make ignores it.
4389test "$program_suffix" != NONE &&
4390 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4391# Double any \ or $.
4392# By default was `s,x,x', remove it if useless.
4393ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4394program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
f35db108 4395
c915a581
JJ
4396if test x"${MISSING+set}" != xset; then
4397 case $am_aux_dir in
4398 *\ * | *\ *)
4399 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4400 *)
4401 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4402 esac
4403fi
4404# Use eval to expand $SHELL
22e05272
JM
4405if eval "$MISSING --is-lightweight"; then
4406 am_missing_run="$MISSING "
f35db108 4407else
c915a581 4408 am_missing_run=
22e05272
JM
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4410$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
f35db108
WM
4411fi
4412
22e05272 4413if test x"${install_sh+set}" != xset; then
c915a581 4414 case $am_aux_dir in
f35db108 4415 *\ * | *\ *)
c915a581
JJ
4416 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4417 *)
4418 install_sh="\${SHELL} $am_aux_dir/install-sh"
4419 esac
4420fi
f35db108 4421
22e05272
JM
4422# Installed binaries are usually stripped using 'strip' when the user
4423# run "make install-strip". However 'strip' might not be the right
c915a581 4424# tool to use in cross-compilation environments, therefore Automake
22e05272 4425# will honor the 'STRIP' environment variable to overrule this program.
c915a581
JJ
4426if test "$cross_compiling" != no; then
4427 if test -n "$ac_tool_prefix"; then
4428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4429set dummy ${ac_tool_prefix}strip; ac_word=$2
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4431$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4432if ${ac_cv_prog_STRIP+:} false; then :
c915a581
JJ
4433 $as_echo_n "(cached) " >&6
4434else
4435 if test -n "$STRIP"; then
4436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4437else
4438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439for as_dir in $PATH
4440do
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
4445 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4448 fi
4449done
4450 done
4451IFS=$as_save_IFS
f35db108 4452
c915a581
JJ
4453fi
4454fi
4455STRIP=$ac_cv_prog_STRIP
4456if test -n "$STRIP"; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4458$as_echo "$STRIP" >&6; }
4459else
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461$as_echo "no" >&6; }
4462fi
f35db108
WM
4463
4464
c915a581
JJ
4465fi
4466if test -z "$ac_cv_prog_STRIP"; then
4467 ac_ct_STRIP=$STRIP
4468 # Extract the first word of "strip", so it can be a program name with args.
4469set dummy strip; ac_word=$2
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4471$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4472if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
c915a581
JJ
4473 $as_echo_n "(cached) " >&6
4474else
4475 if test -n "$ac_ct_STRIP"; then
4476 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4477else
4478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479for as_dir in $PATH
4480do
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
4485 ac_cv_prog_ac_ct_STRIP="strip"
4486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 break 2
4488 fi
4489done
4490 done
4491IFS=$as_save_IFS
f35db108 4492
c915a581
JJ
4493fi
4494fi
4495ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4496if test -n "$ac_ct_STRIP"; then
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4498$as_echo "$ac_ct_STRIP" >&6; }
f35db108 4499else
c915a581
JJ
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4501$as_echo "no" >&6; }
f35db108
WM
4502fi
4503
c915a581
JJ
4504 if test "x$ac_ct_STRIP" = x; then
4505 STRIP=":"
4506 else
4507 case $cross_compiling:$ac_tool_warned in
4508yes:)
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4511ac_tool_warned=yes ;;
f35db108 4512esac
c915a581
JJ
4513 STRIP=$ac_ct_STRIP
4514 fi
4515else
4516 STRIP="$ac_cv_prog_STRIP"
4517fi
f35db108 4518
c915a581
JJ
4519fi
4520INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
f35db108 4521
c915a581
JJ
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4523$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4524if test -z "$MKDIR_P"; then
22e05272 4525 if ${ac_cv_path_mkdir+:} false; then :
f35db108
WM
4526 $as_echo_n "(cached) " >&6
4527else
f35db108 4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
c915a581 4529for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
f35db108
WM
4530do
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
c915a581
JJ
4533 for ac_prog in mkdir gmkdir; do
4534 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4535 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
c915a581
JJ
4536 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4537 'mkdir (GNU coreutils) '* | \
4538 'mkdir (coreutils) '* | \
4539 'mkdir (fileutils) '4.1*)
4540 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4541 break 3;;
4542 esac
4543 done
4544 done
f35db108
WM
4545 done
4546IFS=$as_save_IFS
f35db108
WM
4547
4548fi
f35db108 4549
22e05272 4550 test -d ./--version && rmdir ./--version
c915a581
JJ
4551 if test "${ac_cv_path_mkdir+set}" = set; then
4552 MKDIR_P="$ac_cv_path_mkdir -p"
4553 else
4554 # As a last resort, use the slow shell script. Don't cache a
4555 # value for MKDIR_P within a source directory, because that will
4556 # break other packages using the cache if that directory is
4557 # removed, or if the value is a relative name.
c915a581
JJ
4558 MKDIR_P="$ac_install_sh -d"
4559 fi
4560fi
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4562$as_echo "$MKDIR_P" >&6; }
f35db108 4563
c915a581
JJ
4564for ac_prog in gawk mawk nawk awk
4565do
4566 # Extract the first word of "$ac_prog", so it can be a program name with args.
4567set dummy $ac_prog; ac_word=$2
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4570if ${ac_cv_prog_AWK+:} false; then :
f35db108
WM
4571 $as_echo_n "(cached) " >&6
4572else
c915a581
JJ
4573 if test -n "$AWK"; then
4574 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4575else
4576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH
f35db108
WM
4578do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
f35db108 4581 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
4583 ac_cv_prog_AWK="$ac_prog"
4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4586 fi
4587done
f35db108 4588 done
c915a581 4589IFS=$as_save_IFS
f35db108 4590
c915a581
JJ
4591fi
4592fi
4593AWK=$ac_cv_prog_AWK
4594if test -n "$AWK"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4596$as_echo "$AWK" >&6; }
f35db108 4597else
c915a581
JJ
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599$as_echo "no" >&6; }
f35db108
WM
4600fi
4601
f35db108 4602
c915a581
JJ
4603 test -n "$AWK" && break
4604done
f35db108 4605
c915a581
JJ
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4607$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4608set x ${MAKE-make}
4609ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 4610if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
f35db108
WM
4611 $as_echo_n "(cached) " >&6
4612else
c915a581
JJ
4613 cat >conftest.make <<\_ACEOF
4614SHELL = /bin/sh
4615all:
4616 @echo '@@@%%%=$(MAKE)=@@@%%%'
4617_ACEOF
22e05272 4618# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
c915a581
JJ
4619case `${MAKE-make} -f conftest.make 2>/dev/null` in
4620 *@@@%%%=?*=@@@%%%*)
4621 eval ac_cv_prog_make_${ac_make}_set=yes;;
4622 *)
4623 eval ac_cv_prog_make_${ac_make}_set=no;;
f35db108 4624esac
c915a581
JJ
4625rm -f conftest.make
4626fi
4627if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4629$as_echo "yes" >&6; }
4630 SET_MAKE=
f35db108 4631else
c915a581
JJ
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633$as_echo "no" >&6; }
4634 SET_MAKE="MAKE=${MAKE-make}"
f35db108
WM
4635fi
4636
c915a581
JJ
4637rm -rf .tst 2>/dev/null
4638mkdir .tst 2>/dev/null
4639if test -d .tst; then
4640 am__leading_dot=.
4641else
4642 am__leading_dot=_
f35db108 4643fi
c915a581 4644rmdir .tst 2>/dev/null
f35db108 4645
c915a581 4646DEPDIR="${am__leading_dot}deps"
f35db108 4647
c915a581 4648ac_config_commands="$ac_config_commands depfiles"
f35db108 4649
f35db108 4650
c915a581
JJ
4651am_make=${MAKE-make}
4652cat > confinc << 'END'
4653am__doit:
4654 @echo this is the am__doit target
4655.PHONY: am__doit
4656END
4657# If we don't find an include directive, just comment out the code.
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4659$as_echo_n "checking for style of include used by $am_make... " >&6; }
4660am__include="#"
4661am__quote=
4662_am_result=none
4663# First try GNU make style include.
4664echo "include confinc" > confmf
22e05272 4665# Ignore all kinds of additional output from 'make'.
c915a581
JJ
4666case `$am_make -s -f confmf 2> /dev/null` in #(
4667*the\ am__doit\ target*)
4668 am__include=include
4669 am__quote=
4670 _am_result=GNU
4671 ;;
4672esac
4673# Now try BSD make style include.
4674if test "$am__include" = "#"; then
4675 echo '.include "confinc"' > confmf
4676 case `$am_make -s -f confmf 2> /dev/null` in #(
4677 *the\ am__doit\ target*)
4678 am__include=.include
4679 am__quote="\""
4680 _am_result=BSD
4681 ;;
4682 esac
f35db108 4683fi
f35db108
WM
4684
4685
c915a581
JJ
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4687$as_echo "$_am_result" >&6; }
4688rm -f confinc confmf
f35db108 4689
c915a581
JJ
4690# Check whether --enable-dependency-tracking was given.
4691if test "${enable_dependency_tracking+set}" = set; then :
4692 enableval=$enable_dependency_tracking;
4693fi
f35db108 4694
c915a581
JJ
4695if test "x$enable_dependency_tracking" != xno; then
4696 am_depcomp="$ac_aux_dir/depcomp"
4697 AMDEPBACKSLASH='\'
f3915b42 4698 am__nodep='_no'
c915a581
JJ
4699fi
4700 if test "x$enable_dependency_tracking" != xno; then
4701 AMDEP_TRUE=
4702 AMDEP_FALSE='#'
4703else
4704 AMDEP_TRUE='#'
4705 AMDEP_FALSE=
4706fi
f35db108
WM
4707
4708
22e05272
JM
4709# Check whether --enable-silent-rules was given.
4710if test "${enable_silent_rules+set}" = set; then :
4711 enableval=$enable_silent_rules;
4712fi
4713
4714case $enable_silent_rules in # (((
4715 yes) AM_DEFAULT_VERBOSITY=0;;
4716 no) AM_DEFAULT_VERBOSITY=1;;
4717 *) AM_DEFAULT_VERBOSITY=1;;
4718esac
4719am_make=${MAKE-make}
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4721$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4722if ${am_cv_make_support_nested_variables+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724else
4725 if $as_echo 'TRUE=$(BAR$(V))
4726BAR0=false
4727BAR1=true
4728V=1
4729am__doit:
4730 @$(TRUE)
4731.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4732 am_cv_make_support_nested_variables=yes
4733else
4734 am_cv_make_support_nested_variables=no
4735fi
4736fi
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4738$as_echo "$am_cv_make_support_nested_variables" >&6; }
4739if test $am_cv_make_support_nested_variables = yes; then
4740 AM_V='$(V)'
4741 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4742else
4743 AM_V=$AM_DEFAULT_VERBOSITY
4744 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4745fi
4746AM_BACKSLASH='\'
4747
c915a581
JJ
4748if test "`cd $srcdir && pwd`" != "`pwd`"; then
4749 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4750 # is not polluted with repeated "-I."
4751 am__isrc=' -I$(srcdir)'
4752 # test to see if srcdir already configured
4753 if test -f $srcdir/config.status; then
22e05272 4754 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
c915a581
JJ
4755 fi
4756fi
f35db108 4757
c915a581
JJ
4758# test whether we have cygpath
4759if test -z "$CYGPATH_W"; then
4760 if (cygpath --version) >/dev/null 2>/dev/null; then
4761 CYGPATH_W='cygpath -w'
4762 else
4763 CYGPATH_W=echo
4764 fi
4765fi
f35db108
WM
4766
4767
c915a581
JJ
4768# Define the identity of the package.
4769 PACKAGE='package-unused'
4770 VERSION='version-unused'
f35db108
WM
4771
4772
c915a581
JJ
4773cat >>confdefs.h <<_ACEOF
4774#define PACKAGE "$PACKAGE"
4775_ACEOF
f35db108
WM
4776
4777
c915a581
JJ
4778cat >>confdefs.h <<_ACEOF
4779#define VERSION "$VERSION"
4780_ACEOF
f35db108 4781
c915a581 4782# Some tools Automake needs.
f35db108 4783
c915a581 4784ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
f35db108
WM
4785
4786
c915a581 4787AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
f35db108
WM
4788
4789
c915a581 4790AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
f35db108
WM
4791
4792
c915a581 4793AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
f35db108 4794
c915a581
JJ
4795
4796MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4797
22e05272
JM
4798# For better backward compatibility. To be removed once Automake 1.9.x
4799# dies out for good. For more background, see:
4800# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4801# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4802mkdir_p='$(MKDIR_P)'
4803
4804# We need awk for the "check" target (and possibly the TAP driver). The
4805# system "awk" is bad on some platforms.
f3915b42
MH
4806# Always define AMTAR for backward compatibility. Yes, it's still used
4807# in the wild :-( We should find a proper way to deprecate it ...
4808AMTAR='$${TAR-tar}'
c915a581 4809
22e05272
JM
4810
4811# We'll loop over all known methods to create a tar archive until one works.
4812_am_tools='gnutar pax cpio none'
4813
f3915b42 4814am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
c915a581
JJ
4815
4816
4817
4818
22e05272 4819
c915a581
JJ
4820depcc="$CC" am_compiler_list=
4821
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4823$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4824if ${am_cv_CC_dependencies_compiler_type+:} false; then :
f35db108
WM
4825 $as_echo_n "(cached) " >&6
4826else
c915a581
JJ
4827 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4828 # We make a subdir and do the tests there. Otherwise we can end up
4829 # making bogus files that we don't know about and never remove. For
4830 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4831 # making a dummy file named 'D' -- because '-MD' means "put the output
4832 # in D".
f3915b42 4833 rm -rf conftest.dir
c915a581
JJ
4834 mkdir conftest.dir
4835 # Copy depcomp to subdir because otherwise we won't find it if we're
4836 # using a relative directory.
4837 cp "$am_depcomp" conftest.dir
4838 cd conftest.dir
4839 # We will build objects and dependencies in a subdirectory because
4840 # it helps to detect inapplicable dependency modes. For instance
4841 # both Tru64's cc and ICC support -MD to output dependencies as a
4842 # side effect of compilation, but ICC will put the dependencies in
4843 # the current directory while Tru64 will put them in the object
4844 # directory.
4845 mkdir sub
4846
4847 am_cv_CC_dependencies_compiler_type=none
4848 if test "$am_compiler_list" = ""; then
4849 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4850 fi
4851 am__universal=false
4852 case " $depcc " in #(
4853 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4854 esac
4855
4856 for depmode in $am_compiler_list; do
4857 # Setup a source with many dependencies, because some compilers
4858 # like to wrap large dependency lists on column 80 (with \), and
4859 # we should not choose a depcomp mode which is confused by this.
4860 #
4861 # We need to recreate these files for each test, as the compiler may
4862 # overwrite some of them when testing with obscure command lines.
4863 # This happens at least with the AIX C compiler.
4864 : > sub/conftest.c
4865 for i in 1 2 3 4 5 6; do
4866 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4867 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4868 # Solaris 10 /bin/sh.
4869 echo '/* dummy */' > sub/conftst$i.h
c915a581
JJ
4870 done
4871 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4872
22e05272 4873 # We check with '-c' and '-o' for the sake of the "dashmstdout"
c915a581 4874 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4875 # handle '-M -o', and we need to detect this. Also, some Intel
4876 # versions had trouble with output in subdirs.
c915a581
JJ
4877 am__obj=sub/conftest.${OBJEXT-o}
4878 am__minus_obj="-o $am__obj"
4879 case $depmode in
4880 gcc)
4881 # This depmode causes a compiler race in universal mode.
4882 test "$am__universal" = false || continue
4883 ;;
4884 nosideeffect)
22e05272
JM
4885 # After this tag, mechanisms are not by side-effect, so they'll
4886 # only be used when explicitly requested.
c915a581
JJ
4887 if test "x$enable_dependency_tracking" = xyes; then
4888 continue
4889 else
4890 break
4891 fi
4892 ;;
f3915b42 4893 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4894 # This compiler won't grok '-c -o', but also, the minuso test has
c915a581
JJ
4895 # not run yet. These depmodes are late enough in the game, and
4896 # so weak that their functioning should not be impacted.
4897 am__obj=conftest.${OBJEXT-o}
4898 am__minus_obj=
4899 ;;
4900 none) break ;;
4901 esac
4902 if depmode=$depmode \
4903 source=sub/conftest.c object=$am__obj \
4904 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4905 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4906 >/dev/null 2>conftest.err &&
4907 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4908 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4909 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4910 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4911 # icc doesn't choke on unknown options, it will just issue warnings
4912 # or remarks (even with -Werror). So we grep stderr for any message
4913 # that says an option was ignored or not supported.
4914 # When given -MP, icc 7.0 and 7.1 complain thusly:
4915 # icc: Command line warning: ignoring option '-M'; no argument required
4916 # The diagnosis changed in icc 8.0:
4917 # icc: Command line remark: option '-MP' not supported
4918 if (grep 'ignoring option' conftest.err ||
4919 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4920 am_cv_CC_dependencies_compiler_type=$depmode
4921 break
4922 fi
f35db108
WM
4923 fi
4924 done
c915a581
JJ
4925
4926 cd ..
4927 rm -rf conftest.dir
f35db108 4928else
c915a581 4929 am_cv_CC_dependencies_compiler_type=none
f35db108 4930fi
c915a581 4931
f35db108 4932fi
c915a581
JJ
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4934$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4935CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
f35db108 4936
c915a581
JJ
4937 if
4938 test "x$enable_dependency_tracking" != xno \
4939 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4940 am__fastdepCC_TRUE=
4941 am__fastdepCC_FALSE='#'
f35db108 4942else
c915a581
JJ
4943 am__fastdepCC_TRUE='#'
4944 am__fastdepCC_FALSE=
f35db108 4945fi
c915a581
JJ
4946
4947
4948
22e05272
JM
4949# POSIX will say in a future version that running "rm -f" with no argument
4950# is OK; and we want to be able to make that assumption in our Makefile
4951# recipes. So use an aggressive probe to check that the usage we want is
4952# actually supported "in the wild" to an acceptable degree.
4953# See automake bug#10828.
4954# To make any issue more visible, cause the running configure to be aborted
4955# by default if the 'rm' program in use doesn't match our expectations; the
4956# user can still override this though.
4957if rm -f && rm -fr && rm -rf; then : OK; else
4958 cat >&2 <<'END'
4959Oops!
4960
4961Your 'rm' program seems unable to run without file operands specified
4962on the command line, even when the '-f' option is present. This is contrary
4963to the behaviour of most rm programs out there, and not conforming with
4964the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4965
4966Please tell bug-automake@gnu.org about your system, including the value
4967of your $PATH and any error possibly output before this message. This
4968can help us improve future automake versions.
4969
4970END
4971 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4972 echo 'Configuration will proceed anyway, since you have set the' >&2
4973 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4974 echo >&2
4975 else
4976 cat >&2 <<'END'
4977Aborting the configuration process, to ensure you take notice of the issue.
4978
4979You can download and install GNU coreutils to get an 'rm' implementation
4980that behaves properly: <http://www.gnu.org/software/coreutils/>.
4981
4982If you want to complete the configuration process using your problematic
4983'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4984to "yes", and re-run configure.
4985
4986END
4987 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4988 fi
4989fi
4990
f35db108 4991
c915a581
JJ
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4993$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4994 # Check whether --enable-maintainer-mode was given.
4995if test "${enable_maintainer_mode+set}" = set; then :
4996 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
f35db108 4997else
c915a581 4998 USE_MAINTAINER_MODE=no
f35db108 4999fi
c915a581
JJ
5000
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5002$as_echo "$USE_MAINTAINER_MODE" >&6; }
5003 if test $USE_MAINTAINER_MODE = yes; then
5004 MAINTAINER_MODE_TRUE=
5005 MAINTAINER_MODE_FALSE='#'
f35db108 5006else
c915a581
JJ
5007 MAINTAINER_MODE_TRUE='#'
5008 MAINTAINER_MODE_FALSE=
5009fi
5010
5011 MAINT=$MAINTAINER_MODE_TRUE
5012
5013
5014
5015# Calculate toolexeclibdir
5016# Also toolexecdir, though it's only used in toolexeclibdir
5017case ${version_specific_libs} in
5018 yes)
5019 # Need the gcc compiler version to know where to install libraries
5020 # and header files if --enable-version-specific-runtime-libs option
5021 # is selected.
5022 toolexecdir='$(libdir)/gcc/$(target_alias)'
5023 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5024 ;;
5025 no)
5026 if test -n "$with_cross_host" &&
5027 test x"$with_cross_host" != x"no"; then
5028 # Install a library built with a cross compiler in tooldir, not libdir.
5029 toolexecdir='$(exec_prefix)/$(target_alias)'
5030 toolexeclibdir='$(toolexecdir)/lib'
5031 else
5032 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5033 toolexeclibdir='$(libdir)'
5034 fi
5035 multi_os_directory=`$CC -print-multi-os-directory`
5036 case $multi_os_directory in
5037 .) ;; # Avoid trailing /.
5038 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5039 esac
5040 ;;
5041esac
5042
5043
5044
5045# Checks for programs.
5046ac_ext=c
5047ac_cpp='$CPP $CPPFLAGS'
5048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050ac_compiler_gnu=$ac_cv_c_compiler_gnu
5051if test -n "$ac_tool_prefix"; then
5052 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5053set dummy ${ac_tool_prefix}gcc; ac_word=$2
f35db108
WM
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5056if ${ac_cv_prog_CC+:} false; then :
f35db108
WM
5057 $as_echo_n "(cached) " >&6
5058else
c915a581
JJ
5059 if test -n "$CC"; then
5060 ac_cv_prog_CC="$CC" # Let the user override the test.
f35db108
WM
5061else
5062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063for as_dir in $PATH
5064do
5065 IFS=$as_save_IFS
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 5069 ac_cv_prog_CC="${ac_tool_prefix}gcc"
f35db108
WM
5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 break 2
5072 fi
5073done
5074 done
5075IFS=$as_save_IFS
5076
5077fi
5078fi
c915a581
JJ
5079CC=$ac_cv_prog_CC
5080if test -n "$CC"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5082$as_echo "$CC" >&6; }
f35db108
WM
5083else
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085$as_echo "no" >&6; }
5086fi
5087
5088
f35db108 5089fi
c915a581
JJ
5090if test -z "$ac_cv_prog_CC"; then
5091 ac_ct_CC=$CC
5092 # Extract the first word of "gcc", so it can be a program name with args.
5093set dummy gcc; ac_word=$2
f35db108
WM
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5096if ${ac_cv_prog_ac_ct_CC+:} false; then :
f35db108
WM
5097 $as_echo_n "(cached) " >&6
5098else
c915a581
JJ
5099 if test -n "$ac_ct_CC"; then
5100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
f35db108
WM
5101else
5102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103for as_dir in $PATH
5104do
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 5109 ac_cv_prog_ac_ct_CC="gcc"
f35db108
WM
5110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5111 break 2
5112 fi
5113done
5114 done
5115IFS=$as_save_IFS
5116
5117fi
5118fi
c915a581
JJ
5119ac_ct_CC=$ac_cv_prog_ac_ct_CC
5120if test -n "$ac_ct_CC"; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5122$as_echo "$ac_ct_CC" >&6; }
f35db108
WM
5123else
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125$as_echo "no" >&6; }
5126fi
5127
c915a581
JJ
5128 if test "x$ac_ct_CC" = x; then
5129 CC=""
f35db108
WM
5130 else
5131 case $cross_compiling:$ac_tool_warned in
5132yes:)
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5135ac_tool_warned=yes ;;
5136esac
c915a581 5137 CC=$ac_ct_CC
f35db108 5138 fi
c915a581
JJ
5139else
5140 CC="$ac_cv_prog_CC"
f35db108
WM
5141fi
5142
c915a581
JJ
5143if test -z "$CC"; then
5144 if test -n "$ac_tool_prefix"; then
5145 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5146set dummy ${ac_tool_prefix}cc; ac_word=$2
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5149if ${ac_cv_prog_CC+:} false; then :
c915a581
JJ
5150 $as_echo_n "(cached) " >&6
5151else
5152 if test -n "$CC"; then
5153 ac_cv_prog_CC="$CC" # Let the user override the test.
5154else
5155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156for as_dir in $PATH
5157do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
5162 ac_cv_prog_CC="${ac_tool_prefix}cc"
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 break 2
f35db108 5165 fi
c915a581
JJ
5166done
5167 done
5168IFS=$as_save_IFS
f35db108 5169
f35db108 5170fi
c915a581
JJ
5171fi
5172CC=$ac_cv_prog_CC
5173if test -n "$CC"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5175$as_echo "$CC" >&6; }
5176else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178$as_echo "no" >&6; }
5179fi
f35db108
WM
5180
5181
f35db108 5182 fi
f35db108 5183fi
c915a581
JJ
5184if test -z "$CC"; then
5185 # Extract the first word of "cc", so it can be a program name with args.
5186set dummy cc; 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; }
22e05272 5189if ${ac_cv_prog_CC+:} false; then :
c915a581 5190 $as_echo_n "(cached) " >&6
f35db108 5191else
c915a581
JJ
5192 if test -n "$CC"; then
5193 ac_cv_prog_CC="$CC" # Let the user override the test.
f35db108 5194else
c915a581 5195 ac_prog_rejected=no
f35db108
WM
5196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH
5198do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
5203 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5204 ac_prog_rejected=yes
5205 continue
5206 fi
5207 ac_cv_prog_CC="cc"
f35db108
WM
5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5210 fi
5211done
5212 done
5213IFS=$as_save_IFS
5214
c915a581
JJ
5215if test $ac_prog_rejected = yes; then
5216 # We found a bogon in the path, so make sure we never use it.
5217 set dummy $ac_cv_prog_CC
5218 shift
5219 if test $# != 0; then
5220 # We chose a different compiler from the bogus one.
5221 # However, it has the same basename, so the bogon will be chosen
5222 # first if we set CC to just the basename; use the full file name.
5223 shift
5224 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5225 fi
5226fi
5227fi
5228fi
5229CC=$ac_cv_prog_CC
5230if test -n "$CC"; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5232$as_echo "$CC" >&6; }
f35db108
WM
5233else
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235$as_echo "no" >&6; }
5236fi
5237
5238
5239fi
c915a581
JJ
5240if test -z "$CC"; then
5241 if test -n "$ac_tool_prefix"; then
5242 for ac_prog in cl.exe
5243 do
5244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5245set dummy $ac_tool_prefix$ac_prog; ac_word=$2
f35db108
WM
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5248if ${ac_cv_prog_CC+:} false; then :
f35db108
WM
5249 $as_echo_n "(cached) " >&6
5250else
c915a581
JJ
5251 if test -n "$CC"; then
5252 ac_cv_prog_CC="$CC" # Let the user override the test.
f35db108
WM
5253else
5254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255for as_dir in $PATH
5256do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 5261 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
f35db108
WM
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5264 fi
5265done
5266 done
5267IFS=$as_save_IFS
5268
5269fi
5270fi
c915a581
JJ
5271CC=$ac_cv_prog_CC
5272if test -n "$CC"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5274$as_echo "$CC" >&6; }
f35db108
WM
5275else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277$as_echo "no" >&6; }
5278fi
5279
c915a581
JJ
5280
5281 test -n "$CC" && break
5282 done
5283fi
5284if test -z "$CC"; then
5285 ac_ct_CC=$CC
5286 for ac_prog in cl.exe
5287do
5288 # Extract the first word of "$ac_prog", so it can be a program name with args.
5289set dummy $ac_prog; ac_word=$2
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5292if ${ac_cv_prog_ac_ct_CC+:} false; then :
c915a581
JJ
5293 $as_echo_n "(cached) " >&6
5294else
5295 if test -n "$ac_ct_CC"; then
5296 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5297else
5298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299for as_dir in $PATH
5300do
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
5305 ac_cv_prog_ac_ct_CC="$ac_prog"
5306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 break 2
5308 fi
5309done
5310 done
5311IFS=$as_save_IFS
5312
5313fi
5314fi
5315ac_ct_CC=$ac_cv_prog_ac_ct_CC
5316if test -n "$ac_ct_CC"; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5318$as_echo "$ac_ct_CC" >&6; }
5319else
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321$as_echo "no" >&6; }
5322fi
5323
5324
5325 test -n "$ac_ct_CC" && break
5326done
5327
5328 if test "x$ac_ct_CC" = x; then
5329 CC=""
f35db108
WM
5330 else
5331 case $cross_compiling:$ac_tool_warned in
5332yes:)
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5335ac_tool_warned=yes ;;
5336esac
c915a581 5337 CC=$ac_ct_CC
f35db108 5338 fi
f35db108
WM
5339fi
5340
c915a581 5341fi
f35db108
WM
5342
5343
c915a581
JJ
5344test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
5346as_fn_error $? "no acceptable C compiler found in \$PATH
5347See \`config.log' for more details" "$LINENO" 5; }
f35db108 5348
c915a581
JJ
5349# Provide some information about the compiler.
5350$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5351set X $ac_compile
5352ac_compiler=$2
5353for ac_option in --version -v -V -qversion; do
5354 { { ac_try="$ac_compiler $ac_option >&5"
5355case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358esac
5359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5360$as_echo "$ac_try_echo"; } >&5
5361 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5362 ac_status=$?
5363 if test -s conftest.err; then
5364 sed '10a\
5365... rest of stderr output deleted ...
5366 10q' conftest.err >conftest.er1
5367 cat conftest.er1 >&5
c915a581 5368 fi
22e05272 5369 rm -f conftest.er1 conftest.err
c915a581
JJ
5370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5371 test $ac_status = 0; }
5372done
f35db108 5373
c915a581
JJ
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5375$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 5376if ${ac_cv_c_compiler_gnu+:} false; then :
c915a581
JJ
5377 $as_echo_n "(cached) " >&6
5378else
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380/* end confdefs.h. */
f35db108 5381
c915a581
JJ
5382int
5383main ()
5384{
5385#ifndef __GNUC__
5386 choke me
5387#endif
f35db108 5388
c915a581
JJ
5389 ;
5390 return 0;
5391}
5392_ACEOF
5393if ac_fn_c_try_compile "$LINENO"; then :
5394 ac_compiler_gnu=yes
5395else
5396 ac_compiler_gnu=no
5397fi
5398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399ac_cv_c_compiler_gnu=$ac_compiler_gnu
f35db108 5400
c915a581
JJ
5401fi
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5403$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5404if test $ac_compiler_gnu = yes; then
5405 GCC=yes
5406else
5407 GCC=
5408fi
5409ac_test_CFLAGS=${CFLAGS+set}
5410ac_save_CFLAGS=$CFLAGS
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5412$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 5413if ${ac_cv_prog_cc_g+:} false; then :
f35db108
WM
5414 $as_echo_n "(cached) " >&6
5415else
c915a581
JJ
5416 ac_save_c_werror_flag=$ac_c_werror_flag
5417 ac_c_werror_flag=yes
5418 ac_cv_prog_cc_g=no
5419 CFLAGS="-g"
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421/* end confdefs.h. */
f35db108 5422
c915a581
JJ
5423int
5424main ()
5425{
f35db108 5426
c915a581
JJ
5427 ;
5428 return 0;
5429}
5430_ACEOF
5431if ac_fn_c_try_compile "$LINENO"; then :
5432 ac_cv_prog_cc_g=yes
5433else
5434 CFLAGS=""
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h. */
f35db108 5437
c915a581
JJ
5438int
5439main ()
5440{
f35db108 5441
c915a581
JJ
5442 ;
5443 return 0;
5444}
5445_ACEOF
5446if ac_fn_c_try_compile "$LINENO"; then :
f35db108 5447
c915a581
JJ
5448else
5449 ac_c_werror_flag=$ac_save_c_werror_flag
5450 CFLAGS="-g"
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452/* end confdefs.h. */
f35db108 5453
c915a581
JJ
5454int
5455main ()
5456{
f35db108 5457
c915a581
JJ
5458 ;
5459 return 0;
5460}
5461_ACEOF
5462if ac_fn_c_try_compile "$LINENO"; then :
5463 ac_cv_prog_cc_g=yes
5464fi
5465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466fi
5467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468fi
5469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 ac_c_werror_flag=$ac_save_c_werror_flag
5471fi
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5473$as_echo "$ac_cv_prog_cc_g" >&6; }
5474if test "$ac_test_CFLAGS" = set; then
5475 CFLAGS=$ac_save_CFLAGS
5476elif test $ac_cv_prog_cc_g = yes; then
5477 if test "$GCC" = yes; then
5478 CFLAGS="-g -O2"
f35db108 5479 else
c915a581 5480 CFLAGS="-g"
f35db108 5481 fi
c915a581
JJ
5482else
5483 if test "$GCC" = yes; then
5484 CFLAGS="-O2"
5485 else
5486 CFLAGS=
5487 fi
5488fi
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5490$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 5491if ${ac_cv_prog_cc_c89+:} false; then :
c915a581
JJ
5492 $as_echo_n "(cached) " >&6
5493else
5494 ac_cv_prog_cc_c89=no
5495ac_save_CC=$CC
5496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497/* end confdefs.h. */
5498#include <stdarg.h>
5499#include <stdio.h>
22e05272 5500struct stat;
c915a581
JJ
5501/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5502struct buf { int x; };
5503FILE * (*rcsopen) (struct buf *, struct stat *, int);
5504static char *e (p, i)
5505 char **p;
5506 int i;
5507{
5508 return p[i];
5509}
5510static char *f (char * (*g) (char **, int), char **p, ...)
5511{
5512 char *s;
5513 va_list v;
5514 va_start (v,p);
5515 s = g (p, va_arg (v,int));
5516 va_end (v);
5517 return s;
5518}
f35db108 5519
c915a581
JJ
5520/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5521 function prototypes and stuff, but not '\xHH' hex character constants.
5522 These don't provoke an error unfortunately, instead are silently treated
5523 as 'x'. The following induces an error, until -std is added to get
5524 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5525 array size at least. It's necessary to write '\x00'==0 to get something
5526 that's true only with -std. */
5527int osf4_cc_array ['\x00' == 0 ? 1 : -1];
f35db108 5528
c915a581
JJ
5529/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5530 inside strings and character constants. */
5531#define FOO(x) 'x'
5532int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
f35db108 5533
c915a581
JJ
5534int test (int i, double x);
5535struct s1 {int (*f) (int a);};
5536struct s2 {int (*f) (double a);};
5537int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5538int argc;
5539char **argv;
5540int
5541main ()
5542{
5543return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5544 ;
5545 return 0;
5546}
5547_ACEOF
5548for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5549 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5550do
5551 CC="$ac_save_CC $ac_arg"
5552 if ac_fn_c_try_compile "$LINENO"; then :
5553 ac_cv_prog_cc_c89=$ac_arg
5554fi
5555rm -f core conftest.err conftest.$ac_objext
5556 test "x$ac_cv_prog_cc_c89" != "xno" && break
5557done
5558rm -f conftest.$ac_ext
5559CC=$ac_save_CC
f35db108 5560
c915a581
JJ
5561fi
5562# AC_CACHE_VAL
5563case "x$ac_cv_prog_cc_c89" in
5564 x)
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5566$as_echo "none needed" >&6; } ;;
5567 xno)
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5569$as_echo "unsupported" >&6; } ;;
5570 *)
5571 CC="$CC $ac_cv_prog_cc_c89"
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5573$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5574esac
5575if test "x$ac_cv_prog_cc_c89" != xno; then :
f35db108 5576
c915a581 5577fi
f35db108 5578
c915a581
JJ
5579ac_ext=c
5580ac_cpp='$CPP $CPPFLAGS'
5581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5583ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 5584
22e05272
JM
5585ac_ext=c
5586ac_cpp='$CPP $CPPFLAGS'
5587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5589ac_compiler_gnu=$ac_cv_c_compiler_gnu
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5591$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5592if ${am_cv_prog_cc_c_o+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594else
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596/* end confdefs.h. */
5597
5598int
5599main ()
5600{
5601
5602 ;
5603 return 0;
5604}
5605_ACEOF
5606 # Make sure it works both with $CC and with simple cc.
5607 # Following AC_PROG_CC_C_O, we do the test twice because some
5608 # compilers refuse to overwrite an existing .o file with -o,
5609 # though they will create one.
5610 am_cv_prog_cc_c_o=yes
5611 for am_i in 1 2; do
5612 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5613 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5614 ac_status=$?
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } \
5617 && test -f conftest2.$ac_objext; then
5618 : OK
5619 else
5620 am_cv_prog_cc_c_o=no
5621 break
5622 fi
5623 done
5624 rm -f core conftest*
5625 unset am_i
5626fi
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5628$as_echo "$am_cv_prog_cc_c_o" >&6; }
5629if test "$am_cv_prog_cc_c_o" != yes; then
5630 # Losing compiler, so override with the script.
5631 # FIXME: It is wrong to rewrite CC.
5632 # But if we don't then we get into trouble of one sort or another.
5633 # A longer-term fix would be to have automake use am__CC in this case,
5634 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5635 CC="$am_aux_dir/compile $CC"
5636fi
5637ac_ext=c
5638ac_cpp='$CPP $CPPFLAGS'
5639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5641ac_compiler_gnu=$ac_cv_c_compiler_gnu
5642
5643
c915a581
JJ
5644ac_ext=cpp
5645ac_cpp='$CXXCPP $CPPFLAGS'
5646ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5649if test -z "$CXX"; then
5650 if test -n "$CCC"; then
5651 CXX=$CCC
f35db108 5652 else
c915a581
JJ
5653 if test -n "$ac_tool_prefix"; then
5654 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5655 do
5656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5657set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5660if ${ac_cv_prog_CXX+:} false; then :
c915a581
JJ
5661 $as_echo_n "(cached) " >&6
5662else
5663 if test -n "$CXX"; then
5664 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5665else
5666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667for as_dir in $PATH
5668do
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
5673 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 break 2
f35db108 5676 fi
c915a581
JJ
5677done
5678 done
5679IFS=$as_save_IFS
f35db108 5680
c915a581
JJ
5681fi
5682fi
5683CXX=$ac_cv_prog_CXX
5684if test -n "$CXX"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5686$as_echo "$CXX" >&6; }
5687else
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689$as_echo "no" >&6; }
5690fi
f35db108 5691
f35db108 5692
c915a581
JJ
5693 test -n "$CXX" && break
5694 done
f35db108 5695fi
c915a581
JJ
5696if test -z "$CXX"; then
5697 ac_ct_CXX=$CXX
5698 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5699do
5700 # Extract the first word of "$ac_prog", so it can be a program name with args.
5701set dummy $ac_prog; ac_word=$2
f35db108
WM
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5704if ${ac_cv_prog_ac_ct_CXX+:} false; then :
f35db108
WM
5705 $as_echo_n "(cached) " >&6
5706else
c915a581
JJ
5707 if test -n "$ac_ct_CXX"; then
5708 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
f35db108
WM
5709else
5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH
5712do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 5717 ac_cv_prog_ac_ct_CXX="$ac_prog"
f35db108
WM
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5720 fi
5721done
5722 done
5723IFS=$as_save_IFS
5724
5725fi
5726fi
c915a581
JJ
5727ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5728if test -n "$ac_ct_CXX"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5730$as_echo "$ac_ct_CXX" >&6; }
f35db108
WM
5731else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733$as_echo "no" >&6; }
5734fi
5735
5736
c915a581 5737 test -n "$ac_ct_CXX" && break
f35db108 5738done
f35db108 5739
c915a581
JJ
5740 if test "x$ac_ct_CXX" = x; then
5741 CXX="g++"
f35db108
WM
5742 else
5743 case $cross_compiling:$ac_tool_warned in
5744yes:)
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5747ac_tool_warned=yes ;;
5748esac
c915a581 5749 CXX=$ac_ct_CXX
f35db108 5750 fi
f35db108
WM
5751fi
5752
f35db108 5753 fi
c915a581
JJ
5754fi
5755# Provide some information about the compiler.
5756$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5757set X $ac_compile
5758ac_compiler=$2
5759for ac_option in --version -v -V -qversion; do
5760 { { ac_try="$ac_compiler $ac_option >&5"
5761case "(($ac_try" in
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5764esac
5765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5766$as_echo "$ac_try_echo"; } >&5
5767 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5768 ac_status=$?
5769 if test -s conftest.err; then
5770 sed '10a\
5771... rest of stderr output deleted ...
5772 10q' conftest.err >conftest.er1
5773 cat conftest.er1 >&5
c915a581 5774 fi
22e05272 5775 rm -f conftest.er1 conftest.err
c915a581
JJ
5776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5777 test $ac_status = 0; }
f35db108 5778done
f35db108 5779
c915a581
JJ
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5781$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5782if ${ac_cv_cxx_compiler_gnu+:} false; then :
c915a581 5783 $as_echo_n "(cached) " >&6
f35db108 5784else
c915a581
JJ
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786/* end confdefs.h. */
f35db108 5787
c915a581
JJ
5788int
5789main ()
5790{
5791#ifndef __GNUC__
5792 choke me
5793#endif
f35db108 5794
c915a581
JJ
5795 ;
5796 return 0;
5797}
5798_ACEOF
5799if ac_fn_cxx_try_compile "$LINENO"; then :
5800 ac_compiler_gnu=yes
f35db108 5801else
c915a581 5802 ac_compiler_gnu=no
f35db108 5803fi
c915a581
JJ
5804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5806
f35db108 5807fi
c915a581
JJ
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5809$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5810if test $ac_compiler_gnu = yes; then
5811 GXX=yes
f35db108 5812else
c915a581 5813 GXX=
f35db108 5814fi
c915a581
JJ
5815ac_test_CXXFLAGS=${CXXFLAGS+set}
5816ac_save_CXXFLAGS=$CXXFLAGS
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5818$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5819if ${ac_cv_prog_cxx_g+:} false; then :
c915a581 5820 $as_echo_n "(cached) " >&6
f35db108 5821else
c915a581
JJ
5822 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5823 ac_cxx_werror_flag=yes
5824 ac_cv_prog_cxx_g=no
5825 CXXFLAGS="-g"
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827/* end confdefs.h. */
f35db108 5828
c915a581
JJ
5829int
5830main ()
5831{
f35db108 5832
c915a581
JJ
5833 ;
5834 return 0;
5835}
5836_ACEOF
5837if ac_fn_cxx_try_compile "$LINENO"; then :
5838 ac_cv_prog_cxx_g=yes
5839else
5840 CXXFLAGS=""
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842/* end confdefs.h. */
f35db108 5843
c915a581
JJ
5844int
5845main ()
5846{
f35db108 5847
c915a581
JJ
5848 ;
5849 return 0;
5850}
5851_ACEOF
5852if ac_fn_cxx_try_compile "$LINENO"; then :
f35db108 5853
f35db108 5854else
c915a581
JJ
5855 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5856 CXXFLAGS="-g"
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858/* end confdefs.h. */
f35db108 5859
c915a581
JJ
5860int
5861main ()
5862{
f35db108 5863
c915a581
JJ
5864 ;
5865 return 0;
5866}
5867_ACEOF
5868if ac_fn_cxx_try_compile "$LINENO"; then :
5869 ac_cv_prog_cxx_g=yes
f35db108 5870fi
c915a581 5871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 5872fi
c915a581 5873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 5874fi
c915a581
JJ
5875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
f35db108 5877fi
c915a581
JJ
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5879$as_echo "$ac_cv_prog_cxx_g" >&6; }
5880if test "$ac_test_CXXFLAGS" = set; then
5881 CXXFLAGS=$ac_save_CXXFLAGS
5882elif test $ac_cv_prog_cxx_g = yes; then
5883 if test "$GXX" = yes; then
5884 CXXFLAGS="-g -O2"
f35db108 5885 else
c915a581 5886 CXXFLAGS="-g"
f35db108
WM
5887 fi
5888else
c915a581
JJ
5889 if test "$GXX" = yes; then
5890 CXXFLAGS="-O2"
5891 else
5892 CXXFLAGS=
5893 fi
f35db108 5894fi
c915a581
JJ
5895ac_ext=c
5896ac_cpp='$CPP $CPPFLAGS'
5897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5899ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 5900
c915a581 5901depcc="$CXX" am_compiler_list=
f35db108 5902
c915a581
JJ
5903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5904$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 5905if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
c915a581
JJ
5906 $as_echo_n "(cached) " >&6
5907else
5908 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5909 # We make a subdir and do the tests there. Otherwise we can end up
5910 # making bogus files that we don't know about and never remove. For
5911 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
5912 # making a dummy file named 'D' -- because '-MD' means "put the output
5913 # in D".
f3915b42 5914 rm -rf conftest.dir
c915a581
JJ
5915 mkdir conftest.dir
5916 # Copy depcomp to subdir because otherwise we won't find it if we're
5917 # using a relative directory.
5918 cp "$am_depcomp" conftest.dir
5919 cd conftest.dir
5920 # We will build objects and dependencies in a subdirectory because
5921 # it helps to detect inapplicable dependency modes. For instance
5922 # both Tru64's cc and ICC support -MD to output dependencies as a
5923 # side effect of compilation, but ICC will put the dependencies in
5924 # the current directory while Tru64 will put them in the object
5925 # directory.
5926 mkdir sub
f35db108 5927
c915a581
JJ
5928 am_cv_CXX_dependencies_compiler_type=none
5929 if test "$am_compiler_list" = ""; then
5930 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5931 fi
5932 am__universal=false
5933 case " $depcc " in #(
5934 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5935 esac
f35db108 5936
c915a581
JJ
5937 for depmode in $am_compiler_list; do
5938 # Setup a source with many dependencies, because some compilers
5939 # like to wrap large dependency lists on column 80 (with \), and
5940 # we should not choose a depcomp mode which is confused by this.
5941 #
5942 # We need to recreate these files for each test, as the compiler may
5943 # overwrite some of them when testing with obscure command lines.
5944 # This happens at least with the AIX C compiler.
5945 : > sub/conftest.c
5946 for i in 1 2 3 4 5 6; do
5947 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
5948 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5949 # Solaris 10 /bin/sh.
5950 echo '/* dummy */' > sub/conftst$i.h
c915a581
JJ
5951 done
5952 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
f35db108 5953
22e05272 5954 # We check with '-c' and '-o' for the sake of the "dashmstdout"
c915a581 5955 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
5956 # handle '-M -o', and we need to detect this. Also, some Intel
5957 # versions had trouble with output in subdirs.
c915a581
JJ
5958 am__obj=sub/conftest.${OBJEXT-o}
5959 am__minus_obj="-o $am__obj"
5960 case $depmode in
5961 gcc)
5962 # This depmode causes a compiler race in universal mode.
5963 test "$am__universal" = false || continue
5964 ;;
5965 nosideeffect)
22e05272
JM
5966 # After this tag, mechanisms are not by side-effect, so they'll
5967 # only be used when explicitly requested.
c915a581
JJ
5968 if test "x$enable_dependency_tracking" = xyes; then
5969 continue
5970 else
5971 break
5972 fi
5973 ;;
f3915b42 5974 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 5975 # This compiler won't grok '-c -o', but also, the minuso test has
c915a581
JJ
5976 # not run yet. These depmodes are late enough in the game, and
5977 # so weak that their functioning should not be impacted.
5978 am__obj=conftest.${OBJEXT-o}
5979 am__minus_obj=
5980 ;;
5981 none) break ;;
5982 esac
5983 if depmode=$depmode \
5984 source=sub/conftest.c object=$am__obj \
5985 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5986 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5987 >/dev/null 2>conftest.err &&
5988 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5989 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5990 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5991 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5992 # icc doesn't choke on unknown options, it will just issue warnings
5993 # or remarks (even with -Werror). So we grep stderr for any message
5994 # that says an option was ignored or not supported.
5995 # When given -MP, icc 7.0 and 7.1 complain thusly:
5996 # icc: Command line warning: ignoring option '-M'; no argument required
5997 # The diagnosis changed in icc 8.0:
5998 # icc: Command line remark: option '-MP' not supported
5999 if (grep 'ignoring option' conftest.err ||
6000 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6001 am_cv_CXX_dependencies_compiler_type=$depmode
6002 break
6003 fi
6004 fi
6005 done
f35db108 6006
c915a581
JJ
6007 cd ..
6008 rm -rf conftest.dir
6009else
6010 am_cv_CXX_dependencies_compiler_type=none
6011fi
f35db108 6012
c915a581
JJ
6013fi
6014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6015$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6016CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
f35db108 6017
c915a581
JJ
6018 if
6019 test "x$enable_dependency_tracking" != xno \
6020 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6021 am__fastdepCXX_TRUE=
6022 am__fastdepCXX_FALSE='#'
6023else
6024 am__fastdepCXX_TRUE='#'
6025 am__fastdepCXX_FALSE=
6026fi
f35db108
WM
6027
6028
c915a581 6029# By default we simply use the C compiler to build assembly code.
f35db108 6030
c915a581
JJ
6031test "${CCAS+set}" = set || CCAS=$CC
6032test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
f35db108
WM
6033
6034
6035
c915a581 6036depcc="$CCAS" am_compiler_list=
f35db108 6037
c915a581
JJ
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6039$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 6040if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
c915a581
JJ
6041 $as_echo_n "(cached) " >&6
6042else
6043 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6044 # We make a subdir and do the tests there. Otherwise we can end up
6045 # making bogus files that we don't know about and never remove. For
6046 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
6047 # making a dummy file named 'D' -- because '-MD' means "put the output
6048 # in D".
f3915b42 6049 rm -rf conftest.dir
c915a581
JJ
6050 mkdir conftest.dir
6051 # Copy depcomp to subdir because otherwise we won't find it if we're
6052 # using a relative directory.
6053 cp "$am_depcomp" conftest.dir
6054 cd conftest.dir
6055 # We will build objects and dependencies in a subdirectory because
6056 # it helps to detect inapplicable dependency modes. For instance
6057 # both Tru64's cc and ICC support -MD to output dependencies as a
6058 # side effect of compilation, but ICC will put the dependencies in
6059 # the current directory while Tru64 will put them in the object
6060 # directory.
6061 mkdir sub
f35db108 6062
c915a581
JJ
6063 am_cv_CCAS_dependencies_compiler_type=none
6064 if test "$am_compiler_list" = ""; then
6065 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6066 fi
6067 am__universal=false
f35db108
WM
6068
6069
c915a581
JJ
6070 for depmode in $am_compiler_list; do
6071 # Setup a source with many dependencies, because some compilers
6072 # like to wrap large dependency lists on column 80 (with \), and
6073 # we should not choose a depcomp mode which is confused by this.
6074 #
6075 # We need to recreate these files for each test, as the compiler may
6076 # overwrite some of them when testing with obscure command lines.
6077 # This happens at least with the AIX C compiler.
6078 : > sub/conftest.c
6079 for i in 1 2 3 4 5 6; do
6080 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
6081 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6082 # Solaris 10 /bin/sh.
6083 echo '/* dummy */' > sub/conftst$i.h
c915a581
JJ
6084 done
6085 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
f35db108 6086
22e05272 6087 # We check with '-c' and '-o' for the sake of the "dashmstdout"
c915a581 6088 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
6089 # handle '-M -o', and we need to detect this. Also, some Intel
6090 # versions had trouble with output in subdirs.
c915a581
JJ
6091 am__obj=sub/conftest.${OBJEXT-o}
6092 am__minus_obj="-o $am__obj"
6093 case $depmode in
6094 gcc)
6095 # This depmode causes a compiler race in universal mode.
6096 test "$am__universal" = false || continue
6097 ;;
6098 nosideeffect)
22e05272
JM
6099 # After this tag, mechanisms are not by side-effect, so they'll
6100 # only be used when explicitly requested.
c915a581
JJ
6101 if test "x$enable_dependency_tracking" = xyes; then
6102 continue
6103 else
6104 break
6105 fi
6106 ;;
f3915b42 6107 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 6108 # This compiler won't grok '-c -o', but also, the minuso test has
c915a581
JJ
6109 # not run yet. These depmodes are late enough in the game, and
6110 # so weak that their functioning should not be impacted.
6111 am__obj=conftest.${OBJEXT-o}
6112 am__minus_obj=
6113 ;;
6114 none) break ;;
6115 esac
6116 if depmode=$depmode \
6117 source=sub/conftest.c object=$am__obj \
6118 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6119 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6120 >/dev/null 2>conftest.err &&
6121 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6122 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6123 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6124 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6125 # icc doesn't choke on unknown options, it will just issue warnings
6126 # or remarks (even with -Werror). So we grep stderr for any message
6127 # that says an option was ignored or not supported.
6128 # When given -MP, icc 7.0 and 7.1 complain thusly:
6129 # icc: Command line warning: ignoring option '-M'; no argument required
6130 # The diagnosis changed in icc 8.0:
6131 # icc: Command line remark: option '-MP' not supported
6132 if (grep 'ignoring option' conftest.err ||
6133 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6134 am_cv_CCAS_dependencies_compiler_type=$depmode
6135 break
6136 fi
6137 fi
6138 done
f35db108 6139
c915a581
JJ
6140 cd ..
6141 rm -rf conftest.dir
6142else
6143 am_cv_CCAS_dependencies_compiler_type=none
6144fi
f35db108 6145
c915a581
JJ
6146fi
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6148$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6149CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
f35db108 6150
c915a581
JJ
6151 if
6152 test "x$enable_dependency_tracking" != xno \
6153 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6154 am__fastdepCCAS_TRUE=
6155 am__fastdepCCAS_FALSE='#'
6156else
6157 am__fastdepCCAS_TRUE='#'
6158 am__fastdepCCAS_FALSE=
6159fi
f35db108
WM
6160
6161
c915a581
JJ
6162if test -n "$ac_tool_prefix"; then
6163 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6164set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6166$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6167if ${ac_cv_prog_RANLIB+:} false; then :
f35db108
WM
6168 $as_echo_n "(cached) " >&6
6169else
c915a581
JJ
6170 if test -n "$RANLIB"; then
6171 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6172else
6173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174for as_dir in $PATH
6175do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
6180 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 break 2
6183 fi
6184done
6185 done
6186IFS=$as_save_IFS
f35db108 6187
c915a581
JJ
6188fi
6189fi
6190RANLIB=$ac_cv_prog_RANLIB
6191if test -n "$RANLIB"; then
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6193$as_echo "$RANLIB" >&6; }
6194else
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196$as_echo "no" >&6; }
6197fi
f35db108 6198
f35db108 6199
c915a581
JJ
6200fi
6201if test -z "$ac_cv_prog_RANLIB"; then
6202 ac_ct_RANLIB=$RANLIB
6203 # Extract the first word of "ranlib", so it can be a program name with args.
6204set dummy ranlib; ac_word=$2
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6207if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
c915a581
JJ
6208 $as_echo_n "(cached) " >&6
6209else
6210 if test -n "$ac_ct_RANLIB"; then
6211 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6212else
6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214for as_dir in $PATH
6215do
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
6220 ac_cv_prog_ac_ct_RANLIB="ranlib"
6221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 break 2
f35db108
WM
6223 fi
6224done
c915a581
JJ
6225 done
6226IFS=$as_save_IFS
f35db108
WM
6227
6228fi
f35db108 6229fi
c915a581
JJ
6230ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6231if test -n "$ac_ct_RANLIB"; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6233$as_echo "$ac_ct_RANLIB" >&6; }
f35db108 6234else
c915a581
JJ
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236$as_echo "no" >&6; }
f35db108
WM
6237fi
6238
c915a581
JJ
6239 if test "x$ac_ct_RANLIB" = x; then
6240 RANLIB=":"
6241 else
6242 case $cross_compiling:$ac_tool_warned in
6243yes:)
6244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6246ac_tool_warned=yes ;;
6247esac
6248 RANLIB=$ac_ct_RANLIB
6249 fi
6250else
6251 RANLIB="$ac_cv_prog_RANLIB"
6252fi
f35db108
WM
6253
6254
c915a581 6255enable_dlopen=yes
f35db108
WM
6256
6257
6258
c915a581
JJ
6259case `pwd` in
6260 *\ * | *\ *)
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6262$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6263esac
f35db108
WM
6264
6265
6266
c915a581
JJ
6267macro_version='2.2.7a'
6268macro_revision='1.3134'
f35db108
WM
6269
6270
6271
6272
6273
6274
6275
6276
6277
f35db108
WM
6278
6279
6280
6281
c915a581 6282ltmain="$ac_aux_dir/ltmain.sh"
f35db108 6283
c915a581
JJ
6284# Backslashify metacharacters that are still active within
6285# double-quoted strings.
6286sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
f35db108 6287
c915a581
JJ
6288# Same as above, but do not quote variable references.
6289double_quote_subst='s/\(["`\\]\)/\\\1/g'
f35db108 6290
c915a581
JJ
6291# Sed substitution to delay expansion of an escaped shell variable in a
6292# double_quote_subst'ed string.
6293delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
f35db108 6294
c915a581
JJ
6295# Sed substitution to delay expansion of an escaped single quote.
6296delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
f35db108 6297
c915a581
JJ
6298# Sed substitution to avoid accidental globbing in evaled expressions
6299no_glob_subst='s/\*/\\\*/g'
f35db108 6300
c915a581
JJ
6301ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6302ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6303ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
f35db108 6304
c915a581
JJ
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6306$as_echo_n "checking how to print strings... " >&6; }
6307# Test print first, because it will be a builtin if present.
6308if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6309 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6310 ECHO='print -r --'
6311elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6312 ECHO='printf %s\n'
f35db108 6313else
c915a581
JJ
6314 # Use this function as a fallback that always works.
6315 func_fallback_echo ()
6316 {
6317 eval 'cat <<_LTECHO_EOF
6318$1
6319_LTECHO_EOF'
6320 }
6321 ECHO='func_fallback_echo'
f35db108 6322fi
f35db108 6323
c915a581
JJ
6324# func_echo_all arg...
6325# Invoke $ECHO with all args, space-separated.
6326func_echo_all ()
6327{
6328 $ECHO ""
6329}
6330
6331case "$ECHO" in
6332 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6333$as_echo "printf" >&6; } ;;
6334 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6335$as_echo "print -r" >&6; } ;;
6336 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6337$as_echo "cat" >&6; } ;;
f35db108
WM
6338esac
6339
f35db108 6340
f35db108 6341
c915a581
JJ
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6354$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 6355if ${ac_cv_path_SED+:} false; then :
f35db108
WM
6356 $as_echo_n "(cached) " >&6
6357else
c915a581
JJ
6358 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6359 for ac_i in 1 2 3 4 5 6 7; do
6360 ac_script="$ac_script$as_nl$ac_script"
6361 done
6362 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6363 { ac_script=; unset ac_script;}
6364 if test -z "$SED"; then
6365 ac_path_SED_found=false
6366 # Loop through the user's path and test for each of PROGNAME-LIST
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368for as_dir in $PATH
f35db108
WM
6369do
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
c915a581 6372 for ac_prog in sed gsed; do
f35db108 6373 for ac_exec_ext in '' $ac_executable_extensions; do
c915a581 6374 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6375 as_fn_executable_p "$ac_path_SED" || continue
c915a581
JJ
6376# Check for GNU ac_path_SED and select it if it is found.
6377 # Check for GNU $ac_path_SED
6378case `"$ac_path_SED" --version 2>&1` in
6379*GNU*)
6380 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6381*)
6382 ac_count=0
6383 $as_echo_n 0123456789 >"conftest.in"
6384 while :
6385 do
6386 cat "conftest.in" "conftest.in" >"conftest.tmp"
6387 mv "conftest.tmp" "conftest.in"
6388 cp "conftest.in" "conftest.nl"
6389 $as_echo '' >> "conftest.nl"
6390 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6392 as_fn_arith $ac_count + 1 && ac_count=$as_val
6393 if test $ac_count -gt ${ac_path_SED_max-0}; then
6394 # Best one so far, save it but keep looking for a better one
6395 ac_cv_path_SED="$ac_path_SED"
6396 ac_path_SED_max=$ac_count
6397 fi
6398 # 10*(2^10) chars as input seems more than enough
6399 test $ac_count -gt 10 && break
f35db108 6400 done
c915a581
JJ
6401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6402esac
f35db108 6403
c915a581
JJ
6404 $ac_path_SED_found && break 3
6405 done
6406 done
f35db108
WM
6407 done
6408IFS=$as_save_IFS
c915a581 6409 if test -z "$ac_cv_path_SED"; then
22e05272 6410 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
c915a581 6411 fi
f35db108 6412else
c915a581 6413 ac_cv_path_SED=$SED
f35db108
WM
6414fi
6415
f35db108 6416fi
c915a581
JJ
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6418$as_echo "$ac_cv_path_SED" >&6; }
6419 SED="$ac_cv_path_SED"
6420 rm -f conftest.sed
f35db108 6421
c915a581
JJ
6422test -z "$SED" && SED=sed
6423Xsed="$SED -e 1s/^X//"
f35db108 6424
f35db108
WM
6425
6426
c915a581
JJ
6427
6428
6429
6430
6431
6432
6433
6434
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6436$as_echo_n "checking for fgrep... " >&6; }
22e05272 6437if ${ac_cv_path_FGREP+:} false; then :
f35db108
WM
6438 $as_echo_n "(cached) " >&6
6439else
c915a581
JJ
6440 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6441 then ac_cv_path_FGREP="$GREP -F"
6442 else
6443 if test -z "$FGREP"; then
6444 ac_path_FGREP_found=false
6445 # Loop through the user's path and test for each of PROGNAME-LIST
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
f35db108
WM
6448do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
c915a581 6451 for ac_prog in fgrep; do
f35db108 6452 for ac_exec_ext in '' $ac_executable_extensions; do
c915a581 6453 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6454 as_fn_executable_p "$ac_path_FGREP" || continue
c915a581
JJ
6455# Check for GNU ac_path_FGREP and select it if it is found.
6456 # Check for GNU $ac_path_FGREP
6457case `"$ac_path_FGREP" --version 2>&1` in
6458*GNU*)
6459 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6460*)
6461 ac_count=0
6462 $as_echo_n 0123456789 >"conftest.in"
6463 while :
6464 do
6465 cat "conftest.in" "conftest.in" >"conftest.tmp"
6466 mv "conftest.tmp" "conftest.in"
6467 cp "conftest.in" "conftest.nl"
6468 $as_echo 'FGREP' >> "conftest.nl"
6469 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6471 as_fn_arith $ac_count + 1 && ac_count=$as_val
6472 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6473 # Best one so far, save it but keep looking for a better one
6474 ac_cv_path_FGREP="$ac_path_FGREP"
6475 ac_path_FGREP_max=$ac_count
6476 fi
6477 # 10*(2^10) chars as input seems more than enough
6478 test $ac_count -gt 10 && break
f35db108 6479 done
c915a581
JJ
6480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6481esac
f35db108 6482
c915a581
JJ
6483 $ac_path_FGREP_found && break 3
6484 done
6485 done
6486 done
6487IFS=$as_save_IFS
6488 if test -z "$ac_cv_path_FGREP"; then
22e05272 6489 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
c915a581 6490 fi
f35db108 6491else
c915a581 6492 ac_cv_path_FGREP=$FGREP
f35db108
WM
6493fi
6494
c915a581 6495 fi
f35db108 6496fi
c915a581
JJ
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6498$as_echo "$ac_cv_path_FGREP" >&6; }
6499 FGREP="$ac_cv_path_FGREP"
f35db108 6500
c915a581
JJ
6501
6502test -z "$GREP" && GREP=grep
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522# Check whether --with-gnu-ld was given.
6523if test "${with_gnu_ld+set}" = set; then :
6524 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6525else
6526 with_gnu_ld=no
6527fi
6528
6529ac_prog=ld
6530if test "$GCC" = yes; then
6531 # Check if gcc -print-prog-name=ld gives a path.
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6533$as_echo_n "checking for ld used by $CC... " >&6; }
6534 case $host in
6535 *-*-mingw*)
6536 # gcc leaves a trailing carriage return which upsets mingw
6537 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6538 *)
6539 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6540 esac
6541 case $ac_prog in
6542 # Accept absolute paths.
6543 [\\/]* | ?:[\\/]*)
6544 re_direlt='/[^/][^/]*/\.\./'
6545 # Canonicalize the pathname of ld
6546 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6547 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6548 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6549 done
6550 test -z "$LD" && LD="$ac_prog"
6551 ;;
6552 "")
6553 # If it fails, then pretend we aren't using GCC.
6554 ac_prog=ld
6555 ;;
6556 *)
6557 # If it is relative, then search for the first ld in PATH.
6558 with_gnu_ld=unknown
6559 ;;
6560 esac
6561elif test "$with_gnu_ld" = yes; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6563$as_echo_n "checking for GNU ld... " >&6; }
6564else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6566$as_echo_n "checking for non-GNU ld... " >&6; }
6567fi
22e05272 6568if ${lt_cv_path_LD+:} false; then :
c915a581
JJ
6569 $as_echo_n "(cached) " >&6
6570else
6571 if test -z "$LD"; then
6572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6573 for ac_dir in $PATH; do
6574 IFS="$lt_save_ifs"
6575 test -z "$ac_dir" && ac_dir=.
6576 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6577 lt_cv_path_LD="$ac_dir/$ac_prog"
6578 # Check to see if the program is GNU ld. I'd rather use --version,
6579 # but apparently some variants of GNU ld only accept -v.
6580 # Break only if it was the GNU/non-GNU ld that we prefer.
6581 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6582 *GNU* | *'with BFD'*)
6583 test "$with_gnu_ld" != no && break
6584 ;;
6585 *)
6586 test "$with_gnu_ld" != yes && break
6587 ;;
6588 esac
6589 fi
6590 done
6591 IFS="$lt_save_ifs"
6592else
6593 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6594fi
6595fi
6596
6597LD="$lt_cv_path_LD"
6598if test -n "$LD"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6600$as_echo "$LD" >&6; }
6601else
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603$as_echo "no" >&6; }
6604fi
22e05272 6605test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
c915a581
JJ
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6607$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 6608if ${lt_cv_prog_gnu_ld+:} false; then :
c915a581
JJ
6609 $as_echo_n "(cached) " >&6
6610else
6611 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6612case `$LD -v 2>&1 </dev/null` in
6613*GNU* | *'with BFD'*)
6614 lt_cv_prog_gnu_ld=yes
6615 ;;
6616*)
6617 lt_cv_prog_gnu_ld=no
6618 ;;
6619esac
6620fi
6621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6622$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6623with_gnu_ld=$lt_cv_prog_gnu_ld
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6634$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 6635if ${lt_cv_path_NM+:} false; then :
c915a581
JJ
6636 $as_echo_n "(cached) " >&6
6637else
6638 if test -n "$NM"; then
6639 # Let the user override the test.
6640 lt_cv_path_NM="$NM"
6641else
6642 lt_nm_to_check="${ac_tool_prefix}nm"
6643 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6644 lt_nm_to_check="$lt_nm_to_check nm"
6645 fi
6646 for lt_tmp_nm in $lt_nm_to_check; do
6647 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6648 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6649 IFS="$lt_save_ifs"
6650 test -z "$ac_dir" && ac_dir=.
6651 tmp_nm="$ac_dir/$lt_tmp_nm"
6652 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6653 # Check to see if the nm accepts a BSD-compat flag.
6654 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6655 # nm: unknown option "B" ignored
6656 # Tru64's nm complains that /dev/null is an invalid object file
6657 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6658 */dev/null* | *'Invalid file or object type'*)
6659 lt_cv_path_NM="$tmp_nm -B"
6660 break
6661 ;;
6662 *)
6663 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6664 */dev/null*)
6665 lt_cv_path_NM="$tmp_nm -p"
6666 break
6667 ;;
6668 *)
6669 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6670 continue # so that we can try to find one that supports BSD flags
6671 ;;
6672 esac
6673 ;;
6674 esac
6675 fi
6676 done
6677 IFS="$lt_save_ifs"
6678 done
6679 : ${lt_cv_path_NM=no}
6680fi
6681fi
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6683$as_echo "$lt_cv_path_NM" >&6; }
6684if test "$lt_cv_path_NM" != "no"; then
6685 NM="$lt_cv_path_NM"
6686else
6687 # Didn't find any BSD compatible name lister, look for dumpbin.
6688 if test -n "$DUMPBIN"; then :
6689 # Let the user override the test.
6690 else
f35db108 6691 if test -n "$ac_tool_prefix"; then
c915a581
JJ
6692 for ac_prog in dumpbin "link -dump"
6693 do
6694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6695set dummy $ac_tool_prefix$ac_prog; ac_word=$2
f35db108
WM
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6698if ${ac_cv_prog_DUMPBIN+:} false; then :
f35db108
WM
6699 $as_echo_n "(cached) " >&6
6700else
c915a581
JJ
6701 if test -n "$DUMPBIN"; then
6702 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
f35db108
WM
6703else
6704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705for as_dir in $PATH
6706do
6707 IFS=$as_save_IFS
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 6711 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
f35db108
WM
6712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 break 2
6714 fi
6715done
6716 done
6717IFS=$as_save_IFS
6718
6719fi
6720fi
c915a581
JJ
6721DUMPBIN=$ac_cv_prog_DUMPBIN
6722if test -n "$DUMPBIN"; then
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6724$as_echo "$DUMPBIN" >&6; }
f35db108
WM
6725else
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727$as_echo "no" >&6; }
6728fi
6729
6730
c915a581
JJ
6731 test -n "$DUMPBIN" && break
6732 done
f35db108 6733fi
c915a581
JJ
6734if test -z "$DUMPBIN"; then
6735 ac_ct_DUMPBIN=$DUMPBIN
6736 for ac_prog in dumpbin "link -dump"
6737do
6738 # Extract the first word of "$ac_prog", so it can be a program name with args.
6739set dummy $ac_prog; ac_word=$2
f35db108
WM
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6742if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
f35db108
WM
6743 $as_echo_n "(cached) " >&6
6744else
c915a581
JJ
6745 if test -n "$ac_ct_DUMPBIN"; then
6746 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
f35db108
WM
6747else
6748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749for as_dir in $PATH
6750do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 6755 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
f35db108
WM
6756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6758 fi
6759done
6760 done
6761IFS=$as_save_IFS
6762
6763fi
6764fi
c915a581
JJ
6765ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6766if test -n "$ac_ct_DUMPBIN"; then
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6768$as_echo "$ac_ct_DUMPBIN" >&6; }
f35db108
WM
6769else
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771$as_echo "no" >&6; }
6772fi
6773
c915a581
JJ
6774
6775 test -n "$ac_ct_DUMPBIN" && break
6776done
6777
6778 if test "x$ac_ct_DUMPBIN" = x; then
6779 DUMPBIN=":"
f35db108
WM
6780 else
6781 case $cross_compiling:$ac_tool_warned in
6782yes:)
6783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6785ac_tool_warned=yes ;;
6786esac
c915a581 6787 DUMPBIN=$ac_ct_DUMPBIN
f35db108 6788 fi
f35db108
WM
6789fi
6790
c915a581
JJ
6791 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6792 *COFF*)
6793 DUMPBIN="$DUMPBIN -symbols"
6794 ;;
6795 *)
6796 DUMPBIN=:
6797 ;;
6798 esac
f35db108 6799 fi
f35db108 6800
c915a581
JJ
6801 if test "$DUMPBIN" != ":"; then
6802 NM="$DUMPBIN"
6803 fi
f35db108 6804fi
c915a581 6805test -z "$NM" && NM=nm
f35db108
WM
6806
6807
f35db108 6808
f35db108 6809
f35db108 6810
c915a581
JJ
6811
6812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6813$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 6814if ${lt_cv_nm_interface+:} false; then :
f35db108
WM
6815 $as_echo_n "(cached) " >&6
6816else
c915a581
JJ
6817 lt_cv_nm_interface="BSD nm"
6818 echo "int some_variable = 0;" > conftest.$ac_ext
6819 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6820 (eval "$ac_compile" 2>conftest.err)
6821 cat conftest.err >&5
6822 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6823 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6824 cat conftest.err >&5
6825 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6826 cat conftest.out >&5
6827 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6828 lt_cv_nm_interface="MS dumpbin"
f35db108 6829 fi
c915a581 6830 rm -f conftest*
f35db108 6831fi
c915a581
JJ
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6833$as_echo "$lt_cv_nm_interface" >&6; }
6834
6835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6836$as_echo_n "checking whether ln -s works... " >&6; }
6837LN_S=$as_ln_s
6838if test "$LN_S" = "ln -s"; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6840$as_echo "yes" >&6; }
f35db108 6841else
c915a581
JJ
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6843$as_echo "no, using $LN_S" >&6; }
f35db108
WM
6844fi
6845
c915a581
JJ
6846# find the maximum length of command line arguments
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6848$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 6849if ${lt_cv_sys_max_cmd_len+:} false; then :
f35db108
WM
6850 $as_echo_n "(cached) " >&6
6851else
c915a581
JJ
6852 i=0
6853 teststring="ABCD"
f35db108 6854
c915a581
JJ
6855 case $build_os in
6856 msdosdjgpp*)
6857 # On DJGPP, this test can blow up pretty badly due to problems in libc
6858 # (any single argument exceeding 2000 bytes causes a buffer overrun
6859 # during glob expansion). Even if it were fixed, the result of this
6860 # check would be larger than it should be.
6861 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6862 ;;
f35db108 6863
c915a581
JJ
6864 gnu*)
6865 # Under GNU Hurd, this test is not required because there is
6866 # no limit to the length of command line arguments.
6867 # Libtool will interpret -1 as no limit whatsoever
6868 lt_cv_sys_max_cmd_len=-1;
6869 ;;
f35db108 6870
c915a581
JJ
6871 cygwin* | mingw* | cegcc*)
6872 # On Win9x/ME, this test blows up -- it succeeds, but takes
6873 # about 5 minutes as the teststring grows exponentially.
6874 # Worse, since 9x/ME are not pre-emptively multitasking,
6875 # you end up with a "frozen" computer, even though with patience
6876 # the test eventually succeeds (with a max line length of 256k).
6877 # Instead, let's just punt: use the minimum linelength reported by
6878 # all of the supported platforms: 8192 (on NT/2K/XP).
6879 lt_cv_sys_max_cmd_len=8192;
6880 ;;
f35db108 6881
c915a581
JJ
6882 mint*)
6883 # On MiNT this can take a long time and run out of memory.
6884 lt_cv_sys_max_cmd_len=8192;
6885 ;;
f35db108 6886
c915a581
JJ
6887 amigaos*)
6888 # On AmigaOS with pdksh, this test takes hours, literally.
6889 # So we just punt and use a minimum line length of 8192.
6890 lt_cv_sys_max_cmd_len=8192;
6891 ;;
f35db108 6892
c915a581
JJ
6893 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6894 # This has been around since 386BSD, at least. Likely further.
6895 if test -x /sbin/sysctl; then
6896 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6897 elif test -x /usr/sbin/sysctl; then
6898 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6899 else
6900 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6901 fi
6902 # And add a safety zone
6903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6905 ;;
f35db108 6906
c915a581
JJ
6907 interix*)
6908 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6909 lt_cv_sys_max_cmd_len=196608
6910 ;;
6911
6912 osf*)
6913 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6914 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6915 # nice to cause kernel panics so lets avoid the loop below.
6916 # First set a reasonable default.
6917 lt_cv_sys_max_cmd_len=16384
6918 #
6919 if test -x /sbin/sysconfig; then
6920 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6921 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6922 esac
6923 fi
6924 ;;
6925 sco3.2v5*)
6926 lt_cv_sys_max_cmd_len=102400
6927 ;;
6928 sysv5* | sco5v6* | sysv4.2uw2*)
6929 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6930 if test -n "$kargmax"; then
6931 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6932 else
6933 lt_cv_sys_max_cmd_len=32768
6934 fi
6935 ;;
6936 *)
6937 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6938 if test -n "$lt_cv_sys_max_cmd_len"; then
6939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6940 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6941 else
6942 # Make teststring a little bigger before we do anything with it.
6943 # a 1K string should be a reasonable start.
6944 for i in 1 2 3 4 5 6 7 8 ; do
6945 teststring=$teststring$teststring
6946 done
6947 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6948 # If test is not a shell built-in, we'll probably end up computing a
6949 # maximum length that is only half of the actual maximum length, but
6950 # we can't tell.
6951 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6952 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6953 test $i != 17 # 1/2 MB should be enough
6954 do
6955 i=`expr $i + 1`
6956 teststring=$teststring$teststring
6957 done
6958 # Only check the string length outside the loop.
6959 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6960 teststring=
6961 # Add a significant safety factor because C++ compilers can tack on
6962 # massive amounts of additional arguments before passing them to the
6963 # linker. It appears as though 1/2 is a usable value.
6964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6965 fi
6966 ;;
6967 esac
6968
6969fi
6970
6971if test -n $lt_cv_sys_max_cmd_len ; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6973$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6974else
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6976$as_echo "none" >&6; }
6977fi
6978max_cmd_len=$lt_cv_sys_max_cmd_len
f35db108
WM
6979
6980
6981
6982
6983
6984
c915a581
JJ
6985: ${CP="cp -f"}
6986: ${MV="mv -f"}
6987: ${RM="rm -f"}
6988
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6990$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6991# Try some XSI features
6992xsi_shell=no
6993( _lt_dummy="a/b/c"
6994 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6995 = c,a/b,, \
6996 && eval 'test $(( 1 + 1 )) -eq 2 \
6997 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6998 && xsi_shell=yes
6999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7000$as_echo "$xsi_shell" >&6; }
7001
7002
7003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7004$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7005lt_shell_append=no
7006( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7007 >/dev/null 2>&1 \
7008 && lt_shell_append=yes
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7010$as_echo "$lt_shell_append" >&6; }
f35db108
WM
7011
7012
c915a581
JJ
7013if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7014 lt_unset=unset
7015else
7016 lt_unset=false
7017fi
f35db108
WM
7018
7019
7020
7021
7022
c915a581
JJ
7023# test EBCDIC or ASCII
7024case `echo X|tr X '\101'` in
7025 A) # ASCII based system
7026 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7027 lt_SP2NL='tr \040 \012'
7028 lt_NL2SP='tr \015\012 \040\040'
7029 ;;
7030 *) # EBCDIC based system
7031 lt_SP2NL='tr \100 \n'
7032 lt_NL2SP='tr \r\n \100\100'
7033 ;;
7034esac
f35db108
WM
7035
7036
7037
7038
7039
7040
7041
7042
7043
c915a581
JJ
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7045$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 7046if ${lt_cv_ld_reload_flag+:} false; then :
f35db108
WM
7047 $as_echo_n "(cached) " >&6
7048else
c915a581 7049 lt_cv_ld_reload_flag='-r'
f35db108 7050fi
c915a581
JJ
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7052$as_echo "$lt_cv_ld_reload_flag" >&6; }
7053reload_flag=$lt_cv_ld_reload_flag
7054case $reload_flag in
7055"" | " "*) ;;
7056*) reload_flag=" $reload_flag" ;;
7057esac
7058reload_cmds='$LD$reload_flag -o $output$reload_objs'
7059case $host_os in
7060 darwin*)
7061 if test "$GCC" = yes; then
7062 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7063 else
7064 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7065 fi
7066 ;;
7067esac
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077if test -n "$ac_tool_prefix"; then
7078 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7079set dummy ${ac_tool_prefix}objdump; ac_word=$2
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7082if ${ac_cv_prog_OBJDUMP+:} false; then :
f35db108
WM
7083 $as_echo_n "(cached) " >&6
7084else
c915a581
JJ
7085 if test -n "$OBJDUMP"; then
7086 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7087else
7088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089for as_dir in $PATH
7090do
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7095 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 break 2
7098 fi
7099done
7100 done
7101IFS=$as_save_IFS
f35db108 7102
c915a581
JJ
7103fi
7104fi
7105OBJDUMP=$ac_cv_prog_OBJDUMP
7106if test -n "$OBJDUMP"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7108$as_echo "$OBJDUMP" >&6; }
f35db108 7109else
c915a581
JJ
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111$as_echo "no" >&6; }
f35db108 7112fi
c915a581 7113
f35db108
WM
7114
7115fi
c915a581
JJ
7116if test -z "$ac_cv_prog_OBJDUMP"; then
7117 ac_ct_OBJDUMP=$OBJDUMP
7118 # Extract the first word of "objdump", so it can be a program name with args.
7119set dummy objdump; ac_word=$2
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7122if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
f35db108
WM
7123 $as_echo_n "(cached) " >&6
7124else
c915a581
JJ
7125 if test -n "$ac_ct_OBJDUMP"; then
7126 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
f35db108 7127else
c915a581
JJ
7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129for as_dir in $PATH
f35db108 7130do
c915a581
JJ
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7135 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7138 fi
f35db108 7139done
c915a581
JJ
7140 done
7141IFS=$as_save_IFS
f35db108
WM
7142
7143fi
f35db108 7144fi
c915a581
JJ
7145ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7146if test -n "$ac_ct_OBJDUMP"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7148$as_echo "$ac_ct_OBJDUMP" >&6; }
f35db108 7149else
c915a581
JJ
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151$as_echo "no" >&6; }
f35db108 7152fi
f35db108 7153
c915a581
JJ
7154 if test "x$ac_ct_OBJDUMP" = x; then
7155 OBJDUMP="false"
7156 else
7157 case $cross_compiling:$ac_tool_warned in
7158yes:)
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7161ac_tool_warned=yes ;;
7162esac
7163 OBJDUMP=$ac_ct_OBJDUMP
7164 fi
f35db108 7165else
c915a581 7166 OBJDUMP="$ac_cv_prog_OBJDUMP"
f35db108 7167fi
f35db108 7168
c915a581 7169test -z "$OBJDUMP" && OBJDUMP=objdump
f35db108 7170
f35db108 7171
f35db108
WM
7172
7173
f35db108 7174
f35db108 7175
f35db108 7176
f35db108 7177
f35db108 7178
c915a581
JJ
7179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7180$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 7181if ${lt_cv_deplibs_check_method+:} false; then :
c915a581 7182 $as_echo_n "(cached) " >&6
f35db108 7183else
c915a581
JJ
7184 lt_cv_file_magic_cmd='$MAGIC_CMD'
7185lt_cv_file_magic_test_file=
7186lt_cv_deplibs_check_method='unknown'
7187# Need to set the preceding variable on all platforms that support
7188# interlibrary dependencies.
7189# 'none' -- dependencies not supported.
7190# `unknown' -- same as none, but documents that we really don't know.
7191# 'pass_all' -- all dependencies passed with no checks.
7192# 'test_compile' -- check by making test program.
7193# 'file_magic [[regex]]' -- check by looking for files in library path
7194# which responds to the $file_magic_cmd with a given extended regex.
7195# If you have `file' or equivalent on your system and you're not sure
7196# whether `pass_all' will *always* work, you probably want this one.
f35db108 7197
c915a581
JJ
7198case $host_os in
7199aix[4-9]*)
7200 lt_cv_deplibs_check_method=pass_all
7201 ;;
f35db108 7202
c915a581
JJ
7203beos*)
7204 lt_cv_deplibs_check_method=pass_all
7205 ;;
f35db108 7206
c915a581
JJ
7207bsdi[45]*)
7208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7209 lt_cv_file_magic_cmd='/usr/bin/file -L'
7210 lt_cv_file_magic_test_file=/shlib/libc.so
7211 ;;
f35db108 7212
c915a581
JJ
7213cygwin*)
7214 # func_win32_libid is a shell function defined in ltmain.sh
7215 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7216 lt_cv_file_magic_cmd='func_win32_libid'
7217 ;;
f35db108 7218
c915a581
JJ
7219mingw* | pw32*)
7220 # Base MSYS/MinGW do not provide the 'file' command needed by
7221 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7222 # unless we find 'file', for example because we are cross-compiling.
7223 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7224 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7225 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7226 lt_cv_file_magic_cmd='func_win32_libid'
7227 else
7228 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7229 lt_cv_file_magic_cmd='$OBJDUMP -f'
7230 fi
7231 ;;
f35db108 7232
c915a581
JJ
7233cegcc*)
7234 # use the weaker test based on 'objdump'. See mingw*.
7235 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7236 lt_cv_file_magic_cmd='$OBJDUMP -f'
7237 ;;
f35db108 7238
c915a581
JJ
7239darwin* | rhapsody*)
7240 lt_cv_deplibs_check_method=pass_all
7241 ;;
f35db108 7242
c915a581
JJ
7243freebsd* | dragonfly*)
7244 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7245 case $host_cpu in
7246 i*86 )
7247 # Not sure whether the presence of OpenBSD here was a mistake.
7248 # Let's accept both of them until this is cleared up.
7249 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7250 lt_cv_file_magic_cmd=/usr/bin/file
7251 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7252 ;;
7253 esac
7254 else
7255 lt_cv_deplibs_check_method=pass_all
7256 fi
7257 ;;
f35db108 7258
c915a581
JJ
7259gnu*)
7260 lt_cv_deplibs_check_method=pass_all
7261 ;;
f35db108 7262
c915a581
JJ
7263haiku*)
7264 lt_cv_deplibs_check_method=pass_all
7265 ;;
f35db108 7266
c915a581
JJ
7267hpux10.20* | hpux11*)
7268 lt_cv_file_magic_cmd=/usr/bin/file
7269 case $host_cpu in
7270 ia64*)
7271 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7272 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7273 ;;
7274 hppa*64*)
7275 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]'
7276 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7277 ;;
7278 *)
7279 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7280 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7281 ;;
7282 esac
7283 ;;
f35db108 7284
c915a581
JJ
7285interix[3-9]*)
7286 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7288 ;;
f35db108 7289
c915a581
JJ
7290irix5* | irix6* | nonstopux*)
7291 case $LD in
7292 *-32|*"-32 ") libmagic=32-bit;;
7293 *-n32|*"-n32 ") libmagic=N32;;
7294 *-64|*"-64 ") libmagic=64-bit;;
7295 *) libmagic=never-match;;
7296 esac
7297 lt_cv_deplibs_check_method=pass_all
7298 ;;
f35db108 7299
c915a581
JJ
7300# This must be Linux ELF.
7301linux* | k*bsd*-gnu | kopensolaris*-gnu)
7302 lt_cv_deplibs_check_method=pass_all
7303 ;;
f35db108 7304
c915a581
JJ
7305netbsd*)
7306 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7308 else
7309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7310 fi
7311 ;;
f35db108 7312
c915a581
JJ
7313newos6*)
7314 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7315 lt_cv_file_magic_cmd=/usr/bin/file
7316 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7317 ;;
f35db108 7318
c915a581
JJ
7319*nto* | *qnx*)
7320 lt_cv_deplibs_check_method=pass_all
7321 ;;
f35db108 7322
c915a581
JJ
7323openbsd*)
7324 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7325 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7326 else
7327 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7328 fi
7329 ;;
f35db108 7330
c915a581
JJ
7331osf3* | osf4* | osf5*)
7332 lt_cv_deplibs_check_method=pass_all
7333 ;;
f35db108 7334
c915a581
JJ
7335rdos*)
7336 lt_cv_deplibs_check_method=pass_all
7337 ;;
f35db108 7338
c915a581
JJ
7339solaris*)
7340 lt_cv_deplibs_check_method=pass_all
7341 ;;
f35db108 7342
c915a581
JJ
7343sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7344 lt_cv_deplibs_check_method=pass_all
7345 ;;
f35db108 7346
c915a581
JJ
7347sysv4 | sysv4.3*)
7348 case $host_vendor in
7349 motorola)
7350 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]'
7351 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7352 ;;
7353 ncr)
7354 lt_cv_deplibs_check_method=pass_all
7355 ;;
7356 sequent)
7357 lt_cv_file_magic_cmd='/bin/file'
7358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7359 ;;
7360 sni)
7361 lt_cv_file_magic_cmd='/bin/file'
7362 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7363 lt_cv_file_magic_test_file=/lib/libc.so
7364 ;;
7365 siemens)
7366 lt_cv_deplibs_check_method=pass_all
7367 ;;
7368 pc)
7369 lt_cv_deplibs_check_method=pass_all
7370 ;;
7371 esac
7372 ;;
f35db108 7373
c915a581
JJ
7374tpf*)
7375 lt_cv_deplibs_check_method=pass_all
7376 ;;
7377esac
f35db108 7378
c915a581
JJ
7379fi
7380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7381$as_echo "$lt_cv_deplibs_check_method" >&6; }
7382file_magic_cmd=$lt_cv_file_magic_cmd
7383deplibs_check_method=$lt_cv_deplibs_check_method
7384test -z "$deplibs_check_method" && deplibs_check_method=unknown
f35db108
WM
7385
7386
f35db108
WM
7387
7388
f35db108
WM
7389
7390
7391
7392
7393
7394
7395
7396
c915a581
JJ
7397if test -n "$ac_tool_prefix"; then
7398 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7399set dummy ${ac_tool_prefix}ar; ac_word=$2
7400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7401$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7402if ${ac_cv_prog_AR+:} false; then :
c915a581
JJ
7403 $as_echo_n "(cached) " >&6
7404else
7405 if test -n "$AR"; then
7406 ac_cv_prog_AR="$AR" # Let the user override the test.
7407else
7408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409for as_dir in $PATH
7410do
7411 IFS=$as_save_IFS
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7415 ac_cv_prog_AR="${ac_tool_prefix}ar"
7416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 break 2
7418 fi
7419done
7420 done
7421IFS=$as_save_IFS
f35db108 7422
c915a581
JJ
7423fi
7424fi
7425AR=$ac_cv_prog_AR
7426if test -n "$AR"; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7428$as_echo "$AR" >&6; }
f35db108 7429else
c915a581
JJ
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431$as_echo "no" >&6; }
f35db108
WM
7432fi
7433
7434
c915a581
JJ
7435fi
7436if test -z "$ac_cv_prog_AR"; then
7437 ac_ct_AR=$AR
7438 # Extract the first word of "ar", so it can be a program name with args.
7439set dummy ar; ac_word=$2
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7442if ${ac_cv_prog_ac_ct_AR+:} false; then :
c915a581
JJ
7443 $as_echo_n "(cached) " >&6
7444else
7445 if test -n "$ac_ct_AR"; then
7446 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7447else
7448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449for as_dir in $PATH
7450do
7451 IFS=$as_save_IFS
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7455 ac_cv_prog_ac_ct_AR="ar"
7456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 break 2
7458 fi
7459done
7460 done
7461IFS=$as_save_IFS
f35db108 7462
c915a581
JJ
7463fi
7464fi
7465ac_ct_AR=$ac_cv_prog_ac_ct_AR
7466if test -n "$ac_ct_AR"; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7468$as_echo "$ac_ct_AR" >&6; }
f35db108 7469else
c915a581
JJ
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471$as_echo "no" >&6; }
f35db108
WM
7472fi
7473
c915a581
JJ
7474 if test "x$ac_ct_AR" = x; then
7475 AR="false"
7476 else
7477 case $cross_compiling:$ac_tool_warned in
7478yes:)
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7481ac_tool_warned=yes ;;
7482esac
7483 AR=$ac_ct_AR
7484 fi
f35db108 7485else
c915a581 7486 AR="$ac_cv_prog_AR"
f35db108
WM
7487fi
7488
c915a581
JJ
7489test -z "$AR" && AR=ar
7490test -z "$AR_FLAGS" && AR_FLAGS=cru
f35db108
WM
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
c915a581
JJ
7502if test -n "$ac_tool_prefix"; then
7503 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7504set dummy ${ac_tool_prefix}strip; ac_word=$2
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7507if ${ac_cv_prog_STRIP+:} false; then :
c915a581
JJ
7508 $as_echo_n "(cached) " >&6
7509else
7510 if test -n "$STRIP"; then
7511 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7512else
7513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514for as_dir in $PATH
7515do
7516 IFS=$as_save_IFS
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7520 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 break 2
7523 fi
7524done
7525 done
7526IFS=$as_save_IFS
f35db108 7527
c915a581
JJ
7528fi
7529fi
7530STRIP=$ac_cv_prog_STRIP
7531if test -n "$STRIP"; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7533$as_echo "$STRIP" >&6; }
7534else
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536$as_echo "no" >&6; }
7537fi
f35db108
WM
7538
7539
c915a581
JJ
7540fi
7541if test -z "$ac_cv_prog_STRIP"; then
7542 ac_ct_STRIP=$STRIP
7543 # Extract the first word of "strip", so it can be a program name with args.
7544set dummy strip; ac_word=$2
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7547if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
c915a581
JJ
7548 $as_echo_n "(cached) " >&6
7549else
7550 if test -n "$ac_ct_STRIP"; then
7551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7552else
7553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7560 ac_cv_prog_ac_ct_STRIP="strip"
7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 break 2
7563 fi
7564done
7565 done
7566IFS=$as_save_IFS
f35db108 7567
c915a581
JJ
7568fi
7569fi
7570ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7571if test -n "$ac_ct_STRIP"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7573$as_echo "$ac_ct_STRIP" >&6; }
7574else
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576$as_echo "no" >&6; }
7577fi
f35db108 7578
c915a581
JJ
7579 if test "x$ac_ct_STRIP" = x; then
7580 STRIP=":"
7581 else
7582 case $cross_compiling:$ac_tool_warned in
7583yes:)
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586ac_tool_warned=yes ;;
7587esac
7588 STRIP=$ac_ct_STRIP
7589 fi
7590else
7591 STRIP="$ac_cv_prog_STRIP"
7592fi
f35db108 7593
c915a581 7594test -z "$STRIP" && STRIP=:
f35db108
WM
7595
7596
7597
7598
7599
7600
c915a581
JJ
7601if test -n "$ac_tool_prefix"; then
7602 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7603set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7606if ${ac_cv_prog_RANLIB+:} false; then :
c915a581
JJ
7607 $as_echo_n "(cached) " >&6
7608else
7609 if test -n "$RANLIB"; then
7610 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7611else
7612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH
7614do
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7619 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 break 2
7622 fi
7623done
7624 done
7625IFS=$as_save_IFS
f35db108 7626
c915a581
JJ
7627fi
7628fi
7629RANLIB=$ac_cv_prog_RANLIB
7630if test -n "$RANLIB"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7632$as_echo "$RANLIB" >&6; }
7633else
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635$as_echo "no" >&6; }
7636fi
f35db108
WM
7637
7638
f35db108 7639fi
c915a581
JJ
7640if test -z "$ac_cv_prog_RANLIB"; then
7641 ac_ct_RANLIB=$RANLIB
7642 # Extract the first word of "ranlib", so it can be a program name with args.
7643set dummy ranlib; ac_word=$2
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7646if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
f35db108
WM
7647 $as_echo_n "(cached) " >&6
7648else
c915a581
JJ
7649 if test -n "$ac_ct_RANLIB"; then
7650 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
f35db108 7651else
c915a581
JJ
7652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653for as_dir in $PATH
7654do
7655 IFS=$as_save_IFS
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7659 ac_cv_prog_ac_ct_RANLIB="ranlib"
7660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 break 2
7662 fi
7663done
7664 done
7665IFS=$as_save_IFS
7666
f35db108 7667fi
f35db108 7668fi
c915a581
JJ
7669ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7670if test -n "$ac_ct_RANLIB"; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7672$as_echo "$ac_ct_RANLIB" >&6; }
7673else
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675$as_echo "no" >&6; }
7676fi
7677
7678 if test "x$ac_ct_RANLIB" = x; then
7679 RANLIB=":"
7680 else
7681 case $cross_compiling:$ac_tool_warned in
7682yes:)
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7685ac_tool_warned=yes ;;
7686esac
7687 RANLIB=$ac_ct_RANLIB
7688 fi
7689else
7690 RANLIB="$ac_cv_prog_RANLIB"
7691fi
f35db108 7692
c915a581 7693test -z "$RANLIB" && RANLIB=:
f35db108
WM
7694
7695
7696
7697
f35db108
WM
7698
7699
c915a581
JJ
7700# Determine commands to create old-style static archives.
7701old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7702old_postinstall_cmds='chmod 644 $oldlib'
7703old_postuninstall_cmds=
f35db108 7704
c915a581
JJ
7705if test -n "$RANLIB"; then
7706 case $host_os in
7707 openbsd*)
7708 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7709 ;;
7710 *)
7711 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7712 ;;
7713 esac
7714 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7715fi
f35db108
WM
7716
7717case $host_os in
c915a581
JJ
7718 darwin*)
7719 lock_old_archive_extraction=yes ;;
7720 *)
7721 lock_old_archive_extraction=no ;;
f35db108
WM
7722esac
7723
f35db108 7724
f35db108 7725
f35db108 7726
f35db108 7727
f35db108 7728
f35db108
WM
7729
7730
f35db108 7731
f35db108 7732
f35db108 7733
f35db108
WM
7734
7735
7736
7737
7738
f35db108 7739
f35db108 7740
f35db108 7741
f35db108
WM
7742
7743
f35db108 7744
f35db108 7745
f35db108 7746
f35db108
WM
7747
7748
f35db108 7749
f35db108 7750
f35db108 7751
c915a581
JJ
7752
7753
7754
f35db108
WM
7755
7756
7757
7758
7759
7760
7761
7762# If no C compiler was specified, use CC.
7763LTCC=${LTCC-"$CC"}
7764
7765# If no C compiler flags were specified, use CFLAGS.
7766LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7767
7768# Allow CC to be a program name with arguments.
7769compiler=$CC
7770
f35db108 7771
c915a581
JJ
7772# Check for command to grab the raw symbol name followed by C symbol from nm.
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7774$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 7775if ${lt_cv_sys_global_symbol_pipe+:} false; then :
c915a581
JJ
7776 $as_echo_n "(cached) " >&6
7777else
f35db108 7778
c915a581
JJ
7779# These are sane defaults that work on at least a few old systems.
7780# [They come from Ultrix. What could be older than Ultrix?!! ;)]
f35db108 7781
c915a581
JJ
7782# Character class describing NM global symbol codes.
7783symcode='[BCDEGRST]'
f35db108 7784
c915a581
JJ
7785# Regexp to match symbols that can be accessed directly from C.
7786sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
f35db108 7787
c915a581
JJ
7788# Define system-specific variables.
7789case $host_os in
7790aix*)
7791 symcode='[BCDT]'
7792 ;;
7793cygwin* | mingw* | pw32* | cegcc*)
7794 symcode='[ABCDGISTW]'
7795 ;;
7796hpux*)
7797 if test "$host_cpu" = ia64; then
7798 symcode='[ABCDEGRST]'
7799 fi
7800 ;;
7801irix* | nonstopux*)
7802 symcode='[BCDEGRST]'
7803 ;;
7804osf*)
7805 symcode='[BCDEGQRST]'
7806 ;;
7807solaris*)
7808 symcode='[BDRT]'
7809 ;;
7810sco3.2v5*)
7811 symcode='[DT]'
7812 ;;
7813sysv4.2uw2*)
7814 symcode='[DT]'
7815 ;;
7816sysv5* | sco5v6* | unixware* | OpenUNIX*)
7817 symcode='[ABDT]'
7818 ;;
7819sysv4)
7820 symcode='[DFNSTU]'
7821 ;;
7822esac
f35db108 7823
c915a581
JJ
7824# If we're using GNU nm, then use its standard symbol codes.
7825case `$NM -V 2>&1` in
7826*GNU* | *'with BFD'*)
7827 symcode='[ABCDGIRSTW]' ;;
7828esac
f35db108 7829
c915a581
JJ
7830# Transform an extracted symbol line into a proper C declaration.
7831# Some systems (esp. on ia64) link data and code symbols differently,
7832# so use this general approach.
7833lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
f35db108 7834
c915a581
JJ
7835# Transform an extracted symbol line into symbol name and symbol address
7836lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7837lt_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'"
f35db108 7838
c915a581
JJ
7839# Handle CRLF in mingw tool chain
7840opt_cr=
7841case $build_os in
7842mingw*)
7843 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7844 ;;
7845esac
f35db108 7846
c915a581
JJ
7847# Try without a prefix underscore, then with it.
7848for ac_symprfx in "" "_"; do
f35db108 7849
c915a581
JJ
7850 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7851 symxfrm="\\1 $ac_symprfx\\2 \\2"
f35db108 7852
c915a581
JJ
7853 # Write the raw and C identifiers.
7854 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7855 # Fake it for dumpbin and say T for any non-static function
7856 # and D for any global variable.
7857 # Also find C++ and __fastcall symbols from MSVC++,
7858 # which start with @ or ?.
7859 lt_cv_sys_global_symbol_pipe="$AWK '"\
7860" {last_section=section; section=\$ 3};"\
7861" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7862" \$ 0!~/External *\|/{next};"\
7863" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7864" {if(hide[section]) next};"\
7865" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7866" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7867" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7868" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7869" ' prfx=^$ac_symprfx"
7870 else
7871 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7872 fi
f35db108 7873
c915a581
JJ
7874 # Check to see that the pipe works correctly.
7875 pipe_works=no
f35db108 7876
c915a581
JJ
7877 rm -f conftest*
7878 cat > conftest.$ac_ext <<_LT_EOF
7879#ifdef __cplusplus
7880extern "C" {
7881#endif
7882char nm_test_var;
7883void nm_test_func(void);
7884void nm_test_func(void){}
7885#ifdef __cplusplus
7886}
7887#endif
7888int main(){nm_test_var='a';nm_test_func();return(0);}
7889_LT_EOF
f35db108 7890
c915a581
JJ
7891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7892 (eval $ac_compile) 2>&5
7893 ac_status=$?
7894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7895 test $ac_status = 0; }; then
7896 # Now try to grab the symbols.
7897 nlist=conftest.nm
7898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7899 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7900 ac_status=$?
7901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7902 test $ac_status = 0; } && test -s "$nlist"; then
7903 # Try sorting and uniquifying the output.
7904 if sort "$nlist" | uniq > "$nlist"T; then
7905 mv -f "$nlist"T "$nlist"
7906 else
7907 rm -f "$nlist"T
7908 fi
f35db108 7909
c915a581
JJ
7910 # Make sure that we snagged all the symbols we need.
7911 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7912 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7913 cat <<_LT_EOF > conftest.$ac_ext
7914#ifdef __cplusplus
7915extern "C" {
7916#endif
f35db108 7917
c915a581
JJ
7918_LT_EOF
7919 # Now generate the symbol file.
7920 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
f35db108 7921
c915a581
JJ
7922 cat <<_LT_EOF >> conftest.$ac_ext
7923
7924/* The mapping between symbol names and symbols. */
7925const struct {
7926 const char *name;
7927 void *address;
7928}
7929lt__PROGRAM__LTX_preloaded_symbols[] =
7930{
7931 { "@PROGRAM@", (void *) 0 },
7932_LT_EOF
7933 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7934 cat <<\_LT_EOF >> conftest.$ac_ext
7935 {0, (void *) 0}
7936};
7937
7938/* This works around a problem in FreeBSD linker */
7939#ifdef FREEBSD_WORKAROUND
7940static const void *lt_preloaded_setup() {
7941 return lt__PROGRAM__LTX_preloaded_symbols;
7942}
7943#endif
7944
7945#ifdef __cplusplus
7946}
7947#endif
7948_LT_EOF
7949 # Now try linking the two files.
7950 mv conftest.$ac_objext conftstm.$ac_objext
7951 lt_save_LIBS="$LIBS"
7952 lt_save_CFLAGS="$CFLAGS"
7953 LIBS="conftstm.$ac_objext"
7954 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7956 (eval $ac_link) 2>&5
7957 ac_status=$?
7958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7959 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7960 pipe_works=yes
7961 fi
7962 LIBS="$lt_save_LIBS"
7963 CFLAGS="$lt_save_CFLAGS"
7964 else
7965 echo "cannot find nm_test_func in $nlist" >&5
7966 fi
7967 else
7968 echo "cannot find nm_test_var in $nlist" >&5
f35db108 7969 fi
c915a581
JJ
7970 else
7971 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7972 fi
7973 else
7974 echo "$progname: failed program was:" >&5
7975 cat conftest.$ac_ext >&5
7976 fi
7977 rm -rf conftest* conftst*
f35db108 7978
c915a581
JJ
7979 # Do not use the global_symbol_pipe unless it works.
7980 if test "$pipe_works" = yes; then
7981 break
7982 else
7983 lt_cv_sys_global_symbol_pipe=
7984 fi
7985done
f35db108 7986
c915a581 7987fi
f35db108 7988
c915a581
JJ
7989if test -z "$lt_cv_sys_global_symbol_pipe"; then
7990 lt_cv_sys_global_symbol_to_cdecl=
7991fi
7992if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7994$as_echo "failed" >&6; }
7995else
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7997$as_echo "ok" >&6; }
7998fi
f35db108 7999
f35db108 8000
f35db108 8001
f35db108 8002
f35db108 8003
f35db108 8004
f35db108 8005
f35db108 8006
f35db108 8007
f35db108 8008
f35db108 8009
f35db108 8010
f35db108 8011
c915a581
JJ
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021# Check whether --enable-libtool-lock was given.
8022if test "${enable_libtool_lock+set}" = set; then :
8023 enableval=$enable_libtool_lock;
8024fi
8025
8026test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8027
8028# Some flags need to be propagated to the compiler or linker for good
8029# libtool support.
8030case $host in
8031ia64-*-hpux*)
8032 # Find out which ABI we are using.
8033 echo 'int i;' > conftest.$ac_ext
8034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8035 (eval $ac_compile) 2>&5
8036 ac_status=$?
8037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8038 test $ac_status = 0; }; then
8039 case `/usr/bin/file conftest.$ac_objext` in
8040 *ELF-32*)
8041 HPUX_IA64_MODE="32"
f35db108 8042 ;;
c915a581
JJ
8043 *ELF-64*)
8044 HPUX_IA64_MODE="64"
f35db108 8045 ;;
c915a581
JJ
8046 esac
8047 fi
8048 rm -rf conftest*
8049 ;;
8050*-*-irix6*)
8051 # Find out which ABI we are using.
8052 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8054 (eval $ac_compile) 2>&5
8055 ac_status=$?
8056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8057 test $ac_status = 0; }; then
8058 if test "$lt_cv_prog_gnu_ld" = yes; then
8059 case `/usr/bin/file conftest.$ac_objext` in
8060 *32-bit*)
8061 LD="${LD-ld} -melf32bsmip"
f35db108 8062 ;;
c915a581
JJ
8063 *N32*)
8064 LD="${LD-ld} -melf32bmipn32"
f35db108 8065 ;;
c915a581
JJ
8066 *64-bit*)
8067 LD="${LD-ld} -melf64bmip"
f35db108
WM
8068 ;;
8069 esac
c915a581
JJ
8070 else
8071 case `/usr/bin/file conftest.$ac_objext` in
8072 *32-bit*)
8073 LD="${LD-ld} -32"
8074 ;;
8075 *N32*)
8076 LD="${LD-ld} -n32"
8077 ;;
8078 *64-bit*)
8079 LD="${LD-ld} -64"
8080 ;;
f35db108 8081 esac
c915a581
JJ
8082 fi
8083 fi
8084 rm -rf conftest*
8085 ;;
f35db108 8086
c915a581
JJ
8087x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8088s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8089 # Find out which ABI we are using.
8090 echo 'int i;' > conftest.$ac_ext
8091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8092 (eval $ac_compile) 2>&5
8093 ac_status=$?
8094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8095 test $ac_status = 0; }; then
8096 case `/usr/bin/file conftest.o` in
8097 *32-bit*)
8098 case $host in
8099 x86_64-*kfreebsd*-gnu)
8100 LD="${LD-ld} -m elf_i386_fbsd"
8101 ;;
8102 x86_64-*linux*)
8103 case `/usr/bin/file conftest.o` in
8104 *x86-64*)
8105 LD="${LD-ld} -m elf32_x86_64"
8106 ;;
8107 *)
8108 LD="${LD-ld} -m elf_i386"
8109 ;;
8110 esac
8111 ;;
8112 powerpc64le-*linux*)
8113 LD="${LD-ld} -m elf32lppclinux"
8114 ;;
8115 powerpc64-*linux*)
8116 LD="${LD-ld} -m elf32ppclinux"
8117 ;;
8118 s390x-*linux*)
8119 LD="${LD-ld} -m elf_s390"
8120 ;;
8121 sparc64-*linux*)
8122 LD="${LD-ld} -m elf32_sparc"
8123 ;;
8124 esac
8125 ;;
8126 *64-bit*)
8127 case $host in
8128 x86_64-*kfreebsd*-gnu)
8129 LD="${LD-ld} -m elf_x86_64_fbsd"
8130 ;;
8131 x86_64-*linux*)
8132 LD="${LD-ld} -m elf_x86_64"
8133 ;;
8134 powerpcle-*linux*)
8135 LD="${LD-ld} -m elf64lppc"
8136 ;;
8137 powerpc-*linux*)
8138 LD="${LD-ld} -m elf64ppc"
8139 ;;
8140 s390*-*linux*|s390*-*tpf*)
8141 LD="${LD-ld} -m elf64_s390"
8142 ;;
8143 sparc*-*linux*)
8144 LD="${LD-ld} -m elf64_sparc"
8145 ;;
8146 esac
8147 ;;
8148 esac
8149 fi
8150 rm -rf conftest*
8151 ;;
f35db108 8152
c915a581
JJ
8153*-*-sco3.2v5*)
8154 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8155 SAVE_CFLAGS="$CFLAGS"
8156 CFLAGS="$CFLAGS -belf"
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8158$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 8159if ${lt_cv_cc_needs_belf+:} false; then :
c915a581
JJ
8160 $as_echo_n "(cached) " >&6
8161else
8162 ac_ext=c
8163ac_cpp='$CPP $CPPFLAGS'
8164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8166ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 8167
c915a581
JJ
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169/* end confdefs.h. */
f35db108 8170
c915a581
JJ
8171int
8172main ()
8173{
f35db108 8174
c915a581
JJ
8175 ;
8176 return 0;
8177}
8178_ACEOF
8179if ac_fn_c_try_link "$LINENO"; then :
8180 lt_cv_cc_needs_belf=yes
8181else
8182 lt_cv_cc_needs_belf=no
8183fi
8184rm -f core conftest.err conftest.$ac_objext \
8185 conftest$ac_exeext conftest.$ac_ext
8186 ac_ext=c
8187ac_cpp='$CPP $CPPFLAGS'
8188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8190ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 8191
c915a581
JJ
8192fi
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8194$as_echo "$lt_cv_cc_needs_belf" >&6; }
8195 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8196 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8197 CFLAGS="$SAVE_CFLAGS"
8198 fi
8199 ;;
8200sparc*-*solaris*)
8201 # Find out which ABI we are using.
8202 echo 'int i;' > conftest.$ac_ext
8203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8204 (eval $ac_compile) 2>&5
8205 ac_status=$?
8206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8207 test $ac_status = 0; }; then
8208 case `/usr/bin/file conftest.o` in
8209 *64-bit*)
8210 case $lt_cv_prog_gnu_ld in
8211 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8212 *)
8213 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8214 LD="${LD-ld} -64"
8215 fi
8216 ;;
8217 esac
f35db108
WM
8218 ;;
8219 esac
8220 fi
c915a581
JJ
8221 rm -rf conftest*
8222 ;;
8223esac
f35db108 8224
c915a581 8225need_locks="$enable_libtool_lock"
a2479b3d
L
8226
8227
c915a581
JJ
8228 case $host_os in
8229 rhapsody* | darwin*)
8230 if test -n "$ac_tool_prefix"; then
8231 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8232set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8235if ${ac_cv_prog_DSYMUTIL+:} false; then :
c915a581
JJ
8236 $as_echo_n "(cached) " >&6
8237else
8238 if test -n "$DSYMUTIL"; then
8239 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8240else
8241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242for as_dir in $PATH
8243do
8244 IFS=$as_save_IFS
8245 test -z "$as_dir" && as_dir=.
8246 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8248 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8250 break 2
8251 fi
8252done
8253 done
8254IFS=$as_save_IFS
a2479b3d 8255
c915a581
JJ
8256fi
8257fi
8258DSYMUTIL=$ac_cv_prog_DSYMUTIL
8259if test -n "$DSYMUTIL"; then
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8261$as_echo "$DSYMUTIL" >&6; }
8262else
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264$as_echo "no" >&6; }
8265fi
f35db108 8266
f35db108 8267
c915a581
JJ
8268fi
8269if test -z "$ac_cv_prog_DSYMUTIL"; then
8270 ac_ct_DSYMUTIL=$DSYMUTIL
8271 # Extract the first word of "dsymutil", so it can be a program name with args.
8272set dummy dsymutil; ac_word=$2
8273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8275if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
f35db108
WM
8276 $as_echo_n "(cached) " >&6
8277else
c915a581
JJ
8278 if test -n "$ac_ct_DSYMUTIL"; then
8279 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8280else
8281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282for as_dir in $PATH
8283do
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8288 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 break 2
8291 fi
8292done
8293 done
8294IFS=$as_save_IFS
f35db108
WM
8295
8296fi
c915a581
JJ
8297fi
8298ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8299if test -n "$ac_ct_DSYMUTIL"; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8301$as_echo "$ac_ct_DSYMUTIL" >&6; }
f35db108 8302else
c915a581
JJ
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304$as_echo "no" >&6; }
f35db108
WM
8305fi
8306
c915a581
JJ
8307 if test "x$ac_ct_DSYMUTIL" = x; then
8308 DSYMUTIL=":"
8309 else
8310 case $cross_compiling:$ac_tool_warned in
8311yes:)
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8314ac_tool_warned=yes ;;
8315esac
8316 DSYMUTIL=$ac_ct_DSYMUTIL
8317 fi
8318else
8319 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
f35db108
WM
8320fi
8321
c915a581
JJ
8322 if test -n "$ac_tool_prefix"; then
8323 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8324set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8326$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8327if ${ac_cv_prog_NMEDIT+:} false; then :
f35db108
WM
8328 $as_echo_n "(cached) " >&6
8329else
c915a581
JJ
8330 if test -n "$NMEDIT"; then
8331 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8332else
8333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334for as_dir in $PATH
8335do
8336 IFS=$as_save_IFS
8337 test -z "$as_dir" && as_dir=.
8338 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8340 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8342 break 2
8343 fi
8344done
8345 done
8346IFS=$as_save_IFS
f35db108
WM
8347
8348fi
c915a581
JJ
8349fi
8350NMEDIT=$ac_cv_prog_NMEDIT
8351if test -n "$NMEDIT"; then
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8353$as_echo "$NMEDIT" >&6; }
f35db108 8354else
c915a581
JJ
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356$as_echo "no" >&6; }
f35db108
WM
8357fi
8358
8359
c915a581
JJ
8360fi
8361if test -z "$ac_cv_prog_NMEDIT"; then
8362 ac_ct_NMEDIT=$NMEDIT
8363 # Extract the first word of "nmedit", so it can be a program name with args.
8364set dummy nmedit; ac_word=$2
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8367if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
f35db108
WM
8368 $as_echo_n "(cached) " >&6
8369else
c915a581
JJ
8370 if test -n "$ac_ct_NMEDIT"; then
8371 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8372else
8373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374for as_dir in $PATH
8375do
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8380 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 break 2
8383 fi
8384done
8385 done
8386IFS=$as_save_IFS
f35db108
WM
8387
8388fi
c915a581
JJ
8389fi
8390ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8391if test -n "$ac_ct_NMEDIT"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8393$as_echo "$ac_ct_NMEDIT" >&6; }
8394else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396$as_echo "no" >&6; }
8397fi
f35db108 8398
c915a581
JJ
8399 if test "x$ac_ct_NMEDIT" = x; then
8400 NMEDIT=":"
8401 else
8402 case $cross_compiling:$ac_tool_warned in
8403yes:)
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8406ac_tool_warned=yes ;;
8407esac
8408 NMEDIT=$ac_ct_NMEDIT
8409 fi
8410else
8411 NMEDIT="$ac_cv_prog_NMEDIT"
8412fi
f35db108 8413
c915a581
JJ
8414 if test -n "$ac_tool_prefix"; then
8415 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8416set dummy ${ac_tool_prefix}lipo; ac_word=$2
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8419if ${ac_cv_prog_LIPO+:} false; then :
f35db108
WM
8420 $as_echo_n "(cached) " >&6
8421else
c915a581
JJ
8422 if test -n "$LIPO"; then
8423 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8424else
8425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426for as_dir in $PATH
8427do
8428 IFS=$as_save_IFS
8429 test -z "$as_dir" && as_dir=.
8430 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8432 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8434 break 2
8435 fi
8436done
8437 done
8438IFS=$as_save_IFS
f35db108
WM
8439
8440fi
c915a581
JJ
8441fi
8442LIPO=$ac_cv_prog_LIPO
8443if test -n "$LIPO"; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8445$as_echo "$LIPO" >&6; }
8446else
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448$as_echo "no" >&6; }
8449fi
f35db108
WM
8450
8451
c915a581
JJ
8452fi
8453if test -z "$ac_cv_prog_LIPO"; then
8454 ac_ct_LIPO=$LIPO
8455 # Extract the first word of "lipo", so it can be a program name with args.
8456set dummy lipo; ac_word=$2
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8459if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
c915a581
JJ
8460 $as_echo_n "(cached) " >&6
8461else
8462 if test -n "$ac_ct_LIPO"; then
8463 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8464else
8465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466for as_dir in $PATH
8467do
8468 IFS=$as_save_IFS
8469 test -z "$as_dir" && as_dir=.
8470 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8472 ac_cv_prog_ac_ct_LIPO="lipo"
8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474 break 2
8475 fi
8476done
8477 done
8478IFS=$as_save_IFS
f35db108 8479
c915a581
JJ
8480fi
8481fi
8482ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8483if test -n "$ac_ct_LIPO"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8485$as_echo "$ac_ct_LIPO" >&6; }
8486else
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488$as_echo "no" >&6; }
8489fi
f35db108 8490
c915a581
JJ
8491 if test "x$ac_ct_LIPO" = x; then
8492 LIPO=":"
8493 else
8494 case $cross_compiling:$ac_tool_warned in
8495yes:)
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8498ac_tool_warned=yes ;;
8499esac
8500 LIPO=$ac_ct_LIPO
f35db108
WM
8501 fi
8502else
c915a581 8503 LIPO="$ac_cv_prog_LIPO"
f35db108
WM
8504fi
8505
c915a581
JJ
8506 if test -n "$ac_tool_prefix"; then
8507 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8508set dummy ${ac_tool_prefix}otool; ac_word=$2
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8511if ${ac_cv_prog_OTOOL+:} false; then :
c915a581
JJ
8512 $as_echo_n "(cached) " >&6
8513else
8514 if test -n "$OTOOL"; then
8515 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8516else
8517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518for as_dir in $PATH
8519do
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
8522 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8524 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8526 break 2
8527 fi
8528done
8529 done
8530IFS=$as_save_IFS
f35db108 8531
c915a581
JJ
8532fi
8533fi
8534OTOOL=$ac_cv_prog_OTOOL
8535if test -n "$OTOOL"; then
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8537$as_echo "$OTOOL" >&6; }
8538else
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540$as_echo "no" >&6; }
8541fi
f35db108
WM
8542
8543
c915a581
JJ
8544fi
8545if test -z "$ac_cv_prog_OTOOL"; then
8546 ac_ct_OTOOL=$OTOOL
8547 # Extract the first word of "otool", so it can be a program name with args.
8548set dummy otool; ac_word=$2
8549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8551if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
c915a581
JJ
8552 $as_echo_n "(cached) " >&6
8553else
8554 if test -n "$ac_ct_OTOOL"; then
8555 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8556else
8557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558for as_dir in $PATH
8559do
8560 IFS=$as_save_IFS
8561 test -z "$as_dir" && as_dir=.
8562 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8564 ac_cv_prog_ac_ct_OTOOL="otool"
8565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8566 break 2
8567 fi
8568done
8569 done
8570IFS=$as_save_IFS
f35db108 8571
c915a581
JJ
8572fi
8573fi
8574ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8575if test -n "$ac_ct_OTOOL"; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8577$as_echo "$ac_ct_OTOOL" >&6; }
8578else
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580$as_echo "no" >&6; }
8581fi
f35db108 8582
c915a581
JJ
8583 if test "x$ac_ct_OTOOL" = x; then
8584 OTOOL=":"
8585 else
8586 case $cross_compiling:$ac_tool_warned in
8587yes:)
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8590ac_tool_warned=yes ;;
8591esac
8592 OTOOL=$ac_ct_OTOOL
8593 fi
8594else
8595 OTOOL="$ac_cv_prog_OTOOL"
8596fi
f35db108 8597
c915a581
JJ
8598 if test -n "$ac_tool_prefix"; then
8599 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8600set dummy ${ac_tool_prefix}otool64; ac_word=$2
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8603if ${ac_cv_prog_OTOOL64+:} false; then :
c915a581
JJ
8604 $as_echo_n "(cached) " >&6
8605else
8606 if test -n "$OTOOL64"; then
8607 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8608else
8609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610for as_dir in $PATH
8611do
8612 IFS=$as_save_IFS
8613 test -z "$as_dir" && as_dir=.
8614 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8616 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8618 break 2
f35db108 8619 fi
c915a581
JJ
8620done
8621 done
8622IFS=$as_save_IFS
f35db108 8623
c915a581
JJ
8624fi
8625fi
8626OTOOL64=$ac_cv_prog_OTOOL64
8627if test -n "$OTOOL64"; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8629$as_echo "$OTOOL64" >&6; }
8630else
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632$as_echo "no" >&6; }
8633fi
f35db108 8634
f35db108 8635
c915a581
JJ
8636fi
8637if test -z "$ac_cv_prog_OTOOL64"; then
8638 ac_ct_OTOOL64=$OTOOL64
8639 # Extract the first word of "otool64", so it can be a program name with args.
8640set dummy otool64; ac_word=$2
8641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8642$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8643if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
c915a581
JJ
8644 $as_echo_n "(cached) " >&6
8645else
8646 if test -n "$ac_ct_OTOOL64"; then
8647 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8648else
8649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8650for as_dir in $PATH
8651do
8652 IFS=$as_save_IFS
8653 test -z "$as_dir" && as_dir=.
8654 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8656 ac_cv_prog_ac_ct_OTOOL64="otool64"
8657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8658 break 2
8659 fi
8660done
8661 done
8662IFS=$as_save_IFS
f35db108 8663
c915a581
JJ
8664fi
8665fi
8666ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8667if test -n "$ac_ct_OTOOL64"; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8669$as_echo "$ac_ct_OTOOL64" >&6; }
8670else
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672$as_echo "no" >&6; }
8673fi
f35db108 8674
c915a581
JJ
8675 if test "x$ac_ct_OTOOL64" = x; then
8676 OTOOL64=":"
8677 else
8678 case $cross_compiling:$ac_tool_warned in
8679yes:)
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8682ac_tool_warned=yes ;;
8683esac
8684 OTOOL64=$ac_ct_OTOOL64
8685 fi
8686else
8687 OTOOL64="$ac_cv_prog_OTOOL64"
8688fi
f35db108 8689
f35db108 8690
f35db108 8691
f35db108 8692
f35db108 8693
f35db108 8694
f35db108 8695
f35db108 8696
f35db108 8697
f35db108 8698
f35db108 8699
f35db108 8700
f35db108 8701
f35db108 8702
f35db108 8703
f35db108 8704
f35db108 8705
f35db108 8706
f35db108 8707
f35db108 8708
f35db108 8709
f35db108 8710
f35db108 8711
f35db108 8712
f35db108 8713
c915a581
JJ
8714
8715
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8717$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 8718if ${lt_cv_apple_cc_single_mod+:} false; then :
c915a581
JJ
8719 $as_echo_n "(cached) " >&6
8720else
8721 lt_cv_apple_cc_single_mod=no
8722 if test -z "${LT_MULTI_MODULE}"; then
8723 # By default we will add the -single_module flag. You can override
8724 # by either setting the environment variable LT_MULTI_MODULE
8725 # non-empty at configure time, or by adding -multi_module to the
8726 # link flags.
8727 rm -rf libconftest.dylib*
8728 echo "int foo(void){return 1;}" > conftest.c
8729 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8730-dynamiclib -Wl,-single_module conftest.c" >&5
8731 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8732 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8733 _lt_result=$?
8734 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8735 lt_cv_apple_cc_single_mod=yes
f35db108 8736 else
c915a581 8737 cat conftest.err >&5
f35db108 8738 fi
c915a581
JJ
8739 rm -rf libconftest.dylib*
8740 rm -f conftest.*
f35db108 8741 fi
c915a581
JJ
8742fi
8743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8744$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8746$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 8747if ${lt_cv_ld_exported_symbols_list+:} false; then :
c915a581
JJ
8748 $as_echo_n "(cached) " >&6
8749else
8750 lt_cv_ld_exported_symbols_list=no
8751 save_LDFLAGS=$LDFLAGS
8752 echo "_main" > conftest.sym
8753 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108
WM
8755/* end confdefs.h. */
8756
8757int
8758main ()
8759{
8760
8761 ;
8762 return 0;
8763}
8764_ACEOF
8765if ac_fn_c_try_link "$LINENO"; then :
c915a581
JJ
8766 lt_cv_ld_exported_symbols_list=yes
8767else
8768 lt_cv_ld_exported_symbols_list=no
f35db108
WM
8769fi
8770rm -f core conftest.err conftest.$ac_objext \
8771 conftest$ac_exeext conftest.$ac_ext
c915a581 8772 LDFLAGS="$save_LDFLAGS"
f35db108 8773
c915a581
JJ
8774fi
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8776$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8778$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 8779if ${lt_cv_ld_force_load+:} false; then :
c915a581
JJ
8780 $as_echo_n "(cached) " >&6
8781else
8782 lt_cv_ld_force_load=no
8783 cat > conftest.c << _LT_EOF
8784int forced_loaded() { return 2;}
8785_LT_EOF
8786 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8787 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8788 echo "$AR cru libconftest.a conftest.o" >&5
8789 $AR cru libconftest.a conftest.o 2>&5
8790 cat > conftest.c << _LT_EOF
8791int main() { return 0;}
8792_LT_EOF
8793 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8794 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8795 _lt_result=$?
8796 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8797 lt_cv_ld_force_load=yes
f35db108 8798 else
c915a581
JJ
8799 cat conftest.err >&5
8800 fi
8801 rm -f conftest.err libconftest.a conftest conftest.c
8802 rm -rf conftest.dSYM
f35db108 8803
c915a581
JJ
8804fi
8805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8806$as_echo "$lt_cv_ld_force_load" >&6; }
8807 case $host_os in
8808 rhapsody* | darwin1.[012])
8809 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8810 darwin1.*)
8811 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8812 darwin*) # darwin 5.x on
8813 # if running on 10.5 or later, the deployment target defaults
8814 # to the OS version, if on x86, and 10.4, the deployment
8815 # target defaults to 10.4. Don't you love it?
8816 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8817 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8818 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 8819 10.[012][,.]*)
c915a581
JJ
8820 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8821 10.*)
8822 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8823 esac
8824 ;;
8825 esac
8826 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8827 _lt_dar_single_mod='$single_module'
8828 fi
8829 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8830 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8831 else
8832 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8833 fi
8834 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8835 _lt_dsymutil='~$DSYMUTIL $lib || :'
8836 else
8837 _lt_dsymutil=
8838 fi
8839 ;;
8840 esac
f35db108 8841
c915a581
JJ
8842for ac_header in dlfcn.h
8843do :
8844 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8845"
22e05272 8846if test "x$ac_cv_header_dlfcn_h" = xyes; then :
c915a581
JJ
8847 cat >>confdefs.h <<_ACEOF
8848#define HAVE_DLFCN_H 1
f35db108 8849_ACEOF
f35db108 8850
f35db108 8851fi
f35db108 8852
c915a581 8853done
f35db108 8854
f35db108 8855
f35db108 8856
f35db108 8857
f35db108
WM
8858
8859
c915a581 8860# Set options
f35db108 8861
f35db108 8862
f35db108 8863
f35db108 8864
c915a581 8865 enable_win32_dll=no
f35db108 8866
f35db108 8867
c915a581
JJ
8868 # Check whether --enable-shared was given.
8869if test "${enable_shared+set}" = set; then :
8870 enableval=$enable_shared; p=${PACKAGE-default}
8871 case $enableval in
8872 yes) enable_shared=yes ;;
8873 no) enable_shared=no ;;
8874 *)
8875 enable_shared=no
8876 # Look at the argument we got. We use all the common list separators.
8877 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8878 for pkg in $enableval; do
8879 IFS="$lt_save_ifs"
8880 if test "X$pkg" = "X$p"; then
8881 enable_shared=yes
8882 fi
8883 done
8884 IFS="$lt_save_ifs"
f35db108 8885 ;;
c915a581
JJ
8886 esac
8887else
8888 enable_shared=yes
8889fi
f35db108 8890
f35db108 8891
f35db108 8892
f35db108 8893
f35db108 8894
f35db108 8895
f35db108 8896
c915a581
JJ
8897
8898
8899 # Check whether --enable-static was given.
8900if test "${enable_static+set}" = set; then :
8901 enableval=$enable_static; p=${PACKAGE-default}
8902 case $enableval in
8903 yes) enable_static=yes ;;
8904 no) enable_static=no ;;
8905 *)
8906 enable_static=no
8907 # Look at the argument we got. We use all the common list separators.
8908 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8909 for pkg in $enableval; do
8910 IFS="$lt_save_ifs"
8911 if test "X$pkg" = "X$p"; then
8912 enable_static=yes
8913 fi
8914 done
8915 IFS="$lt_save_ifs"
8916 ;;
8917 esac
f35db108 8918else
c915a581 8919 enable_static=yes
f35db108
WM
8920fi
8921
f35db108 8922
f35db108 8923
f35db108 8924
a2479b3d 8925
f35db108 8926
f35db108 8927
f35db108 8928
f35db108 8929
f35db108 8930
c915a581
JJ
8931# Check whether --with-pic was given.
8932if test "${with_pic+set}" = set; then :
8933 withval=$with_pic; pic_mode="$withval"
8934else
8935 pic_mode=default
8936fi
f35db108 8937
f35db108 8938
c915a581 8939test -z "$pic_mode" && pic_mode=default
f35db108 8940
f35db108 8941
f35db108 8942
f35db108 8943
f35db108 8944
f35db108 8945
c915a581
JJ
8946
8947 # Check whether --enable-fast-install was given.
8948if test "${enable_fast_install+set}" = set; then :
8949 enableval=$enable_fast_install; p=${PACKAGE-default}
8950 case $enableval in
8951 yes) enable_fast_install=yes ;;
8952 no) enable_fast_install=no ;;
8953 *)
8954 enable_fast_install=no
8955 # Look at the argument we got. We use all the common list separators.
8956 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8957 for pkg in $enableval; do
8958 IFS="$lt_save_ifs"
8959 if test "X$pkg" = "X$p"; then
8960 enable_fast_install=yes
8961 fi
8962 done
8963 IFS="$lt_save_ifs"
f35db108 8964 ;;
c915a581
JJ
8965 esac
8966else
8967 enable_fast_install=yes
8968fi
f35db108
WM
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
c915a581
JJ
8980# This can be used to rebuild libtool when needed
8981LIBTOOL_DEPS="$ltmain"
f35db108 8982
c915a581
JJ
8983# Always use our own libtool.
8984LIBTOOL='$(SHELL) $(top_builddir)/libtool'
f35db108
WM
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
c915a581 9011test -z "$LN_S" && LN_S="ln -s"
f35db108
WM
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
c915a581
JJ
9026if test -n "${ZSH_VERSION+set}" ; then
9027 setopt NO_GLOB_SUBST
9028fi
f35db108 9029
c915a581
JJ
9030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9031$as_echo_n "checking for objdir... " >&6; }
22e05272 9032if ${lt_cv_objdir+:} false; then :
c915a581
JJ
9033 $as_echo_n "(cached) " >&6
9034else
9035 rm -f .libs 2>/dev/null
9036mkdir .libs 2>/dev/null
9037if test -d .libs; then
9038 lt_cv_objdir=.libs
9039else
9040 # MS-DOS does not allow filenames that begin with a dot.
9041 lt_cv_objdir=_libs
9042fi
9043rmdir .libs 2>/dev/null
9044fi
9045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9046$as_echo "$lt_cv_objdir" >&6; }
9047objdir=$lt_cv_objdir
f35db108
WM
9048
9049
9050
9051
9052
c915a581
JJ
9053cat >>confdefs.h <<_ACEOF
9054#define LT_OBJDIR "$lt_cv_objdir/"
9055_ACEOF
f35db108
WM
9056
9057
9058
9059
c915a581
JJ
9060case $host_os in
9061aix3*)
9062 # AIX sometimes has problems with the GCC collect2 program. For some
9063 # reason, if we set the COLLECT_NAMES environment variable, the problems
9064 # vanish in a puff of smoke.
9065 if test "X${COLLECT_NAMES+set}" != Xset; then
9066 COLLECT_NAMES=
9067 export COLLECT_NAMES
9068 fi
9069 ;;
9070esac
f35db108 9071
c915a581
JJ
9072# Global variables:
9073ofile=libtool
9074can_build_shared=yes
f35db108 9075
c915a581
JJ
9076# All known linkers require a `.a' archive for static linking (except MSVC,
9077# which needs '.lib').
9078libext=a
f35db108 9079
c915a581 9080with_gnu_ld="$lt_cv_prog_gnu_ld"
f35db108 9081
c915a581
JJ
9082old_CC="$CC"
9083old_CFLAGS="$CFLAGS"
f35db108 9084
c915a581
JJ
9085# Set sane defaults for various variables
9086test -z "$CC" && CC=cc
9087test -z "$LTCC" && LTCC=$CC
9088test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9089test -z "$LD" && LD=ld
9090test -z "$ac_objext" && ac_objext=o
f35db108 9091
c915a581
JJ
9092for cc_temp in $compiler""; do
9093 case $cc_temp in
9094 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9095 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9096 \-*) ;;
9097 *) break;;
9098 esac
9099done
9100cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
f35db108
WM
9101
9102
c915a581
JJ
9103# Only perform the check for file, if the check method requires it
9104test -z "$MAGIC_CMD" && MAGIC_CMD=file
9105case $deplibs_check_method in
9106file_magic*)
9107 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9109$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 9110if ${lt_cv_path_MAGIC_CMD+:} false; then :
c915a581
JJ
9111 $as_echo_n "(cached) " >&6
9112else
9113 case $MAGIC_CMD in
9114[\\/*] | ?:[\\/]*)
9115 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9116 ;;
9117*)
9118 lt_save_MAGIC_CMD="$MAGIC_CMD"
9119 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9120 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9121 for ac_dir in $ac_dummy; do
9122 IFS="$lt_save_ifs"
9123 test -z "$ac_dir" && ac_dir=.
9124 if test -f $ac_dir/${ac_tool_prefix}file; then
9125 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9126 if test -n "$file_magic_test_file"; then
9127 case $deplibs_check_method in
9128 "file_magic "*)
9129 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9130 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9131 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9132 $EGREP "$file_magic_regex" > /dev/null; then
9133 :
9134 else
9135 cat <<_LT_EOF 1>&2
f35db108 9136
c915a581
JJ
9137*** Warning: the command libtool uses to detect shared libraries,
9138*** $file_magic_cmd, produces output that libtool cannot recognize.
9139*** The result is that libtool may fail to recognize shared libraries
9140*** as such. This will affect the creation of libtool libraries that
9141*** depend on shared libraries, but programs linked with such libtool
9142*** libraries will work regardless of this problem. Nevertheless, you
9143*** may want to report the problem to your system manager and/or to
9144*** bug-libtool@gnu.org
f35db108 9145
c915a581
JJ
9146_LT_EOF
9147 fi ;;
9148 esac
9149 fi
9150 break
9151 fi
9152 done
9153 IFS="$lt_save_ifs"
9154 MAGIC_CMD="$lt_save_MAGIC_CMD"
9155 ;;
9156esac
9157fi
f35db108 9158
c915a581
JJ
9159MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9160if test -n "$MAGIC_CMD"; then
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9162$as_echo "$MAGIC_CMD" >&6; }
9163else
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9165$as_echo "no" >&6; }
9166fi
f35db108
WM
9167
9168
9169
9170
9171
c915a581
JJ
9172if test -z "$lt_cv_path_MAGIC_CMD"; then
9173 if test -n "$ac_tool_prefix"; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9175$as_echo_n "checking for file... " >&6; }
22e05272 9176if ${lt_cv_path_MAGIC_CMD+:} false; then :
c915a581
JJ
9177 $as_echo_n "(cached) " >&6
9178else
9179 case $MAGIC_CMD in
9180[\\/*] | ?:[\\/]*)
9181 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9182 ;;
9183*)
9184 lt_save_MAGIC_CMD="$MAGIC_CMD"
9185 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9186 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9187 for ac_dir in $ac_dummy; do
9188 IFS="$lt_save_ifs"
9189 test -z "$ac_dir" && ac_dir=.
9190 if test -f $ac_dir/file; then
9191 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9192 if test -n "$file_magic_test_file"; then
9193 case $deplibs_check_method in
9194 "file_magic "*)
9195 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9196 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9197 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9198 $EGREP "$file_magic_regex" > /dev/null; then
9199 :
9200 else
9201 cat <<_LT_EOF 1>&2
f35db108 9202
c915a581
JJ
9203*** Warning: the command libtool uses to detect shared libraries,
9204*** $file_magic_cmd, produces output that libtool cannot recognize.
9205*** The result is that libtool may fail to recognize shared libraries
9206*** as such. This will affect the creation of libtool libraries that
9207*** depend on shared libraries, but programs linked with such libtool
9208*** libraries will work regardless of this problem. Nevertheless, you
9209*** may want to report the problem to your system manager and/or to
9210*** bug-libtool@gnu.org
f35db108 9211
c915a581
JJ
9212_LT_EOF
9213 fi ;;
9214 esac
9215 fi
9216 break
9217 fi
9218 done
9219 IFS="$lt_save_ifs"
9220 MAGIC_CMD="$lt_save_MAGIC_CMD"
9221 ;;
9222esac
9223fi
f35db108 9224
c915a581
JJ
9225MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9226if test -n "$MAGIC_CMD"; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9228$as_echo "$MAGIC_CMD" >&6; }
9229else
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231$as_echo "no" >&6; }
9232fi
f35db108
WM
9233
9234
c915a581
JJ
9235 else
9236 MAGIC_CMD=:
9237 fi
9238fi
f35db108 9239
c915a581
JJ
9240 fi
9241 ;;
9242esac
f35db108 9243
c915a581 9244# Use C for the default configuration in the libtool script
f35db108 9245
c915a581
JJ
9246lt_save_CC="$CC"
9247ac_ext=c
9248ac_cpp='$CPP $CPPFLAGS'
9249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9251ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108
WM
9252
9253
c915a581
JJ
9254# Source file extension for C test sources.
9255ac_ext=c
f35db108 9256
c915a581
JJ
9257# Object file extension for compiled C test sources.
9258objext=o
9259objext=$objext
f35db108 9260
c915a581
JJ
9261# Code to be used in simple compile tests
9262lt_simple_compile_test_code="int some_variable = 0;"
f35db108 9263
c915a581
JJ
9264# Code to be used in simple link tests
9265lt_simple_link_test_code='int main(){return(0);}'
f35db108
WM
9266
9267
9268
9269
9270
9271
9272
c915a581
JJ
9273# If no C compiler was specified, use CC.
9274LTCC=${LTCC-"$CC"}
f35db108 9275
c915a581
JJ
9276# If no C compiler flags were specified, use CFLAGS.
9277LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
f35db108 9278
c915a581
JJ
9279# Allow CC to be a program name with arguments.
9280compiler=$CC
f35db108 9281
c915a581
JJ
9282# Save the default compiler, since it gets overwritten when the other
9283# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9284compiler_DEFAULT=$CC
f35db108 9285
c915a581
JJ
9286# save warnings/boilerplate of simple test code
9287ac_outfile=conftest.$ac_objext
9288echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9289eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9290_lt_compiler_boilerplate=`cat conftest.err`
9291$RM conftest*
f35db108 9292
c915a581
JJ
9293ac_outfile=conftest.$ac_objext
9294echo "$lt_simple_link_test_code" >conftest.$ac_ext
9295eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9296_lt_linker_boilerplate=`cat conftest.err`
9297$RM -r conftest*
f35db108
WM
9298
9299
c915a581
JJ
9300## CAVEAT EMPTOR:
9301## There is no encapsulation within the following macros, do not change
9302## the running order or otherwise move them around unless you know exactly
9303## what you are doing...
9304if test -n "$compiler"; then
f35db108 9305
c915a581 9306lt_prog_compiler_no_builtin_flag=
f35db108 9307
c915a581
JJ
9308if test "$GCC" = yes; then
9309 case $cc_basename in
9310 nvcc*)
9311 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9312 *)
9313 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9314 esac
f35db108 9315
c915a581
JJ
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9317$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 9318if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
c915a581
JJ
9319 $as_echo_n "(cached) " >&6
9320else
9321 lt_cv_prog_compiler_rtti_exceptions=no
9322 ac_outfile=conftest.$ac_objext
9323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9324 lt_compiler_flag="-fno-rtti -fno-exceptions"
9325 # Insert the option either (1) after the last *FLAGS variable, or
9326 # (2) before a word containing "conftest.", or (3) at the end.
9327 # Note that $ac_compile itself does not contain backslashes and begins
9328 # with a dollar sign (not a hyphen), so the echo should work correctly.
9329 # The option is referenced via a variable to avoid confusing sed.
9330 lt_compile=`echo "$ac_compile" | $SED \
9331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9333 -e 's:$: $lt_compiler_flag:'`
9334 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9335 (eval "$lt_compile" 2>conftest.err)
9336 ac_status=$?
9337 cat conftest.err >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 if (exit $ac_status) && test -s "$ac_outfile"; then
9340 # The compiler can only warn and ignore the option if not recognized
9341 # So say no if there are warnings other than the usual output.
9342 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9344 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9345 lt_cv_prog_compiler_rtti_exceptions=yes
9346 fi
9347 fi
9348 $RM conftest*
f35db108 9349
c915a581
JJ
9350fi
9351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9352$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
f35db108 9353
c915a581
JJ
9354if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9355 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9356else
9357 :
9358fi
f35db108 9359
c915a581 9360fi
f35db108
WM
9361
9362
9363
9364
9365
9366
c915a581
JJ
9367 lt_prog_compiler_wl=
9368lt_prog_compiler_pic=
9369lt_prog_compiler_static=
f35db108 9370
c915a581
JJ
9371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9372$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
f35db108 9373
c915a581
JJ
9374 if test "$GCC" = yes; then
9375 lt_prog_compiler_wl='-Wl,'
9376 lt_prog_compiler_static='-static'
f35db108 9377
c915a581
JJ
9378 case $host_os in
9379 aix*)
9380 # All AIX code is PIC.
9381 if test "$host_cpu" = ia64; then
9382 # AIX 5 now supports IA64 processor
9383 lt_prog_compiler_static='-Bstatic'
9384 fi
9385 lt_prog_compiler_pic='-fPIC'
9386 ;;
f35db108 9387
c915a581
JJ
9388 amigaos*)
9389 case $host_cpu in
9390 powerpc)
9391 # see comment about AmigaOS4 .so support
9392 lt_prog_compiler_pic='-fPIC'
9393 ;;
9394 m68k)
9395 # FIXME: we need at least 68020 code to build shared libraries, but
9396 # adding the `-m68020' flag to GCC prevents building anything better,
9397 # like `-m68040'.
9398 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9399 ;;
9400 esac
9401 ;;
f35db108 9402
c915a581
JJ
9403 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9404 # PIC is the default for these OSes.
9405 ;;
f35db108 9406
c915a581
JJ
9407 mingw* | cygwin* | pw32* | os2* | cegcc*)
9408 # This hack is so that the source file can tell whether it is being
9409 # built for inclusion in a dll (and should export symbols for example).
9410 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9411 # (--disable-auto-import) libraries
9412 lt_prog_compiler_pic='-DDLL_EXPORT'
9413 ;;
f35db108 9414
c915a581
JJ
9415 darwin* | rhapsody*)
9416 # PIC is the default on this platform
9417 # Common symbols not allowed in MH_DYLIB files
9418 lt_prog_compiler_pic='-fno-common'
9419 ;;
f35db108 9420
c915a581
JJ
9421 haiku*)
9422 # PIC is the default for Haiku.
9423 # The "-static" flag exists, but is broken.
9424 lt_prog_compiler_static=
9425 ;;
f35db108 9426
c915a581
JJ
9427 hpux*)
9428 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9429 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9430 # sets the default TLS model and affects inlining.
9431 case $host_cpu in
9432 hppa*64*)
9433 # +Z the default
9434 ;;
9435 *)
9436 lt_prog_compiler_pic='-fPIC'
9437 ;;
9438 esac
9439 ;;
f35db108 9440
c915a581
JJ
9441 interix[3-9]*)
9442 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9443 # Instead, we relocate shared libraries at runtime.
9444 ;;
a2479b3d 9445
c915a581
JJ
9446 msdosdjgpp*)
9447 # Just because we use GCC doesn't mean we suddenly get shared libraries
9448 # on systems that don't support them.
9449 lt_prog_compiler_can_build_shared=no
9450 enable_shared=no
9451 ;;
a2479b3d 9452
c915a581
JJ
9453 *nto* | *qnx*)
9454 # QNX uses GNU C++, but need to define -shared option too, otherwise
9455 # it will coredump.
9456 lt_prog_compiler_pic='-fPIC -shared'
9457 ;;
a2479b3d 9458
c915a581
JJ
9459 sysv4*MP*)
9460 if test -d /usr/nec; then
9461 lt_prog_compiler_pic=-Kconform_pic
9462 fi
9463 ;;
a2479b3d 9464
c915a581
JJ
9465 *)
9466 lt_prog_compiler_pic='-fPIC'
9467 ;;
9468 esac
a2479b3d 9469
c915a581
JJ
9470 case $cc_basename in
9471 nvcc*) # Cuda Compiler Driver 2.2
9472 lt_prog_compiler_wl='-Xlinker '
9473 lt_prog_compiler_pic='-Xcompiler -fPIC'
9474 ;;
9475 esac
9476 else
9477 # PORTME Check for flag to pass linker flags through the system compiler.
9478 case $host_os in
9479 aix*)
9480 lt_prog_compiler_wl='-Wl,'
9481 if test "$host_cpu" = ia64; then
9482 # AIX 5 now supports IA64 processor
9483 lt_prog_compiler_static='-Bstatic'
9484 else
9485 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9486 fi
9487 ;;
f35db108 9488
c915a581
JJ
9489 mingw* | cygwin* | pw32* | os2* | cegcc*)
9490 # This hack is so that the source file can tell whether it is being
9491 # built for inclusion in a dll (and should export symbols for example).
9492 lt_prog_compiler_pic='-DDLL_EXPORT'
9493 ;;
f35db108 9494
c915a581
JJ
9495 hpux9* | hpux10* | hpux11*)
9496 lt_prog_compiler_wl='-Wl,'
9497 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9498 # not for PA HP-UX.
9499 case $host_cpu in
9500 hppa*64*|ia64*)
9501 # +Z the default
9502 ;;
9503 *)
9504 lt_prog_compiler_pic='+Z'
9505 ;;
9506 esac
9507 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9508 lt_prog_compiler_static='${wl}-a ${wl}archive'
9509 ;;
f35db108 9510
c915a581
JJ
9511 irix5* | irix6* | nonstopux*)
9512 lt_prog_compiler_wl='-Wl,'
9513 # PIC (with -KPIC) is the default.
9514 lt_prog_compiler_static='-non_shared'
9515 ;;
f35db108 9516
c915a581
JJ
9517 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9518 case $cc_basename in
9519 # old Intel for x86_64 which still supported -KPIC.
9520 ecc*)
9521 lt_prog_compiler_wl='-Wl,'
9522 lt_prog_compiler_pic='-KPIC'
9523 lt_prog_compiler_static='-static'
9524 ;;
9525 # icc used to be incompatible with GCC.
9526 # ICC 10 doesn't accept -KPIC any more.
9527 icc* | ifort*)
9528 lt_prog_compiler_wl='-Wl,'
9529 lt_prog_compiler_pic='-fPIC'
9530 lt_prog_compiler_static='-static'
9531 ;;
9532 # Lahey Fortran 8.1.
9533 lf95*)
9534 lt_prog_compiler_wl='-Wl,'
9535 lt_prog_compiler_pic='--shared'
9536 lt_prog_compiler_static='--static'
9537 ;;
9538 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9539 # Portland Group compilers (*not* the Pentium gcc compiler,
9540 # which looks to be a dead project)
9541 lt_prog_compiler_wl='-Wl,'
9542 lt_prog_compiler_pic='-fpic'
9543 lt_prog_compiler_static='-Bstatic'
9544 ;;
9545 ccc*)
9546 lt_prog_compiler_wl='-Wl,'
9547 # All Alpha code is PIC.
9548 lt_prog_compiler_static='-non_shared'
9549 ;;
9550 xl* | bgxl* | bgf* | mpixl*)
9551 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9552 lt_prog_compiler_wl='-Wl,'
9553 lt_prog_compiler_pic='-qpic'
9554 lt_prog_compiler_static='-qstaticlink'
9555 ;;
9556 *)
9557 case `$CC -V 2>&1 | sed 5q` in
9558 *Sun\ F* | *Sun*Fortran*)
9559 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9560 lt_prog_compiler_pic='-KPIC'
9561 lt_prog_compiler_static='-Bstatic'
9562 lt_prog_compiler_wl=''
9563 ;;
9564 *Sun\ C*)
9565 # Sun C 5.9
9566 lt_prog_compiler_pic='-KPIC'
9567 lt_prog_compiler_static='-Bstatic'
9568 lt_prog_compiler_wl='-Wl,'
9569 ;;
9570 esac
9571 ;;
9572 esac
9573 ;;
f35db108 9574
c915a581
JJ
9575 newsos6)
9576 lt_prog_compiler_pic='-KPIC'
9577 lt_prog_compiler_static='-Bstatic'
9578 ;;
f35db108 9579
c915a581
JJ
9580 *nto* | *qnx*)
9581 # QNX uses GNU C++, but need to define -shared option too, otherwise
9582 # it will coredump.
9583 lt_prog_compiler_pic='-fPIC -shared'
9584 ;;
f35db108 9585
c915a581
JJ
9586 osf3* | osf4* | osf5*)
9587 lt_prog_compiler_wl='-Wl,'
9588 # All OSF/1 code is PIC.
9589 lt_prog_compiler_static='-non_shared'
9590 ;;
f35db108 9591
c915a581
JJ
9592 rdos*)
9593 lt_prog_compiler_static='-non_shared'
9594 ;;
f35db108 9595
c915a581
JJ
9596 solaris*)
9597 lt_prog_compiler_pic='-KPIC'
9598 lt_prog_compiler_static='-Bstatic'
9599 case $cc_basename in
9600 f77* | f90* | f95*)
9601 lt_prog_compiler_wl='-Qoption ld ';;
9602 *)
9603 lt_prog_compiler_wl='-Wl,';;
9604 esac
9605 ;;
f35db108 9606
c915a581
JJ
9607 sunos4*)
9608 lt_prog_compiler_wl='-Qoption ld '
9609 lt_prog_compiler_pic='-PIC'
9610 lt_prog_compiler_static='-Bstatic'
9611 ;;
f35db108 9612
c915a581
JJ
9613 sysv4 | sysv4.2uw2* | sysv4.3*)
9614 lt_prog_compiler_wl='-Wl,'
9615 lt_prog_compiler_pic='-KPIC'
9616 lt_prog_compiler_static='-Bstatic'
9617 ;;
9618
9619 sysv4*MP*)
9620 if test -d /usr/nec ;then
9621 lt_prog_compiler_pic='-Kconform_pic'
9622 lt_prog_compiler_static='-Bstatic'
f35db108
WM
9623 fi
9624 ;;
c915a581
JJ
9625
9626 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9627 lt_prog_compiler_wl='-Wl,'
9628 lt_prog_compiler_pic='-KPIC'
9629 lt_prog_compiler_static='-Bstatic'
9630 ;;
9631
9632 unicos*)
9633 lt_prog_compiler_wl='-Wl,'
9634 lt_prog_compiler_can_build_shared=no
9635 ;;
9636
9637 uts4*)
9638 lt_prog_compiler_pic='-pic'
9639 lt_prog_compiler_static='-Bstatic'
9640 ;;
9641
9642 *)
9643 lt_prog_compiler_can_build_shared=no
9644 ;;
f35db108 9645 esac
f35db108 9646 fi
f35db108 9647
c915a581
JJ
9648case $host_os in
9649 # For platforms which do not support PIC, -DPIC is meaningless:
9650 *djgpp*)
9651 lt_prog_compiler_pic=
f35db108 9652 ;;
c915a581
JJ
9653 *)
9654 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
f35db108 9655 ;;
c915a581
JJ
9656esac
9657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9658$as_echo "$lt_prog_compiler_pic" >&6; }
f35db108 9659
f35db108 9660
f35db108 9661
f35db108 9662
f35db108 9663
f35db108 9664
c915a581
JJ
9665#
9666# Check to make sure the PIC flag actually works.
9667#
9668if test -n "$lt_prog_compiler_pic"; then
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9670$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 9671if ${lt_cv_prog_compiler_pic_works+:} false; then :
c915a581
JJ
9672 $as_echo_n "(cached) " >&6
9673else
9674 lt_cv_prog_compiler_pic_works=no
9675 ac_outfile=conftest.$ac_objext
9676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9677 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9678 # Insert the option either (1) after the last *FLAGS variable, or
9679 # (2) before a word containing "conftest.", or (3) at the end.
9680 # Note that $ac_compile itself does not contain backslashes and begins
9681 # with a dollar sign (not a hyphen), so the echo should work correctly.
9682 # The option is referenced via a variable to avoid confusing sed.
9683 lt_compile=`echo "$ac_compile" | $SED \
9684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9686 -e 's:$: $lt_compiler_flag:'`
9687 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9688 (eval "$lt_compile" 2>conftest.err)
9689 ac_status=$?
9690 cat conftest.err >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 if (exit $ac_status) && test -s "$ac_outfile"; then
9693 # The compiler can only warn and ignore the option if not recognized
9694 # So say no if there are warnings other than the usual output.
9695 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9697 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9698 lt_cv_prog_compiler_pic_works=yes
9699 fi
9700 fi
9701 $RM conftest*
f35db108 9702
c915a581
JJ
9703fi
9704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9705$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
f35db108 9706
c915a581
JJ
9707if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9708 case $lt_prog_compiler_pic in
9709 "" | " "*) ;;
9710 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9711 esac
9712else
9713 lt_prog_compiler_pic=
9714 lt_prog_compiler_can_build_shared=no
9715fi
f35db108 9716
c915a581 9717fi
f35db108 9718
f35db108 9719
f35db108 9720
f35db108 9721
f35db108 9722
f35db108 9723
c915a581
JJ
9724#
9725# Check to make sure the static flag actually works.
9726#
9727wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9729$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 9730if ${lt_cv_prog_compiler_static_works+:} false; then :
c915a581
JJ
9731 $as_echo_n "(cached) " >&6
9732else
9733 lt_cv_prog_compiler_static_works=no
9734 save_LDFLAGS="$LDFLAGS"
9735 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9736 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9737 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9738 # The linker can only warn and ignore the option if not recognized
9739 # So say no if there are warnings
9740 if test -s conftest.err; then
9741 # Append any errors to the config.log.
9742 cat conftest.err 1>&5
9743 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9744 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9745 if diff conftest.exp conftest.er2 >/dev/null; then
9746 lt_cv_prog_compiler_static_works=yes
9747 fi
9748 else
9749 lt_cv_prog_compiler_static_works=yes
9750 fi
9751 fi
9752 $RM -r conftest*
9753 LDFLAGS="$save_LDFLAGS"
f35db108 9754
c915a581
JJ
9755fi
9756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9757$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
f35db108 9758
c915a581
JJ
9759if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9760 :
9761else
9762 lt_prog_compiler_static=
9763fi
f35db108 9764
f35db108 9765
f35db108 9766
f35db108 9767
f35db108 9768
f35db108 9769
f35db108 9770
c915a581
JJ
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9772$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9773if ${lt_cv_prog_compiler_c_o+:} false; then :
c915a581
JJ
9774 $as_echo_n "(cached) " >&6
9775else
9776 lt_cv_prog_compiler_c_o=no
9777 $RM -r conftest 2>/dev/null
9778 mkdir conftest
9779 cd conftest
9780 mkdir out
9781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
f35db108 9782
c915a581
JJ
9783 lt_compiler_flag="-o out/conftest2.$ac_objext"
9784 # Insert the option either (1) after the last *FLAGS variable, or
9785 # (2) before a word containing "conftest.", or (3) at the end.
9786 # Note that $ac_compile itself does not contain backslashes and begins
9787 # with a dollar sign (not a hyphen), so the echo should work correctly.
9788 lt_compile=`echo "$ac_compile" | $SED \
9789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9791 -e 's:$: $lt_compiler_flag:'`
9792 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9793 (eval "$lt_compile" 2>out/conftest.err)
9794 ac_status=$?
9795 cat out/conftest.err >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9798 then
9799 # The compiler can only warn and ignore the option if not recognized
9800 # So say no if there are warnings
9801 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9802 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9803 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9804 lt_cv_prog_compiler_c_o=yes
9805 fi
9806 fi
9807 chmod u+w . 2>&5
9808 $RM conftest*
9809 # SGI C++ compiler will create directory out/ii_files/ for
9810 # template instantiation
9811 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9812 $RM out/* && rmdir out
9813 cd ..
9814 $RM -r conftest
9815 $RM conftest*
f35db108 9816
c915a581
JJ
9817fi
9818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9819$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
f35db108 9820
f35db108 9821
f35db108 9822
f35db108 9823
f35db108 9824
f35db108 9825
c915a581
JJ
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9827$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9828if ${lt_cv_prog_compiler_c_o+:} false; then :
c915a581
JJ
9829 $as_echo_n "(cached) " >&6
9830else
9831 lt_cv_prog_compiler_c_o=no
9832 $RM -r conftest 2>/dev/null
9833 mkdir conftest
9834 cd conftest
9835 mkdir out
9836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
f35db108 9837
c915a581
JJ
9838 lt_compiler_flag="-o out/conftest2.$ac_objext"
9839 # Insert the option either (1) after the last *FLAGS variable, or
9840 # (2) before a word containing "conftest.", or (3) at the end.
9841 # Note that $ac_compile itself does not contain backslashes and begins
9842 # with a dollar sign (not a hyphen), so the echo should work correctly.
9843 lt_compile=`echo "$ac_compile" | $SED \
9844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9846 -e 's:$: $lt_compiler_flag:'`
9847 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9848 (eval "$lt_compile" 2>out/conftest.err)
9849 ac_status=$?
9850 cat out/conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9853 then
9854 # The compiler can only warn and ignore the option if not recognized
9855 # So say no if there are warnings
9856 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9857 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9858 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9859 lt_cv_prog_compiler_c_o=yes
9860 fi
9861 fi
9862 chmod u+w . 2>&5
9863 $RM conftest*
9864 # SGI C++ compiler will create directory out/ii_files/ for
9865 # template instantiation
9866 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9867 $RM out/* && rmdir out
9868 cd ..
9869 $RM -r conftest
9870 $RM conftest*
f35db108 9871
c915a581
JJ
9872fi
9873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9874$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
f35db108 9875
f35db108 9876
f35db108 9877
f35db108 9878
c915a581
JJ
9879hard_links="nottested"
9880if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9881 # do not overwrite the value of need_locks provided by the user
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9883$as_echo_n "checking if we can lock with hard links... " >&6; }
9884 hard_links=yes
9885 $RM conftest*
9886 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9887 touch conftest.a
9888 ln conftest.a conftest.b 2>&5 || hard_links=no
9889 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9891$as_echo "$hard_links" >&6; }
9892 if test "$hard_links" = no; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9894$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9895 need_locks=warn
f35db108 9896 fi
c915a581
JJ
9897else
9898 need_locks=no
f35db108
WM
9899fi
9900
f35db108
WM
9901
9902
9903
9904
9905
c915a581
JJ
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9907$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
f35db108 9908
c915a581
JJ
9909 runpath_var=
9910 allow_undefined_flag=
9911 always_export_symbols=no
9912 archive_cmds=
9913 archive_expsym_cmds=
9914 compiler_needs_object=no
9915 enable_shared_with_static_runtimes=no
9916 export_dynamic_flag_spec=
9917 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9918 hardcode_automatic=no
9919 hardcode_direct=no
9920 hardcode_direct_absolute=no
9921 hardcode_libdir_flag_spec=
9922 hardcode_libdir_flag_spec_ld=
9923 hardcode_libdir_separator=
9924 hardcode_minus_L=no
9925 hardcode_shlibpath_var=unsupported
9926 inherit_rpath=no
9927 link_all_deplibs=unknown
9928 module_cmds=
9929 module_expsym_cmds=
9930 old_archive_from_new_cmds=
9931 old_archive_from_expsyms_cmds=
9932 thread_safe_flag_spec=
9933 whole_archive_flag_spec=
9934 # include_expsyms should be a list of space-separated symbols to be *always*
9935 # included in the symbol list
9936 include_expsyms=
9937 # exclude_expsyms can be an extended regexp of symbols to exclude
9938 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9939 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9940 # as well as any symbol that contains `d'.
9941 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9942 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9943 # platforms (ab)use it in PIC code, but their linkers get confused if
9944 # the symbol is explicitly referenced. Since portable code cannot
9945 # rely on this symbol name, it's probably fine to never include it in
9946 # preloaded symbol tables.
9947 # Exclude shared library initialization/finalization symbols.
9948 extract_expsyms_cmds=
f35db108 9949
c915a581
JJ
9950 case $host_os in
9951 cygwin* | mingw* | pw32* | cegcc*)
9952 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9953 # When not using gcc, we currently assume that we are using
9954 # Microsoft Visual C++.
9955 if test "$GCC" != yes; then
9956 with_gnu_ld=no
9957 fi
9958 ;;
9959 interix*)
9960 # we just hope/assume this is gcc and not c89 (= MSVC++)
9961 with_gnu_ld=yes
9962 ;;
9963 openbsd*)
9964 with_gnu_ld=no
9965 ;;
9966 esac
f35db108 9967
c915a581 9968 ld_shlibs=yes
f35db108 9969
c915a581
JJ
9970 # On some targets, GNU ld is compatible enough with the native linker
9971 # that we're better off using the native interface for both.
9972 lt_use_gnu_ld_interface=no
9973 if test "$with_gnu_ld" = yes; then
9974 case $host_os in
9975 aix*)
9976 # The AIX port of GNU ld has always aspired to compatibility
9977 # with the native linker. However, as the warning in the GNU ld
9978 # block says, versions before 2.19.5* couldn't really create working
9979 # shared libraries, regardless of the interface used.
9980 case `$LD -v 2>&1` in
9981 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9982 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9983 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9984 *)
9985 lt_use_gnu_ld_interface=yes
9986 ;;
9987 esac
9988 ;;
9989 *)
9990 lt_use_gnu_ld_interface=yes
9991 ;;
9992 esac
9993 fi
f35db108 9994
c915a581
JJ
9995 if test "$lt_use_gnu_ld_interface" = yes; then
9996 # If archive_cmds runs LD, not CC, wlarc should be empty
9997 wlarc='${wl}'
f35db108 9998
c915a581
JJ
9999 # Set some defaults for GNU ld with shared library support. These
10000 # are reset later if shared libraries are not supported. Putting them
10001 # here allows them to be overridden if necessary.
10002 runpath_var=LD_RUN_PATH
10003 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10004 export_dynamic_flag_spec='${wl}--export-dynamic'
10005 # ancient GNU ld didn't support --whole-archive et. al.
10006 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10007 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10008 else
10009 whole_archive_flag_spec=
10010 fi
10011 supports_anon_versioning=no
10012 case `$LD -v 2>&1` in
10013 *GNU\ gold*) supports_anon_versioning=yes ;;
10014 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10015 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10016 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10017 *\ 2.11.*) ;; # other 2.11 versions
10018 *) supports_anon_versioning=yes ;;
10019 esac
f35db108 10020
c915a581
JJ
10021 # See if GNU ld supports shared libraries.
10022 case $host_os in
10023 aix[3-9]*)
10024 # On AIX/PPC, the GNU linker is very broken
10025 if test "$host_cpu" != ia64; then
10026 ld_shlibs=no
10027 cat <<_LT_EOF 1>&2
f35db108 10028
c915a581
JJ
10029*** Warning: the GNU linker, at least up to release 2.19, is reported
10030*** to be unable to reliably create shared libraries on AIX.
10031*** Therefore, libtool is disabling shared libraries support. If you
10032*** really care for shared libraries, you may want to install binutils
10033*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10034*** You will then need to restart the configuration process.
f35db108 10035
c915a581
JJ
10036_LT_EOF
10037 fi
10038 ;;
f35db108 10039
c915a581
JJ
10040 amigaos*)
10041 case $host_cpu in
10042 powerpc)
10043 # see comment about AmigaOS4 .so support
10044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10045 archive_expsym_cmds=''
10046 ;;
10047 m68k)
10048 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)'
10049 hardcode_libdir_flag_spec='-L$libdir'
10050 hardcode_minus_L=yes
10051 ;;
10052 esac
10053 ;;
f35db108 10054
c915a581
JJ
10055 beos*)
10056 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10057 allow_undefined_flag=unsupported
10058 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10059 # support --undefined. This deserves some investigation. FIXME
10060 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10061 else
10062 ld_shlibs=no
10063 fi
10064 ;;
f35db108 10065
c915a581
JJ
10066 cygwin* | mingw* | pw32* | cegcc*)
10067 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10068 # as there is no search path for DLLs.
10069 hardcode_libdir_flag_spec='-L$libdir'
10070 export_dynamic_flag_spec='${wl}--export-all-symbols'
10071 allow_undefined_flag=unsupported
10072 always_export_symbols=no
10073 enable_shared_with_static_runtimes=yes
10074 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
f35db108 10075
c915a581
JJ
10076 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10078 # If the export-symbols file already is a .def file (1st line
10079 # is EXPORTS), use it as is; otherwise, prepend...
10080 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10081 cp $export_symbols $output_objdir/$soname.def;
10082 else
10083 echo EXPORTS > $output_objdir/$soname.def;
10084 cat $export_symbols >> $output_objdir/$soname.def;
10085 fi~
10086 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10087 else
10088 ld_shlibs=no
10089 fi
10090 ;;
f35db108 10091
c915a581
JJ
10092 haiku*)
10093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10094 link_all_deplibs=yes
10095 ;;
f35db108 10096
c915a581
JJ
10097 interix[3-9]*)
10098 hardcode_direct=no
10099 hardcode_shlibpath_var=no
10100 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10101 export_dynamic_flag_spec='${wl}-E'
10102 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10103 # Instead, shared libraries are loaded at an image base (0x10000000 by
10104 # default) and relocated if they conflict, which is a slow very memory
10105 # consuming and fragmenting process. To avoid this, we pick a random,
10106 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10107 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10108 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10109 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'
10110 ;;
f35db108 10111
c915a581
JJ
10112 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10113 tmp_diet=no
10114 if test "$host_os" = linux-dietlibc; then
10115 case $cc_basename in
10116 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10117 esac
10118 fi
10119 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10120 && test "$tmp_diet" = no
10121 then
a699d672 10122 tmp_addflag=' $pic_flag'
c915a581
JJ
10123 tmp_sharedflag='-shared'
10124 case $cc_basename,$host_cpu in
10125 pgcc*) # Portland Group C compiler
10126 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'
10127 tmp_addflag=' $pic_flag'
10128 ;;
10129 pgf77* | pgf90* | pgf95* | pgfortran*)
10130 # Portland Group f77 and f90 compilers
10131 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'
10132 tmp_addflag=' $pic_flag -Mnomain' ;;
10133 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10134 tmp_addflag=' -i_dynamic' ;;
10135 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10136 tmp_addflag=' -i_dynamic -nofor_main' ;;
10137 ifc* | ifort*) # Intel Fortran compiler
10138 tmp_addflag=' -nofor_main' ;;
10139 lf95*) # Lahey Fortran 8.1
10140 whole_archive_flag_spec=
10141 tmp_sharedflag='--shared' ;;
10142 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10143 tmp_sharedflag='-qmkshrobj'
10144 tmp_addflag= ;;
10145 nvcc*) # Cuda Compiler Driver 2.2
10146 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'
10147 compiler_needs_object=yes
10148 ;;
10149 esac
10150 case `$CC -V 2>&1 | sed 5q` in
10151 *Sun\ C*) # Sun C 5.9
10152 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'
10153 compiler_needs_object=yes
10154 tmp_sharedflag='-G' ;;
10155 *Sun\ F*) # Sun Fortran 8.3
10156 tmp_sharedflag='-G' ;;
10157 esac
10158 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
f35db108 10159
c915a581
JJ
10160 if test "x$supports_anon_versioning" = xyes; then
10161 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10162 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10163 echo "local: *; };" >> $output_objdir/$libname.ver~
10164 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10165 fi
f35db108 10166
c915a581
JJ
10167 case $cc_basename in
10168 xlf* | bgf* | bgxlf* | mpixlf*)
10169 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10170 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10171 hardcode_libdir_flag_spec=
10172 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10173 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10174 if test "x$supports_anon_versioning" = xyes; then
10175 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10176 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10177 echo "local: *; };" >> $output_objdir/$libname.ver~
10178 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10179 fi
10180 ;;
10181 esac
10182 else
10183 ld_shlibs=no
10184 fi
10185 ;;
f35db108 10186
c915a581
JJ
10187 netbsd*)
10188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10189 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10190 wlarc=
10191 else
10192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10194 fi
10195 ;;
f35db108 10196
c915a581
JJ
10197 solaris*)
10198 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10199 ld_shlibs=no
10200 cat <<_LT_EOF 1>&2
f35db108 10201
c915a581
JJ
10202*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10203*** create shared libraries on Solaris systems. Therefore, libtool
10204*** is disabling shared libraries support. We urge you to upgrade GNU
10205*** binutils to release 2.9.1 or newer. Another option is to modify
10206*** your PATH or compiler configuration so that the native linker is
10207*** used, and then restart.
f35db108 10208
c915a581
JJ
10209_LT_EOF
10210 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10212 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10213 else
10214 ld_shlibs=no
10215 fi
10216 ;;
f35db108 10217
c915a581
JJ
10218 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10219 case `$LD -v 2>&1` in
10220 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10221 ld_shlibs=no
10222 cat <<_LT_EOF 1>&2
f35db108 10223
c915a581
JJ
10224*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10225*** reliably create shared libraries on SCO systems. Therefore, libtool
10226*** is disabling shared libraries support. We urge you to upgrade GNU
10227*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10228*** your PATH or compiler configuration so that the native linker is
10229*** used, and then restart.
f35db108 10230
c915a581
JJ
10231_LT_EOF
10232 ;;
10233 *)
10234 # For security reasons, it is highly recommended that you always
10235 # use absolute paths for naming shared libraries, and exclude the
10236 # DT_RUNPATH tag from executables and libraries. But doing so
10237 # requires that you compile everything twice, which is a pain.
10238 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10239 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10241 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10242 else
10243 ld_shlibs=no
10244 fi
10245 ;;
10246 esac
10247 ;;
f35db108 10248
c915a581
JJ
10249 sunos4*)
10250 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10251 wlarc=
10252 hardcode_direct=yes
10253 hardcode_shlibpath_var=no
10254 ;;
f35db108 10255
c915a581
JJ
10256 *)
10257 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10260 else
10261 ld_shlibs=no
10262 fi
10263 ;;
10264 esac
f35db108 10265
c915a581
JJ
10266 if test "$ld_shlibs" = no; then
10267 runpath_var=
10268 hardcode_libdir_flag_spec=
10269 export_dynamic_flag_spec=
10270 whole_archive_flag_spec=
10271 fi
10272 else
10273 # PORTME fill in a description of your system's linker (not GNU ld)
10274 case $host_os in
10275 aix3*)
10276 allow_undefined_flag=unsupported
10277 always_export_symbols=yes
10278 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'
10279 # Note: this linker hardcodes the directories in LIBPATH if there
10280 # are no directories specified by -L.
10281 hardcode_minus_L=yes
10282 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10283 # Neither direct hardcoding nor static linking is supported with a
10284 # broken collect2.
10285 hardcode_direct=unsupported
10286 fi
10287 ;;
f35db108 10288
c915a581
JJ
10289 aix[4-9]*)
10290 if test "$host_cpu" = ia64; then
10291 # On IA64, the linker does run time linking by default, so we don't
10292 # have to do anything special.
10293 aix_use_runtimelinking=no
10294 exp_sym_flag='-Bexport'
10295 no_entry_flag=""
10296 else
10297 # If we're using GNU nm, then we don't want the "-C" option.
10298 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10299 # Also, AIX nm treats weak defined symbols like other global
10300 # defined symbols, whereas GNU nm marks them as "W".
10301 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10302 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'
10303 else
bf93d543 10304 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
c915a581
JJ
10305 fi
10306 aix_use_runtimelinking=no
f35db108 10307
c915a581
JJ
10308 # Test if we are trying to use run time linking or normal
10309 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10310 # need to do runtime linking.
10311 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10312 for ld_flag in $LDFLAGS; do
10313 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10314 aix_use_runtimelinking=yes
10315 break
10316 fi
10317 done
10318 ;;
10319 esac
f35db108 10320
c915a581
JJ
10321 exp_sym_flag='-bexport'
10322 no_entry_flag='-bnoentry'
10323 fi
f35db108 10324
c915a581
JJ
10325 # When large executables or shared objects are built, AIX ld can
10326 # have problems creating the table of contents. If linking a library
10327 # or program results in "error TOC overflow" add -mminimal-toc to
10328 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10329 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
f35db108 10330
c915a581
JJ
10331 archive_cmds=''
10332 hardcode_direct=yes
10333 hardcode_direct_absolute=yes
10334 hardcode_libdir_separator=':'
10335 link_all_deplibs=yes
10336 file_list_spec='${wl}-f,'
f35db108 10337
c915a581
JJ
10338 if test "$GCC" = yes; then
10339 case $host_os in aix4.[012]|aix4.[012].*)
10340 # We only want to do this on AIX 4.2 and lower, the check
10341 # below for broken collect2 doesn't work under 4.3+
10342 collect2name=`${CC} -print-prog-name=collect2`
10343 if test -f "$collect2name" &&
10344 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10345 then
10346 # We have reworked collect2
10347 :
10348 else
10349 # We have old collect2
10350 hardcode_direct=unsupported
10351 # It fails to find uninstalled libraries when the uninstalled
10352 # path is not listed in the libpath. Setting hardcode_minus_L
10353 # to unsupported forces relinking
10354 hardcode_minus_L=yes
10355 hardcode_libdir_flag_spec='-L$libdir'
10356 hardcode_libdir_separator=
10357 fi
10358 ;;
10359 esac
10360 shared_flag='-shared'
10361 if test "$aix_use_runtimelinking" = yes; then
10362 shared_flag="$shared_flag "'${wl}-G'
10363 fi
10364 else
10365 # not using gcc
10366 if test "$host_cpu" = ia64; then
10367 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10368 # chokes on -Wl,-G. The following line is correct:
10369 shared_flag='-G'
10370 else
10371 if test "$aix_use_runtimelinking" = yes; then
10372 shared_flag='${wl}-G'
10373 else
10374 shared_flag='${wl}-bM:SRE'
10375 fi
10376 fi
10377 fi
f35db108 10378
c915a581
JJ
10379 export_dynamic_flag_spec='${wl}-bexpall'
10380 # It seems that -bexpall does not export symbols beginning with
10381 # underscore (_), so it is better to generate a list of symbols to export.
10382 always_export_symbols=yes
10383 if test "$aix_use_runtimelinking" = yes; then
10384 # Warning - without using the other runtime loading flags (-brtl),
10385 # -berok will link without error, but may produce a broken library.
10386 allow_undefined_flag='-berok'
10387 # Determine the default libpath from the value encoded in an
10388 # empty executable.
10389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390/* end confdefs.h. */
f35db108 10391
c915a581
JJ
10392int
10393main ()
10394{
f35db108 10395
c915a581
JJ
10396 ;
10397 return 0;
10398}
10399_ACEOF
10400if ac_fn_c_try_link "$LINENO"; then :
f35db108 10401
c915a581
JJ
10402lt_aix_libpath_sed='
10403 /Import File Strings/,/^$/ {
10404 /^0/ {
10405 s/^0 *\(.*\)$/\1/
10406 p
10407 }
10408 }'
10409aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10410# Check for a 64-bit object if we didn't find anything.
10411if test -z "$aix_libpath"; then
10412 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10413fi
10414fi
10415rm -f core conftest.err conftest.$ac_objext \
10416 conftest$ac_exeext conftest.$ac_ext
10417if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
f35db108 10418
c915a581
JJ
10419 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10420 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"
10421 else
10422 if test "$host_cpu" = ia64; then
10423 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10424 allow_undefined_flag="-z nodefs"
10425 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"
10426 else
10427 # Determine the default libpath from the value encoded in an
10428 # empty executable.
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430/* end confdefs.h. */
f35db108 10431
c915a581
JJ
10432int
10433main ()
10434{
f35db108 10435
c915a581
JJ
10436 ;
10437 return 0;
10438}
10439_ACEOF
10440if ac_fn_c_try_link "$LINENO"; then :
f35db108 10441
c915a581
JJ
10442lt_aix_libpath_sed='
10443 /Import File Strings/,/^$/ {
10444 /^0/ {
10445 s/^0 *\(.*\)$/\1/
10446 p
10447 }
10448 }'
10449aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10450# Check for a 64-bit object if we didn't find anything.
10451if test -z "$aix_libpath"; then
10452 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10453fi
10454fi
10455rm -f core conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
f35db108 10458
c915a581
JJ
10459 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10460 # Warning - without using the other run time loading flags,
10461 # -berok will link without error, but may produce a broken library.
10462 no_undefined_flag=' ${wl}-bernotok'
10463 allow_undefined_flag=' ${wl}-berok'
10464 if test "$with_gnu_ld" = yes; then
10465 # We only use this code for GNU lds that support --whole-archive.
10466 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10467 else
10468 # Exported symbols can be pulled into shared objects from archives
10469 whole_archive_flag_spec='$convenience'
10470 fi
10471 archive_cmds_need_lc=yes
10472 # This is similar to how AIX traditionally builds its shared libraries.
10473 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'
10474 fi
10475 fi
10476 ;;
f35db108 10477
c915a581
JJ
10478 amigaos*)
10479 case $host_cpu in
10480 powerpc)
10481 # see comment about AmigaOS4 .so support
10482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10483 archive_expsym_cmds=''
10484 ;;
10485 m68k)
10486 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)'
10487 hardcode_libdir_flag_spec='-L$libdir'
10488 hardcode_minus_L=yes
10489 ;;
10490 esac
10491 ;;
f35db108 10492
c915a581
JJ
10493 bsdi[45]*)
10494 export_dynamic_flag_spec=-rdynamic
10495 ;;
f35db108 10496
c915a581
JJ
10497 cygwin* | mingw* | pw32* | cegcc*)
10498 # When not using gcc, we currently assume that we are using
10499 # Microsoft Visual C++.
10500 # hardcode_libdir_flag_spec is actually meaningless, as there is
10501 # no search path for DLLs.
10502 hardcode_libdir_flag_spec=' '
10503 allow_undefined_flag=unsupported
10504 # Tell ltmain to make .lib files, not .a files.
10505 libext=lib
10506 # Tell ltmain to make .dll files, not .so files.
10507 shrext_cmds=".dll"
10508 # FIXME: Setting linknames here is a bad hack.
10509 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10510 # The linker will automatically build a .lib file if we build a DLL.
10511 old_archive_from_new_cmds='true'
10512 # FIXME: Should let the user specify the lib program.
10513 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10514 fix_srcfile_path='`cygpath -w "$srcfile"`'
10515 enable_shared_with_static_runtimes=yes
10516 ;;
f35db108 10517
c915a581 10518 darwin* | rhapsody*)
f35db108
WM
10519
10520
c915a581
JJ
10521 archive_cmds_need_lc=no
10522 hardcode_direct=no
10523 hardcode_automatic=yes
10524 hardcode_shlibpath_var=unsupported
10525 if test "$lt_cv_ld_force_load" = "yes"; then
10526 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\"`'
10527 else
10528 whole_archive_flag_spec=''
10529 fi
10530 link_all_deplibs=yes
10531 allow_undefined_flag="$_lt_dar_allow_undefined"
10532 case $cc_basename in
10533 ifort*) _lt_dar_can_shared=yes ;;
10534 *) _lt_dar_can_shared=$GCC ;;
10535 esac
10536 if test "$_lt_dar_can_shared" = "yes"; then
10537 output_verbose_link_cmd=func_echo_all
10538 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10539 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10540 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}"
10541 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}"
f35db108 10542
c915a581
JJ
10543 else
10544 ld_shlibs=no
10545 fi
f35db108 10546
c915a581 10547 ;;
f35db108 10548
c915a581
JJ
10549 dgux*)
10550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10551 hardcode_libdir_flag_spec='-L$libdir'
10552 hardcode_shlibpath_var=no
10553 ;;
f35db108 10554
c915a581
JJ
10555 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10556 # support. Future versions do this automatically, but an explicit c++rt0.o
10557 # does not break anything, and helps significantly (at the cost of a little
10558 # extra space).
10559 freebsd2.2*)
10560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10561 hardcode_libdir_flag_spec='-R$libdir'
10562 hardcode_direct=yes
10563 hardcode_shlibpath_var=no
10564 ;;
f35db108 10565
c915a581
JJ
10566 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10567 freebsd2.*)
10568 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10569 hardcode_direct=yes
10570 hardcode_minus_L=yes
10571 hardcode_shlibpath_var=no
10572 ;;
f35db108 10573
c915a581
JJ
10574 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10575 freebsd* | dragonfly*)
10576 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10577 hardcode_libdir_flag_spec='-R$libdir'
10578 hardcode_direct=yes
10579 hardcode_shlibpath_var=no
10580 ;;
f35db108 10581
c915a581
JJ
10582 hpux9*)
10583 if test "$GCC" = yes; then
10584 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'
10585 else
10586 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'
10587 fi
10588 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10589 hardcode_libdir_separator=:
10590 hardcode_direct=yes
f35db108 10591
c915a581
JJ
10592 # hardcode_minus_L: Not really in the search PATH,
10593 # but as the default location of the library.
10594 hardcode_minus_L=yes
10595 export_dynamic_flag_spec='${wl}-E'
10596 ;;
f35db108 10597
c915a581
JJ
10598 hpux10*)
10599 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10600 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10601 else
10602 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10603 fi
10604 if test "$with_gnu_ld" = no; then
10605 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10606 hardcode_libdir_flag_spec_ld='+b $libdir'
10607 hardcode_libdir_separator=:
10608 hardcode_direct=yes
10609 hardcode_direct_absolute=yes
10610 export_dynamic_flag_spec='${wl}-E'
10611 # hardcode_minus_L: Not really in the search PATH,
10612 # but as the default location of the library.
10613 hardcode_minus_L=yes
10614 fi
10615 ;;
f35db108 10616
c915a581
JJ
10617 hpux11*)
10618 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10619 case $host_cpu in
10620 hppa*64*)
10621 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10622 ;;
10623 ia64*)
10624 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10625 ;;
10626 *)
10627 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10628 ;;
10629 esac
10630 else
10631 case $host_cpu in
10632 hppa*64*)
10633 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10634 ;;
10635 ia64*)
10636 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10637 ;;
10638 *)
f35db108 10639
c915a581
JJ
10640 # Older versions of the 11.00 compiler do not understand -b yet
10641 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10643$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 10644if ${lt_cv_prog_compiler__b+:} false; then :
c915a581 10645 $as_echo_n "(cached) " >&6
f35db108 10646else
c915a581
JJ
10647 lt_cv_prog_compiler__b=no
10648 save_LDFLAGS="$LDFLAGS"
10649 LDFLAGS="$LDFLAGS -b"
10650 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10651 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10652 # The linker can only warn and ignore the option if not recognized
10653 # So say no if there are warnings
10654 if test -s conftest.err; then
10655 # Append any errors to the config.log.
10656 cat conftest.err 1>&5
10657 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10658 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10659 if diff conftest.exp conftest.er2 >/dev/null; then
10660 lt_cv_prog_compiler__b=yes
10661 fi
10662 else
10663 lt_cv_prog_compiler__b=yes
10664 fi
10665 fi
10666 $RM -r conftest*
10667 LDFLAGS="$save_LDFLAGS"
f35db108 10668
f35db108 10669fi
c915a581
JJ
10670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10671$as_echo "$lt_cv_prog_compiler__b" >&6; }
f35db108 10672
c915a581
JJ
10673if test x"$lt_cv_prog_compiler__b" = xyes; then
10674 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10675else
10676 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10677fi
f35db108 10678
c915a581
JJ
10679 ;;
10680 esac
10681 fi
10682 if test "$with_gnu_ld" = no; then
10683 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10684 hardcode_libdir_separator=:
f35db108 10685
c915a581
JJ
10686 case $host_cpu in
10687 hppa*64*|ia64*)
10688 hardcode_direct=no
10689 hardcode_shlibpath_var=no
10690 ;;
10691 *)
10692 hardcode_direct=yes
10693 hardcode_direct_absolute=yes
10694 export_dynamic_flag_spec='${wl}-E'
f35db108 10695
c915a581
JJ
10696 # hardcode_minus_L: Not really in the search PATH,
10697 # but as the default location of the library.
10698 hardcode_minus_L=yes
10699 ;;
10700 esac
10701 fi
10702 ;;
f35db108 10703
c915a581
JJ
10704 irix5* | irix6* | nonstopux*)
10705 if test "$GCC" = yes; then
10706 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'
10707 # Try to use the -exported_symbol ld option, if it does not
10708 # work, assume that -exports_file does not work either and
10709 # implicitly export all symbols.
10710 save_LDFLAGS="$LDFLAGS"
10711 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713/* end confdefs.h. */
10714int foo(void) {}
10715_ACEOF
10716if ac_fn_c_try_link "$LINENO"; then :
10717 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'
f35db108 10718
c915a581
JJ
10719fi
10720rm -f core conftest.err conftest.$ac_objext \
10721 conftest$ac_exeext conftest.$ac_ext
10722 LDFLAGS="$save_LDFLAGS"
10723 else
10724 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'
10725 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'
10726 fi
10727 archive_cmds_need_lc='no'
10728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10729 hardcode_libdir_separator=:
10730 inherit_rpath=yes
10731 link_all_deplibs=yes
10732 ;;
f35db108 10733
c915a581
JJ
10734 netbsd*)
10735 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10736 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10737 else
10738 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10739 fi
10740 hardcode_libdir_flag_spec='-R$libdir'
10741 hardcode_direct=yes
10742 hardcode_shlibpath_var=no
10743 ;;
f35db108 10744
c915a581
JJ
10745 newsos6)
10746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10747 hardcode_direct=yes
10748 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10749 hardcode_libdir_separator=:
10750 hardcode_shlibpath_var=no
10751 ;;
f35db108 10752
c915a581
JJ
10753 *nto* | *qnx*)
10754 ;;
f35db108 10755
c915a581
JJ
10756 openbsd*)
10757 if test -f /usr/libexec/ld.so; then
10758 hardcode_direct=yes
10759 hardcode_shlibpath_var=no
10760 hardcode_direct_absolute=yes
10761 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10762 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10763 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10764 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10765 export_dynamic_flag_spec='${wl}-E'
10766 else
10767 case $host_os in
10768 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10770 hardcode_libdir_flag_spec='-R$libdir'
10771 ;;
10772 *)
10773 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10774 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10775 ;;
10776 esac
10777 fi
10778 else
10779 ld_shlibs=no
10780 fi
10781 ;;
f35db108 10782
c915a581
JJ
10783 os2*)
10784 hardcode_libdir_flag_spec='-L$libdir'
10785 hardcode_minus_L=yes
10786 allow_undefined_flag=unsupported
10787 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'
10788 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10789 ;;
f35db108 10790
c915a581
JJ
10791 osf3*)
10792 if test "$GCC" = yes; then
10793 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10794 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'
10795 else
10796 allow_undefined_flag=' -expect_unresolved \*'
10797 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'
10798 fi
10799 archive_cmds_need_lc='no'
10800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10801 hardcode_libdir_separator=:
10802 ;;
f35db108 10803
c915a581
JJ
10804 osf4* | osf5*) # as osf3* with the addition of -msym flag
10805 if test "$GCC" = yes; then
10806 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10807 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'
10808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10809 else
10810 allow_undefined_flag=' -expect_unresolved \*'
10811 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'
10812 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~
10813 $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'
f35db108 10814
c915a581
JJ
10815 # Both c and cxx compiler support -rpath directly
10816 hardcode_libdir_flag_spec='-rpath $libdir'
10817 fi
10818 archive_cmds_need_lc='no'
10819 hardcode_libdir_separator=:
10820 ;;
f35db108 10821
c915a581
JJ
10822 solaris*)
10823 no_undefined_flag=' -z defs'
10824 if test "$GCC" = yes; then
10825 wlarc='${wl}'
10826 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10827 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10828 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10829 else
10830 case `$CC -V 2>&1` in
10831 *"Compilers 5.0"*)
10832 wlarc=''
10833 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10834 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10835 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10836 ;;
10837 *)
10838 wlarc='${wl}'
10839 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10840 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10841 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10842 ;;
10843 esac
10844 fi
10845 hardcode_libdir_flag_spec='-R$libdir'
10846 hardcode_shlibpath_var=no
10847 case $host_os in
10848 solaris2.[0-5] | solaris2.[0-5].*) ;;
10849 *)
10850 # The compiler driver will combine and reorder linker options,
10851 # but understands `-z linker_flag'. GCC discards it without `$wl',
10852 # but is careful enough not to reorder.
10853 # Supported since Solaris 2.6 (maybe 2.5.1?)
10854 if test "$GCC" = yes; then
10855 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10856 else
10857 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10858 fi
10859 ;;
10860 esac
10861 link_all_deplibs=yes
10862 ;;
f35db108 10863
c915a581
JJ
10864 sunos4*)
10865 if test "x$host_vendor" = xsequent; then
10866 # Use $CC to link under sequent, because it throws in some extra .o
10867 # files that make .init and .fini sections work.
10868 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10869 else
10870 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10871 fi
10872 hardcode_libdir_flag_spec='-L$libdir'
10873 hardcode_direct=yes
10874 hardcode_minus_L=yes
10875 hardcode_shlibpath_var=no
10876 ;;
f35db108 10877
c915a581
JJ
10878 sysv4)
10879 case $host_vendor in
10880 sni)
10881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10882 hardcode_direct=yes # is this really true???
10883 ;;
10884 siemens)
10885 ## LD is ld it makes a PLAMLIB
10886 ## CC just makes a GrossModule.
10887 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10888 reload_cmds='$CC -r -o $output$reload_objs'
10889 hardcode_direct=no
10890 ;;
10891 motorola)
10892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10893 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10894 ;;
10895 esac
10896 runpath_var='LD_RUN_PATH'
10897 hardcode_shlibpath_var=no
10898 ;;
f35db108 10899
c915a581
JJ
10900 sysv4.3*)
10901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10902 hardcode_shlibpath_var=no
10903 export_dynamic_flag_spec='-Bexport'
10904 ;;
f35db108 10905
c915a581
JJ
10906 sysv4*MP*)
10907 if test -d /usr/nec; then
10908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10909 hardcode_shlibpath_var=no
10910 runpath_var=LD_RUN_PATH
10911 hardcode_runpath_var=yes
10912 ld_shlibs=yes
10913 fi
10914 ;;
f35db108 10915
c915a581
JJ
10916 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10917 no_undefined_flag='${wl}-z,text'
10918 archive_cmds_need_lc=no
10919 hardcode_shlibpath_var=no
10920 runpath_var='LD_RUN_PATH'
f35db108 10921
c915a581
JJ
10922 if test "$GCC" = yes; then
10923 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10924 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10925 else
10926 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10927 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10928 fi
10929 ;;
f35db108 10930
c915a581
JJ
10931 sysv5* | sco3.2v5* | sco5v6*)
10932 # Note: We can NOT use -z defs as we might desire, because we do not
10933 # link with -lc, and that would cause any symbols used from libc to
10934 # always be unresolved, which means just about no library would
10935 # ever link correctly. If we're not using GNU ld we use -z text
10936 # though, which does catch some bad symbols but isn't as heavy-handed
10937 # as -z defs.
10938 no_undefined_flag='${wl}-z,text'
10939 allow_undefined_flag='${wl}-z,nodefs'
10940 archive_cmds_need_lc=no
10941 hardcode_shlibpath_var=no
10942 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10943 hardcode_libdir_separator=':'
10944 link_all_deplibs=yes
10945 export_dynamic_flag_spec='${wl}-Bexport'
10946 runpath_var='LD_RUN_PATH'
f35db108 10947
c915a581
JJ
10948 if test "$GCC" = yes; then
10949 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10951 else
10952 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10953 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10954 fi
10955 ;;
f35db108 10956
c915a581
JJ
10957 uts4*)
10958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10959 hardcode_libdir_flag_spec='-L$libdir'
10960 hardcode_shlibpath_var=no
10961 ;;
f35db108 10962
c915a581
JJ
10963 *)
10964 ld_shlibs=no
10965 ;;
10966 esac
f35db108 10967
c915a581
JJ
10968 if test x$host_vendor = xsni; then
10969 case $host in
10970 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10971 export_dynamic_flag_spec='${wl}-Blargedynsym'
10972 ;;
10973 esac
10974 fi
10975 fi
f35db108 10976
c915a581
JJ
10977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10978$as_echo "$ld_shlibs" >&6; }
10979test "$ld_shlibs" = no && can_build_shared=no
f35db108 10980
c915a581 10981with_gnu_ld=$with_gnu_ld
f35db108 10982
f35db108 10983
f35db108 10984
f35db108 10985
f35db108 10986
f35db108 10987
f35db108 10988
f35db108 10989
f35db108 10990
f35db108 10991
f35db108 10992
f35db108 10993
f35db108 10994
f35db108 10995
f35db108 10996
c915a581
JJ
10997#
10998# Do we need to explicitly link libc?
10999#
11000case "x$archive_cmds_need_lc" in
11001x|xyes)
11002 # Assume -lc should be added
11003 archive_cmds_need_lc=yes
11004
11005 if test "$enable_shared" = yes && test "$GCC" = yes; then
11006 case $archive_cmds in
11007 *'~'*)
11008 # FIXME: we may have to deal with multi-command sequences.
11009 ;;
11010 '$CC '*)
11011 # Test whether the compiler implicitly links with -lc since on some
11012 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11013 # to ld, don't add -lc before -lgcc.
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11015$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 11016if ${lt_cv_archive_cmds_need_lc+:} false; then :
c915a581
JJ
11017 $as_echo_n "(cached) " >&6
11018else
11019 $RM conftest*
11020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11021
11022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11023 (eval $ac_compile) 2>&5
f35db108
WM
11024 ac_status=$?
11025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c915a581
JJ
11026 test $ac_status = 0; } 2>conftest.err; then
11027 soname=conftest
11028 lib=conftest
11029 libobjs=conftest.$ac_objext
11030 deplibs=
11031 wl=$lt_prog_compiler_wl
11032 pic_flag=$lt_prog_compiler_pic
11033 compiler_flags=-v
11034 linker_flags=-v
11035 verstring=
11036 output_objdir=.
11037 libname=conftest
11038 lt_save_allow_undefined_flag=$allow_undefined_flag
11039 allow_undefined_flag=
11040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11041 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11042 ac_status=$?
11043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11044 test $ac_status = 0; }
11045 then
11046 lt_cv_archive_cmds_need_lc=no
11047 else
11048 lt_cv_archive_cmds_need_lc=yes
11049 fi
11050 allow_undefined_flag=$lt_save_allow_undefined_flag
11051 else
11052 cat conftest.err 1>&5
11053 fi
11054 $RM conftest*
11055
11056fi
11057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11058$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11059 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11060 ;;
f35db108 11061 esac
f35db108 11062 fi
c915a581
JJ
11063 ;;
11064esac
f35db108
WM
11065
11066
f35db108 11067
f35db108 11068
f35db108 11069
f35db108 11070
f35db108 11071
f35db108 11072
f35db108 11073
f35db108 11074
f35db108 11075
f35db108
WM
11076
11077
f35db108 11078
f35db108 11079
f35db108 11080
f35db108
WM
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
f35db108
WM
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
f35db108 11110
f35db108 11111
f35db108 11112
f35db108 11113
f35db108
WM
11114
11115
11116
11117
f35db108 11118
f35db108 11119
f35db108 11120
f35db108 11121
f35db108 11122
f35db108 11123
f35db108 11124
f35db108 11125
f35db108 11126
f35db108 11127
f35db108 11128
f35db108 11129
f35db108 11130
f35db108 11131
f35db108 11132
f35db108 11133
f35db108 11134
f35db108 11135
f35db108 11136
f35db108 11137
f35db108
WM
11138
11139
11140
11141
11142
11143
f35db108 11144
f35db108 11145
f35db108
WM
11146
11147
f35db108 11148
f35db108
WM
11149
11150
f35db108
WM
11151
11152
f35db108 11153
f35db108
WM
11154
11155
11156
f35db108 11157
f35db108 11158
f35db108
WM
11159
11160
11161
11162
11163
11164
11165
f35db108 11166
f35db108 11167
f35db108 11168
f35db108 11169
f35db108 11170
f35db108 11171
f35db108 11172
f35db108 11173
f35db108 11174
f35db108 11175
f35db108 11176
f35db108 11177
f35db108 11178
f35db108 11179
f35db108 11180
f35db108 11181
f35db108 11182
f35db108 11183
f35db108 11184
f35db108 11185
f35db108 11186
f35db108 11187
f35db108 11188
f35db108 11189
f35db108 11190
a2479b3d 11191
f35db108
WM
11192
11193
f35db108 11194
f35db108 11195
f35db108 11196
f35db108 11197
f35db108 11198
f35db108 11199
f35db108 11200
f35db108 11201
f35db108 11202
f35db108 11203
f35db108 11204
f35db108 11205
f35db108 11206
f35db108 11207
f35db108 11208
f35db108 11209
f35db108 11210
f35db108 11211
f35db108 11212
f35db108 11213
f35db108 11214
f35db108 11215
f35db108 11216
f35db108 11217
f35db108 11218
f35db108 11219
f35db108 11220
f35db108 11221
c915a581
JJ
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11223$as_echo_n "checking dynamic linker characteristics... " >&6; }
f35db108 11224
c915a581
JJ
11225if test "$GCC" = yes; then
11226 case $host_os in
11227 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11228 *) lt_awk_arg="/^libraries:/" ;;
11229 esac
11230 case $host_os in
11231 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11232 *) lt_sed_strip_eq="s,=/,/,g" ;;
11233 esac
11234 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11235 case $lt_search_path_spec in
11236 *\;*)
11237 # if the path contains ";" then we assume it to be the separator
11238 # otherwise default to the standard path separator (i.e. ":") - it is
11239 # assumed that no part of a normal pathname contains ";" but that should
11240 # okay in the real world where ";" in dirpaths is itself problematic.
11241 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11242 ;;
11243 *)
11244 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11245 ;;
11246 esac
11247 # Ok, now we have the path, separated by spaces, we can step through it
11248 # and add multilib dir if necessary.
11249 lt_tmp_lt_search_path_spec=
11250 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11251 for lt_sys_path in $lt_search_path_spec; do
11252 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11253 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11254 else
11255 test -d "$lt_sys_path" && \
11256 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11257 fi
11258 done
11259 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11260BEGIN {RS=" "; FS="/|\n";} {
11261 lt_foo="";
11262 lt_count=0;
11263 for (lt_i = NF; lt_i > 0; lt_i--) {
11264 if ($lt_i != "" && $lt_i != ".") {
11265 if ($lt_i == "..") {
11266 lt_count++;
11267 } else {
11268 if (lt_count == 0) {
11269 lt_foo="/" $lt_i lt_foo;
11270 } else {
11271 lt_count--;
11272 }
11273 }
11274 }
11275 }
11276 if (lt_foo != "") { lt_freq[lt_foo]++; }
11277 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11278}'`
11279 # AWK program above erroneously prepends '/' to C:/dos/paths
11280 # for these hosts.
11281 case $host_os in
11282 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11283 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11284 esac
11285 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11286else
11287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11288fi
11289library_names_spec=
11290libname_spec='lib$name'
11291soname_spec=
11292shrext_cmds=".so"
11293postinstall_cmds=
11294postuninstall_cmds=
11295finish_cmds=
11296finish_eval=
11297shlibpath_var=
11298shlibpath_overrides_runpath=unknown
11299version_type=none
11300dynamic_linker="$host_os ld.so"
11301sys_lib_dlsearch_path_spec="/lib /usr/lib"
11302need_lib_prefix=unknown
11303hardcode_into_libs=no
f35db108 11304
c915a581
JJ
11305# when you set need_version to no, make sure it does not cause -set_version
11306# flags to be left without arguments
11307need_version=unknown
f35db108 11308
c915a581
JJ
11309case $host_os in
11310aix3*)
11311 version_type=linux
11312 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11313 shlibpath_var=LIBPATH
f35db108 11314
c915a581
JJ
11315 # AIX 3 has no versioning support, so we append a major version to the name.
11316 soname_spec='${libname}${release}${shared_ext}$major'
11317 ;;
f35db108 11318
c915a581
JJ
11319aix[4-9]*)
11320 version_type=linux
11321 need_lib_prefix=no
11322 need_version=no
11323 hardcode_into_libs=yes
11324 if test "$host_cpu" = ia64; then
11325 # AIX 5 supports IA64
11326 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11327 shlibpath_var=LD_LIBRARY_PATH
11328 else
11329 # With GCC up to 2.95.x, collect2 would create an import file
11330 # for dependence libraries. The import file would start with
11331 # the line `#! .'. This would cause the generated library to
11332 # depend on `.', always an invalid library. This was fixed in
11333 # development snapshots of GCC prior to 3.0.
11334 case $host_os in
11335 aix4 | aix4.[01] | aix4.[01].*)
11336 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11337 echo ' yes '
11338 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11339 :
11340 else
11341 can_build_shared=no
11342 fi
11343 ;;
11344 esac
11345 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11346 # soname into executable. Probably we can add versioning support to
11347 # collect2, so additional links can be useful in future.
11348 if test "$aix_use_runtimelinking" = yes; then
11349 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11350 # instead of lib<name>.a to let people know that these are not
11351 # typical AIX shared libraries.
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353 else
11354 # We preserve .a as extension for shared libraries through AIX4.2
11355 # and later when we are not doing run time linking.
11356 library_names_spec='${libname}${release}.a $libname.a'
11357 soname_spec='${libname}${release}${shared_ext}$major'
11358 fi
11359 shlibpath_var=LIBPATH
11360 fi
11361 ;;
f35db108 11362
c915a581
JJ
11363amigaos*)
11364 case $host_cpu in
11365 powerpc)
11366 # Since July 2007 AmigaOS4 officially supports .so libraries.
11367 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11369 ;;
11370 m68k)
11371 library_names_spec='$libname.ixlibrary $libname.a'
11372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11373 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'
11374 ;;
11375 esac
11376 ;;
f35db108 11377
c915a581
JJ
11378beos*)
11379 library_names_spec='${libname}${shared_ext}'
11380 dynamic_linker="$host_os ld.so"
11381 shlibpath_var=LIBRARY_PATH
11382 ;;
f35db108 11383
c915a581
JJ
11384bsdi[45]*)
11385 version_type=linux
11386 need_version=no
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388 soname_spec='${libname}${release}${shared_ext}$major'
11389 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11390 shlibpath_var=LD_LIBRARY_PATH
11391 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11392 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11393 # the default ld.so.conf also contains /usr/contrib/lib and
11394 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11395 # libtool to hard-code these into programs
11396 ;;
f35db108 11397
c915a581
JJ
11398cygwin* | mingw* | pw32* | cegcc*)
11399 version_type=windows
11400 shrext_cmds=".dll"
11401 need_version=no
11402 need_lib_prefix=no
f35db108 11403
c915a581
JJ
11404 case $GCC,$host_os in
11405 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11406 library_names_spec='$libname.dll.a'
11407 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11408 postinstall_cmds='base_file=`basename \${file}`~
11409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11410 dldir=$destdir/`dirname \$dlpath`~
11411 test -d \$dldir || mkdir -p \$dldir~
11412 $install_prog $dir/$dlname \$dldir/$dlname~
11413 chmod a+x \$dldir/$dlname~
11414 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11415 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11416 fi'
11417 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11418 dlpath=$dir/\$dldll~
11419 $RM \$dlpath'
11420 shlibpath_overrides_runpath=yes
f35db108 11421
c915a581
JJ
11422 case $host_os in
11423 cygwin*)
11424 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11425 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
f35db108 11426
c915a581
JJ
11427 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11428 ;;
11429 mingw* | cegcc*)
11430 # MinGW DLLs use traditional 'lib' prefix
11431 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11432 ;;
11433 pw32*)
11434 # pw32 DLLs use 'pw' prefix rather than 'lib'
11435 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11436 ;;
11437 esac
11438 ;;
f35db108 11439
c915a581
JJ
11440 *)
11441 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11442 ;;
11443 esac
11444 dynamic_linker='Win32 ld.exe'
11445 # FIXME: first we should search . and the directory the executable is in
11446 shlibpath_var=PATH
11447 ;;
f35db108 11448
c915a581
JJ
11449darwin* | rhapsody*)
11450 dynamic_linker="$host_os dyld"
11451 version_type=darwin
11452 need_lib_prefix=no
11453 need_version=no
11454 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11455 soname_spec='${libname}${release}${major}$shared_ext'
11456 shlibpath_overrides_runpath=yes
11457 shlibpath_var=DYLD_LIBRARY_PATH
11458 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
f35db108 11459
c915a581
JJ
11460 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11461 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11462 ;;
f35db108 11463
c915a581
JJ
11464dgux*)
11465 version_type=linux
11466 need_lib_prefix=no
11467 need_version=no
11468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11469 soname_spec='${libname}${release}${shared_ext}$major'
11470 shlibpath_var=LD_LIBRARY_PATH
11471 ;;
f35db108 11472
c915a581
JJ
11473freebsd* | dragonfly*)
11474 # DragonFly does not have aout. When/if they implement a new
11475 # versioning mechanism, adjust this.
11476 if test -x /usr/bin/objformat; then
11477 objformat=`/usr/bin/objformat`
11478 else
11479 case $host_os in
11480 freebsd[23].*) objformat=aout ;;
11481 *) objformat=elf ;;
11482 esac
11483 fi
11484 version_type=freebsd-$objformat
11485 case $version_type in
11486 freebsd-elf*)
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11488 need_version=no
11489 need_lib_prefix=no
f35db108 11490 ;;
c915a581
JJ
11491 freebsd-*)
11492 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11493 need_version=yes
f35db108 11494 ;;
c915a581
JJ
11495 esac
11496 shlibpath_var=LD_LIBRARY_PATH
11497 case $host_os in
11498 freebsd2.*)
11499 shlibpath_overrides_runpath=yes
11500 ;;
11501 freebsd3.[01]* | freebsdelf3.[01]*)
11502 shlibpath_overrides_runpath=yes
11503 hardcode_into_libs=yes
11504 ;;
11505 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11506 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11507 shlibpath_overrides_runpath=no
11508 hardcode_into_libs=yes
11509 ;;
11510 *) # from 4.6 on, and DragonFly
11511 shlibpath_overrides_runpath=yes
11512 hardcode_into_libs=yes
11513 ;;
11514 esac
11515 ;;
f35db108 11516
c915a581
JJ
11517gnu*)
11518 version_type=linux
11519 need_lib_prefix=no
11520 need_version=no
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11522 soname_spec='${libname}${release}${shared_ext}$major'
11523 shlibpath_var=LD_LIBRARY_PATH
11524 hardcode_into_libs=yes
11525 ;;
f35db108 11526
c915a581
JJ
11527haiku*)
11528 version_type=linux
11529 need_lib_prefix=no
11530 need_version=no
11531 dynamic_linker="$host_os runtime_loader"
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11533 soname_spec='${libname}${release}${shared_ext}$major'
11534 shlibpath_var=LIBRARY_PATH
11535 shlibpath_overrides_runpath=yes
11536 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11537 hardcode_into_libs=yes
11538 ;;
f35db108 11539
c915a581
JJ
11540hpux9* | hpux10* | hpux11*)
11541 # Give a soname corresponding to the major version so that dld.sl refuses to
11542 # link against other versions.
11543 version_type=sunos
11544 need_lib_prefix=no
11545 need_version=no
11546 case $host_cpu in
11547 ia64*)
11548 shrext_cmds='.so'
11549 hardcode_into_libs=yes
11550 dynamic_linker="$host_os dld.so"
11551 shlibpath_var=LD_LIBRARY_PATH
11552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554 soname_spec='${libname}${release}${shared_ext}$major'
11555 if test "X$HPUX_IA64_MODE" = X32; then
11556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11557 else
11558 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11559 fi
11560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11561 ;;
11562 hppa*64*)
11563 shrext_cmds='.sl'
11564 hardcode_into_libs=yes
11565 dynamic_linker="$host_os dld.sl"
11566 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11569 soname_spec='${libname}${release}${shared_ext}$major'
11570 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11572 ;;
11573 *)
11574 shrext_cmds='.sl'
11575 dynamic_linker="$host_os dld.sl"
11576 shlibpath_var=SHLIB_PATH
11577 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11579 soname_spec='${libname}${release}${shared_ext}$major'
11580 ;;
11581 esac
11582 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11583 postinstall_cmds='chmod 555 $lib'
11584 # or fails outright, so override atomically:
11585 install_override_mode=555
11586 ;;
f35db108 11587
c915a581
JJ
11588interix[3-9]*)
11589 version_type=linux
11590 need_lib_prefix=no
11591 need_version=no
11592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11593 soname_spec='${libname}${release}${shared_ext}$major'
11594 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 shlibpath_overrides_runpath=no
11597 hardcode_into_libs=yes
11598 ;;
f35db108 11599
c915a581
JJ
11600irix5* | irix6* | nonstopux*)
11601 case $host_os in
11602 nonstopux*) version_type=nonstopux ;;
11603 *)
11604 if test "$lt_cv_prog_gnu_ld" = yes; then
11605 version_type=linux
11606 else
11607 version_type=irix
11608 fi ;;
11609 esac
11610 need_lib_prefix=no
11611 need_version=no
11612 soname_spec='${libname}${release}${shared_ext}$major'
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11614 case $host_os in
11615 irix5* | nonstopux*)
11616 libsuff= shlibsuff=
11617 ;;
11618 *)
11619 case $LD in # libtool.m4 will add one of these switches to LD
11620 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11621 libsuff= shlibsuff= libmagic=32-bit;;
11622 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11623 libsuff=32 shlibsuff=N32 libmagic=N32;;
11624 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11625 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11626 *) libsuff= shlibsuff= libmagic=never-match;;
11627 esac
11628 ;;
11629 esac
11630 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11631 shlibpath_overrides_runpath=no
11632 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11633 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11634 hardcode_into_libs=yes
11635 ;;
f35db108 11636
c915a581
JJ
11637# No shared lib support for Linux oldld, aout, or coff.
11638linux*oldld* | linux*aout* | linux*coff*)
11639 dynamic_linker=no
11640 ;;
f35db108 11641
c915a581
JJ
11642# This must be Linux ELF.
11643linux* | k*bsd*-gnu | kopensolaris*-gnu)
11644 version_type=linux
11645 need_lib_prefix=no
11646 need_version=no
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11648 soname_spec='${libname}${release}${shared_ext}$major'
11649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11650 shlibpath_var=LD_LIBRARY_PATH
11651 shlibpath_overrides_runpath=no
f35db108 11652
c915a581 11653 # Some binutils ld are patched to set DT_RUNPATH
22e05272 11654 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
c915a581
JJ
11655 $as_echo_n "(cached) " >&6
11656else
11657 lt_cv_shlibpath_overrides_runpath=no
11658 save_LDFLAGS=$LDFLAGS
11659 save_libdir=$libdir
11660 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11661 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663/* end confdefs.h. */
f35db108 11664
c915a581
JJ
11665int
11666main ()
11667{
f35db108 11668
c915a581
JJ
11669 ;
11670 return 0;
11671}
11672_ACEOF
11673if ac_fn_c_try_link "$LINENO"; then :
11674 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11675 lt_cv_shlibpath_overrides_runpath=yes
11676fi
11677fi
11678rm -f core conftest.err conftest.$ac_objext \
11679 conftest$ac_exeext conftest.$ac_ext
11680 LDFLAGS=$save_LDFLAGS
11681 libdir=$save_libdir
f35db108 11682
c915a581 11683fi
f35db108 11684
c915a581 11685 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
f35db108 11686
c915a581
JJ
11687 # This implies no fast_install, which is unacceptable.
11688 # Some rework will be needed to allow for fast_install
11689 # before this can be enabled.
11690 hardcode_into_libs=yes
f35db108 11691
c915a581
JJ
11692 # Append ld.so.conf contents to the search path
11693 if test -f /etc/ld.so.conf; then
11694 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' ' '`
11695 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11696 fi
f35db108 11697
c915a581
JJ
11698 # We used to test for /lib/ld.so.1 and disable shared libraries on
11699 # powerpc, because MkLinux only supported shared libraries with the
11700 # GNU dynamic linker. Since this was broken with cross compilers,
11701 # most powerpc-linux boxes support dynamic linking these days and
11702 # people can always --disable-shared, the test was removed, and we
11703 # assume the GNU/Linux dynamic linker is in use.
11704 dynamic_linker='GNU/Linux ld.so'
11705 ;;
f35db108 11706
c915a581
JJ
11707netbsd*)
11708 version_type=sunos
11709 need_lib_prefix=no
11710 need_version=no
11711 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11714 dynamic_linker='NetBSD (a.out) ld.so'
11715 else
11716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11717 soname_spec='${libname}${release}${shared_ext}$major'
11718 dynamic_linker='NetBSD ld.elf_so'
11719 fi
11720 shlibpath_var=LD_LIBRARY_PATH
11721 shlibpath_overrides_runpath=yes
11722 hardcode_into_libs=yes
f35db108
WM
11723 ;;
11724
c915a581
JJ
11725newsos6)
11726 version_type=linux
11727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 shlibpath_overrides_runpath=yes
11730 ;;
f35db108 11731
c915a581
JJ
11732*nto* | *qnx*)
11733 version_type=qnx
11734 need_lib_prefix=no
11735 need_version=no
11736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11737 soname_spec='${libname}${release}${shared_ext}$major'
11738 shlibpath_var=LD_LIBRARY_PATH
11739 shlibpath_overrides_runpath=no
11740 hardcode_into_libs=yes
11741 dynamic_linker='ldqnx.so'
11742 ;;
f35db108 11743
c915a581
JJ
11744openbsd*)
11745 version_type=sunos
11746 sys_lib_dlsearch_path_spec="/usr/lib"
11747 need_lib_prefix=no
11748 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11749 case $host_os in
11750 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11751 *) need_version=no ;;
f35db108 11752 esac
c915a581
JJ
11753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11755 shlibpath_var=LD_LIBRARY_PATH
11756 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11757 case $host_os in
11758 openbsd2.[89] | openbsd2.[89].*)
11759 shlibpath_overrides_runpath=no
11760 ;;
11761 *)
11762 shlibpath_overrides_runpath=yes
11763 ;;
11764 esac
11765 else
11766 shlibpath_overrides_runpath=yes
11767 fi
11768 ;;
11769
11770os2*)
11771 libname_spec='$name'
11772 shrext_cmds=".dll"
11773 need_lib_prefix=no
11774 library_names_spec='$libname${shared_ext} $libname.a'
11775 dynamic_linker='OS/2 ld.exe'
11776 shlibpath_var=LIBPATH
11777 ;;
11778
11779osf3* | osf4* | osf5*)
11780 version_type=osf
11781 need_lib_prefix=no
11782 need_version=no
11783 soname_spec='${libname}${release}${shared_ext}$major'
11784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11785 shlibpath_var=LD_LIBRARY_PATH
11786 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11787 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11788 ;;
11789
11790rdos*)
11791 dynamic_linker=no
f35db108
WM
11792 ;;
11793
11794solaris*)
c915a581
JJ
11795 version_type=linux
11796 need_lib_prefix=no
11797 need_version=no
11798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11799 soname_spec='${libname}${release}${shared_ext}$major'
11800 shlibpath_var=LD_LIBRARY_PATH
11801 shlibpath_overrides_runpath=yes
11802 hardcode_into_libs=yes
11803 # ldd complains unless libraries are executable
11804 postinstall_cmds='chmod +x $lib'
11805 ;;
11806
11807sunos4*)
11808 version_type=sunos
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11810 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11811 shlibpath_var=LD_LIBRARY_PATH
11812 shlibpath_overrides_runpath=yes
11813 if test "$with_gnu_ld" = yes; then
11814 need_lib_prefix=no
11815 fi
11816 need_version=yes
11817 ;;
11818
11819sysv4 | sysv4.3*)
11820 version_type=linux
11821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11822 soname_spec='${libname}${release}${shared_ext}$major'
11823 shlibpath_var=LD_LIBRARY_PATH
11824 case $host_vendor in
11825 sni)
11826 shlibpath_overrides_runpath=no
11827 need_lib_prefix=no
11828 runpath_var=LD_RUN_PATH
11829 ;;
11830 siemens)
11831 need_lib_prefix=no
11832 ;;
11833 motorola)
11834 need_lib_prefix=no
11835 need_version=no
11836 shlibpath_overrides_runpath=no
11837 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
f35db108 11838 ;;
c915a581
JJ
11839 esac
11840 ;;
11841
11842sysv4*MP*)
11843 if test -d /usr/nec ;then
11844 version_type=linux
11845 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11846 soname_spec='$libname${shared_ext}.$major'
11847 shlibpath_var=LD_LIBRARY_PATH
11848 fi
11849 ;;
11850
11851sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11852 version_type=freebsd-elf
11853 need_lib_prefix=no
11854 need_version=no
11855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11856 soname_spec='${libname}${release}${shared_ext}$major'
11857 shlibpath_var=LD_LIBRARY_PATH
11858 shlibpath_overrides_runpath=yes
11859 hardcode_into_libs=yes
11860 if test "$with_gnu_ld" = yes; then
11861 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11862 else
11863 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11864 case $host_os in
11865 sco3.2v5*)
11866 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11867 ;;
f35db108 11868 esac
c915a581
JJ
11869 fi
11870 sys_lib_dlsearch_path_spec='/usr/lib'
11871 ;;
f35db108 11872
c915a581
JJ
11873tpf*)
11874 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11875 version_type=linux
11876 need_lib_prefix=no
11877 need_version=no
11878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11879 shlibpath_var=LD_LIBRARY_PATH
11880 shlibpath_overrides_runpath=no
11881 hardcode_into_libs=yes
f35db108 11882 ;;
f35db108 11883
c915a581
JJ
11884uts4*)
11885 version_type=linux
11886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11887 soname_spec='${libname}${release}${shared_ext}$major'
11888 shlibpath_var=LD_LIBRARY_PATH
11889 ;;
f35db108 11890
c915a581
JJ
11891*)
11892 dynamic_linker=no
11893 ;;
f35db108 11894esac
c915a581
JJ
11895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11896$as_echo "$dynamic_linker" >&6; }
11897test "$dynamic_linker" = no && can_build_shared=no
11898
11899variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11900if test "$GCC" = yes; then
11901 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
f35db108
WM
11902fi
11903
c915a581
JJ
11904if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11905 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11906fi
11907if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11908 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11909fi
f35db108
WM
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
f35db108
WM
11940
11941
c915a581
JJ
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12003$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12004hardcode_action=
12005if test -n "$hardcode_libdir_flag_spec" ||
12006 test -n "$runpath_var" ||
12007 test "X$hardcode_automatic" = "Xyes" ; then
12008
12009 # We can hardcode non-existent directories.
12010 if test "$hardcode_direct" != no &&
12011 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12012 # have to relink, otherwise we might link with an installed library
12013 # when we should be linking with a yet-to-be-installed one
12014 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12015 test "$hardcode_minus_L" != no; then
12016 # Linking always hardcodes the temporary library directory.
12017 hardcode_action=relink
12018 else
12019 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12020 hardcode_action=immediate
12021 fi
12022else
12023 # We cannot hardcode anything, or else we can only hardcode existing
12024 # directories.
12025 hardcode_action=unsupported
12026fi
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12028$as_echo "$hardcode_action" >&6; }
12029
12030if test "$hardcode_action" = relink ||
12031 test "$inherit_rpath" = yes; then
12032 # Fast installation is not supported
12033 enable_fast_install=no
12034elif test "$shlibpath_overrides_runpath" = yes ||
12035 test "$enable_shared" = no; then
12036 # Fast installation is not necessary
12037 enable_fast_install=needless
12038fi
12039
12040
12041
12042
12043
12044
12045 if test "x$enable_dlopen" != xyes; then
12046 enable_dlopen=unknown
12047 enable_dlopen_self=unknown
12048 enable_dlopen_self_static=unknown
12049else
12050 lt_cv_dlopen=no
12051 lt_cv_dlopen_libs=
12052
12053 case $host_os in
12054 beos*)
12055 lt_cv_dlopen="load_add_on"
12056 lt_cv_dlopen_libs=
12057 lt_cv_dlopen_self=yes
12058 ;;
12059
12060 mingw* | pw32* | cegcc*)
12061 lt_cv_dlopen="LoadLibrary"
12062 lt_cv_dlopen_libs=
12063 ;;
12064
12065 cygwin*)
12066 lt_cv_dlopen="dlopen"
12067 lt_cv_dlopen_libs=
12068 ;;
12069
12070 darwin*)
12071 # if libdl is installed we need to link against it
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12073$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 12074if ${ac_cv_lib_dl_dlopen+:} false; then :
c915a581
JJ
12075 $as_echo_n "(cached) " >&6
12076else
12077 ac_check_lib_save_LIBS=$LIBS
12078LIBS="-ldl $LIBS"
12079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080/* end confdefs.h. */
12081
12082/* Override any GCC internal prototype to avoid an error.
12083 Use char because int might match the return type of a GCC
12084 builtin and then its argument prototype would still apply. */
12085#ifdef __cplusplus
12086extern "C"
12087#endif
12088char dlopen ();
12089int
12090main ()
12091{
12092return dlopen ();
12093 ;
12094 return 0;
12095}
12096_ACEOF
12097if ac_fn_c_try_link "$LINENO"; then :
12098 ac_cv_lib_dl_dlopen=yes
12099else
12100 ac_cv_lib_dl_dlopen=no
12101fi
12102rm -f core conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
12104LIBS=$ac_check_lib_save_LIBS
12105fi
12106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12107$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 12108if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
c915a581
JJ
12109 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12110else
12111
12112 lt_cv_dlopen="dyld"
12113 lt_cv_dlopen_libs=
12114 lt_cv_dlopen_self=yes
12115
12116fi
12117
12118 ;;
12119
12120 *)
12121 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 12122if test "x$ac_cv_func_shl_load" = xyes; then :
c915a581
JJ
12123 lt_cv_dlopen="shl_load"
12124else
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12126$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 12127if ${ac_cv_lib_dld_shl_load+:} false; then :
c915a581
JJ
12128 $as_echo_n "(cached) " >&6
12129else
12130 ac_check_lib_save_LIBS=$LIBS
12131LIBS="-ldld $LIBS"
12132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133/* end confdefs.h. */
12134
12135/* Override any GCC internal prototype to avoid an error.
12136 Use char because int might match the return type of a GCC
12137 builtin and then its argument prototype would still apply. */
12138#ifdef __cplusplus
12139extern "C"
12140#endif
12141char shl_load ();
12142int
12143main ()
12144{
12145return shl_load ();
12146 ;
12147 return 0;
12148}
12149_ACEOF
12150if ac_fn_c_try_link "$LINENO"; then :
12151 ac_cv_lib_dld_shl_load=yes
12152else
12153 ac_cv_lib_dld_shl_load=no
12154fi
12155rm -f core conftest.err conftest.$ac_objext \
12156 conftest$ac_exeext conftest.$ac_ext
12157LIBS=$ac_check_lib_save_LIBS
12158fi
12159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12160$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 12161if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
c915a581
JJ
12162 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12163else
12164 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 12165if test "x$ac_cv_func_dlopen" = xyes; then :
c915a581
JJ
12166 lt_cv_dlopen="dlopen"
12167else
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12169$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 12170if ${ac_cv_lib_dl_dlopen+:} false; then :
c915a581
JJ
12171 $as_echo_n "(cached) " >&6
12172else
12173 ac_check_lib_save_LIBS=$LIBS
12174LIBS="-ldl $LIBS"
12175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176/* end confdefs.h. */
12177
12178/* Override any GCC internal prototype to avoid an error.
12179 Use char because int might match the return type of a GCC
12180 builtin and then its argument prototype would still apply. */
12181#ifdef __cplusplus
12182extern "C"
12183#endif
12184char dlopen ();
12185int
12186main ()
12187{
12188return dlopen ();
12189 ;
12190 return 0;
12191}
12192_ACEOF
12193if ac_fn_c_try_link "$LINENO"; then :
12194 ac_cv_lib_dl_dlopen=yes
12195else
12196 ac_cv_lib_dl_dlopen=no
12197fi
12198rm -f core conftest.err conftest.$ac_objext \
12199 conftest$ac_exeext conftest.$ac_ext
12200LIBS=$ac_check_lib_save_LIBS
12201fi
12202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12203$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 12204if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
c915a581
JJ
12205 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12206else
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12208$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 12209if ${ac_cv_lib_svld_dlopen+:} false; then :
c915a581
JJ
12210 $as_echo_n "(cached) " >&6
12211else
12212 ac_check_lib_save_LIBS=$LIBS
12213LIBS="-lsvld $LIBS"
12214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215/* end confdefs.h. */
12216
12217/* Override any GCC internal prototype to avoid an error.
12218 Use char because int might match the return type of a GCC
12219 builtin and then its argument prototype would still apply. */
12220#ifdef __cplusplus
12221extern "C"
12222#endif
12223char dlopen ();
12224int
12225main ()
12226{
12227return dlopen ();
12228 ;
12229 return 0;
12230}
12231_ACEOF
12232if ac_fn_c_try_link "$LINENO"; then :
12233 ac_cv_lib_svld_dlopen=yes
12234else
12235 ac_cv_lib_svld_dlopen=no
12236fi
12237rm -f core conftest.err conftest.$ac_objext \
12238 conftest$ac_exeext conftest.$ac_ext
12239LIBS=$ac_check_lib_save_LIBS
12240fi
12241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12242$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 12243if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
c915a581
JJ
12244 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12245else
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12247$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 12248if ${ac_cv_lib_dld_dld_link+:} false; then :
c915a581
JJ
12249 $as_echo_n "(cached) " >&6
12250else
12251 ac_check_lib_save_LIBS=$LIBS
12252LIBS="-ldld $LIBS"
12253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254/* end confdefs.h. */
12255
12256/* Override any GCC internal prototype to avoid an error.
12257 Use char because int might match the return type of a GCC
12258 builtin and then its argument prototype would still apply. */
12259#ifdef __cplusplus
12260extern "C"
12261#endif
12262char dld_link ();
12263int
12264main ()
12265{
12266return dld_link ();
12267 ;
12268 return 0;
12269}
12270_ACEOF
12271if ac_fn_c_try_link "$LINENO"; then :
12272 ac_cv_lib_dld_dld_link=yes
12273else
12274 ac_cv_lib_dld_dld_link=no
12275fi
12276rm -f core conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12278LIBS=$ac_check_lib_save_LIBS
12279fi
12280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12281$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 12282if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
c915a581
JJ
12283 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12284fi
12285
12286
12287fi
12288
12289
12290fi
12291
12292
12293fi
12294
12295
12296fi
12297
12298
12299fi
12300
12301 ;;
12302 esac
12303
12304 if test "x$lt_cv_dlopen" != xno; then
12305 enable_dlopen=yes
12306 else
12307 enable_dlopen=no
12308 fi
12309
12310 case $lt_cv_dlopen in
12311 dlopen)
12312 save_CPPFLAGS="$CPPFLAGS"
12313 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12314
12315 save_LDFLAGS="$LDFLAGS"
12316 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12317
12318 save_LIBS="$LIBS"
12319 LIBS="$lt_cv_dlopen_libs $LIBS"
12320
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12322$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 12323if ${lt_cv_dlopen_self+:} false; then :
c915a581
JJ
12324 $as_echo_n "(cached) " >&6
12325else
12326 if test "$cross_compiling" = yes; then :
12327 lt_cv_dlopen_self=cross
12328else
12329 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12330 lt_status=$lt_dlunknown
12331 cat > conftest.$ac_ext <<_LT_EOF
22e05272 12332#line 12332 "configure"
c915a581
JJ
12333#include "confdefs.h"
12334
12335#if HAVE_DLFCN_H
12336#include <dlfcn.h>
12337#endif
12338
12339#include <stdio.h>
12340
12341#ifdef RTLD_GLOBAL
12342# define LT_DLGLOBAL RTLD_GLOBAL
12343#else
12344# ifdef DL_GLOBAL
12345# define LT_DLGLOBAL DL_GLOBAL
12346# else
12347# define LT_DLGLOBAL 0
12348# endif
12349#endif
12350
12351/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12352 find out it does not work in some platform. */
12353#ifndef LT_DLLAZY_OR_NOW
12354# ifdef RTLD_LAZY
12355# define LT_DLLAZY_OR_NOW RTLD_LAZY
12356# else
12357# ifdef DL_LAZY
12358# define LT_DLLAZY_OR_NOW DL_LAZY
12359# else
12360# ifdef RTLD_NOW
12361# define LT_DLLAZY_OR_NOW RTLD_NOW
12362# else
12363# ifdef DL_NOW
12364# define LT_DLLAZY_OR_NOW DL_NOW
12365# else
12366# define LT_DLLAZY_OR_NOW 0
12367# endif
12368# endif
12369# endif
12370# endif
12371#endif
12372
12373/* When -fvisbility=hidden is used, assume the code has been annotated
12374 correspondingly for the symbols needed. */
12375#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12376void fnord () __attribute__((visibility("default")));
12377#endif
12378
12379void fnord () { int i=42; }
12380int main ()
12381{
12382 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12383 int status = $lt_dlunknown;
12384
12385 if (self)
12386 {
12387 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12388 else
12389 {
12390 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12391 else puts (dlerror ());
12392 }
12393 /* dlclose (self); */
12394 }
12395 else
12396 puts (dlerror ());
12397
12398 return status;
12399}
12400_LT_EOF
12401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12402 (eval $ac_link) 2>&5
12403 ac_status=$?
12404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12405 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12406 (./conftest; exit; ) >&5 2>/dev/null
12407 lt_status=$?
12408 case x$lt_status in
12409 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12410 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12411 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12412 esac
12413 else :
12414 # compilation failed
12415 lt_cv_dlopen_self=no
12416 fi
12417fi
12418rm -fr conftest*
12419
12420
12421fi
12422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12423$as_echo "$lt_cv_dlopen_self" >&6; }
12424
12425 if test "x$lt_cv_dlopen_self" = xyes; then
12426 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12428$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 12429if ${lt_cv_dlopen_self_static+:} false; then :
c915a581
JJ
12430 $as_echo_n "(cached) " >&6
12431else
12432 if test "$cross_compiling" = yes; then :
12433 lt_cv_dlopen_self_static=cross
12434else
12435 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12436 lt_status=$lt_dlunknown
12437 cat > conftest.$ac_ext <<_LT_EOF
22e05272 12438#line 12438 "configure"
c915a581
JJ
12439#include "confdefs.h"
12440
12441#if HAVE_DLFCN_H
12442#include <dlfcn.h>
12443#endif
12444
12445#include <stdio.h>
12446
12447#ifdef RTLD_GLOBAL
12448# define LT_DLGLOBAL RTLD_GLOBAL
12449#else
12450# ifdef DL_GLOBAL
12451# define LT_DLGLOBAL DL_GLOBAL
12452# else
12453# define LT_DLGLOBAL 0
12454# endif
12455#endif
12456
12457/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12458 find out it does not work in some platform. */
12459#ifndef LT_DLLAZY_OR_NOW
12460# ifdef RTLD_LAZY
12461# define LT_DLLAZY_OR_NOW RTLD_LAZY
12462# else
12463# ifdef DL_LAZY
12464# define LT_DLLAZY_OR_NOW DL_LAZY
12465# else
12466# ifdef RTLD_NOW
12467# define LT_DLLAZY_OR_NOW RTLD_NOW
12468# else
12469# ifdef DL_NOW
12470# define LT_DLLAZY_OR_NOW DL_NOW
12471# else
12472# define LT_DLLAZY_OR_NOW 0
12473# endif
12474# endif
12475# endif
12476# endif
12477#endif
12478
12479/* When -fvisbility=hidden is used, assume the code has been annotated
12480 correspondingly for the symbols needed. */
12481#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12482void fnord () __attribute__((visibility("default")));
12483#endif
12484
12485void fnord () { int i=42; }
12486int main ()
12487{
12488 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12489 int status = $lt_dlunknown;
12490
12491 if (self)
12492 {
12493 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12494 else
12495 {
12496 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12497 else puts (dlerror ());
12498 }
12499 /* dlclose (self); */
12500 }
12501 else
12502 puts (dlerror ());
12503
12504 return status;
12505}
12506_LT_EOF
12507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12508 (eval $ac_link) 2>&5
12509 ac_status=$?
12510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12511 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12512 (./conftest; exit; ) >&5 2>/dev/null
12513 lt_status=$?
12514 case x$lt_status in
12515 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12516 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12517 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12518 esac
12519 else :
12520 # compilation failed
12521 lt_cv_dlopen_self_static=no
12522 fi
12523fi
12524rm -fr conftest*
12525
12526
12527fi
12528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12529$as_echo "$lt_cv_dlopen_self_static" >&6; }
12530 fi
12531
12532 CPPFLAGS="$save_CPPFLAGS"
12533 LDFLAGS="$save_LDFLAGS"
12534 LIBS="$save_LIBS"
12535 ;;
12536 esac
12537
12538 case $lt_cv_dlopen_self in
12539 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12540 *) enable_dlopen_self=unknown ;;
12541 esac
12542
12543 case $lt_cv_dlopen_self_static in
12544 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12545 *) enable_dlopen_self_static=unknown ;;
12546 esac
12547fi
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565striplib=
12566old_striplib=
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12568$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12569if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12570 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12571 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12573$as_echo "yes" >&6; }
12574else
12575# FIXME - insert some real tests, host_os isn't really good enough
12576 case $host_os in
12577 darwin*)
12578 if test -n "$STRIP" ; then
12579 striplib="$STRIP -x"
12580 old_striplib="$STRIP -S"
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12582$as_echo "yes" >&6; }
12583 else
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585$as_echo "no" >&6; }
12586 fi
12587 ;;
12588 *)
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590$as_echo "no" >&6; }
12591 ;;
12592 esac
12593fi
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606 # Report which library types will actually be built
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12608$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12610$as_echo "$can_build_shared" >&6; }
12611
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12613$as_echo_n "checking whether to build shared libraries... " >&6; }
12614 test "$can_build_shared" = "no" && enable_shared=no
12615
12616 # On AIX, shared libraries and static libraries use the same namespace, and
12617 # are all built from PIC.
12618 case $host_os in
12619 aix3*)
12620 test "$enable_shared" = yes && enable_static=no
12621 if test -n "$RANLIB"; then
12622 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12623 postinstall_cmds='$RANLIB $lib'
12624 fi
12625 ;;
12626
12627 aix[4-9]*)
12628 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12629 test "$enable_shared" = yes && enable_static=no
12630 fi
12631 ;;
12632 esac
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12634$as_echo "$enable_shared" >&6; }
12635
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12637$as_echo_n "checking whether to build static libraries... " >&6; }
12638 # Make sure either enable_shared or enable_static is yes.
12639 test "$enable_shared" = yes || enable_static=yes
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12641$as_echo "$enable_static" >&6; }
12642
12643
12644
12645
12646fi
12647ac_ext=c
12648ac_cpp='$CPP $CPPFLAGS'
12649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12651ac_compiler_gnu=$ac_cv_c_compiler_gnu
12652
12653CC="$lt_save_CC"
12654
12655 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12656 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12657 (test "X$CXX" != "Xg++"))) ; then
12658 ac_ext=cpp
12659ac_cpp='$CXXCPP $CPPFLAGS'
12660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12664$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12665if test -z "$CXXCPP"; then
22e05272 12666 if ${ac_cv_prog_CXXCPP+:} false; then :
c915a581
JJ
12667 $as_echo_n "(cached) " >&6
12668else
12669 # Double quotes because CXXCPP needs to be expanded
12670 for CXXCPP in "$CXX -E" "/lib/cpp"
12671 do
12672 ac_preproc_ok=false
12673for ac_cxx_preproc_warn_flag in '' yes
12674do
12675 # Use a header file that comes with gcc, so configuring glibc
12676 # with a fresh cross-compiler works.
12677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12678 # <limits.h> exists even on freestanding compilers.
12679 # On the NeXT, cc -E runs the code through the compiler's parser,
12680 # not just through cpp. "Syntax error" is here to catch this case.
12681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682/* end confdefs.h. */
12683#ifdef __STDC__
12684# include <limits.h>
12685#else
12686# include <assert.h>
12687#endif
12688 Syntax error
12689_ACEOF
12690if ac_fn_cxx_try_cpp "$LINENO"; then :
12691
12692else
12693 # Broken: fails on valid input.
12694continue
12695fi
22e05272 12696rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
12697
12698 # OK, works on sane cases. Now check whether nonexistent headers
12699 # can be detected and how.
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701/* end confdefs.h. */
12702#include <ac_nonexistent.h>
12703_ACEOF
12704if ac_fn_cxx_try_cpp "$LINENO"; then :
12705 # Broken: success on invalid input.
12706continue
12707else
12708 # Passes both tests.
12709ac_preproc_ok=:
12710break
12711fi
22e05272 12712rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
12713
12714done
12715# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 12716rm -f conftest.i conftest.err conftest.$ac_ext
c915a581
JJ
12717if $ac_preproc_ok; then :
12718 break
12719fi
12720
12721 done
12722 ac_cv_prog_CXXCPP=$CXXCPP
12723
12724fi
12725 CXXCPP=$ac_cv_prog_CXXCPP
12726else
12727 ac_cv_prog_CXXCPP=$CXXCPP
12728fi
12729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12730$as_echo "$CXXCPP" >&6; }
12731ac_preproc_ok=false
12732for ac_cxx_preproc_warn_flag in '' yes
12733do
12734 # Use a header file that comes with gcc, so configuring glibc
12735 # with a fresh cross-compiler works.
12736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12737 # <limits.h> exists even on freestanding compilers.
12738 # On the NeXT, cc -E runs the code through the compiler's parser,
12739 # not just through cpp. "Syntax error" is here to catch this case.
12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741/* end confdefs.h. */
12742#ifdef __STDC__
12743# include <limits.h>
12744#else
12745# include <assert.h>
12746#endif
12747 Syntax error
12748_ACEOF
12749if ac_fn_cxx_try_cpp "$LINENO"; then :
12750
12751else
12752 # Broken: fails on valid input.
12753continue
12754fi
22e05272 12755rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
12756
12757 # OK, works on sane cases. Now check whether nonexistent headers
12758 # can be detected and how.
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760/* end confdefs.h. */
12761#include <ac_nonexistent.h>
12762_ACEOF
12763if ac_fn_cxx_try_cpp "$LINENO"; then :
12764 # Broken: success on invalid input.
12765continue
12766else
12767 # Passes both tests.
12768ac_preproc_ok=:
12769break
12770fi
22e05272 12771rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
12772
12773done
12774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 12775rm -f conftest.i conftest.err conftest.$ac_ext
c915a581
JJ
12776if $ac_preproc_ok; then :
12777
12778else
12779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12781as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12782See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
12783fi
12784
12785ac_ext=c
12786ac_cpp='$CPP $CPPFLAGS'
12787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12789ac_compiler_gnu=$ac_cv_c_compiler_gnu
12790
12791else
12792 _lt_caught_CXX_error=yes
12793fi
12794
12795ac_ext=cpp
12796ac_cpp='$CXXCPP $CPPFLAGS'
12797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12800
12801archive_cmds_need_lc_CXX=no
12802allow_undefined_flag_CXX=
12803always_export_symbols_CXX=no
12804archive_expsym_cmds_CXX=
12805compiler_needs_object_CXX=no
12806export_dynamic_flag_spec_CXX=
12807hardcode_direct_CXX=no
12808hardcode_direct_absolute_CXX=no
12809hardcode_libdir_flag_spec_CXX=
12810hardcode_libdir_flag_spec_ld_CXX=
12811hardcode_libdir_separator_CXX=
12812hardcode_minus_L_CXX=no
12813hardcode_shlibpath_var_CXX=unsupported
12814hardcode_automatic_CXX=no
12815inherit_rpath_CXX=no
12816module_cmds_CXX=
12817module_expsym_cmds_CXX=
12818link_all_deplibs_CXX=unknown
12819old_archive_cmds_CXX=$old_archive_cmds
12820reload_flag_CXX=$reload_flag
12821reload_cmds_CXX=$reload_cmds
12822no_undefined_flag_CXX=
12823whole_archive_flag_spec_CXX=
12824enable_shared_with_static_runtimes_CXX=no
12825
12826# Source file extension for C++ test sources.
12827ac_ext=cpp
12828
12829# Object file extension for compiled C++ test sources.
12830objext=o
12831objext_CXX=$objext
12832
12833# No sense in running all these tests if we already determined that
12834# the CXX compiler isn't working. Some variables (like enable_shared)
12835# are currently assumed to apply to all compilers on this platform,
12836# and will be corrupted by setting them based on a non-working compiler.
12837if test "$_lt_caught_CXX_error" != yes; then
12838 # Code to be used in simple compile tests
12839 lt_simple_compile_test_code="int some_variable = 0;"
12840
12841 # Code to be used in simple link tests
12842 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12843
12844 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12845
12846
12847
12848
12849
12850
12851# If no C compiler was specified, use CC.
12852LTCC=${LTCC-"$CC"}
12853
12854# If no C compiler flags were specified, use CFLAGS.
12855LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12856
12857# Allow CC to be a program name with arguments.
12858compiler=$CC
12859
12860
12861 # save warnings/boilerplate of simple test code
12862 ac_outfile=conftest.$ac_objext
12863echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12864eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12865_lt_compiler_boilerplate=`cat conftest.err`
12866$RM conftest*
12867
12868 ac_outfile=conftest.$ac_objext
12869echo "$lt_simple_link_test_code" >conftest.$ac_ext
12870eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12871_lt_linker_boilerplate=`cat conftest.err`
12872$RM -r conftest*
12873
12874
12875 # Allow CC to be a program name with arguments.
12876 lt_save_CC=$CC
12877 lt_save_LD=$LD
12878 lt_save_GCC=$GCC
12879 GCC=$GXX
12880 lt_save_with_gnu_ld=$with_gnu_ld
12881 lt_save_path_LD=$lt_cv_path_LD
12882 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12883 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12884 else
12885 $as_unset lt_cv_prog_gnu_ld
12886 fi
12887 if test -n "${lt_cv_path_LDCXX+set}"; then
12888 lt_cv_path_LD=$lt_cv_path_LDCXX
12889 else
12890 $as_unset lt_cv_path_LD
12891 fi
12892 test -z "${LDCXX+set}" || LD=$LDCXX
12893 CC=${CXX-"c++"}
12894 compiler=$CC
12895 compiler_CXX=$CC
12896 for cc_temp in $compiler""; do
12897 case $cc_temp in
12898 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12899 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12900 \-*) ;;
12901 *) break;;
12902 esac
12903done
12904cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12905
12906
12907 if test -n "$compiler"; then
12908 # We don't want -fno-exception when compiling C++ code, so set the
12909 # no_builtin_flag separately
12910 if test "$GXX" = yes; then
12911 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12912 else
12913 lt_prog_compiler_no_builtin_flag_CXX=
12914 fi
12915
12916 if test "$GXX" = yes; then
12917 # Set up default GNU C++ configuration
12918
12919
12920
12921# Check whether --with-gnu-ld was given.
12922if test "${with_gnu_ld+set}" = set; then :
12923 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12924else
12925 with_gnu_ld=no
12926fi
12927
12928ac_prog=ld
12929if test "$GCC" = yes; then
12930 # Check if gcc -print-prog-name=ld gives a path.
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12932$as_echo_n "checking for ld used by $CC... " >&6; }
12933 case $host in
12934 *-*-mingw*)
12935 # gcc leaves a trailing carriage return which upsets mingw
12936 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12937 *)
12938 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12939 esac
12940 case $ac_prog in
12941 # Accept absolute paths.
12942 [\\/]* | ?:[\\/]*)
12943 re_direlt='/[^/][^/]*/\.\./'
12944 # Canonicalize the pathname of ld
12945 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12946 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12947 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12948 done
12949 test -z "$LD" && LD="$ac_prog"
12950 ;;
12951 "")
12952 # If it fails, then pretend we aren't using GCC.
12953 ac_prog=ld
12954 ;;
12955 *)
12956 # If it is relative, then search for the first ld in PATH.
12957 with_gnu_ld=unknown
12958 ;;
12959 esac
12960elif test "$with_gnu_ld" = yes; then
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12962$as_echo_n "checking for GNU ld... " >&6; }
12963else
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12965$as_echo_n "checking for non-GNU ld... " >&6; }
12966fi
22e05272 12967if ${lt_cv_path_LD+:} false; then :
c915a581
JJ
12968 $as_echo_n "(cached) " >&6
12969else
12970 if test -z "$LD"; then
12971 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12972 for ac_dir in $PATH; do
12973 IFS="$lt_save_ifs"
12974 test -z "$ac_dir" && ac_dir=.
12975 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12976 lt_cv_path_LD="$ac_dir/$ac_prog"
12977 # Check to see if the program is GNU ld. I'd rather use --version,
12978 # but apparently some variants of GNU ld only accept -v.
12979 # Break only if it was the GNU/non-GNU ld that we prefer.
12980 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12981 *GNU* | *'with BFD'*)
12982 test "$with_gnu_ld" != no && break
12983 ;;
12984 *)
12985 test "$with_gnu_ld" != yes && break
12986 ;;
12987 esac
12988 fi
12989 done
12990 IFS="$lt_save_ifs"
12991else
12992 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12993fi
12994fi
12995
12996LD="$lt_cv_path_LD"
12997if test -n "$LD"; then
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12999$as_echo "$LD" >&6; }
13000else
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002$as_echo "no" >&6; }
13003fi
22e05272 13004test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
c915a581
JJ
13005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13006$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 13007if ${lt_cv_prog_gnu_ld+:} false; then :
c915a581
JJ
13008 $as_echo_n "(cached) " >&6
13009else
13010 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13011case `$LD -v 2>&1 </dev/null` in
13012*GNU* | *'with BFD'*)
13013 lt_cv_prog_gnu_ld=yes
13014 ;;
13015*)
13016 lt_cv_prog_gnu_ld=no
13017 ;;
13018esac
13019fi
13020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13021$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13022with_gnu_ld=$lt_cv_prog_gnu_ld
13023
13024
13025
13026
13027
13028
13029
13030 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13031 # archiving commands below assume that GNU ld is being used.
13032 if test "$with_gnu_ld" = yes; then
a699d672
L
13033 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13034 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
c915a581
JJ
13035
13036 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13037 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13038
13039 # If archive_cmds runs LD, not CC, wlarc should be empty
13040 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13041 # investigate it a little bit more. (MM)
13042 wlarc='${wl}'
13043
13044 # ancient GNU ld didn't support --whole-archive et. al.
13045 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13046 $GREP 'no-whole-archive' > /dev/null; then
13047 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13048 else
13049 whole_archive_flag_spec_CXX=
13050 fi
13051 else
13052 with_gnu_ld=no
13053 wlarc=
13054
13055 # A generic and very simple default shared library creation
13056 # command for GNU C++ for the case where it uses the native
13057 # linker, instead of GNU ld. If possible, this setting should
13058 # overridden to take advantage of the native linker features on
13059 # the platform it is being used on.
13060 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13061 fi
13062
13063 # Commands to make compiler produce verbose output that lists
13064 # what "hidden" libraries, object files and flags are used when
13065 # linking a shared library.
13066 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13067
13068 else
13069 GXX=no
13070 with_gnu_ld=no
13071 wlarc=
13072 fi
13073
13074 # PORTME: fill in a description of your system's C++ link characteristics
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13076$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13077 ld_shlibs_CXX=yes
13078 case $host_os in
13079 aix3*)
13080 # FIXME: insert proper C++ library support
13081 ld_shlibs_CXX=no
13082 ;;
13083 aix[4-9]*)
13084 if test "$host_cpu" = ia64; then
13085 # On IA64, the linker does run time linking by default, so we don't
13086 # have to do anything special.
13087 aix_use_runtimelinking=no
13088 exp_sym_flag='-Bexport'
13089 no_entry_flag=""
13090 else
13091 aix_use_runtimelinking=no
13092
13093 # Test if we are trying to use run time linking or normal
13094 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13095 # need to do runtime linking.
13096 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13097 for ld_flag in $LDFLAGS; do
13098 case $ld_flag in
13099 *-brtl*)
13100 aix_use_runtimelinking=yes
13101 break
13102 ;;
13103 esac
13104 done
13105 ;;
13106 esac
13107
13108 exp_sym_flag='-bexport'
13109 no_entry_flag='-bnoentry'
13110 fi
13111
13112 # When large executables or shared objects are built, AIX ld can
13113 # have problems creating the table of contents. If linking a library
13114 # or program results in "error TOC overflow" add -mminimal-toc to
13115 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13116 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13117
13118 archive_cmds_CXX=''
13119 hardcode_direct_CXX=yes
13120 hardcode_direct_absolute_CXX=yes
13121 hardcode_libdir_separator_CXX=':'
13122 link_all_deplibs_CXX=yes
13123 file_list_spec_CXX='${wl}-f,'
13124
13125 if test "$GXX" = yes; then
13126 case $host_os in aix4.[012]|aix4.[012].*)
13127 # We only want to do this on AIX 4.2 and lower, the check
13128 # below for broken collect2 doesn't work under 4.3+
13129 collect2name=`${CC} -print-prog-name=collect2`
13130 if test -f "$collect2name" &&
13131 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13132 then
13133 # We have reworked collect2
13134 :
13135 else
13136 # We have old collect2
13137 hardcode_direct_CXX=unsupported
13138 # It fails to find uninstalled libraries when the uninstalled
13139 # path is not listed in the libpath. Setting hardcode_minus_L
13140 # to unsupported forces relinking
13141 hardcode_minus_L_CXX=yes
13142 hardcode_libdir_flag_spec_CXX='-L$libdir'
13143 hardcode_libdir_separator_CXX=
13144 fi
13145 esac
13146 shared_flag='-shared'
13147 if test "$aix_use_runtimelinking" = yes; then
13148 shared_flag="$shared_flag "'${wl}-G'
13149 fi
13150 else
13151 # not using gcc
13152 if test "$host_cpu" = ia64; then
13153 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13154 # chokes on -Wl,-G. The following line is correct:
13155 shared_flag='-G'
13156 else
13157 if test "$aix_use_runtimelinking" = yes; then
13158 shared_flag='${wl}-G'
13159 else
13160 shared_flag='${wl}-bM:SRE'
13161 fi
13162 fi
13163 fi
13164
13165 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13166 # It seems that -bexpall does not export symbols beginning with
13167 # underscore (_), so it is better to generate a list of symbols to
13168 # export.
13169 always_export_symbols_CXX=yes
13170 if test "$aix_use_runtimelinking" = yes; then
13171 # Warning - without using the other runtime loading flags (-brtl),
13172 # -berok will link without error, but may produce a broken library.
13173 allow_undefined_flag_CXX='-berok'
13174 # Determine the default libpath from the value encoded in an empty
13175 # executable.
13176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13177/* end confdefs.h. */
13178
13179int
13180main ()
13181{
13182
13183 ;
13184 return 0;
13185}
13186_ACEOF
13187if ac_fn_cxx_try_link "$LINENO"; then :
13188
13189lt_aix_libpath_sed='
13190 /Import File Strings/,/^$/ {
13191 /^0/ {
13192 s/^0 *\(.*\)$/\1/
13193 p
13194 }
13195 }'
13196aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13197# Check for a 64-bit object if we didn't find anything.
13198if test -z "$aix_libpath"; then
13199 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13200fi
13201fi
13202rm -f core conftest.err conftest.$ac_objext \
13203 conftest$ac_exeext conftest.$ac_ext
13204if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13205
13206 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13207
13208 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"
13209 else
13210 if test "$host_cpu" = ia64; then
13211 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13212 allow_undefined_flag_CXX="-z nodefs"
13213 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"
13214 else
13215 # Determine the default libpath from the value encoded in an
13216 # empty executable.
13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218/* end confdefs.h. */
13219
13220int
13221main ()
13222{
13223
13224 ;
13225 return 0;
13226}
13227_ACEOF
13228if ac_fn_cxx_try_link "$LINENO"; then :
13229
13230lt_aix_libpath_sed='
13231 /Import File Strings/,/^$/ {
13232 /^0/ {
13233 s/^0 *\(.*\)$/\1/
13234 p
13235 }
13236 }'
13237aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13238# Check for a 64-bit object if we didn't find anything.
13239if test -z "$aix_libpath"; then
13240 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13241fi
13242fi
13243rm -f core conftest.err conftest.$ac_objext \
13244 conftest$ac_exeext conftest.$ac_ext
13245if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13246
13247 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13248 # Warning - without using the other run time loading flags,
13249 # -berok will link without error, but may produce a broken library.
13250 no_undefined_flag_CXX=' ${wl}-bernotok'
13251 allow_undefined_flag_CXX=' ${wl}-berok'
13252 if test "$with_gnu_ld" = yes; then
13253 # We only use this code for GNU lds that support --whole-archive.
13254 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13255 else
13256 # Exported symbols can be pulled into shared objects from archives
13257 whole_archive_flag_spec_CXX='$convenience'
13258 fi
13259 archive_cmds_need_lc_CXX=yes
13260 # This is similar to how AIX traditionally builds its shared
13261 # libraries.
13262 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'
13263 fi
13264 fi
13265 ;;
13266
13267 beos*)
13268 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13269 allow_undefined_flag_CXX=unsupported
13270 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13271 # support --undefined. This deserves some investigation. FIXME
13272 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13273 else
13274 ld_shlibs_CXX=no
13275 fi
13276 ;;
13277
13278 chorus*)
13279 case $cc_basename in
13280 *)
13281 # FIXME: insert proper C++ library support
13282 ld_shlibs_CXX=no
13283 ;;
13284 esac
13285 ;;
13286
13287 cygwin* | mingw* | pw32* | cegcc*)
13288 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13289 # as there is no search path for DLLs.
13290 hardcode_libdir_flag_spec_CXX='-L$libdir'
13291 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13292 allow_undefined_flag_CXX=unsupported
13293 always_export_symbols_CXX=no
13294 enable_shared_with_static_runtimes_CXX=yes
13295
13296 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13297 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'
13298 # If the export-symbols file already is a .def file (1st line
13299 # is EXPORTS), use it as is; otherwise, prepend...
13300 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13301 cp $export_symbols $output_objdir/$soname.def;
13302 else
13303 echo EXPORTS > $output_objdir/$soname.def;
13304 cat $export_symbols >> $output_objdir/$soname.def;
13305 fi~
13306 $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'
13307 else
13308 ld_shlibs_CXX=no
13309 fi
13310 ;;
13311 darwin* | rhapsody*)
13312
13313
13314 archive_cmds_need_lc_CXX=no
13315 hardcode_direct_CXX=no
13316 hardcode_automatic_CXX=yes
13317 hardcode_shlibpath_var_CXX=unsupported
13318 if test "$lt_cv_ld_force_load" = "yes"; then
13319 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\"`'
13320 else
13321 whole_archive_flag_spec_CXX=''
13322 fi
13323 link_all_deplibs_CXX=yes
13324 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13325 case $cc_basename in
13326 ifort*) _lt_dar_can_shared=yes ;;
13327 *) _lt_dar_can_shared=$GCC ;;
13328 esac
13329 if test "$_lt_dar_can_shared" = "yes"; then
13330 output_verbose_link_cmd=func_echo_all
13331 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}"
13332 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13333 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}"
13334 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}"
13335 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13336 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}"
13337 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}"
13338 fi
13339
13340 else
13341 ld_shlibs_CXX=no
13342 fi
13343
13344 ;;
13345
13346 dgux*)
13347 case $cc_basename in
13348 ec++*)
13349 # FIXME: insert proper C++ library support
13350 ld_shlibs_CXX=no
13351 ;;
13352 ghcx*)
13353 # Green Hills C++ Compiler
13354 # FIXME: insert proper C++ library support
13355 ld_shlibs_CXX=no
13356 ;;
13357 *)
13358 # FIXME: insert proper C++ library support
13359 ld_shlibs_CXX=no
13360 ;;
13361 esac
13362 ;;
13363
13364 freebsd2.*)
13365 # C++ shared libraries reported to be fairly broken before
13366 # switch to ELF
13367 ld_shlibs_CXX=no
13368 ;;
13369
13370 freebsd-elf*)
13371 archive_cmds_need_lc_CXX=no
13372 ;;
13373
13374 freebsd* | dragonfly*)
13375 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13376 # conventions
13377 ld_shlibs_CXX=yes
13378 ;;
13379
13380 gnu*)
13381 ;;
13382
13383 haiku*)
13384 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13385 link_all_deplibs_CXX=yes
13386 ;;
13387
13388 hpux9*)
13389 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13390 hardcode_libdir_separator_CXX=:
13391 export_dynamic_flag_spec_CXX='${wl}-E'
13392 hardcode_direct_CXX=yes
13393 hardcode_minus_L_CXX=yes # Not in the search PATH,
13394 # but as the default
13395 # location of the library.
13396
13397 case $cc_basename in
13398 CC*)
13399 # FIXME: insert proper C++ library support
13400 ld_shlibs_CXX=no
13401 ;;
13402 aCC*)
13403 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'
13404 # Commands to make compiler produce verbose output that lists
13405 # what "hidden" libraries, object files and flags are used when
13406 # linking a shared library.
13407 #
13408 # There doesn't appear to be a way to prevent this compiler from
13409 # explicitly linking system object files so we need to strip them
13410 # from the output so that they don't get included in the library
13411 # dependencies.
13412 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"'
13413 ;;
13414 *)
13415 if test "$GXX" = yes; then
13416 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'
13417 else
13418 # FIXME: insert proper C++ library support
13419 ld_shlibs_CXX=no
13420 fi
13421 ;;
13422 esac
13423 ;;
13424
13425 hpux10*|hpux11*)
13426 if test $with_gnu_ld = no; then
13427 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13428 hardcode_libdir_separator_CXX=:
13429
13430 case $host_cpu in
13431 hppa*64*|ia64*)
13432 ;;
13433 *)
13434 export_dynamic_flag_spec_CXX='${wl}-E'
13435 ;;
13436 esac
13437 fi
13438 case $host_cpu in
13439 hppa*64*|ia64*)
13440 hardcode_direct_CXX=no
13441 hardcode_shlibpath_var_CXX=no
13442 ;;
13443 *)
13444 hardcode_direct_CXX=yes
13445 hardcode_direct_absolute_CXX=yes
13446 hardcode_minus_L_CXX=yes # Not in the search PATH,
13447 # but as the default
13448 # location of the library.
13449 ;;
13450 esac
13451
13452 case $cc_basename in
13453 CC*)
13454 # FIXME: insert proper C++ library support
13455 ld_shlibs_CXX=no
13456 ;;
13457 aCC*)
13458 case $host_cpu in
13459 hppa*64*)
13460 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13461 ;;
13462 ia64*)
13463 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13464 ;;
13465 *)
13466 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13467 ;;
13468 esac
13469 # Commands to make compiler produce verbose output that lists
13470 # what "hidden" libraries, object files and flags are used when
13471 # linking a shared library.
13472 #
13473 # There doesn't appear to be a way to prevent this compiler from
13474 # explicitly linking system object files so we need to strip them
13475 # from the output so that they don't get included in the library
13476 # dependencies.
13477 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"'
13478 ;;
13479 *)
13480 if test "$GXX" = yes; then
13481 if test $with_gnu_ld = no; then
13482 case $host_cpu in
13483 hppa*64*)
13484 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13485 ;;
13486 ia64*)
13487 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13488 ;;
13489 *)
13490 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'
13491 ;;
13492 esac
13493 fi
13494 else
13495 # FIXME: insert proper C++ library support
13496 ld_shlibs_CXX=no
13497 fi
13498 ;;
13499 esac
13500 ;;
13501
13502 interix[3-9]*)
13503 hardcode_direct_CXX=no
13504 hardcode_shlibpath_var_CXX=no
13505 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13506 export_dynamic_flag_spec_CXX='${wl}-E'
13507 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13508 # Instead, shared libraries are loaded at an image base (0x10000000 by
13509 # default) and relocated if they conflict, which is a slow very memory
13510 # consuming and fragmenting process. To avoid this, we pick a random,
13511 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13512 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13513 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'
13514 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'
13515 ;;
13516 irix5* | irix6*)
13517 case $cc_basename in
13518 CC*)
13519 # SGI C++
13520 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'
13521
13522 # Archives containing C++ object files must be created using
13523 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13524 # necessary to make sure instantiated templates are included
13525 # in the archive.
13526 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13527 ;;
13528 *)
13529 if test "$GXX" = yes; then
13530 if test "$with_gnu_ld" = no; then
13531 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'
13532 else
13533 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'
13534 fi
13535 fi
13536 link_all_deplibs_CXX=yes
13537 ;;
13538 esac
13539 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13540 hardcode_libdir_separator_CXX=:
13541 inherit_rpath_CXX=yes
13542 ;;
13543
13544 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13545 case $cc_basename in
13546 KCC*)
13547 # Kuck and Associates, Inc. (KAI) C++ Compiler
13548
13549 # KCC will only create a shared library if the output file
13550 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13551 # to its proper name (with version) after linking.
13552 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'
13553 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'
13554 # Commands to make compiler produce verbose output that lists
13555 # what "hidden" libraries, object files and flags are used when
13556 # linking a shared library.
13557 #
13558 # There doesn't appear to be a way to prevent this compiler from
13559 # explicitly linking system object files so we need to strip them
13560 # from the output so that they don't get included in the library
13561 # dependencies.
13562 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"'
13563
13564 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13565 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13566
13567 # Archives containing C++ object files must be created using
13568 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13569 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13570 ;;
13571 icpc* | ecpc* )
13572 # Intel C++
13573 with_gnu_ld=yes
13574 # version 8.0 and above of icpc choke on multiply defined symbols
13575 # if we add $predep_objects and $postdep_objects, however 7.1 and
13576 # earlier do not add the objects themselves.
13577 case `$CC -V 2>&1` in
13578 *"Version 7."*)
13579 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13580 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'
13581 ;;
13582 *) # Version 8.0 or newer
13583 tmp_idyn=
13584 case $host_cpu in
13585 ia64*) tmp_idyn=' -i_dynamic';;
13586 esac
13587 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13588 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'
13589 ;;
13590 esac
13591 archive_cmds_need_lc_CXX=no
13592 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13593 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13594 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13595 ;;
13596 pgCC* | pgcpp*)
13597 # Portland Group C++ compiler
13598 case `$CC -V` in
13599 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13600 prelink_cmds_CXX='tpldir=Template.dir~
13601 rm -rf $tpldir~
13602 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
8468f944 13603 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
c915a581
JJ
13604 old_archive_cmds_CXX='tpldir=Template.dir~
13605 rm -rf $tpldir~
13606 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
8468f944 13607 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
c915a581
JJ
13608 $RANLIB $oldlib'
13609 archive_cmds_CXX='tpldir=Template.dir~
13610 rm -rf $tpldir~
13611 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8468f944 13612 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
c915a581
JJ
13613 archive_expsym_cmds_CXX='tpldir=Template.dir~
13614 rm -rf $tpldir~
13615 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8468f944 13616 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
c915a581
JJ
13617 ;;
13618 *) # Version 6 and above use weak symbols
13619 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13620 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'
13621 ;;
13622 esac
13623
13624 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13625 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13626 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'
13627 ;;
13628 cxx*)
13629 # Compaq C++
13630 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13631 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'
13632
13633 runpath_var=LD_RUN_PATH
13634 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13635 hardcode_libdir_separator_CXX=:
13636
13637 # Commands to make compiler produce verbose output that lists
13638 # what "hidden" libraries, object files and flags are used when
13639 # linking a shared library.
13640 #
13641 # There doesn't appear to be a way to prevent this compiler from
13642 # explicitly linking system object files so we need to strip them
13643 # from the output so that they don't get included in the library
13644 # dependencies.
13645 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'
13646 ;;
13647 xl* | mpixl* | bgxl*)
13648 # IBM XL 8.0 on PPC, with GNU ld
13649 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13650 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13651 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13652 if test "x$supports_anon_versioning" = xyes; then
13653 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13654 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13655 echo "local: *; };" >> $output_objdir/$libname.ver~
13656 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13657 fi
13658 ;;
13659 *)
13660 case `$CC -V 2>&1 | sed 5q` in
13661 *Sun\ C*)
13662 # Sun C++ 5.9
13663 no_undefined_flag_CXX=' -zdefs'
13664 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13665 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'
13666 hardcode_libdir_flag_spec_CXX='-R$libdir'
13667 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'
13668 compiler_needs_object_CXX=yes
13669
13670 # Not sure whether something based on
13671 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13672 # would be better.
13673 output_verbose_link_cmd='func_echo_all'
13674
13675 # Archives containing C++ object files must be created using
13676 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13677 # necessary to make sure instantiated templates are included
13678 # in the archive.
13679 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13680 ;;
13681 esac
13682 ;;
13683 esac
13684 ;;
13685
13686 lynxos*)
13687 # FIXME: insert proper C++ library support
13688 ld_shlibs_CXX=no
13689 ;;
13690
13691 m88k*)
13692 # FIXME: insert proper C++ library support
13693 ld_shlibs_CXX=no
13694 ;;
13695
13696 mvs*)
13697 case $cc_basename in
13698 cxx*)
13699 # FIXME: insert proper C++ library support
13700 ld_shlibs_CXX=no
13701 ;;
13702 *)
13703 # FIXME: insert proper C++ library support
13704 ld_shlibs_CXX=no
13705 ;;
13706 esac
13707 ;;
13708
13709 netbsd*)
13710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13711 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13712 wlarc=
13713 hardcode_libdir_flag_spec_CXX='-R$libdir'
13714 hardcode_direct_CXX=yes
13715 hardcode_shlibpath_var_CXX=no
13716 fi
13717 # Workaround some broken pre-1.5 toolchains
13718 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13719 ;;
13720
13721 *nto* | *qnx*)
13722 ld_shlibs_CXX=yes
13723 ;;
13724
13725 openbsd2*)
13726 # C++ shared libraries are fairly broken
13727 ld_shlibs_CXX=no
13728 ;;
13729
13730 openbsd*)
13731 if test -f /usr/libexec/ld.so; then
13732 hardcode_direct_CXX=yes
13733 hardcode_shlibpath_var_CXX=no
13734 hardcode_direct_absolute_CXX=yes
13735 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13736 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13737 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13738 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13739 export_dynamic_flag_spec_CXX='${wl}-E'
13740 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13741 fi
13742 output_verbose_link_cmd=func_echo_all
13743 else
13744 ld_shlibs_CXX=no
13745 fi
13746 ;;
13747
13748 osf3* | osf4* | osf5*)
13749 case $cc_basename in
13750 KCC*)
13751 # Kuck and Associates, Inc. (KAI) C++ Compiler
13752
13753 # KCC will only create a shared library if the output file
13754 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13755 # to its proper name (with version) after linking.
13756 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'
13757
13758 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13759 hardcode_libdir_separator_CXX=:
13760
13761 # Archives containing C++ object files must be created using
13762 # the KAI C++ compiler.
13763 case $host in
13764 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13765 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13766 esac
13767 ;;
13768 RCC*)
13769 # Rational C++ 2.4.1
13770 # FIXME: insert proper C++ library support
13771 ld_shlibs_CXX=no
13772 ;;
13773 cxx*)
13774 case $host in
13775 osf3*)
13776 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13777 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'
13778 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13779 ;;
13780 *)
13781 allow_undefined_flag_CXX=' -expect_unresolved \*'
13782 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'
13783 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13784 echo "-hidden">> $lib.exp~
13785 $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~
13786 $RM $lib.exp'
13787 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13788 ;;
13789 esac
13790
13791 hardcode_libdir_separator_CXX=:
13792
13793 # Commands to make compiler produce verbose output that lists
13794 # what "hidden" libraries, object files and flags are used when
13795 # linking a shared library.
13796 #
13797 # There doesn't appear to be a way to prevent this compiler from
13798 # explicitly linking system object files so we need to strip them
13799 # from the output so that they don't get included in the library
13800 # dependencies.
13801 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"'
13802 ;;
13803 *)
13804 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13805 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13806 case $host in
13807 osf3*)
13808 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'
13809 ;;
13810 *)
13811 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'
13812 ;;
13813 esac
13814
13815 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13816 hardcode_libdir_separator_CXX=:
13817
13818 # Commands to make compiler produce verbose output that lists
13819 # what "hidden" libraries, object files and flags are used when
13820 # linking a shared library.
13821 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13822
13823 else
13824 # FIXME: insert proper C++ library support
13825 ld_shlibs_CXX=no
13826 fi
13827 ;;
13828 esac
13829 ;;
13830
13831 psos*)
13832 # FIXME: insert proper C++ library support
13833 ld_shlibs_CXX=no
13834 ;;
13835
13836 sunos4*)
13837 case $cc_basename in
13838 CC*)
13839 # Sun C++ 4.x
13840 # FIXME: insert proper C++ library support
13841 ld_shlibs_CXX=no
13842 ;;
13843 lcc*)
13844 # Lucid
13845 # FIXME: insert proper C++ library support
13846 ld_shlibs_CXX=no
13847 ;;
13848 *)
13849 # FIXME: insert proper C++ library support
13850 ld_shlibs_CXX=no
13851 ;;
13852 esac
13853 ;;
13854
13855 solaris*)
13856 case $cc_basename in
13857 CC*)
13858 # Sun C++ 4.2, 5.x and Centerline C++
13859 archive_cmds_need_lc_CXX=yes
13860 no_undefined_flag_CXX=' -zdefs'
13861 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13862 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13863 $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'
13864
13865 hardcode_libdir_flag_spec_CXX='-R$libdir'
13866 hardcode_shlibpath_var_CXX=no
13867 case $host_os in
13868 solaris2.[0-5] | solaris2.[0-5].*) ;;
13869 *)
13870 # The compiler driver will combine and reorder linker options,
13871 # but understands `-z linker_flag'.
13872 # Supported since Solaris 2.6 (maybe 2.5.1?)
13873 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13874 ;;
13875 esac
13876 link_all_deplibs_CXX=yes
13877
13878 output_verbose_link_cmd='func_echo_all'
13879
13880 # Archives containing C++ object files must be created using
13881 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13882 # necessary to make sure instantiated templates are included
13883 # in the archive.
13884 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13885 ;;
13886 gcx*)
13887 # Green Hills C++ Compiler
13888 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13889
13890 # The C++ compiler must be used to create the archive.
13891 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13892 ;;
13893 *)
13894 # GNU C++ compiler with Solaris linker
13895 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13896 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13897 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13898 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13899 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13900 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13901
13902 # Commands to make compiler produce verbose output that lists
13903 # what "hidden" libraries, object files and flags are used when
13904 # linking a shared library.
13905 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13906 else
13907 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13908 # platform.
13909 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13910 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13911 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13912
13913 # Commands to make compiler produce verbose output that lists
13914 # what "hidden" libraries, object files and flags are used when
13915 # linking a shared library.
13916 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13917 fi
13918
13919 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13920 case $host_os in
13921 solaris2.[0-5] | solaris2.[0-5].*) ;;
13922 *)
13923 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13924 ;;
13925 esac
13926 fi
13927 ;;
13928 esac
13929 ;;
13930
13931 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13932 no_undefined_flag_CXX='${wl}-z,text'
13933 archive_cmds_need_lc_CXX=no
13934 hardcode_shlibpath_var_CXX=no
13935 runpath_var='LD_RUN_PATH'
13936
13937 case $cc_basename in
13938 CC*)
13939 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13940 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13941 ;;
13942 *)
13943 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13944 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13945 ;;
13946 esac
13947 ;;
13948
13949 sysv5* | sco3.2v5* | sco5v6*)
13950 # Note: We can NOT use -z defs as we might desire, because we do not
13951 # link with -lc, and that would cause any symbols used from libc to
13952 # always be unresolved, which means just about no library would
13953 # ever link correctly. If we're not using GNU ld we use -z text
13954 # though, which does catch some bad symbols but isn't as heavy-handed
13955 # as -z defs.
13956 no_undefined_flag_CXX='${wl}-z,text'
13957 allow_undefined_flag_CXX='${wl}-z,nodefs'
13958 archive_cmds_need_lc_CXX=no
13959 hardcode_shlibpath_var_CXX=no
13960 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13961 hardcode_libdir_separator_CXX=':'
13962 link_all_deplibs_CXX=yes
13963 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13964 runpath_var='LD_RUN_PATH'
13965
13966 case $cc_basename in
13967 CC*)
13968 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13969 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13970 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13971 '"$old_archive_cmds_CXX"
13972 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13973 '"$reload_cmds_CXX"
13974 ;;
13975 *)
13976 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13977 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13978 ;;
13979 esac
13980 ;;
13981
13982 tandem*)
13983 case $cc_basename in
13984 NCC*)
13985 # NonStop-UX NCC 3.20
13986 # FIXME: insert proper C++ library support
13987 ld_shlibs_CXX=no
13988 ;;
13989 *)
13990 # FIXME: insert proper C++ library support
13991 ld_shlibs_CXX=no
13992 ;;
13993 esac
13994 ;;
13995
13996 vxworks*)
13997 # FIXME: insert proper C++ library support
13998 ld_shlibs_CXX=no
13999 ;;
14000
14001 *)
14002 # FIXME: insert proper C++ library support
14003 ld_shlibs_CXX=no
14004 ;;
14005 esac
14006
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14008$as_echo "$ld_shlibs_CXX" >&6; }
14009 test "$ld_shlibs_CXX" = no && can_build_shared=no
14010
14011 GCC_CXX="$GXX"
14012 LD_CXX="$LD"
14013
14014 ## CAVEAT EMPTOR:
14015 ## There is no encapsulation within the following macros, do not change
14016 ## the running order or otherwise move them around unless you know exactly
14017 ## what you are doing...
14018 # Dependencies to place before and after the object being linked:
14019predep_objects_CXX=
14020postdep_objects_CXX=
14021predeps_CXX=
14022postdeps_CXX=
14023compiler_lib_search_path_CXX=
14024
14025cat > conftest.$ac_ext <<_LT_EOF
14026class Foo
14027{
14028public:
14029 Foo (void) { a = 0; }
14030private:
14031 int a;
14032};
14033_LT_EOF
14034
14035if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14036 (eval $ac_compile) 2>&5
14037 ac_status=$?
14038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14039 test $ac_status = 0; }; then
14040 # Parse the compiler output and extract the necessary
14041 # objects, libraries and library flags.
14042
14043 # Sentinel used to keep track of whether or not we are before
14044 # the conftest object file.
14045 pre_test_object_deps_done=no
14046
14047 for p in `eval "$output_verbose_link_cmd"`; do
14048 case $p in
14049
14050 -L* | -R* | -l*)
14051 # Some compilers place space between "-{L,R}" and the path.
14052 # Remove the space.
14053 if test $p = "-L" ||
14054 test $p = "-R"; then
14055 prev=$p
14056 continue
14057 else
14058 prev=
14059 fi
14060
14061 if test "$pre_test_object_deps_done" = no; then
14062 case $p in
14063 -L* | -R*)
14064 # Internal compiler library paths should come after those
14065 # provided the user. The postdeps already come after the
14066 # user supplied libs so there is no need to process them.
14067 if test -z "$compiler_lib_search_path_CXX"; then
14068 compiler_lib_search_path_CXX="${prev}${p}"
14069 else
14070 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14071 fi
14072 ;;
14073 # The "-l" case would never come before the object being
14074 # linked, so don't bother handling this case.
14075 esac
14076 else
14077 if test -z "$postdeps_CXX"; then
14078 postdeps_CXX="${prev}${p}"
14079 else
14080 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14081 fi
14082 fi
14083 ;;
14084
14085 *.$objext)
14086 # This assumes that the test object file only shows up
14087 # once in the compiler output.
14088 if test "$p" = "conftest.$objext"; then
14089 pre_test_object_deps_done=yes
14090 continue
14091 fi
14092
14093 if test "$pre_test_object_deps_done" = no; then
14094 if test -z "$predep_objects_CXX"; then
14095 predep_objects_CXX="$p"
14096 else
14097 predep_objects_CXX="$predep_objects_CXX $p"
14098 fi
14099 else
14100 if test -z "$postdep_objects_CXX"; then
14101 postdep_objects_CXX="$p"
14102 else
14103 postdep_objects_CXX="$postdep_objects_CXX $p"
14104 fi
14105 fi
14106 ;;
14107
14108 *) ;; # Ignore the rest.
14109
14110 esac
14111 done
14112
14113 # Clean up.
14114 rm -f a.out a.exe
14115else
14116 echo "libtool.m4: error: problem compiling CXX test program"
14117fi
14118
14119$RM -f confest.$objext
14120
14121# PORTME: override above test on systems where it is broken
14122case $host_os in
14123interix[3-9]*)
14124 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14125 # hack all around it, let's just trust "g++" to DTRT.
14126 predep_objects_CXX=
14127 postdep_objects_CXX=
14128 postdeps_CXX=
14129 ;;
14130
14131linux*)
14132 case `$CC -V 2>&1 | sed 5q` in
14133 *Sun\ C*)
14134 # Sun C++ 5.9
14135
14136 # The more standards-conforming stlport4 library is
14137 # incompatible with the Cstd library. Avoid specifying
14138 # it if it's in CXXFLAGS. Ignore libCrun as
14139 # -library=stlport4 depends on it.
14140 case " $CXX $CXXFLAGS " in
14141 *" -library=stlport4 "*)
14142 solaris_use_stlport4=yes
14143 ;;
14144 esac
14145
14146 if test "$solaris_use_stlport4" != yes; then
14147 postdeps_CXX='-library=Cstd -library=Crun'
14148 fi
14149 ;;
14150 esac
14151 ;;
14152
14153solaris*)
14154 case $cc_basename in
14155 CC*)
14156 # The more standards-conforming stlport4 library is
14157 # incompatible with the Cstd library. Avoid specifying
14158 # it if it's in CXXFLAGS. Ignore libCrun as
14159 # -library=stlport4 depends on it.
14160 case " $CXX $CXXFLAGS " in
14161 *" -library=stlport4 "*)
14162 solaris_use_stlport4=yes
14163 ;;
14164 esac
14165
14166 # Adding this requires a known-good setup of shared libraries for
14167 # Sun compiler versions before 5.6, else PIC objects from an old
14168 # archive will be linked into the output, leading to subtle bugs.
14169 if test "$solaris_use_stlport4" != yes; then
14170 postdeps_CXX='-library=Cstd -library=Crun'
14171 fi
14172 ;;
14173 esac
14174 ;;
14175esac
14176
14177
14178case " $postdeps_CXX " in
14179*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14180esac
14181 compiler_lib_search_dirs_CXX=
14182if test -n "${compiler_lib_search_path_CXX}"; then
14183 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14184fi
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216 lt_prog_compiler_wl_CXX=
14217lt_prog_compiler_pic_CXX=
14218lt_prog_compiler_static_CXX=
14219
14220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14221$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14222
14223 # C++ specific cases for pic, static, wl, etc.
14224 if test "$GXX" = yes; then
14225 lt_prog_compiler_wl_CXX='-Wl,'
14226 lt_prog_compiler_static_CXX='-static'
f35db108
WM
14227
14228 case $host_os in
14229 aix*)
14230 # All AIX code is PIC.
14231 if test "$host_cpu" = ia64; then
14232 # AIX 5 now supports IA64 processor
14233 lt_prog_compiler_static_CXX='-Bstatic'
14234 fi
a2479b3d 14235 lt_prog_compiler_pic_CXX='-fPIC'
f35db108
WM
14236 ;;
14237
c915a581
JJ
14238 amigaos*)
14239 case $host_cpu in
14240 powerpc)
14241 # see comment about AmigaOS4 .so support
14242 lt_prog_compiler_pic_CXX='-fPIC'
14243 ;;
14244 m68k)
14245 # FIXME: we need at least 68020 code to build shared libraries, but
14246 # adding the `-m68020' flag to GCC prevents building anything better,
14247 # like `-m68040'.
14248 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14249 ;;
14250 esac
14251 ;;
14252
14253 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14254 # PIC is the default for these OSes.
14255 ;;
14256 mingw* | cygwin* | os2* | pw32* | cegcc*)
14257 # This hack is so that the source file can tell whether it is being
14258 # built for inclusion in a dll (and should export symbols for example).
14259 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14260 # (--disable-auto-import) libraries
14261 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14262 ;;
14263 darwin* | rhapsody*)
14264 # PIC is the default on this platform
14265 # Common symbols not allowed in MH_DYLIB files
14266 lt_prog_compiler_pic_CXX='-fno-common'
14267 ;;
14268 *djgpp*)
14269 # DJGPP does not support shared libraries at all
14270 lt_prog_compiler_pic_CXX=
14271 ;;
14272 haiku*)
14273 # PIC is the default for Haiku.
14274 # The "-static" flag exists, but is broken.
14275 lt_prog_compiler_static_CXX=
14276 ;;
14277 interix[3-9]*)
14278 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14279 # Instead, we relocate shared libraries at runtime.
14280 ;;
14281 sysv4*MP*)
14282 if test -d /usr/nec; then
14283 lt_prog_compiler_pic_CXX=-Kconform_pic
14284 fi
14285 ;;
14286 hpux*)
14287 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14288 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14289 # sets the default TLS model and affects inlining.
14290 case $host_cpu in
14291 hppa*64*)
14292 ;;
14293 *)
14294 lt_prog_compiler_pic_CXX='-fPIC'
14295 ;;
14296 esac
14297 ;;
14298 *qnx* | *nto*)
14299 # QNX uses GNU C++, but need to define -shared option too, otherwise
14300 # it will coredump.
14301 lt_prog_compiler_pic_CXX='-fPIC -shared'
14302 ;;
14303 *)
14304 lt_prog_compiler_pic_CXX='-fPIC'
14305 ;;
14306 esac
14307 else
14308 case $host_os in
14309 aix[4-9]*)
14310 # All AIX code is PIC.
14311 if test "$host_cpu" = ia64; then
14312 # AIX 5 now supports IA64 processor
14313 lt_prog_compiler_static_CXX='-Bstatic'
14314 else
14315 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14316 fi
14317 ;;
14318 chorus*)
14319 case $cc_basename in
14320 cxch68*)
14321 # Green Hills C++ Compiler
14322 # _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"
14323 ;;
14324 esac
14325 ;;
14326 dgux*)
14327 case $cc_basename in
14328 ec++*)
14329 lt_prog_compiler_pic_CXX='-KPIC'
14330 ;;
14331 ghcx*)
14332 # Green Hills C++ Compiler
14333 lt_prog_compiler_pic_CXX='-pic'
14334 ;;
14335 *)
14336 ;;
14337 esac
14338 ;;
14339 freebsd* | dragonfly*)
14340 # FreeBSD uses GNU C++
14341 ;;
14342 hpux9* | hpux10* | hpux11*)
14343 case $cc_basename in
14344 CC*)
14345 lt_prog_compiler_wl_CXX='-Wl,'
14346 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14347 if test "$host_cpu" != ia64; then
14348 lt_prog_compiler_pic_CXX='+Z'
14349 fi
14350 ;;
14351 aCC*)
14352 lt_prog_compiler_wl_CXX='-Wl,'
14353 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14354 case $host_cpu in
14355 hppa*64*|ia64*)
14356 # +Z the default
14357 ;;
14358 *)
14359 lt_prog_compiler_pic_CXX='+Z'
14360 ;;
14361 esac
14362 ;;
14363 *)
14364 ;;
14365 esac
14366 ;;
14367 interix*)
14368 # This is c89, which is MS Visual C++ (no shared libs)
14369 # Anyone wants to do a port?
14370 ;;
14371 irix5* | irix6* | nonstopux*)
14372 case $cc_basename in
14373 CC*)
14374 lt_prog_compiler_wl_CXX='-Wl,'
14375 lt_prog_compiler_static_CXX='-non_shared'
14376 # CC pic flag -KPIC is the default.
14377 ;;
14378 *)
14379 ;;
14380 esac
14381 ;;
14382 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14383 case $cc_basename in
14384 KCC*)
14385 # KAI C++ Compiler
14386 lt_prog_compiler_wl_CXX='--backend -Wl,'
14387 lt_prog_compiler_pic_CXX='-fPIC'
14388 ;;
14389 ecpc* )
14390 # old Intel C++ for x86_64 which still supported -KPIC.
14391 lt_prog_compiler_wl_CXX='-Wl,'
14392 lt_prog_compiler_pic_CXX='-KPIC'
14393 lt_prog_compiler_static_CXX='-static'
14394 ;;
14395 icpc* )
14396 # Intel C++, used to be incompatible with GCC.
14397 # ICC 10 doesn't accept -KPIC any more.
14398 lt_prog_compiler_wl_CXX='-Wl,'
14399 lt_prog_compiler_pic_CXX='-fPIC'
14400 lt_prog_compiler_static_CXX='-static'
14401 ;;
14402 pgCC* | pgcpp*)
14403 # Portland Group C++ compiler
14404 lt_prog_compiler_wl_CXX='-Wl,'
14405 lt_prog_compiler_pic_CXX='-fpic'
14406 lt_prog_compiler_static_CXX='-Bstatic'
14407 ;;
14408 cxx*)
14409 # Compaq C++
14410 # Make sure the PIC flag is empty. It appears that all Alpha
14411 # Linux and Compaq Tru64 Unix objects are PIC.
14412 lt_prog_compiler_pic_CXX=
14413 lt_prog_compiler_static_CXX='-non_shared'
14414 ;;
14415 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14416 # IBM XL 8.0, 9.0 on PPC and BlueGene
14417 lt_prog_compiler_wl_CXX='-Wl,'
14418 lt_prog_compiler_pic_CXX='-qpic'
14419 lt_prog_compiler_static_CXX='-qstaticlink'
14420 ;;
14421 *)
14422 case `$CC -V 2>&1 | sed 5q` in
14423 *Sun\ C*)
14424 # Sun C++ 5.9
14425 lt_prog_compiler_pic_CXX='-KPIC'
14426 lt_prog_compiler_static_CXX='-Bstatic'
14427 lt_prog_compiler_wl_CXX='-Qoption ld '
14428 ;;
14429 esac
14430 ;;
14431 esac
14432 ;;
14433 lynxos*)
14434 ;;
14435 m88k*)
14436 ;;
14437 mvs*)
14438 case $cc_basename in
14439 cxx*)
14440 lt_prog_compiler_pic_CXX='-W c,exportall'
14441 ;;
14442 *)
14443 ;;
14444 esac
14445 ;;
14446 netbsd*)
14447 ;;
14448 *qnx* | *nto*)
14449 # QNX uses GNU C++, but need to define -shared option too, otherwise
14450 # it will coredump.
14451 lt_prog_compiler_pic_CXX='-fPIC -shared'
14452 ;;
14453 osf3* | osf4* | osf5*)
14454 case $cc_basename in
14455 KCC*)
14456 lt_prog_compiler_wl_CXX='--backend -Wl,'
14457 ;;
14458 RCC*)
14459 # Rational C++ 2.4.1
14460 lt_prog_compiler_pic_CXX='-pic'
14461 ;;
14462 cxx*)
14463 # Digital/Compaq C++
14464 lt_prog_compiler_wl_CXX='-Wl,'
14465 # Make sure the PIC flag is empty. It appears that all Alpha
14466 # Linux and Compaq Tru64 Unix objects are PIC.
14467 lt_prog_compiler_pic_CXX=
14468 lt_prog_compiler_static_CXX='-non_shared'
14469 ;;
14470 *)
14471 ;;
14472 esac
14473 ;;
14474 psos*)
14475 ;;
14476 solaris*)
14477 case $cc_basename in
14478 CC*)
14479 # Sun C++ 4.2, 5.x and Centerline C++
14480 lt_prog_compiler_pic_CXX='-KPIC'
14481 lt_prog_compiler_static_CXX='-Bstatic'
14482 lt_prog_compiler_wl_CXX='-Qoption ld '
14483 ;;
14484 gcx*)
14485 # Green Hills C++ Compiler
14486 lt_prog_compiler_pic_CXX='-PIC'
14487 ;;
14488 *)
14489 ;;
14490 esac
14491 ;;
14492 sunos4*)
14493 case $cc_basename in
14494 CC*)
14495 # Sun C++ 4.x
14496 lt_prog_compiler_pic_CXX='-pic'
14497 lt_prog_compiler_static_CXX='-Bstatic'
14498 ;;
14499 lcc*)
14500 # Lucid
14501 lt_prog_compiler_pic_CXX='-pic'
14502 ;;
14503 *)
14504 ;;
14505 esac
14506 ;;
14507 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14508 case $cc_basename in
14509 CC*)
14510 lt_prog_compiler_wl_CXX='-Wl,'
14511 lt_prog_compiler_pic_CXX='-KPIC'
14512 lt_prog_compiler_static_CXX='-Bstatic'
14513 ;;
14514 esac
14515 ;;
14516 tandem*)
14517 case $cc_basename in
14518 NCC*)
14519 # NonStop-UX NCC 3.20
14520 lt_prog_compiler_pic_CXX='-KPIC'
14521 ;;
14522 *)
14523 ;;
14524 esac
14525 ;;
14526 vxworks*)
14527 ;;
14528 *)
14529 lt_prog_compiler_can_build_shared_CXX=no
14530 ;;
14531 esac
14532 fi
14533
14534case $host_os in
14535 # For platforms which do not support PIC, -DPIC is meaningless:
14536 *djgpp*)
14537 lt_prog_compiler_pic_CXX=
14538 ;;
14539 *)
14540 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14541 ;;
14542esac
14543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14544$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14545
14546
14547
14548#
14549# Check to make sure the PIC flag actually works.
14550#
14551if test -n "$lt_prog_compiler_pic_CXX"; then
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14553$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22e05272 14554if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
c915a581
JJ
14555 $as_echo_n "(cached) " >&6
14556else
14557 lt_cv_prog_compiler_pic_works_CXX=no
14558 ac_outfile=conftest.$ac_objext
14559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14560 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14561 # Insert the option either (1) after the last *FLAGS variable, or
14562 # (2) before a word containing "conftest.", or (3) at the end.
14563 # Note that $ac_compile itself does not contain backslashes and begins
14564 # with a dollar sign (not a hyphen), so the echo should work correctly.
14565 # The option is referenced via a variable to avoid confusing sed.
14566 lt_compile=`echo "$ac_compile" | $SED \
14567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14569 -e 's:$: $lt_compiler_flag:'`
14570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14571 (eval "$lt_compile" 2>conftest.err)
14572 ac_status=$?
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 if (exit $ac_status) && test -s "$ac_outfile"; then
14576 # The compiler can only warn and ignore the option if not recognized
14577 # So say no if there are warnings other than the usual output.
14578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14580 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14581 lt_cv_prog_compiler_pic_works_CXX=yes
14582 fi
14583 fi
14584 $RM conftest*
14585
14586fi
14587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14588$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14589
14590if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14591 case $lt_prog_compiler_pic_CXX in
14592 "" | " "*) ;;
14593 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14594 esac
14595else
14596 lt_prog_compiler_pic_CXX=
14597 lt_prog_compiler_can_build_shared_CXX=no
14598fi
14599
14600fi
14601
14602
14603
14604#
14605# Check to make sure the static flag actually works.
14606#
14607wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14609$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 14610if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
c915a581
JJ
14611 $as_echo_n "(cached) " >&6
14612else
14613 lt_cv_prog_compiler_static_works_CXX=no
14614 save_LDFLAGS="$LDFLAGS"
14615 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14616 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14617 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14618 # The linker can only warn and ignore the option if not recognized
14619 # So say no if there are warnings
14620 if test -s conftest.err; then
14621 # Append any errors to the config.log.
14622 cat conftest.err 1>&5
14623 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14625 if diff conftest.exp conftest.er2 >/dev/null; then
14626 lt_cv_prog_compiler_static_works_CXX=yes
14627 fi
14628 else
14629 lt_cv_prog_compiler_static_works_CXX=yes
14630 fi
14631 fi
14632 $RM -r conftest*
14633 LDFLAGS="$save_LDFLAGS"
14634
14635fi
14636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14637$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14638
14639if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14640 :
14641else
14642 lt_prog_compiler_static_CXX=
14643fi
14644
14645
14646
14647
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14649$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 14650if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
c915a581
JJ
14651 $as_echo_n "(cached) " >&6
14652else
14653 lt_cv_prog_compiler_c_o_CXX=no
14654 $RM -r conftest 2>/dev/null
14655 mkdir conftest
14656 cd conftest
14657 mkdir out
14658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14659
14660 lt_compiler_flag="-o out/conftest2.$ac_objext"
14661 # Insert the option either (1) after the last *FLAGS variable, or
14662 # (2) before a word containing "conftest.", or (3) at the end.
14663 # Note that $ac_compile itself does not contain backslashes and begins
14664 # with a dollar sign (not a hyphen), so the echo should work correctly.
14665 lt_compile=`echo "$ac_compile" | $SED \
14666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14668 -e 's:$: $lt_compiler_flag:'`
14669 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14670 (eval "$lt_compile" 2>out/conftest.err)
14671 ac_status=$?
14672 cat out/conftest.err >&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14675 then
14676 # The compiler can only warn and ignore the option if not recognized
14677 # So say no if there are warnings
14678 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14679 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14680 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14681 lt_cv_prog_compiler_c_o_CXX=yes
14682 fi
14683 fi
14684 chmod u+w . 2>&5
14685 $RM conftest*
14686 # SGI C++ compiler will create directory out/ii_files/ for
14687 # template instantiation
14688 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14689 $RM out/* && rmdir out
14690 cd ..
14691 $RM -r conftest
14692 $RM conftest*
14693
14694fi
14695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14696$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14697
14698
14699
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14701$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 14702if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
c915a581
JJ
14703 $as_echo_n "(cached) " >&6
14704else
14705 lt_cv_prog_compiler_c_o_CXX=no
14706 $RM -r conftest 2>/dev/null
14707 mkdir conftest
14708 cd conftest
14709 mkdir out
14710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14711
14712 lt_compiler_flag="-o out/conftest2.$ac_objext"
14713 # Insert the option either (1) after the last *FLAGS variable, or
14714 # (2) before a word containing "conftest.", or (3) at the end.
14715 # Note that $ac_compile itself does not contain backslashes and begins
14716 # with a dollar sign (not a hyphen), so the echo should work correctly.
14717 lt_compile=`echo "$ac_compile" | $SED \
14718 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14720 -e 's:$: $lt_compiler_flag:'`
14721 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14722 (eval "$lt_compile" 2>out/conftest.err)
14723 ac_status=$?
14724 cat out/conftest.err >&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14727 then
14728 # The compiler can only warn and ignore the option if not recognized
14729 # So say no if there are warnings
14730 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14731 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14732 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14733 lt_cv_prog_compiler_c_o_CXX=yes
14734 fi
14735 fi
14736 chmod u+w . 2>&5
14737 $RM conftest*
14738 # SGI C++ compiler will create directory out/ii_files/ for
14739 # template instantiation
14740 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14741 $RM out/* && rmdir out
14742 cd ..
14743 $RM -r conftest
14744 $RM conftest*
14745
14746fi
14747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14748$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14749
14750
14751
14752
14753hard_links="nottested"
14754if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14755 # do not overwrite the value of need_locks provided by the user
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14757$as_echo_n "checking if we can lock with hard links... " >&6; }
14758 hard_links=yes
14759 $RM conftest*
14760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14761 touch conftest.a
14762 ln conftest.a conftest.b 2>&5 || hard_links=no
14763 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14765$as_echo "$hard_links" >&6; }
14766 if test "$hard_links" = no; then
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14768$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14769 need_locks=warn
14770 fi
14771else
14772 need_locks=no
14773fi
14774
14775
14776
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14778$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14779
14780 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14781 case $host_os in
14782 aix[4-9]*)
14783 # If we're using GNU nm, then we don't want the "-C" option.
14784 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14785 # Also, AIX nm treats weak defined symbols like other global defined
14786 # symbols, whereas GNU nm marks them as "W".
14787 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14788 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'
14789 else
bf93d543 14790 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
c915a581
JJ
14791 fi
14792 ;;
14793 pw32*)
14794 export_symbols_cmds_CXX="$ltdll_cmds"
14795 ;;
14796 cygwin* | mingw* | cegcc*)
14797 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'
14798 ;;
14799 *)
14800 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14801 ;;
14802 esac
14803 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14804
14805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14806$as_echo "$ld_shlibs_CXX" >&6; }
14807test "$ld_shlibs_CXX" = no && can_build_shared=no
14808
14809with_gnu_ld_CXX=$with_gnu_ld
14810
14811
14812
14813
14814
14815
14816#
14817# Do we need to explicitly link libc?
14818#
14819case "x$archive_cmds_need_lc_CXX" in
14820x|xyes)
14821 # Assume -lc should be added
14822 archive_cmds_need_lc_CXX=yes
14823
14824 if test "$enable_shared" = yes && test "$GCC" = yes; then
14825 case $archive_cmds_CXX in
14826 *'~'*)
14827 # FIXME: we may have to deal with multi-command sequences.
14828 ;;
14829 '$CC '*)
14830 # Test whether the compiler implicitly links with -lc since on some
14831 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14832 # to ld, don't add -lc before -lgcc.
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14834$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 14835if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
c915a581
JJ
14836 $as_echo_n "(cached) " >&6
14837else
14838 $RM conftest*
14839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14840
14841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14842 (eval $ac_compile) 2>&5
14843 ac_status=$?
14844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14845 test $ac_status = 0; } 2>conftest.err; then
14846 soname=conftest
14847 lib=conftest
14848 libobjs=conftest.$ac_objext
14849 deplibs=
14850 wl=$lt_prog_compiler_wl_CXX
14851 pic_flag=$lt_prog_compiler_pic_CXX
14852 compiler_flags=-v
14853 linker_flags=-v
14854 verstring=
14855 output_objdir=.
14856 libname=conftest
14857 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14858 allow_undefined_flag_CXX=
14859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14860 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14861 ac_status=$?
14862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14863 test $ac_status = 0; }
14864 then
14865 lt_cv_archive_cmds_need_lc_CXX=no
14866 else
14867 lt_cv_archive_cmds_need_lc_CXX=yes
14868 fi
14869 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14870 else
14871 cat conftest.err 1>&5
14872 fi
14873 $RM conftest*
14874
14875fi
14876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14877$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14878 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14879 ;;
14880 esac
14881 fi
14882 ;;
14883esac
14884
f35db108 14885
c915a581
JJ
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14949$as_echo_n "checking dynamic linker characteristics... " >&6; }
14950
14951library_names_spec=
14952libname_spec='lib$name'
14953soname_spec=
14954shrext_cmds=".so"
14955postinstall_cmds=
14956postuninstall_cmds=
14957finish_cmds=
14958finish_eval=
14959shlibpath_var=
14960shlibpath_overrides_runpath=unknown
14961version_type=none
14962dynamic_linker="$host_os ld.so"
14963sys_lib_dlsearch_path_spec="/lib /usr/lib"
14964need_lib_prefix=unknown
14965hardcode_into_libs=no
14966
14967# when you set need_version to no, make sure it does not cause -set_version
14968# flags to be left without arguments
14969need_version=unknown
14970
14971case $host_os in
14972aix3*)
14973 version_type=linux
14974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14975 shlibpath_var=LIBPATH
14976
14977 # AIX 3 has no versioning support, so we append a major version to the name.
14978 soname_spec='${libname}${release}${shared_ext}$major'
14979 ;;
14980
14981aix[4-9]*)
14982 version_type=linux
14983 need_lib_prefix=no
14984 need_version=no
14985 hardcode_into_libs=yes
14986 if test "$host_cpu" = ia64; then
14987 # AIX 5 supports IA64
14988 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14989 shlibpath_var=LD_LIBRARY_PATH
14990 else
14991 # With GCC up to 2.95.x, collect2 would create an import file
14992 # for dependence libraries. The import file would start with
14993 # the line `#! .'. This would cause the generated library to
14994 # depend on `.', always an invalid library. This was fixed in
14995 # development snapshots of GCC prior to 3.0.
14996 case $host_os in
14997 aix4 | aix4.[01] | aix4.[01].*)
14998 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14999 echo ' yes '
15000 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15001 :
15002 else
15003 can_build_shared=no
f35db108
WM
15004 fi
15005 ;;
c915a581
JJ
15006 esac
15007 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15008 # soname into executable. Probably we can add versioning support to
15009 # collect2, so additional links can be useful in future.
15010 if test "$aix_use_runtimelinking" = yes; then
15011 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15012 # instead of lib<name>.a to let people know that these are not
15013 # typical AIX shared libraries.
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015 else
15016 # We preserve .a as extension for shared libraries through AIX4.2
15017 # and later when we are not doing run time linking.
15018 library_names_spec='${libname}${release}.a $libname.a'
15019 soname_spec='${libname}${release}${shared_ext}$major'
15020 fi
15021 shlibpath_var=LIBPATH
15022 fi
15023 ;;
15024
15025amigaos*)
15026 case $host_cpu in
15027 powerpc)
15028 # Since July 2007 AmigaOS4 officially supports .so libraries.
15029 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15031 ;;
15032 m68k)
15033 library_names_spec='$libname.ixlibrary $libname.a'
15034 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15035 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'
15036 ;;
15037 esac
15038 ;;
15039
15040beos*)
15041 library_names_spec='${libname}${shared_ext}'
15042 dynamic_linker="$host_os ld.so"
15043 shlibpath_var=LIBRARY_PATH
15044 ;;
15045
15046bsdi[45]*)
15047 version_type=linux
15048 need_version=no
15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15050 soname_spec='${libname}${release}${shared_ext}$major'
15051 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15052 shlibpath_var=LD_LIBRARY_PATH
15053 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15054 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15055 # the default ld.so.conf also contains /usr/contrib/lib and
15056 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15057 # libtool to hard-code these into programs
15058 ;;
15059
15060cygwin* | mingw* | pw32* | cegcc*)
15061 version_type=windows
15062 shrext_cmds=".dll"
15063 need_version=no
15064 need_lib_prefix=no
15065
15066 case $GCC,$host_os in
15067 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15068 library_names_spec='$libname.dll.a'
15069 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15070 postinstall_cmds='base_file=`basename \${file}`~
15071 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15072 dldir=$destdir/`dirname \$dlpath`~
15073 test -d \$dldir || mkdir -p \$dldir~
15074 $install_prog $dir/$dlname \$dldir/$dlname~
15075 chmod a+x \$dldir/$dlname~
15076 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15077 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15078 fi'
15079 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15080 dlpath=$dir/\$dldll~
15081 $RM \$dlpath'
15082 shlibpath_overrides_runpath=yes
15083
15084 case $host_os in
15085 cygwin*)
15086 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15087 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15088
f35db108 15089 ;;
c915a581
JJ
15090 mingw* | cegcc*)
15091 # MinGW DLLs use traditional 'lib' prefix
15092 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
f35db108 15093 ;;
c915a581
JJ
15094 pw32*)
15095 # pw32 DLLs use 'pw' prefix rather than 'lib'
15096 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
f35db108
WM
15097 ;;
15098 esac
c915a581
JJ
15099 ;;
15100
15101 *)
15102 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15103 ;;
15104 esac
15105 dynamic_linker='Win32 ld.exe'
15106 # FIXME: first we should search . and the directory the executable is in
15107 shlibpath_var=PATH
15108 ;;
15109
15110darwin* | rhapsody*)
15111 dynamic_linker="$host_os dyld"
15112 version_type=darwin
15113 need_lib_prefix=no
15114 need_version=no
15115 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15116 soname_spec='${libname}${release}${major}$shared_ext'
15117 shlibpath_overrides_runpath=yes
15118 shlibpath_var=DYLD_LIBRARY_PATH
15119 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15120
15121 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15122 ;;
15123
15124dgux*)
15125 version_type=linux
15126 need_lib_prefix=no
15127 need_version=no
15128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15129 soname_spec='${libname}${release}${shared_ext}$major'
15130 shlibpath_var=LD_LIBRARY_PATH
15131 ;;
15132
15133freebsd* | dragonfly*)
15134 # DragonFly does not have aout. When/if they implement a new
15135 # versioning mechanism, adjust this.
15136 if test -x /usr/bin/objformat; then
15137 objformat=`/usr/bin/objformat`
15138 else
15139 case $host_os in
15140 freebsd[23].*) objformat=aout ;;
15141 *) objformat=elf ;;
f35db108
WM
15142 esac
15143 fi
c915a581
JJ
15144 version_type=freebsd-$objformat
15145 case $version_type in
15146 freebsd-elf*)
15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15148 need_version=no
15149 need_lib_prefix=no
15150 ;;
15151 freebsd-*)
15152 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15153 need_version=yes
15154 ;;
15155 esac
15156 shlibpath_var=LD_LIBRARY_PATH
15157 case $host_os in
15158 freebsd2.*)
15159 shlibpath_overrides_runpath=yes
15160 ;;
15161 freebsd3.[01]* | freebsdelf3.[01]*)
15162 shlibpath_overrides_runpath=yes
15163 hardcode_into_libs=yes
15164 ;;
15165 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15166 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15167 shlibpath_overrides_runpath=no
15168 hardcode_into_libs=yes
15169 ;;
15170 *) # from 4.6 on, and DragonFly
15171 shlibpath_overrides_runpath=yes
15172 hardcode_into_libs=yes
15173 ;;
15174 esac
15175 ;;
f35db108 15176
c915a581
JJ
15177gnu*)
15178 version_type=linux
15179 need_lib_prefix=no
15180 need_version=no
15181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15182 soname_spec='${libname}${release}${shared_ext}$major'
15183 shlibpath_var=LD_LIBRARY_PATH
15184 hardcode_into_libs=yes
15185 ;;
15186
15187haiku*)
15188 version_type=linux
15189 need_lib_prefix=no
15190 need_version=no
15191 dynamic_linker="$host_os runtime_loader"
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15193 soname_spec='${libname}${release}${shared_ext}$major'
15194 shlibpath_var=LIBRARY_PATH
15195 shlibpath_overrides_runpath=yes
15196 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15197 hardcode_into_libs=yes
15198 ;;
15199
15200hpux9* | hpux10* | hpux11*)
15201 # Give a soname corresponding to the major version so that dld.sl refuses to
15202 # link against other versions.
15203 version_type=sunos
15204 need_lib_prefix=no
15205 need_version=no
15206 case $host_cpu in
15207 ia64*)
15208 shrext_cmds='.so'
15209 hardcode_into_libs=yes
15210 dynamic_linker="$host_os dld.so"
15211 shlibpath_var=LD_LIBRARY_PATH
15212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 if test "X$HPUX_IA64_MODE" = X32; then
15216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15217 else
15218 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15219 fi
15220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15221 ;;
15222 hppa*64*)
15223 shrext_cmds='.sl'
15224 hardcode_into_libs=yes
15225 dynamic_linker="$host_os dld.sl"
15226 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15229 soname_spec='${libname}${release}${shared_ext}$major'
15230 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
f35db108
WM
15232 ;;
15233 *)
c915a581
JJ
15234 shrext_cmds='.sl'
15235 dynamic_linker="$host_os dld.sl"
15236 shlibpath_var=SHLIB_PATH
15237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15239 soname_spec='${libname}${release}${shared_ext}$major'
f35db108 15240 ;;
c915a581
JJ
15241 esac
15242 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15243 postinstall_cmds='chmod 555 $lib'
15244 # or fails outright, so override atomically:
15245 install_override_mode=555
15246 ;;
a2479b3d 15247
c915a581
JJ
15248interix[3-9]*)
15249 version_type=linux
15250 need_lib_prefix=no
15251 need_version=no
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15253 soname_spec='${libname}${release}${shared_ext}$major'
15254 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15255 shlibpath_var=LD_LIBRARY_PATH
15256 shlibpath_overrides_runpath=no
15257 hardcode_into_libs=yes
15258 ;;
f35db108 15259
c915a581
JJ
15260irix5* | irix6* | nonstopux*)
15261 case $host_os in
15262 nonstopux*) version_type=nonstopux ;;
15263 *)
15264 if test "$lt_cv_prog_gnu_ld" = yes; then
15265 version_type=linux
15266 else
15267 version_type=irix
15268 fi ;;
15269 esac
15270 need_lib_prefix=no
15271 need_version=no
15272 soname_spec='${libname}${release}${shared_ext}$major'
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15274 case $host_os in
15275 irix5* | nonstopux*)
15276 libsuff= shlibsuff=
15277 ;;
15278 *)
15279 case $LD in # libtool.m4 will add one of these switches to LD
15280 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15281 libsuff= shlibsuff= libmagic=32-bit;;
15282 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15283 libsuff=32 shlibsuff=N32 libmagic=N32;;
15284 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15285 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15286 *) libsuff= shlibsuff= libmagic=never-match;;
15287 esac
15288 ;;
15289 esac
15290 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15291 shlibpath_overrides_runpath=no
15292 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15293 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15294 hardcode_into_libs=yes
15295 ;;
f35db108 15296
c915a581
JJ
15297# No shared lib support for Linux oldld, aout, or coff.
15298linux*oldld* | linux*aout* | linux*coff*)
15299 dynamic_linker=no
15300 ;;
15301
15302# This must be Linux ELF.
15303linux* | k*bsd*-gnu | kopensolaris*-gnu)
15304 version_type=linux
15305 need_lib_prefix=no
15306 need_version=no
15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15308 soname_spec='${libname}${release}${shared_ext}$major'
15309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15310 shlibpath_var=LD_LIBRARY_PATH
15311 shlibpath_overrides_runpath=no
15312
15313 # Some binutils ld are patched to set DT_RUNPATH
22e05272 15314 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
f35db108
WM
15315 $as_echo_n "(cached) " >&6
15316else
c915a581
JJ
15317 lt_cv_shlibpath_overrides_runpath=no
15318 save_LDFLAGS=$LDFLAGS
15319 save_libdir=$libdir
15320 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15321 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15323/* end confdefs.h. */
15324
15325int
15326main ()
15327{
f35db108 15328
c915a581
JJ
15329 ;
15330 return 0;
15331}
15332_ACEOF
15333if ac_fn_cxx_try_link "$LINENO"; then :
15334 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15335 lt_cv_shlibpath_overrides_runpath=yes
15336fi
f35db108 15337fi
c915a581
JJ
15338rm -f core conftest.err conftest.$ac_objext \
15339 conftest$ac_exeext conftest.$ac_ext
15340 LDFLAGS=$save_LDFLAGS
15341 libdir=$save_libdir
f35db108 15342
f35db108
WM
15343fi
15344
c915a581 15345 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
f35db108 15346
c915a581
JJ
15347 # This implies no fast_install, which is unacceptable.
15348 # Some rework will be needed to allow for fast_install
15349 # before this can be enabled.
15350 hardcode_into_libs=yes
f35db108 15351
c915a581
JJ
15352 # Append ld.so.conf contents to the search path
15353 if test -f /etc/ld.so.conf; then
15354 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' ' '`
15355 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15356 fi
f35db108 15357
c915a581
JJ
15358 # We used to test for /lib/ld.so.1 and disable shared libraries on
15359 # powerpc, because MkLinux only supported shared libraries with the
15360 # GNU dynamic linker. Since this was broken with cross compilers,
15361 # most powerpc-linux boxes support dynamic linking these days and
15362 # people can always --disable-shared, the test was removed, and we
15363 # assume the GNU/Linux dynamic linker is in use.
15364 dynamic_linker='GNU/Linux ld.so'
15365 ;;
f35db108 15366
c915a581
JJ
15367netbsd*)
15368 version_type=sunos
15369 need_lib_prefix=no
15370 need_version=no
15371 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15374 dynamic_linker='NetBSD (a.out) ld.so'
15375 else
15376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15377 soname_spec='${libname}${release}${shared_ext}$major'
15378 dynamic_linker='NetBSD ld.elf_so'
15379 fi
15380 shlibpath_var=LD_LIBRARY_PATH
15381 shlibpath_overrides_runpath=yes
15382 hardcode_into_libs=yes
15383 ;;
f35db108 15384
c915a581
JJ
15385newsos6)
15386 version_type=linux
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15388 shlibpath_var=LD_LIBRARY_PATH
15389 shlibpath_overrides_runpath=yes
15390 ;;
15391
15392*nto* | *qnx*)
15393 version_type=qnx
15394 need_lib_prefix=no
15395 need_version=no
15396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15397 soname_spec='${libname}${release}${shared_ext}$major'
15398 shlibpath_var=LD_LIBRARY_PATH
15399 shlibpath_overrides_runpath=no
15400 hardcode_into_libs=yes
15401 dynamic_linker='ldqnx.so'
15402 ;;
15403
15404openbsd*)
15405 version_type=sunos
15406 sys_lib_dlsearch_path_spec="/usr/lib"
15407 need_lib_prefix=no
15408 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15409 case $host_os in
15410 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15411 *) need_version=no ;;
15412 esac
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15415 shlibpath_var=LD_LIBRARY_PATH
15416 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15417 case $host_os in
15418 openbsd2.[89] | openbsd2.[89].*)
15419 shlibpath_overrides_runpath=no
15420 ;;
15421 *)
15422 shlibpath_overrides_runpath=yes
15423 ;;
15424 esac
15425 else
15426 shlibpath_overrides_runpath=yes
15427 fi
15428 ;;
f35db108 15429
c915a581
JJ
15430os2*)
15431 libname_spec='$name'
15432 shrext_cmds=".dll"
15433 need_lib_prefix=no
15434 library_names_spec='$libname${shared_ext} $libname.a'
15435 dynamic_linker='OS/2 ld.exe'
15436 shlibpath_var=LIBPATH
15437 ;;
f35db108 15438
c915a581
JJ
15439osf3* | osf4* | osf5*)
15440 version_type=osf
15441 need_lib_prefix=no
15442 need_version=no
15443 soname_spec='${libname}${release}${shared_ext}$major'
15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15445 shlibpath_var=LD_LIBRARY_PATH
15446 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15447 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15448 ;;
f35db108 15449
c915a581
JJ
15450rdos*)
15451 dynamic_linker=no
15452 ;;
f35db108 15453
c915a581
JJ
15454solaris*)
15455 version_type=linux
15456 need_lib_prefix=no
15457 need_version=no
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459 soname_spec='${libname}${release}${shared_ext}$major'
15460 shlibpath_var=LD_LIBRARY_PATH
15461 shlibpath_overrides_runpath=yes
15462 hardcode_into_libs=yes
15463 # ldd complains unless libraries are executable
15464 postinstall_cmds='chmod +x $lib'
15465 ;;
f35db108 15466
c915a581
JJ
15467sunos4*)
15468 version_type=sunos
15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15470 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15471 shlibpath_var=LD_LIBRARY_PATH
15472 shlibpath_overrides_runpath=yes
15473 if test "$with_gnu_ld" = yes; then
15474 need_lib_prefix=no
15475 fi
15476 need_version=yes
15477 ;;
f35db108 15478
c915a581
JJ
15479sysv4 | sysv4.3*)
15480 version_type=linux
15481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15482 soname_spec='${libname}${release}${shared_ext}$major'
15483 shlibpath_var=LD_LIBRARY_PATH
15484 case $host_vendor in
15485 sni)
15486 shlibpath_overrides_runpath=no
15487 need_lib_prefix=no
15488 runpath_var=LD_RUN_PATH
15489 ;;
15490 siemens)
15491 need_lib_prefix=no
15492 ;;
15493 motorola)
15494 need_lib_prefix=no
15495 need_version=no
15496 shlibpath_overrides_runpath=no
15497 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15498 ;;
15499 esac
15500 ;;
15501
15502sysv4*MP*)
15503 if test -d /usr/nec ;then
15504 version_type=linux
15505 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15506 soname_spec='$libname${shared_ext}.$major'
15507 shlibpath_var=LD_LIBRARY_PATH
15508 fi
15509 ;;
f35db108 15510
c915a581
JJ
15511sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15512 version_type=freebsd-elf
15513 need_lib_prefix=no
15514 need_version=no
15515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15516 soname_spec='${libname}${release}${shared_ext}$major'
15517 shlibpath_var=LD_LIBRARY_PATH
15518 shlibpath_overrides_runpath=yes
15519 hardcode_into_libs=yes
15520 if test "$with_gnu_ld" = yes; then
15521 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15522 else
15523 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15524 case $host_os in
15525 sco3.2v5*)
15526 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15527 ;;
15528 esac
15529 fi
15530 sys_lib_dlsearch_path_spec='/usr/lib'
15531 ;;
f35db108 15532
c915a581
JJ
15533tpf*)
15534 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15535 version_type=linux
15536 need_lib_prefix=no
15537 need_version=no
15538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15539 shlibpath_var=LD_LIBRARY_PATH
15540 shlibpath_overrides_runpath=no
15541 hardcode_into_libs=yes
15542 ;;
f35db108 15543
c915a581
JJ
15544uts4*)
15545 version_type=linux
15546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15547 soname_spec='${libname}${release}${shared_ext}$major'
15548 shlibpath_var=LD_LIBRARY_PATH
15549 ;;
f35db108 15550
c915a581
JJ
15551*)
15552 dynamic_linker=no
15553 ;;
15554esac
15555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15556$as_echo "$dynamic_linker" >&6; }
15557test "$dynamic_linker" = no && can_build_shared=no
f35db108 15558
c915a581
JJ
15559variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15560if test "$GCC" = yes; then
15561 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
f35db108 15562fi
f35db108 15563
c915a581
JJ
15564if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15565 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15566fi
15567if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15568 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15569fi
f35db108
WM
15570
15571
f35db108
WM
15572
15573
15574
f35db108 15575
f35db108 15576
f35db108 15577
f35db108
WM
15578
15579
15580
15581
15582
15583
f35db108 15584
f35db108 15585
f35db108 15586
f35db108
WM
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
c915a581
JJ
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15609$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15610hardcode_action_CXX=
15611if test -n "$hardcode_libdir_flag_spec_CXX" ||
15612 test -n "$runpath_var_CXX" ||
15613 test "X$hardcode_automatic_CXX" = "Xyes" ; then
f35db108 15614
c915a581
JJ
15615 # We can hardcode non-existent directories.
15616 if test "$hardcode_direct_CXX" != no &&
15617 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15618 # have to relink, otherwise we might link with an installed library
15619 # when we should be linking with a yet-to-be-installed one
15620 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15621 test "$hardcode_minus_L_CXX" != no; then
15622 # Linking always hardcodes the temporary library directory.
15623 hardcode_action_CXX=relink
15624 else
15625 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15626 hardcode_action_CXX=immediate
15627 fi
15628else
15629 # We cannot hardcode anything, or else we can only hardcode existing
15630 # directories.
15631 hardcode_action_CXX=unsupported
15632fi
15633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15634$as_echo "$hardcode_action_CXX" >&6; }
f35db108 15635
c915a581
JJ
15636if test "$hardcode_action_CXX" = relink ||
15637 test "$inherit_rpath_CXX" = yes; then
15638 # Fast installation is not supported
15639 enable_fast_install=no
15640elif test "$shlibpath_overrides_runpath" = yes ||
15641 test "$enable_shared" = no; then
15642 # Fast installation is not necessary
15643 enable_fast_install=needless
15644fi
f35db108
WM
15645
15646
15647
15648
15649
15650
15651
c915a581 15652 fi # test -n "$compiler"
f35db108 15653
c915a581
JJ
15654 CC=$lt_save_CC
15655 LDCXX=$LD
15656 LD=$lt_save_LD
15657 GCC=$lt_save_GCC
15658 with_gnu_ld=$lt_save_with_gnu_ld
15659 lt_cv_path_LDCXX=$lt_cv_path_LD
15660 lt_cv_path_LD=$lt_save_path_LD
15661 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15662 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15663fi # test "$_lt_caught_CXX_error" != yes
f35db108 15664
c915a581
JJ
15665ac_ext=c
15666ac_cpp='$CPP $CPPFLAGS'
15667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15669ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108
WM
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
c915a581 15683 ac_config_commands="$ac_config_commands libtool"
f35db108
WM
15684
15685
15686
15687
c915a581 15688# Only expand once:
f35db108
WM
15689
15690
15691
c915a581
JJ
15692for ac_prog in gawk mawk nawk awk
15693do
15694 # Extract the first word of "$ac_prog", so it can be a program name with args.
15695set dummy $ac_prog; ac_word=$2
15696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15697$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15698if ${ac_cv_prog_AWK+:} false; then :
c915a581
JJ
15699 $as_echo_n "(cached) " >&6
15700else
15701 if test -n "$AWK"; then
15702 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15703else
15704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15705for as_dir in $PATH
15706do
15707 IFS=$as_save_IFS
15708 test -z "$as_dir" && as_dir=.
15709 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
15711 ac_cv_prog_AWK="$ac_prog"
15712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15713 break 2
15714 fi
15715done
15716 done
15717IFS=$as_save_IFS
f35db108 15718
c915a581
JJ
15719fi
15720fi
15721AWK=$ac_cv_prog_AWK
15722if test -n "$AWK"; then
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15724$as_echo "$AWK" >&6; }
15725else
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15727$as_echo "no" >&6; }
15728fi
f35db108
WM
15729
15730
c915a581
JJ
15731 test -n "$AWK" && break
15732done
f35db108 15733
c915a581 15734case "$AWK" in
22e05272 15735"") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
c915a581 15736esac
f35db108
WM
15737
15738
15739
a2479b3d 15740
c915a581
JJ
15741# The cast to long int works around a bug in the HP C Compiler
15742# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15743# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15744# This bug is HP SR number 8606223364.
15745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15746$as_echo_n "checking size of void *... " >&6; }
22e05272 15747if ${ac_cv_sizeof_void_p+:} false; then :
c915a581
JJ
15748 $as_echo_n "(cached) " >&6
15749else
15750 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
a2479b3d 15751
c915a581
JJ
15752else
15753 if test "$ac_cv_type_void_p" = yes; then
15754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
15756as_fn_error 77 "cannot compute sizeof (void *)
15757See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
15758 else
15759 ac_cv_sizeof_void_p=0
15760 fi
15761fi
f35db108 15762
c915a581
JJ
15763fi
15764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15765$as_echo "$ac_cv_sizeof_void_p" >&6; }
f35db108
WM
15766
15767
f35db108 15768
c915a581
JJ
15769cat >>confdefs.h <<_ACEOF
15770#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15771_ACEOF
f35db108 15772
f35db108 15773
f35db108 15774
c915a581
JJ
15775if test "${multilib}" = "yes"; then
15776 multilib_arg="--enable-multilib"
15777else
15778 multilib_arg=
15779fi
f35db108 15780
c915a581
JJ
15781# Get target configury.
15782unset TSAN_SUPPORTED
15783unset LSAN_SUPPORTED
15784. ${srcdir}/configure.tgt
15785 if test "x$TSAN_SUPPORTED" = "xyes"; then
15786 TSAN_SUPPORTED_TRUE=
15787 TSAN_SUPPORTED_FALSE='#'
15788else
15789 TSAN_SUPPORTED_TRUE='#'
15790 TSAN_SUPPORTED_FALSE=
15791fi
f35db108 15792
c915a581
JJ
15793 if test "x$LSAN_SUPPORTED" = "xyes"; then
15794 LSAN_SUPPORTED_TRUE=
15795 LSAN_SUPPORTED_FALSE='#'
15796else
15797 LSAN_SUPPORTED_TRUE='#'
15798 LSAN_SUPPORTED_FALSE=
15799fi
f35db108 15800
f35db108 15801
c915a581 15802# Check for functions needed.
3b07c0e5 15803for ac_func in clock_getres clock_gettime clock_settime lstat readlink
c915a581
JJ
15804do :
15805 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15806ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 15807if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
c915a581
JJ
15808 cat >>confdefs.h <<_ACEOF
15809#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15810_ACEOF
f35db108 15811
c915a581
JJ
15812fi
15813done
f35db108 15814
f35db108 15815
c915a581 15816# Common libraries that we need to link against for all sanitizer libs.
bf93d543 15817link_sanitizer_common='-lpthread -lm'
692b1131
MO
15818
15819# At least for glibc, shm_open is in librt. But don't pull that
15820# in if it still doesn't give us the function we want. This
15821# test is copied from libgomp.
15822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
15823$as_echo_n "checking for shm_open in -lrt... " >&6; }
22e05272 15824if ${ac_cv_lib_rt_shm_open+:} false; then :
692b1131
MO
15825 $as_echo_n "(cached) " >&6
15826else
15827 ac_check_lib_save_LIBS=$LIBS
15828LIBS="-lrt $LIBS"
15829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15830/* end confdefs.h. */
15831
15832/* Override any GCC internal prototype to avoid an error.
15833 Use char because int might match the return type of a GCC
15834 builtin and then its argument prototype would still apply. */
15835#ifdef __cplusplus
15836extern "C"
15837#endif
15838char shm_open ();
15839int
15840main ()
15841{
15842return shm_open ();
15843 ;
15844 return 0;
15845}
15846_ACEOF
15847if ac_fn_c_try_link "$LINENO"; then :
15848 ac_cv_lib_rt_shm_open=yes
15849else
15850 ac_cv_lib_rt_shm_open=no
15851fi
15852rm -f core conftest.err conftest.$ac_objext \
15853 conftest$ac_exeext conftest.$ac_ext
15854LIBS=$ac_check_lib_save_LIBS
15855fi
15856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
15857$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
22e05272 15858if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
692b1131
MO
15859 link_sanitizer_common="-lrt $link_sanitizer_common"
15860fi
15861
f35db108 15862
bf93d543
AT
15863# Do a configure time check for -ldl
15864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15865$as_echo_n "checking for dlsym in -ldl... " >&6; }
22e05272 15866if ${ac_cv_lib_dl_dlsym+:} false; then :
bf93d543
AT
15867 $as_echo_n "(cached) " >&6
15868else
15869 ac_check_lib_save_LIBS=$LIBS
15870LIBS="-ldl $LIBS"
15871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15872/* end confdefs.h. */
15873
15874/* Override any GCC internal prototype to avoid an error.
15875 Use char because int might match the return type of a GCC
15876 builtin and then its argument prototype would still apply. */
15877#ifdef __cplusplus
15878extern "C"
15879#endif
15880char dlsym ();
15881int
15882main ()
15883{
15884return dlsym ();
15885 ;
15886 return 0;
15887}
15888_ACEOF
15889if ac_fn_c_try_link "$LINENO"; then :
15890 ac_cv_lib_dl_dlsym=yes
15891else
15892 ac_cv_lib_dl_dlsym=no
15893fi
15894rm -f core conftest.err conftest.$ac_objext \
15895 conftest$ac_exeext conftest.$ac_ext
15896LIBS=$ac_check_lib_save_LIBS
15897fi
15898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15899$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
22e05272 15900if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
bf93d543
AT
15901 link_sanitizer_common="-ldl $link_sanitizer_common"
15902fi
15903
15904
c915a581
JJ
15905# Set up the set of additional libraries that we need to link against for libasan.
15906link_libasan=$link_sanitizer_common
f35db108 15907
f35db108 15908
c915a581
JJ
15909# Set up the set of additional libraries that we need to link against for libtsan.
15910link_libtsan=$link_sanitizer_common
f35db108 15911
f35db108 15912
c915a581
JJ
15913# Set up the set of additional libraries that we need to link against for libubsan.
15914link_libubsan=$link_sanitizer_common
f35db108 15915
f35db108 15916
c915a581
JJ
15917# Set up the set of additional libraries that we need to link against for liblsan.
15918link_liblsan=$link_sanitizer_common
f35db108 15919
f35db108 15920
692b1131
MO
15921
15922# At least for glibc, clock_gettime is in librt. But don't pull that
15923# in if it still doesn't give us the function we want. This
15924# test is copied from libgomp.
15925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15926$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22e05272 15927if ${ac_cv_lib_rt_clock_gettime+:} false; then :
692b1131
MO
15928 $as_echo_n "(cached) " >&6
15929else
15930 ac_check_lib_save_LIBS=$LIBS
15931LIBS="-lrt $LIBS"
15932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15933/* end confdefs.h. */
15934
15935/* Override any GCC internal prototype to avoid an error.
15936 Use char because int might match the return type of a GCC
15937 builtin and then its argument prototype would still apply. */
15938#ifdef __cplusplus
15939extern "C"
15940#endif
15941char clock_gettime ();
15942int
15943main ()
15944{
15945return clock_gettime ();
15946 ;
15947 return 0;
15948}
15949_ACEOF
15950if ac_fn_c_try_link "$LINENO"; then :
15951 ac_cv_lib_rt_clock_gettime=yes
15952else
15953 ac_cv_lib_rt_clock_gettime=no
15954fi
15955rm -f core conftest.err conftest.$ac_objext \
15956 conftest$ac_exeext conftest.$ac_ext
15957LIBS=$ac_check_lib_save_LIBS
15958fi
15959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15960$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22e05272 15961if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
692b1131
MO
15962 link_libasan="-lrt $link_libasan"
15963link_libtsan="-lrt $link_libtsan"
15964# Other sanitizers do not override clock_* API
15965
15966fi
15967
15968
c915a581 15969case "$host" in
692b1131
MO
15970 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
15971 *) MAC_INTERPOSE=false ;;
c915a581
JJ
15972esac
15973 if $MAC_INTERPOSE; then
15974 USING_MAC_INTERPOSE_TRUE=
15975 USING_MAC_INTERPOSE_FALSE='#'
15976else
15977 USING_MAC_INTERPOSE_TRUE='#'
15978 USING_MAC_INTERPOSE_FALSE=
15979fi
f35db108 15980
c915a581
JJ
15981
15982backtrace_supported=yes
15983
4a7eaf5f
YG
15984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
15985$as_echo_n "checking for necessary platform features... " >&6; }
15986case "$target" in
15987 *-*-linux*)
15988 # Some old Linux distributions miss required syscalls.
15989 sanitizer_supported=no
15990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15991/* end confdefs.h. */
15992#include <sys/syscall.h>
15993int
15994main ()
15995{
15996
15997 syscall (__NR_gettid);
15998 syscall (__NR_futex);
15999 syscall (__NR_exit_group);
16000
16001 ;
16002 return 0;
16003}
16004_ACEOF
16005if ac_fn_c_try_compile "$LINENO"; then :
16006 sanitizer_supported=yes
16007fi
16008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16009 ;;
16010 *)
16011 sanitizer_supported=yes
16012 ;;
16013esac
16014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
16015$as_echo "$sanitizer_supported" >&6; }
16016 if test "$sanitizer_supported" = yes; then
16017 SANITIZER_SUPPORTED_TRUE=
16018 SANITIZER_SUPPORTED_FALSE='#'
16019else
16020 SANITIZER_SUPPORTED_TRUE='#'
16021 SANITIZER_SUPPORTED_FALSE=
16022fi
16023
16024
c915a581
JJ
16025# Test for __sync support.
16026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
16027$as_echo_n "checking __sync extensions... " >&6; }
22e05272 16028if ${libsanitizer_cv_sys_sync+:} false; then :
f35db108
WM
16029 $as_echo_n "(cached) " >&6
16030else
c915a581
JJ
16031 if test -n "${with_target_subdir}"; then
16032 libsanitizer_cv_sys_sync=yes
16033 else
16034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108 16035/* end confdefs.h. */
c915a581 16036int i;
f35db108
WM
16037int
16038main ()
16039{
c915a581
JJ
16040__sync_bool_compare_and_swap (&i, i, i);
16041 __sync_lock_test_and_set (&i, 1);
16042 __sync_lock_release (&i);
f35db108
WM
16043 ;
16044 return 0;
16045}
16046_ACEOF
c915a581
JJ
16047if ac_fn_c_try_link "$LINENO"; then :
16048 libsanitizer_cv_sys_sync=yes
16049else
16050 libsanitizer_cv_sys_sync=no
f35db108
WM
16051fi
16052rm -f core conftest.err conftest.$ac_objext \
16053 conftest$ac_exeext conftest.$ac_ext
c915a581 16054 fi
f35db108 16055fi
c915a581
JJ
16056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
16057$as_echo "$libsanitizer_cv_sys_sync" >&6; }
16058if test "$libsanitizer_cv_sys_sync" = "yes"; then
f35db108 16059
c915a581 16060$as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
f35db108 16061
f35db108
WM
16062fi
16063
c915a581
JJ
16064# Test for __atomic support.
16065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
16066$as_echo_n "checking __atomic extensions... " >&6; }
22e05272 16067if ${libsanitizer_cv_sys_atomic+:} false; then :
c915a581
JJ
16068 $as_echo_n "(cached) " >&6
16069else
16070 if test -n "${with_target_subdir}"; then
16071 libsanitizer_cv_sys_atomic=yes
16072 else
16073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16074/* end confdefs.h. */
16075int i;
16076int
16077main ()
16078{
16079__atomic_load_n (&i, __ATOMIC_ACQUIRE);
16080 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
16081 ;
16082 return 0;
16083}
16084_ACEOF
16085if ac_fn_c_try_link "$LINENO"; then :
16086 libsanitizer_cv_sys_atomic=yes
16087else
16088 libsanitizer_cv_sys_atomic=no
f35db108 16089fi
c915a581
JJ
16090rm -f core conftest.err conftest.$ac_objext \
16091 conftest$ac_exeext conftest.$ac_ext
16092 fi
f35db108 16093fi
c915a581
JJ
16094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
16095$as_echo "$libsanitizer_cv_sys_atomic" >&6; }
16096if test "$libsanitizer_cv_sys_atomic" = "yes"; then
f35db108 16097
c915a581 16098$as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
f35db108 16099
c915a581 16100fi
f35db108 16101
c915a581
JJ
16102# The library needs to be able to read the executable itself. Compile
16103# a file to determine the executable format. The awk script
16104# filetype.awk prints out the file type.
16105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
16106$as_echo_n "checking output filetype... " >&6; }
22e05272 16107if ${libsanitizer_cv_sys_filetype+:} false; then :
c915a581
JJ
16108 $as_echo_n "(cached) " >&6
16109else
16110 filetype=
16111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16112/* end confdefs.h. */
16113int i;
16114int
16115main ()
16116{
16117int j;
16118 ;
16119 return 0;
16120}
16121_ACEOF
16122if ac_fn_c_try_compile "$LINENO"; then :
16123 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
16124else
16125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16127as_fn_error $? "compiler failed
16128See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
16129fi
16130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16131libsanitizer_cv_sys_filetype=$filetype
16132fi
16133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
16134$as_echo "$libsanitizer_cv_sys_filetype" >&6; }
16135
16136# Match the file type to decide what files to compile.
16137FORMAT_FILE=
16138case "$libsanitizer_cv_sys_filetype" in
16139elf*) FORMAT_FILE="elf.lo" ;;
16140*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
16141$as_echo "$as_me: WARNING: could not determine output file type" >&2;}
16142 FORMAT_FILE="unknown.lo"
16143 backtrace_supported=no
16144 ;;
16145esac
f35db108
WM
16146
16147
c915a581
JJ
16148# ELF defines.
16149elfsize=
16150case "$libsanitizer_cv_sys_filetype" in
16151elf32) elfsize=32 ;;
16152elf64) elfsize=64 ;;
16153esac
f35db108 16154
c915a581
JJ
16155cat >>confdefs.h <<_ACEOF
16156#define BACKTRACE_ELF_SIZE $elfsize
16157_ACEOF
f35db108
WM
16158
16159
c915a581
JJ
16160BACKTRACE_SUPPORTED=0
16161if test "$backtrace_supported" = "yes"; then
16162 BACKTRACE_SUPPORTED=1
16163fi
f35db108
WM
16164
16165
16166
16167
c915a581 16168inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
f35db108 16169
c915a581
JJ
16170acx_cv_header_stdint=stddef.h
16171acx_cv_header_stdint_kind="(already complete)"
16172for i in stdint.h $inttype_headers; do
16173 unset ac_cv_type_uintptr_t
16174 unset ac_cv_type_uintmax_t
16175 unset ac_cv_type_int_least32_t
16176 unset ac_cv_type_int_fast32_t
16177 unset ac_cv_type_uint64_t
16178 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16179 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16180#include <$i>
16181"
22e05272 16182if test "x$ac_cv_type_uintmax_t" = xyes; then :
c915a581
JJ
16183 acx_cv_header_stdint=$i
16184else
16185 continue
16186fi
f35db108 16187
c915a581
JJ
16188 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16189#include <$i>
16190"
22e05272 16191if test "x$ac_cv_type_uintptr_t" = xyes; then :
f35db108 16192
c915a581
JJ
16193else
16194 acx_cv_header_stdint_kind="(mostly complete)"
16195fi
f35db108 16196
c915a581
JJ
16197 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16198#include <$i>
16199"
22e05272 16200if test "x$ac_cv_type_int_least32_t" = xyes; then :
f35db108 16201
c915a581
JJ
16202else
16203 acx_cv_header_stdint_kind="(mostly complete)"
16204fi
f35db108 16205
c915a581
JJ
16206 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16207#include <$i>
16208"
22e05272 16209if test "x$ac_cv_type_int_fast32_t" = xyes; then :
f35db108 16210
c915a581
JJ
16211else
16212 acx_cv_header_stdint_kind="(mostly complete)"
16213fi
f35db108 16214
c915a581
JJ
16215 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16216#include <$i>
16217"
22e05272 16218if test "x$ac_cv_type_uint64_t" = xyes; then :
f35db108 16219
c915a581
JJ
16220else
16221 acx_cv_header_stdint_kind="(lacks uint64_t)"
16222fi
f35db108 16223
c915a581
JJ
16224 break
16225done
16226if test "$acx_cv_header_stdint" = stddef.h; then
16227 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16228 for i in stdint.h $inttype_headers; do
16229 unset ac_cv_type_uintptr_t
16230 unset ac_cv_type_uint32_t
16231 unset ac_cv_type_uint64_t
16232 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16233 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16234#include <$i>
16235"
22e05272 16236if test "x$ac_cv_type_uint32_t" = xyes; then :
c915a581
JJ
16237 acx_cv_header_stdint=$i
16238else
16239 continue
16240fi
f35db108 16241
c915a581
JJ
16242 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16243#include <$i>
16244"
22e05272 16245if test "x$ac_cv_type_uint64_t" = xyes; then :
f35db108 16246
c915a581 16247fi
f35db108 16248
c915a581
JJ
16249 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16250#include <$i>
16251"
22e05272 16252if test "x$ac_cv_type_uintptr_t" = xyes; then :
f35db108 16253
c915a581 16254fi
f35db108 16255
c915a581
JJ
16256 break
16257 done
16258fi
16259if test "$acx_cv_header_stdint" = stddef.h; then
16260 acx_cv_header_stdint_kind="(u_intXX_t style)"
16261 for i in sys/types.h $inttype_headers; do
16262 unset ac_cv_type_u_int32_t
16263 unset ac_cv_type_u_int64_t
16264 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16265 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16266#include <$i>
16267"
22e05272 16268if test "x$ac_cv_type_u_int32_t" = xyes; then :
c915a581
JJ
16269 acx_cv_header_stdint=$i
16270else
16271 continue
16272fi
f35db108 16273
c915a581
JJ
16274 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16275#include <$i>
16276"
22e05272 16277if test "x$ac_cv_type_u_int64_t" = xyes; then :
f35db108 16278
c915a581 16279fi
f35db108 16280
c915a581
JJ
16281 break
16282 done
16283fi
16284if test "$acx_cv_header_stdint" = stddef.h; then
16285 acx_cv_header_stdint_kind="(using manual detection)"
16286fi
f35db108 16287
c915a581
JJ
16288test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16289test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16290test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16291test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16292test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
f35db108 16293
c915a581 16294# ----------------- Summarize what we found so far
f35db108 16295
c915a581
JJ
16296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16297$as_echo_n "checking what to include in gstdint.h... " >&6; }
f35db108 16298
c915a581
JJ
16299case `$as_basename -- gstdint.h ||
16300$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16301 Xgstdint.h : 'X\(//\)$' \| \
16302 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16303$as_echo X/gstdint.h |
16304 sed '/^.*\/\([^/][^/]*\)\/*$/{
16305 s//\1/
16306 q
16307 }
16308 /^X\/\(\/\/\)$/{
16309 s//\1/
16310 q
16311 }
16312 /^X\/\(\/\).*/{
16313 s//\1/
16314 q
16315 }
16316 s/.*/./; q'` in
16317 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16318$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16319 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16320$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16321 *) ;;
16322esac
f35db108 16323
c915a581
JJ
16324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16325$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
f35db108 16326
c915a581 16327# ----------------- done included file, check C basic types --------
f35db108 16328
c915a581
JJ
16329# Lacking an uintptr_t? Test size of void *
16330case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16331 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16332# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16333# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16334# This bug is HP SR number 8606223364.
16335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16336$as_echo_n "checking size of void *... " >&6; }
22e05272 16337if ${ac_cv_sizeof_void_p+:} false; then :
c915a581
JJ
16338 $as_echo_n "(cached) " >&6
16339else
16340 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
f35db108 16341
f35db108 16342else
c915a581
JJ
16343 if test "$ac_cv_type_void_p" = yes; then
16344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16346as_fn_error 77 "cannot compute sizeof (void *)
16347See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
16348 else
16349 ac_cv_sizeof_void_p=0
16350 fi
f35db108 16351fi
f35db108 16352
f35db108 16353fi
c915a581
JJ
16354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16355$as_echo "$ac_cv_sizeof_void_p" >&6; }
f35db108
WM
16356
16357
16358
c915a581
JJ
16359cat >>confdefs.h <<_ACEOF
16360#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16361_ACEOF
f35db108 16362
c915a581
JJ
16363 ;;
16364esac
f35db108 16365
c915a581
JJ
16366# Lacking an uint64_t? Test size of long
16367case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16368 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16369# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16370# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16371# This bug is HP SR number 8606223364.
16372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16373$as_echo_n "checking size of long... " >&6; }
22e05272 16374if ${ac_cv_sizeof_long+:} false; then :
c915a581
JJ
16375 $as_echo_n "(cached) " >&6
16376else
16377 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
f35db108 16378
c915a581
JJ
16379else
16380 if test "$ac_cv_type_long" = yes; then
16381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16383as_fn_error 77 "cannot compute sizeof (long)
16384See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
16385 else
16386 ac_cv_sizeof_long=0
16387 fi
16388fi
f35db108 16389
c915a581
JJ
16390fi
16391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16392$as_echo "$ac_cv_sizeof_long" >&6; }
f35db108
WM
16393
16394
16395
c915a581
JJ
16396cat >>confdefs.h <<_ACEOF
16397#define SIZEOF_LONG $ac_cv_sizeof_long
16398_ACEOF
f35db108 16399
c915a581
JJ
16400 ;;
16401esac
f35db108 16402
c915a581
JJ
16403if test $acx_cv_header_stdint = stddef.h; then
16404 # Lacking a good header? Test size of everything and deduce all types.
16405 # The cast to long int works around a bug in the HP C Compiler
16406# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16407# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16408# This bug is HP SR number 8606223364.
16409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16410$as_echo_n "checking size of int... " >&6; }
22e05272 16411if ${ac_cv_sizeof_int+:} false; then :
c915a581
JJ
16412 $as_echo_n "(cached) " >&6
16413else
16414 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
f35db108 16415
c915a581
JJ
16416else
16417 if test "$ac_cv_type_int" = yes; then
16418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16420as_fn_error 77 "cannot compute sizeof (int)
16421See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
16422 else
16423 ac_cv_sizeof_int=0
16424 fi
16425fi
f35db108 16426
c915a581
JJ
16427fi
16428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16429$as_echo "$ac_cv_sizeof_int" >&6; }
f35db108
WM
16430
16431
f35db108 16432
c915a581
JJ
16433cat >>confdefs.h <<_ACEOF
16434#define SIZEOF_INT $ac_cv_sizeof_int
16435_ACEOF
f35db108
WM
16436
16437
c915a581
JJ
16438 # The cast to long int works around a bug in the HP C Compiler
16439# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16440# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16441# This bug is HP SR number 8606223364.
16442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16443$as_echo_n "checking size of short... " >&6; }
22e05272 16444if ${ac_cv_sizeof_short+:} false; then :
c915a581
JJ
16445 $as_echo_n "(cached) " >&6
16446else
16447 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
f35db108 16448
c915a581
JJ
16449else
16450 if test "$ac_cv_type_short" = yes; then
16451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16453as_fn_error 77 "cannot compute sizeof (short)
16454See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
16455 else
16456 ac_cv_sizeof_short=0
16457 fi
16458fi
f35db108 16459
c915a581
JJ
16460fi
16461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16462$as_echo "$ac_cv_sizeof_short" >&6; }
f35db108
WM
16463
16464
16465
c915a581
JJ
16466cat >>confdefs.h <<_ACEOF
16467#define SIZEOF_SHORT $ac_cv_sizeof_short
16468_ACEOF
f35db108
WM
16469
16470
c915a581 16471 # The cast to long int works around a bug in the HP C Compiler
64548f3b
JJ
16472# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16473# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16474# This bug is HP SR number 8606223364.
c915a581
JJ
16475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16476$as_echo_n "checking size of char... " >&6; }
22e05272 16477if ${ac_cv_sizeof_char+:} false; then :
64548f3b
JJ
16478 $as_echo_n "(cached) " >&6
16479else
c915a581 16480 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
64548f3b
JJ
16481
16482else
c915a581 16483 if test "$ac_cv_type_char" = yes; then
64548f3b
JJ
16484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16486as_fn_error 77 "cannot compute sizeof (char)
16487See \`config.log' for more details" "$LINENO" 5; }
64548f3b 16488 else
c915a581 16489 ac_cv_sizeof_char=0
64548f3b
JJ
16490 fi
16491fi
16492
16493fi
c915a581
JJ
16494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16495$as_echo "$ac_cv_sizeof_char" >&6; }
16496
16497
16498
16499cat >>confdefs.h <<_ACEOF
16500#define SIZEOF_CHAR $ac_cv_sizeof_char
16501_ACEOF
16502
16503
16504
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16506$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16507 case "$ac_cv_sizeof_char" in
16508 1) acx_cv_type_int8_t=char ;;
22e05272 16509 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
c915a581
JJ
16510 esac
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16512$as_echo "$acx_cv_type_int8_t" >&6; }
16513
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16515$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16516 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16517 2:*) acx_cv_type_int16_t=int ;;
16518 *:2) acx_cv_type_int16_t=short ;;
22e05272 16519 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
c915a581
JJ
16520 esac
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16522$as_echo "$acx_cv_type_int16_t" >&6; }
16523
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16525$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16526 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16527 4:*) acx_cv_type_int32_t=int ;;
16528 *:4) acx_cv_type_int32_t=long ;;
22e05272 16529 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
c915a581
JJ
16530 esac
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16532$as_echo "$acx_cv_type_int32_t" >&6; }
16533fi
16534
16535# These tests are here to make the output prettier
16536
16537if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16538 case "$ac_cv_sizeof_long" in
16539 8) acx_cv_type_int64_t=long ;;
16540 esac
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16542$as_echo_n "checking for type equivalent to int64_t... " >&6; }
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16544$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16545fi
16546
16547# Now we can use the above types
16548
16549if test "$ac_cv_type_uintptr_t" != yes; then
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16551$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16552 case $ac_cv_sizeof_void_p in
16553 2) acx_cv_type_intptr_t=int16_t ;;
16554 4) acx_cv_type_intptr_t=int32_t ;;
16555 8) acx_cv_type_intptr_t=int64_t ;;
22e05272 16556 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
c915a581
JJ
16557 esac
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16559$as_echo "$acx_cv_type_intptr_t" >&6; }
16560fi
16561
16562# ----------------- done all checks, emit header -------------
16563ac_config_commands="$ac_config_commands gstdint.h"
16564
16565
16566
16567
b5f58ba3 16568for ac_header in sys/mman.h alloca.h
c915a581 16569do :
b5f58ba3
JJ
16570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16571ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22e05272 16572if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
c915a581 16573 cat >>confdefs.h <<_ACEOF
b5f58ba3 16574#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
c915a581
JJ
16575_ACEOF
16576
16577fi
16578
16579done
16580
16581if test "$ac_cv_header_sys_mman_h" = "no"; then
16582 have_mmap=no
16583else
16584 if test -n "${with_target_subdir}"; then
16585 # When built as a GCC target library, we can't do a link test. We
16586 # simply assume that if we have mman.h, we have mmap.
16587 have_mmap=yes
16588 else
16589 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22e05272 16590if test "x$ac_cv_func_mmap" = xyes; then :
c915a581
JJ
16591 have_mmap=yes
16592else
16593 have_mmap=no
16594fi
16595
16596 fi
16597fi
16598if test "$have_mmap" = "no"; then
16599 VIEW_FILE=read.lo
16600 ALLOC_FILE=alloc.lo
16601else
16602 VIEW_FILE=mmapio.lo
16603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16604/* end confdefs.h. */
64548f3b 16605
c915a581
JJ
16606#include <sys/mman.h>
16607#if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
16608 #error no MAP_ANONYMOUS
16609#endif
64548f3b 16610
64548f3b 16611_ACEOF
c915a581
JJ
16612if ac_fn_c_try_cpp "$LINENO"; then :
16613 ALLOC_FILE=mmap.lo
16614else
16615 ALLOC_FILE=alloc.lo
16616fi
22e05272 16617rm -f conftest.err conftest.i conftest.$ac_ext
c915a581 16618fi
64548f3b
JJ
16619
16620
16621
c915a581
JJ
16622BACKTRACE_USES_MALLOC=0
16623if test "$ALLOC_FILE" = "alloc.lo"; then
16624 BACKTRACE_USES_MALLOC=1
2a6346c4 16625fi
64548f3b 16626
cd0be65c 16627
c915a581
JJ
16628# Don't care about thread support
16629BACKTRACE_SUPPORTS_THREADS=0
9065ada9 16630
f35db108 16631
c915a581
JJ
16632# Check for dl_iterate_phdr.
16633for ac_header in link.h
35814b03 16634do :
c915a581 16635 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
22e05272 16636if test "x$ac_cv_header_link_h" = xyes; then :
35814b03 16637 cat >>confdefs.h <<_ACEOF
c915a581 16638#define HAVE_LINK_H 1
35814b03
JJ
16639_ACEOF
16640
16641fi
35814b03 16642
c915a581 16643done
35814b03 16644
c915a581
JJ
16645if test "$ac_cv_header_link_h" = "no"; then
16646 have_dl_iterate_phdr=no
16647else
16648 # When built as a GCC target library, we can't do a link test.
16649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16650/* end confdefs.h. */
16651#include <link.h>
35814b03 16652
c915a581
JJ
16653_ACEOF
16654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16655 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
16656 have_dl_iterate_phdr=yes
16657else
16658 have_dl_iterate_phdr=no
16659fi
16660rm -f conftest*
35814b03 16661
c915a581
JJ
16662 case "${host}" in
16663 *-*-solaris2.10*)
16664 # Avoid dl_iterate_phdr on Solaris 10, where it is in the
16665 # header file but is only in -ldl.
16666 have_dl_iterate_phdr=no ;;
16667 esac
16668fi
16669if test "$have_dl_iterate_phdr" = "yes"; then
35814b03 16670
c915a581 16671$as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
35814b03 16672
c915a581 16673fi
35814b03 16674
c915a581
JJ
16675# Check for the fcntl function.
16676if test -n "${with_target_subdir}"; then
16677 case "${host}" in
16678 *-*-mingw*) have_fcntl=no ;;
16679 *) have_fcntl=yes ;;
16680 esac
16681else
16682 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
22e05272 16683if test "x$ac_cv_func_fcntl" = xyes; then :
c915a581
JJ
16684 have_fcntl=yes
16685else
16686 have_fcntl=no
16687fi
35814b03 16688
c915a581
JJ
16689fi
16690if test "$have_fcntl" = "yes"; then
35814b03 16691
c915a581 16692$as_echo "#define HAVE_FCNTL 1" >>confdefs.h
35814b03 16693
c915a581 16694fi
35814b03 16695
c915a581 16696ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
22e05272 16697if test "x$ac_cv_have_decl_strnlen" = xyes; then :
c915a581 16698 ac_have_decl=1
35814b03 16699else
c915a581
JJ
16700 ac_have_decl=0
16701fi
35814b03 16702
c915a581
JJ
16703cat >>confdefs.h <<_ACEOF
16704#define HAVE_DECL_STRNLEN $ac_have_decl
35814b03 16705_ACEOF
c915a581
JJ
16706
16707
16708# Check for getexecname function.
16709if test -n "${with_target_subdir}"; then
16710 case "${host}" in
16711 *-*-solaris2*) have_getexecname=yes ;;
16712 *) have_getexecname=no ;;
16713 esac
35814b03 16714else
c915a581 16715 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
22e05272 16716if test "x$ac_cv_func_getexecname" = xyes; then :
c915a581
JJ
16717 have_getexecname=yes
16718else
16719 have_getexecname=no
35814b03 16720fi
35814b03
JJ
16721
16722fi
c915a581
JJ
16723if test "$have_getexecname" = "yes"; then
16724
16725$as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
35814b03
JJ
16726
16727fi
16728
d041a6fc
YG
16729# Check for rpc/xdr.h
16730for ac_header in rpc/xdr.h
16731do :
16732 ac_fn_c_check_header_mongrel "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default"
22e05272 16733if test "x$ac_cv_header_rpc_xdr_h" = xyes; then :
d041a6fc
YG
16734 cat >>confdefs.h <<_ACEOF
16735#define HAVE_RPC_XDR_H 1
16736_ACEOF
16737
16738fi
16739
16740done
16741
16742if test x"$ac_cv_header_rpc_xdr_h" = xyes; then
16743 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=1"
16744else
16745 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=0"
16746fi
16747
16748# Check for tirpc/rpc/xdr.h
16749for ac_header in tirpc/rpc/xdr.h
16750do :
16751 ac_fn_c_check_header_mongrel "$LINENO" "tirpc/rpc/xdr.h" "ac_cv_header_tirpc_rpc_xdr_h" "$ac_includes_default"
22e05272 16752if test "x$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then :
d041a6fc
YG
16753 cat >>confdefs.h <<_ACEOF
16754#define HAVE_TIRPC_RPC_XDR_H 1
16755_ACEOF
16756
16757fi
16758
16759done
16760
16761if test x"$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then
16762 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=1"
16763else
16764 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=0"
16765fi
16766
16767RPC_DEFS=$rpc_defs
16768
16769
c915a581
JJ
16770 if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
16771 LIBBACKTRACE_SUPPORTED_TRUE=
16772 LIBBACKTRACE_SUPPORTED_FALSE='#'
f246eadc 16773else
c915a581
JJ
16774 LIBBACKTRACE_SUPPORTED_TRUE='#'
16775 LIBBACKTRACE_SUPPORTED_FALSE=
f246eadc
JH
16776fi
16777
16778
f35db108 16779
c915a581
JJ
16780ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
16781
16782ac_config_headers="$ac_config_headers config.h"
f35db108 16783
c915a581
JJ
16784
16785ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
f35db108
WM
16786
16787
64548f3b 16788if test "x$TSAN_SUPPORTED" = "xyes"; then
cd0be65c
WM
16789 ac_config_files="$ac_config_files tsan/Makefile"
16790
16791fi
16792
b0edd457
VK
16793
16794
10189819 16795
3c36aa6b
JJ
16796# Determine what GCC version number to use in filesystem paths.
16797
16798 get_gcc_base_ver="cat"
16799
16800# Check whether --with-gcc-major-version-only was given.
16801if test "${with_gcc_major_version_only+set}" = set; then :
16802 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 16803 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
16804 fi
16805
16806fi
16807
16808
16809
16810
9069eb28
IT
16811# Add CET specific flags if Intel CET is enabled.
16812 # Check whether --enable-cet was given.
16813if test "${enable_cet+set}" = set; then :
16814 enableval=$enable_cet;
16815 case "$enableval" in
a0e1df88 16816 yes|no|auto) ;;
22e05272 16817 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
9069eb28
IT
16818 esac
16819
16820else
a0e1df88 16821 enable_cet=no
9069eb28
IT
16822fi
16823
16824
14e335ed
IT
16825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16826$as_echo_n "checking for CET support... " >&6; }
16827
9069eb28
IT
16828case "$host" in
16829 i[34567]86-*-linux* | x86_64-*-linux*)
16830 case "$enable_cet" in
a0e1df88 16831 auto)
14e335ed
IT
16832 # Check if target supports multi-byte NOPs
16833 # and if assembler supports CET insn.
9069eb28
IT
16834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16835/* end confdefs.h. */
16836
16837int
16838main ()
16839{
14e335ed
IT
16840
16841#if !defined(__SSE2__)
16842#error target does not support multi-byte NOPs
16843#else
9069eb28 16844asm ("setssbsy");
14e335ed
IT
16845#endif
16846
9069eb28
IT
16847 ;
16848 return 0;
16849}
16850_ACEOF
16851if ac_fn_c_try_compile "$LINENO"; then :
16852 enable_cet=yes
16853else
16854 enable_cet=no
16855fi
16856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16857 ;;
16858 yes)
16859 # Check if assembler supports CET.
16860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861/* end confdefs.h. */
16862
16863int
16864main ()
16865{
16866asm ("setssbsy");
16867 ;
16868 return 0;
16869}
16870_ACEOF
16871if ac_fn_c_try_compile "$LINENO"; then :
16872
16873else
22e05272 16874 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
9069eb28
IT
16875fi
16876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16877 ;;
16878 esac
16879 ;;
16880 *)
16881 enable_cet=no
16882 ;;
16883esac
16884if test x$enable_cet = xyes; then
7b47ecf2 16885 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16887$as_echo "yes" >&6; }
16888else
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16890$as_echo "no" >&6; }
9069eb28
IT
16891fi
16892
16893EXTRA_CFLAGS="$EXTRA_CFLAGS $CET_FLAGS"
16894EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $CET_FLAGS"
16895EXTRA_ASFLAGS=$CET_FLAGS
16896
16897
16898
16899
f35db108
WM
16900cat >confcache <<\_ACEOF
16901# This file is a shell script that caches the results of configure
16902# tests run on this system so they can be shared between configure
16903# scripts and configure runs, see configure's option --config-cache.
16904# It is not useful on other systems. If it contains results you don't
16905# want to keep, you may remove or edit it.
16906#
16907# config.status only pays attention to the cache file if you give it
16908# the --recheck option to rerun configure.
16909#
16910# `ac_cv_env_foo' variables (set or unset) will be overridden when
16911# loading this file, other *unset* `ac_cv_foo' will be assigned the
16912# following values.
16913
16914_ACEOF
16915
16916# The following way of writing the cache mishandles newlines in values,
16917# but we know of no workaround that is simple, portable, and efficient.
16918# So, we kill variables containing newlines.
16919# Ultrix sh set writes to stderr and can't be redirected directly,
16920# and sets the high bit in the cache file unless we assign to the vars.
16921(
16922 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16923 eval ac_val=\$$ac_var
16924 case $ac_val in #(
16925 *${as_nl}*)
16926 case $ac_var in #(
16927 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16928$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16929 esac
16930 case $ac_var in #(
16931 _ | IFS | as_nl) ;; #(
16932 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16933 *) { eval $ac_var=; unset $ac_var;} ;;
16934 esac ;;
16935 esac
16936 done
16937
16938 (set) 2>&1 |
16939 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16940 *${as_nl}ac_space=\ *)
16941 # `set' does not quote correctly, so add quotes: double-quote
16942 # substitution turns \\\\ into \\, and sed turns \\ into \.
16943 sed -n \
16944 "s/'/'\\\\''/g;
16945 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16946 ;; #(
16947 *)
16948 # `set' quotes correctly as required by POSIX, so do not add quotes.
16949 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16950 ;;
16951 esac |
16952 sort
16953) |
16954 sed '
16955 /^ac_cv_env_/b end
16956 t clear
16957 :clear
16958 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16959 t end
16960 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16961 :end' >>confcache
16962if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16963 if test -w "$cache_file"; then
22e05272 16964 if test "x$cache_file" != "x/dev/null"; then
f35db108
WM
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16966$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
16967 if test ! -f "$cache_file" || test -h "$cache_file"; then
16968 cat confcache >"$cache_file"
16969 else
16970 case $cache_file in #(
16971 */* | ?:*)
16972 mv -f confcache "$cache_file"$$ &&
16973 mv -f "$cache_file"$$ "$cache_file" ;; #(
16974 *)
16975 mv -f confcache "$cache_file" ;;
16976 esac
16977 fi
16978 fi
f35db108
WM
16979 else
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16981$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16982 fi
16983fi
16984rm -f confcache
16985
16986test "x$prefix" = xNONE && prefix=$ac_default_prefix
16987# Let make expand exec_prefix.
16988test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16989
c915a581 16990DEFS=-DHAVE_CONFIG_H
f35db108
WM
16991
16992ac_libobjs=
16993ac_ltlibobjs=
22e05272 16994U=
f35db108
WM
16995for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16996 # 1. Remove the extension, and $U if already installed.
16997 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16998 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16999 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17000 # will be set to the directory where LIBOBJS objects are built.
17001 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17002 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17003done
17004LIBOBJS=$ac_libobjs
17005
17006LTLIBOBJS=$ac_ltlibobjs
17007
17008
22e05272
JM
17009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17010$as_echo_n "checking that generated files are newer than configure... " >&6; }
17011 if test -n "$am_sleep_pid"; then
17012 # Hide warnings about reused PIDs.
17013 wait $am_sleep_pid 2>/dev/null
17014 fi
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17016$as_echo "done" >&6; }
c915a581 17017if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 17018 as_fn_error $? "conditional \"AMDEP\" was never defined.
c915a581
JJ
17019Usually this means the macro was only invoked conditionally." "$LINENO" 5
17020fi
17021if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 17022 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
c915a581
JJ
17023Usually this means the macro was only invoked conditionally." "$LINENO" 5
17024fi
f35db108
WM
17025 if test -n "$EXEEXT"; then
17026 am__EXEEXT_TRUE=
17027 am__EXEEXT_FALSE='#'
17028else
17029 am__EXEEXT_TRUE='#'
17030 am__EXEEXT_FALSE=
17031fi
17032
2b723e21 17033if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 17034 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
2b723e21
TT
17035Usually this means the macro was only invoked conditionally." "$LINENO" 5
17036fi
f35db108 17037if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22e05272 17038 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
f35db108
WM
17039Usually this means the macro was only invoked conditionally." "$LINENO" 5
17040fi
17041if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22e05272 17042 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
f35db108
WM
17043Usually this means the macro was only invoked conditionally." "$LINENO" 5
17044fi
64548f3b 17045if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
22e05272 17046 as_fn_error $? "conditional \"TSAN_SUPPORTED\" was never defined.
cd0be65c
WM
17047Usually this means the macro was only invoked conditionally." "$LINENO" 5
17048fi
9065ada9 17049if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
22e05272 17050 as_fn_error $? "conditional \"LSAN_SUPPORTED\" was never defined.
9065ada9
JJ
17051Usually this means the macro was only invoked conditionally." "$LINENO" 5
17052fi
8c4d267c 17053if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
22e05272 17054 as_fn_error $? "conditional \"USING_MAC_INTERPOSE\" was never defined.
f246eadc
JH
17055Usually this means the macro was only invoked conditionally." "$LINENO" 5
17056fi
4a7eaf5f 17057if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
22e05272 17058 as_fn_error $? "conditional \"SANITIZER_SUPPORTED\" was never defined.
4a7eaf5f
YG
17059Usually this means the macro was only invoked conditionally." "$LINENO" 5
17060fi
c915a581 17061if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
22e05272 17062 as_fn_error $? "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
c915a581
JJ
17063Usually this means the macro was only invoked conditionally." "$LINENO" 5
17064fi
f35db108 17065
22e05272 17066: "${CONFIG_STATUS=./config.status}"
f35db108
WM
17067ac_write_fail=0
17068ac_clean_files_save=$ac_clean_files
17069ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17070{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17071$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17072as_write_fail=0
17073cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17074#! $SHELL
17075# Generated by $as_me.
17076# Run this file to recreate the current configuration.
17077# Compiler output produced by configure, useful for debugging
17078# configure, is in config.log if it exists.
17079
17080debug=false
17081ac_cs_recheck=false
17082ac_cs_silent=false
17083
17084SHELL=\${CONFIG_SHELL-$SHELL}
17085export SHELL
17086_ASEOF
17087cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17088## -------------------- ##
17089## M4sh Initialization. ##
17090## -------------------- ##
17091
17092# Be more Bourne compatible
17093DUALCASE=1; export DUALCASE # for MKS sh
17094if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17095 emulate sh
17096 NULLCMD=:
17097 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17098 # is contrary to our usage. Disable this feature.
17099 alias -g '${1+"$@"}'='"$@"'
17100 setopt NO_GLOB_SUBST
17101else
17102 case `(set -o) 2>/dev/null` in #(
17103 *posix*) :
17104 set -o posix ;; #(
17105 *) :
17106 ;;
17107esac
17108fi
17109
17110
17111as_nl='
17112'
17113export as_nl
17114# Printing a long string crashes Solaris 7 /usr/bin/printf.
17115as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17116as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17117as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17118# Prefer a ksh shell builtin over an external printf program on Solaris,
17119# but without wasting forks for bash or zsh.
17120if test -z "$BASH_VERSION$ZSH_VERSION" \
17121 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17122 as_echo='print -r --'
17123 as_echo_n='print -rn --'
17124elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17125 as_echo='printf %s\n'
17126 as_echo_n='printf %s'
17127else
17128 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17129 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17130 as_echo_n='/usr/ucb/echo -n'
17131 else
17132 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17133 as_echo_n_body='eval
17134 arg=$1;
17135 case $arg in #(
17136 *"$as_nl"*)
17137 expr "X$arg" : "X\\(.*\\)$as_nl";
17138 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17139 esac;
17140 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17141 '
17142 export as_echo_n_body
17143 as_echo_n='sh -c $as_echo_n_body as_echo'
17144 fi
17145 export as_echo_body
17146 as_echo='sh -c $as_echo_body as_echo'
17147fi
17148
17149# The user is always right.
17150if test "${PATH_SEPARATOR+set}" != set; then
17151 PATH_SEPARATOR=:
17152 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17153 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17154 PATH_SEPARATOR=';'
17155 }
17156fi
17157
17158
17159# IFS
17160# We need space, tab and new line, in precisely that order. Quoting is
17161# there to prevent editors from complaining about space-tab.
17162# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17163# splitting by setting IFS to empty value.)
17164IFS=" "" $as_nl"
17165
17166# Find who we are. Look in the path if we contain no directory separator.
22e05272 17167as_myself=
f35db108
WM
17168case $0 in #((
17169 *[\\/]* ) as_myself=$0 ;;
17170 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17171for as_dir in $PATH
17172do
17173 IFS=$as_save_IFS
17174 test -z "$as_dir" && as_dir=.
17175 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17176 done
17177IFS=$as_save_IFS
17178
17179 ;;
17180esac
17181# We did not find ourselves, most probably we were run as `sh COMMAND'
17182# in which case we are not to be found in the path.
17183if test "x$as_myself" = x; then
17184 as_myself=$0
17185fi
17186if test ! -f "$as_myself"; then
17187 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17188 exit 1
17189fi
17190
17191# Unset variables that we do not need and which cause bugs (e.g. in
17192# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17193# suppresses any "Segmentation fault" message there. '((' could
17194# trigger a bug in pdksh 5.2.14.
17195for as_var in BASH_ENV ENV MAIL MAILPATH
17196do eval test x\${$as_var+set} = xset \
17197 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17198done
17199PS1='$ '
17200PS2='> '
17201PS4='+ '
17202
17203# NLS nuisances.
17204LC_ALL=C
17205export LC_ALL
17206LANGUAGE=C
17207export LANGUAGE
17208
17209# CDPATH.
17210(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17211
17212
22e05272
JM
17213# as_fn_error STATUS ERROR [LINENO LOG_FD]
17214# ----------------------------------------
f35db108
WM
17215# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17216# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 17217# script with STATUS, using 1 if that was 0.
f35db108
WM
17218as_fn_error ()
17219{
22e05272
JM
17220 as_status=$1; test $as_status -eq 0 && as_status=1
17221 if test "$4"; then
17222 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17223 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
f35db108 17224 fi
22e05272 17225 $as_echo "$as_me: error: $2" >&2
f35db108
WM
17226 as_fn_exit $as_status
17227} # as_fn_error
17228
17229
17230# as_fn_set_status STATUS
17231# -----------------------
17232# Set $? to STATUS, without forking.
17233as_fn_set_status ()
17234{
17235 return $1
17236} # as_fn_set_status
17237
17238# as_fn_exit STATUS
17239# -----------------
17240# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17241as_fn_exit ()
17242{
17243 set +e
17244 as_fn_set_status $1
17245 exit $1
17246} # as_fn_exit
17247
17248# as_fn_unset VAR
17249# ---------------
17250# Portably unset VAR.
17251as_fn_unset ()
17252{
17253 { eval $1=; unset $1;}
17254}
17255as_unset=as_fn_unset
17256# as_fn_append VAR VALUE
17257# ----------------------
17258# Append the text in VALUE to the end of the definition contained in VAR. Take
17259# advantage of any shell optimizations that allow amortized linear growth over
17260# repeated appends, instead of the typical quadratic growth present in naive
17261# implementations.
17262if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17263 eval 'as_fn_append ()
17264 {
17265 eval $1+=\$2
17266 }'
17267else
17268 as_fn_append ()
17269 {
17270 eval $1=\$$1\$2
17271 }
17272fi # as_fn_append
17273
17274# as_fn_arith ARG...
17275# ------------------
17276# Perform arithmetic evaluation on the ARGs, and store the result in the
17277# global $as_val. Take advantage of shells that can avoid forks. The arguments
17278# must be portable across $(()) and expr.
17279if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17280 eval 'as_fn_arith ()
17281 {
17282 as_val=$(( $* ))
17283 }'
17284else
17285 as_fn_arith ()
17286 {
17287 as_val=`expr "$@" || test $? -eq 1`
17288 }
17289fi # as_fn_arith
17290
17291
17292if expr a : '\(a\)' >/dev/null 2>&1 &&
17293 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17294 as_expr=expr
17295else
17296 as_expr=false
17297fi
17298
17299if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17300 as_basename=basename
17301else
17302 as_basename=false
17303fi
17304
17305if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17306 as_dirname=dirname
17307else
17308 as_dirname=false
17309fi
17310
17311as_me=`$as_basename -- "$0" ||
17312$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17313 X"$0" : 'X\(//\)$' \| \
17314 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17315$as_echo X/"$0" |
17316 sed '/^.*\/\([^/][^/]*\)\/*$/{
17317 s//\1/
17318 q
17319 }
17320 /^X\/\(\/\/\)$/{
17321 s//\1/
17322 q
17323 }
17324 /^X\/\(\/\).*/{
17325 s//\1/
17326 q
17327 }
17328 s/.*/./; q'`
17329
17330# Avoid depending upon Character Ranges.
17331as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17332as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17333as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17334as_cr_digits='0123456789'
17335as_cr_alnum=$as_cr_Letters$as_cr_digits
17336
17337ECHO_C= ECHO_N= ECHO_T=
17338case `echo -n x` in #(((((
17339-n*)
17340 case `echo 'xy\c'` in
17341 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17342 xy) ECHO_C='\c';;
17343 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17344 ECHO_T=' ';;
17345 esac;;
17346*)
17347 ECHO_N='-n';;
17348esac
17349
17350rm -f conf$$ conf$$.exe conf$$.file
17351if test -d conf$$.dir; then
17352 rm -f conf$$.dir/conf$$.file
17353else
17354 rm -f conf$$.dir
17355 mkdir conf$$.dir 2>/dev/null
17356fi
17357if (echo >conf$$.file) 2>/dev/null; then
17358 if ln -s conf$$.file conf$$ 2>/dev/null; then
17359 as_ln_s='ln -s'
17360 # ... but there are two gotchas:
17361 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17362 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 17363 # In both cases, we have to default to `cp -pR'.
f35db108 17364 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 17365 as_ln_s='cp -pR'
f35db108
WM
17366 elif ln conf$$.file conf$$ 2>/dev/null; then
17367 as_ln_s=ln
17368 else
22e05272 17369 as_ln_s='cp -pR'
f35db108
WM
17370 fi
17371else
22e05272 17372 as_ln_s='cp -pR'
f35db108
WM
17373fi
17374rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17375rmdir conf$$.dir 2>/dev/null
17376
17377
17378# as_fn_mkdir_p
17379# -------------
17380# Create "$as_dir" as a directory, including parents if necessary.
17381as_fn_mkdir_p ()
17382{
17383
17384 case $as_dir in #(
17385 -*) as_dir=./$as_dir;;
17386 esac
17387 test -d "$as_dir" || eval $as_mkdir_p || {
17388 as_dirs=
17389 while :; do
17390 case $as_dir in #(
17391 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17392 *) as_qdir=$as_dir;;
17393 esac
17394 as_dirs="'$as_qdir' $as_dirs"
17395 as_dir=`$as_dirname -- "$as_dir" ||
17396$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17397 X"$as_dir" : 'X\(//\)[^/]' \| \
17398 X"$as_dir" : 'X\(//\)$' \| \
17399 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17400$as_echo X"$as_dir" |
17401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17402 s//\1/
17403 q
17404 }
17405 /^X\(\/\/\)[^/].*/{
17406 s//\1/
17407 q
17408 }
17409 /^X\(\/\/\)$/{
17410 s//\1/
17411 q
17412 }
17413 /^X\(\/\).*/{
17414 s//\1/
17415 q
17416 }
17417 s/.*/./; q'`
17418 test -d "$as_dir" && break
17419 done
17420 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 17421 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
f35db108
WM
17422
17423
17424} # as_fn_mkdir_p
17425if mkdir -p . 2>/dev/null; then
17426 as_mkdir_p='mkdir -p "$as_dir"'
17427else
17428 test -d ./-p && rmdir ./-p
17429 as_mkdir_p=false
17430fi
17431
22e05272
JM
17432
17433# as_fn_executable_p FILE
17434# -----------------------
17435# Test if FILE is an executable regular file.
17436as_fn_executable_p ()
17437{
17438 test -f "$1" && test -x "$1"
17439} # as_fn_executable_p
17440as_test_x='test -x'
17441as_executable_p=as_fn_executable_p
f35db108
WM
17442
17443# Sed expression to map a string onto a valid CPP name.
17444as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17445
17446# Sed expression to map a string onto a valid variable name.
17447as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17448
17449
17450exec 6>&1
17451## ----------------------------------- ##
17452## Main body of $CONFIG_STATUS script. ##
17453## ----------------------------------- ##
17454_ASEOF
17455test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17456
17457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17458# Save the log message, to keep $0 and so on meaningful, and to
17459# report actual input values of CONFIG_FILES etc. instead of their
17460# values after options handling.
17461ac_log="
17462This file was extended by package-unused $as_me version-unused, which was
22e05272 17463generated by GNU Autoconf 2.69. Invocation command line was
f35db108
WM
17464
17465 CONFIG_FILES = $CONFIG_FILES
17466 CONFIG_HEADERS = $CONFIG_HEADERS
17467 CONFIG_LINKS = $CONFIG_LINKS
17468 CONFIG_COMMANDS = $CONFIG_COMMANDS
17469 $ $0 $@
17470
17471on `(hostname || uname -n) 2>/dev/null | sed 1q`
17472"
17473
17474_ACEOF
17475
17476case $ac_config_files in *"
17477"*) set x $ac_config_files; shift; ac_config_files=$*;;
17478esac
17479
c915a581
JJ
17480case $ac_config_headers in *"
17481"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17482esac
f35db108
WM
17483
17484
17485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17486# Files that config.status was made for.
17487config_files="$ac_config_files"
c915a581 17488config_headers="$ac_config_headers"
f35db108
WM
17489config_commands="$ac_config_commands"
17490
17491_ACEOF
17492
17493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17494ac_cs_usage="\
17495\`$as_me' instantiates files and other configuration actions
17496from templates according to the current configuration. Unless the files
17497and actions are specified as TAGs, all are instantiated by default.
17498
17499Usage: $0 [OPTION]... [TAG]...
17500
17501 -h, --help print this help, then exit
17502 -V, --version print version number and configuration settings, then exit
22e05272 17503 --config print configuration, then exit
f35db108
WM
17504 -q, --quiet, --silent
17505 do not print progress messages
17506 -d, --debug don't remove temporary files
17507 --recheck update $as_me by reconfiguring in the same conditions
17508 --file=FILE[:TEMPLATE]
17509 instantiate the configuration file FILE
c915a581
JJ
17510 --header=FILE[:TEMPLATE]
17511 instantiate the configuration header FILE
f35db108
WM
17512
17513Configuration files:
17514$config_files
17515
c915a581
JJ
17516Configuration headers:
17517$config_headers
17518
f35db108
WM
17519Configuration commands:
17520$config_commands
17521
17522Report bugs to <libsanitizer>."
17523
17524_ACEOF
17525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 17526ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
f35db108
WM
17527ac_cs_version="\\
17528package-unused config.status version-unused
22e05272
JM
17529configured by $0, generated by GNU Autoconf 2.69,
17530 with options \\"\$ac_cs_config\\"
f35db108 17531
22e05272 17532Copyright (C) 2012 Free Software Foundation, Inc.
f35db108
WM
17533This config.status script is free software; the Free Software Foundation
17534gives unlimited permission to copy, distribute and modify it."
17535
17536ac_pwd='$ac_pwd'
17537srcdir='$srcdir'
17538INSTALL='$INSTALL'
17539MKDIR_P='$MKDIR_P'
17540AWK='$AWK'
17541test -n "\$AWK" || AWK=awk
17542_ACEOF
17543
17544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17545# The default lists apply if the user does not specify any file.
17546ac_need_defaults=:
17547while test $# != 0
17548do
17549 case $1 in
22e05272 17550 --*=?*)
f35db108
WM
17551 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17552 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17553 ac_shift=:
17554 ;;
22e05272
JM
17555 --*=)
17556 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17557 ac_optarg=
17558 ac_shift=:
17559 ;;
f35db108
WM
17560 *)
17561 ac_option=$1
17562 ac_optarg=$2
17563 ac_shift=shift
17564 ;;
17565 esac
17566
17567 case $ac_option in
17568 # Handling of the options.
17569 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17570 ac_cs_recheck=: ;;
17571 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17572 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
17573 --config | --confi | --conf | --con | --co | --c )
17574 $as_echo "$ac_cs_config"; exit ;;
f35db108
WM
17575 --debug | --debu | --deb | --de | --d | -d )
17576 debug=: ;;
17577 --file | --fil | --fi | --f )
17578 $ac_shift
17579 case $ac_optarg in
17580 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 17581 '') as_fn_error $? "missing file argument" ;;
f35db108
WM
17582 esac
17583 as_fn_append CONFIG_FILES " '$ac_optarg'"
17584 ac_need_defaults=false;;
c915a581
JJ
17585 --header | --heade | --head | --hea )
17586 $ac_shift
17587 case $ac_optarg in
17588 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17589 esac
17590 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17591 ac_need_defaults=false;;
17592 --he | --h)
17593 # Conflict between --help and --header
22e05272 17594 as_fn_error $? "ambiguous option: \`$1'
c915a581
JJ
17595Try \`$0 --help' for more information.";;
17596 --help | --hel | -h )
f35db108
WM
17597 $as_echo "$ac_cs_usage"; exit ;;
17598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17599 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17600 ac_cs_silent=: ;;
17601
17602 # This is an error.
22e05272 17603 -*) as_fn_error $? "unrecognized option: \`$1'
f35db108
WM
17604Try \`$0 --help' for more information." ;;
17605
17606 *) as_fn_append ac_config_targets " $1"
17607 ac_need_defaults=false ;;
17608
17609 esac
17610 shift
17611done
17612
17613ac_configure_extra_args=
17614
17615if $ac_cs_silent; then
17616 exec 6>/dev/null
17617 ac_configure_extra_args="$ac_configure_extra_args --silent"
17618fi
17619
17620_ACEOF
17621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17622if \$ac_cs_recheck; then
22e05272 17623 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
f35db108
WM
17624 shift
17625 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17626 CONFIG_SHELL='$SHELL'
17627 export CONFIG_SHELL
17628 exec "\$@"
17629fi
17630
17631_ACEOF
17632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17633exec 5>>config.log
17634{
17635 echo
17636 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17637## Running $as_me. ##
17638_ASBOX
17639 $as_echo "$ac_log"
17640} >&5
17641
17642_ACEOF
17643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17644#
17645# INIT-COMMANDS
17646#
2a6346c4
L
17647
17648srcdir="$srcdir"
17649host="$host"
17650target="$target"
17651with_multisubdir="$with_multisubdir"
17652with_multisrctop="$with_multisrctop"
17653with_target_subdir="$with_target_subdir"
17654ac_configure_args="${multilib_arg} ${ac_configure_args}"
17655multi_basedir="$multi_basedir"
17656CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17657CC="$CC"
17658CXX="$CXX"
17659GFORTRAN="$GFORTRAN"
22e05272 17660GDC="$GDC"
94213c10 17661AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
f35db108
WM
17662
17663
17664# The HP-UX ksh and POSIX shell print the target directory to stdout
17665# if CDPATH is set.
17666(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17667
17668sed_quote_subst='$sed_quote_subst'
17669double_quote_subst='$double_quote_subst'
17670delay_variable_subst='$delay_variable_subst'
17671macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17672macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17673enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17674enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17675pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17676enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17677SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17678ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17679host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17680host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17681host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17682build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17683build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17684build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17685SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17686Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17687GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17688EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17689FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17690LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17691NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17692LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17693max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17694ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17695exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17696lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17697lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17698lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17699reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17700reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17701OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17702deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17703file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17704AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17705AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17706STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17707RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17708old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17709old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17710old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17711lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17712CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17713CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17714compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17715GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17716lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17717lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17718lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17719lt_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"`'
f35db108
WM
17720objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17721MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17722lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
f35db108 17723lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
a2479b3d 17724lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17725lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17726lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17727need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17728DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17729NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17730LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17731OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17732OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17733libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17734shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17735extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17736archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17737enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17738export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17739whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17740compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17741old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17742old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17743archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17744archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17745module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17746module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17747with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17748allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17749no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17750hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
a2479b3d 17751hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17752hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17753hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17754hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17755hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17756hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17757hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17758inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17759link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
a2479b3d 17760fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17761always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17762export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17763exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17764include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17765prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17766file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17767variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17768need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17769need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17770version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17771runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17772shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17773shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17774libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17775library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17776soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17777install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17778postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17779postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17780finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17781finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17782hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17783sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17784sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17785hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17786enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17787enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17788enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17789old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17790striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17791compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17792predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17793postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17794predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17795postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17796compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17797LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17798reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17799reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17800old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17801compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17802GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17803lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
f35db108 17804lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
a2479b3d 17805lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17806lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17807lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17808archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17809enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17810export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17811whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17812compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17813old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17814old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17815archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17816archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17817module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17818module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17819with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17820allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17821no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17822hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
a2479b3d 17823hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17824hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17825hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17826hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17827hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17828hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17829hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17830inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17831link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
a2479b3d 17832fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17833always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17834export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17835exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17836include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17837prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17838file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17839hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17840compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17841predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17842postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17843predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17844postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17845compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17846
17847LTCC='$LTCC'
17848LTCFLAGS='$LTCFLAGS'
17849compiler='$compiler_DEFAULT'
17850
17851# A function that is used when there is no print builtin or printf.
17852func_fallback_echo ()
17853{
17854 eval 'cat <<_LTECHO_EOF
17855\$1
17856_LTECHO_EOF'
17857}
17858
17859# Quote evaled strings.
17860for var in SHELL \
17861ECHO \
f35db108
WM
17862SED \
17863GREP \
17864EGREP \
17865FGREP \
17866LD \
17867NM \
17868LN_S \
17869lt_SP2NL \
17870lt_NL2SP \
17871reload_flag \
17872OBJDUMP \
17873deplibs_check_method \
17874file_magic_cmd \
f35db108
WM
17875AR \
17876AR_FLAGS \
f35db108
WM
17877STRIP \
17878RANLIB \
17879CC \
17880CFLAGS \
17881compiler \
17882lt_cv_sys_global_symbol_pipe \
17883lt_cv_sys_global_symbol_to_cdecl \
17884lt_cv_sys_global_symbol_to_c_name_address \
17885lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
f35db108 17886lt_prog_compiler_no_builtin_flag \
f35db108 17887lt_prog_compiler_wl \
a2479b3d 17888lt_prog_compiler_pic \
f35db108
WM
17889lt_prog_compiler_static \
17890lt_cv_prog_compiler_c_o \
17891need_locks \
f35db108
WM
17892DSYMUTIL \
17893NMEDIT \
17894LIPO \
17895OTOOL \
17896OTOOL64 \
17897shrext_cmds \
17898export_dynamic_flag_spec \
17899whole_archive_flag_spec \
17900compiler_needs_object \
17901with_gnu_ld \
17902allow_undefined_flag \
17903no_undefined_flag \
17904hardcode_libdir_flag_spec \
a2479b3d 17905hardcode_libdir_flag_spec_ld \
f35db108 17906hardcode_libdir_separator \
a2479b3d 17907fix_srcfile_path \
f35db108
WM
17908exclude_expsyms \
17909include_expsyms \
17910file_list_spec \
17911variables_saved_for_relink \
17912libname_spec \
17913library_names_spec \
17914soname_spec \
17915install_override_mode \
17916finish_eval \
17917old_striplib \
17918striplib \
17919compiler_lib_search_dirs \
17920predep_objects \
17921postdep_objects \
17922predeps \
17923postdeps \
17924compiler_lib_search_path \
17925LD_CXX \
17926reload_flag_CXX \
17927compiler_CXX \
17928lt_prog_compiler_no_builtin_flag_CXX \
f35db108 17929lt_prog_compiler_wl_CXX \
a2479b3d 17930lt_prog_compiler_pic_CXX \
f35db108
WM
17931lt_prog_compiler_static_CXX \
17932lt_cv_prog_compiler_c_o_CXX \
17933export_dynamic_flag_spec_CXX \
17934whole_archive_flag_spec_CXX \
17935compiler_needs_object_CXX \
17936with_gnu_ld_CXX \
17937allow_undefined_flag_CXX \
17938no_undefined_flag_CXX \
17939hardcode_libdir_flag_spec_CXX \
a2479b3d 17940hardcode_libdir_flag_spec_ld_CXX \
f35db108 17941hardcode_libdir_separator_CXX \
a2479b3d 17942fix_srcfile_path_CXX \
f35db108
WM
17943exclude_expsyms_CXX \
17944include_expsyms_CXX \
17945file_list_spec_CXX \
17946compiler_lib_search_dirs_CXX \
17947predep_objects_CXX \
17948postdep_objects_CXX \
17949predeps_CXX \
17950postdeps_CXX \
17951compiler_lib_search_path_CXX; do
17952 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17953 *[\\\\\\\`\\"\\\$]*)
17954 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17955 ;;
17956 *)
17957 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17958 ;;
17959 esac
17960done
17961
17962# Double-quote double-evaled strings.
17963for var in reload_cmds \
17964old_postinstall_cmds \
17965old_postuninstall_cmds \
17966old_archive_cmds \
17967extract_expsyms_cmds \
17968old_archive_from_new_cmds \
17969old_archive_from_expsyms_cmds \
17970archive_cmds \
17971archive_expsym_cmds \
17972module_cmds \
17973module_expsym_cmds \
17974export_symbols_cmds \
17975prelink_cmds \
f35db108
WM
17976postinstall_cmds \
17977postuninstall_cmds \
17978finish_cmds \
17979sys_lib_search_path_spec \
17980sys_lib_dlsearch_path_spec \
17981reload_cmds_CXX \
17982old_archive_cmds_CXX \
17983old_archive_from_new_cmds_CXX \
17984old_archive_from_expsyms_cmds_CXX \
17985archive_cmds_CXX \
17986archive_expsym_cmds_CXX \
17987module_cmds_CXX \
17988module_expsym_cmds_CXX \
17989export_symbols_cmds_CXX \
a2479b3d 17990prelink_cmds_CXX; do
f35db108
WM
17991 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17992 *[\\\\\\\`\\"\\\$]*)
17993 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17994 ;;
17995 *)
17996 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17997 ;;
17998 esac
17999done
18000
18001ac_aux_dir='$ac_aux_dir'
18002xsi_shell='$xsi_shell'
18003lt_shell_append='$lt_shell_append'
18004
18005# See if we are running on zsh, and set the options which allow our
18006# commands through without removal of \ escapes INIT.
18007if test -n "\${ZSH_VERSION+set}" ; then
18008 setopt NO_GLOB_SUBST
18009fi
18010
18011
18012 PACKAGE='$PACKAGE'
18013 VERSION='$VERSION'
18014 TIMESTAMP='$TIMESTAMP'
18015 RM='$RM'
18016 ofile='$ofile'
18017
18018
18019
18020
18021
18022
c915a581
JJ
18023GCC="$GCC"
18024CC="$CC"
18025acx_cv_header_stdint="$acx_cv_header_stdint"
18026acx_cv_type_int8_t="$acx_cv_type_int8_t"
18027acx_cv_type_int16_t="$acx_cv_type_int16_t"
18028acx_cv_type_int32_t="$acx_cv_type_int32_t"
18029acx_cv_type_int64_t="$acx_cv_type_int64_t"
18030acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18031ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18032ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18033ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18034ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18035ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18036ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18037ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18038ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18039
18040
f35db108
WM
18041_ACEOF
18042
18043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18044
18045# Handling of arguments.
18046for ac_config_target in $ac_config_targets
18047do
18048 case $ac_config_target in
c915a581 18049 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
94213c10 18050 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
f35db108 18051 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
c915a581 18052 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
f35db108 18053 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35814b03 18054 "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
c915a581
JJ
18055 "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
18056 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
f35db108
WM
18057 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
18058 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
c915a581 18059 "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;;
ef1b3fda 18060 "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
f35db108 18061 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
de5a5fa1 18062 "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
cd0be65c 18063 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
f35db108 18064
22e05272 18065 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
f35db108
WM
18066 esac
18067done
18068
18069
18070# If the user did not use the arguments to specify the items to instantiate,
18071# then the envvar interface is used. Set only those that are not.
18072# We use the long form for the default assignment because of an extremely
18073# bizarre bug on SunOS 4.1.3.
18074if $ac_need_defaults; then
18075 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
c915a581 18076 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
f35db108
WM
18077 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18078fi
18079
18080# Have a temporary directory for convenience. Make it in the build tree
18081# simply because there is no reason against having it here, and in addition,
18082# creating and moving files from /tmp can sometimes cause problems.
18083# Hook for its removal unless debugging.
18084# Note that there is a small window in which the directory will not be cleaned:
18085# after its creation but before its name has been assigned to `$tmp'.
18086$debug ||
18087{
22e05272 18088 tmp= ac_tmp=
f35db108 18089 trap 'exit_status=$?
22e05272
JM
18090 : "${ac_tmp:=$tmp}"
18091 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
f35db108
WM
18092' 0
18093 trap 'as_fn_exit 1' 1 2 13 15
18094}
18095# Create a (secure) tmp directory for tmp files.
18096
18097{
18098 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 18099 test -d "$tmp"
f35db108
WM
18100} ||
18101{
18102 tmp=./conf$$-$RANDOM
18103 (umask 077 && mkdir "$tmp")
22e05272
JM
18104} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18105ac_tmp=$tmp
f35db108
WM
18106
18107# Set up the scripts for CONFIG_FILES section.
18108# No need to generate them if there are no CONFIG_FILES.
18109# This happens for instance with `./config.status config.h'.
18110if test -n "$CONFIG_FILES"; then
18111
18112
18113ac_cr=`echo X | tr X '\015'`
18114# On cygwin, bash can eat \r inside `` if the user requested igncr.
18115# But we know of no other shell where ac_cr would be empty at this
18116# point, so we can use a bashism as a fallback.
18117if test "x$ac_cr" = x; then
18118 eval ac_cr=\$\'\\r\'
18119fi
18120ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18121if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 18122 ac_cs_awk_cr='\\r'
f35db108
WM
18123else
18124 ac_cs_awk_cr=$ac_cr
18125fi
18126
22e05272 18127echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
f35db108
WM
18128_ACEOF
18129
18130
18131{
18132 echo "cat >conf$$subs.awk <<_ACEOF" &&
18133 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18134 echo "_ACEOF"
18135} >conf$$subs.sh ||
22e05272
JM
18136 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18137ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
f35db108
WM
18138ac_delim='%!_!# '
18139for ac_last_try in false false false false false :; do
18140 . ./conf$$subs.sh ||
22e05272 18141 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
f35db108
WM
18142
18143 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18144 if test $ac_delim_n = $ac_delim_num; then
18145 break
18146 elif $ac_last_try; then
22e05272 18147 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
f35db108
WM
18148 else
18149 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18150 fi
18151done
18152rm -f conf$$subs.sh
18153
18154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 18155cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
f35db108
WM
18156_ACEOF
18157sed -n '
18158h
18159s/^/S["/; s/!.*/"]=/
18160p
18161g
18162s/^[^!]*!//
18163:repl
18164t repl
18165s/'"$ac_delim"'$//
18166t delim
18167:nl
18168h
22e05272 18169s/\(.\{148\}\)..*/\1/
f35db108
WM
18170t more1
18171s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18172p
18173n
18174b repl
18175:more1
18176s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18177p
18178g
18179s/.\{148\}//
18180t nl
18181:delim
18182h
22e05272 18183s/\(.\{148\}\)..*/\1/
f35db108
WM
18184t more2
18185s/["\\]/\\&/g; s/^/"/; s/$/"/
18186p
18187b
18188:more2
18189s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18190p
18191g
18192s/.\{148\}//
18193t delim
18194' <conf$$subs.awk | sed '
18195/^[^""]/{
18196 N
18197 s/\n//
18198}
18199' >>$CONFIG_STATUS || ac_write_fail=1
18200rm -f conf$$subs.awk
18201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18202_ACAWK
22e05272 18203cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
f35db108
WM
18204 for (key in S) S_is_set[key] = 1
18205 FS = "\a"
18206
18207}
18208{
18209 line = $ 0
18210 nfields = split(line, field, "@")
18211 substed = 0
18212 len = length(field[1])
18213 for (i = 2; i < nfields; i++) {
18214 key = field[i]
18215 keylen = length(key)
18216 if (S_is_set[key]) {
18217 value = S[key]
18218 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18219 len += length(value) + length(field[++i])
18220 substed = 1
18221 } else
18222 len += 1 + keylen
18223 }
18224
18225 print line
18226}
18227
18228_ACAWK
18229_ACEOF
18230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18231if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18232 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18233else
18234 cat
22e05272
JM
18235fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18236 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
f35db108
WM
18237_ACEOF
18238
22e05272
JM
18239# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18240# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
f35db108
WM
18241# trailing colons and then remove the whole line if VPATH becomes empty
18242# (actually we leave an empty line to preserve line numbers).
18243if test "x$srcdir" = x.; then
22e05272
JM
18244 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18245h
18246s///
18247s/^/:/
18248s/[ ]*$/:/
18249s/:\$(srcdir):/:/g
18250s/:\${srcdir}:/:/g
18251s/:@srcdir@:/:/g
18252s/^:*//
f35db108 18253s/:*$//
22e05272
JM
18254x
18255s/\(=[ ]*\).*/\1/
18256G
18257s/\n//
f35db108
WM
18258s/^[^=]*=[ ]*$//
18259}'
18260fi
18261
18262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18263fi # test -n "$CONFIG_FILES"
18264
c915a581
JJ
18265# Set up the scripts for CONFIG_HEADERS section.
18266# No need to generate them if there are no CONFIG_HEADERS.
18267# This happens for instance with `./config.status Makefile'.
18268if test -n "$CONFIG_HEADERS"; then
22e05272 18269cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
c915a581
JJ
18270BEGIN {
18271_ACEOF
18272
18273# Transform confdefs.h into an awk script `defines.awk', embedded as
18274# here-document in config.status, that substitutes the proper values into
18275# config.h.in to produce config.h.
18276
18277# Create a delimiter string that does not exist in confdefs.h, to ease
18278# handling of long lines.
18279ac_delim='%!_!# '
18280for ac_last_try in false false :; do
22e05272
JM
18281 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18282 if test -z "$ac_tt"; then
c915a581
JJ
18283 break
18284 elif $ac_last_try; then
22e05272 18285 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
c915a581
JJ
18286 else
18287 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18288 fi
18289done
18290
18291# For the awk script, D is an array of macro values keyed by name,
18292# likewise P contains macro parameters if any. Preserve backslash
18293# newline sequences.
18294
18295ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18296sed -n '
18297s/.\{148\}/&'"$ac_delim"'/g
18298t rset
18299:rset
18300s/^[ ]*#[ ]*define[ ][ ]*/ /
18301t def
18302d
18303:def
18304s/\\$//
18305t bsnl
18306s/["\\]/\\&/g
18307s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18308D["\1"]=" \3"/p
18309s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18310d
18311:bsnl
18312s/["\\]/\\&/g
18313s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18314D["\1"]=" \3\\\\\\n"\\/p
18315t cont
18316s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18317t cont
18318d
18319:cont
18320n
18321s/.\{148\}/&'"$ac_delim"'/g
18322t clear
18323:clear
18324s/\\$//
18325t bsnlc
18326s/["\\]/\\&/g; s/^/"/; s/$/"/p
18327d
18328:bsnlc
18329s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18330b cont
18331' <confdefs.h | sed '
18332s/'"$ac_delim"'/"\\\
18333"/g' >>$CONFIG_STATUS || ac_write_fail=1
18334
18335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18336 for (key in D) D_is_set[key] = 1
18337 FS = "\a"
18338}
18339/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18340 line = \$ 0
18341 split(line, arg, " ")
18342 if (arg[1] == "#") {
18343 defundef = arg[2]
18344 mac1 = arg[3]
18345 } else {
18346 defundef = substr(arg[1], 2)
18347 mac1 = arg[2]
18348 }
18349 split(mac1, mac2, "(") #)
18350 macro = mac2[1]
18351 prefix = substr(line, 1, index(line, defundef) - 1)
18352 if (D_is_set[macro]) {
18353 # Preserve the white space surrounding the "#".
18354 print prefix "define", macro P[macro] D[macro]
18355 next
18356 } else {
18357 # Replace #undef with comments. This is necessary, for example,
18358 # in the case of _POSIX_SOURCE, which is predefined and required
18359 # on some systems where configure will not decide to define it.
18360 if (defundef == "undef") {
18361 print "/*", prefix defundef, macro, "*/"
18362 next
18363 }
18364 }
18365}
18366{ print }
18367_ACAWK
18368_ACEOF
18369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 18370 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
c915a581
JJ
18371fi # test -n "$CONFIG_HEADERS"
18372
f35db108 18373
c915a581 18374eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
f35db108
WM
18375shift
18376for ac_tag
18377do
18378 case $ac_tag in
18379 :[FHLC]) ac_mode=$ac_tag; continue;;
18380 esac
18381 case $ac_mode$ac_tag in
18382 :[FHL]*:*);;
22e05272 18383 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
f35db108
WM
18384 :[FH]-) ac_tag=-:-;;
18385 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18386 esac
18387 ac_save_IFS=$IFS
18388 IFS=:
18389 set x $ac_tag
18390 IFS=$ac_save_IFS
18391 shift
18392 ac_file=$1
18393 shift
18394
18395 case $ac_mode in
18396 :L) ac_source=$1;;
18397 :[FH])
18398 ac_file_inputs=
18399 for ac_f
18400 do
18401 case $ac_f in
22e05272 18402 -) ac_f="$ac_tmp/stdin";;
f35db108
WM
18403 *) # Look for the file first in the build tree, then in the source tree
18404 # (if the path is not absolute). The absolute path cannot be DOS-style,
18405 # because $ac_f cannot contain `:'.
18406 test -f "$ac_f" ||
18407 case $ac_f in
18408 [\\/$]*) false;;
18409 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18410 esac ||
22e05272 18411 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
f35db108
WM
18412 esac
18413 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18414 as_fn_append ac_file_inputs " '$ac_f'"
18415 done
18416
18417 # Let's still pretend it is `configure' which instantiates (i.e., don't
18418 # use $as_me), people would be surprised to read:
18419 # /* config.h. Generated by config.status. */
18420 configure_input='Generated from '`
18421 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18422 `' by configure.'
18423 if test x"$ac_file" != x-; then
18424 configure_input="$ac_file. $configure_input"
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18426$as_echo "$as_me: creating $ac_file" >&6;}
18427 fi
18428 # Neutralize special characters interpreted by sed in replacement strings.
18429 case $configure_input in #(
18430 *\&* | *\|* | *\\* )
18431 ac_sed_conf_input=`$as_echo "$configure_input" |
18432 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18433 *) ac_sed_conf_input=$configure_input;;
18434 esac
18435
18436 case $ac_tag in
22e05272
JM
18437 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18438 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
f35db108
WM
18439 esac
18440 ;;
18441 esac
18442
18443 ac_dir=`$as_dirname -- "$ac_file" ||
18444$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18445 X"$ac_file" : 'X\(//\)[^/]' \| \
18446 X"$ac_file" : 'X\(//\)$' \| \
18447 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18448$as_echo X"$ac_file" |
18449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18450 s//\1/
18451 q
18452 }
18453 /^X\(\/\/\)[^/].*/{
18454 s//\1/
18455 q
18456 }
18457 /^X\(\/\/\)$/{
18458 s//\1/
18459 q
18460 }
18461 /^X\(\/\).*/{
18462 s//\1/
18463 q
18464 }
18465 s/.*/./; q'`
18466 as_dir="$ac_dir"; as_fn_mkdir_p
18467 ac_builddir=.
18468
18469case "$ac_dir" in
18470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18471*)
18472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18473 # A ".." for each directory in $ac_dir_suffix.
18474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18475 case $ac_top_builddir_sub in
18476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18478 esac ;;
18479esac
18480ac_abs_top_builddir=$ac_pwd
18481ac_abs_builddir=$ac_pwd$ac_dir_suffix
18482# for backward compatibility:
18483ac_top_builddir=$ac_top_build_prefix
18484
18485case $srcdir in
18486 .) # We are building in place.
18487 ac_srcdir=.
18488 ac_top_srcdir=$ac_top_builddir_sub
18489 ac_abs_top_srcdir=$ac_pwd ;;
18490 [\\/]* | ?:[\\/]* ) # Absolute name.
18491 ac_srcdir=$srcdir$ac_dir_suffix;
18492 ac_top_srcdir=$srcdir
18493 ac_abs_top_srcdir=$srcdir ;;
18494 *) # Relative name.
18495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18496 ac_top_srcdir=$ac_top_build_prefix$srcdir
18497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18498esac
18499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18500
18501
18502 case $ac_mode in
18503 :F)
18504 #
18505 # CONFIG_FILE
18506 #
18507
18508 case $INSTALL in
18509 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18510 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18511 esac
18512 ac_MKDIR_P=$MKDIR_P
18513 case $MKDIR_P in
18514 [\\/$]* | ?:[\\/]* ) ;;
18515 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18516 esac
18517_ACEOF
18518
18519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18520# If the template does not know about datarootdir, expand it.
18521# FIXME: This hack should be removed a few years after 2.60.
18522ac_datarootdir_hack=; ac_datarootdir_seen=
18523ac_sed_dataroot='
18524/datarootdir/ {
18525 p
18526 q
18527}
18528/@datadir@/p
18529/@docdir@/p
18530/@infodir@/p
18531/@localedir@/p
18532/@mandir@/p'
18533case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18534*datarootdir*) ac_datarootdir_seen=yes;;
18535*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18537$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18538_ACEOF
18539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18540 ac_datarootdir_hack='
18541 s&@datadir@&$datadir&g
18542 s&@docdir@&$docdir&g
18543 s&@infodir@&$infodir&g
18544 s&@localedir@&$localedir&g
18545 s&@mandir@&$mandir&g
18546 s&\\\${datarootdir}&$datarootdir&g' ;;
18547esac
18548_ACEOF
18549
18550# Neutralize VPATH when `$srcdir' = `.'.
18551# Shell code in configure.ac might set extrasub.
18552# FIXME: do we really want to maintain this feature?
18553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18554ac_sed_extra="$ac_vpsub
18555$extrasub
18556_ACEOF
18557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18558:t
18559/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18560s|@configure_input@|$ac_sed_conf_input|;t t
18561s&@top_builddir@&$ac_top_builddir_sub&;t t
18562s&@top_build_prefix@&$ac_top_build_prefix&;t t
18563s&@srcdir@&$ac_srcdir&;t t
18564s&@abs_srcdir@&$ac_abs_srcdir&;t t
18565s&@top_srcdir@&$ac_top_srcdir&;t t
18566s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18567s&@builddir@&$ac_builddir&;t t
18568s&@abs_builddir@&$ac_abs_builddir&;t t
18569s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18570s&@INSTALL@&$ac_INSTALL&;t t
18571s&@MKDIR_P@&$ac_MKDIR_P&;t t
18572$ac_datarootdir_hack
18573"
22e05272
JM
18574eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18575 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
f35db108
WM
18576
18577test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
18578 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18579 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18580 "$ac_tmp/out"`; test -z "$ac_out"; } &&
f35db108 18581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 18582which seems to be undefined. Please make sure it is defined" >&5
f35db108 18583$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 18584which seems to be undefined. Please make sure it is defined" >&2;}
f35db108 18585
22e05272 18586 rm -f "$ac_tmp/stdin"
f35db108 18587 case $ac_file in
22e05272
JM
18588 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18589 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
f35db108 18590 esac \
22e05272 18591 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
f35db108 18592 ;;
c915a581
JJ
18593 :H)
18594 #
18595 # CONFIG_HEADER
18596 #
18597 if test x"$ac_file" != x-; then
18598 {
18599 $as_echo "/* $configure_input */" \
22e05272
JM
18600 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18601 } >"$ac_tmp/config.h" \
18602 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18603 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
c915a581
JJ
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18605$as_echo "$as_me: $ac_file is unchanged" >&6;}
18606 else
18607 rm -f "$ac_file"
22e05272
JM
18608 mv "$ac_tmp/config.h" "$ac_file" \
18609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
c915a581
JJ
18610 fi
18611 else
18612 $as_echo "/* $configure_input */" \
22e05272
JM
18613 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18614 || as_fn_error $? "could not create -" "$LINENO" 5
c915a581
JJ
18615 fi
18616# Compute "$ac_file"'s index in $config_headers.
18617_am_arg="$ac_file"
18618_am_stamp_count=1
18619for _am_header in $config_headers :; do
18620 case $_am_header in
18621 $_am_arg | $_am_arg:* )
18622 break ;;
18623 * )
18624 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18625 esac
18626done
18627echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18628$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18629 X"$_am_arg" : 'X\(//\)[^/]' \| \
18630 X"$_am_arg" : 'X\(//\)$' \| \
18631 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18632$as_echo X"$_am_arg" |
18633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18634 s//\1/
18635 q
18636 }
18637 /^X\(\/\/\)[^/].*/{
18638 s//\1/
18639 q
18640 }
18641 /^X\(\/\/\)$/{
18642 s//\1/
18643 q
18644 }
18645 /^X\(\/\).*/{
18646 s//\1/
18647 q
18648 }
18649 s/.*/./; q'`/stamp-h$_am_stamp_count
18650 ;;
f35db108
WM
18651
18652 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18653$as_echo "$as_me: executing $ac_file commands" >&6;}
18654 ;;
18655 esac
18656
18657
18658 case $ac_file$ac_mode in
94213c10
MK
18659 "default-1":C)
18660# Only add multilib support code if we just rebuilt the top-level
18661# Makefile.
18662case " $CONFIG_FILES " in
18663 *" Makefile "*)
18664 ac_file=Makefile . ${multi_basedir}/config-ml.in
18665 ;;
18666esac ;;
f35db108 18667 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 18668 # Older Autoconf quotes --file arguments for eval, but not when files
f35db108
WM
18669 # are listed without --file. Let's play safe and only enable the eval
18670 # if we detect the quoting.
18671 case $CONFIG_FILES in
18672 *\'*) eval set x "$CONFIG_FILES" ;;
18673 *) set x $CONFIG_FILES ;;
18674 esac
18675 shift
18676 for mf
18677 do
18678 # Strip MF so we end up with the name of the file.
18679 mf=`echo "$mf" | sed -e 's/:.*$//'`
18680 # Check whether this is an Automake generated Makefile or not.
22e05272 18681 # We used to match only the files named 'Makefile.in', but
f35db108
WM
18682 # some people rename them; so instead we look at the file content.
18683 # Grep'ing the first line is not enough: some people post-process
18684 # each Makefile.in and add a new line on top of each file to say so.
18685 # Grep'ing the whole file is not good either: AIX grep has a line
18686 # limit of 2048, but all sed's we know have understand at least 4000.
18687 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18688 dirpart=`$as_dirname -- "$mf" ||
18689$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18690 X"$mf" : 'X\(//\)[^/]' \| \
18691 X"$mf" : 'X\(//\)$' \| \
18692 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18693$as_echo X"$mf" |
18694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18695 s//\1/
18696 q
18697 }
18698 /^X\(\/\/\)[^/].*/{
18699 s//\1/
18700 q
18701 }
18702 /^X\(\/\/\)$/{
18703 s//\1/
18704 q
18705 }
18706 /^X\(\/\).*/{
18707 s//\1/
18708 q
18709 }
18710 s/.*/./; q'`
18711 else
18712 continue
18713 fi
18714 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 18715 # from the Makefile without running 'make'.
f35db108
WM
18716 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18717 test -z "$DEPDIR" && continue
18718 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 18719 test -z "$am__include" && continue
f35db108 18720 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
f35db108
WM
18721 # Find all dependency output files, they are included files with
18722 # $(DEPDIR) in their names. We invoke sed twice because it is the
18723 # simplest approach to changing $(DEPDIR) to its actual value in the
18724 # expansion.
18725 for file in `sed -n "
18726 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 18727 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
f35db108
WM
18728 # Make sure the directory exists.
18729 test -f "$dirpart/$file" && continue
18730 fdir=`$as_dirname -- "$file" ||
18731$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18732 X"$file" : 'X\(//\)[^/]' \| \
18733 X"$file" : 'X\(//\)$' \| \
18734 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18735$as_echo X"$file" |
18736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18737 s//\1/
18738 q
18739 }
18740 /^X\(\/\/\)[^/].*/{
18741 s//\1/
18742 q
18743 }
18744 /^X\(\/\/\)$/{
18745 s//\1/
18746 q
18747 }
18748 /^X\(\/\).*/{
18749 s//\1/
18750 q
18751 }
18752 s/.*/./; q'`
18753 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18754 # echo "creating $dirpart/$file"
18755 echo '# dummy' > "$dirpart/$file"
18756 done
18757 done
18758}
18759 ;;
18760 "libtool":C)
18761
18762 # See if we are running on zsh, and set the options which allow our
18763 # commands through without removal of \ escapes.
18764 if test -n "${ZSH_VERSION+set}" ; then
18765 setopt NO_GLOB_SUBST
18766 fi
18767
18768 cfgfile="${ofile}T"
18769 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18770 $RM "$cfgfile"
18771
18772 cat <<_LT_EOF >> "$cfgfile"
18773#! $SHELL
18774
18775# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18776# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18777# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18778# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18779#
18780# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
a2479b3d 18781# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
f35db108
WM
18782# Written by Gordon Matzigkeit, 1996
18783#
18784# This file is part of GNU Libtool.
18785#
18786# GNU Libtool is free software; you can redistribute it and/or
18787# modify it under the terms of the GNU General Public License as
18788# published by the Free Software Foundation; either version 2 of
18789# the License, or (at your option) any later version.
18790#
18791# As a special exception to the GNU General Public License,
18792# if you distribute this file as part of a program or library that
18793# is built using GNU Libtool, you may include this file under the
18794# same distribution terms that you use for the rest of that program.
18795#
18796# GNU Libtool is distributed in the hope that it will be useful,
18797# but WITHOUT ANY WARRANTY; without even the implied warranty of
18798# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18799# GNU General Public License for more details.
18800#
18801# You should have received a copy of the GNU General Public License
18802# along with GNU Libtool; see the file COPYING. If not, a copy
18803# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18804# obtained by writing to the Free Software Foundation, Inc.,
18805# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18806
18807
18808# The names of the tagged configurations supported by this script.
18809available_tags="CXX "
18810
18811# ### BEGIN LIBTOOL CONFIG
18812
18813# Which release of libtool.m4 was used?
18814macro_version=$macro_version
18815macro_revision=$macro_revision
18816
18817# Whether or not to build shared libraries.
18818build_libtool_libs=$enable_shared
18819
18820# Whether or not to build static libraries.
18821build_old_libs=$enable_static
18822
18823# What type of objects to build.
18824pic_mode=$pic_mode
18825
18826# Whether or not to optimize for fast installation.
18827fast_install=$enable_fast_install
18828
18829# Shell to use when invoking shell scripts.
18830SHELL=$lt_SHELL
18831
18832# An echo program that protects backslashes.
18833ECHO=$lt_ECHO
18834
f35db108
WM
18835# The host system.
18836host_alias=$host_alias
18837host=$host
18838host_os=$host_os
18839
18840# The build system.
18841build_alias=$build_alias
18842build=$build
18843build_os=$build_os
18844
18845# A sed program that does not truncate output.
18846SED=$lt_SED
18847
18848# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18849Xsed="\$SED -e 1s/^X//"
18850
18851# A grep program that handles long lines.
18852GREP=$lt_GREP
18853
18854# An ERE matcher.
18855EGREP=$lt_EGREP
18856
18857# A literal string matcher.
18858FGREP=$lt_FGREP
18859
18860# A BSD- or MS-compatible name lister.
18861NM=$lt_NM
18862
18863# Whether we need soft or hard links.
18864LN_S=$lt_LN_S
18865
18866# What is the maximum length of a command?
18867max_cmd_len=$max_cmd_len
18868
18869# Object file suffix (normally "o").
18870objext=$ac_objext
18871
18872# Executable file suffix (normally "").
18873exeext=$exeext
18874
18875# whether the shell understands "unset".
18876lt_unset=$lt_unset
18877
18878# turn spaces into newlines.
18879SP2NL=$lt_lt_SP2NL
18880
18881# turn newlines into spaces.
18882NL2SP=$lt_lt_NL2SP
18883
f35db108
WM
18884# An object symbol dumper.
18885OBJDUMP=$lt_OBJDUMP
18886
18887# Method to check whether dependent libraries are shared objects.
18888deplibs_check_method=$lt_deplibs_check_method
18889
a2479b3d 18890# Command to use when deplibs_check_method == "file_magic".
f35db108
WM
18891file_magic_cmd=$lt_file_magic_cmd
18892
f35db108
WM
18893# The archiver.
18894AR=$lt_AR
f35db108
WM
18895AR_FLAGS=$lt_AR_FLAGS
18896
f35db108
WM
18897# A symbol stripping program.
18898STRIP=$lt_STRIP
18899
18900# Commands used to install an old-style archive.
18901RANLIB=$lt_RANLIB
18902old_postinstall_cmds=$lt_old_postinstall_cmds
18903old_postuninstall_cmds=$lt_old_postuninstall_cmds
18904
18905# Whether to use a lock for old archive extraction.
18906lock_old_archive_extraction=$lock_old_archive_extraction
18907
18908# A C compiler.
18909LTCC=$lt_CC
18910
18911# LTCC compiler flags.
18912LTCFLAGS=$lt_CFLAGS
18913
18914# Take the output of nm and produce a listing of raw symbols and C names.
18915global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18916
18917# Transform the output of nm in a proper C declaration.
18918global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18919
18920# Transform the output of nm in a C name address pair.
18921global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18922
18923# Transform the output of nm in a C name address pair when lib prefix is needed.
18924global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18925
f35db108
WM
18926# The name of the directory that contains temporary libtool files.
18927objdir=$objdir
18928
18929# Used to examine libraries when file_magic_cmd begins with "file".
18930MAGIC_CMD=$MAGIC_CMD
18931
18932# Must we lock files when doing compilation?
18933need_locks=$lt_need_locks
18934
f35db108
WM
18935# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18936DSYMUTIL=$lt_DSYMUTIL
18937
18938# Tool to change global to local symbols on Mac OS X.
18939NMEDIT=$lt_NMEDIT
18940
18941# Tool to manipulate fat objects and archives on Mac OS X.
18942LIPO=$lt_LIPO
18943
18944# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18945OTOOL=$lt_OTOOL
18946
18947# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18948OTOOL64=$lt_OTOOL64
18949
18950# Old archive suffix (normally "a").
18951libext=$libext
18952
18953# Shared library suffix (normally ".so").
18954shrext_cmds=$lt_shrext_cmds
18955
18956# The commands to extract the exported symbol list from a shared archive.
18957extract_expsyms_cmds=$lt_extract_expsyms_cmds
18958
18959# Variables whose values should be saved in libtool wrapper scripts and
18960# restored at link time.
18961variables_saved_for_relink=$lt_variables_saved_for_relink
18962
18963# Do we need the "lib" prefix for modules?
18964need_lib_prefix=$need_lib_prefix
18965
18966# Do we need a version for libraries?
18967need_version=$need_version
18968
18969# Library versioning type.
18970version_type=$version_type
18971
18972# Shared library runtime path variable.
18973runpath_var=$runpath_var
18974
18975# Shared library path variable.
18976shlibpath_var=$shlibpath_var
18977
18978# Is shlibpath searched before the hard-coded library search path?
18979shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18980
18981# Format of library name prefix.
18982libname_spec=$lt_libname_spec
18983
18984# List of archive names. First name is the real one, the rest are links.
18985# The last name is the one that the linker finds with -lNAME
18986library_names_spec=$lt_library_names_spec
18987
18988# The coded name of the library, if different from the real name.
18989soname_spec=$lt_soname_spec
18990
18991# Permission mode override for installation of shared libraries.
18992install_override_mode=$lt_install_override_mode
18993
18994# Command to use after installation of a shared archive.
18995postinstall_cmds=$lt_postinstall_cmds
18996
18997# Command to use after uninstallation of a shared archive.
18998postuninstall_cmds=$lt_postuninstall_cmds
18999
19000# Commands used to finish a libtool library installation in a directory.
19001finish_cmds=$lt_finish_cmds
19002
19003# As "finish_cmds", except a single script fragment to be evaled but
19004# not shown.
19005finish_eval=$lt_finish_eval
19006
19007# Whether we should hardcode library paths into libraries.
19008hardcode_into_libs=$hardcode_into_libs
19009
19010# Compile-time system search path for libraries.
19011sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19012
19013# Run-time system search path for libraries.
19014sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19015
19016# Whether dlopen is supported.
19017dlopen_support=$enable_dlopen
19018
19019# Whether dlopen of programs is supported.
19020dlopen_self=$enable_dlopen_self
19021
19022# Whether dlopen of statically linked programs is supported.
19023dlopen_self_static=$enable_dlopen_self_static
19024
19025# Commands to strip libraries.
19026old_striplib=$lt_old_striplib
19027striplib=$lt_striplib
19028
19029
19030# The linker used to build libraries.
19031LD=$lt_LD
19032
19033# How to create reloadable object files.
19034reload_flag=$lt_reload_flag
19035reload_cmds=$lt_reload_cmds
19036
19037# Commands used to build an old-style archive.
19038old_archive_cmds=$lt_old_archive_cmds
19039
19040# A language specific compiler.
19041CC=$lt_compiler
19042
19043# Is the compiler the GNU compiler?
19044with_gcc=$GCC
19045
19046# Compiler flag to turn off builtin functions.
19047no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19048
f35db108
WM
19049# How to pass a linker flag through the compiler.
19050wl=$lt_lt_prog_compiler_wl
19051
a2479b3d
L
19052# Additional compiler flags for building library objects.
19053pic_flag=$lt_lt_prog_compiler_pic
19054
f35db108
WM
19055# Compiler flag to prevent dynamic linking.
19056link_static_flag=$lt_lt_prog_compiler_static
19057
19058# Does compiler simultaneously support -c and -o options?
19059compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19060
19061# Whether or not to add -lc for building shared libraries.
19062build_libtool_need_lc=$archive_cmds_need_lc
19063
19064# Whether or not to disallow shared libs when runtime libs are static.
19065allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19066
19067# Compiler flag to allow reflexive dlopens.
19068export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19069
19070# Compiler flag to generate shared objects directly from archives.
19071whole_archive_flag_spec=$lt_whole_archive_flag_spec
19072
19073# Whether the compiler copes with passing no objects directly.
19074compiler_needs_object=$lt_compiler_needs_object
19075
19076# Create an old-style archive from a shared archive.
19077old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19078
19079# Create a temporary old-style archive to link instead of a shared archive.
19080old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19081
19082# Commands used to build a shared archive.
19083archive_cmds=$lt_archive_cmds
19084archive_expsym_cmds=$lt_archive_expsym_cmds
19085
19086# Commands used to build a loadable module if different from building
19087# a shared archive.
19088module_cmds=$lt_module_cmds
19089module_expsym_cmds=$lt_module_expsym_cmds
19090
19091# Whether we are building with GNU ld or not.
19092with_gnu_ld=$lt_with_gnu_ld
19093
19094# Flag that allows shared libraries with undefined symbols to be built.
19095allow_undefined_flag=$lt_allow_undefined_flag
19096
19097# Flag that enforces no undefined symbols.
19098no_undefined_flag=$lt_no_undefined_flag
19099
19100# Flag to hardcode \$libdir into a binary during linking.
19101# This must work even if \$libdir does not exist
19102hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19103
a2479b3d
L
19104# If ld is used when linking, flag to hardcode \$libdir into a binary
19105# during linking. This must work even if \$libdir does not exist.
19106hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19107
f35db108
WM
19108# Whether we need a single "-rpath" flag with a separated argument.
19109hardcode_libdir_separator=$lt_hardcode_libdir_separator
19110
19111# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19112# DIR into the resulting binary.
19113hardcode_direct=$hardcode_direct
19114
19115# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19116# DIR into the resulting binary and the resulting library dependency is
19117# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19118# library is relocated.
19119hardcode_direct_absolute=$hardcode_direct_absolute
19120
19121# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19122# into the resulting binary.
19123hardcode_minus_L=$hardcode_minus_L
19124
19125# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19126# into the resulting binary.
19127hardcode_shlibpath_var=$hardcode_shlibpath_var
19128
19129# Set to "yes" if building a shared library automatically hardcodes DIR
19130# into the library and all subsequent libraries and executables linked
19131# against it.
19132hardcode_automatic=$hardcode_automatic
19133
19134# Set to yes if linker adds runtime paths of dependent libraries
19135# to runtime path list.
19136inherit_rpath=$inherit_rpath
19137
19138# Whether libtool must link a program against all its dependency libraries.
19139link_all_deplibs=$link_all_deplibs
19140
a2479b3d
L
19141# Fix the shell variable \$srcfile for the compiler.
19142fix_srcfile_path=$lt_fix_srcfile_path
19143
f35db108
WM
19144# Set to "yes" if exported symbols are required.
19145always_export_symbols=$always_export_symbols
19146
19147# The commands to list exported symbols.
19148export_symbols_cmds=$lt_export_symbols_cmds
19149
19150# Symbols that should not be listed in the preloaded symbols.
19151exclude_expsyms=$lt_exclude_expsyms
19152
19153# Symbols that must always be exported.
19154include_expsyms=$lt_include_expsyms
19155
19156# Commands necessary for linking programs (against libraries) with templates.
19157prelink_cmds=$lt_prelink_cmds
19158
f35db108
WM
19159# Specify filename containing input files.
19160file_list_spec=$lt_file_list_spec
19161
19162# How to hardcode a shared library path into an executable.
19163hardcode_action=$hardcode_action
19164
19165# The directories searched by this compiler when creating a shared library.
19166compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19167
19168# Dependencies to place before and after the objects being linked to
19169# create a shared library.
19170predep_objects=$lt_predep_objects
19171postdep_objects=$lt_postdep_objects
19172predeps=$lt_predeps
19173postdeps=$lt_postdeps
19174
19175# The library search path used internally by the compiler when linking
19176# a shared library.
19177compiler_lib_search_path=$lt_compiler_lib_search_path
19178
19179# ### END LIBTOOL CONFIG
19180
19181_LT_EOF
19182
19183 case $host_os in
19184 aix3*)
19185 cat <<\_LT_EOF >> "$cfgfile"
19186# AIX sometimes has problems with the GCC collect2 program. For some
19187# reason, if we set the COLLECT_NAMES environment variable, the problems
19188# vanish in a puff of smoke.
19189if test "X${COLLECT_NAMES+set}" != Xset; then
19190 COLLECT_NAMES=
19191 export COLLECT_NAMES
19192fi
19193_LT_EOF
19194 ;;
19195 esac
19196
19197
19198ltmain="$ac_aux_dir/ltmain.sh"
19199
19200
19201 # We use sed instead of cat because bash on DJGPP gets confused if
19202 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19203 # text mode, it properly converts lines to CR/LF. This bash problem
19204 # is reportedly fixed, but why not run on old versions too?
a2479b3d
L
19205 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19206 || (rm -f "$cfgfile"; exit 1)
19207
19208 case $xsi_shell in
19209 yes)
19210 cat << \_LT_EOF >> "$cfgfile"
19211
19212# func_dirname file append nondir_replacement
19213# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19214# otherwise set result to NONDIR_REPLACEMENT.
19215func_dirname ()
19216{
19217 case ${1} in
19218 */*) func_dirname_result="${1%/*}${2}" ;;
19219 * ) func_dirname_result="${3}" ;;
19220 esac
19221}
19222
19223# func_basename file
19224func_basename ()
19225{
19226 func_basename_result="${1##*/}"
19227}
19228
19229# func_dirname_and_basename file append nondir_replacement
19230# perform func_basename and func_dirname in a single function
19231# call:
19232# dirname: Compute the dirname of FILE. If nonempty,
19233# add APPEND to the result, otherwise set result
19234# to NONDIR_REPLACEMENT.
19235# value returned in "$func_dirname_result"
19236# basename: Compute filename of FILE.
19237# value retuned in "$func_basename_result"
19238# Implementation must be kept synchronized with func_dirname
19239# and func_basename. For efficiency, we do not delegate to
19240# those functions but instead duplicate the functionality here.
19241func_dirname_and_basename ()
19242{
19243 case ${1} in
19244 */*) func_dirname_result="${1%/*}${2}" ;;
19245 * ) func_dirname_result="${3}" ;;
19246 esac
19247 func_basename_result="${1##*/}"
19248}
19249
19250# func_stripname prefix suffix name
19251# strip PREFIX and SUFFIX off of NAME.
19252# PREFIX and SUFFIX must not contain globbing or regex special
19253# characters, hashes, percent signs, but SUFFIX may contain a leading
19254# dot (in which case that matches only a dot).
19255func_stripname ()
19256{
19257 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19258 # positional parameters, so assign one to ordinary parameter first.
19259 func_stripname_result=${3}
19260 func_stripname_result=${func_stripname_result#"${1}"}
19261 func_stripname_result=${func_stripname_result%"${2}"}
19262}
19263
19264# func_opt_split
19265func_opt_split ()
19266{
19267 func_opt_split_opt=${1%%=*}
19268 func_opt_split_arg=${1#*=}
19269}
19270
19271# func_lo2o object
19272func_lo2o ()
19273{
19274 case ${1} in
19275 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19276 *) func_lo2o_result=${1} ;;
19277 esac
19278}
19279
19280# func_xform libobj-or-source
19281func_xform ()
19282{
19283 func_xform_result=${1%.*}.lo
19284}
19285
19286# func_arith arithmetic-term...
19287func_arith ()
19288{
19289 func_arith_result=$(( $* ))
19290}
19291
19292# func_len string
19293# STRING may not start with a hyphen.
19294func_len ()
19295{
19296 func_len_result=${#1}
19297}
19298
19299_LT_EOF
19300 ;;
19301 *) # Bourne compatible functions.
19302 cat << \_LT_EOF >> "$cfgfile"
19303
19304# func_dirname file append nondir_replacement
19305# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19306# otherwise set result to NONDIR_REPLACEMENT.
19307func_dirname ()
19308{
19309 # Extract subdirectory from the argument.
19310 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19311 if test "X$func_dirname_result" = "X${1}"; then
19312 func_dirname_result="${3}"
19313 else
19314 func_dirname_result="$func_dirname_result${2}"
19315 fi
19316}
19317
19318# func_basename file
19319func_basename ()
19320{
19321 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19322}
19323
19324
19325# func_stripname prefix suffix name
19326# strip PREFIX and SUFFIX off of NAME.
19327# PREFIX and SUFFIX must not contain globbing or regex special
19328# characters, hashes, percent signs, but SUFFIX may contain a leading
19329# dot (in which case that matches only a dot).
19330# func_strip_suffix prefix name
19331func_stripname ()
19332{
19333 case ${2} in
19334 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19335 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19336 esac
19337}
19338
19339# sed scripts:
19340my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19341my_sed_long_arg='1s/^-[^=]*=//'
19342
19343# func_opt_split
19344func_opt_split ()
19345{
19346 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19347 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19348}
19349
19350# func_lo2o object
19351func_lo2o ()
19352{
19353 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19354}
19355
19356# func_xform libobj-or-source
19357func_xform ()
19358{
19359 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19360}
19361
19362# func_arith arithmetic-term...
19363func_arith ()
19364{
19365 func_arith_result=`expr "$@"`
19366}
19367
19368# func_len string
19369# STRING may not start with a hyphen.
19370func_len ()
19371{
19372 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19373}
19374
19375_LT_EOF
19376esac
19377
19378case $lt_shell_append in
19379 yes)
19380 cat << \_LT_EOF >> "$cfgfile"
19381
19382# func_append var value
19383# Append VALUE to the end of shell variable VAR.
19384func_append ()
19385{
19386 eval "$1+=\$2"
19387}
19388_LT_EOF
19389 ;;
19390 *)
19391 cat << \_LT_EOF >> "$cfgfile"
19392
19393# func_append var value
19394# Append VALUE to the end of shell variable VAR.
19395func_append ()
19396{
19397 eval "$1=\$$1\$2"
19398}
19399
19400_LT_EOF
19401 ;;
19402 esac
19403
19404
19405 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19406 || (rm -f "$cfgfile"; exit 1)
19407
19408 mv -f "$cfgfile" "$ofile" ||
f35db108
WM
19409 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19410 chmod +x "$ofile"
19411
19412
19413 cat <<_LT_EOF >> "$ofile"
19414
19415# ### BEGIN LIBTOOL TAG CONFIG: CXX
19416
19417# The linker used to build libraries.
19418LD=$lt_LD_CXX
19419
19420# How to create reloadable object files.
19421reload_flag=$lt_reload_flag_CXX
19422reload_cmds=$lt_reload_cmds_CXX
19423
19424# Commands used to build an old-style archive.
19425old_archive_cmds=$lt_old_archive_cmds_CXX
19426
19427# A language specific compiler.
19428CC=$lt_compiler_CXX
19429
19430# Is the compiler the GNU compiler?
19431with_gcc=$GCC_CXX
19432
19433# Compiler flag to turn off builtin functions.
19434no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19435
f35db108
WM
19436# How to pass a linker flag through the compiler.
19437wl=$lt_lt_prog_compiler_wl_CXX
19438
a2479b3d
L
19439# Additional compiler flags for building library objects.
19440pic_flag=$lt_lt_prog_compiler_pic_CXX
19441
f35db108
WM
19442# Compiler flag to prevent dynamic linking.
19443link_static_flag=$lt_lt_prog_compiler_static_CXX
19444
19445# Does compiler simultaneously support -c and -o options?
19446compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19447
19448# Whether or not to add -lc for building shared libraries.
19449build_libtool_need_lc=$archive_cmds_need_lc_CXX
19450
19451# Whether or not to disallow shared libs when runtime libs are static.
19452allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19453
19454# Compiler flag to allow reflexive dlopens.
19455export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19456
19457# Compiler flag to generate shared objects directly from archives.
19458whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19459
19460# Whether the compiler copes with passing no objects directly.
19461compiler_needs_object=$lt_compiler_needs_object_CXX
19462
19463# Create an old-style archive from a shared archive.
19464old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19465
19466# Create a temporary old-style archive to link instead of a shared archive.
19467old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19468
19469# Commands used to build a shared archive.
19470archive_cmds=$lt_archive_cmds_CXX
19471archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19472
19473# Commands used to build a loadable module if different from building
19474# a shared archive.
19475module_cmds=$lt_module_cmds_CXX
19476module_expsym_cmds=$lt_module_expsym_cmds_CXX
19477
19478# Whether we are building with GNU ld or not.
19479with_gnu_ld=$lt_with_gnu_ld_CXX
19480
19481# Flag that allows shared libraries with undefined symbols to be built.
19482allow_undefined_flag=$lt_allow_undefined_flag_CXX
19483
19484# Flag that enforces no undefined symbols.
19485no_undefined_flag=$lt_no_undefined_flag_CXX
19486
19487# Flag to hardcode \$libdir into a binary during linking.
19488# This must work even if \$libdir does not exist
19489hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19490
a2479b3d
L
19491# If ld is used when linking, flag to hardcode \$libdir into a binary
19492# during linking. This must work even if \$libdir does not exist.
19493hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19494
f35db108
WM
19495# Whether we need a single "-rpath" flag with a separated argument.
19496hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19497
19498# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19499# DIR into the resulting binary.
19500hardcode_direct=$hardcode_direct_CXX
19501
19502# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19503# DIR into the resulting binary and the resulting library dependency is
19504# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19505# library is relocated.
19506hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19507
19508# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19509# into the resulting binary.
19510hardcode_minus_L=$hardcode_minus_L_CXX
19511
19512# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19513# into the resulting binary.
19514hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19515
19516# Set to "yes" if building a shared library automatically hardcodes DIR
19517# into the library and all subsequent libraries and executables linked
19518# against it.
19519hardcode_automatic=$hardcode_automatic_CXX
19520
19521# Set to yes if linker adds runtime paths of dependent libraries
19522# to runtime path list.
19523inherit_rpath=$inherit_rpath_CXX
19524
19525# Whether libtool must link a program against all its dependency libraries.
19526link_all_deplibs=$link_all_deplibs_CXX
19527
a2479b3d
L
19528# Fix the shell variable \$srcfile for the compiler.
19529fix_srcfile_path=$lt_fix_srcfile_path_CXX
19530
f35db108
WM
19531# Set to "yes" if exported symbols are required.
19532always_export_symbols=$always_export_symbols_CXX
19533
19534# The commands to list exported symbols.
19535export_symbols_cmds=$lt_export_symbols_cmds_CXX
19536
19537# Symbols that should not be listed in the preloaded symbols.
19538exclude_expsyms=$lt_exclude_expsyms_CXX
19539
19540# Symbols that must always be exported.
19541include_expsyms=$lt_include_expsyms_CXX
19542
19543# Commands necessary for linking programs (against libraries) with templates.
19544prelink_cmds=$lt_prelink_cmds_CXX
19545
f35db108
WM
19546# Specify filename containing input files.
19547file_list_spec=$lt_file_list_spec_CXX
19548
19549# How to hardcode a shared library path into an executable.
19550hardcode_action=$hardcode_action_CXX
19551
19552# The directories searched by this compiler when creating a shared library.
19553compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19554
19555# Dependencies to place before and after the objects being linked to
19556# create a shared library.
19557predep_objects=$lt_predep_objects_CXX
19558postdep_objects=$lt_postdep_objects_CXX
19559predeps=$lt_predeps_CXX
19560postdeps=$lt_postdeps_CXX
19561
19562# The library search path used internally by the compiler when linking
19563# a shared library.
19564compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19565
19566# ### END LIBTOOL TAG CONFIG: CXX
19567_LT_EOF
19568
c915a581
JJ
19569 ;;
19570 "gstdint.h":C)
19571if test "$GCC" = yes; then
19572 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19573else
19574 echo "/* generated for $CC */" > tmp-stdint.h
19575fi
19576
19577sed 's/^ *//' >> tmp-stdint.h <<EOF
19578
19579 #ifndef GCC_GENERATED_STDINT_H
19580 #define GCC_GENERATED_STDINT_H 1
19581
19582 #include <sys/types.h>
19583EOF
19584
19585if test "$acx_cv_header_stdint" != stdint.h; then
19586 echo "#include <stddef.h>" >> tmp-stdint.h
19587fi
19588if test "$acx_cv_header_stdint" != stddef.h; then
19589 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19590fi
19591
19592sed 's/^ *//' >> tmp-stdint.h <<EOF
19593 /* glibc uses these symbols as guards to prevent redefinitions. */
19594 #ifdef __int8_t_defined
19595 #define _INT8_T
19596 #define _INT16_T
19597 #define _INT32_T
19598 #endif
19599 #ifdef __uint32_t_defined
19600 #define _UINT32_T
19601 #endif
19602
19603EOF
19604
19605# ----------------- done header, emit basic int types -------------
19606if test "$acx_cv_header_stdint" = stddef.h; then
19607 sed 's/^ *//' >> tmp-stdint.h <<EOF
19608
19609 #ifndef _UINT8_T
19610 #define _UINT8_T
19611 #ifndef __uint8_t_defined
19612 #define __uint8_t_defined
19613 #ifndef uint8_t
19614 typedef unsigned $acx_cv_type_int8_t uint8_t;
19615 #endif
19616 #endif
19617 #endif
19618
19619 #ifndef _UINT16_T
19620 #define _UINT16_T
19621 #ifndef __uint16_t_defined
19622 #define __uint16_t_defined
19623 #ifndef uint16_t
19624 typedef unsigned $acx_cv_type_int16_t uint16_t;
19625 #endif
19626 #endif
19627 #endif
19628
19629 #ifndef _UINT32_T
19630 #define _UINT32_T
19631 #ifndef __uint32_t_defined
19632 #define __uint32_t_defined
19633 #ifndef uint32_t
19634 typedef unsigned $acx_cv_type_int32_t uint32_t;
19635 #endif
19636 #endif
19637 #endif
19638
19639 #ifndef _INT8_T
19640 #define _INT8_T
19641 #ifndef __int8_t_defined
19642 #define __int8_t_defined
19643 #ifndef int8_t
19644 typedef $acx_cv_type_int8_t int8_t;
19645 #endif
19646 #endif
19647 #endif
19648
19649 #ifndef _INT16_T
19650 #define _INT16_T
19651 #ifndef __int16_t_defined
19652 #define __int16_t_defined
19653 #ifndef int16_t
19654 typedef $acx_cv_type_int16_t int16_t;
19655 #endif
19656 #endif
19657 #endif
19658
19659 #ifndef _INT32_T
19660 #define _INT32_T
19661 #ifndef __int32_t_defined
19662 #define __int32_t_defined
19663 #ifndef int32_t
19664 typedef $acx_cv_type_int32_t int32_t;
19665 #endif
19666 #endif
19667 #endif
19668EOF
19669elif test "$ac_cv_type_u_int32_t" = yes; then
19670 sed 's/^ *//' >> tmp-stdint.h <<EOF
19671
19672 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19673 #ifndef _INT8_T
19674 #define _INT8_T
19675 #endif
19676 #ifndef _INT16_T
19677 #define _INT16_T
19678 #endif
19679 #ifndef _INT32_T
19680 #define _INT32_T
19681 #endif
19682
19683 #ifndef _UINT8_T
19684 #define _UINT8_T
19685 #ifndef __uint8_t_defined
19686 #define __uint8_t_defined
19687 #ifndef uint8_t
19688 typedef u_int8_t uint8_t;
19689 #endif
19690 #endif
19691 #endif
19692
19693 #ifndef _UINT16_T
19694 #define _UINT16_T
19695 #ifndef __uint16_t_defined
19696 #define __uint16_t_defined
19697 #ifndef uint16_t
19698 typedef u_int16_t uint16_t;
19699 #endif
19700 #endif
19701 #endif
19702
19703 #ifndef _UINT32_T
19704 #define _UINT32_T
19705 #ifndef __uint32_t_defined
19706 #define __uint32_t_defined
19707 #ifndef uint32_t
19708 typedef u_int32_t uint32_t;
19709 #endif
19710 #endif
19711 #endif
19712EOF
19713else
19714 sed 's/^ *//' >> tmp-stdint.h <<EOF
19715
19716 /* Some systems have guard macros to prevent redefinitions, define them. */
19717 #ifndef _INT8_T
19718 #define _INT8_T
19719 #endif
19720 #ifndef _INT16_T
19721 #define _INT16_T
19722 #endif
19723 #ifndef _INT32_T
19724 #define _INT32_T
19725 #endif
19726 #ifndef _UINT8_T
19727 #define _UINT8_T
19728 #endif
19729 #ifndef _UINT16_T
19730 #define _UINT16_T
19731 #endif
19732 #ifndef _UINT32_T
19733 #define _UINT32_T
19734 #endif
19735EOF
19736fi
19737
19738# ------------- done basic int types, emit int64_t types ------------
19739if test "$ac_cv_type_uint64_t" = yes; then
19740 sed 's/^ *//' >> tmp-stdint.h <<EOF
19741
19742 /* system headers have good uint64_t and int64_t */
19743 #ifndef _INT64_T
19744 #define _INT64_T
19745 #endif
19746 #ifndef _UINT64_T
19747 #define _UINT64_T
19748 #endif
19749EOF
19750elif test "$ac_cv_type_u_int64_t" = yes; then
19751 sed 's/^ *//' >> tmp-stdint.h <<EOF
19752
19753 /* system headers have an u_int64_t (and int64_t) */
19754 #ifndef _INT64_T
19755 #define _INT64_T
19756 #endif
19757 #ifndef _UINT64_T
19758 #define _UINT64_T
19759 #ifndef __uint64_t_defined
19760 #define __uint64_t_defined
19761 #ifndef uint64_t
19762 typedef u_int64_t uint64_t;
19763 #endif
19764 #endif
19765 #endif
19766EOF
19767elif test -n "$acx_cv_type_int64_t"; then
19768 sed 's/^ *//' >> tmp-stdint.h <<EOF
19769
19770 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19771 #ifndef _INT64_T
19772 #define _INT64_T
19773 #ifndef int64_t
19774 typedef $acx_cv_type_int64_t int64_t;
19775 #endif
19776 #endif
19777 #ifndef _UINT64_T
19778 #define _UINT64_T
19779 #ifndef __uint64_t_defined
19780 #define __uint64_t_defined
19781 #ifndef uint64_t
19782 typedef unsigned $acx_cv_type_int64_t uint64_t;
19783 #endif
19784 #endif
19785 #endif
19786EOF
19787else
19788 sed 's/^ *//' >> tmp-stdint.h <<EOF
19789
19790 /* some common heuristics for int64_t, using compiler-specific tests */
19791 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19792 #ifndef _INT64_T
19793 #define _INT64_T
19794 #ifndef __int64_t_defined
19795 #ifndef int64_t
19796 typedef long long int64_t;
19797 #endif
19798 #endif
19799 #endif
19800 #ifndef _UINT64_T
19801 #define _UINT64_T
19802 #ifndef uint64_t
19803 typedef unsigned long long uint64_t;
19804 #endif
19805 #endif
19806
19807 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19808 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19809 does not implement __extension__. But that compiler doesn't define
19810 __GNUC_MINOR__. */
19811 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19812 # define __extension__
19813 # endif
19814
19815 # ifndef _INT64_T
19816 # define _INT64_T
19817 # ifndef int64_t
19818 __extension__ typedef long long int64_t;
19819 # endif
19820 # endif
19821 # ifndef _UINT64_T
19822 # define _UINT64_T
19823 # ifndef uint64_t
19824 __extension__ typedef unsigned long long uint64_t;
19825 # endif
19826 # endif
19827
19828 #elif !defined __STRICT_ANSI__
19829 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19830
19831 # ifndef _INT64_T
19832 # define _INT64_T
19833 # ifndef int64_t
19834 typedef __int64 int64_t;
19835 # endif
19836 # endif
19837 # ifndef _UINT64_T
19838 # define _UINT64_T
19839 # ifndef uint64_t
19840 typedef unsigned __int64 uint64_t;
19841 # endif
19842 # endif
19843 # endif /* compiler */
19844
19845 #endif /* ANSI version */
19846EOF
19847fi
19848
19849# ------------- done int64_t types, emit intptr types ------------
19850if test "$ac_cv_type_uintptr_t" != yes; then
19851 sed 's/^ *//' >> tmp-stdint.h <<EOF
19852
19853 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19854 #ifndef __uintptr_t_defined
19855 #ifndef uintptr_t
19856 typedef u$acx_cv_type_intptr_t uintptr_t;
19857 #endif
19858 #endif
19859 #ifndef __intptr_t_defined
19860 #ifndef intptr_t
19861 typedef $acx_cv_type_intptr_t intptr_t;
19862 #endif
19863 #endif
19864EOF
19865fi
19866
19867# ------------- done intptr types, emit int_least types ------------
19868if test "$ac_cv_type_int_least32_t" != yes; then
19869 sed 's/^ *//' >> tmp-stdint.h <<EOF
19870
19871 /* Define int_least types */
19872 typedef int8_t int_least8_t;
19873 typedef int16_t int_least16_t;
19874 typedef int32_t int_least32_t;
19875 #ifdef _INT64_T
19876 typedef int64_t int_least64_t;
19877 #endif
19878
19879 typedef uint8_t uint_least8_t;
19880 typedef uint16_t uint_least16_t;
19881 typedef uint32_t uint_least32_t;
19882 #ifdef _UINT64_T
19883 typedef uint64_t uint_least64_t;
19884 #endif
19885EOF
19886fi
19887
19888# ------------- done intptr types, emit int_fast types ------------
19889if test "$ac_cv_type_int_fast32_t" != yes; then
19890 sed 's/^ *//' >> tmp-stdint.h <<EOF
19891
19892 /* Define int_fast types. short is often slow */
19893 typedef int8_t int_fast8_t;
19894 typedef int int_fast16_t;
19895 typedef int32_t int_fast32_t;
19896 #ifdef _INT64_T
19897 typedef int64_t int_fast64_t;
19898 #endif
19899
19900 typedef uint8_t uint_fast8_t;
19901 typedef unsigned int uint_fast16_t;
19902 typedef uint32_t uint_fast32_t;
19903 #ifdef _UINT64_T
19904 typedef uint64_t uint_fast64_t;
19905 #endif
19906EOF
19907fi
19908
19909if test "$ac_cv_type_uintmax_t" != yes; then
19910 sed 's/^ *//' >> tmp-stdint.h <<EOF
19911
19912 /* Define intmax based on what we found */
19913 #ifndef intmax_t
19914 #ifdef _INT64_T
19915 typedef int64_t intmax_t;
19916 #else
19917 typedef long intmax_t;
19918 #endif
19919 #endif
19920 #ifndef uintmax_t
19921 #ifdef _UINT64_T
19922 typedef uint64_t uintmax_t;
19923 #else
19924 typedef unsigned long uintmax_t;
19925 #endif
19926 #endif
19927EOF
19928fi
19929
19930sed 's/^ *//' >> tmp-stdint.h <<EOF
19931
19932 #endif /* GCC_GENERATED_STDINT_H */
19933EOF
19934
19935if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19936 rm -f tmp-stdint.h
19937else
19938 mv -f tmp-stdint.h gstdint.h
19939fi
19940
f35db108
WM
19941 ;;
19942 "interception/Makefile":F) cat > vpsed$$ << \_EOF
19943s!`test -f '$<' || echo '$(srcdir)/'`!!
19944_EOF
19945 sed -f vpsed$$ $ac_file > tmp$$
19946 mv tmp$$ $ac_file
19947 rm vpsed$$
19948 echo 'MULTISUBDIR =' >> $ac_file
f64bcb29
L
19949 ml_norecursion=yes
19950 . ${multi_basedir}/config-ml.in
19951 { ml_norecursion=; unset ml_norecursion;}
f35db108
WM
19952 ;;
19953 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
19954s!`test -f '$<' || echo '$(srcdir)/'`!!
c915a581
JJ
19955_EOF
19956 sed -f vpsed$$ $ac_file > tmp$$
19957 mv tmp$$ $ac_file
19958 rm vpsed$$
19959 echo 'MULTISUBDIR =' >> $ac_file
19960 ml_norecursion=yes
19961 . ${multi_basedir}/config-ml.in
19962 { ml_norecursion=; unset ml_norecursion;}
19963 ;;
19964 "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
19965s!`test -f '$<' || echo '$(srcdir)/'`!!
ef1b3fda
KS
19966_EOF
19967 sed -f vpsed$$ $ac_file > tmp$$
19968 mv tmp$$ $ac_file
19969 rm vpsed$$
19970 echo 'MULTISUBDIR =' >> $ac_file
19971 ml_norecursion=yes
19972 . ${multi_basedir}/config-ml.in
19973 { ml_norecursion=; unset ml_norecursion;}
19974 ;;
19975 "lsan/Makefile":F) cat > vpsed$$ << \_EOF
19976s!`test -f '$<' || echo '$(srcdir)/'`!!
f35db108
WM
19977_EOF
19978 sed -f vpsed$$ $ac_file > tmp$$
19979 mv tmp$$ $ac_file
19980 rm vpsed$$
19981 echo 'MULTISUBDIR =' >> $ac_file
f64bcb29
L
19982 ml_norecursion=yes
19983 . ${multi_basedir}/config-ml.in
19984 { ml_norecursion=; unset ml_norecursion;}
f35db108
WM
19985 ;;
19986 "asan/Makefile":F) cat > vpsed$$ << \_EOF
19987s!`test -f '$<' || echo '$(srcdir)/'`!!
de5a5fa1
MP
19988_EOF
19989 sed -f vpsed$$ $ac_file > tmp$$
19990 mv tmp$$ $ac_file
19991 rm vpsed$$
19992 echo 'MULTISUBDIR =' >> $ac_file
19993 ml_norecursion=yes
19994 . ${multi_basedir}/config-ml.in
19995 { ml_norecursion=; unset ml_norecursion;}
19996 ;;
19997 "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
19998s!`test -f '$<' || echo '$(srcdir)/'`!!
f35db108
WM
19999_EOF
20000 sed -f vpsed$$ $ac_file > tmp$$
20001 mv tmp$$ $ac_file
20002 rm vpsed$$
20003 echo 'MULTISUBDIR =' >> $ac_file
f64bcb29
L
20004 ml_norecursion=yes
20005 . ${multi_basedir}/config-ml.in
20006 { ml_norecursion=; unset ml_norecursion;}
f35db108 20007 ;;
cd0be65c
WM
20008 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
20009s!`test -f '$<' || echo '$(srcdir)/'`!!
20010_EOF
20011 sed -f vpsed$$ $ac_file > tmp$$
20012 mv tmp$$ $ac_file
20013 rm vpsed$$
20014 echo 'MULTISUBDIR =' >> $ac_file
20015 ml_norecursion=yes
20016 . ${multi_basedir}/config-ml.in
20017 { ml_norecursion=; unset ml_norecursion;}
20018 ;;
f35db108
WM
20019
20020 esac
20021done # for ac_tag
20022
20023
20024as_fn_exit 0
20025_ACEOF
20026ac_clean_files=$ac_clean_files_save
20027
20028test $ac_write_fail = 0 ||
22e05272 20029 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
f35db108
WM
20030
20031
20032# configure is writing to config.log, and then calls config.status.
20033# config.status does its own redirection, appending to config.log.
20034# Unfortunately, on DOS this fails, as config.log is still kept open
20035# by configure, so config.status won't be able to write to it; its
20036# output is simply discarded. So we exec the FD to /dev/null,
20037# effectively closing config.log, so it can be properly (re)opened and
20038# appended to by config.status. When coming back to configure, we
20039# need to make the FD available again.
20040if test "$no_create" != yes; then
20041 ac_cs_success=:
20042 ac_config_status_args=
20043 test "$silent" = yes &&
20044 ac_config_status_args="$ac_config_status_args --quiet"
20045 exec 5>/dev/null
20046 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20047 exec 5>>config.log
20048 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20049 # would make configure fail if this is the last instruction.
22e05272 20050 $ac_cs_success || as_fn_exit 1
f35db108
WM
20051fi
20052if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20054$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20055fi
20056