]> git.ipfire.org Git - thirdparty/gcc.git/blame - libsanitizer/configure
[Ada] Get rid of more references to Universal_Integer in expanded code
[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
8bc1fac7 711am__quote
f35db108
WM
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
8bc1fac7 800SHELL'
f35db108
WM
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
e8e66971 809with_toolexeclibdir
f35db108
WM
810enable_shared
811enable_static
812with_pic
813enable_fast_install
814with_gnu_ld
f35db108 815enable_libtool_lock
3c36aa6b 816with_gcc_major_version_only
9069eb28 817enable_cet
f35db108
WM
818'
819 ac_precious_vars='build_alias
820host_alias
821target_alias
822CC
823CFLAGS
824LDFLAGS
825LIBS
826CPPFLAGS
c915a581 827CPP
f35db108
WM
828CXX
829CXXFLAGS
830CCC
831CCAS
832CCASFLAGS
f35db108
WM
833CXXCPP'
834
835
836# Initialize some variables set by options.
837ac_init_help=
838ac_init_version=false
839ac_unrecognized_opts=
840ac_unrecognized_sep=
841# The variables have the same names as the options, with
842# dashes changed to underlines.
843cache_file=/dev/null
844exec_prefix=NONE
845no_create=
846no_recursion=
847prefix=NONE
848program_prefix=NONE
849program_suffix=NONE
850program_transform_name=s,x,x,
851silent=
852site=
853srcdir=
854verbose=
855x_includes=NONE
856x_libraries=NONE
857
858# Installation directory options.
859# These are left unexpanded so users can "make install exec_prefix=/foo"
860# and all the variables that are supposed to be based on exec_prefix
861# by default will actually change.
862# Use braces instead of parens because sh, perl, etc. also accept them.
863# (The list follows the same order as the GNU Coding Standards.)
864bindir='${exec_prefix}/bin'
865sbindir='${exec_prefix}/sbin'
866libexecdir='${exec_prefix}/libexec'
867datarootdir='${prefix}/share'
868datadir='${datarootdir}'
869sysconfdir='${prefix}/etc'
870sharedstatedir='${prefix}/com'
871localstatedir='${prefix}/var'
872includedir='${prefix}/include'
873oldincludedir='/usr/include'
874docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875infodir='${datarootdir}/info'
876htmldir='${docdir}'
877dvidir='${docdir}'
878pdfdir='${docdir}'
879psdir='${docdir}'
880libdir='${exec_prefix}/lib'
881localedir='${datarootdir}/locale'
882mandir='${datarootdir}/man'
883
884ac_prev=
885ac_dashdash=
886for ac_option
887do
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
891 ac_prev=
892 continue
893 fi
894
895 case $ac_option in
22e05272
JM
896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 *=) ac_optarg= ;;
898 *) ac_optarg=yes ;;
f35db108
WM
899 esac
900
901 # Accept the important Cygnus configure options, so we can diagnose typos.
902
903 case $ac_dashdash$ac_option in
904 --)
905 ac_dashdash=yes ;;
906
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910 bindir=$ac_optarg ;;
911
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
916
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
923
924 --config-cache | -C)
925 cache_file=config.cache ;;
926
927 -datadir | --datadir | --datadi | --datad)
928 ac_prev=datadir ;;
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
931
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
938
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 943 as_fn_error $? "invalid feature name: $ac_useropt"
f35db108
WM
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948"enable_$ac_useropt"
949"*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
954
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
959
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
964
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 969 as_fn_error $? "invalid feature name: $ac_useropt"
f35db108
WM
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974"enable_$ac_useropt"
975"*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=\$ac_optarg ;;
980
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
989
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
993
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1000
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1005
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1011
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1018
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1023
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1028
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1035
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1040
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1047
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1052
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1056
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1059 no_create=yes ;;
1060
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1064
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1073
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1078
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1085
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1092
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1109
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1114
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1119
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1123
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
1128 sbindir=$ac_optarg ;;
1129
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
1139 sharedstatedir=$ac_optarg ;;
1140
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
1144 site=$ac_optarg ;;
1145
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1150
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1157
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1162
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1165
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1168
1169 -with-* | --with-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1173 as_fn_error $? "invalid package name: $ac_useropt"
f35db108
WM
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178"with_$ac_useropt"
1179"*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=\$ac_optarg ;;
1184
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1189 as_fn_error $? "invalid package name: $ac_useropt"
f35db108
WM
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194"with_$ac_useropt"
1195"*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
1200
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1204
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1211
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1218
22e05272
JM
1219 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220Try \`$0 --help' for more information"
f35db108
WM
1221 ;;
1222
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
f35db108
WM
1229 esac
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1232
1233 *)
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
f35db108
WM
1239 ;;
1240
1241 esac
1242done
1243
1244if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1246 as_fn_error $? "missing argument to $ac_option"
f35db108
WM
1247fi
1248
1249if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
22e05272 1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
f35db108
WM
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 esac
1255fi
1256
1257# Check all directory arguments for consistency.
1258for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1262do
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
22e05272 1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
f35db108
WM
1276done
1277
1278# There might be people who depend on the old broken behavior: `$host'
1279# used to hold the argument of --host etc.
1280# FIXME: To remove some day.
1281build=$build_alias
1282host=$host_alias
1283target=$target_alias
1284
1285# FIXME: To remove some day.
1286if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
f35db108
WM
1289 elif test "x$build_alias" != "x$host_alias"; then
1290 cross_compiling=yes
1291 fi
1292fi
1293
1294ac_tool_prefix=
1295test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297test "$silent" = yes && exec 6>/dev/null
1298
1299
1300ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301ac_ls_di=`ls -di .` &&
1302ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1303 as_fn_error $? "working directory cannot be determined"
f35db108 1304test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1305 as_fn_error $? "pwd does not report name of working directory"
f35db108
WM
1306
1307
1308# Find the source files, if location was not specified.
1309if test -z "$srcdir"; then
1310 ac_srcdir_defaulted=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir=`$as_dirname -- "$as_myself" ||
1313$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317$as_echo X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)[^/].*/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\).*/{
1331 s//\1/
1332 q
1333 }
1334 s/.*/./; q'`
1335 srcdir=$ac_confdir
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 srcdir=..
1338 fi
1339else
1340 ac_srcdir_defaulted=no
1341fi
1342if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
f35db108
WM
1345fi
1346ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347ac_abs_confdir=`(
22e05272 1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
f35db108
WM
1349 pwd)`
1350# When building in place, set srcdir=.
1351if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 srcdir=.
1353fi
1354# Remove unnecessary trailing slashes from srcdir.
1355# Double slashes in file names in object file debugging info
1356# mess up M-x gdb in Emacs.
1357case $srcdir in
1358*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359esac
1360for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365done
1366
1367#
1368# Report the --help message.
1369#
1370if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1373 cat <<_ACEOF
1374\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1375
1376Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379VAR=VALUE. See below for descriptions of some of the useful variables.
1380
1381Defaults for the options are specified in brackets.
1382
1383Configuration:
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
22e05272 1388 -q, --quiet, --silent do not print \`checking ...' messages
f35db108
WM
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1393
1394Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 [PREFIX]
1399
1400By default, \`make install' will install all the files in
1401\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403for instance \`--prefix=\$HOME'.
1404
1405For better control, use the options below.
1406
1407Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1427_ACEOF
1428
1429 cat <<\_ACEOF
1430
1431Program names:
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1435
1436System types:
1437 --build=BUILD configure for building on BUILD [guessed]
1438 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2a6346c4 1439 --target=TARGET configure for building compilers for TARGET [HOST]
f35db108
WM
1440_ACEOF
1441fi
1442
1443if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of package-unused version-unused:";;
1446 esac
1447 cat <<\_ACEOF
1448
1449Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
94213c10 1453 --enable-multilib build many library versions (default)
2a6346c4 1454 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
22e05272
JM
1455 --enable-dependency-tracking
1456 do not reject slow dependency extractors
1457 --disable-dependency-tracking
1458 speeds up one-time build
1459 --enable-silent-rules less verbose build output (undo: "make V=1")
1460 --disable-silent-rules verbose build output (undo: "make V=0")
1461 --enable-maintainer-mode
1462 enable make rules and dependencies not useful (and
1463 sometimes confusing) to the casual installer
f35db108
WM
1464 --enable-shared[=PKGS] build shared libraries [default=yes]
1465 --enable-static[=PKGS] build static libraries [default=yes]
1466 --enable-fast-install[=PKGS]
1467 optimize for fast installation [default=yes]
1468 --disable-libtool-lock avoid locking (might break parallel builds)
8d286dd1 1469 --enable-cet enable Intel CET in target libraries [default=auto]
f35db108
WM
1470
1471Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
e8e66971
MR
1474 --with-toolexeclibdir=DIR
1475 install libraries built with a cross compiler within
1476 DIR
a2479b3d 1477 --with-pic try to use only PIC/non-PIC objects [default=use
f35db108
WM
1478 both]
1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3c36aa6b
JJ
1480 --with-gcc-major-version-only
1481 use only GCC major number in filesystem paths
f35db108
WM
1482
1483Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1489 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
f35db108 1490 you have headers in a nonstandard directory <include dir>
c915a581 1491 CPP C preprocessor
f35db108
WM
1492 CXX C++ compiler command
1493 CXXFLAGS C++ compiler flags
1494 CCAS assembler compiler command (defaults to CC)
1495 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
f35db108
WM
1496 CXXCPP C++ preprocessor
1497
1498Use these variables to override the choices made by `configure' or to help
1499it to find libraries and programs with nonstandard names/locations.
1500
1501Report bugs to <libsanitizer>.
1502_ACEOF
1503ac_status=$?
1504fi
1505
1506if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" ||
1510 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1511 continue
1512 ac_builddir=.
1513
1514case "$ac_dir" in
1515.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516*)
1517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 esac ;;
1524esac
1525ac_abs_top_builddir=$ac_pwd
1526ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527# for backward compatibility:
1528ac_top_builddir=$ac_top_build_prefix
1529
1530case $srcdir in
1531 .) # We are building in place.
1532 ac_srcdir=.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1539 *) # Relative name.
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543esac
1544ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1554 else
1555 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 fi || ac_status=$?
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1558 done
1559fi
1560
1561test -n "$ac_init_help" && exit $ac_status
1562if $ac_init_version; then
1563 cat <<\_ACEOF
1564package-unused configure version-unused
22e05272 1565generated by GNU Autoconf 2.69
f35db108 1566
22e05272 1567Copyright (C) 2012 Free Software Foundation, Inc.
f35db108
WM
1568This configure script is free software; the Free Software Foundation
1569gives unlimited permission to copy, distribute and modify it.
1570_ACEOF
1571 exit
1572fi
1573
1574## ------------------------ ##
1575## Autoconf initialization. ##
1576## ------------------------ ##
1577
1578# ac_fn_c_try_compile LINENO
1579# --------------------------
1580# Try to compile conftest.$ac_ext, and return whether this succeeded.
1581ac_fn_c_try_compile ()
1582{
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext
1585 if { { ac_try="$ac_compile"
1586case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589esac
1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591$as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_compile") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1598 fi
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest.$ac_objext; then :
1604 ac_retval=0
1605else
1606 $as_echo "$as_me: failed program was:" >&5
1607sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1
1610fi
22e05272
JM
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
f35db108
WM
1613
1614} # ac_fn_c_try_compile
1615
c915a581
JJ
1616# ac_fn_c_try_cpp LINENO
1617# ----------------------
1618# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1619ac_fn_c_try_cpp ()
f35db108
WM
1620{
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c915a581 1622 if { { ac_try="$ac_cpp conftest.$ac_ext"
f35db108
WM
1623case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
c915a581 1629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
f35db108
WM
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1637 test $ac_status = 0; } > conftest.i && {
c915a581 1638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
f35db108 1639 test ! -s conftest.err
c915a581 1640 }; then :
f35db108
WM
1641 ac_retval=0
1642else
1643 $as_echo "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
c915a581 1646 ac_retval=1
f35db108 1647fi
22e05272
JM
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
f35db108 1650
c915a581 1651} # ac_fn_c_try_cpp
f35db108 1652
c915a581
JJ
1653# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1654# -------------------------------------------------------
1655# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1656# the include files in INCLUDES and setting the cache variable VAR
1657# accordingly.
1658ac_fn_c_check_header_mongrel ()
1659{
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1661 if eval \${$3+:} false; then :
c915a581
JJ
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663$as_echo_n "checking for $2... " >&6; }
22e05272 1664if eval \${$3+:} false; then :
c915a581
JJ
1665 $as_echo_n "(cached) " >&6
1666fi
1667eval ac_res=\$$3
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669$as_echo "$ac_res" >&6; }
1670else
1671 # Is the header compilable?
1672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1673$as_echo_n "checking $2 usability... " >&6; }
1674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675/* end confdefs.h. */
1676$4
1677#include <$2>
1678_ACEOF
1679if ac_fn_c_try_compile "$LINENO"; then :
1680 ac_header_compiler=yes
1681else
1682 ac_header_compiler=no
1683fi
1684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1686$as_echo "$ac_header_compiler" >&6; }
1687
1688# Is the header present?
1689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1690$as_echo_n "checking $2 presence... " >&6; }
1691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692/* end confdefs.h. */
1693#include <$2>
1694_ACEOF
1695if ac_fn_c_try_cpp "$LINENO"; then :
1696 ac_header_preproc=yes
1697else
1698 ac_header_preproc=no
1699fi
22e05272 1700rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
1701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1702$as_echo "$ac_header_preproc" >&6; }
1703
1704# So? What about this header?
1705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1706 yes:no: )
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1708$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1710$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1711 ;;
1712 no:yes:* )
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1714$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1716$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1718$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1720$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
22e05272 1723( $as_echo "## --------------------------- ##
c915a581 1724## Report this to libsanitizer ##
22e05272 1725## --------------------------- ##"
c915a581
JJ
1726 ) | sed "s/^/$as_me: WARNING: /" >&2
1727 ;;
1728esac
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730$as_echo_n "checking for $2... " >&6; }
22e05272 1731if eval \${$3+:} false; then :
c915a581
JJ
1732 $as_echo_n "(cached) " >&6
1733else
1734 eval "$3=\$ac_header_compiler"
1735fi
1736eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738$as_echo "$ac_res" >&6; }
1739fi
22e05272 1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c915a581
JJ
1741
1742} # ac_fn_c_check_header_mongrel
1743
1744# ac_fn_c_try_run LINENO
1745# ----------------------
1746# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1747# that executables *can* be run.
1748ac_fn_c_try_run ()
f35db108
WM
1749{
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
f35db108
WM
1751 if { { ac_try="$ac_link"
1752case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
c915a581 1758 (eval "$ac_link") 2>&5
f35db108 1759 ac_status=$?
f35db108 1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c915a581
JJ
1761 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1762 { { case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_try") 2>&5
1769 ac_status=$?
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; }; }; then :
f35db108
WM
1772 ac_retval=0
1773else
c915a581
JJ
1774 $as_echo "$as_me: program exited with status $ac_status" >&5
1775 $as_echo "$as_me: failed program was:" >&5
f35db108
WM
1776sed 's/^/| /' conftest.$ac_ext >&5
1777
c915a581 1778 ac_retval=$ac_status
f35db108 1779fi
f35db108 1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
f35db108 1783
c915a581 1784} # ac_fn_c_try_run
f35db108
WM
1785
1786# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1787# -------------------------------------------------------
1788# Tests whether HEADER exists and can be compiled using the include files in
1789# INCLUDES, setting the cache variable VAR accordingly.
1790ac_fn_c_check_header_compile ()
1791{
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794$as_echo_n "checking for $2... " >&6; }
22e05272 1795if eval \${$3+:} false; then :
f35db108
WM
1796 $as_echo_n "(cached) " >&6
1797else
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h. */
1800$4
1801#include <$2>
1802_ACEOF
1803if ac_fn_c_try_compile "$LINENO"; then :
1804 eval "$3=yes"
1805else
1806 eval "$3=no"
1807fi
1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809fi
1810eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812$as_echo "$ac_res" >&6; }
22e05272 1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
f35db108
WM
1814
1815} # ac_fn_c_check_header_compile
1816
c915a581
JJ
1817# ac_fn_cxx_try_compile LINENO
1818# ----------------------------
1819# Try to compile conftest.$ac_ext, and return whether this succeeded.
1820ac_fn_cxx_try_compile ()
f35db108
WM
1821{
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c915a581
JJ
1823 rm -f conftest.$ac_objext
1824 if { { ac_try="$ac_compile"
f35db108
WM
1825case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828esac
1829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830$as_echo "$ac_try_echo"; } >&5
c915a581 1831 (eval "$ac_compile") 2>conftest.err
f35db108
WM
1832 ac_status=$?
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1837 fi
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c915a581
JJ
1839 test $ac_status = 0; } && {
1840 test -z "$ac_cxx_werror_flag" ||
f35db108 1841 test ! -s conftest.err
c915a581 1842 } && test -s conftest.$ac_objext; then :
f35db108
WM
1843 ac_retval=0
1844else
1845 $as_echo "$as_me: failed program was:" >&5
1846sed 's/^/| /' conftest.$ac_ext >&5
1847
c915a581 1848 ac_retval=1
f35db108 1849fi
22e05272
JM
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
f35db108 1852
c915a581 1853} # ac_fn_cxx_try_compile
f35db108 1854
c915a581
JJ
1855# ac_fn_c_try_link LINENO
1856# -----------------------
1857# Try to link conftest.$ac_ext, and return whether this succeeded.
1858ac_fn_c_try_link ()
f35db108
WM
1859{
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c915a581 1861 rm -f conftest.$ac_objext conftest$ac_exeext
f35db108
WM
1862 if { { ac_try="$ac_link"
1863case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866esac
1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868$as_echo "$ac_try_echo"; } >&5
c915a581 1869 (eval "$ac_link") 2>conftest.err
f35db108 1870 ac_status=$?
c915a581
JJ
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1875 fi
f35db108 1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c915a581
JJ
1877 test $ac_status = 0; } && {
1878 test -z "$ac_c_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest$ac_exeext && {
1881 test "$cross_compiling" = yes ||
22e05272 1882 test -x conftest$ac_exeext
c915a581 1883 }; then :
f35db108
WM
1884 ac_retval=0
1885else
c915a581 1886 $as_echo "$as_me: failed program was:" >&5
f35db108
WM
1887sed 's/^/| /' conftest.$ac_ext >&5
1888
c915a581 1889 ac_retval=1
f35db108 1890fi
c915a581
JJ
1891 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1892 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1893 # interfere with the next link command; also delete a directory that is
1894 # left behind by Apple's compiler. We do this before executing the actions.
f35db108 1895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
f35db108 1898
c915a581 1899} # ac_fn_c_try_link
f35db108
WM
1900
1901# ac_fn_c_check_func LINENO FUNC VAR
1902# ----------------------------------
1903# Tests whether FUNC exists, setting the cache variable VAR accordingly
1904ac_fn_c_check_func ()
1905{
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908$as_echo_n "checking for $2... " >&6; }
22e05272 1909if eval \${$3+:} false; then :
f35db108
WM
1910 $as_echo_n "(cached) " >&6
1911else
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h. */
1914/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1916#define $2 innocuous_$2
1917
1918/* System header to define __stub macros and hopefully few prototypes,
1919 which can conflict with char $2 (); below.
1920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1921 <limits.h> exists even on freestanding compilers. */
1922
1923#ifdef __STDC__
1924# include <limits.h>
1925#else
1926# include <assert.h>
1927#endif
1928
1929#undef $2
1930
1931/* Override any GCC internal prototype to avoid an error.
1932 Use char because int might match the return type of a GCC
1933 builtin and then its argument prototype would still apply. */
1934#ifdef __cplusplus
1935extern "C"
1936#endif
1937char $2 ();
1938/* The GNU C library defines this for functions which it implements
1939 to always fail with ENOSYS. Some functions are actually named
1940 something starting with __ and the normal name is an alias. */
1941#if defined __stub_$2 || defined __stub___$2
1942choke me
1943#endif
1944
1945int
1946main ()
1947{
1948return $2 ();
1949 ;
1950 return 0;
1951}
1952_ACEOF
1953if ac_fn_c_try_link "$LINENO"; then :
1954 eval "$3=yes"
1955else
1956 eval "$3=no"
1957fi
1958rm -f core conftest.err conftest.$ac_objext \
1959 conftest$ac_exeext conftest.$ac_ext
1960fi
1961eval ac_res=\$$3
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963$as_echo "$ac_res" >&6; }
22e05272 1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
f35db108
WM
1965
1966} # ac_fn_c_check_func
1967
1968# ac_fn_cxx_try_cpp LINENO
1969# ------------------------
1970# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1971ac_fn_cxx_try_cpp ()
1972{
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 if { { ac_try="$ac_cpp conftest.$ac_ext"
1975case "(($ac_try" in
1976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977 *) ac_try_echo=$ac_try;;
1978esac
1979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980$as_echo "$ac_try_echo"; } >&5
1981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1982 ac_status=$?
1983 if test -s conftest.err; then
1984 grep -v '^ *+' conftest.err >conftest.er1
1985 cat conftest.er1 >&5
1986 mv -f conftest.er1 conftest.err
1987 fi
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1989 test $ac_status = 0; } > conftest.i && {
f35db108
WM
1990 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1991 test ! -s conftest.err
1992 }; then :
1993 ac_retval=0
1994else
1995 $as_echo "$as_me: failed program was:" >&5
1996sed 's/^/| /' conftest.$ac_ext >&5
1997
1998 ac_retval=1
1999fi
22e05272
JM
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001 as_fn_set_status $ac_retval
f35db108
WM
2002
2003} # ac_fn_cxx_try_cpp
2004
2005# ac_fn_cxx_try_link LINENO
2006# -------------------------
2007# Try to link conftest.$ac_ext, and return whether this succeeded.
2008ac_fn_cxx_try_link ()
2009{
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 rm -f conftest.$ac_objext conftest$ac_exeext
2012 if { { ac_try="$ac_link"
2013case "(($ac_try" in
2014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2015 *) ac_try_echo=$ac_try;;
2016esac
2017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2018$as_echo "$ac_try_echo"; } >&5
2019 (eval "$ac_link") 2>conftest.err
2020 ac_status=$?
2021 if test -s conftest.err; then
2022 grep -v '^ *+' conftest.err >conftest.er1
2023 cat conftest.er1 >&5
2024 mv -f conftest.er1 conftest.err
2025 fi
2026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2027 test $ac_status = 0; } && {
2028 test -z "$ac_cxx_werror_flag" ||
2029 test ! -s conftest.err
2030 } && test -s conftest$ac_exeext && {
2031 test "$cross_compiling" = yes ||
22e05272 2032 test -x conftest$ac_exeext
f35db108
WM
2033 }; then :
2034 ac_retval=0
2035else
2036 $as_echo "$as_me: failed program was:" >&5
2037sed 's/^/| /' conftest.$ac_ext >&5
2038
2039 ac_retval=1
2040fi
2041 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2042 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2043 # interfere with the next link command; also delete a directory that is
2044 # left behind by Apple's compiler. We do this before executing the actions.
2045 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047 as_fn_set_status $ac_retval
f35db108
WM
2048
2049} # ac_fn_cxx_try_link
64548f3b
JJ
2050
2051# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2052# --------------------------------------------
2053# Tries to find the compile-time value of EXPR in a program that includes
2054# INCLUDES, setting VAR accordingly. Returns whether the value could be
2055# computed
2056ac_fn_c_compute_int ()
2057{
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 if test "$cross_compiling" = yes; then
2060 # Depending upon the size, compute the lo and hi bounds.
2061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062/* end confdefs.h. */
2063$4
2064int
2065main ()
2066{
2067static int test_array [1 - 2 * !(($2) >= 0)];
22e05272
JM
2068test_array [0] = 0;
2069return test_array [0];
64548f3b
JJ
2070
2071 ;
2072 return 0;
2073}
2074_ACEOF
2075if ac_fn_c_try_compile "$LINENO"; then :
2076 ac_lo=0 ac_mid=0
2077 while :; do
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079/* end confdefs.h. */
2080$4
2081int
2082main ()
2083{
2084static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2085test_array [0] = 0;
2086return test_array [0];
64548f3b
JJ
2087
2088 ;
2089 return 0;
2090}
2091_ACEOF
2092if ac_fn_c_try_compile "$LINENO"; then :
2093 ac_hi=$ac_mid; break
2094else
2095 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2096 if test $ac_lo -le $ac_mid; then
2097 ac_lo= ac_hi=
2098 break
2099 fi
2100 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2101fi
2102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 done
2104else
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106/* end confdefs.h. */
2107$4
2108int
2109main ()
2110{
2111static int test_array [1 - 2 * !(($2) < 0)];
22e05272
JM
2112test_array [0] = 0;
2113return test_array [0];
64548f3b
JJ
2114
2115 ;
2116 return 0;
2117}
2118_ACEOF
2119if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_hi=-1 ac_mid=-1
2121 while :; do
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123/* end confdefs.h. */
2124$4
2125int
2126main ()
2127{
2128static int test_array [1 - 2 * !(($2) >= $ac_mid)];
22e05272
JM
2129test_array [0] = 0;
2130return test_array [0];
64548f3b
JJ
2131
2132 ;
2133 return 0;
2134}
2135_ACEOF
2136if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_lo=$ac_mid; break
2138else
2139 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2140 if test $ac_mid -le $ac_hi; then
2141 ac_lo= ac_hi=
2142 break
2143 fi
2144 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2145fi
2146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 done
2148else
2149 ac_lo= ac_hi=
2150fi
2151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152fi
2153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154# Binary search between lo and hi bounds.
2155while test "x$ac_lo" != "x$ac_hi"; do
2156 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158/* end confdefs.h. */
2159$4
2160int
2161main ()
2162{
2163static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2164test_array [0] = 0;
2165return test_array [0];
64548f3b
JJ
2166
2167 ;
2168 return 0;
2169}
2170_ACEOF
2171if ac_fn_c_try_compile "$LINENO"; then :
2172 ac_hi=$ac_mid
2173else
2174 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2175fi
2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177done
2178case $ac_lo in #((
2179?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2180'') ac_retval=1 ;;
2181esac
2182 else
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184/* end confdefs.h. */
2185$4
2186static long int longval () { return $2; }
2187static unsigned long int ulongval () { return $2; }
2188#include <stdio.h>
2189#include <stdlib.h>
2190int
2191main ()
2192{
2193
2194 FILE *f = fopen ("conftest.val", "w");
2195 if (! f)
2196 return 1;
2197 if (($2) < 0)
2198 {
2199 long int i = longval ();
2200 if (i != ($2))
2201 return 1;
2202 fprintf (f, "%ld", i);
2203 }
2204 else
2205 {
2206 unsigned long int i = ulongval ();
2207 if (i != ($2))
2208 return 1;
2209 fprintf (f, "%lu", i);
2210 }
2211 /* Do not output a trailing newline, as this causes \r\n confusion
2212 on some platforms. */
2213 return ferror (f) || fclose (f) != 0;
2214
2215 ;
2216 return 0;
2217}
2218_ACEOF
2219if ac_fn_c_try_run "$LINENO"; then :
2220 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2221else
2222 ac_retval=1
2223fi
2224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2225 conftest.$ac_objext conftest.beam conftest.$ac_ext
2226rm -f conftest.val
2227
2228 fi
22e05272
JM
2229 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2230 as_fn_set_status $ac_retval
64548f3b
JJ
2231
2232} # ac_fn_c_compute_int
f35db108 2233
c915a581
JJ
2234# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2235# -------------------------------------------
2236# Tests whether TYPE exists after having included INCLUDES, setting cache
2237# variable VAR accordingly.
2238ac_fn_c_check_type ()
f35db108 2239{
c915a581
JJ
2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242$as_echo_n "checking for $2... " >&6; }
22e05272 2243if eval \${$3+:} false; then :
c915a581
JJ
2244 $as_echo_n "(cached) " >&6
2245else
2246 eval "$3=no"
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248/* end confdefs.h. */
2249$4
2250int
2251main ()
2252{
2253if (sizeof ($2))
2254 return 0;
2255 ;
2256 return 0;
2257}
2258_ACEOF
2259if ac_fn_c_try_compile "$LINENO"; then :
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261/* end confdefs.h. */
2262$4
2263int
2264main ()
2265{
2266if (sizeof (($2)))
2267 return 0;
2268 ;
2269 return 0;
2270}
2271_ACEOF
2272if ac_fn_c_try_compile "$LINENO"; then :
2273
2274else
2275 eval "$3=yes"
2276fi
2277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278fi
2279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280fi
2281eval ac_res=\$$3
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283$as_echo "$ac_res" >&6; }
22e05272 2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c915a581
JJ
2285
2286} # ac_fn_c_check_type
2287
22e05272
JM
2288# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2289# ---------------------------------------------
2290# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2291# accordingly.
c915a581
JJ
2292ac_fn_c_check_decl ()
2293{
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 as_decl_name=`echo $2|sed 's/ *(.*//'`
2296 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2298$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
22e05272 2299if eval \${$3+:} false; then :
c915a581
JJ
2300 $as_echo_n "(cached) " >&6
2301else
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303/* end confdefs.h. */
2304$4
2305int
2306main ()
2307{
2308#ifndef $as_decl_name
2309#ifdef __cplusplus
2310 (void) $as_decl_use;
2311#else
2312 (void) $as_decl_name;
2313#endif
2314#endif
2315
2316 ;
2317 return 0;
2318}
2319_ACEOF
2320if ac_fn_c_try_compile "$LINENO"; then :
2321 eval "$3=yes"
2322else
2323 eval "$3=no"
2324fi
2325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326fi
2327eval ac_res=\$$3
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329$as_echo "$ac_res" >&6; }
22e05272 2330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c915a581
JJ
2331
2332} # ac_fn_c_check_decl
2333cat >config.log <<_ACEOF
2334This file contains any messages produced by compilers while
2335running configure, to aid debugging if configure makes a mistake.
2336
2337It was created by package-unused $as_me version-unused, which was
22e05272 2338generated by GNU Autoconf 2.69. Invocation command line was
c915a581
JJ
2339
2340 $ $0 $@
2341
2342_ACEOF
2343exec 5>>config.log
2344{
2345cat <<_ASUNAME
2346## --------- ##
2347## Platform. ##
2348## --------- ##
2349
2350hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2351uname -m = `(uname -m) 2>/dev/null || echo unknown`
2352uname -r = `(uname -r) 2>/dev/null || echo unknown`
2353uname -s = `(uname -s) 2>/dev/null || echo unknown`
2354uname -v = `(uname -v) 2>/dev/null || echo unknown`
2355
2356/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2357/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2358
2359/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2360/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2361/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
f35db108
WM
2362/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2363/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2364/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2365/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2366
2367_ASUNAME
2368
2369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370for as_dir in $PATH
2371do
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 $as_echo "PATH: $as_dir"
2375 done
2376IFS=$as_save_IFS
2377
2378} >&5
2379
2380cat >&5 <<_ACEOF
2381
2382
2383## ----------- ##
2384## Core tests. ##
2385## ----------- ##
2386
2387_ACEOF
2388
2389
2390# Keep a trace of the command line.
2391# Strip out --no-create and --no-recursion so they do not pile up.
2392# Strip out --silent because we don't want to record it for future runs.
2393# Also quote any args containing shell meta-characters.
2394# Make two passes to allow for proper duplicate-argument suppression.
2395ac_configure_args=
2396ac_configure_args0=
2397ac_configure_args1=
2398ac_must_keep_next=false
2399for ac_pass in 1 2
2400do
2401 for ac_arg
2402 do
2403 case $ac_arg in
2404 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2406 | -silent | --silent | --silen | --sile | --sil)
2407 continue ;;
2408 *\'*)
2409 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2410 esac
2411 case $ac_pass in
2412 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2413 2)
2414 as_fn_append ac_configure_args1 " '$ac_arg'"
2415 if test $ac_must_keep_next = true; then
2416 ac_must_keep_next=false # Got value, back to normal.
2417 else
2418 case $ac_arg in
2419 *=* | --config-cache | -C | -disable-* | --disable-* \
2420 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2421 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2422 | -with-* | --with-* | -without-* | --without-* | --x)
2423 case "$ac_configure_args0 " in
2424 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2425 esac
2426 ;;
2427 -* ) ac_must_keep_next=true ;;
2428 esac
2429 fi
2430 as_fn_append ac_configure_args " '$ac_arg'"
2431 ;;
2432 esac
2433 done
2434done
2435{ ac_configure_args0=; unset ac_configure_args0;}
2436{ ac_configure_args1=; unset ac_configure_args1;}
2437
2438# When interrupted or exit'd, cleanup temporary files, and complete
2439# config.log. We remove comments because anyway the quotes in there
2440# would cause problems or look ugly.
2441# WARNING: Use '\'' to represent an apostrophe within the trap.
2442# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2443trap 'exit_status=$?
2444 # Save into config.log some information that might help in debugging.
2445 {
2446 echo
2447
22e05272 2448 $as_echo "## ---------------- ##
f35db108 2449## Cache variables. ##
22e05272 2450## ---------------- ##"
f35db108
WM
2451 echo
2452 # The following way of writing the cache mishandles newlines in values,
2453(
2454 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2455 eval ac_val=\$$ac_var
2456 case $ac_val in #(
2457 *${as_nl}*)
2458 case $ac_var in #(
2459 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2460$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2461 esac
2462 case $ac_var in #(
2463 _ | IFS | as_nl) ;; #(
2464 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2465 *) { eval $ac_var=; unset $ac_var;} ;;
2466 esac ;;
2467 esac
2468 done
2469 (set) 2>&1 |
2470 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2471 *${as_nl}ac_space=\ *)
2472 sed -n \
2473 "s/'\''/'\''\\\\'\'''\''/g;
2474 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2475 ;; #(
2476 *)
2477 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2478 ;;
2479 esac |
2480 sort
2481)
2482 echo
2483
22e05272 2484 $as_echo "## ----------------- ##
f35db108 2485## Output variables. ##
22e05272 2486## ----------------- ##"
f35db108
WM
2487 echo
2488 for ac_var in $ac_subst_vars
2489 do
2490 eval ac_val=\$$ac_var
2491 case $ac_val in
2492 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2493 esac
2494 $as_echo "$ac_var='\''$ac_val'\''"
2495 done | sort
2496 echo
2497
2498 if test -n "$ac_subst_files"; then
22e05272 2499 $as_echo "## ------------------- ##
f35db108 2500## File substitutions. ##
22e05272 2501## ------------------- ##"
f35db108
WM
2502 echo
2503 for ac_var in $ac_subst_files
2504 do
2505 eval ac_val=\$$ac_var
2506 case $ac_val in
2507 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2508 esac
2509 $as_echo "$ac_var='\''$ac_val'\''"
2510 done | sort
2511 echo
2512 fi
2513
2514 if test -s confdefs.h; then
22e05272 2515 $as_echo "## ----------- ##
f35db108 2516## confdefs.h. ##
22e05272 2517## ----------- ##"
f35db108
WM
2518 echo
2519 cat confdefs.h
2520 echo
2521 fi
2522 test "$ac_signal" != 0 &&
2523 $as_echo "$as_me: caught signal $ac_signal"
2524 $as_echo "$as_me: exit $exit_status"
2525 } >&5
2526 rm -f core *.core core.conftest.* &&
2527 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2528 exit $exit_status
2529' 0
2530for ac_signal in 1 2 13 15; do
2531 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2532done
2533ac_signal=0
2534
2535# confdefs.h avoids OS command line length limits that DEFS can exceed.
2536rm -f -r conftest* confdefs.h
2537
2538$as_echo "/* confdefs.h */" > confdefs.h
2539
2540# Predefined preprocessor variables.
2541
2542cat >>confdefs.h <<_ACEOF
2543#define PACKAGE_NAME "$PACKAGE_NAME"
2544_ACEOF
2545
2546cat >>confdefs.h <<_ACEOF
2547#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2548_ACEOF
2549
2550cat >>confdefs.h <<_ACEOF
2551#define PACKAGE_VERSION "$PACKAGE_VERSION"
2552_ACEOF
2553
2554cat >>confdefs.h <<_ACEOF
2555#define PACKAGE_STRING "$PACKAGE_STRING"
2556_ACEOF
2557
2558cat >>confdefs.h <<_ACEOF
2559#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2560_ACEOF
2561
2562cat >>confdefs.h <<_ACEOF
2563#define PACKAGE_URL "$PACKAGE_URL"
2564_ACEOF
2565
2566
2567# Let the site file select an alternate cache file if it wants to.
2568# Prefer an explicitly selected file to automatically selected ones.
2569ac_site_file1=NONE
2570ac_site_file2=NONE
2571if test -n "$CONFIG_SITE"; then
22e05272
JM
2572 # We do not want a PATH search for config.site.
2573 case $CONFIG_SITE in #((
2574 -*) ac_site_file1=./$CONFIG_SITE;;
2575 */*) ac_site_file1=$CONFIG_SITE;;
2576 *) ac_site_file1=./$CONFIG_SITE;;
2577 esac
f35db108
WM
2578elif test "x$prefix" != xNONE; then
2579 ac_site_file1=$prefix/share/config.site
2580 ac_site_file2=$prefix/etc/config.site
2581else
2582 ac_site_file1=$ac_default_prefix/share/config.site
2583 ac_site_file2=$ac_default_prefix/etc/config.site
2584fi
2585for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2586do
2587 test "x$ac_site_file" = xNONE && continue
22e05272 2588 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
f35db108
WM
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2590$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2591 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2592 . "$ac_site_file" \
2593 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2595as_fn_error $? "failed to load site script $ac_site_file
2596See \`config.log' for more details" "$LINENO" 5; }
f35db108
WM
2597 fi
2598done
2599
2600if test -r "$cache_file"; then
22e05272
JM
2601 # Some versions of bash will fail to source /dev/null (special files
2602 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2603 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
f35db108
WM
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2605$as_echo "$as_me: loading cache $cache_file" >&6;}
2606 case $cache_file in
2607 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2608 *) . "./$cache_file";;
2609 esac
2610 fi
2611else
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2613$as_echo "$as_me: creating cache $cache_file" >&6;}
2614 >$cache_file
2615fi
2616
2617# Check that the precious variables saved in the cache have kept the same
2618# value.
2619ac_cache_corrupted=false
2620for ac_var in $ac_precious_vars; do
2621 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2622 eval ac_new_set=\$ac_env_${ac_var}_set
2623 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2624 eval ac_new_val=\$ac_env_${ac_var}_value
2625 case $ac_old_set,$ac_new_set in
2626 set,)
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2628$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2629 ac_cache_corrupted=: ;;
2630 ,set)
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2632$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2633 ac_cache_corrupted=: ;;
2634 ,);;
2635 *)
2636 if test "x$ac_old_val" != "x$ac_new_val"; then
2637 # differences in whitespace do not lead to failure.
2638 ac_old_val_w=`echo x $ac_old_val`
2639 ac_new_val_w=`echo x $ac_new_val`
2640 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2642$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2643 ac_cache_corrupted=:
2644 else
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2646$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2647 eval $ac_var=\$ac_old_val
2648 fi
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2650$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2652$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2653 fi;;
2654 esac
2655 # Pass precious variables to config.status.
2656 if test "$ac_new_set" = set; then
2657 case $ac_new_val in
2658 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2659 *) ac_arg=$ac_var=$ac_new_val ;;
2660 esac
2661 case " $ac_configure_args " in
2662 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2663 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2664 esac
2665 fi
2666done
2667if $ac_cache_corrupted; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2669$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2671$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2672 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
f35db108
WM
2673fi
2674## -------------------- ##
2675## Main body of script. ##
2676## -------------------- ##
2677
2678ac_ext=c
2679ac_cpp='$CPP $CPPFLAGS'
2680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2682ac_compiler_gnu=$ac_cv_c_compiler_gnu
2683
2684
2685
a2479b3d
L
2686
2687
2688
4053ca2c 2689
94213c10
MK
2690# Default to --enable-multilib
2691# Check whether --enable-multilib was given.
2692if test "${enable_multilib+set}" = set; then :
2693 enableval=$enable_multilib; case "$enableval" in
2694 yes) multilib=yes ;;
2695 no) multilib=no ;;
22e05272 2696 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
94213c10
MK
2697 esac
2698else
2699 multilib=yes
2700fi
2701
2702
2703# We may get other options which we leave undocumented:
2704# --with-target-subdir, --with-multisrctop, --with-multisubdir
2705# See config-ml.in if you want the gory details.
2706
2707if test "$srcdir" = "."; then
2708 if test "$with_target_subdir" != "."; then
2709 multi_basedir="$srcdir/$with_multisrctop../.."
2710 else
2711 multi_basedir="$srcdir/$with_multisrctop.."
2712 fi
2713else
2714 multi_basedir="$srcdir/.."
2715fi
2716
2717
2718# Even if the default multilib is not a cross compilation,
2719# it may be that some of the other multilibs are.
2720if test $cross_compiling = no && test $multilib = yes \
2721 && test "x${with_multisubdir}" != x ; then
2722 cross_compiling=maybe
2723fi
2724
2725ac_config_commands="$ac_config_commands default-1"
2726
2727
2a6346c4
L
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2729$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2730# Check whether --enable-version-specific-runtime-libs was given.
2731if test "${enable_version_specific_runtime_libs+set}" = set; then :
2732 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2733 yes) version_specific_libs=yes ;;
2734 no) version_specific_libs=no ;;
22e05272 2735 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2a6346c4
L
2736 esac
2737else
2738 version_specific_libs=no
2739fi
2740
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2742$as_echo "$version_specific_libs" >&6; }
2743
22e05272
JM
2744ac_aux_dir=
2745for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2746 if 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/install.sh"; then
2751 ac_aux_dir=$ac_dir
2752 ac_install_sh="$ac_aux_dir/install.sh -c"
2753 break
2754 elif test -f "$ac_dir/shtool"; then
2755 ac_aux_dir=$ac_dir
2756 ac_install_sh="$ac_aux_dir/shtool install -c"
2757 break
2758 fi
2759done
2760if test -z "$ac_aux_dir"; then
2761 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2762fi
2763
2764# These three variables are undocumented and unsupported,
2765# and are intended to be withdrawn in a future Autoconf release.
2766# They can cause serious problems if a builder's source tree is in a directory
2767# whose full name contains unusual characters.
2768ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2769ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2770ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2771
2772
2773# Expand $ac_aux_dir to an absolute path.
2774am_aux_dir=`cd "$ac_aux_dir" && pwd`
2775
c915a581
JJ
2776ac_ext=c
2777ac_cpp='$CPP $CPPFLAGS'
2778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781if test -n "$ac_tool_prefix"; then
2782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2783set dummy ${ac_tool_prefix}gcc; ac_word=$2
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2786if ${ac_cv_prog_CC+:} false; then :
2a6346c4
L
2787 $as_echo_n "(cached) " >&6
2788else
c915a581
JJ
2789 if test -n "$CC"; then
2790 ac_cv_prog_CC="$CC" # Let the user override the test.
2791else
2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793for as_dir in $PATH
2794do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
2799 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803done
2804 done
2805IFS=$as_save_IFS
2a6346c4
L
2806
2807fi
c915a581
JJ
2808fi
2809CC=$ac_cv_prog_CC
2810if test -n "$CC"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2812$as_echo "$CC" >&6; }
2813else
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815$as_echo "no" >&6; }
2816fi
2a6346c4
L
2817
2818
c915a581
JJ
2819fi
2820if test -z "$ac_cv_prog_CC"; then
2821 ac_ct_CC=$CC
2822 # Extract the first word of "gcc", so it can be a program name with args.
2823set dummy gcc; ac_word=$2
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2826if ${ac_cv_prog_ac_ct_CC+:} false; then :
2a6346c4
L
2827 $as_echo_n "(cached) " >&6
2828else
c915a581
JJ
2829 if test -n "$ac_ct_CC"; then
2830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2a6346c4 2831else
c915a581
JJ
2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833for as_dir in $PATH
2834do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
2839 ac_cv_prog_ac_ct_CC="gcc"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2842 fi
2843done
2844 done
2845IFS=$as_save_IFS
2a6346c4
L
2846
2847fi
c915a581
JJ
2848fi
2849ac_ct_CC=$ac_cv_prog_ac_ct_CC
2850if test -n "$ac_ct_CC"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2852$as_echo "$ac_ct_CC" >&6; }
2853else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855$as_echo "no" >&6; }
2856fi
2857
2858 if test "x$ac_ct_CC" = x; then
2859 CC=""
2860 else
2861 case $cross_compiling:$ac_tool_warned in
2862yes:)
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2865ac_tool_warned=yes ;;
2a6346c4 2866esac
c915a581
JJ
2867 CC=$ac_ct_CC
2868 fi
2869else
2870 CC="$ac_cv_prog_CC"
2871fi
2a6346c4 2872
c915a581
JJ
2873if test -z "$CC"; then
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2876set dummy ${ac_tool_prefix}cc; ac_word=$2
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2879if ${ac_cv_prog_CC+:} false; then :
2a6346c4
L
2880 $as_echo_n "(cached) " >&6
2881else
c915a581
JJ
2882 if test -n "$CC"; then
2883 ac_cv_prog_CC="$CC" # Let the user override the test.
2a6346c4 2884else
c915a581
JJ
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
2892 ac_cv_prog_CC="${ac_tool_prefix}cc"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896done
2897 done
2898IFS=$as_save_IFS
2a6346c4
L
2899
2900fi
c915a581
JJ
2901fi
2902CC=$ac_cv_prog_CC
2903if test -n "$CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905$as_echo "$CC" >&6; }
2906else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908$as_echo "no" >&6; }
2909fi
e1e953d9 2910
d10a2df2 2911
c915a581
JJ
2912 fi
2913fi
2914if test -z "$CC"; then
2915 # Extract the first word of "cc", so it can be a program name with args.
2916set dummy cc; ac_word=$2
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2919if ${ac_cv_prog_CC+:} false; then :
c915a581
JJ
2920 $as_echo_n "(cached) " >&6
2921else
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC="$CC" # Let the user override the test.
2924else
2925 ac_prog_rejected=no
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
2933 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2934 ac_prog_rejected=yes
2935 continue
2936 fi
2937 ac_cv_prog_CC="cc"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2940 fi
2941done
2942 done
2943IFS=$as_save_IFS
d10a2df2 2944
c915a581
JJ
2945if test $ac_prog_rejected = yes; then
2946 # We found a bogon in the path, so make sure we never use it.
2947 set dummy $ac_cv_prog_CC
2948 shift
2949 if test $# != 0; then
2950 # We chose a different compiler from the bogus one.
2951 # However, it has the same basename, so the bogon will be chosen
2952 # first if we set CC to just the basename; use the full file name.
2953 shift
2954 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2955 fi
2956fi
2957fi
2958fi
2959CC=$ac_cv_prog_CC
2960if test -n "$CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962$as_echo "$CC" >&6; }
2963else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965$as_echo "no" >&6; }
2966fi
2a6346c4 2967
2a6346c4 2968
c915a581
JJ
2969fi
2970if test -z "$CC"; then
2971 if test -n "$ac_tool_prefix"; then
2972 for ac_prog in cl.exe
2973 do
2974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2975set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2978if ${ac_cv_prog_CC+:} false; then :
f35db108
WM
2979 $as_echo_n "(cached) " >&6
2980else
c915a581
JJ
2981 if test -n "$CC"; then
2982 ac_cv_prog_CC="$CC" # Let the user override the test.
2983else
2984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
f35db108
WM
2985for as_dir in $PATH
2986do
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
c915a581 2989 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
2991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2994 fi
2995done
f35db108
WM
2996 done
2997IFS=$as_save_IFS
2998
f35db108 2999fi
f35db108 3000fi
c915a581
JJ
3001CC=$ac_cv_prog_CC
3002if test -n "$CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004$as_echo "$CC" >&6; }
f35db108 3005else
c915a581
JJ
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007$as_echo "no" >&6; }
f35db108 3008fi
f35db108 3009
f35db108 3010
c915a581
JJ
3011 test -n "$CC" && break
3012 done
f35db108 3013fi
c915a581
JJ
3014if test -z "$CC"; then
3015 ac_ct_CC=$CC
3016 for ac_prog in cl.exe
3017do
3018 # Extract the first word of "$ac_prog", so it can be a program name with args.
3019set dummy $ac_prog; ac_word=$2
f35db108
WM
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3022if ${ac_cv_prog_ac_ct_CC+:} false; then :
f35db108
WM
3023 $as_echo_n "(cached) " >&6
3024else
c915a581
JJ
3025 if test -n "$ac_ct_CC"; then
3026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
f35db108
WM
3027else
3028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029for as_dir in $PATH
3030do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 3035 ac_cv_prog_ac_ct_CC="$ac_prog"
f35db108
WM
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3038 fi
3039done
3040 done
3041IFS=$as_save_IFS
3042
3043fi
3044fi
c915a581
JJ
3045ac_ct_CC=$ac_cv_prog_ac_ct_CC
3046if test -n "$ac_ct_CC"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3048$as_echo "$ac_ct_CC" >&6; }
f35db108
WM
3049else
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051$as_echo "no" >&6; }
3052fi
3053
3054
c915a581 3055 test -n "$ac_ct_CC" && break
f35db108 3056done
f35db108 3057
c915a581
JJ
3058 if test "x$ac_ct_CC" = x; then
3059 CC=""
f35db108
WM
3060 else
3061 case $cross_compiling:$ac_tool_warned in
3062yes:)
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065ac_tool_warned=yes ;;
3066esac
c915a581 3067 CC=$ac_ct_CC
f35db108 3068 fi
f35db108
WM
3069fi
3070
3071fi
f35db108 3072
f35db108 3073
c915a581
JJ
3074test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3076as_fn_error $? "no acceptable C compiler found in \$PATH
3077See \`config.log' for more details" "$LINENO" 5; }
f35db108 3078
c915a581
JJ
3079# Provide some information about the compiler.
3080$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3081set X $ac_compile
3082ac_compiler=$2
3083for ac_option in --version -v -V -qversion; do
3084 { { ac_try="$ac_compiler $ac_option >&5"
3085case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090$as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3092 ac_status=$?
3093 if test -s conftest.err; then
3094 sed '10a\
3095... rest of stderr output deleted ...
3096 10q' conftest.err >conftest.er1
3097 cat conftest.er1 >&5
f35db108 3098 fi
22e05272 3099 rm -f conftest.er1 conftest.err
c915a581
JJ
3100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101 test $ac_status = 0; }
3102done
f35db108 3103
c915a581
JJ
3104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105/* end confdefs.h. */
f35db108 3106
c915a581
JJ
3107int
3108main ()
3109{
f35db108 3110
c915a581
JJ
3111 ;
3112 return 0;
3113}
3114_ACEOF
3115ac_clean_files_save=$ac_clean_files
22e05272 3116ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
c915a581
JJ
3117# Try to create an executable without -o first, disregard a.out.
3118# It will help us diagnose broken compilers, and finding out an intuition
3119# of exeext.
22e05272
JM
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3121$as_echo_n "checking whether the C compiler works... " >&6; }
c915a581 3122ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
f35db108 3123
c915a581
JJ
3124# The possible output files:
3125ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
f35db108 3126
c915a581
JJ
3127ac_rmfiles=
3128for ac_file in $ac_files
3129do
3130 case $ac_file in
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3132 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3133 esac
f35db108 3134done
c915a581 3135rm -f $ac_rmfiles
f35db108 3136
c915a581
JJ
3137if { { ac_try="$ac_link_default"
3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
f35db108 3141esac
c915a581
JJ
3142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143$as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_link_default") 2>&5
3145 ac_status=$?
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }; then :
3148 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3149# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3150# in a Makefile. We should not override ac_cv_exeext if it was cached,
3151# so that the user can short-circuit this test for compilers unknown to
3152# Autoconf.
3153for ac_file in $ac_files ''
3154do
3155 test -f "$ac_file" || continue
3156 case $ac_file in
3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3158 ;;
3159 [ab].out )
3160 # We found the default executable, but exeext='' is most
3161 # certainly right.
3162 break;;
3163 *.* )
3164 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3165 then :; else
3166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167 fi
3168 # We set ac_cv_exeext here because the later test for it is not
3169 # safe: cross compilers may not add the suffix if given an `-o'
3170 # argument, so we may need to know it at that point already.
3171 # Even if this section looks crufty: it has the advantage of
3172 # actually working.
3173 break;;
3174 * )
3175 break;;
3176 esac
3177done
3178test "$ac_cv_exeext" = no && ac_cv_exeext=
f35db108 3179
f35db108 3180else
c915a581 3181 ac_file=''
f35db108 3182fi
c915a581 3183if test -z "$ac_file"; then :
22e05272
JM
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186$as_echo "$as_me: failed program was:" >&5
c915a581 3187sed 's/^/| /' conftest.$ac_ext >&5
f35db108 3188
c915a581
JJ
3189{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3191as_fn_error 77 "C compiler cannot create executables
3192See \`config.log' for more details" "$LINENO" 5; }
3193else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3195$as_echo "yes" >&6; }
f35db108 3196fi
22e05272
JM
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3198$as_echo_n "checking for C compiler default output file name... " >&6; }
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3200$as_echo "$ac_file" >&6; }
c915a581 3201ac_exeext=$ac_cv_exeext
f35db108 3202
22e05272 3203rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
c915a581 3204ac_clean_files=$ac_clean_files_save
c915a581
JJ
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3206$as_echo_n "checking for suffix of executables... " >&6; }
3207if { { ac_try="$ac_link"
3208case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211esac
3212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213$as_echo "$ac_try_echo"; } >&5
3214 (eval "$ac_link") 2>&5
3215 ac_status=$?
3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }; then :
3218 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3219# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3220# work properly (i.e., refer to `conftest.exe'), while it won't with
3221# `rm'.
3222for ac_file in conftest.exe conftest conftest.*; do
3223 test -f "$ac_file" || continue
3224 case $ac_file in
3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3227 break;;
3228 * ) break;;
3229 esac
3230done
3231else
3232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3234as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3235See \`config.log' for more details" "$LINENO" 5; }
c915a581 3236fi
22e05272 3237rm -f conftest conftest$ac_cv_exeext
c915a581
JJ
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3239$as_echo "$ac_cv_exeext" >&6; }
f35db108 3240
c915a581
JJ
3241rm -f conftest.$ac_ext
3242EXEEXT=$ac_cv_exeext
3243ac_exeext=$EXEEXT
22e05272
JM
3244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245/* end confdefs.h. */
3246#include <stdio.h>
3247int
3248main ()
3249{
3250FILE *f = fopen ("conftest.out", "w");
3251 return ferror (f) || fclose (f) != 0;
3252
3253 ;
3254 return 0;
3255}
3256_ACEOF
3257ac_clean_files="$ac_clean_files conftest.out"
3258# Check that the compiler produces executables we can run. If not, either
3259# the compiler is broken, or we cross compile.
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3261$as_echo_n "checking whether we are cross compiling... " >&6; }
3262if test "$cross_compiling" != yes; then
3263 { { ac_try="$ac_link"
3264case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267esac
3268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269$as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_link") 2>&5
3271 ac_status=$?
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }
3274 if { ac_try='./conftest$ac_cv_exeext'
3275 { { case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278esac
3279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280$as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_try") 2>&5
3282 ac_status=$?
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }; }; then
3285 cross_compiling=no
3286 else
3287 if test "$cross_compiling" = maybe; then
3288 cross_compiling=yes
3289 else
3290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292as_fn_error $? "cannot run C compiled programs.
3293If you meant to cross compile, use \`--host'.
3294See \`config.log' for more details" "$LINENO" 5; }
3295 fi
3296 fi
3297fi
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3299$as_echo "$cross_compiling" >&6; }
3300
3301rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3302ac_clean_files=$ac_clean_files_save
c915a581
JJ
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3304$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3305if ${ac_cv_objext+:} false; then :
c915a581
JJ
3306 $as_echo_n "(cached) " >&6
3307else
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309/* end confdefs.h. */
f35db108 3310
c915a581
JJ
3311int
3312main ()
3313{
f35db108 3314
c915a581
JJ
3315 ;
3316 return 0;
3317}
3318_ACEOF
3319rm -f conftest.o conftest.obj
3320if { { ac_try="$ac_compile"
3321case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324esac
3325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326$as_echo "$ac_try_echo"; } >&5
3327 (eval "$ac_compile") 2>&5
3328 ac_status=$?
3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }; then :
3331 for ac_file in conftest.o conftest.obj conftest.*; do
3332 test -f "$ac_file" || continue;
3333 case $ac_file in
3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3336 break;;
3337 esac
3338done
2a6346c4 3339else
c915a581
JJ
3340 $as_echo "$as_me: failed program was:" >&5
3341sed 's/^/| /' conftest.$ac_ext >&5
2a6346c4 3342
c915a581
JJ
3343{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3345as_fn_error $? "cannot compute suffix of object files: cannot compile
3346See \`config.log' for more details" "$LINENO" 5; }
2a6346c4 3347fi
c915a581 3348rm -f conftest.$ac_cv_objext conftest.$ac_ext
2a6346c4 3349fi
c915a581
JJ
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3351$as_echo "$ac_cv_objext" >&6; }
3352OBJEXT=$ac_cv_objext
3353ac_objext=$OBJEXT
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3355$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3356if ${ac_cv_c_compiler_gnu+:} false; then :
c915a581
JJ
3357 $as_echo_n "(cached) " >&6
3358else
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360/* end confdefs.h. */
2a6346c4 3361
c915a581
JJ
3362int
3363main ()
3364{
3365#ifndef __GNUC__
3366 choke me
3367#endif
2a6346c4 3368
c915a581
JJ
3369 ;
3370 return 0;
3371}
3372_ACEOF
3373if ac_fn_c_try_compile "$LINENO"; then :
3374 ac_compiler_gnu=yes
2b723e21 3375else
c915a581 3376 ac_compiler_gnu=no
2b723e21 3377fi
c915a581
JJ
3378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379ac_cv_c_compiler_gnu=$ac_compiler_gnu
2b723e21 3380
c915a581
JJ
3381fi
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3383$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3384if test $ac_compiler_gnu = yes; then
3385 GCC=yes
2b723e21 3386else
c915a581 3387 GCC=
2b723e21 3388fi
c915a581
JJ
3389ac_test_CFLAGS=${CFLAGS+set}
3390ac_save_CFLAGS=$CFLAGS
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3392$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3393if ${ac_cv_prog_cc_g+:} false; then :
c915a581
JJ
3394 $as_echo_n "(cached) " >&6
3395else
3396 ac_save_c_werror_flag=$ac_c_werror_flag
3397 ac_c_werror_flag=yes
3398 ac_cv_prog_cc_g=no
3399 CFLAGS="-g"
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401/* end confdefs.h. */
2b723e21 3402
c915a581
JJ
3403int
3404main ()
3405{
2b723e21 3406
c915a581
JJ
3407 ;
3408 return 0;
3409}
3410_ACEOF
3411if ac_fn_c_try_compile "$LINENO"; then :
3412 ac_cv_prog_cc_g=yes
3413else
3414 CFLAGS=""
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416/* end confdefs.h. */
2a6346c4 3417
c915a581
JJ
3418int
3419main ()
3420{
2a6346c4 3421
c915a581
JJ
3422 ;
3423 return 0;
3424}
3425_ACEOF
3426if ac_fn_c_try_compile "$LINENO"; then :
f35db108 3427
f35db108 3428else
c915a581
JJ
3429 ac_c_werror_flag=$ac_save_c_werror_flag
3430 CFLAGS="-g"
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432/* end confdefs.h. */
3433
3434int
3435main ()
3436{
f35db108 3437
c915a581
JJ
3438 ;
3439 return 0;
3440}
3441_ACEOF
3442if ac_fn_c_try_compile "$LINENO"; then :
3443 ac_cv_prog_cc_g=yes
f35db108 3444fi
c915a581 3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 3446fi
c915a581 3447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 3448fi
c915a581
JJ
3449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 ac_c_werror_flag=$ac_save_c_werror_flag
f35db108 3451fi
c915a581
JJ
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3453$as_echo "$ac_cv_prog_cc_g" >&6; }
3454if test "$ac_test_CFLAGS" = set; then
3455 CFLAGS=$ac_save_CFLAGS
3456elif test $ac_cv_prog_cc_g = yes; then
3457 if test "$GCC" = yes; then
3458 CFLAGS="-g -O2"
3459 else
3460 CFLAGS="-g"
f35db108 3461 fi
f35db108 3462else
c915a581
JJ
3463 if test "$GCC" = yes; then
3464 CFLAGS="-O2"
f35db108 3465 else
c915a581 3466 CFLAGS=
f35db108 3467 fi
f35db108 3468fi
c915a581
JJ
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3470$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3471if ${ac_cv_prog_cc_c89+:} false; then :
f35db108
WM
3472 $as_echo_n "(cached) " >&6
3473else
c915a581
JJ
3474 ac_cv_prog_cc_c89=no
3475ac_save_CC=$CC
3476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477/* end confdefs.h. */
3478#include <stdarg.h>
3479#include <stdio.h>
22e05272 3480struct stat;
c915a581
JJ
3481/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3482struct buf { int x; };
3483FILE * (*rcsopen) (struct buf *, struct stat *, int);
3484static char *e (p, i)
3485 char **p;
3486 int i;
3487{
3488 return p[i];
3489}
3490static char *f (char * (*g) (char **, int), char **p, ...)
3491{
3492 char *s;
3493 va_list v;
3494 va_start (v,p);
3495 s = g (p, va_arg (v,int));
3496 va_end (v);
3497 return s;
3498}
f35db108 3499
c915a581
JJ
3500/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3501 function prototypes and stuff, but not '\xHH' hex character constants.
3502 These don't provoke an error unfortunately, instead are silently treated
3503 as 'x'. The following induces an error, until -std is added to get
3504 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3505 array size at least. It's necessary to write '\x00'==0 to get something
3506 that's true only with -std. */
3507int osf4_cc_array ['\x00' == 0 ? 1 : -1];
f35db108 3508
c915a581
JJ
3509/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3510 inside strings and character constants. */
3511#define FOO(x) 'x'
3512int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
f35db108 3513
c915a581
JJ
3514int test (int i, double x);
3515struct s1 {int (*f) (int a);};
3516struct s2 {int (*f) (double a);};
3517int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3518int argc;
3519char **argv;
3520int
3521main ()
3522{
3523return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3524 ;
3525 return 0;
3526}
3527_ACEOF
3528for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3529 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
f35db108 3530do
c915a581
JJ
3531 CC="$ac_save_CC $ac_arg"
3532 if ac_fn_c_try_compile "$LINENO"; then :
3533 ac_cv_prog_cc_c89=$ac_arg
3534fi
3535rm -f core conftest.err conftest.$ac_objext
3536 test "x$ac_cv_prog_cc_c89" != "xno" && break
f35db108 3537done
c915a581
JJ
3538rm -f conftest.$ac_ext
3539CC=$ac_save_CC
f35db108 3540
f35db108 3541fi
c915a581
JJ
3542# AC_CACHE_VAL
3543case "x$ac_cv_prog_cc_c89" in
3544 x)
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3546$as_echo "none needed" >&6; } ;;
3547 xno)
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3549$as_echo "unsupported" >&6; } ;;
3550 *)
3551 CC="$CC $ac_cv_prog_cc_c89"
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3553$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3554esac
3555if test "x$ac_cv_prog_cc_c89" != xno; then :
3556
f35db108
WM
3557fi
3558
c915a581
JJ
3559ac_ext=c
3560ac_cpp='$CPP $CPPFLAGS'
3561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564
22e05272
JM
3565ac_ext=c
3566ac_cpp='$CPP $CPPFLAGS'
3567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3571$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3572if ${am_cv_prog_cc_c_o+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574else
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576/* end confdefs.h. */
3577
3578int
3579main ()
3580{
3581
3582 ;
3583 return 0;
3584}
3585_ACEOF
3586 # Make sure it works both with $CC and with simple cc.
3587 # Following AC_PROG_CC_C_O, we do the test twice because some
3588 # compilers refuse to overwrite an existing .o file with -o,
3589 # though they will create one.
3590 am_cv_prog_cc_c_o=yes
3591 for am_i in 1 2; do
3592 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3593 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } \
3597 && test -f conftest2.$ac_objext; then
3598 : OK
3599 else
3600 am_cv_prog_cc_c_o=no
3601 break
3602 fi
3603 done
3604 rm -f core conftest*
3605 unset am_i
3606fi
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3608$as_echo "$am_cv_prog_cc_c_o" >&6; }
3609if test "$am_cv_prog_cc_c_o" != yes; then
3610 # Losing compiler, so override with the script.
3611 # FIXME: It is wrong to rewrite CC.
3612 # But if we don't then we get into trouble of one sort or another.
3613 # A longer-term fix would be to have automake use am__CC in this case,
3614 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3615 CC="$am_aux_dir/compile $CC"
3616fi
3617ac_ext=c
3618ac_cpp='$CPP $CPPFLAGS'
3619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622
3623
f35db108 3624
c915a581
JJ
3625ac_ext=c
3626ac_cpp='$CPP $CPPFLAGS'
3627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3631$as_echo_n "checking how to run the C preprocessor... " >&6; }
3632# On Suns, sometimes $CPP names a directory.
3633if test -n "$CPP" && test -d "$CPP"; then
3634 CPP=
f35db108 3635fi
c915a581 3636if test -z "$CPP"; then
22e05272 3637 if ${ac_cv_prog_CPP+:} false; then :
f35db108
WM
3638 $as_echo_n "(cached) " >&6
3639else
c915a581
JJ
3640 # Double quotes because CPP needs to be expanded
3641 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3642 do
3643 ac_preproc_ok=false
3644for ac_c_preproc_warn_flag in '' yes
f35db108 3645do
c915a581
JJ
3646 # Use a header file that comes with gcc, so configuring glibc
3647 # with a fresh cross-compiler works.
3648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3649 # <limits.h> exists even on freestanding compilers.
3650 # On the NeXT, cc -E runs the code through the compiler's parser,
3651 # not just through cpp. "Syntax error" is here to catch this case.
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653/* end confdefs.h. */
3654#ifdef __STDC__
3655# include <limits.h>
3656#else
3657# include <assert.h>
3658#endif
3659 Syntax error
3660_ACEOF
3661if ac_fn_c_try_cpp "$LINENO"; then :
f35db108 3662
c915a581
JJ
3663else
3664 # Broken: fails on valid input.
3665continue
f35db108 3666fi
22e05272 3667rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
3668
3669 # OK, works on sane cases. Now check whether nonexistent headers
3670 # can be detected and how.
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672/* end confdefs.h. */
3673#include <ac_nonexistent.h>
3674_ACEOF
3675if ac_fn_c_try_cpp "$LINENO"; then :
3676 # Broken: success on invalid input.
3677continue
f35db108 3678else
c915a581
JJ
3679 # Passes both tests.
3680ac_preproc_ok=:
3681break
3682fi
22e05272 3683rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
3684
3685done
3686# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3687rm -f conftest.i conftest.err conftest.$ac_ext
c915a581
JJ
3688if $ac_preproc_ok; then :
3689 break
f35db108
WM
3690fi
3691
c915a581
JJ
3692 done
3693 ac_cv_prog_CPP=$CPP
f35db108 3694
f35db108 3695fi
c915a581 3696 CPP=$ac_cv_prog_CPP
f35db108 3697else
c915a581
JJ
3698 ac_cv_prog_CPP=$CPP
3699fi
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3701$as_echo "$CPP" >&6; }
3702ac_preproc_ok=false
3703for ac_c_preproc_warn_flag in '' yes
f35db108 3704do
c915a581
JJ
3705 # Use a header file that comes with gcc, so configuring glibc
3706 # with a fresh cross-compiler works.
3707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3708 # <limits.h> exists even on freestanding compilers.
3709 # On the NeXT, cc -E runs the code through the compiler's parser,
3710 # not just through cpp. "Syntax error" is here to catch this case.
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712/* end confdefs.h. */
3713#ifdef __STDC__
3714# include <limits.h>
3715#else
3716# include <assert.h>
3717#endif
3718 Syntax error
3719_ACEOF
3720if ac_fn_c_try_cpp "$LINENO"; then :
f35db108 3721
c915a581
JJ
3722else
3723 # Broken: fails on valid input.
3724continue
f35db108 3725fi
22e05272 3726rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
3727
3728 # OK, works on sane cases. Now check whether nonexistent headers
3729 # can be detected and how.
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731/* end confdefs.h. */
3732#include <ac_nonexistent.h>
3733_ACEOF
3734if ac_fn_c_try_cpp "$LINENO"; then :
3735 # Broken: success on invalid input.
3736continue
3737else
3738 # Passes both tests.
3739ac_preproc_ok=:
3740break
f35db108 3741fi
22e05272 3742rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
3743
3744done
3745# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3746rm -f conftest.i conftest.err conftest.$ac_ext
c915a581
JJ
3747if $ac_preproc_ok; then :
3748
f35db108 3749else
c915a581
JJ
3750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3752as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3753See \`config.log' for more details" "$LINENO" 5; }
f35db108
WM
3754fi
3755
c915a581
JJ
3756ac_ext=c
3757ac_cpp='$CPP $CPPFLAGS'
3758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 3761
f35db108 3762
c915a581
JJ
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3764$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 3765if ${ac_cv_path_GREP+:} false; then :
c915a581
JJ
3766 $as_echo_n "(cached) " >&6
3767else
3768 if test -z "$GREP"; then
3769 ac_path_GREP_found=false
3770 # Loop through the user's path and test for each of PROGNAME-LIST
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3773do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_prog in grep ggrep; do
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3779 as_fn_executable_p "$ac_path_GREP" || continue
c915a581
JJ
3780# Check for GNU ac_path_GREP and select it if it is found.
3781 # Check for GNU $ac_path_GREP
3782case `"$ac_path_GREP" --version 2>&1` in
3783*GNU*)
3784 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3785*)
3786 ac_count=0
3787 $as_echo_n 0123456789 >"conftest.in"
3788 while :
3789 do
3790 cat "conftest.in" "conftest.in" >"conftest.tmp"
3791 mv "conftest.tmp" "conftest.in"
3792 cp "conftest.in" "conftest.nl"
3793 $as_echo 'GREP' >> "conftest.nl"
3794 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3796 as_fn_arith $ac_count + 1 && ac_count=$as_val
3797 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3798 # Best one so far, save it but keep looking for a better one
3799 ac_cv_path_GREP="$ac_path_GREP"
3800 ac_path_GREP_max=$ac_count
3801 fi
3802 # 10*(2^10) chars as input seems more than enough
3803 test $ac_count -gt 10 && break
3804 done
3805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
f35db108 3806esac
c915a581
JJ
3807
3808 $ac_path_GREP_found && break 3
3809 done
3810 done
3811 done
3812IFS=$as_save_IFS
3813 if test -z "$ac_cv_path_GREP"; then
22e05272 3814 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
f35db108 3815 fi
c915a581
JJ
3816else
3817 ac_cv_path_GREP=$GREP
f35db108
WM
3818fi
3819
3820fi
c915a581
JJ
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3822$as_echo "$ac_cv_path_GREP" >&6; }
3823 GREP="$ac_cv_path_GREP"
f35db108
WM
3824
3825
c915a581
JJ
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3827$as_echo_n "checking for egrep... " >&6; }
22e05272 3828if ${ac_cv_path_EGREP+:} false; then :
c915a581
JJ
3829 $as_echo_n "(cached) " >&6
3830else
3831 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3832 then ac_cv_path_EGREP="$GREP -E"
3833 else
3834 if test -z "$EGREP"; then
3835 ac_path_EGREP_found=false
3836 # Loop through the user's path and test for each of PROGNAME-LIST
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
f35db108 3839do
c915a581
JJ
3840 IFS=$as_save_IFS
3841 test -z "$as_dir" && as_dir=.
3842 for ac_prog in egrep; do
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3845 as_fn_executable_p "$ac_path_EGREP" || continue
c915a581
JJ
3846# Check for GNU ac_path_EGREP and select it if it is found.
3847 # Check for GNU $ac_path_EGREP
3848case `"$ac_path_EGREP" --version 2>&1` in
3849*GNU*)
3850 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3851*)
3852 ac_count=0
3853 $as_echo_n 0123456789 >"conftest.in"
3854 while :
3855 do
3856 cat "conftest.in" "conftest.in" >"conftest.tmp"
3857 mv "conftest.tmp" "conftest.in"
3858 cp "conftest.in" "conftest.nl"
3859 $as_echo 'EGREP' >> "conftest.nl"
3860 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3861 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3862 as_fn_arith $ac_count + 1 && ac_count=$as_val
3863 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3864 # Best one so far, save it but keep looking for a better one
3865 ac_cv_path_EGREP="$ac_path_EGREP"
3866 ac_path_EGREP_max=$ac_count
3867 fi
3868 # 10*(2^10) chars as input seems more than enough
3869 test $ac_count -gt 10 && break
3870 done
3871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
f35db108 3872esac
f35db108 3873
c915a581
JJ
3874 $ac_path_EGREP_found && break 3
3875 done
3876 done
3877 done
3878IFS=$as_save_IFS
3879 if test -z "$ac_cv_path_EGREP"; then
22e05272 3880 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
c915a581 3881 fi
f35db108 3882else
c915a581 3883 ac_cv_path_EGREP=$EGREP
f35db108 3884fi
f35db108 3885
c915a581 3886 fi
a2479b3d 3887fi
c915a581
JJ
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3889$as_echo "$ac_cv_path_EGREP" >&6; }
3890 EGREP="$ac_cv_path_EGREP"
a2479b3d 3891
f35db108 3892
c915a581
JJ
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3894$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 3895if ${ac_cv_header_stdc+:} false; then :
f35db108
WM
3896 $as_echo_n "(cached) " >&6
3897else
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899/* end confdefs.h. */
c915a581
JJ
3900#include <stdlib.h>
3901#include <stdarg.h>
3902#include <string.h>
3903#include <float.h>
f35db108
WM
3904
3905int
3906main ()
3907{
3908
3909 ;
3910 return 0;
3911}
3912_ACEOF
c915a581
JJ
3913if ac_fn_c_try_compile "$LINENO"; then :
3914 ac_cv_header_stdc=yes
f35db108 3915else
c915a581 3916 ac_cv_header_stdc=no
f35db108 3917fi
c915a581
JJ
3918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919
3920if test $ac_cv_header_stdc = yes; then
3921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
f35db108
WM
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923/* end confdefs.h. */
c915a581 3924#include <string.h>
f35db108 3925
f35db108 3926_ACEOF
c915a581
JJ
3927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3928 $EGREP "memchr" >/dev/null 2>&1; then :
3929
f35db108 3930else
c915a581 3931 ac_cv_header_stdc=no
f35db108 3932fi
c915a581 3933rm -f conftest*
f35db108
WM
3934
3935fi
c915a581
JJ
3936
3937if test $ac_cv_header_stdc = yes; then
3938 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940/* end confdefs.h. */
3941#include <stdlib.h>
3942
3943_ACEOF
3944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3945 $EGREP "free" >/dev/null 2>&1; then :
3946
f35db108 3947else
c915a581 3948 ac_cv_header_stdc=no
f35db108 3949fi
c915a581 3950rm -f conftest*
f35db108 3951
c915a581 3952fi
f35db108 3953
c915a581
JJ
3954if test $ac_cv_header_stdc = yes; then
3955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3956 if test "$cross_compiling" = yes; then :
3957 :
f35db108 3958else
c915a581 3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108 3960/* end confdefs.h. */
c915a581
JJ
3961#include <ctype.h>
3962#include <stdlib.h>
3963#if ((' ' & 0x0FF) == 0x020)
3964# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3965# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3966#else
3967# define ISLOWER(c) \
3968 (('a' <= (c) && (c) <= 'i') \
3969 || ('j' <= (c) && (c) <= 'r') \
3970 || ('s' <= (c) && (c) <= 'z'))
3971# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3972#endif
f35db108 3973
c915a581 3974#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
f35db108
WM
3975int
3976main ()
3977{
c915a581
JJ
3978 int i;
3979 for (i = 0; i < 256; i++)
3980 if (XOR (islower (i), ISLOWER (i))
3981 || toupper (i) != TOUPPER (i))
3982 return 2;
f35db108
WM
3983 return 0;
3984}
3985_ACEOF
c915a581 3986if ac_fn_c_try_run "$LINENO"; then :
f35db108
WM
3987
3988else
c915a581
JJ
3989 ac_cv_header_stdc=no
3990fi
3991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3992 conftest.$ac_objext conftest.beam conftest.$ac_ext
3993fi
f35db108 3994
f35db108 3995fi
f35db108 3996fi
c915a581
JJ
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3998$as_echo "$ac_cv_header_stdc" >&6; }
3999if test $ac_cv_header_stdc = yes; then
4000
4001$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4002
f35db108 4003fi
c915a581
JJ
4004
4005# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4006for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4007 inttypes.h stdint.h unistd.h
4008do :
4009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4010ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4011"
22e05272 4012if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
c915a581
JJ
4013 cat >>confdefs.h <<_ACEOF
4014#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4015_ACEOF
4016
f35db108 4017fi
c915a581
JJ
4018
4019done
4020
4021
4022
4023 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
22e05272 4024if test "x$ac_cv_header_minix_config_h" = xyes; then :
c915a581 4025 MINIX=yes
f35db108 4026else
c915a581 4027 MINIX=
f35db108 4028fi
c915a581
JJ
4029
4030
4031 if test "$MINIX" = yes; then
4032
4033$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4034
4035
4036$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4037
4038
4039$as_echo "#define _MINIX 1" >>confdefs.h
4040
4041 fi
4042
4043
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4045$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
22e05272 4046if ${ac_cv_safe_to_define___extensions__+:} false; then :
f35db108
WM
4047 $as_echo_n "(cached) " >&6
4048else
c915a581 4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108 4050/* end confdefs.h. */
f35db108 4051
22e05272
JM
4052# define __EXTENSIONS__ 1
4053 $ac_includes_default
f35db108
WM
4054int
4055main ()
4056{
c915a581 4057
f35db108
WM
4058 ;
4059 return 0;
4060}
4061_ACEOF
c915a581
JJ
4062if ac_fn_c_try_compile "$LINENO"; then :
4063 ac_cv_safe_to_define___extensions__=yes
4064else
4065 ac_cv_safe_to_define___extensions__=no
f35db108 4066fi
c915a581 4067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 4068fi
c915a581
JJ
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4070$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4071 test $ac_cv_safe_to_define___extensions__ = yes &&
4072 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
f35db108 4073
c915a581 4074 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
f35db108 4075
c915a581 4076 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
f35db108 4077
c915a581 4078 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
f35db108 4079
c915a581 4080 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
f35db108 4081
f35db108 4082
f35db108 4083
c915a581
JJ
4084# Do not delete or change the following two lines. For why, see
4085# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
c915a581
JJ
4086# Make sure we can run config.sub.
4087$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 4088 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
f35db108 4089
c915a581
JJ
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4091$as_echo_n "checking build system type... " >&6; }
22e05272 4092if ${ac_cv_build+:} false; then :
f35db108
WM
4093 $as_echo_n "(cached) " >&6
4094else
c915a581
JJ
4095 ac_build_alias=$build_alias
4096test "x$ac_build_alias" = x &&
4097 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4098test "x$ac_build_alias" = x &&
22e05272 4099 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
c915a581 4100ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 4101 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
f35db108 4102
c915a581
JJ
4103fi
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4105$as_echo "$ac_cv_build" >&6; }
4106case $ac_cv_build in
4107*-*-*) ;;
22e05272 4108*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
c915a581
JJ
4109esac
4110build=$ac_cv_build
4111ac_save_IFS=$IFS; IFS='-'
4112set x $ac_cv_build
4113shift
4114build_cpu=$1
4115build_vendor=$2
4116shift; shift
4117# Remember, the first character of IFS is used to create $*,
4118# except with old shells:
4119build_os=$*
4120IFS=$ac_save_IFS
4121case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
f35db108 4122
f35db108 4123
c915a581
JJ
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4125$as_echo_n "checking host system type... " >&6; }
22e05272 4126if ${ac_cv_host+:} false; then :
c915a581 4127 $as_echo_n "(cached) " >&6
f35db108 4128else
c915a581
JJ
4129 if test "x$host_alias" = x; then
4130 ac_cv_host=$ac_cv_build
4131else
4132 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 4133 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
f35db108
WM
4134fi
4135
4136fi
c915a581
JJ
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4138$as_echo "$ac_cv_host" >&6; }
4139case $ac_cv_host in
4140*-*-*) ;;
22e05272 4141*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
c915a581
JJ
4142esac
4143host=$ac_cv_host
4144ac_save_IFS=$IFS; IFS='-'
4145set x $ac_cv_host
4146shift
4147host_cpu=$1
4148host_vendor=$2
4149shift; shift
4150# Remember, the first character of IFS is used to create $*,
4151# except with old shells:
4152host_os=$*
4153IFS=$ac_save_IFS
4154case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
f35db108
WM
4155
4156
c915a581
JJ
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4158$as_echo_n "checking target system type... " >&6; }
22e05272 4159if ${ac_cv_target+:} false; then :
f35db108
WM
4160 $as_echo_n "(cached) " >&6
4161else
c915a581
JJ
4162 if test "x$target_alias" = x; then
4163 ac_cv_target=$ac_cv_host
f35db108 4164else
c915a581 4165 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 4166 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
f35db108
WM
4167fi
4168
f35db108 4169fi
c915a581
JJ
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4171$as_echo "$ac_cv_target" >&6; }
4172case $ac_cv_target in
4173*-*-*) ;;
22e05272 4174*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
c915a581
JJ
4175esac
4176target=$ac_cv_target
4177ac_save_IFS=$IFS; IFS='-'
4178set x $ac_cv_target
4179shift
4180target_cpu=$1
4181target_vendor=$2
4182shift; shift
4183# Remember, the first character of IFS is used to create $*,
4184# except with old shells:
4185target_os=$*
4186IFS=$ac_save_IFS
4187case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
f35db108 4188
f35db108 4189
c915a581
JJ
4190# The aliases save the names the user supplied, while $host etc.
4191# will get canonicalized.
4192test -n "$target_alias" &&
4193 test "$program_prefix$program_suffix$program_transform_name" = \
4194 NONENONEs,x,x, &&
4195 program_prefix=${target_alias}-
f35db108 4196
c915a581 4197target_alias=${target_alias-$host_alias}
f35db108 4198
c915a581
JJ
4199 case ${build_alias} in
4200 "") build_noncanonical=${build} ;;
4201 *) build_noncanonical=${build_alias} ;;
f35db108 4202esac
f35db108 4203
c915a581
JJ
4204 case ${host_alias} in
4205 "") host_noncanonical=${build_noncanonical} ;;
4206 *) host_noncanonical=${host_alias} ;;
f35db108 4207esac
f35db108 4208
c915a581
JJ
4209 case ${target_alias} in
4210 "") target_noncanonical=${host_noncanonical} ;;
4211 *) target_noncanonical=${target_alias} ;;
4212esac
f35db108 4213
f35db108 4214
f35db108 4215
f35db108 4216
f35db108 4217
c915a581
JJ
4218 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
4219 -I\$(top_builddir)/../libstdc++-v3/include \
4220 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
4221 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
4222 LIBSTDCXX_RAW_CXX_LDFLAGS="\
4223 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
f35db108 4224
f35db108 4225
f35db108 4226
f35db108 4227
8bc1fac7 4228am__api_version='1.15'
f35db108 4229
c915a581
JJ
4230# Find a good install program. We prefer a C program (faster),
4231# so one script is as good as another. But avoid the broken or
4232# incompatible versions:
4233# SysV /etc/install, /usr/sbin/install
4234# SunOS /usr/etc/install
4235# IRIX /sbin/install
4236# AIX /bin/install
4237# AmigaOS /C/install, which installs bootblocks on floppy discs
4238# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4239# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4240# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4241# OS/2's system install, which has a completely different semantic
4242# ./install, which can be erroneously created by make from ./install.sh.
4243# Reject install programs that cannot install multiple files.
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4245$as_echo_n "checking for a BSD-compatible install... " >&6; }
4246if test -z "$INSTALL"; then
22e05272 4247if ${ac_cv_path_install+:} false; then :
f35db108
WM
4248 $as_echo_n "(cached) " >&6
4249else
c915a581
JJ
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251for as_dir in $PATH
4252do
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 # Account for people who put trailing slashes in PATH elements.
4256case $as_dir/ in #((
4257 ./ | .// | /[cC]/* | \
4258 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4259 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4260 /usr/ucb/* ) ;;
4261 *)
4262 # OSF1 and SCO ODT 3.0 have their own names for install.
4263 # Don't use installbsd from OSF since it installs stuff as root
4264 # by default.
4265 for ac_prog in ginstall scoinst install; do
4266 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4267 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
c915a581
JJ
4268 if test $ac_prog = install &&
4269 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4270 # AIX install. It has an incompatible calling convention.
4271 :
4272 elif test $ac_prog = install &&
4273 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4274 # program-specific install script used by HP pwplus--don't use.
4275 :
4276 else
4277 rm -rf conftest.one conftest.two conftest.dir
4278 echo one > conftest.one
4279 echo two > conftest.two
4280 mkdir conftest.dir
4281 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4282 test -s conftest.one && test -s conftest.two &&
4283 test -s conftest.dir/conftest.one &&
4284 test -s conftest.dir/conftest.two
4285 then
4286 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4287 break 3
4288 fi
4289 fi
4290 fi
4291 done
f35db108 4292 done
c915a581
JJ
4293 ;;
4294esac
f35db108 4295
f35db108 4296 done
c915a581 4297IFS=$as_save_IFS
f35db108 4298
c915a581 4299rm -rf conftest.one conftest.two conftest.dir
f35db108
WM
4300
4301fi
c915a581
JJ
4302 if test "${ac_cv_path_install+set}" = set; then
4303 INSTALL=$ac_cv_path_install
4304 else
4305 # As a last resort, use the slow shell script. Don't cache a
4306 # value for INSTALL within a source directory, because that will
4307 # break other packages using the cache if that directory is
4308 # removed, or if the value is a relative name.
4309 INSTALL=$ac_install_sh
4310 fi
f35db108 4311fi
c915a581
JJ
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4313$as_echo "$INSTALL" >&6; }
f35db108 4314
c915a581
JJ
4315# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4316# It thinks the first close brace ends the variable substitution.
4317test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
f35db108 4318
c915a581 4319test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f35db108 4320
c915a581 4321test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
f35db108 4322
c915a581
JJ
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4324$as_echo_n "checking whether build environment is sane... " >&6; }
c915a581
JJ
4325# Reject unsafe characters in $srcdir or the absolute working directory
4326# name. Accept space and tab only in the latter.
4327am_lf='
4328'
4329case `pwd` in
4330 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 4331 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
c915a581
JJ
4332esac
4333case $srcdir in
4334 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 4335 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
c915a581 4336esac
f35db108 4337
22e05272 4338# Do 'set' in a subshell so we don't clobber the current shell's
c915a581
JJ
4339# arguments. Must try -L first in case configure is actually a
4340# symlink; some systems play weird games with the mod time of symlinks
4341# (eg FreeBSD returns the mod time of the symlink's containing
4342# directory).
4343if (
22e05272
JM
4344 am_has_slept=no
4345 for am_try in 1 2; do
4346 echo "timestamp, slept: $am_has_slept" > conftest.file
4347 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4348 if test "$*" = "X"; then
4349 # -L didn't work.
4350 set X `ls -t "$srcdir/configure" conftest.file`
4351 fi
4352 if test "$*" != "X $srcdir/configure conftest.file" \
4353 && test "$*" != "X conftest.file $srcdir/configure"; then
4354
4355 # If neither matched, then we have a broken ls. This can happen
4356 # if, for instance, CONFIG_SHELL is bash and it inherits a
4357 # broken ls alias from the environment. This has actually
4358 # happened. Such a system could not be considered "sane".
4359 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4360 alias in your environment" "$LINENO" 5
4361 fi
4362 if test "$2" = conftest.file || test $am_try -eq 2; then
4363 break
4364 fi
4365 # Just in case.
4366 sleep 1
4367 am_has_slept=yes
4368 done
c915a581
JJ
4369 test "$2" = conftest.file
4370 )
4371then
4372 # Ok.
4373 :
f35db108 4374else
22e05272 4375 as_fn_error $? "newly created file is older than distributed files!
c915a581 4376Check your system clock" "$LINENO" 5
f35db108 4377fi
c915a581
JJ
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4379$as_echo "yes" >&6; }
22e05272
JM
4380# If we didn't sleep, we still need to ensure time stamps of config.status and
4381# generated files are strictly newer.
4382am_sleep_pid=
4383if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4384 ( sleep 1 ) &
4385 am_sleep_pid=$!
4386fi
4387
4388rm -f conftest.file
4389
c915a581
JJ
4390test "$program_prefix" != NONE &&
4391 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4392# Use a double $ so make ignores it.
4393test "$program_suffix" != NONE &&
4394 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4395# Double any \ or $.
4396# By default was `s,x,x', remove it if useless.
4397ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4398program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
f35db108 4399
c915a581
JJ
4400if test x"${MISSING+set}" != xset; then
4401 case $am_aux_dir in
4402 *\ * | *\ *)
4403 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4404 *)
4405 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4406 esac
4407fi
4408# Use eval to expand $SHELL
22e05272
JM
4409if eval "$MISSING --is-lightweight"; then
4410 am_missing_run="$MISSING "
f35db108 4411else
c915a581 4412 am_missing_run=
22e05272
JM
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4414$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
f35db108
WM
4415fi
4416
22e05272 4417if test x"${install_sh+set}" != xset; then
c915a581 4418 case $am_aux_dir in
f35db108 4419 *\ * | *\ *)
c915a581
JJ
4420 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4421 *)
4422 install_sh="\${SHELL} $am_aux_dir/install-sh"
4423 esac
4424fi
f35db108 4425
22e05272
JM
4426# Installed binaries are usually stripped using 'strip' when the user
4427# run "make install-strip". However 'strip' might not be the right
c915a581 4428# tool to use in cross-compilation environments, therefore Automake
22e05272 4429# will honor the 'STRIP' environment variable to overrule this program.
c915a581
JJ
4430if test "$cross_compiling" != no; then
4431 if test -n "$ac_tool_prefix"; then
4432 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4433set dummy ${ac_tool_prefix}strip; ac_word=$2
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4435$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4436if ${ac_cv_prog_STRIP+:} false; then :
c915a581
JJ
4437 $as_echo_n "(cached) " >&6
4438else
4439 if test -n "$STRIP"; then
4440 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4441else
4442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443for as_dir in $PATH
4444do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
4449 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4452 fi
4453done
4454 done
4455IFS=$as_save_IFS
f35db108 4456
c915a581
JJ
4457fi
4458fi
4459STRIP=$ac_cv_prog_STRIP
4460if test -n "$STRIP"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4462$as_echo "$STRIP" >&6; }
4463else
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465$as_echo "no" >&6; }
4466fi
f35db108
WM
4467
4468
c915a581
JJ
4469fi
4470if test -z "$ac_cv_prog_STRIP"; then
4471 ac_ct_STRIP=$STRIP
4472 # Extract the first word of "strip", so it can be a program name with args.
4473set dummy strip; ac_word=$2
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4476if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
c915a581
JJ
4477 $as_echo_n "(cached) " >&6
4478else
4479 if test -n "$ac_ct_STRIP"; then
4480 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4481else
4482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483for as_dir in $PATH
4484do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
4489 ac_cv_prog_ac_ct_STRIP="strip"
4490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4492 fi
4493done
4494 done
4495IFS=$as_save_IFS
f35db108 4496
c915a581
JJ
4497fi
4498fi
4499ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4500if test -n "$ac_ct_STRIP"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4502$as_echo "$ac_ct_STRIP" >&6; }
f35db108 4503else
c915a581
JJ
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505$as_echo "no" >&6; }
f35db108
WM
4506fi
4507
c915a581
JJ
4508 if test "x$ac_ct_STRIP" = x; then
4509 STRIP=":"
4510 else
4511 case $cross_compiling:$ac_tool_warned in
4512yes:)
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4515ac_tool_warned=yes ;;
f35db108 4516esac
c915a581
JJ
4517 STRIP=$ac_ct_STRIP
4518 fi
4519else
4520 STRIP="$ac_cv_prog_STRIP"
4521fi
f35db108 4522
c915a581
JJ
4523fi
4524INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
f35db108 4525
c915a581
JJ
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4527$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4528if test -z "$MKDIR_P"; then
22e05272 4529 if ${ac_cv_path_mkdir+:} false; then :
f35db108
WM
4530 $as_echo_n "(cached) " >&6
4531else
f35db108 4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
c915a581 4533for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
f35db108
WM
4534do
4535 IFS=$as_save_IFS
4536 test -z "$as_dir" && as_dir=.
c915a581
JJ
4537 for ac_prog in mkdir gmkdir; do
4538 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4539 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
c915a581
JJ
4540 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4541 'mkdir (GNU coreutils) '* | \
4542 'mkdir (coreutils) '* | \
4543 'mkdir (fileutils) '4.1*)
4544 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4545 break 3;;
4546 esac
4547 done
4548 done
f35db108
WM
4549 done
4550IFS=$as_save_IFS
f35db108
WM
4551
4552fi
f35db108 4553
22e05272 4554 test -d ./--version && rmdir ./--version
c915a581
JJ
4555 if test "${ac_cv_path_mkdir+set}" = set; then
4556 MKDIR_P="$ac_cv_path_mkdir -p"
4557 else
4558 # As a last resort, use the slow shell script. Don't cache a
4559 # value for MKDIR_P within a source directory, because that will
4560 # break other packages using the cache if that directory is
4561 # removed, or if the value is a relative name.
c915a581
JJ
4562 MKDIR_P="$ac_install_sh -d"
4563 fi
4564fi
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4566$as_echo "$MKDIR_P" >&6; }
f35db108 4567
c915a581
JJ
4568for ac_prog in gawk mawk nawk awk
4569do
4570 # Extract the first word of "$ac_prog", so it can be a program name with args.
4571set dummy $ac_prog; ac_word=$2
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4574if ${ac_cv_prog_AWK+:} false; then :
f35db108
WM
4575 $as_echo_n "(cached) " >&6
4576else
c915a581
JJ
4577 if test -n "$AWK"; then
4578 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4579else
4580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
f35db108
WM
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
f35db108 4585 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
4587 ac_cv_prog_AWK="$ac_prog"
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591done
f35db108 4592 done
c915a581 4593IFS=$as_save_IFS
f35db108 4594
c915a581
JJ
4595fi
4596fi
4597AWK=$ac_cv_prog_AWK
4598if test -n "$AWK"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4600$as_echo "$AWK" >&6; }
f35db108 4601else
c915a581
JJ
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603$as_echo "no" >&6; }
f35db108
WM
4604fi
4605
f35db108 4606
c915a581
JJ
4607 test -n "$AWK" && break
4608done
f35db108 4609
c915a581
JJ
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4611$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4612set x ${MAKE-make}
4613ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 4614if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
f35db108
WM
4615 $as_echo_n "(cached) " >&6
4616else
c915a581
JJ
4617 cat >conftest.make <<\_ACEOF
4618SHELL = /bin/sh
4619all:
4620 @echo '@@@%%%=$(MAKE)=@@@%%%'
4621_ACEOF
22e05272 4622# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
c915a581
JJ
4623case `${MAKE-make} -f conftest.make 2>/dev/null` in
4624 *@@@%%%=?*=@@@%%%*)
4625 eval ac_cv_prog_make_${ac_make}_set=yes;;
4626 *)
4627 eval ac_cv_prog_make_${ac_make}_set=no;;
f35db108 4628esac
c915a581
JJ
4629rm -f conftest.make
4630fi
4631if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4633$as_echo "yes" >&6; }
4634 SET_MAKE=
f35db108 4635else
c915a581
JJ
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637$as_echo "no" >&6; }
4638 SET_MAKE="MAKE=${MAKE-make}"
f35db108
WM
4639fi
4640
c915a581
JJ
4641rm -rf .tst 2>/dev/null
4642mkdir .tst 2>/dev/null
4643if test -d .tst; then
4644 am__leading_dot=.
4645else
4646 am__leading_dot=_
f35db108 4647fi
c915a581 4648rmdir .tst 2>/dev/null
f35db108 4649
c915a581 4650DEPDIR="${am__leading_dot}deps"
f35db108 4651
c915a581 4652ac_config_commands="$ac_config_commands depfiles"
f35db108 4653
8bc1fac7
IS
4654
4655am_make=${MAKE-make}
4656cat > confinc << 'END'
c915a581 4657am__doit:
8bc1fac7 4658 @echo this is the am__doit target
c915a581
JJ
4659.PHONY: am__doit
4660END
8bc1fac7
IS
4661# If we don't find an include directive, just comment out the code.
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4663$as_echo_n "checking for style of include used by $am_make... " >&6; }
c915a581
JJ
4664am__include="#"
4665am__quote=
8bc1fac7
IS
4666_am_result=none
4667# First try GNU make style include.
4668echo "include confinc" > confmf
4669# Ignore all kinds of additional output from 'make'.
4670case `$am_make -s -f confmf 2> /dev/null` in #(
4671*the\ am__doit\ target*)
4672 am__include=include
4673 am__quote=
4674 _am_result=GNU
4675 ;;
b667dd70 4676esac
8bc1fac7
IS
4677# Now try BSD make style include.
4678if test "$am__include" = "#"; then
4679 echo '.include "confinc"' > confmf
4680 case `$am_make -s -f confmf 2> /dev/null` in #(
4681 *the\ am__doit\ target*)
4682 am__include=.include
4683 am__quote="\""
4684 _am_result=BSD
4685 ;;
4686 esac
4687fi
4688
4689
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4691$as_echo "$_am_result" >&6; }
4692rm -f confinc confmf
f35db108 4693
c915a581
JJ
4694# Check whether --enable-dependency-tracking was given.
4695if test "${enable_dependency_tracking+set}" = set; then :
4696 enableval=$enable_dependency_tracking;
4697fi
f35db108 4698
c915a581
JJ
4699if test "x$enable_dependency_tracking" != xno; then
4700 am_depcomp="$ac_aux_dir/depcomp"
4701 AMDEPBACKSLASH='\'
f3915b42 4702 am__nodep='_no'
c915a581
JJ
4703fi
4704 if test "x$enable_dependency_tracking" != xno; then
4705 AMDEP_TRUE=
4706 AMDEP_FALSE='#'
4707else
4708 AMDEP_TRUE='#'
4709 AMDEP_FALSE=
4710fi
f35db108
WM
4711
4712
22e05272
JM
4713# Check whether --enable-silent-rules was given.
4714if test "${enable_silent_rules+set}" = set; then :
4715 enableval=$enable_silent_rules;
4716fi
4717
4718case $enable_silent_rules in # (((
4719 yes) AM_DEFAULT_VERBOSITY=0;;
4720 no) AM_DEFAULT_VERBOSITY=1;;
4721 *) AM_DEFAULT_VERBOSITY=1;;
4722esac
4723am_make=${MAKE-make}
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4725$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4726if ${am_cv_make_support_nested_variables+:} false; then :
4727 $as_echo_n "(cached) " >&6
4728else
4729 if $as_echo 'TRUE=$(BAR$(V))
4730BAR0=false
4731BAR1=true
4732V=1
4733am__doit:
4734 @$(TRUE)
4735.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4736 am_cv_make_support_nested_variables=yes
4737else
4738 am_cv_make_support_nested_variables=no
4739fi
4740fi
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4742$as_echo "$am_cv_make_support_nested_variables" >&6; }
4743if test $am_cv_make_support_nested_variables = yes; then
4744 AM_V='$(V)'
4745 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4746else
4747 AM_V=$AM_DEFAULT_VERBOSITY
4748 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4749fi
4750AM_BACKSLASH='\'
4751
c915a581
JJ
4752if test "`cd $srcdir && pwd`" != "`pwd`"; then
4753 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4754 # is not polluted with repeated "-I."
4755 am__isrc=' -I$(srcdir)'
4756 # test to see if srcdir already configured
4757 if test -f $srcdir/config.status; then
22e05272 4758 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
c915a581
JJ
4759 fi
4760fi
f35db108 4761
c915a581
JJ
4762# test whether we have cygpath
4763if test -z "$CYGPATH_W"; then
4764 if (cygpath --version) >/dev/null 2>/dev/null; then
4765 CYGPATH_W='cygpath -w'
4766 else
4767 CYGPATH_W=echo
4768 fi
4769fi
f35db108
WM
4770
4771
c915a581
JJ
4772# Define the identity of the package.
4773 PACKAGE='package-unused'
4774 VERSION='version-unused'
f35db108
WM
4775
4776
c915a581
JJ
4777cat >>confdefs.h <<_ACEOF
4778#define PACKAGE "$PACKAGE"
4779_ACEOF
f35db108
WM
4780
4781
c915a581
JJ
4782cat >>confdefs.h <<_ACEOF
4783#define VERSION "$VERSION"
4784_ACEOF
f35db108 4785
c915a581 4786# Some tools Automake needs.
f35db108 4787
c915a581 4788ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
f35db108
WM
4789
4790
c915a581 4791AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
f35db108
WM
4792
4793
c915a581 4794AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
f35db108
WM
4795
4796
c915a581 4797AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
f35db108 4798
c915a581
JJ
4799
4800MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4801
22e05272
JM
4802# For better backward compatibility. To be removed once Automake 1.9.x
4803# dies out for good. For more background, see:
8bc1fac7
IS
4804# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4805# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
22e05272
JM
4806mkdir_p='$(MKDIR_P)'
4807
4808# We need awk for the "check" target (and possibly the TAP driver). The
4809# system "awk" is bad on some platforms.
f3915b42
MH
4810# Always define AMTAR for backward compatibility. Yes, it's still used
4811# in the wild :-( We should find a proper way to deprecate it ...
4812AMTAR='$${TAR-tar}'
c915a581 4813
22e05272
JM
4814
4815# We'll loop over all known methods to create a tar archive until one works.
4816_am_tools='gnutar pax cpio none'
4817
f3915b42 4818am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
c915a581
JJ
4819
4820
4821
4822
22e05272 4823
c915a581
JJ
4824depcc="$CC" am_compiler_list=
4825
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4827$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4828if ${am_cv_CC_dependencies_compiler_type+:} false; then :
f35db108
WM
4829 $as_echo_n "(cached) " >&6
4830else
c915a581
JJ
4831 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4832 # We make a subdir and do the tests there. Otherwise we can end up
4833 # making bogus files that we don't know about and never remove. For
4834 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4835 # making a dummy file named 'D' -- because '-MD' means "put the output
4836 # in D".
f3915b42 4837 rm -rf conftest.dir
c915a581
JJ
4838 mkdir conftest.dir
4839 # Copy depcomp to subdir because otherwise we won't find it if we're
4840 # using a relative directory.
4841 cp "$am_depcomp" conftest.dir
4842 cd conftest.dir
4843 # We will build objects and dependencies in a subdirectory because
4844 # it helps to detect inapplicable dependency modes. For instance
4845 # both Tru64's cc and ICC support -MD to output dependencies as a
4846 # side effect of compilation, but ICC will put the dependencies in
4847 # the current directory while Tru64 will put them in the object
4848 # directory.
4849 mkdir sub
4850
4851 am_cv_CC_dependencies_compiler_type=none
4852 if test "$am_compiler_list" = ""; then
4853 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4854 fi
4855 am__universal=false
4856 case " $depcc " in #(
4857 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4858 esac
4859
4860 for depmode in $am_compiler_list; do
4861 # Setup a source with many dependencies, because some compilers
4862 # like to wrap large dependency lists on column 80 (with \), and
4863 # we should not choose a depcomp mode which is confused by this.
4864 #
4865 # We need to recreate these files for each test, as the compiler may
4866 # overwrite some of them when testing with obscure command lines.
4867 # This happens at least with the AIX C compiler.
4868 : > sub/conftest.c
4869 for i in 1 2 3 4 5 6; do
4870 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4871 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4872 # Solaris 10 /bin/sh.
4873 echo '/* dummy */' > sub/conftst$i.h
c915a581
JJ
4874 done
4875 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4876
22e05272 4877 # We check with '-c' and '-o' for the sake of the "dashmstdout"
c915a581 4878 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4879 # handle '-M -o', and we need to detect this. Also, some Intel
4880 # versions had trouble with output in subdirs.
c915a581
JJ
4881 am__obj=sub/conftest.${OBJEXT-o}
4882 am__minus_obj="-o $am__obj"
4883 case $depmode in
4884 gcc)
4885 # This depmode causes a compiler race in universal mode.
4886 test "$am__universal" = false || continue
4887 ;;
4888 nosideeffect)
22e05272
JM
4889 # After this tag, mechanisms are not by side-effect, so they'll
4890 # only be used when explicitly requested.
c915a581
JJ
4891 if test "x$enable_dependency_tracking" = xyes; then
4892 continue
4893 else
4894 break
4895 fi
4896 ;;
f3915b42 4897 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4898 # This compiler won't grok '-c -o', but also, the minuso test has
c915a581
JJ
4899 # not run yet. These depmodes are late enough in the game, and
4900 # so weak that their functioning should not be impacted.
4901 am__obj=conftest.${OBJEXT-o}
4902 am__minus_obj=
4903 ;;
4904 none) break ;;
4905 esac
4906 if depmode=$depmode \
4907 source=sub/conftest.c object=$am__obj \
4908 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4909 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4910 >/dev/null 2>conftest.err &&
4911 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4912 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4913 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4914 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4915 # icc doesn't choke on unknown options, it will just issue warnings
4916 # or remarks (even with -Werror). So we grep stderr for any message
4917 # that says an option was ignored or not supported.
4918 # When given -MP, icc 7.0 and 7.1 complain thusly:
4919 # icc: Command line warning: ignoring option '-M'; no argument required
4920 # The diagnosis changed in icc 8.0:
4921 # icc: Command line remark: option '-MP' not supported
4922 if (grep 'ignoring option' conftest.err ||
4923 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4924 am_cv_CC_dependencies_compiler_type=$depmode
4925 break
4926 fi
f35db108
WM
4927 fi
4928 done
c915a581
JJ
4929
4930 cd ..
4931 rm -rf conftest.dir
f35db108 4932else
c915a581 4933 am_cv_CC_dependencies_compiler_type=none
f35db108 4934fi
c915a581 4935
f35db108 4936fi
c915a581
JJ
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4938$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4939CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
f35db108 4940
c915a581
JJ
4941 if
4942 test "x$enable_dependency_tracking" != xno \
4943 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4944 am__fastdepCC_TRUE=
4945 am__fastdepCC_FALSE='#'
f35db108 4946else
c915a581
JJ
4947 am__fastdepCC_TRUE='#'
4948 am__fastdepCC_FALSE=
f35db108 4949fi
c915a581
JJ
4950
4951
4952
22e05272
JM
4953# POSIX will say in a future version that running "rm -f" with no argument
4954# is OK; and we want to be able to make that assumption in our Makefile
4955# recipes. So use an aggressive probe to check that the usage we want is
4956# actually supported "in the wild" to an acceptable degree.
4957# See automake bug#10828.
4958# To make any issue more visible, cause the running configure to be aborted
4959# by default if the 'rm' program in use doesn't match our expectations; the
4960# user can still override this though.
4961if rm -f && rm -fr && rm -rf; then : OK; else
4962 cat >&2 <<'END'
4963Oops!
4964
4965Your 'rm' program seems unable to run without file operands specified
4966on the command line, even when the '-f' option is present. This is contrary
4967to the behaviour of most rm programs out there, and not conforming with
4968the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4969
4970Please tell bug-automake@gnu.org about your system, including the value
4971of your $PATH and any error possibly output before this message. This
4972can help us improve future automake versions.
4973
4974END
4975 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4976 echo 'Configuration will proceed anyway, since you have set the' >&2
4977 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4978 echo >&2
4979 else
4980 cat >&2 <<'END'
4981Aborting the configuration process, to ensure you take notice of the issue.
4982
4983You can download and install GNU coreutils to get an 'rm' implementation
8bc1fac7 4984that behaves properly: <http://www.gnu.org/software/coreutils/>.
22e05272
JM
4985
4986If you want to complete the configuration process using your problematic
4987'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4988to "yes", and re-run configure.
4989
4990END
4991 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4992 fi
4993fi
4994
f35db108 4995
c915a581
JJ
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4997$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4998 # Check whether --enable-maintainer-mode was given.
4999if test "${enable_maintainer_mode+set}" = set; then :
5000 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
f35db108 5001else
c915a581 5002 USE_MAINTAINER_MODE=no
f35db108 5003fi
c915a581
JJ
5004
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5006$as_echo "$USE_MAINTAINER_MODE" >&6; }
5007 if test $USE_MAINTAINER_MODE = yes; then
5008 MAINTAINER_MODE_TRUE=
5009 MAINTAINER_MODE_FALSE='#'
f35db108 5010else
c915a581
JJ
5011 MAINTAINER_MODE_TRUE='#'
5012 MAINTAINER_MODE_FALSE=
5013fi
5014
5015 MAINT=$MAINTAINER_MODE_TRUE
5016
5017
5018
e8e66971
MR
5019
5020# Check whether --with-toolexeclibdir was given.
5021if test "${with_toolexeclibdir+set}" = set; then :
5022 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
5023 /)
5024 ;;
5025 */)
5026 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
5027 ;;
5028esac
5029else
5030 with_toolexeclibdir=no
5031fi
5032
5033
5034
c915a581
JJ
5035# Calculate toolexeclibdir
5036# Also toolexecdir, though it's only used in toolexeclibdir
5037case ${version_specific_libs} in
5038 yes)
5039 # Need the gcc compiler version to know where to install libraries
5040 # and header files if --enable-version-specific-runtime-libs option
5041 # is selected.
5042 toolexecdir='$(libdir)/gcc/$(target_alias)'
5043 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5044 ;;
5045 no)
5046 if test -n "$with_cross_host" &&
5047 test x"$with_cross_host" != x"no"; then
5048 # Install a library built with a cross compiler in tooldir, not libdir.
5049 toolexecdir='$(exec_prefix)/$(target_alias)'
e8e66971
MR
5050 case ${with_toolexeclibdir} in
5051 no)
5052 toolexeclibdir='$(toolexecdir)/lib'
5053 ;;
5054 *)
5055 toolexeclibdir=${with_toolexeclibdir}
5056 ;;
5057 esac
c915a581
JJ
5058 else
5059 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5060 toolexeclibdir='$(libdir)'
5061 fi
5062 multi_os_directory=`$CC -print-multi-os-directory`
5063 case $multi_os_directory in
5064 .) ;; # Avoid trailing /.
5065 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5066 esac
5067 ;;
5068esac
5069
5070
5071
5072# Checks for programs.
5073ac_ext=c
5074ac_cpp='$CPP $CPPFLAGS'
5075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077ac_compiler_gnu=$ac_cv_c_compiler_gnu
5078if test -n "$ac_tool_prefix"; then
5079 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5080set dummy ${ac_tool_prefix}gcc; ac_word=$2
f35db108
WM
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5083if ${ac_cv_prog_CC+:} false; then :
f35db108
WM
5084 $as_echo_n "(cached) " >&6
5085else
c915a581
JJ
5086 if test -n "$CC"; then
5087 ac_cv_prog_CC="$CC" # Let the user override the test.
f35db108
WM
5088else
5089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090for as_dir in $PATH
5091do
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 5096 ac_cv_prog_CC="${ac_tool_prefix}gcc"
f35db108
WM
5097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 break 2
5099 fi
5100done
5101 done
5102IFS=$as_save_IFS
5103
5104fi
5105fi
c915a581
JJ
5106CC=$ac_cv_prog_CC
5107if test -n "$CC"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5109$as_echo "$CC" >&6; }
f35db108
WM
5110else
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112$as_echo "no" >&6; }
5113fi
5114
5115
f35db108 5116fi
c915a581
JJ
5117if test -z "$ac_cv_prog_CC"; then
5118 ac_ct_CC=$CC
5119 # Extract the first word of "gcc", so it can be a program name with args.
5120set dummy gcc; ac_word=$2
f35db108
WM
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5123if ${ac_cv_prog_ac_ct_CC+:} false; then :
f35db108
WM
5124 $as_echo_n "(cached) " >&6
5125else
c915a581
JJ
5126 if test -n "$ac_ct_CC"; then
5127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
f35db108
WM
5128else
5129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130for as_dir in $PATH
5131do
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 5136 ac_cv_prog_ac_ct_CC="gcc"
f35db108
WM
5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 break 2
5139 fi
5140done
5141 done
5142IFS=$as_save_IFS
5143
5144fi
5145fi
c915a581
JJ
5146ac_ct_CC=$ac_cv_prog_ac_ct_CC
5147if test -n "$ac_ct_CC"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5149$as_echo "$ac_ct_CC" >&6; }
f35db108
WM
5150else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152$as_echo "no" >&6; }
5153fi
5154
c915a581
JJ
5155 if test "x$ac_ct_CC" = x; then
5156 CC=""
f35db108
WM
5157 else
5158 case $cross_compiling:$ac_tool_warned in
5159yes:)
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5162ac_tool_warned=yes ;;
5163esac
c915a581 5164 CC=$ac_ct_CC
f35db108 5165 fi
c915a581
JJ
5166else
5167 CC="$ac_cv_prog_CC"
f35db108
WM
5168fi
5169
c915a581
JJ
5170if test -z "$CC"; then
5171 if test -n "$ac_tool_prefix"; then
5172 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5173set dummy ${ac_tool_prefix}cc; ac_word=$2
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5176if ${ac_cv_prog_CC+:} false; then :
c915a581
JJ
5177 $as_echo_n "(cached) " >&6
5178else
5179 if test -n "$CC"; then
5180 ac_cv_prog_CC="$CC" # Let the user override the test.
5181else
5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
5189 ac_cv_prog_CC="${ac_tool_prefix}cc"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
f35db108 5192 fi
c915a581
JJ
5193done
5194 done
5195IFS=$as_save_IFS
f35db108 5196
f35db108 5197fi
c915a581
JJ
5198fi
5199CC=$ac_cv_prog_CC
5200if test -n "$CC"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5202$as_echo "$CC" >&6; }
5203else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205$as_echo "no" >&6; }
5206fi
f35db108
WM
5207
5208
f35db108 5209 fi
f35db108 5210fi
c915a581
JJ
5211if test -z "$CC"; then
5212 # Extract the first word of "cc", so it can be a program name with args.
5213set dummy cc; ac_word=$2
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5216if ${ac_cv_prog_CC+:} false; then :
c915a581 5217 $as_echo_n "(cached) " >&6
f35db108 5218else
c915a581
JJ
5219 if test -n "$CC"; then
5220 ac_cv_prog_CC="$CC" # Let the user override the test.
f35db108 5221else
c915a581 5222 ac_prog_rejected=no
f35db108
WM
5223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224for as_dir in $PATH
5225do
5226 IFS=$as_save_IFS
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
5230 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5231 ac_prog_rejected=yes
5232 continue
5233 fi
5234 ac_cv_prog_CC="cc"
f35db108
WM
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5237 fi
5238done
5239 done
5240IFS=$as_save_IFS
5241
c915a581
JJ
5242if test $ac_prog_rejected = yes; then
5243 # We found a bogon in the path, so make sure we never use it.
5244 set dummy $ac_cv_prog_CC
5245 shift
5246 if test $# != 0; then
5247 # We chose a different compiler from the bogus one.
5248 # However, it has the same basename, so the bogon will be chosen
5249 # first if we set CC to just the basename; use the full file name.
5250 shift
5251 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5252 fi
5253fi
5254fi
5255fi
5256CC=$ac_cv_prog_CC
5257if test -n "$CC"; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5259$as_echo "$CC" >&6; }
f35db108
WM
5260else
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262$as_echo "no" >&6; }
5263fi
5264
5265
5266fi
c915a581
JJ
5267if test -z "$CC"; then
5268 if test -n "$ac_tool_prefix"; then
5269 for ac_prog in cl.exe
5270 do
5271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5272set dummy $ac_tool_prefix$ac_prog; ac_word=$2
f35db108
WM
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5275if ${ac_cv_prog_CC+:} false; then :
f35db108
WM
5276 $as_echo_n "(cached) " >&6
5277else
c915a581
JJ
5278 if test -n "$CC"; then
5279 ac_cv_prog_CC="$CC" # Let the user override the test.
f35db108
WM
5280else
5281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282for as_dir in $PATH
5283do
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 5288 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
f35db108
WM
5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 break 2
5291 fi
5292done
5293 done
5294IFS=$as_save_IFS
5295
5296fi
5297fi
c915a581
JJ
5298CC=$ac_cv_prog_CC
5299if test -n "$CC"; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5301$as_echo "$CC" >&6; }
f35db108
WM
5302else
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304$as_echo "no" >&6; }
5305fi
5306
c915a581
JJ
5307
5308 test -n "$CC" && break
5309 done
5310fi
5311if test -z "$CC"; then
5312 ac_ct_CC=$CC
5313 for ac_prog in cl.exe
5314do
5315 # Extract the first word of "$ac_prog", so it can be a program name with args.
5316set dummy $ac_prog; ac_word=$2
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5319if ${ac_cv_prog_ac_ct_CC+:} false; then :
c915a581
JJ
5320 $as_echo_n "(cached) " >&6
5321else
5322 if test -n "$ac_ct_CC"; then
5323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5324else
5325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326for as_dir in $PATH
5327do
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
5332 ac_cv_prog_ac_ct_CC="$ac_prog"
5333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 break 2
5335 fi
5336done
5337 done
5338IFS=$as_save_IFS
5339
5340fi
5341fi
5342ac_ct_CC=$ac_cv_prog_ac_ct_CC
5343if test -n "$ac_ct_CC"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5345$as_echo "$ac_ct_CC" >&6; }
5346else
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348$as_echo "no" >&6; }
5349fi
5350
5351
5352 test -n "$ac_ct_CC" && break
5353done
5354
5355 if test "x$ac_ct_CC" = x; then
5356 CC=""
f35db108
WM
5357 else
5358 case $cross_compiling:$ac_tool_warned in
5359yes:)
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5362ac_tool_warned=yes ;;
5363esac
c915a581 5364 CC=$ac_ct_CC
f35db108 5365 fi
f35db108
WM
5366fi
5367
c915a581 5368fi
f35db108
WM
5369
5370
c915a581
JJ
5371test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
5373as_fn_error $? "no acceptable C compiler found in \$PATH
5374See \`config.log' for more details" "$LINENO" 5; }
f35db108 5375
c915a581
JJ
5376# Provide some information about the compiler.
5377$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5378set X $ac_compile
5379ac_compiler=$2
5380for ac_option in --version -v -V -qversion; do
5381 { { ac_try="$ac_compiler $ac_option >&5"
5382case "(($ac_try" in
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5385esac
5386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5387$as_echo "$ac_try_echo"; } >&5
5388 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5389 ac_status=$?
5390 if test -s conftest.err; then
5391 sed '10a\
5392... rest of stderr output deleted ...
5393 10q' conftest.err >conftest.er1
5394 cat conftest.er1 >&5
c915a581 5395 fi
22e05272 5396 rm -f conftest.er1 conftest.err
c915a581
JJ
5397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5398 test $ac_status = 0; }
5399done
f35db108 5400
c915a581
JJ
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5402$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 5403if ${ac_cv_c_compiler_gnu+:} false; then :
c915a581
JJ
5404 $as_echo_n "(cached) " >&6
5405else
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407/* end confdefs.h. */
f35db108 5408
c915a581
JJ
5409int
5410main ()
5411{
5412#ifndef __GNUC__
5413 choke me
5414#endif
f35db108 5415
c915a581
JJ
5416 ;
5417 return 0;
5418}
5419_ACEOF
5420if ac_fn_c_try_compile "$LINENO"; then :
5421 ac_compiler_gnu=yes
5422else
5423 ac_compiler_gnu=no
5424fi
5425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426ac_cv_c_compiler_gnu=$ac_compiler_gnu
f35db108 5427
c915a581
JJ
5428fi
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5430$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5431if test $ac_compiler_gnu = yes; then
5432 GCC=yes
5433else
5434 GCC=
5435fi
5436ac_test_CFLAGS=${CFLAGS+set}
5437ac_save_CFLAGS=$CFLAGS
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5439$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 5440if ${ac_cv_prog_cc_g+:} false; then :
f35db108
WM
5441 $as_echo_n "(cached) " >&6
5442else
c915a581
JJ
5443 ac_save_c_werror_flag=$ac_c_werror_flag
5444 ac_c_werror_flag=yes
5445 ac_cv_prog_cc_g=no
5446 CFLAGS="-g"
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448/* end confdefs.h. */
f35db108 5449
c915a581
JJ
5450int
5451main ()
5452{
f35db108 5453
c915a581
JJ
5454 ;
5455 return 0;
5456}
5457_ACEOF
5458if ac_fn_c_try_compile "$LINENO"; then :
5459 ac_cv_prog_cc_g=yes
5460else
5461 CFLAGS=""
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463/* end confdefs.h. */
f35db108 5464
c915a581
JJ
5465int
5466main ()
5467{
f35db108 5468
c915a581
JJ
5469 ;
5470 return 0;
5471}
5472_ACEOF
5473if ac_fn_c_try_compile "$LINENO"; then :
f35db108 5474
c915a581
JJ
5475else
5476 ac_c_werror_flag=$ac_save_c_werror_flag
5477 CFLAGS="-g"
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479/* end confdefs.h. */
f35db108 5480
c915a581
JJ
5481int
5482main ()
5483{
f35db108 5484
c915a581
JJ
5485 ;
5486 return 0;
5487}
5488_ACEOF
5489if ac_fn_c_try_compile "$LINENO"; then :
5490 ac_cv_prog_cc_g=yes
5491fi
5492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493fi
5494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495fi
5496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497 ac_c_werror_flag=$ac_save_c_werror_flag
5498fi
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5500$as_echo "$ac_cv_prog_cc_g" >&6; }
5501if test "$ac_test_CFLAGS" = set; then
5502 CFLAGS=$ac_save_CFLAGS
5503elif test $ac_cv_prog_cc_g = yes; then
5504 if test "$GCC" = yes; then
5505 CFLAGS="-g -O2"
f35db108 5506 else
c915a581 5507 CFLAGS="-g"
f35db108 5508 fi
c915a581
JJ
5509else
5510 if test "$GCC" = yes; then
5511 CFLAGS="-O2"
5512 else
5513 CFLAGS=
5514 fi
5515fi
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5517$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 5518if ${ac_cv_prog_cc_c89+:} false; then :
c915a581
JJ
5519 $as_echo_n "(cached) " >&6
5520else
5521 ac_cv_prog_cc_c89=no
5522ac_save_CC=$CC
5523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524/* end confdefs.h. */
5525#include <stdarg.h>
5526#include <stdio.h>
22e05272 5527struct stat;
c915a581
JJ
5528/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5529struct buf { int x; };
5530FILE * (*rcsopen) (struct buf *, struct stat *, int);
5531static char *e (p, i)
5532 char **p;
5533 int i;
5534{
5535 return p[i];
5536}
5537static char *f (char * (*g) (char **, int), char **p, ...)
5538{
5539 char *s;
5540 va_list v;
5541 va_start (v,p);
5542 s = g (p, va_arg (v,int));
5543 va_end (v);
5544 return s;
5545}
f35db108 5546
c915a581
JJ
5547/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5548 function prototypes and stuff, but not '\xHH' hex character constants.
5549 These don't provoke an error unfortunately, instead are silently treated
5550 as 'x'. The following induces an error, until -std is added to get
5551 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5552 array size at least. It's necessary to write '\x00'==0 to get something
5553 that's true only with -std. */
5554int osf4_cc_array ['\x00' == 0 ? 1 : -1];
f35db108 5555
c915a581
JJ
5556/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5557 inside strings and character constants. */
5558#define FOO(x) 'x'
5559int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
f35db108 5560
c915a581
JJ
5561int test (int i, double x);
5562struct s1 {int (*f) (int a);};
5563struct s2 {int (*f) (double a);};
5564int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5565int argc;
5566char **argv;
5567int
5568main ()
5569{
5570return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5571 ;
5572 return 0;
5573}
5574_ACEOF
5575for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5576 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5577do
5578 CC="$ac_save_CC $ac_arg"
5579 if ac_fn_c_try_compile "$LINENO"; then :
5580 ac_cv_prog_cc_c89=$ac_arg
5581fi
5582rm -f core conftest.err conftest.$ac_objext
5583 test "x$ac_cv_prog_cc_c89" != "xno" && break
5584done
5585rm -f conftest.$ac_ext
5586CC=$ac_save_CC
f35db108 5587
c915a581
JJ
5588fi
5589# AC_CACHE_VAL
5590case "x$ac_cv_prog_cc_c89" in
5591 x)
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5593$as_echo "none needed" >&6; } ;;
5594 xno)
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5596$as_echo "unsupported" >&6; } ;;
5597 *)
5598 CC="$CC $ac_cv_prog_cc_c89"
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5600$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5601esac
5602if test "x$ac_cv_prog_cc_c89" != xno; then :
f35db108 5603
c915a581 5604fi
f35db108 5605
c915a581
JJ
5606ac_ext=c
5607ac_cpp='$CPP $CPPFLAGS'
5608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5610ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 5611
22e05272
JM
5612ac_ext=c
5613ac_cpp='$CPP $CPPFLAGS'
5614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5616ac_compiler_gnu=$ac_cv_c_compiler_gnu
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5618$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5619if ${am_cv_prog_cc_c_o+:} false; then :
5620 $as_echo_n "(cached) " >&6
5621else
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623/* end confdefs.h. */
5624
5625int
5626main ()
5627{
5628
5629 ;
5630 return 0;
5631}
5632_ACEOF
5633 # Make sure it works both with $CC and with simple cc.
5634 # Following AC_PROG_CC_C_O, we do the test twice because some
5635 # compilers refuse to overwrite an existing .o file with -o,
5636 # though they will create one.
5637 am_cv_prog_cc_c_o=yes
5638 for am_i in 1 2; do
5639 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5640 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } \
5644 && test -f conftest2.$ac_objext; then
5645 : OK
5646 else
5647 am_cv_prog_cc_c_o=no
5648 break
5649 fi
5650 done
5651 rm -f core conftest*
5652 unset am_i
5653fi
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5655$as_echo "$am_cv_prog_cc_c_o" >&6; }
5656if test "$am_cv_prog_cc_c_o" != yes; then
5657 # Losing compiler, so override with the script.
5658 # FIXME: It is wrong to rewrite CC.
5659 # But if we don't then we get into trouble of one sort or another.
5660 # A longer-term fix would be to have automake use am__CC in this case,
5661 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5662 CC="$am_aux_dir/compile $CC"
5663fi
5664ac_ext=c
5665ac_cpp='$CPP $CPPFLAGS'
5666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5668ac_compiler_gnu=$ac_cv_c_compiler_gnu
5669
5670
c915a581
JJ
5671ac_ext=cpp
5672ac_cpp='$CXXCPP $CPPFLAGS'
5673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5676if test -z "$CXX"; then
5677 if test -n "$CCC"; then
5678 CXX=$CCC
f35db108 5679 else
c915a581
JJ
5680 if test -n "$ac_tool_prefix"; then
5681 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5682 do
5683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5684set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5687if ${ac_cv_prog_CXX+:} false; then :
c915a581
JJ
5688 $as_echo_n "(cached) " >&6
5689else
5690 if test -n "$CXX"; then
5691 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5692else
5693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694for as_dir in $PATH
5695do
5696 IFS=$as_save_IFS
5697 test -z "$as_dir" && as_dir=.
5698 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
5700 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 break 2
f35db108 5703 fi
c915a581
JJ
5704done
5705 done
5706IFS=$as_save_IFS
f35db108 5707
c915a581
JJ
5708fi
5709fi
5710CXX=$ac_cv_prog_CXX
5711if test -n "$CXX"; then
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5713$as_echo "$CXX" >&6; }
5714else
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716$as_echo "no" >&6; }
5717fi
f35db108 5718
f35db108 5719
c915a581
JJ
5720 test -n "$CXX" && break
5721 done
f35db108 5722fi
c915a581
JJ
5723if test -z "$CXX"; then
5724 ac_ct_CXX=$CXX
5725 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5726do
5727 # Extract the first word of "$ac_prog", so it can be a program name with args.
5728set dummy $ac_prog; ac_word=$2
f35db108
WM
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5731if ${ac_cv_prog_ac_ct_CXX+:} false; then :
f35db108
WM
5732 $as_echo_n "(cached) " >&6
5733else
c915a581
JJ
5734 if test -n "$ac_ct_CXX"; then
5735 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
f35db108
WM
5736else
5737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738for as_dir in $PATH
5739do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 5744 ac_cv_prog_ac_ct_CXX="$ac_prog"
f35db108
WM
5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5747 fi
5748done
5749 done
5750IFS=$as_save_IFS
5751
5752fi
5753fi
c915a581
JJ
5754ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5755if test -n "$ac_ct_CXX"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5757$as_echo "$ac_ct_CXX" >&6; }
f35db108
WM
5758else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760$as_echo "no" >&6; }
5761fi
5762
5763
c915a581 5764 test -n "$ac_ct_CXX" && break
f35db108 5765done
f35db108 5766
c915a581
JJ
5767 if test "x$ac_ct_CXX" = x; then
5768 CXX="g++"
f35db108
WM
5769 else
5770 case $cross_compiling:$ac_tool_warned in
5771yes:)
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5774ac_tool_warned=yes ;;
5775esac
c915a581 5776 CXX=$ac_ct_CXX
f35db108 5777 fi
f35db108
WM
5778fi
5779
f35db108 5780 fi
c915a581
JJ
5781fi
5782# Provide some information about the compiler.
5783$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5784set X $ac_compile
5785ac_compiler=$2
5786for ac_option in --version -v -V -qversion; do
5787 { { ac_try="$ac_compiler $ac_option >&5"
5788case "(($ac_try" in
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5791esac
5792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5793$as_echo "$ac_try_echo"; } >&5
5794 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5795 ac_status=$?
5796 if test -s conftest.err; then
5797 sed '10a\
5798... rest of stderr output deleted ...
5799 10q' conftest.err >conftest.er1
5800 cat conftest.er1 >&5
c915a581 5801 fi
22e05272 5802 rm -f conftest.er1 conftest.err
c915a581
JJ
5803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5804 test $ac_status = 0; }
f35db108 5805done
f35db108 5806
c915a581
JJ
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5808$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5809if ${ac_cv_cxx_compiler_gnu+:} false; then :
c915a581 5810 $as_echo_n "(cached) " >&6
f35db108 5811else
c915a581
JJ
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813/* end confdefs.h. */
f35db108 5814
c915a581
JJ
5815int
5816main ()
5817{
5818#ifndef __GNUC__
5819 choke me
5820#endif
f35db108 5821
c915a581
JJ
5822 ;
5823 return 0;
5824}
5825_ACEOF
5826if ac_fn_cxx_try_compile "$LINENO"; then :
5827 ac_compiler_gnu=yes
f35db108 5828else
c915a581 5829 ac_compiler_gnu=no
f35db108 5830fi
c915a581
JJ
5831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5833
f35db108 5834fi
c915a581
JJ
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5836$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5837if test $ac_compiler_gnu = yes; then
5838 GXX=yes
f35db108 5839else
c915a581 5840 GXX=
f35db108 5841fi
c915a581
JJ
5842ac_test_CXXFLAGS=${CXXFLAGS+set}
5843ac_save_CXXFLAGS=$CXXFLAGS
5844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5845$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5846if ${ac_cv_prog_cxx_g+:} false; then :
c915a581 5847 $as_echo_n "(cached) " >&6
f35db108 5848else
c915a581
JJ
5849 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5850 ac_cxx_werror_flag=yes
5851 ac_cv_prog_cxx_g=no
5852 CXXFLAGS="-g"
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854/* end confdefs.h. */
f35db108 5855
c915a581
JJ
5856int
5857main ()
5858{
f35db108 5859
c915a581
JJ
5860 ;
5861 return 0;
5862}
5863_ACEOF
5864if ac_fn_cxx_try_compile "$LINENO"; then :
5865 ac_cv_prog_cxx_g=yes
5866else
5867 CXXFLAGS=""
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869/* end confdefs.h. */
f35db108 5870
c915a581
JJ
5871int
5872main ()
5873{
f35db108 5874
c915a581
JJ
5875 ;
5876 return 0;
5877}
5878_ACEOF
5879if ac_fn_cxx_try_compile "$LINENO"; then :
f35db108 5880
f35db108 5881else
c915a581
JJ
5882 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5883 CXXFLAGS="-g"
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885/* end confdefs.h. */
f35db108 5886
c915a581
JJ
5887int
5888main ()
5889{
f35db108 5890
c915a581
JJ
5891 ;
5892 return 0;
5893}
5894_ACEOF
5895if ac_fn_cxx_try_compile "$LINENO"; then :
5896 ac_cv_prog_cxx_g=yes
f35db108 5897fi
c915a581 5898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 5899fi
c915a581 5900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 5901fi
c915a581
JJ
5902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5903 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
f35db108 5904fi
c915a581
JJ
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5906$as_echo "$ac_cv_prog_cxx_g" >&6; }
5907if test "$ac_test_CXXFLAGS" = set; then
5908 CXXFLAGS=$ac_save_CXXFLAGS
5909elif test $ac_cv_prog_cxx_g = yes; then
5910 if test "$GXX" = yes; then
5911 CXXFLAGS="-g -O2"
f35db108 5912 else
c915a581 5913 CXXFLAGS="-g"
f35db108
WM
5914 fi
5915else
c915a581
JJ
5916 if test "$GXX" = yes; then
5917 CXXFLAGS="-O2"
5918 else
5919 CXXFLAGS=
5920 fi
f35db108 5921fi
c915a581
JJ
5922ac_ext=c
5923ac_cpp='$CPP $CPPFLAGS'
5924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 5927
c915a581 5928depcc="$CXX" am_compiler_list=
f35db108 5929
c915a581
JJ
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5931$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 5932if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
c915a581
JJ
5933 $as_echo_n "(cached) " >&6
5934else
5935 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5936 # We make a subdir and do the tests there. Otherwise we can end up
5937 # making bogus files that we don't know about and never remove. For
5938 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
5939 # making a dummy file named 'D' -- because '-MD' means "put the output
5940 # in D".
f3915b42 5941 rm -rf conftest.dir
c915a581
JJ
5942 mkdir conftest.dir
5943 # Copy depcomp to subdir because otherwise we won't find it if we're
5944 # using a relative directory.
5945 cp "$am_depcomp" conftest.dir
5946 cd conftest.dir
5947 # We will build objects and dependencies in a subdirectory because
5948 # it helps to detect inapplicable dependency modes. For instance
5949 # both Tru64's cc and ICC support -MD to output dependencies as a
5950 # side effect of compilation, but ICC will put the dependencies in
5951 # the current directory while Tru64 will put them in the object
5952 # directory.
5953 mkdir sub
f35db108 5954
c915a581
JJ
5955 am_cv_CXX_dependencies_compiler_type=none
5956 if test "$am_compiler_list" = ""; then
5957 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5958 fi
5959 am__universal=false
5960 case " $depcc " in #(
5961 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5962 esac
f35db108 5963
c915a581
JJ
5964 for depmode in $am_compiler_list; do
5965 # Setup a source with many dependencies, because some compilers
5966 # like to wrap large dependency lists on column 80 (with \), and
5967 # we should not choose a depcomp mode which is confused by this.
5968 #
5969 # We need to recreate these files for each test, as the compiler may
5970 # overwrite some of them when testing with obscure command lines.
5971 # This happens at least with the AIX C compiler.
5972 : > sub/conftest.c
5973 for i in 1 2 3 4 5 6; do
5974 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
5975 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5976 # Solaris 10 /bin/sh.
5977 echo '/* dummy */' > sub/conftst$i.h
c915a581
JJ
5978 done
5979 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
f35db108 5980
22e05272 5981 # We check with '-c' and '-o' for the sake of the "dashmstdout"
c915a581 5982 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
5983 # handle '-M -o', and we need to detect this. Also, some Intel
5984 # versions had trouble with output in subdirs.
c915a581
JJ
5985 am__obj=sub/conftest.${OBJEXT-o}
5986 am__minus_obj="-o $am__obj"
5987 case $depmode in
5988 gcc)
5989 # This depmode causes a compiler race in universal mode.
5990 test "$am__universal" = false || continue
5991 ;;
5992 nosideeffect)
22e05272
JM
5993 # After this tag, mechanisms are not by side-effect, so they'll
5994 # only be used when explicitly requested.
c915a581
JJ
5995 if test "x$enable_dependency_tracking" = xyes; then
5996 continue
5997 else
5998 break
5999 fi
6000 ;;
f3915b42 6001 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 6002 # This compiler won't grok '-c -o', but also, the minuso test has
c915a581
JJ
6003 # not run yet. These depmodes are late enough in the game, and
6004 # so weak that their functioning should not be impacted.
6005 am__obj=conftest.${OBJEXT-o}
6006 am__minus_obj=
6007 ;;
6008 none) break ;;
6009 esac
6010 if depmode=$depmode \
6011 source=sub/conftest.c object=$am__obj \
6012 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6013 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6014 >/dev/null 2>conftest.err &&
6015 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6016 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6017 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6018 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6019 # icc doesn't choke on unknown options, it will just issue warnings
6020 # or remarks (even with -Werror). So we grep stderr for any message
6021 # that says an option was ignored or not supported.
6022 # When given -MP, icc 7.0 and 7.1 complain thusly:
6023 # icc: Command line warning: ignoring option '-M'; no argument required
6024 # The diagnosis changed in icc 8.0:
6025 # icc: Command line remark: option '-MP' not supported
6026 if (grep 'ignoring option' conftest.err ||
6027 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6028 am_cv_CXX_dependencies_compiler_type=$depmode
6029 break
6030 fi
6031 fi
6032 done
f35db108 6033
c915a581
JJ
6034 cd ..
6035 rm -rf conftest.dir
6036else
6037 am_cv_CXX_dependencies_compiler_type=none
6038fi
f35db108 6039
c915a581
JJ
6040fi
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6042$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6043CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
f35db108 6044
c915a581
JJ
6045 if
6046 test "x$enable_dependency_tracking" != xno \
6047 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6048 am__fastdepCXX_TRUE=
6049 am__fastdepCXX_FALSE='#'
6050else
6051 am__fastdepCXX_TRUE='#'
6052 am__fastdepCXX_FALSE=
6053fi
f35db108
WM
6054
6055
c915a581 6056# By default we simply use the C compiler to build assembly code.
f35db108 6057
c915a581
JJ
6058test "${CCAS+set}" = set || CCAS=$CC
6059test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
f35db108
WM
6060
6061
6062
c915a581 6063depcc="$CCAS" am_compiler_list=
f35db108 6064
c915a581
JJ
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6066$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 6067if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
c915a581
JJ
6068 $as_echo_n "(cached) " >&6
6069else
6070 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6071 # We make a subdir and do the tests there. Otherwise we can end up
6072 # making bogus files that we don't know about and never remove. For
6073 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
6074 # making a dummy file named 'D' -- because '-MD' means "put the output
6075 # in D".
f3915b42 6076 rm -rf conftest.dir
c915a581
JJ
6077 mkdir conftest.dir
6078 # Copy depcomp to subdir because otherwise we won't find it if we're
6079 # using a relative directory.
6080 cp "$am_depcomp" conftest.dir
6081 cd conftest.dir
6082 # We will build objects and dependencies in a subdirectory because
6083 # it helps to detect inapplicable dependency modes. For instance
6084 # both Tru64's cc and ICC support -MD to output dependencies as a
6085 # side effect of compilation, but ICC will put the dependencies in
6086 # the current directory while Tru64 will put them in the object
6087 # directory.
6088 mkdir sub
f35db108 6089
c915a581
JJ
6090 am_cv_CCAS_dependencies_compiler_type=none
6091 if test "$am_compiler_list" = ""; then
6092 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6093 fi
6094 am__universal=false
f35db108
WM
6095
6096
c915a581
JJ
6097 for depmode in $am_compiler_list; do
6098 # Setup a source with many dependencies, because some compilers
6099 # like to wrap large dependency lists on column 80 (with \), and
6100 # we should not choose a depcomp mode which is confused by this.
6101 #
6102 # We need to recreate these files for each test, as the compiler may
6103 # overwrite some of them when testing with obscure command lines.
6104 # This happens at least with the AIX C compiler.
6105 : > sub/conftest.c
6106 for i in 1 2 3 4 5 6; do
6107 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
6108 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6109 # Solaris 10 /bin/sh.
6110 echo '/* dummy */' > sub/conftst$i.h
c915a581
JJ
6111 done
6112 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
f35db108 6113
22e05272 6114 # We check with '-c' and '-o' for the sake of the "dashmstdout"
c915a581 6115 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
6116 # handle '-M -o', and we need to detect this. Also, some Intel
6117 # versions had trouble with output in subdirs.
c915a581
JJ
6118 am__obj=sub/conftest.${OBJEXT-o}
6119 am__minus_obj="-o $am__obj"
6120 case $depmode in
6121 gcc)
6122 # This depmode causes a compiler race in universal mode.
6123 test "$am__universal" = false || continue
6124 ;;
6125 nosideeffect)
22e05272
JM
6126 # After this tag, mechanisms are not by side-effect, so they'll
6127 # only be used when explicitly requested.
c915a581
JJ
6128 if test "x$enable_dependency_tracking" = xyes; then
6129 continue
6130 else
6131 break
6132 fi
6133 ;;
f3915b42 6134 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 6135 # This compiler won't grok '-c -o', but also, the minuso test has
c915a581
JJ
6136 # not run yet. These depmodes are late enough in the game, and
6137 # so weak that their functioning should not be impacted.
6138 am__obj=conftest.${OBJEXT-o}
6139 am__minus_obj=
6140 ;;
6141 none) break ;;
6142 esac
6143 if depmode=$depmode \
6144 source=sub/conftest.c object=$am__obj \
6145 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6146 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6147 >/dev/null 2>conftest.err &&
6148 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6149 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6150 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6151 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6152 # icc doesn't choke on unknown options, it will just issue warnings
6153 # or remarks (even with -Werror). So we grep stderr for any message
6154 # that says an option was ignored or not supported.
6155 # When given -MP, icc 7.0 and 7.1 complain thusly:
6156 # icc: Command line warning: ignoring option '-M'; no argument required
6157 # The diagnosis changed in icc 8.0:
6158 # icc: Command line remark: option '-MP' not supported
6159 if (grep 'ignoring option' conftest.err ||
6160 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6161 am_cv_CCAS_dependencies_compiler_type=$depmode
6162 break
6163 fi
6164 fi
6165 done
f35db108 6166
c915a581
JJ
6167 cd ..
6168 rm -rf conftest.dir
6169else
6170 am_cv_CCAS_dependencies_compiler_type=none
6171fi
f35db108 6172
c915a581
JJ
6173fi
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6175$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6176CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
f35db108 6177
c915a581
JJ
6178 if
6179 test "x$enable_dependency_tracking" != xno \
6180 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6181 am__fastdepCCAS_TRUE=
6182 am__fastdepCCAS_FALSE='#'
6183else
6184 am__fastdepCCAS_TRUE='#'
6185 am__fastdepCCAS_FALSE=
6186fi
f35db108
WM
6187
6188
c915a581
JJ
6189if test -n "$ac_tool_prefix"; then
6190 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6191set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6194if ${ac_cv_prog_RANLIB+:} false; then :
f35db108
WM
6195 $as_echo_n "(cached) " >&6
6196else
c915a581
JJ
6197 if test -n "$RANLIB"; then
6198 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6199else
6200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH
6202do
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
6207 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 break 2
6210 fi
6211done
6212 done
6213IFS=$as_save_IFS
f35db108 6214
c915a581
JJ
6215fi
6216fi
6217RANLIB=$ac_cv_prog_RANLIB
6218if test -n "$RANLIB"; then
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6220$as_echo "$RANLIB" >&6; }
6221else
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223$as_echo "no" >&6; }
6224fi
f35db108 6225
f35db108 6226
c915a581
JJ
6227fi
6228if test -z "$ac_cv_prog_RANLIB"; then
6229 ac_ct_RANLIB=$RANLIB
6230 # Extract the first word of "ranlib", so it can be a program name with args.
6231set dummy ranlib; ac_word=$2
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6234if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
c915a581
JJ
6235 $as_echo_n "(cached) " >&6
6236else
6237 if test -n "$ac_ct_RANLIB"; then
6238 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6239else
6240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241for as_dir in $PATH
6242do
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
6247 ac_cv_prog_ac_ct_RANLIB="ranlib"
6248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 break 2
f35db108
WM
6250 fi
6251done
c915a581
JJ
6252 done
6253IFS=$as_save_IFS
f35db108
WM
6254
6255fi
f35db108 6256fi
c915a581
JJ
6257ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6258if test -n "$ac_ct_RANLIB"; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6260$as_echo "$ac_ct_RANLIB" >&6; }
f35db108 6261else
c915a581
JJ
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263$as_echo "no" >&6; }
f35db108
WM
6264fi
6265
c915a581
JJ
6266 if test "x$ac_ct_RANLIB" = x; then
6267 RANLIB=":"
6268 else
6269 case $cross_compiling:$ac_tool_warned in
6270yes:)
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6273ac_tool_warned=yes ;;
6274esac
6275 RANLIB=$ac_ct_RANLIB
6276 fi
6277else
6278 RANLIB="$ac_cv_prog_RANLIB"
6279fi
f35db108
WM
6280
6281
c915a581 6282enable_dlopen=yes
f35db108
WM
6283
6284
6285
c915a581
JJ
6286case `pwd` in
6287 *\ * | *\ *)
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6289$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6290esac
f35db108
WM
6291
6292
6293
c915a581
JJ
6294macro_version='2.2.7a'
6295macro_revision='1.3134'
f35db108
WM
6296
6297
6298
6299
6300
6301
6302
6303
6304
f35db108
WM
6305
6306
6307
6308
c915a581 6309ltmain="$ac_aux_dir/ltmain.sh"
f35db108 6310
c915a581
JJ
6311# Backslashify metacharacters that are still active within
6312# double-quoted strings.
6313sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
f35db108 6314
c915a581
JJ
6315# Same as above, but do not quote variable references.
6316double_quote_subst='s/\(["`\\]\)/\\\1/g'
f35db108 6317
c915a581
JJ
6318# Sed substitution to delay expansion of an escaped shell variable in a
6319# double_quote_subst'ed string.
6320delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
f35db108 6321
c915a581
JJ
6322# Sed substitution to delay expansion of an escaped single quote.
6323delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
f35db108 6324
c915a581
JJ
6325# Sed substitution to avoid accidental globbing in evaled expressions
6326no_glob_subst='s/\*/\\\*/g'
f35db108 6327
c915a581
JJ
6328ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6329ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6330ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
f35db108 6331
c915a581
JJ
6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6333$as_echo_n "checking how to print strings... " >&6; }
6334# Test print first, because it will be a builtin if present.
6335if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6336 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6337 ECHO='print -r --'
6338elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6339 ECHO='printf %s\n'
f35db108 6340else
c915a581
JJ
6341 # Use this function as a fallback that always works.
6342 func_fallback_echo ()
6343 {
6344 eval 'cat <<_LTECHO_EOF
6345$1
6346_LTECHO_EOF'
6347 }
6348 ECHO='func_fallback_echo'
f35db108 6349fi
f35db108 6350
c915a581
JJ
6351# func_echo_all arg...
6352# Invoke $ECHO with all args, space-separated.
6353func_echo_all ()
6354{
6355 $ECHO ""
6356}
6357
6358case "$ECHO" in
6359 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6360$as_echo "printf" >&6; } ;;
6361 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6362$as_echo "print -r" >&6; } ;;
6363 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6364$as_echo "cat" >&6; } ;;
f35db108
WM
6365esac
6366
f35db108 6367
f35db108 6368
c915a581
JJ
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6381$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 6382if ${ac_cv_path_SED+:} false; then :
f35db108
WM
6383 $as_echo_n "(cached) " >&6
6384else
c915a581
JJ
6385 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6386 for ac_i in 1 2 3 4 5 6 7; do
6387 ac_script="$ac_script$as_nl$ac_script"
6388 done
6389 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6390 { ac_script=; unset ac_script;}
6391 if test -z "$SED"; then
6392 ac_path_SED_found=false
6393 # Loop through the user's path and test for each of PROGNAME-LIST
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395for as_dir in $PATH
f35db108
WM
6396do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
c915a581 6399 for ac_prog in sed gsed; do
f35db108 6400 for ac_exec_ext in '' $ac_executable_extensions; do
c915a581 6401 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6402 as_fn_executable_p "$ac_path_SED" || continue
c915a581
JJ
6403# Check for GNU ac_path_SED and select it if it is found.
6404 # Check for GNU $ac_path_SED
6405case `"$ac_path_SED" --version 2>&1` in
6406*GNU*)
6407 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6408*)
6409 ac_count=0
6410 $as_echo_n 0123456789 >"conftest.in"
6411 while :
6412 do
6413 cat "conftest.in" "conftest.in" >"conftest.tmp"
6414 mv "conftest.tmp" "conftest.in"
6415 cp "conftest.in" "conftest.nl"
6416 $as_echo '' >> "conftest.nl"
6417 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6419 as_fn_arith $ac_count + 1 && ac_count=$as_val
6420 if test $ac_count -gt ${ac_path_SED_max-0}; then
6421 # Best one so far, save it but keep looking for a better one
6422 ac_cv_path_SED="$ac_path_SED"
6423 ac_path_SED_max=$ac_count
6424 fi
6425 # 10*(2^10) chars as input seems more than enough
6426 test $ac_count -gt 10 && break
f35db108 6427 done
c915a581
JJ
6428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6429esac
f35db108 6430
c915a581
JJ
6431 $ac_path_SED_found && break 3
6432 done
6433 done
f35db108
WM
6434 done
6435IFS=$as_save_IFS
c915a581 6436 if test -z "$ac_cv_path_SED"; then
22e05272 6437 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
c915a581 6438 fi
f35db108 6439else
c915a581 6440 ac_cv_path_SED=$SED
f35db108
WM
6441fi
6442
f35db108 6443fi
c915a581
JJ
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6445$as_echo "$ac_cv_path_SED" >&6; }
6446 SED="$ac_cv_path_SED"
6447 rm -f conftest.sed
f35db108 6448
c915a581
JJ
6449test -z "$SED" && SED=sed
6450Xsed="$SED -e 1s/^X//"
f35db108 6451
f35db108
WM
6452
6453
c915a581
JJ
6454
6455
6456
6457
6458
6459
6460
6461
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6463$as_echo_n "checking for fgrep... " >&6; }
22e05272 6464if ${ac_cv_path_FGREP+:} false; then :
f35db108
WM
6465 $as_echo_n "(cached) " >&6
6466else
c915a581
JJ
6467 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6468 then ac_cv_path_FGREP="$GREP -F"
6469 else
6470 if test -z "$FGREP"; then
6471 ac_path_FGREP_found=false
6472 # Loop through the user's path and test for each of PROGNAME-LIST
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
f35db108
WM
6475do
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
c915a581 6478 for ac_prog in fgrep; do
f35db108 6479 for ac_exec_ext in '' $ac_executable_extensions; do
c915a581 6480 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6481 as_fn_executable_p "$ac_path_FGREP" || continue
c915a581
JJ
6482# Check for GNU ac_path_FGREP and select it if it is found.
6483 # Check for GNU $ac_path_FGREP
6484case `"$ac_path_FGREP" --version 2>&1` in
6485*GNU*)
6486 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6487*)
6488 ac_count=0
6489 $as_echo_n 0123456789 >"conftest.in"
6490 while :
6491 do
6492 cat "conftest.in" "conftest.in" >"conftest.tmp"
6493 mv "conftest.tmp" "conftest.in"
6494 cp "conftest.in" "conftest.nl"
6495 $as_echo 'FGREP' >> "conftest.nl"
6496 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6498 as_fn_arith $ac_count + 1 && ac_count=$as_val
6499 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6500 # Best one so far, save it but keep looking for a better one
6501 ac_cv_path_FGREP="$ac_path_FGREP"
6502 ac_path_FGREP_max=$ac_count
6503 fi
6504 # 10*(2^10) chars as input seems more than enough
6505 test $ac_count -gt 10 && break
f35db108 6506 done
c915a581
JJ
6507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6508esac
f35db108 6509
c915a581
JJ
6510 $ac_path_FGREP_found && break 3
6511 done
6512 done
6513 done
6514IFS=$as_save_IFS
6515 if test -z "$ac_cv_path_FGREP"; then
22e05272 6516 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
c915a581 6517 fi
f35db108 6518else
c915a581 6519 ac_cv_path_FGREP=$FGREP
f35db108
WM
6520fi
6521
c915a581 6522 fi
f35db108 6523fi
c915a581
JJ
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6525$as_echo "$ac_cv_path_FGREP" >&6; }
6526 FGREP="$ac_cv_path_FGREP"
f35db108 6527
c915a581
JJ
6528
6529test -z "$GREP" && GREP=grep
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549# Check whether --with-gnu-ld was given.
6550if test "${with_gnu_ld+set}" = set; then :
6551 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6552else
6553 with_gnu_ld=no
6554fi
6555
6556ac_prog=ld
6557if test "$GCC" = yes; then
6558 # Check if gcc -print-prog-name=ld gives a path.
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6560$as_echo_n "checking for ld used by $CC... " >&6; }
6561 case $host in
6562 *-*-mingw*)
6563 # gcc leaves a trailing carriage return which upsets mingw
6564 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6565 *)
6566 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6567 esac
6568 case $ac_prog in
6569 # Accept absolute paths.
6570 [\\/]* | ?:[\\/]*)
6571 re_direlt='/[^/][^/]*/\.\./'
6572 # Canonicalize the pathname of ld
6573 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6574 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6575 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6576 done
6577 test -z "$LD" && LD="$ac_prog"
6578 ;;
6579 "")
6580 # If it fails, then pretend we aren't using GCC.
6581 ac_prog=ld
6582 ;;
6583 *)
6584 # If it is relative, then search for the first ld in PATH.
6585 with_gnu_ld=unknown
6586 ;;
6587 esac
6588elif test "$with_gnu_ld" = yes; then
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6590$as_echo_n "checking for GNU ld... " >&6; }
6591else
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6593$as_echo_n "checking for non-GNU ld... " >&6; }
6594fi
22e05272 6595if ${lt_cv_path_LD+:} false; then :
c915a581
JJ
6596 $as_echo_n "(cached) " >&6
6597else
6598 if test -z "$LD"; then
6599 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6600 for ac_dir in $PATH; do
6601 IFS="$lt_save_ifs"
6602 test -z "$ac_dir" && ac_dir=.
6603 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6604 lt_cv_path_LD="$ac_dir/$ac_prog"
6605 # Check to see if the program is GNU ld. I'd rather use --version,
6606 # but apparently some variants of GNU ld only accept -v.
6607 # Break only if it was the GNU/non-GNU ld that we prefer.
6608 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6609 *GNU* | *'with BFD'*)
6610 test "$with_gnu_ld" != no && break
6611 ;;
6612 *)
6613 test "$with_gnu_ld" != yes && break
6614 ;;
6615 esac
6616 fi
6617 done
6618 IFS="$lt_save_ifs"
6619else
6620 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6621fi
6622fi
6623
6624LD="$lt_cv_path_LD"
6625if test -n "$LD"; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6627$as_echo "$LD" >&6; }
6628else
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630$as_echo "no" >&6; }
6631fi
22e05272 6632test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
c915a581
JJ
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6634$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 6635if ${lt_cv_prog_gnu_ld+:} false; then :
c915a581
JJ
6636 $as_echo_n "(cached) " >&6
6637else
6638 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6639case `$LD -v 2>&1 </dev/null` in
6640*GNU* | *'with BFD'*)
6641 lt_cv_prog_gnu_ld=yes
6642 ;;
6643*)
6644 lt_cv_prog_gnu_ld=no
6645 ;;
6646esac
6647fi
6648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6649$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6650with_gnu_ld=$lt_cv_prog_gnu_ld
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6661$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 6662if ${lt_cv_path_NM+:} false; then :
c915a581
JJ
6663 $as_echo_n "(cached) " >&6
6664else
6665 if test -n "$NM"; then
6666 # Let the user override the test.
6667 lt_cv_path_NM="$NM"
6668else
6669 lt_nm_to_check="${ac_tool_prefix}nm"
6670 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6671 lt_nm_to_check="$lt_nm_to_check nm"
6672 fi
6673 for lt_tmp_nm in $lt_nm_to_check; do
6674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6675 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6676 IFS="$lt_save_ifs"
6677 test -z "$ac_dir" && ac_dir=.
6678 tmp_nm="$ac_dir/$lt_tmp_nm"
6679 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6680 # Check to see if the nm accepts a BSD-compat flag.
6681 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6682 # nm: unknown option "B" ignored
6683 # Tru64's nm complains that /dev/null is an invalid object file
6684 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6685 */dev/null* | *'Invalid file or object type'*)
6686 lt_cv_path_NM="$tmp_nm -B"
6687 break
6688 ;;
6689 *)
6690 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6691 */dev/null*)
6692 lt_cv_path_NM="$tmp_nm -p"
6693 break
6694 ;;
6695 *)
6696 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6697 continue # so that we can try to find one that supports BSD flags
6698 ;;
6699 esac
6700 ;;
6701 esac
6702 fi
6703 done
6704 IFS="$lt_save_ifs"
6705 done
6706 : ${lt_cv_path_NM=no}
6707fi
6708fi
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6710$as_echo "$lt_cv_path_NM" >&6; }
6711if test "$lt_cv_path_NM" != "no"; then
6712 NM="$lt_cv_path_NM"
6713else
6714 # Didn't find any BSD compatible name lister, look for dumpbin.
6715 if test -n "$DUMPBIN"; then :
6716 # Let the user override the test.
6717 else
f35db108 6718 if test -n "$ac_tool_prefix"; then
c915a581
JJ
6719 for ac_prog in dumpbin "link -dump"
6720 do
6721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6722set dummy $ac_tool_prefix$ac_prog; ac_word=$2
f35db108
WM
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6725if ${ac_cv_prog_DUMPBIN+:} false; then :
f35db108
WM
6726 $as_echo_n "(cached) " >&6
6727else
c915a581
JJ
6728 if test -n "$DUMPBIN"; then
6729 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
f35db108
WM
6730else
6731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732for as_dir in $PATH
6733do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 6738 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
f35db108
WM
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742done
6743 done
6744IFS=$as_save_IFS
6745
6746fi
6747fi
c915a581
JJ
6748DUMPBIN=$ac_cv_prog_DUMPBIN
6749if test -n "$DUMPBIN"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6751$as_echo "$DUMPBIN" >&6; }
f35db108
WM
6752else
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754$as_echo "no" >&6; }
6755fi
6756
6757
c915a581
JJ
6758 test -n "$DUMPBIN" && break
6759 done
f35db108 6760fi
c915a581
JJ
6761if test -z "$DUMPBIN"; then
6762 ac_ct_DUMPBIN=$DUMPBIN
6763 for ac_prog in dumpbin "link -dump"
6764do
6765 # Extract the first word of "$ac_prog", so it can be a program name with args.
6766set dummy $ac_prog; ac_word=$2
f35db108
WM
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6769if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
f35db108
WM
6770 $as_echo_n "(cached) " >&6
6771else
c915a581
JJ
6772 if test -n "$ac_ct_DUMPBIN"; then
6773 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
f35db108
WM
6774else
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 6782 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
f35db108
WM
6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786done
6787 done
6788IFS=$as_save_IFS
6789
6790fi
6791fi
c915a581
JJ
6792ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6793if test -n "$ac_ct_DUMPBIN"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6795$as_echo "$ac_ct_DUMPBIN" >&6; }
f35db108
WM
6796else
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798$as_echo "no" >&6; }
6799fi
6800
c915a581
JJ
6801
6802 test -n "$ac_ct_DUMPBIN" && break
6803done
6804
6805 if test "x$ac_ct_DUMPBIN" = x; then
6806 DUMPBIN=":"
f35db108
WM
6807 else
6808 case $cross_compiling:$ac_tool_warned in
6809yes:)
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6812ac_tool_warned=yes ;;
6813esac
c915a581 6814 DUMPBIN=$ac_ct_DUMPBIN
f35db108 6815 fi
f35db108
WM
6816fi
6817
c915a581
JJ
6818 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6819 *COFF*)
6820 DUMPBIN="$DUMPBIN -symbols"
6821 ;;
6822 *)
6823 DUMPBIN=:
6824 ;;
6825 esac
f35db108 6826 fi
f35db108 6827
c915a581
JJ
6828 if test "$DUMPBIN" != ":"; then
6829 NM="$DUMPBIN"
6830 fi
f35db108 6831fi
c915a581 6832test -z "$NM" && NM=nm
f35db108
WM
6833
6834
f35db108 6835
f35db108 6836
f35db108 6837
c915a581
JJ
6838
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6840$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 6841if ${lt_cv_nm_interface+:} false; then :
f35db108
WM
6842 $as_echo_n "(cached) " >&6
6843else
c915a581
JJ
6844 lt_cv_nm_interface="BSD nm"
6845 echo "int some_variable = 0;" > conftest.$ac_ext
6846 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6847 (eval "$ac_compile" 2>conftest.err)
6848 cat conftest.err >&5
6849 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6850 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6851 cat conftest.err >&5
6852 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6853 cat conftest.out >&5
6854 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6855 lt_cv_nm_interface="MS dumpbin"
f35db108 6856 fi
c915a581 6857 rm -f conftest*
f35db108 6858fi
c915a581
JJ
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6860$as_echo "$lt_cv_nm_interface" >&6; }
6861
6862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6863$as_echo_n "checking whether ln -s works... " >&6; }
6864LN_S=$as_ln_s
6865if test "$LN_S" = "ln -s"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6867$as_echo "yes" >&6; }
f35db108 6868else
c915a581
JJ
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6870$as_echo "no, using $LN_S" >&6; }
f35db108
WM
6871fi
6872
c915a581
JJ
6873# find the maximum length of command line arguments
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6875$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 6876if ${lt_cv_sys_max_cmd_len+:} false; then :
f35db108
WM
6877 $as_echo_n "(cached) " >&6
6878else
c915a581
JJ
6879 i=0
6880 teststring="ABCD"
f35db108 6881
c915a581
JJ
6882 case $build_os in
6883 msdosdjgpp*)
6884 # On DJGPP, this test can blow up pretty badly due to problems in libc
6885 # (any single argument exceeding 2000 bytes causes a buffer overrun
6886 # during glob expansion). Even if it were fixed, the result of this
6887 # check would be larger than it should be.
6888 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6889 ;;
f35db108 6890
c915a581
JJ
6891 gnu*)
6892 # Under GNU Hurd, this test is not required because there is
6893 # no limit to the length of command line arguments.
6894 # Libtool will interpret -1 as no limit whatsoever
6895 lt_cv_sys_max_cmd_len=-1;
6896 ;;
f35db108 6897
c915a581
JJ
6898 cygwin* | mingw* | cegcc*)
6899 # On Win9x/ME, this test blows up -- it succeeds, but takes
6900 # about 5 minutes as the teststring grows exponentially.
6901 # Worse, since 9x/ME are not pre-emptively multitasking,
6902 # you end up with a "frozen" computer, even though with patience
6903 # the test eventually succeeds (with a max line length of 256k).
6904 # Instead, let's just punt: use the minimum linelength reported by
6905 # all of the supported platforms: 8192 (on NT/2K/XP).
6906 lt_cv_sys_max_cmd_len=8192;
6907 ;;
f35db108 6908
c915a581
JJ
6909 mint*)
6910 # On MiNT this can take a long time and run out of memory.
6911 lt_cv_sys_max_cmd_len=8192;
6912 ;;
f35db108 6913
c915a581
JJ
6914 amigaos*)
6915 # On AmigaOS with pdksh, this test takes hours, literally.
6916 # So we just punt and use a minimum line length of 8192.
6917 lt_cv_sys_max_cmd_len=8192;
6918 ;;
f35db108 6919
c915a581
JJ
6920 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6921 # This has been around since 386BSD, at least. Likely further.
6922 if test -x /sbin/sysctl; then
6923 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6924 elif test -x /usr/sbin/sysctl; then
6925 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6926 else
6927 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6928 fi
6929 # And add a safety zone
6930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6931 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6932 ;;
f35db108 6933
c915a581
JJ
6934 interix*)
6935 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6936 lt_cv_sys_max_cmd_len=196608
6937 ;;
6938
6939 osf*)
6940 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6941 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6942 # nice to cause kernel panics so lets avoid the loop below.
6943 # First set a reasonable default.
6944 lt_cv_sys_max_cmd_len=16384
6945 #
6946 if test -x /sbin/sysconfig; then
6947 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6948 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6949 esac
6950 fi
6951 ;;
6952 sco3.2v5*)
6953 lt_cv_sys_max_cmd_len=102400
6954 ;;
6955 sysv5* | sco5v6* | sysv4.2uw2*)
6956 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6957 if test -n "$kargmax"; then
6958 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6959 else
6960 lt_cv_sys_max_cmd_len=32768
6961 fi
6962 ;;
6963 *)
6964 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6965 if test -n "$lt_cv_sys_max_cmd_len"; then
6966 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6968 else
6969 # Make teststring a little bigger before we do anything with it.
6970 # a 1K string should be a reasonable start.
6971 for i in 1 2 3 4 5 6 7 8 ; do
6972 teststring=$teststring$teststring
6973 done
6974 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6975 # If test is not a shell built-in, we'll probably end up computing a
6976 # maximum length that is only half of the actual maximum length, but
6977 # we can't tell.
6978 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6979 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6980 test $i != 17 # 1/2 MB should be enough
6981 do
6982 i=`expr $i + 1`
6983 teststring=$teststring$teststring
6984 done
6985 # Only check the string length outside the loop.
6986 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6987 teststring=
6988 # Add a significant safety factor because C++ compilers can tack on
6989 # massive amounts of additional arguments before passing them to the
6990 # linker. It appears as though 1/2 is a usable value.
6991 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6992 fi
6993 ;;
6994 esac
6995
6996fi
6997
6998if test -n $lt_cv_sys_max_cmd_len ; then
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7000$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7001else
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7003$as_echo "none" >&6; }
7004fi
7005max_cmd_len=$lt_cv_sys_max_cmd_len
f35db108
WM
7006
7007
7008
7009
7010
7011
c915a581
JJ
7012: ${CP="cp -f"}
7013: ${MV="mv -f"}
7014: ${RM="rm -f"}
7015
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7017$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7018# Try some XSI features
7019xsi_shell=no
7020( _lt_dummy="a/b/c"
7021 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7022 = c,a/b,, \
7023 && eval 'test $(( 1 + 1 )) -eq 2 \
7024 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7025 && xsi_shell=yes
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7027$as_echo "$xsi_shell" >&6; }
7028
7029
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7031$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7032lt_shell_append=no
7033( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7034 >/dev/null 2>&1 \
7035 && lt_shell_append=yes
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7037$as_echo "$lt_shell_append" >&6; }
f35db108
WM
7038
7039
c915a581
JJ
7040if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7041 lt_unset=unset
7042else
7043 lt_unset=false
7044fi
f35db108
WM
7045
7046
7047
7048
7049
c915a581
JJ
7050# test EBCDIC or ASCII
7051case `echo X|tr X '\101'` in
7052 A) # ASCII based system
7053 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7054 lt_SP2NL='tr \040 \012'
7055 lt_NL2SP='tr \015\012 \040\040'
7056 ;;
7057 *) # EBCDIC based system
7058 lt_SP2NL='tr \100 \n'
7059 lt_NL2SP='tr \r\n \100\100'
7060 ;;
7061esac
f35db108
WM
7062
7063
7064
7065
7066
7067
7068
7069
7070
c915a581
JJ
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7072$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 7073if ${lt_cv_ld_reload_flag+:} false; then :
f35db108
WM
7074 $as_echo_n "(cached) " >&6
7075else
c915a581 7076 lt_cv_ld_reload_flag='-r'
f35db108 7077fi
c915a581
JJ
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7079$as_echo "$lt_cv_ld_reload_flag" >&6; }
7080reload_flag=$lt_cv_ld_reload_flag
7081case $reload_flag in
7082"" | " "*) ;;
7083*) reload_flag=" $reload_flag" ;;
7084esac
7085reload_cmds='$LD$reload_flag -o $output$reload_objs'
7086case $host_os in
7087 darwin*)
7088 if test "$GCC" = yes; then
7089 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7090 else
7091 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7092 fi
7093 ;;
7094esac
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104if test -n "$ac_tool_prefix"; then
7105 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7106set dummy ${ac_tool_prefix}objdump; ac_word=$2
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7109if ${ac_cv_prog_OBJDUMP+:} false; then :
f35db108
WM
7110 $as_echo_n "(cached) " >&6
7111else
c915a581
JJ
7112 if test -n "$OBJDUMP"; then
7113 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7114else
7115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116for as_dir in $PATH
7117do
7118 IFS=$as_save_IFS
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7122 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 break 2
7125 fi
7126done
7127 done
7128IFS=$as_save_IFS
f35db108 7129
c915a581
JJ
7130fi
7131fi
7132OBJDUMP=$ac_cv_prog_OBJDUMP
7133if test -n "$OBJDUMP"; then
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7135$as_echo "$OBJDUMP" >&6; }
f35db108 7136else
c915a581
JJ
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138$as_echo "no" >&6; }
f35db108 7139fi
c915a581 7140
f35db108
WM
7141
7142fi
c915a581
JJ
7143if test -z "$ac_cv_prog_OBJDUMP"; then
7144 ac_ct_OBJDUMP=$OBJDUMP
7145 # Extract the first word of "objdump", so it can be a program name with args.
7146set dummy objdump; ac_word=$2
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7149if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
f35db108
WM
7150 $as_echo_n "(cached) " >&6
7151else
c915a581
JJ
7152 if test -n "$ac_ct_OBJDUMP"; then
7153 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
f35db108 7154else
c915a581
JJ
7155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156for as_dir in $PATH
f35db108 7157do
c915a581
JJ
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7162 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7165 fi
f35db108 7166done
c915a581
JJ
7167 done
7168IFS=$as_save_IFS
f35db108
WM
7169
7170fi
f35db108 7171fi
c915a581
JJ
7172ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7173if test -n "$ac_ct_OBJDUMP"; then
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7175$as_echo "$ac_ct_OBJDUMP" >&6; }
f35db108 7176else
c915a581
JJ
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178$as_echo "no" >&6; }
f35db108 7179fi
f35db108 7180
c915a581
JJ
7181 if test "x$ac_ct_OBJDUMP" = x; then
7182 OBJDUMP="false"
7183 else
7184 case $cross_compiling:$ac_tool_warned in
7185yes:)
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7188ac_tool_warned=yes ;;
7189esac
7190 OBJDUMP=$ac_ct_OBJDUMP
7191 fi
f35db108 7192else
c915a581 7193 OBJDUMP="$ac_cv_prog_OBJDUMP"
f35db108 7194fi
f35db108 7195
c915a581 7196test -z "$OBJDUMP" && OBJDUMP=objdump
f35db108 7197
f35db108 7198
f35db108
WM
7199
7200
f35db108 7201
f35db108 7202
f35db108 7203
f35db108 7204
f35db108 7205
c915a581
JJ
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7207$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 7208if ${lt_cv_deplibs_check_method+:} false; then :
c915a581 7209 $as_echo_n "(cached) " >&6
f35db108 7210else
c915a581
JJ
7211 lt_cv_file_magic_cmd='$MAGIC_CMD'
7212lt_cv_file_magic_test_file=
7213lt_cv_deplibs_check_method='unknown'
7214# Need to set the preceding variable on all platforms that support
7215# interlibrary dependencies.
7216# 'none' -- dependencies not supported.
7217# `unknown' -- same as none, but documents that we really don't know.
7218# 'pass_all' -- all dependencies passed with no checks.
7219# 'test_compile' -- check by making test program.
7220# 'file_magic [[regex]]' -- check by looking for files in library path
7221# which responds to the $file_magic_cmd with a given extended regex.
7222# If you have `file' or equivalent on your system and you're not sure
7223# whether `pass_all' will *always* work, you probably want this one.
f35db108 7224
c915a581
JJ
7225case $host_os in
7226aix[4-9]*)
7227 lt_cv_deplibs_check_method=pass_all
7228 ;;
f35db108 7229
c915a581
JJ
7230beos*)
7231 lt_cv_deplibs_check_method=pass_all
7232 ;;
f35db108 7233
c915a581
JJ
7234bsdi[45]*)
7235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7236 lt_cv_file_magic_cmd='/usr/bin/file -L'
7237 lt_cv_file_magic_test_file=/shlib/libc.so
7238 ;;
f35db108 7239
c915a581
JJ
7240cygwin*)
7241 # func_win32_libid is a shell function defined in ltmain.sh
7242 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7243 lt_cv_file_magic_cmd='func_win32_libid'
7244 ;;
f35db108 7245
c915a581
JJ
7246mingw* | pw32*)
7247 # Base MSYS/MinGW do not provide the 'file' command needed by
7248 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7249 # unless we find 'file', for example because we are cross-compiling.
7250 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7251 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7252 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7253 lt_cv_file_magic_cmd='func_win32_libid'
7254 else
7255 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7256 lt_cv_file_magic_cmd='$OBJDUMP -f'
7257 fi
7258 ;;
f35db108 7259
c915a581
JJ
7260cegcc*)
7261 # use the weaker test based on 'objdump'. See mingw*.
7262 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7263 lt_cv_file_magic_cmd='$OBJDUMP -f'
7264 ;;
f35db108 7265
c915a581
JJ
7266darwin* | rhapsody*)
7267 lt_cv_deplibs_check_method=pass_all
7268 ;;
f35db108 7269
c915a581
JJ
7270freebsd* | dragonfly*)
7271 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7272 case $host_cpu in
7273 i*86 )
7274 # Not sure whether the presence of OpenBSD here was a mistake.
7275 # Let's accept both of them until this is cleared up.
7276 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7277 lt_cv_file_magic_cmd=/usr/bin/file
7278 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7279 ;;
7280 esac
7281 else
7282 lt_cv_deplibs_check_method=pass_all
7283 fi
7284 ;;
f35db108 7285
c915a581
JJ
7286gnu*)
7287 lt_cv_deplibs_check_method=pass_all
7288 ;;
f35db108 7289
c915a581
JJ
7290haiku*)
7291 lt_cv_deplibs_check_method=pass_all
7292 ;;
f35db108 7293
c915a581
JJ
7294hpux10.20* | hpux11*)
7295 lt_cv_file_magic_cmd=/usr/bin/file
7296 case $host_cpu in
7297 ia64*)
7298 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7299 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7300 ;;
7301 hppa*64*)
7302 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]'
7303 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7304 ;;
7305 *)
7306 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7307 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7308 ;;
7309 esac
7310 ;;
f35db108 7311
c915a581
JJ
7312interix[3-9]*)
7313 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7315 ;;
f35db108 7316
c915a581
JJ
7317irix5* | irix6* | nonstopux*)
7318 case $LD in
7319 *-32|*"-32 ") libmagic=32-bit;;
7320 *-n32|*"-n32 ") libmagic=N32;;
7321 *-64|*"-64 ") libmagic=64-bit;;
7322 *) libmagic=never-match;;
7323 esac
7324 lt_cv_deplibs_check_method=pass_all
7325 ;;
f35db108 7326
c915a581 7327# This must be Linux ELF.
e9085da5 7328linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
c915a581
JJ
7329 lt_cv_deplibs_check_method=pass_all
7330 ;;
f35db108 7331
c915a581
JJ
7332netbsd*)
7333 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7334 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7335 else
7336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7337 fi
7338 ;;
f35db108 7339
c915a581
JJ
7340newos6*)
7341 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7342 lt_cv_file_magic_cmd=/usr/bin/file
7343 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7344 ;;
f35db108 7345
c915a581
JJ
7346*nto* | *qnx*)
7347 lt_cv_deplibs_check_method=pass_all
7348 ;;
f35db108 7349
c915a581
JJ
7350openbsd*)
7351 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7353 else
7354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7355 fi
7356 ;;
f35db108 7357
c915a581
JJ
7358osf3* | osf4* | osf5*)
7359 lt_cv_deplibs_check_method=pass_all
7360 ;;
f35db108 7361
c915a581
JJ
7362rdos*)
7363 lt_cv_deplibs_check_method=pass_all
7364 ;;
f35db108 7365
c915a581
JJ
7366solaris*)
7367 lt_cv_deplibs_check_method=pass_all
7368 ;;
f35db108 7369
c915a581
JJ
7370sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7371 lt_cv_deplibs_check_method=pass_all
7372 ;;
f35db108 7373
c915a581
JJ
7374sysv4 | sysv4.3*)
7375 case $host_vendor in
7376 motorola)
7377 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]'
7378 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7379 ;;
7380 ncr)
7381 lt_cv_deplibs_check_method=pass_all
7382 ;;
7383 sequent)
7384 lt_cv_file_magic_cmd='/bin/file'
7385 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7386 ;;
7387 sni)
7388 lt_cv_file_magic_cmd='/bin/file'
7389 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7390 lt_cv_file_magic_test_file=/lib/libc.so
7391 ;;
7392 siemens)
7393 lt_cv_deplibs_check_method=pass_all
7394 ;;
7395 pc)
7396 lt_cv_deplibs_check_method=pass_all
7397 ;;
7398 esac
7399 ;;
f35db108 7400
c915a581
JJ
7401tpf*)
7402 lt_cv_deplibs_check_method=pass_all
7403 ;;
7404esac
f35db108 7405
c915a581
JJ
7406fi
7407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7408$as_echo "$lt_cv_deplibs_check_method" >&6; }
7409file_magic_cmd=$lt_cv_file_magic_cmd
7410deplibs_check_method=$lt_cv_deplibs_check_method
7411test -z "$deplibs_check_method" && deplibs_check_method=unknown
f35db108
WM
7412
7413
f35db108
WM
7414
7415
f35db108
WM
7416
7417
7418
7419
7420
7421
7422
7423
c915a581
JJ
7424if test -n "$ac_tool_prefix"; then
7425 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7426set dummy ${ac_tool_prefix}ar; ac_word=$2
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7429if ${ac_cv_prog_AR+:} false; then :
c915a581
JJ
7430 $as_echo_n "(cached) " >&6
7431else
7432 if test -n "$AR"; then
7433 ac_cv_prog_AR="$AR" # Let the user override the test.
7434else
7435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436for as_dir in $PATH
7437do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7442 ac_cv_prog_AR="${ac_tool_prefix}ar"
7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7445 fi
7446done
7447 done
7448IFS=$as_save_IFS
f35db108 7449
c915a581
JJ
7450fi
7451fi
7452AR=$ac_cv_prog_AR
7453if test -n "$AR"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7455$as_echo "$AR" >&6; }
f35db108 7456else
c915a581
JJ
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458$as_echo "no" >&6; }
f35db108
WM
7459fi
7460
7461
c915a581
JJ
7462fi
7463if test -z "$ac_cv_prog_AR"; then
7464 ac_ct_AR=$AR
7465 # Extract the first word of "ar", so it can be a program name with args.
7466set dummy ar; ac_word=$2
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7469if ${ac_cv_prog_ac_ct_AR+:} false; then :
c915a581
JJ
7470 $as_echo_n "(cached) " >&6
7471else
7472 if test -n "$ac_ct_AR"; then
7473 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7474else
7475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476for as_dir in $PATH
7477do
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7482 ac_cv_prog_ac_ct_AR="ar"
7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7485 fi
7486done
7487 done
7488IFS=$as_save_IFS
f35db108 7489
c915a581
JJ
7490fi
7491fi
7492ac_ct_AR=$ac_cv_prog_ac_ct_AR
7493if test -n "$ac_ct_AR"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7495$as_echo "$ac_ct_AR" >&6; }
f35db108 7496else
c915a581
JJ
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498$as_echo "no" >&6; }
f35db108
WM
7499fi
7500
c915a581
JJ
7501 if test "x$ac_ct_AR" = x; then
7502 AR="false"
7503 else
7504 case $cross_compiling:$ac_tool_warned in
7505yes:)
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7508ac_tool_warned=yes ;;
7509esac
7510 AR=$ac_ct_AR
7511 fi
f35db108 7512else
c915a581 7513 AR="$ac_cv_prog_AR"
f35db108
WM
7514fi
7515
c915a581
JJ
7516test -z "$AR" && AR=ar
7517test -z "$AR_FLAGS" && AR_FLAGS=cru
f35db108
WM
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
c915a581
JJ
7529if test -n "$ac_tool_prefix"; then
7530 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7531set dummy ${ac_tool_prefix}strip; ac_word=$2
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7534if ${ac_cv_prog_STRIP+:} false; then :
c915a581
JJ
7535 $as_echo_n "(cached) " >&6
7536else
7537 if test -n "$STRIP"; then
7538 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7539else
7540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541for as_dir in $PATH
7542do
7543 IFS=$as_save_IFS
7544 test -z "$as_dir" && as_dir=.
7545 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7547 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 break 2
7550 fi
7551done
7552 done
7553IFS=$as_save_IFS
f35db108 7554
c915a581
JJ
7555fi
7556fi
7557STRIP=$ac_cv_prog_STRIP
7558if test -n "$STRIP"; then
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7560$as_echo "$STRIP" >&6; }
7561else
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563$as_echo "no" >&6; }
7564fi
f35db108
WM
7565
7566
c915a581
JJ
7567fi
7568if test -z "$ac_cv_prog_STRIP"; then
7569 ac_ct_STRIP=$STRIP
7570 # Extract the first word of "strip", so it can be a program name with args.
7571set dummy strip; ac_word=$2
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7574if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
c915a581
JJ
7575 $as_echo_n "(cached) " >&6
7576else
7577 if test -n "$ac_ct_STRIP"; then
7578 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7579else
7580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581for as_dir in $PATH
7582do
7583 IFS=$as_save_IFS
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7587 ac_cv_prog_ac_ct_STRIP="strip"
7588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 break 2
7590 fi
7591done
7592 done
7593IFS=$as_save_IFS
f35db108 7594
c915a581
JJ
7595fi
7596fi
7597ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7598if test -n "$ac_ct_STRIP"; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7600$as_echo "$ac_ct_STRIP" >&6; }
7601else
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603$as_echo "no" >&6; }
7604fi
f35db108 7605
c915a581
JJ
7606 if test "x$ac_ct_STRIP" = x; then
7607 STRIP=":"
7608 else
7609 case $cross_compiling:$ac_tool_warned in
7610yes:)
7611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7613ac_tool_warned=yes ;;
7614esac
7615 STRIP=$ac_ct_STRIP
7616 fi
7617else
7618 STRIP="$ac_cv_prog_STRIP"
7619fi
f35db108 7620
c915a581 7621test -z "$STRIP" && STRIP=:
f35db108
WM
7622
7623
7624
7625
7626
7627
c915a581
JJ
7628if test -n "$ac_tool_prefix"; then
7629 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7630set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7633if ${ac_cv_prog_RANLIB+:} false; then :
c915a581
JJ
7634 $as_echo_n "(cached) " >&6
7635else
7636 if test -n "$RANLIB"; then
7637 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7638else
7639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640for as_dir in $PATH
7641do
7642 IFS=$as_save_IFS
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7646 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 break 2
7649 fi
7650done
7651 done
7652IFS=$as_save_IFS
f35db108 7653
c915a581
JJ
7654fi
7655fi
7656RANLIB=$ac_cv_prog_RANLIB
7657if test -n "$RANLIB"; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7659$as_echo "$RANLIB" >&6; }
7660else
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662$as_echo "no" >&6; }
7663fi
f35db108
WM
7664
7665
f35db108 7666fi
c915a581
JJ
7667if test -z "$ac_cv_prog_RANLIB"; then
7668 ac_ct_RANLIB=$RANLIB
7669 # Extract the first word of "ranlib", so it can be a program name with args.
7670set dummy ranlib; ac_word=$2
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7673if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
f35db108
WM
7674 $as_echo_n "(cached) " >&6
7675else
c915a581
JJ
7676 if test -n "$ac_ct_RANLIB"; then
7677 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
f35db108 7678else
c915a581
JJ
7679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680for as_dir in $PATH
7681do
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7686 ac_cv_prog_ac_ct_RANLIB="ranlib"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7689 fi
7690done
7691 done
7692IFS=$as_save_IFS
7693
f35db108 7694fi
f35db108 7695fi
c915a581
JJ
7696ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7697if test -n "$ac_ct_RANLIB"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7699$as_echo "$ac_ct_RANLIB" >&6; }
7700else
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702$as_echo "no" >&6; }
7703fi
7704
7705 if test "x$ac_ct_RANLIB" = x; then
7706 RANLIB=":"
7707 else
7708 case $cross_compiling:$ac_tool_warned in
7709yes:)
7710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7712ac_tool_warned=yes ;;
7713esac
7714 RANLIB=$ac_ct_RANLIB
7715 fi
7716else
7717 RANLIB="$ac_cv_prog_RANLIB"
7718fi
f35db108 7719
c915a581 7720test -z "$RANLIB" && RANLIB=:
f35db108
WM
7721
7722
7723
7724
f35db108
WM
7725
7726
c915a581
JJ
7727# Determine commands to create old-style static archives.
7728old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7729old_postinstall_cmds='chmod 644 $oldlib'
7730old_postuninstall_cmds=
f35db108 7731
c915a581
JJ
7732if test -n "$RANLIB"; then
7733 case $host_os in
7734 openbsd*)
7735 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7736 ;;
7737 *)
7738 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7739 ;;
7740 esac
7741 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7742fi
f35db108
WM
7743
7744case $host_os in
c915a581
JJ
7745 darwin*)
7746 lock_old_archive_extraction=yes ;;
7747 *)
7748 lock_old_archive_extraction=no ;;
f35db108
WM
7749esac
7750
f35db108 7751
f35db108 7752
f35db108 7753
f35db108 7754
f35db108 7755
f35db108
WM
7756
7757
f35db108 7758
f35db108 7759
f35db108 7760
f35db108
WM
7761
7762
7763
7764
7765
f35db108 7766
f35db108 7767
f35db108 7768
f35db108
WM
7769
7770
f35db108 7771
f35db108 7772
f35db108 7773
f35db108
WM
7774
7775
f35db108 7776
f35db108 7777
f35db108 7778
c915a581
JJ
7779
7780
7781
f35db108
WM
7782
7783
7784
7785
7786
7787
7788
7789# If no C compiler was specified, use CC.
7790LTCC=${LTCC-"$CC"}
7791
7792# If no C compiler flags were specified, use CFLAGS.
7793LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7794
7795# Allow CC to be a program name with arguments.
7796compiler=$CC
7797
f35db108 7798
c915a581
JJ
7799# Check for command to grab the raw symbol name followed by C symbol from nm.
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7801$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 7802if ${lt_cv_sys_global_symbol_pipe+:} false; then :
c915a581
JJ
7803 $as_echo_n "(cached) " >&6
7804else
f35db108 7805
c915a581
JJ
7806# These are sane defaults that work on at least a few old systems.
7807# [They come from Ultrix. What could be older than Ultrix?!! ;)]
f35db108 7808
c915a581
JJ
7809# Character class describing NM global symbol codes.
7810symcode='[BCDEGRST]'
f35db108 7811
c915a581
JJ
7812# Regexp to match symbols that can be accessed directly from C.
7813sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
f35db108 7814
c915a581
JJ
7815# Define system-specific variables.
7816case $host_os in
7817aix*)
7818 symcode='[BCDT]'
7819 ;;
7820cygwin* | mingw* | pw32* | cegcc*)
7821 symcode='[ABCDGISTW]'
7822 ;;
7823hpux*)
7824 if test "$host_cpu" = ia64; then
7825 symcode='[ABCDEGRST]'
7826 fi
7827 ;;
7828irix* | nonstopux*)
7829 symcode='[BCDEGRST]'
7830 ;;
7831osf*)
7832 symcode='[BCDEGQRST]'
7833 ;;
7834solaris*)
7835 symcode='[BDRT]'
7836 ;;
7837sco3.2v5*)
7838 symcode='[DT]'
7839 ;;
7840sysv4.2uw2*)
7841 symcode='[DT]'
7842 ;;
7843sysv5* | sco5v6* | unixware* | OpenUNIX*)
7844 symcode='[ABDT]'
7845 ;;
7846sysv4)
7847 symcode='[DFNSTU]'
7848 ;;
7849esac
f35db108 7850
c915a581
JJ
7851# If we're using GNU nm, then use its standard symbol codes.
7852case `$NM -V 2>&1` in
7853*GNU* | *'with BFD'*)
7854 symcode='[ABCDGIRSTW]' ;;
7855esac
f35db108 7856
c915a581
JJ
7857# Transform an extracted symbol line into a proper C declaration.
7858# Some systems (esp. on ia64) link data and code symbols differently,
7859# so use this general approach.
7860lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
f35db108 7861
c915a581
JJ
7862# Transform an extracted symbol line into symbol name and symbol address
7863lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7864lt_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 7865
c915a581
JJ
7866# Handle CRLF in mingw tool chain
7867opt_cr=
7868case $build_os in
7869mingw*)
7870 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7871 ;;
7872esac
f35db108 7873
c915a581
JJ
7874# Try without a prefix underscore, then with it.
7875for ac_symprfx in "" "_"; do
f35db108 7876
c915a581
JJ
7877 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7878 symxfrm="\\1 $ac_symprfx\\2 \\2"
f35db108 7879
c915a581
JJ
7880 # Write the raw and C identifiers.
7881 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7882 # Fake it for dumpbin and say T for any non-static function
7883 # and D for any global variable.
7884 # Also find C++ and __fastcall symbols from MSVC++,
7885 # which start with @ or ?.
7886 lt_cv_sys_global_symbol_pipe="$AWK '"\
7887" {last_section=section; section=\$ 3};"\
7888" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7889" \$ 0!~/External *\|/{next};"\
7890" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7891" {if(hide[section]) next};"\
7892" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7893" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7894" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7895" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7896" ' prfx=^$ac_symprfx"
7897 else
7898 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7899 fi
f35db108 7900
c915a581
JJ
7901 # Check to see that the pipe works correctly.
7902 pipe_works=no
f35db108 7903
c915a581
JJ
7904 rm -f conftest*
7905 cat > conftest.$ac_ext <<_LT_EOF
7906#ifdef __cplusplus
7907extern "C" {
7908#endif
7909char nm_test_var;
7910void nm_test_func(void);
7911void nm_test_func(void){}
7912#ifdef __cplusplus
7913}
7914#endif
7915int main(){nm_test_var='a';nm_test_func();return(0);}
7916_LT_EOF
f35db108 7917
c915a581
JJ
7918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7919 (eval $ac_compile) 2>&5
7920 ac_status=$?
7921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7922 test $ac_status = 0; }; then
7923 # Now try to grab the symbols.
7924 nlist=conftest.nm
7925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7926 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7927 ac_status=$?
7928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7929 test $ac_status = 0; } && test -s "$nlist"; then
7930 # Try sorting and uniquifying the output.
7931 if sort "$nlist" | uniq > "$nlist"T; then
7932 mv -f "$nlist"T "$nlist"
7933 else
7934 rm -f "$nlist"T
7935 fi
f35db108 7936
c915a581
JJ
7937 # Make sure that we snagged all the symbols we need.
7938 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7939 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7940 cat <<_LT_EOF > conftest.$ac_ext
7941#ifdef __cplusplus
7942extern "C" {
7943#endif
f35db108 7944
c915a581
JJ
7945_LT_EOF
7946 # Now generate the symbol file.
7947 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
f35db108 7948
c915a581
JJ
7949 cat <<_LT_EOF >> conftest.$ac_ext
7950
7951/* The mapping between symbol names and symbols. */
7952const struct {
7953 const char *name;
7954 void *address;
7955}
7956lt__PROGRAM__LTX_preloaded_symbols[] =
7957{
7958 { "@PROGRAM@", (void *) 0 },
7959_LT_EOF
7960 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7961 cat <<\_LT_EOF >> conftest.$ac_ext
7962 {0, (void *) 0}
7963};
7964
7965/* This works around a problem in FreeBSD linker */
7966#ifdef FREEBSD_WORKAROUND
7967static const void *lt_preloaded_setup() {
7968 return lt__PROGRAM__LTX_preloaded_symbols;
7969}
7970#endif
7971
7972#ifdef __cplusplus
7973}
7974#endif
7975_LT_EOF
7976 # Now try linking the two files.
7977 mv conftest.$ac_objext conftstm.$ac_objext
7978 lt_save_LIBS="$LIBS"
7979 lt_save_CFLAGS="$CFLAGS"
7980 LIBS="conftstm.$ac_objext"
7981 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7983 (eval $ac_link) 2>&5
7984 ac_status=$?
7985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7986 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7987 pipe_works=yes
7988 fi
7989 LIBS="$lt_save_LIBS"
7990 CFLAGS="$lt_save_CFLAGS"
7991 else
7992 echo "cannot find nm_test_func in $nlist" >&5
7993 fi
7994 else
7995 echo "cannot find nm_test_var in $nlist" >&5
f35db108 7996 fi
c915a581
JJ
7997 else
7998 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7999 fi
8000 else
8001 echo "$progname: failed program was:" >&5
8002 cat conftest.$ac_ext >&5
8003 fi
8004 rm -rf conftest* conftst*
f35db108 8005
c915a581
JJ
8006 # Do not use the global_symbol_pipe unless it works.
8007 if test "$pipe_works" = yes; then
8008 break
8009 else
8010 lt_cv_sys_global_symbol_pipe=
8011 fi
8012done
f35db108 8013
c915a581 8014fi
f35db108 8015
c915a581
JJ
8016if test -z "$lt_cv_sys_global_symbol_pipe"; then
8017 lt_cv_sys_global_symbol_to_cdecl=
8018fi
8019if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8021$as_echo "failed" >&6; }
8022else
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8024$as_echo "ok" >&6; }
8025fi
f35db108 8026
f35db108 8027
f35db108 8028
f35db108 8029
f35db108 8030
f35db108 8031
f35db108 8032
f35db108 8033
f35db108 8034
f35db108 8035
f35db108 8036
f35db108 8037
f35db108 8038
c915a581
JJ
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048# Check whether --enable-libtool-lock was given.
8049if test "${enable_libtool_lock+set}" = set; then :
8050 enableval=$enable_libtool_lock;
8051fi
8052
8053test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8054
8055# Some flags need to be propagated to the compiler or linker for good
8056# libtool support.
8057case $host in
8058ia64-*-hpux*)
8059 # Find out which ABI we are using.
8060 echo 'int i;' > conftest.$ac_ext
8061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8062 (eval $ac_compile) 2>&5
8063 ac_status=$?
8064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8065 test $ac_status = 0; }; then
8066 case `/usr/bin/file conftest.$ac_objext` in
8067 *ELF-32*)
8068 HPUX_IA64_MODE="32"
f35db108 8069 ;;
c915a581
JJ
8070 *ELF-64*)
8071 HPUX_IA64_MODE="64"
f35db108 8072 ;;
c915a581
JJ
8073 esac
8074 fi
8075 rm -rf conftest*
8076 ;;
8077*-*-irix6*)
8078 # Find out which ABI we are using.
8079 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8081 (eval $ac_compile) 2>&5
8082 ac_status=$?
8083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8084 test $ac_status = 0; }; then
8085 if test "$lt_cv_prog_gnu_ld" = yes; then
8086 case `/usr/bin/file conftest.$ac_objext` in
8087 *32-bit*)
8088 LD="${LD-ld} -melf32bsmip"
f35db108 8089 ;;
c915a581
JJ
8090 *N32*)
8091 LD="${LD-ld} -melf32bmipn32"
f35db108 8092 ;;
c915a581
JJ
8093 *64-bit*)
8094 LD="${LD-ld} -melf64bmip"
f35db108
WM
8095 ;;
8096 esac
c915a581
JJ
8097 else
8098 case `/usr/bin/file conftest.$ac_objext` in
8099 *32-bit*)
8100 LD="${LD-ld} -32"
8101 ;;
8102 *N32*)
8103 LD="${LD-ld} -n32"
8104 ;;
8105 *64-bit*)
8106 LD="${LD-ld} -64"
8107 ;;
f35db108 8108 esac
c915a581
JJ
8109 fi
8110 fi
8111 rm -rf conftest*
8112 ;;
f35db108 8113
c915a581
JJ
8114x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8115s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8116 # Find out which ABI we are using.
8117 echo 'int i;' > conftest.$ac_ext
8118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8119 (eval $ac_compile) 2>&5
8120 ac_status=$?
8121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8122 test $ac_status = 0; }; then
8123 case `/usr/bin/file conftest.o` in
8124 *32-bit*)
8125 case $host in
8126 x86_64-*kfreebsd*-gnu)
8127 LD="${LD-ld} -m elf_i386_fbsd"
8128 ;;
8129 x86_64-*linux*)
8130 case `/usr/bin/file conftest.o` in
8131 *x86-64*)
8132 LD="${LD-ld} -m elf32_x86_64"
8133 ;;
8134 *)
8135 LD="${LD-ld} -m elf_i386"
8136 ;;
8137 esac
8138 ;;
8139 powerpc64le-*linux*)
8140 LD="${LD-ld} -m elf32lppclinux"
8141 ;;
8142 powerpc64-*linux*)
8143 LD="${LD-ld} -m elf32ppclinux"
8144 ;;
8145 s390x-*linux*)
8146 LD="${LD-ld} -m elf_s390"
8147 ;;
8148 sparc64-*linux*)
8149 LD="${LD-ld} -m elf32_sparc"
8150 ;;
8151 esac
8152 ;;
8153 *64-bit*)
8154 case $host in
8155 x86_64-*kfreebsd*-gnu)
8156 LD="${LD-ld} -m elf_x86_64_fbsd"
8157 ;;
8158 x86_64-*linux*)
8159 LD="${LD-ld} -m elf_x86_64"
8160 ;;
8161 powerpcle-*linux*)
8162 LD="${LD-ld} -m elf64lppc"
8163 ;;
8164 powerpc-*linux*)
8165 LD="${LD-ld} -m elf64ppc"
8166 ;;
8167 s390*-*linux*|s390*-*tpf*)
8168 LD="${LD-ld} -m elf64_s390"
8169 ;;
8170 sparc*-*linux*)
8171 LD="${LD-ld} -m elf64_sparc"
8172 ;;
8173 esac
8174 ;;
8175 esac
8176 fi
8177 rm -rf conftest*
8178 ;;
f35db108 8179
c915a581
JJ
8180*-*-sco3.2v5*)
8181 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8182 SAVE_CFLAGS="$CFLAGS"
8183 CFLAGS="$CFLAGS -belf"
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8185$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 8186if ${lt_cv_cc_needs_belf+:} false; then :
c915a581
JJ
8187 $as_echo_n "(cached) " >&6
8188else
8189 ac_ext=c
8190ac_cpp='$CPP $CPPFLAGS'
8191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8193ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 8194
c915a581
JJ
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196/* end confdefs.h. */
f35db108 8197
c915a581
JJ
8198int
8199main ()
8200{
f35db108 8201
c915a581
JJ
8202 ;
8203 return 0;
8204}
8205_ACEOF
8206if ac_fn_c_try_link "$LINENO"; then :
8207 lt_cv_cc_needs_belf=yes
8208else
8209 lt_cv_cc_needs_belf=no
8210fi
8211rm -f core conftest.err conftest.$ac_objext \
8212 conftest$ac_exeext conftest.$ac_ext
8213 ac_ext=c
8214ac_cpp='$CPP $CPPFLAGS'
8215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8217ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 8218
c915a581
JJ
8219fi
8220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8221$as_echo "$lt_cv_cc_needs_belf" >&6; }
8222 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8223 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8224 CFLAGS="$SAVE_CFLAGS"
8225 fi
8226 ;;
8227sparc*-*solaris*)
8228 # Find out which ABI we are using.
8229 echo 'int i;' > conftest.$ac_ext
8230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8231 (eval $ac_compile) 2>&5
8232 ac_status=$?
8233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8234 test $ac_status = 0; }; then
8235 case `/usr/bin/file conftest.o` in
8236 *64-bit*)
8237 case $lt_cv_prog_gnu_ld in
8238 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8239 *)
8240 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8241 LD="${LD-ld} -64"
8242 fi
8243 ;;
8244 esac
f35db108
WM
8245 ;;
8246 esac
8247 fi
c915a581
JJ
8248 rm -rf conftest*
8249 ;;
8250esac
f35db108 8251
c915a581 8252need_locks="$enable_libtool_lock"
a2479b3d
L
8253
8254
c915a581
JJ
8255 case $host_os in
8256 rhapsody* | darwin*)
8257 if test -n "$ac_tool_prefix"; then
8258 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8259set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8262if ${ac_cv_prog_DSYMUTIL+:} false; then :
c915a581
JJ
8263 $as_echo_n "(cached) " >&6
8264else
8265 if test -n "$DSYMUTIL"; then
8266 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8267else
8268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269for as_dir in $PATH
8270do
8271 IFS=$as_save_IFS
8272 test -z "$as_dir" && as_dir=.
8273 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8275 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8277 break 2
8278 fi
8279done
8280 done
8281IFS=$as_save_IFS
a2479b3d 8282
c915a581
JJ
8283fi
8284fi
8285DSYMUTIL=$ac_cv_prog_DSYMUTIL
8286if test -n "$DSYMUTIL"; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8288$as_echo "$DSYMUTIL" >&6; }
8289else
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291$as_echo "no" >&6; }
8292fi
f35db108 8293
f35db108 8294
c915a581
JJ
8295fi
8296if test -z "$ac_cv_prog_DSYMUTIL"; then
8297 ac_ct_DSYMUTIL=$DSYMUTIL
8298 # Extract the first word of "dsymutil", so it can be a program name with args.
8299set dummy dsymutil; ac_word=$2
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8302if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
f35db108
WM
8303 $as_echo_n "(cached) " >&6
8304else
c915a581
JJ
8305 if test -n "$ac_ct_DSYMUTIL"; then
8306 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8307else
8308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309for as_dir in $PATH
8310do
8311 IFS=$as_save_IFS
8312 test -z "$as_dir" && as_dir=.
8313 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8315 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8317 break 2
8318 fi
8319done
8320 done
8321IFS=$as_save_IFS
f35db108
WM
8322
8323fi
c915a581
JJ
8324fi
8325ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8326if test -n "$ac_ct_DSYMUTIL"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8328$as_echo "$ac_ct_DSYMUTIL" >&6; }
f35db108 8329else
c915a581
JJ
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331$as_echo "no" >&6; }
f35db108
WM
8332fi
8333
c915a581
JJ
8334 if test "x$ac_ct_DSYMUTIL" = x; then
8335 DSYMUTIL=":"
8336 else
8337 case $cross_compiling:$ac_tool_warned in
8338yes:)
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8341ac_tool_warned=yes ;;
8342esac
8343 DSYMUTIL=$ac_ct_DSYMUTIL
8344 fi
8345else
8346 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
f35db108
WM
8347fi
8348
c915a581
JJ
8349 if test -n "$ac_tool_prefix"; then
8350 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8351set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8354if ${ac_cv_prog_NMEDIT+:} false; then :
f35db108
WM
8355 $as_echo_n "(cached) " >&6
8356else
c915a581
JJ
8357 if test -n "$NMEDIT"; then
8358 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8359else
8360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361for as_dir in $PATH
8362do
8363 IFS=$as_save_IFS
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8367 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8369 break 2
8370 fi
8371done
8372 done
8373IFS=$as_save_IFS
f35db108
WM
8374
8375fi
c915a581
JJ
8376fi
8377NMEDIT=$ac_cv_prog_NMEDIT
8378if test -n "$NMEDIT"; then
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8380$as_echo "$NMEDIT" >&6; }
f35db108 8381else
c915a581
JJ
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383$as_echo "no" >&6; }
f35db108
WM
8384fi
8385
8386
c915a581
JJ
8387fi
8388if test -z "$ac_cv_prog_NMEDIT"; then
8389 ac_ct_NMEDIT=$NMEDIT
8390 # Extract the first word of "nmedit", so it can be a program name with args.
8391set dummy nmedit; ac_word=$2
8392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8393$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8394if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
f35db108
WM
8395 $as_echo_n "(cached) " >&6
8396else
c915a581
JJ
8397 if test -n "$ac_ct_NMEDIT"; then
8398 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8399else
8400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401for as_dir in $PATH
8402do
8403 IFS=$as_save_IFS
8404 test -z "$as_dir" && as_dir=.
8405 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8407 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8409 break 2
8410 fi
8411done
8412 done
8413IFS=$as_save_IFS
f35db108
WM
8414
8415fi
c915a581
JJ
8416fi
8417ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8418if test -n "$ac_ct_NMEDIT"; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8420$as_echo "$ac_ct_NMEDIT" >&6; }
8421else
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8423$as_echo "no" >&6; }
8424fi
f35db108 8425
c915a581
JJ
8426 if test "x$ac_ct_NMEDIT" = x; then
8427 NMEDIT=":"
8428 else
8429 case $cross_compiling:$ac_tool_warned in
8430yes:)
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8433ac_tool_warned=yes ;;
8434esac
8435 NMEDIT=$ac_ct_NMEDIT
8436 fi
8437else
8438 NMEDIT="$ac_cv_prog_NMEDIT"
8439fi
f35db108 8440
c915a581
JJ
8441 if test -n "$ac_tool_prefix"; then
8442 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8443set dummy ${ac_tool_prefix}lipo; ac_word=$2
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8445$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8446if ${ac_cv_prog_LIPO+:} false; then :
f35db108
WM
8447 $as_echo_n "(cached) " >&6
8448else
c915a581
JJ
8449 if test -n "$LIPO"; then
8450 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8451else
8452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453for as_dir in $PATH
8454do
8455 IFS=$as_save_IFS
8456 test -z "$as_dir" && as_dir=.
8457 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8459 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8461 break 2
8462 fi
8463done
8464 done
8465IFS=$as_save_IFS
f35db108
WM
8466
8467fi
c915a581
JJ
8468fi
8469LIPO=$ac_cv_prog_LIPO
8470if test -n "$LIPO"; then
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8472$as_echo "$LIPO" >&6; }
8473else
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475$as_echo "no" >&6; }
8476fi
f35db108
WM
8477
8478
c915a581
JJ
8479fi
8480if test -z "$ac_cv_prog_LIPO"; then
8481 ac_ct_LIPO=$LIPO
8482 # Extract the first word of "lipo", so it can be a program name with args.
8483set dummy lipo; ac_word=$2
8484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8485$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8486if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
c915a581
JJ
8487 $as_echo_n "(cached) " >&6
8488else
8489 if test -n "$ac_ct_LIPO"; then
8490 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8491else
8492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493for as_dir in $PATH
8494do
8495 IFS=$as_save_IFS
8496 test -z "$as_dir" && as_dir=.
8497 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8499 ac_cv_prog_ac_ct_LIPO="lipo"
8500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8501 break 2
8502 fi
8503done
8504 done
8505IFS=$as_save_IFS
f35db108 8506
c915a581
JJ
8507fi
8508fi
8509ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8510if test -n "$ac_ct_LIPO"; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8512$as_echo "$ac_ct_LIPO" >&6; }
8513else
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515$as_echo "no" >&6; }
8516fi
f35db108 8517
c915a581
JJ
8518 if test "x$ac_ct_LIPO" = x; then
8519 LIPO=":"
8520 else
8521 case $cross_compiling:$ac_tool_warned in
8522yes:)
8523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8525ac_tool_warned=yes ;;
8526esac
8527 LIPO=$ac_ct_LIPO
f35db108
WM
8528 fi
8529else
c915a581 8530 LIPO="$ac_cv_prog_LIPO"
f35db108
WM
8531fi
8532
c915a581
JJ
8533 if test -n "$ac_tool_prefix"; then
8534 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8535set dummy ${ac_tool_prefix}otool; ac_word=$2
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8538if ${ac_cv_prog_OTOOL+:} false; then :
c915a581
JJ
8539 $as_echo_n "(cached) " >&6
8540else
8541 if test -n "$OTOOL"; then
8542 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8543else
8544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545for as_dir in $PATH
8546do
8547 IFS=$as_save_IFS
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8551 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553 break 2
8554 fi
8555done
8556 done
8557IFS=$as_save_IFS
f35db108 8558
c915a581
JJ
8559fi
8560fi
8561OTOOL=$ac_cv_prog_OTOOL
8562if test -n "$OTOOL"; then
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8564$as_echo "$OTOOL" >&6; }
8565else
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567$as_echo "no" >&6; }
8568fi
f35db108
WM
8569
8570
c915a581
JJ
8571fi
8572if test -z "$ac_cv_prog_OTOOL"; then
8573 ac_ct_OTOOL=$OTOOL
8574 # Extract the first word of "otool", so it can be a program name with args.
8575set dummy otool; ac_word=$2
8576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8577$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8578if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
c915a581
JJ
8579 $as_echo_n "(cached) " >&6
8580else
8581 if test -n "$ac_ct_OTOOL"; then
8582 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8583else
8584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585for as_dir in $PATH
8586do
8587 IFS=$as_save_IFS
8588 test -z "$as_dir" && as_dir=.
8589 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8591 ac_cv_prog_ac_ct_OTOOL="otool"
8592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8593 break 2
8594 fi
8595done
8596 done
8597IFS=$as_save_IFS
f35db108 8598
c915a581
JJ
8599fi
8600fi
8601ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8602if test -n "$ac_ct_OTOOL"; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8604$as_echo "$ac_ct_OTOOL" >&6; }
8605else
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607$as_echo "no" >&6; }
8608fi
f35db108 8609
c915a581
JJ
8610 if test "x$ac_ct_OTOOL" = x; then
8611 OTOOL=":"
8612 else
8613 case $cross_compiling:$ac_tool_warned in
8614yes:)
8615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8617ac_tool_warned=yes ;;
8618esac
8619 OTOOL=$ac_ct_OTOOL
8620 fi
8621else
8622 OTOOL="$ac_cv_prog_OTOOL"
8623fi
f35db108 8624
c915a581
JJ
8625 if test -n "$ac_tool_prefix"; then
8626 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8627set dummy ${ac_tool_prefix}otool64; ac_word=$2
8628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8629$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8630if ${ac_cv_prog_OTOOL64+:} false; then :
c915a581
JJ
8631 $as_echo_n "(cached) " >&6
8632else
8633 if test -n "$OTOOL64"; then
8634 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8635else
8636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637for as_dir in $PATH
8638do
8639 IFS=$as_save_IFS
8640 test -z "$as_dir" && as_dir=.
8641 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8643 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8645 break 2
f35db108 8646 fi
c915a581
JJ
8647done
8648 done
8649IFS=$as_save_IFS
f35db108 8650
c915a581
JJ
8651fi
8652fi
8653OTOOL64=$ac_cv_prog_OTOOL64
8654if test -n "$OTOOL64"; then
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8656$as_echo "$OTOOL64" >&6; }
8657else
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8659$as_echo "no" >&6; }
8660fi
f35db108 8661
f35db108 8662
c915a581
JJ
8663fi
8664if test -z "$ac_cv_prog_OTOOL64"; then
8665 ac_ct_OTOOL64=$OTOOL64
8666 # Extract the first word of "otool64", so it can be a program name with args.
8667set dummy otool64; ac_word=$2
8668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8670if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
c915a581
JJ
8671 $as_echo_n "(cached) " >&6
8672else
8673 if test -n "$ac_ct_OTOOL64"; then
8674 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8675else
8676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677for as_dir in $PATH
8678do
8679 IFS=$as_save_IFS
8680 test -z "$as_dir" && as_dir=.
8681 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8683 ac_cv_prog_ac_ct_OTOOL64="otool64"
8684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8685 break 2
8686 fi
8687done
8688 done
8689IFS=$as_save_IFS
f35db108 8690
c915a581
JJ
8691fi
8692fi
8693ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8694if test -n "$ac_ct_OTOOL64"; then
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8696$as_echo "$ac_ct_OTOOL64" >&6; }
8697else
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8699$as_echo "no" >&6; }
8700fi
f35db108 8701
c915a581
JJ
8702 if test "x$ac_ct_OTOOL64" = x; then
8703 OTOOL64=":"
8704 else
8705 case $cross_compiling:$ac_tool_warned in
8706yes:)
8707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8709ac_tool_warned=yes ;;
8710esac
8711 OTOOL64=$ac_ct_OTOOL64
8712 fi
8713else
8714 OTOOL64="$ac_cv_prog_OTOOL64"
8715fi
f35db108 8716
f35db108 8717
f35db108 8718
f35db108 8719
f35db108 8720
f35db108 8721
f35db108 8722
f35db108 8723
f35db108 8724
f35db108 8725
f35db108 8726
f35db108 8727
f35db108 8728
f35db108 8729
f35db108 8730
f35db108 8731
f35db108 8732
f35db108 8733
f35db108 8734
f35db108 8735
f35db108 8736
f35db108 8737
f35db108 8738
f35db108 8739
f35db108 8740
c915a581
JJ
8741
8742
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8744$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 8745if ${lt_cv_apple_cc_single_mod+:} false; then :
c915a581
JJ
8746 $as_echo_n "(cached) " >&6
8747else
8748 lt_cv_apple_cc_single_mod=no
8749 if test -z "${LT_MULTI_MODULE}"; then
8750 # By default we will add the -single_module flag. You can override
8751 # by either setting the environment variable LT_MULTI_MODULE
8752 # non-empty at configure time, or by adding -multi_module to the
8753 # link flags.
8754 rm -rf libconftest.dylib*
8755 echo "int foo(void){return 1;}" > conftest.c
8756 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8757-dynamiclib -Wl,-single_module conftest.c" >&5
8758 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8759 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8760 _lt_result=$?
8761 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8762 lt_cv_apple_cc_single_mod=yes
f35db108 8763 else
c915a581 8764 cat conftest.err >&5
f35db108 8765 fi
c915a581
JJ
8766 rm -rf libconftest.dylib*
8767 rm -f conftest.*
f35db108 8768 fi
c915a581
JJ
8769fi
8770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8771$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8773$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 8774if ${lt_cv_ld_exported_symbols_list+:} false; then :
c915a581
JJ
8775 $as_echo_n "(cached) " >&6
8776else
8777 lt_cv_ld_exported_symbols_list=no
8778 save_LDFLAGS=$LDFLAGS
8779 echo "_main" > conftest.sym
8780 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108
WM
8782/* end confdefs.h. */
8783
8784int
8785main ()
8786{
8787
8788 ;
8789 return 0;
8790}
8791_ACEOF
8792if ac_fn_c_try_link "$LINENO"; then :
c915a581
JJ
8793 lt_cv_ld_exported_symbols_list=yes
8794else
8795 lt_cv_ld_exported_symbols_list=no
f35db108
WM
8796fi
8797rm -f core conftest.err conftest.$ac_objext \
8798 conftest$ac_exeext conftest.$ac_ext
c915a581 8799 LDFLAGS="$save_LDFLAGS"
f35db108 8800
c915a581
JJ
8801fi
8802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8803$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8805$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 8806if ${lt_cv_ld_force_load+:} false; then :
c915a581
JJ
8807 $as_echo_n "(cached) " >&6
8808else
8809 lt_cv_ld_force_load=no
8810 cat > conftest.c << _LT_EOF
8811int forced_loaded() { return 2;}
8812_LT_EOF
8813 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8814 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8815 echo "$AR cru libconftest.a conftest.o" >&5
8816 $AR cru libconftest.a conftest.o 2>&5
8817 cat > conftest.c << _LT_EOF
8818int main() { return 0;}
8819_LT_EOF
8820 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8821 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8822 _lt_result=$?
8823 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8824 lt_cv_ld_force_load=yes
f35db108 8825 else
c915a581
JJ
8826 cat conftest.err >&5
8827 fi
8828 rm -f conftest.err libconftest.a conftest conftest.c
8829 rm -rf conftest.dSYM
f35db108 8830
c915a581
JJ
8831fi
8832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8833$as_echo "$lt_cv_ld_force_load" >&6; }
8834 case $host_os in
8835 rhapsody* | darwin1.[012])
8836 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8837 darwin1.*)
8838 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8839 darwin*) # darwin 5.x on
8840 # if running on 10.5 or later, the deployment target defaults
8841 # to the OS version, if on x86, and 10.4, the deployment
8842 # target defaults to 10.4. Don't you love it?
8843 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8844 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8845 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 8846 10.[012][,.]*)
c915a581
JJ
8847 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8848 10.*)
8849 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8850 esac
8851 ;;
8852 esac
8853 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8854 _lt_dar_single_mod='$single_module'
8855 fi
8856 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8857 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8858 else
8859 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8860 fi
8861 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8862 _lt_dsymutil='~$DSYMUTIL $lib || :'
8863 else
8864 _lt_dsymutil=
8865 fi
8866 ;;
8867 esac
f35db108 8868
c915a581
JJ
8869for ac_header in dlfcn.h
8870do :
8871 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8872"
22e05272 8873if test "x$ac_cv_header_dlfcn_h" = xyes; then :
c915a581
JJ
8874 cat >>confdefs.h <<_ACEOF
8875#define HAVE_DLFCN_H 1
f35db108 8876_ACEOF
f35db108 8877
f35db108 8878fi
f35db108 8879
c915a581 8880done
f35db108 8881
f35db108 8882
f35db108 8883
f35db108 8884
f35db108
WM
8885
8886
c915a581 8887# Set options
f35db108 8888
f35db108 8889
f35db108 8890
f35db108 8891
c915a581 8892 enable_win32_dll=no
f35db108 8893
f35db108 8894
c915a581
JJ
8895 # Check whether --enable-shared was given.
8896if test "${enable_shared+set}" = set; then :
8897 enableval=$enable_shared; p=${PACKAGE-default}
8898 case $enableval in
8899 yes) enable_shared=yes ;;
8900 no) enable_shared=no ;;
8901 *)
8902 enable_shared=no
8903 # Look at the argument we got. We use all the common list separators.
8904 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8905 for pkg in $enableval; do
8906 IFS="$lt_save_ifs"
8907 if test "X$pkg" = "X$p"; then
8908 enable_shared=yes
8909 fi
8910 done
8911 IFS="$lt_save_ifs"
f35db108 8912 ;;
c915a581
JJ
8913 esac
8914else
8915 enable_shared=yes
8916fi
f35db108 8917
f35db108 8918
f35db108 8919
f35db108 8920
f35db108 8921
f35db108 8922
f35db108 8923
c915a581
JJ
8924
8925
8926 # Check whether --enable-static was given.
8927if test "${enable_static+set}" = set; then :
8928 enableval=$enable_static; p=${PACKAGE-default}
8929 case $enableval in
8930 yes) enable_static=yes ;;
8931 no) enable_static=no ;;
8932 *)
8933 enable_static=no
8934 # Look at the argument we got. We use all the common list separators.
8935 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8936 for pkg in $enableval; do
8937 IFS="$lt_save_ifs"
8938 if test "X$pkg" = "X$p"; then
8939 enable_static=yes
8940 fi
8941 done
8942 IFS="$lt_save_ifs"
8943 ;;
8944 esac
f35db108 8945else
c915a581 8946 enable_static=yes
f35db108
WM
8947fi
8948
f35db108 8949
f35db108 8950
f35db108 8951
a2479b3d 8952
f35db108 8953
f35db108 8954
f35db108 8955
f35db108 8956
f35db108 8957
c915a581
JJ
8958# Check whether --with-pic was given.
8959if test "${with_pic+set}" = set; then :
8960 withval=$with_pic; pic_mode="$withval"
8961else
8962 pic_mode=default
8963fi
f35db108 8964
f35db108 8965
c915a581 8966test -z "$pic_mode" && pic_mode=default
f35db108 8967
f35db108 8968
f35db108 8969
f35db108 8970
f35db108 8971
f35db108 8972
c915a581
JJ
8973
8974 # Check whether --enable-fast-install was given.
8975if test "${enable_fast_install+set}" = set; then :
8976 enableval=$enable_fast_install; p=${PACKAGE-default}
8977 case $enableval in
8978 yes) enable_fast_install=yes ;;
8979 no) enable_fast_install=no ;;
8980 *)
8981 enable_fast_install=no
8982 # Look at the argument we got. We use all the common list separators.
8983 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8984 for pkg in $enableval; do
8985 IFS="$lt_save_ifs"
8986 if test "X$pkg" = "X$p"; then
8987 enable_fast_install=yes
8988 fi
8989 done
8990 IFS="$lt_save_ifs"
f35db108 8991 ;;
c915a581
JJ
8992 esac
8993else
8994 enable_fast_install=yes
8995fi
f35db108
WM
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
c915a581
JJ
9007# This can be used to rebuild libtool when needed
9008LIBTOOL_DEPS="$ltmain"
f35db108 9009
c915a581
JJ
9010# Always use our own libtool.
9011LIBTOOL='$(SHELL) $(top_builddir)/libtool'
f35db108
WM
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
c915a581 9038test -z "$LN_S" && LN_S="ln -s"
f35db108
WM
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
c915a581
JJ
9053if test -n "${ZSH_VERSION+set}" ; then
9054 setopt NO_GLOB_SUBST
9055fi
f35db108 9056
c915a581
JJ
9057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9058$as_echo_n "checking for objdir... " >&6; }
22e05272 9059if ${lt_cv_objdir+:} false; then :
c915a581
JJ
9060 $as_echo_n "(cached) " >&6
9061else
9062 rm -f .libs 2>/dev/null
9063mkdir .libs 2>/dev/null
9064if test -d .libs; then
9065 lt_cv_objdir=.libs
9066else
9067 # MS-DOS does not allow filenames that begin with a dot.
9068 lt_cv_objdir=_libs
9069fi
9070rmdir .libs 2>/dev/null
9071fi
9072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9073$as_echo "$lt_cv_objdir" >&6; }
9074objdir=$lt_cv_objdir
f35db108
WM
9075
9076
9077
9078
9079
c915a581
JJ
9080cat >>confdefs.h <<_ACEOF
9081#define LT_OBJDIR "$lt_cv_objdir/"
9082_ACEOF
f35db108
WM
9083
9084
9085
9086
c915a581
JJ
9087case $host_os in
9088aix3*)
9089 # AIX sometimes has problems with the GCC collect2 program. For some
9090 # reason, if we set the COLLECT_NAMES environment variable, the problems
9091 # vanish in a puff of smoke.
9092 if test "X${COLLECT_NAMES+set}" != Xset; then
9093 COLLECT_NAMES=
9094 export COLLECT_NAMES
9095 fi
9096 ;;
9097esac
f35db108 9098
c915a581
JJ
9099# Global variables:
9100ofile=libtool
9101can_build_shared=yes
f35db108 9102
c915a581
JJ
9103# All known linkers require a `.a' archive for static linking (except MSVC,
9104# which needs '.lib').
9105libext=a
f35db108 9106
c915a581 9107with_gnu_ld="$lt_cv_prog_gnu_ld"
f35db108 9108
c915a581
JJ
9109old_CC="$CC"
9110old_CFLAGS="$CFLAGS"
f35db108 9111
c915a581
JJ
9112# Set sane defaults for various variables
9113test -z "$CC" && CC=cc
9114test -z "$LTCC" && LTCC=$CC
9115test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9116test -z "$LD" && LD=ld
9117test -z "$ac_objext" && ac_objext=o
f35db108 9118
c915a581
JJ
9119for cc_temp in $compiler""; do
9120 case $cc_temp in
9121 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9122 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9123 \-*) ;;
9124 *) break;;
9125 esac
9126done
9127cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
f35db108
WM
9128
9129
c915a581
JJ
9130# Only perform the check for file, if the check method requires it
9131test -z "$MAGIC_CMD" && MAGIC_CMD=file
9132case $deplibs_check_method in
9133file_magic*)
9134 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9136$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 9137if ${lt_cv_path_MAGIC_CMD+:} false; then :
c915a581
JJ
9138 $as_echo_n "(cached) " >&6
9139else
9140 case $MAGIC_CMD in
9141[\\/*] | ?:[\\/]*)
9142 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9143 ;;
9144*)
9145 lt_save_MAGIC_CMD="$MAGIC_CMD"
9146 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9147 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9148 for ac_dir in $ac_dummy; do
9149 IFS="$lt_save_ifs"
9150 test -z "$ac_dir" && ac_dir=.
9151 if test -f $ac_dir/${ac_tool_prefix}file; then
9152 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9153 if test -n "$file_magic_test_file"; then
9154 case $deplibs_check_method in
9155 "file_magic "*)
9156 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9158 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9159 $EGREP "$file_magic_regex" > /dev/null; then
9160 :
9161 else
9162 cat <<_LT_EOF 1>&2
f35db108 9163
c915a581
JJ
9164*** Warning: the command libtool uses to detect shared libraries,
9165*** $file_magic_cmd, produces output that libtool cannot recognize.
9166*** The result is that libtool may fail to recognize shared libraries
9167*** as such. This will affect the creation of libtool libraries that
9168*** depend on shared libraries, but programs linked with such libtool
9169*** libraries will work regardless of this problem. Nevertheless, you
9170*** may want to report the problem to your system manager and/or to
9171*** bug-libtool@gnu.org
f35db108 9172
c915a581
JJ
9173_LT_EOF
9174 fi ;;
9175 esac
9176 fi
9177 break
9178 fi
9179 done
9180 IFS="$lt_save_ifs"
9181 MAGIC_CMD="$lt_save_MAGIC_CMD"
9182 ;;
9183esac
9184fi
f35db108 9185
c915a581
JJ
9186MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9187if test -n "$MAGIC_CMD"; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9189$as_echo "$MAGIC_CMD" >&6; }
9190else
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192$as_echo "no" >&6; }
9193fi
f35db108
WM
9194
9195
9196
9197
9198
c915a581
JJ
9199if test -z "$lt_cv_path_MAGIC_CMD"; then
9200 if test -n "$ac_tool_prefix"; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9202$as_echo_n "checking for file... " >&6; }
22e05272 9203if ${lt_cv_path_MAGIC_CMD+:} false; then :
c915a581
JJ
9204 $as_echo_n "(cached) " >&6
9205else
9206 case $MAGIC_CMD in
9207[\\/*] | ?:[\\/]*)
9208 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9209 ;;
9210*)
9211 lt_save_MAGIC_CMD="$MAGIC_CMD"
9212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9213 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9214 for ac_dir in $ac_dummy; do
9215 IFS="$lt_save_ifs"
9216 test -z "$ac_dir" && ac_dir=.
9217 if test -f $ac_dir/file; then
9218 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9219 if test -n "$file_magic_test_file"; then
9220 case $deplibs_check_method in
9221 "file_magic "*)
9222 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9223 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9224 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9225 $EGREP "$file_magic_regex" > /dev/null; then
9226 :
9227 else
9228 cat <<_LT_EOF 1>&2
f35db108 9229
c915a581
JJ
9230*** Warning: the command libtool uses to detect shared libraries,
9231*** $file_magic_cmd, produces output that libtool cannot recognize.
9232*** The result is that libtool may fail to recognize shared libraries
9233*** as such. This will affect the creation of libtool libraries that
9234*** depend on shared libraries, but programs linked with such libtool
9235*** libraries will work regardless of this problem. Nevertheless, you
9236*** may want to report the problem to your system manager and/or to
9237*** bug-libtool@gnu.org
f35db108 9238
c915a581
JJ
9239_LT_EOF
9240 fi ;;
9241 esac
9242 fi
9243 break
9244 fi
9245 done
9246 IFS="$lt_save_ifs"
9247 MAGIC_CMD="$lt_save_MAGIC_CMD"
9248 ;;
9249esac
9250fi
f35db108 9251
c915a581
JJ
9252MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9253if test -n "$MAGIC_CMD"; then
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9255$as_echo "$MAGIC_CMD" >&6; }
9256else
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9258$as_echo "no" >&6; }
9259fi
f35db108
WM
9260
9261
c915a581
JJ
9262 else
9263 MAGIC_CMD=:
9264 fi
9265fi
f35db108 9266
c915a581
JJ
9267 fi
9268 ;;
9269esac
f35db108 9270
c915a581 9271# Use C for the default configuration in the libtool script
f35db108 9272
c915a581
JJ
9273lt_save_CC="$CC"
9274ac_ext=c
9275ac_cpp='$CPP $CPPFLAGS'
9276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9278ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108
WM
9279
9280
c915a581
JJ
9281# Source file extension for C test sources.
9282ac_ext=c
f35db108 9283
c915a581
JJ
9284# Object file extension for compiled C test sources.
9285objext=o
9286objext=$objext
f35db108 9287
c915a581
JJ
9288# Code to be used in simple compile tests
9289lt_simple_compile_test_code="int some_variable = 0;"
f35db108 9290
c915a581
JJ
9291# Code to be used in simple link tests
9292lt_simple_link_test_code='int main(){return(0);}'
f35db108
WM
9293
9294
9295
9296
9297
9298
9299
c915a581
JJ
9300# If no C compiler was specified, use CC.
9301LTCC=${LTCC-"$CC"}
f35db108 9302
c915a581
JJ
9303# If no C compiler flags were specified, use CFLAGS.
9304LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
f35db108 9305
c915a581
JJ
9306# Allow CC to be a program name with arguments.
9307compiler=$CC
f35db108 9308
c915a581
JJ
9309# Save the default compiler, since it gets overwritten when the other
9310# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9311compiler_DEFAULT=$CC
f35db108 9312
c915a581
JJ
9313# save warnings/boilerplate of simple test code
9314ac_outfile=conftest.$ac_objext
9315echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9316eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9317_lt_compiler_boilerplate=`cat conftest.err`
9318$RM conftest*
f35db108 9319
c915a581
JJ
9320ac_outfile=conftest.$ac_objext
9321echo "$lt_simple_link_test_code" >conftest.$ac_ext
9322eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9323_lt_linker_boilerplate=`cat conftest.err`
9324$RM -r conftest*
f35db108
WM
9325
9326
c915a581
JJ
9327## CAVEAT EMPTOR:
9328## There is no encapsulation within the following macros, do not change
9329## the running order or otherwise move them around unless you know exactly
9330## what you are doing...
9331if test -n "$compiler"; then
f35db108 9332
c915a581 9333lt_prog_compiler_no_builtin_flag=
f35db108 9334
c915a581
JJ
9335if test "$GCC" = yes; then
9336 case $cc_basename in
9337 nvcc*)
9338 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9339 *)
9340 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9341 esac
f35db108 9342
c915a581
JJ
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9344$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 9345if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
c915a581
JJ
9346 $as_echo_n "(cached) " >&6
9347else
9348 lt_cv_prog_compiler_rtti_exceptions=no
9349 ac_outfile=conftest.$ac_objext
9350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9351 lt_compiler_flag="-fno-rtti -fno-exceptions"
9352 # Insert the option either (1) after the last *FLAGS variable, or
9353 # (2) before a word containing "conftest.", or (3) at the end.
9354 # Note that $ac_compile itself does not contain backslashes and begins
9355 # with a dollar sign (not a hyphen), so the echo should work correctly.
9356 # The option is referenced via a variable to avoid confusing sed.
9357 lt_compile=`echo "$ac_compile" | $SED \
9358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9360 -e 's:$: $lt_compiler_flag:'`
9361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9362 (eval "$lt_compile" 2>conftest.err)
9363 ac_status=$?
9364 cat conftest.err >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 if (exit $ac_status) && test -s "$ac_outfile"; then
9367 # The compiler can only warn and ignore the option if not recognized
9368 # So say no if there are warnings other than the usual output.
9369 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9370 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9371 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9372 lt_cv_prog_compiler_rtti_exceptions=yes
9373 fi
9374 fi
9375 $RM conftest*
f35db108 9376
c915a581
JJ
9377fi
9378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9379$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
f35db108 9380
c915a581
JJ
9381if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9382 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9383else
9384 :
9385fi
f35db108 9386
c915a581 9387fi
f35db108
WM
9388
9389
9390
9391
9392
9393
c915a581
JJ
9394 lt_prog_compiler_wl=
9395lt_prog_compiler_pic=
9396lt_prog_compiler_static=
f35db108 9397
c915a581
JJ
9398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9399$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
f35db108 9400
c915a581
JJ
9401 if test "$GCC" = yes; then
9402 lt_prog_compiler_wl='-Wl,'
9403 lt_prog_compiler_static='-static'
f35db108 9404
c915a581
JJ
9405 case $host_os in
9406 aix*)
9407 # All AIX code is PIC.
9408 if test "$host_cpu" = ia64; then
9409 # AIX 5 now supports IA64 processor
9410 lt_prog_compiler_static='-Bstatic'
9411 fi
9412 lt_prog_compiler_pic='-fPIC'
9413 ;;
f35db108 9414
c915a581
JJ
9415 amigaos*)
9416 case $host_cpu in
9417 powerpc)
9418 # see comment about AmigaOS4 .so support
9419 lt_prog_compiler_pic='-fPIC'
9420 ;;
9421 m68k)
9422 # FIXME: we need at least 68020 code to build shared libraries, but
9423 # adding the `-m68020' flag to GCC prevents building anything better,
9424 # like `-m68040'.
9425 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9426 ;;
9427 esac
9428 ;;
f35db108 9429
c915a581
JJ
9430 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9431 # PIC is the default for these OSes.
9432 ;;
f35db108 9433
c915a581
JJ
9434 mingw* | cygwin* | pw32* | os2* | cegcc*)
9435 # This hack is so that the source file can tell whether it is being
9436 # built for inclusion in a dll (and should export symbols for example).
9437 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9438 # (--disable-auto-import) libraries
9439 lt_prog_compiler_pic='-DDLL_EXPORT'
9440 ;;
f35db108 9441
c915a581
JJ
9442 darwin* | rhapsody*)
9443 # PIC is the default on this platform
9444 # Common symbols not allowed in MH_DYLIB files
9445 lt_prog_compiler_pic='-fno-common'
9446 ;;
f35db108 9447
c915a581
JJ
9448 haiku*)
9449 # PIC is the default for Haiku.
9450 # The "-static" flag exists, but is broken.
9451 lt_prog_compiler_static=
9452 ;;
f35db108 9453
c915a581
JJ
9454 hpux*)
9455 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9456 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9457 # sets the default TLS model and affects inlining.
9458 case $host_cpu in
9459 hppa*64*)
9460 # +Z the default
9461 ;;
9462 *)
9463 lt_prog_compiler_pic='-fPIC'
9464 ;;
9465 esac
9466 ;;
f35db108 9467
c915a581
JJ
9468 interix[3-9]*)
9469 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9470 # Instead, we relocate shared libraries at runtime.
9471 ;;
a2479b3d 9472
c915a581
JJ
9473 msdosdjgpp*)
9474 # Just because we use GCC doesn't mean we suddenly get shared libraries
9475 # on systems that don't support them.
9476 lt_prog_compiler_can_build_shared=no
9477 enable_shared=no
9478 ;;
a2479b3d 9479
c915a581
JJ
9480 *nto* | *qnx*)
9481 # QNX uses GNU C++, but need to define -shared option too, otherwise
9482 # it will coredump.
9483 lt_prog_compiler_pic='-fPIC -shared'
9484 ;;
a2479b3d 9485
c915a581
JJ
9486 sysv4*MP*)
9487 if test -d /usr/nec; then
9488 lt_prog_compiler_pic=-Kconform_pic
9489 fi
9490 ;;
a2479b3d 9491
c915a581
JJ
9492 *)
9493 lt_prog_compiler_pic='-fPIC'
9494 ;;
9495 esac
a2479b3d 9496
c915a581
JJ
9497 case $cc_basename in
9498 nvcc*) # Cuda Compiler Driver 2.2
9499 lt_prog_compiler_wl='-Xlinker '
9500 lt_prog_compiler_pic='-Xcompiler -fPIC'
9501 ;;
9502 esac
9503 else
9504 # PORTME Check for flag to pass linker flags through the system compiler.
9505 case $host_os in
9506 aix*)
9507 lt_prog_compiler_wl='-Wl,'
9508 if test "$host_cpu" = ia64; then
9509 # AIX 5 now supports IA64 processor
9510 lt_prog_compiler_static='-Bstatic'
9511 else
9512 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9513 fi
9514 ;;
f35db108 9515
c915a581
JJ
9516 mingw* | cygwin* | pw32* | os2* | cegcc*)
9517 # This hack is so that the source file can tell whether it is being
9518 # built for inclusion in a dll (and should export symbols for example).
9519 lt_prog_compiler_pic='-DDLL_EXPORT'
9520 ;;
f35db108 9521
c915a581
JJ
9522 hpux9* | hpux10* | hpux11*)
9523 lt_prog_compiler_wl='-Wl,'
9524 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9525 # not for PA HP-UX.
9526 case $host_cpu in
9527 hppa*64*|ia64*)
9528 # +Z the default
9529 ;;
9530 *)
9531 lt_prog_compiler_pic='+Z'
9532 ;;
9533 esac
9534 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9535 lt_prog_compiler_static='${wl}-a ${wl}archive'
9536 ;;
f35db108 9537
c915a581
JJ
9538 irix5* | irix6* | nonstopux*)
9539 lt_prog_compiler_wl='-Wl,'
9540 # PIC (with -KPIC) is the default.
9541 lt_prog_compiler_static='-non_shared'
9542 ;;
f35db108 9543
c915a581
JJ
9544 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9545 case $cc_basename in
9546 # old Intel for x86_64 which still supported -KPIC.
9547 ecc*)
9548 lt_prog_compiler_wl='-Wl,'
9549 lt_prog_compiler_pic='-KPIC'
9550 lt_prog_compiler_static='-static'
9551 ;;
9552 # icc used to be incompatible with GCC.
9553 # ICC 10 doesn't accept -KPIC any more.
9554 icc* | ifort*)
9555 lt_prog_compiler_wl='-Wl,'
9556 lt_prog_compiler_pic='-fPIC'
9557 lt_prog_compiler_static='-static'
9558 ;;
9559 # Lahey Fortran 8.1.
9560 lf95*)
9561 lt_prog_compiler_wl='-Wl,'
9562 lt_prog_compiler_pic='--shared'
9563 lt_prog_compiler_static='--static'
9564 ;;
9565 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9566 # Portland Group compilers (*not* the Pentium gcc compiler,
9567 # which looks to be a dead project)
9568 lt_prog_compiler_wl='-Wl,'
9569 lt_prog_compiler_pic='-fpic'
9570 lt_prog_compiler_static='-Bstatic'
9571 ;;
9572 ccc*)
9573 lt_prog_compiler_wl='-Wl,'
9574 # All Alpha code is PIC.
9575 lt_prog_compiler_static='-non_shared'
9576 ;;
9577 xl* | bgxl* | bgf* | mpixl*)
9578 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9579 lt_prog_compiler_wl='-Wl,'
9580 lt_prog_compiler_pic='-qpic'
9581 lt_prog_compiler_static='-qstaticlink'
9582 ;;
9583 *)
9584 case `$CC -V 2>&1 | sed 5q` in
9585 *Sun\ F* | *Sun*Fortran*)
9586 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9587 lt_prog_compiler_pic='-KPIC'
9588 lt_prog_compiler_static='-Bstatic'
9589 lt_prog_compiler_wl=''
9590 ;;
9591 *Sun\ C*)
9592 # Sun C 5.9
9593 lt_prog_compiler_pic='-KPIC'
9594 lt_prog_compiler_static='-Bstatic'
9595 lt_prog_compiler_wl='-Wl,'
9596 ;;
9597 esac
9598 ;;
9599 esac
9600 ;;
f35db108 9601
c915a581
JJ
9602 newsos6)
9603 lt_prog_compiler_pic='-KPIC'
9604 lt_prog_compiler_static='-Bstatic'
9605 ;;
f35db108 9606
c915a581
JJ
9607 *nto* | *qnx*)
9608 # QNX uses GNU C++, but need to define -shared option too, otherwise
9609 # it will coredump.
9610 lt_prog_compiler_pic='-fPIC -shared'
9611 ;;
f35db108 9612
c915a581
JJ
9613 osf3* | osf4* | osf5*)
9614 lt_prog_compiler_wl='-Wl,'
9615 # All OSF/1 code is PIC.
9616 lt_prog_compiler_static='-non_shared'
9617 ;;
f35db108 9618
c915a581
JJ
9619 rdos*)
9620 lt_prog_compiler_static='-non_shared'
9621 ;;
f35db108 9622
c915a581
JJ
9623 solaris*)
9624 lt_prog_compiler_pic='-KPIC'
9625 lt_prog_compiler_static='-Bstatic'
9626 case $cc_basename in
9627 f77* | f90* | f95*)
9628 lt_prog_compiler_wl='-Qoption ld ';;
9629 *)
9630 lt_prog_compiler_wl='-Wl,';;
9631 esac
9632 ;;
f35db108 9633
c915a581
JJ
9634 sunos4*)
9635 lt_prog_compiler_wl='-Qoption ld '
9636 lt_prog_compiler_pic='-PIC'
9637 lt_prog_compiler_static='-Bstatic'
9638 ;;
f35db108 9639
c915a581
JJ
9640 sysv4 | sysv4.2uw2* | sysv4.3*)
9641 lt_prog_compiler_wl='-Wl,'
9642 lt_prog_compiler_pic='-KPIC'
9643 lt_prog_compiler_static='-Bstatic'
9644 ;;
9645
9646 sysv4*MP*)
9647 if test -d /usr/nec ;then
9648 lt_prog_compiler_pic='-Kconform_pic'
9649 lt_prog_compiler_static='-Bstatic'
f35db108
WM
9650 fi
9651 ;;
c915a581
JJ
9652
9653 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9654 lt_prog_compiler_wl='-Wl,'
9655 lt_prog_compiler_pic='-KPIC'
9656 lt_prog_compiler_static='-Bstatic'
9657 ;;
9658
9659 unicos*)
9660 lt_prog_compiler_wl='-Wl,'
9661 lt_prog_compiler_can_build_shared=no
9662 ;;
9663
9664 uts4*)
9665 lt_prog_compiler_pic='-pic'
9666 lt_prog_compiler_static='-Bstatic'
9667 ;;
9668
9669 *)
9670 lt_prog_compiler_can_build_shared=no
9671 ;;
f35db108 9672 esac
f35db108 9673 fi
f35db108 9674
c915a581
JJ
9675case $host_os in
9676 # For platforms which do not support PIC, -DPIC is meaningless:
9677 *djgpp*)
9678 lt_prog_compiler_pic=
f35db108 9679 ;;
c915a581
JJ
9680 *)
9681 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
f35db108 9682 ;;
c915a581
JJ
9683esac
9684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9685$as_echo "$lt_prog_compiler_pic" >&6; }
f35db108 9686
f35db108 9687
f35db108 9688
f35db108 9689
f35db108 9690
f35db108 9691
c915a581
JJ
9692#
9693# Check to make sure the PIC flag actually works.
9694#
9695if test -n "$lt_prog_compiler_pic"; then
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9697$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 9698if ${lt_cv_prog_compiler_pic_works+:} false; then :
c915a581
JJ
9699 $as_echo_n "(cached) " >&6
9700else
9701 lt_cv_prog_compiler_pic_works=no
9702 ac_outfile=conftest.$ac_objext
9703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9704 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9705 # Insert the option either (1) after the last *FLAGS variable, or
9706 # (2) before a word containing "conftest.", or (3) at the end.
9707 # Note that $ac_compile itself does not contain backslashes and begins
9708 # with a dollar sign (not a hyphen), so the echo should work correctly.
9709 # The option is referenced via a variable to avoid confusing sed.
9710 lt_compile=`echo "$ac_compile" | $SED \
9711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9713 -e 's:$: $lt_compiler_flag:'`
9714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9715 (eval "$lt_compile" 2>conftest.err)
9716 ac_status=$?
9717 cat conftest.err >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 if (exit $ac_status) && test -s "$ac_outfile"; then
9720 # The compiler can only warn and ignore the option if not recognized
9721 # So say no if there are warnings other than the usual output.
9722 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9725 lt_cv_prog_compiler_pic_works=yes
9726 fi
9727 fi
9728 $RM conftest*
f35db108 9729
c915a581
JJ
9730fi
9731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9732$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
f35db108 9733
c915a581
JJ
9734if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9735 case $lt_prog_compiler_pic in
9736 "" | " "*) ;;
9737 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9738 esac
9739else
9740 lt_prog_compiler_pic=
9741 lt_prog_compiler_can_build_shared=no
9742fi
f35db108 9743
c915a581 9744fi
f35db108 9745
f35db108 9746
f35db108 9747
f35db108 9748
f35db108 9749
f35db108 9750
c915a581
JJ
9751#
9752# Check to make sure the static flag actually works.
9753#
9754wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9756$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 9757if ${lt_cv_prog_compiler_static_works+:} false; then :
c915a581
JJ
9758 $as_echo_n "(cached) " >&6
9759else
9760 lt_cv_prog_compiler_static_works=no
9761 save_LDFLAGS="$LDFLAGS"
9762 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9763 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9764 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9765 # The linker can only warn and ignore the option if not recognized
9766 # So say no if there are warnings
9767 if test -s conftest.err; then
9768 # Append any errors to the config.log.
9769 cat conftest.err 1>&5
9770 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9772 if diff conftest.exp conftest.er2 >/dev/null; then
9773 lt_cv_prog_compiler_static_works=yes
9774 fi
9775 else
9776 lt_cv_prog_compiler_static_works=yes
9777 fi
9778 fi
9779 $RM -r conftest*
9780 LDFLAGS="$save_LDFLAGS"
f35db108 9781
c915a581
JJ
9782fi
9783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9784$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
f35db108 9785
c915a581
JJ
9786if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9787 :
9788else
9789 lt_prog_compiler_static=
9790fi
f35db108 9791
f35db108 9792
f35db108 9793
f35db108 9794
f35db108 9795
f35db108 9796
f35db108 9797
c915a581
JJ
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9799$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9800if ${lt_cv_prog_compiler_c_o+:} false; then :
c915a581
JJ
9801 $as_echo_n "(cached) " >&6
9802else
9803 lt_cv_prog_compiler_c_o=no
9804 $RM -r conftest 2>/dev/null
9805 mkdir conftest
9806 cd conftest
9807 mkdir out
9808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
f35db108 9809
c915a581
JJ
9810 lt_compiler_flag="-o out/conftest2.$ac_objext"
9811 # Insert the option either (1) after the last *FLAGS variable, or
9812 # (2) before a word containing "conftest.", or (3) at the end.
9813 # Note that $ac_compile itself does not contain backslashes and begins
9814 # with a dollar sign (not a hyphen), so the echo should work correctly.
9815 lt_compile=`echo "$ac_compile" | $SED \
9816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9818 -e 's:$: $lt_compiler_flag:'`
9819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9820 (eval "$lt_compile" 2>out/conftest.err)
9821 ac_status=$?
9822 cat out/conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9825 then
9826 # The compiler can only warn and ignore the option if not recognized
9827 # So say no if there are warnings
9828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9829 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9830 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9831 lt_cv_prog_compiler_c_o=yes
9832 fi
9833 fi
9834 chmod u+w . 2>&5
9835 $RM conftest*
9836 # SGI C++ compiler will create directory out/ii_files/ for
9837 # template instantiation
9838 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9839 $RM out/* && rmdir out
9840 cd ..
9841 $RM -r conftest
9842 $RM conftest*
f35db108 9843
c915a581
JJ
9844fi
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9846$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
f35db108 9847
f35db108 9848
f35db108 9849
f35db108 9850
f35db108 9851
f35db108 9852
c915a581
JJ
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9854$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9855if ${lt_cv_prog_compiler_c_o+:} false; then :
c915a581
JJ
9856 $as_echo_n "(cached) " >&6
9857else
9858 lt_cv_prog_compiler_c_o=no
9859 $RM -r conftest 2>/dev/null
9860 mkdir conftest
9861 cd conftest
9862 mkdir out
9863 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
f35db108 9864
c915a581
JJ
9865 lt_compiler_flag="-o out/conftest2.$ac_objext"
9866 # Insert the option either (1) after the last *FLAGS variable, or
9867 # (2) before a word containing "conftest.", or (3) at the end.
9868 # Note that $ac_compile itself does not contain backslashes and begins
9869 # with a dollar sign (not a hyphen), so the echo should work correctly.
9870 lt_compile=`echo "$ac_compile" | $SED \
9871 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9873 -e 's:$: $lt_compiler_flag:'`
9874 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9875 (eval "$lt_compile" 2>out/conftest.err)
9876 ac_status=$?
9877 cat out/conftest.err >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9880 then
9881 # The compiler can only warn and ignore the option if not recognized
9882 # So say no if there are warnings
9883 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9884 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9885 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9886 lt_cv_prog_compiler_c_o=yes
9887 fi
9888 fi
9889 chmod u+w . 2>&5
9890 $RM conftest*
9891 # SGI C++ compiler will create directory out/ii_files/ for
9892 # template instantiation
9893 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9894 $RM out/* && rmdir out
9895 cd ..
9896 $RM -r conftest
9897 $RM conftest*
f35db108 9898
c915a581
JJ
9899fi
9900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9901$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
f35db108 9902
f35db108 9903
f35db108 9904
f35db108 9905
c915a581
JJ
9906hard_links="nottested"
9907if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9908 # do not overwrite the value of need_locks provided by the user
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9910$as_echo_n "checking if we can lock with hard links... " >&6; }
9911 hard_links=yes
9912 $RM conftest*
9913 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9914 touch conftest.a
9915 ln conftest.a conftest.b 2>&5 || hard_links=no
9916 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9918$as_echo "$hard_links" >&6; }
9919 if test "$hard_links" = no; then
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9921$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9922 need_locks=warn
f35db108 9923 fi
c915a581
JJ
9924else
9925 need_locks=no
f35db108
WM
9926fi
9927
f35db108
WM
9928
9929
9930
9931
9932
c915a581
JJ
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9934$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
f35db108 9935
c915a581
JJ
9936 runpath_var=
9937 allow_undefined_flag=
9938 always_export_symbols=no
9939 archive_cmds=
9940 archive_expsym_cmds=
9941 compiler_needs_object=no
9942 enable_shared_with_static_runtimes=no
9943 export_dynamic_flag_spec=
9944 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9945 hardcode_automatic=no
9946 hardcode_direct=no
9947 hardcode_direct_absolute=no
9948 hardcode_libdir_flag_spec=
9949 hardcode_libdir_flag_spec_ld=
9950 hardcode_libdir_separator=
9951 hardcode_minus_L=no
9952 hardcode_shlibpath_var=unsupported
9953 inherit_rpath=no
9954 link_all_deplibs=unknown
9955 module_cmds=
9956 module_expsym_cmds=
9957 old_archive_from_new_cmds=
9958 old_archive_from_expsyms_cmds=
9959 thread_safe_flag_spec=
9960 whole_archive_flag_spec=
9961 # include_expsyms should be a list of space-separated symbols to be *always*
9962 # included in the symbol list
9963 include_expsyms=
9964 # exclude_expsyms can be an extended regexp of symbols to exclude
9965 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9966 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9967 # as well as any symbol that contains `d'.
9968 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9969 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9970 # platforms (ab)use it in PIC code, but their linkers get confused if
9971 # the symbol is explicitly referenced. Since portable code cannot
9972 # rely on this symbol name, it's probably fine to never include it in
9973 # preloaded symbol tables.
9974 # Exclude shared library initialization/finalization symbols.
9975 extract_expsyms_cmds=
f35db108 9976
c915a581
JJ
9977 case $host_os in
9978 cygwin* | mingw* | pw32* | cegcc*)
9979 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9980 # When not using gcc, we currently assume that we are using
9981 # Microsoft Visual C++.
9982 if test "$GCC" != yes; then
9983 with_gnu_ld=no
9984 fi
9985 ;;
9986 interix*)
9987 # we just hope/assume this is gcc and not c89 (= MSVC++)
9988 with_gnu_ld=yes
9989 ;;
9990 openbsd*)
9991 with_gnu_ld=no
9992 ;;
9993 esac
f35db108 9994
c915a581 9995 ld_shlibs=yes
f35db108 9996
c915a581
JJ
9997 # On some targets, GNU ld is compatible enough with the native linker
9998 # that we're better off using the native interface for both.
9999 lt_use_gnu_ld_interface=no
10000 if test "$with_gnu_ld" = yes; then
10001 case $host_os in
10002 aix*)
10003 # The AIX port of GNU ld has always aspired to compatibility
10004 # with the native linker. However, as the warning in the GNU ld
10005 # block says, versions before 2.19.5* couldn't really create working
10006 # shared libraries, regardless of the interface used.
10007 case `$LD -v 2>&1` in
10008 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10009 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10010 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10011 *)
10012 lt_use_gnu_ld_interface=yes
10013 ;;
10014 esac
10015 ;;
10016 *)
10017 lt_use_gnu_ld_interface=yes
10018 ;;
10019 esac
10020 fi
f35db108 10021
c915a581
JJ
10022 if test "$lt_use_gnu_ld_interface" = yes; then
10023 # If archive_cmds runs LD, not CC, wlarc should be empty
10024 wlarc='${wl}'
f35db108 10025
c915a581
JJ
10026 # Set some defaults for GNU ld with shared library support. These
10027 # are reset later if shared libraries are not supported. Putting them
10028 # here allows them to be overridden if necessary.
10029 runpath_var=LD_RUN_PATH
10030 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10031 export_dynamic_flag_spec='${wl}--export-dynamic'
10032 # ancient GNU ld didn't support --whole-archive et. al.
10033 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10034 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10035 else
10036 whole_archive_flag_spec=
10037 fi
10038 supports_anon_versioning=no
10039 case `$LD -v 2>&1` in
10040 *GNU\ gold*) supports_anon_versioning=yes ;;
10041 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10042 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10043 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10044 *\ 2.11.*) ;; # other 2.11 versions
10045 *) supports_anon_versioning=yes ;;
10046 esac
f35db108 10047
c915a581
JJ
10048 # See if GNU ld supports shared libraries.
10049 case $host_os in
10050 aix[3-9]*)
10051 # On AIX/PPC, the GNU linker is very broken
10052 if test "$host_cpu" != ia64; then
10053 ld_shlibs=no
10054 cat <<_LT_EOF 1>&2
f35db108 10055
c915a581
JJ
10056*** Warning: the GNU linker, at least up to release 2.19, is reported
10057*** to be unable to reliably create shared libraries on AIX.
10058*** Therefore, libtool is disabling shared libraries support. If you
10059*** really care for shared libraries, you may want to install binutils
10060*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10061*** You will then need to restart the configuration process.
f35db108 10062
c915a581
JJ
10063_LT_EOF
10064 fi
10065 ;;
f35db108 10066
c915a581
JJ
10067 amigaos*)
10068 case $host_cpu in
10069 powerpc)
10070 # see comment about AmigaOS4 .so support
10071 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10072 archive_expsym_cmds=''
10073 ;;
10074 m68k)
10075 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)'
10076 hardcode_libdir_flag_spec='-L$libdir'
10077 hardcode_minus_L=yes
10078 ;;
10079 esac
10080 ;;
f35db108 10081
c915a581
JJ
10082 beos*)
10083 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10084 allow_undefined_flag=unsupported
10085 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10086 # support --undefined. This deserves some investigation. FIXME
10087 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10088 else
10089 ld_shlibs=no
10090 fi
10091 ;;
f35db108 10092
c915a581
JJ
10093 cygwin* | mingw* | pw32* | cegcc*)
10094 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10095 # as there is no search path for DLLs.
10096 hardcode_libdir_flag_spec='-L$libdir'
10097 export_dynamic_flag_spec='${wl}--export-all-symbols'
10098 allow_undefined_flag=unsupported
10099 always_export_symbols=no
10100 enable_shared_with_static_runtimes=yes
10101 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
f35db108 10102
c915a581
JJ
10103 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10105 # If the export-symbols file already is a .def file (1st line
10106 # is EXPORTS), use it as is; otherwise, prepend...
10107 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10108 cp $export_symbols $output_objdir/$soname.def;
10109 else
10110 echo EXPORTS > $output_objdir/$soname.def;
10111 cat $export_symbols >> $output_objdir/$soname.def;
10112 fi~
10113 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10114 else
10115 ld_shlibs=no
10116 fi
10117 ;;
f35db108 10118
c915a581
JJ
10119 haiku*)
10120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10121 link_all_deplibs=yes
10122 ;;
f35db108 10123
c915a581
JJ
10124 interix[3-9]*)
10125 hardcode_direct=no
10126 hardcode_shlibpath_var=no
10127 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10128 export_dynamic_flag_spec='${wl}-E'
10129 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10130 # Instead, shared libraries are loaded at an image base (0x10000000 by
10131 # default) and relocated if they conflict, which is a slow very memory
10132 # consuming and fragmenting process. To avoid this, we pick a random,
10133 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10134 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10135 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10136 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'
10137 ;;
f35db108 10138
e9085da5 10139 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
c915a581
JJ
10140 tmp_diet=no
10141 if test "$host_os" = linux-dietlibc; then
10142 case $cc_basename in
10143 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10144 esac
10145 fi
10146 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10147 && test "$tmp_diet" = no
10148 then
a699d672 10149 tmp_addflag=' $pic_flag'
c915a581
JJ
10150 tmp_sharedflag='-shared'
10151 case $cc_basename,$host_cpu in
10152 pgcc*) # Portland Group C compiler
10153 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'
10154 tmp_addflag=' $pic_flag'
10155 ;;
10156 pgf77* | pgf90* | pgf95* | pgfortran*)
10157 # Portland Group f77 and f90 compilers
10158 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'
10159 tmp_addflag=' $pic_flag -Mnomain' ;;
10160 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10161 tmp_addflag=' -i_dynamic' ;;
10162 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10163 tmp_addflag=' -i_dynamic -nofor_main' ;;
10164 ifc* | ifort*) # Intel Fortran compiler
10165 tmp_addflag=' -nofor_main' ;;
10166 lf95*) # Lahey Fortran 8.1
10167 whole_archive_flag_spec=
10168 tmp_sharedflag='--shared' ;;
10169 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10170 tmp_sharedflag='-qmkshrobj'
10171 tmp_addflag= ;;
10172 nvcc*) # Cuda Compiler Driver 2.2
10173 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'
10174 compiler_needs_object=yes
10175 ;;
10176 esac
10177 case `$CC -V 2>&1 | sed 5q` in
10178 *Sun\ C*) # Sun C 5.9
10179 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'
10180 compiler_needs_object=yes
10181 tmp_sharedflag='-G' ;;
10182 *Sun\ F*) # Sun Fortran 8.3
10183 tmp_sharedflag='-G' ;;
10184 esac
10185 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
f35db108 10186
c915a581
JJ
10187 if test "x$supports_anon_versioning" = xyes; then
10188 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10190 echo "local: *; };" >> $output_objdir/$libname.ver~
10191 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10192 fi
f35db108 10193
c915a581
JJ
10194 case $cc_basename in
10195 xlf* | bgf* | bgxlf* | mpixlf*)
10196 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10197 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10198 hardcode_libdir_flag_spec=
10199 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10200 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10201 if test "x$supports_anon_versioning" = xyes; then
10202 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10203 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10204 echo "local: *; };" >> $output_objdir/$libname.ver~
10205 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10206 fi
10207 ;;
10208 esac
10209 else
10210 ld_shlibs=no
10211 fi
10212 ;;
f35db108 10213
c915a581
JJ
10214 netbsd*)
10215 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10216 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10217 wlarc=
10218 else
10219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10220 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10221 fi
10222 ;;
f35db108 10223
c915a581
JJ
10224 solaris*)
10225 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10226 ld_shlibs=no
10227 cat <<_LT_EOF 1>&2
f35db108 10228
c915a581
JJ
10229*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10230*** create shared libraries on Solaris systems. Therefore, libtool
10231*** is disabling shared libraries support. We urge you to upgrade GNU
10232*** binutils to release 2.9.1 or newer. Another option is to modify
10233*** your PATH or compiler configuration so that the native linker is
10234*** used, and then restart.
f35db108 10235
c915a581
JJ
10236_LT_EOF
10237 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10239 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10240 else
10241 ld_shlibs=no
10242 fi
10243 ;;
f35db108 10244
c915a581
JJ
10245 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10246 case `$LD -v 2>&1` in
10247 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10248 ld_shlibs=no
10249 cat <<_LT_EOF 1>&2
f35db108 10250
c915a581
JJ
10251*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10252*** reliably create shared libraries on SCO systems. Therefore, libtool
10253*** is disabling shared libraries support. We urge you to upgrade GNU
10254*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10255*** your PATH or compiler configuration so that the native linker is
10256*** used, and then restart.
f35db108 10257
c915a581
JJ
10258_LT_EOF
10259 ;;
10260 *)
10261 # For security reasons, it is highly recommended that you always
10262 # use absolute paths for naming shared libraries, and exclude the
10263 # DT_RUNPATH tag from executables and libraries. But doing so
10264 # requires that you compile everything twice, which is a pain.
10265 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10269 else
10270 ld_shlibs=no
10271 fi
10272 ;;
10273 esac
10274 ;;
f35db108 10275
c915a581
JJ
10276 sunos4*)
10277 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10278 wlarc=
10279 hardcode_direct=yes
10280 hardcode_shlibpath_var=no
10281 ;;
f35db108 10282
c915a581
JJ
10283 *)
10284 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10287 else
10288 ld_shlibs=no
10289 fi
10290 ;;
10291 esac
f35db108 10292
c915a581
JJ
10293 if test "$ld_shlibs" = no; then
10294 runpath_var=
10295 hardcode_libdir_flag_spec=
10296 export_dynamic_flag_spec=
10297 whole_archive_flag_spec=
10298 fi
10299 else
10300 # PORTME fill in a description of your system's linker (not GNU ld)
10301 case $host_os in
10302 aix3*)
10303 allow_undefined_flag=unsupported
10304 always_export_symbols=yes
10305 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'
10306 # Note: this linker hardcodes the directories in LIBPATH if there
10307 # are no directories specified by -L.
10308 hardcode_minus_L=yes
10309 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10310 # Neither direct hardcoding nor static linking is supported with a
10311 # broken collect2.
10312 hardcode_direct=unsupported
10313 fi
10314 ;;
f35db108 10315
c915a581
JJ
10316 aix[4-9]*)
10317 if test "$host_cpu" = ia64; then
10318 # On IA64, the linker does run time linking by default, so we don't
10319 # have to do anything special.
10320 aix_use_runtimelinking=no
10321 exp_sym_flag='-Bexport'
10322 no_entry_flag=""
10323 else
10324 # If we're using GNU nm, then we don't want the "-C" option.
10325 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10326 # Also, AIX nm treats weak defined symbols like other global
10327 # defined symbols, whereas GNU nm marks them as "W".
10328 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10329 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'
10330 else
bf93d543 10331 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
10332 fi
10333 aix_use_runtimelinking=no
f35db108 10334
c915a581
JJ
10335 # Test if we are trying to use run time linking or normal
10336 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10337 # need to do runtime linking.
10338 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10339 for ld_flag in $LDFLAGS; do
10340 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10341 aix_use_runtimelinking=yes
10342 break
10343 fi
10344 done
10345 ;;
10346 esac
f35db108 10347
c915a581
JJ
10348 exp_sym_flag='-bexport'
10349 no_entry_flag='-bnoentry'
10350 fi
f35db108 10351
c915a581
JJ
10352 # When large executables or shared objects are built, AIX ld can
10353 # have problems creating the table of contents. If linking a library
10354 # or program results in "error TOC overflow" add -mminimal-toc to
10355 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10356 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
f35db108 10357
c915a581
JJ
10358 archive_cmds=''
10359 hardcode_direct=yes
10360 hardcode_direct_absolute=yes
10361 hardcode_libdir_separator=':'
10362 link_all_deplibs=yes
10363 file_list_spec='${wl}-f,'
f35db108 10364
c915a581
JJ
10365 if test "$GCC" = yes; then
10366 case $host_os in aix4.[012]|aix4.[012].*)
10367 # We only want to do this on AIX 4.2 and lower, the check
10368 # below for broken collect2 doesn't work under 4.3+
10369 collect2name=`${CC} -print-prog-name=collect2`
10370 if test -f "$collect2name" &&
10371 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10372 then
10373 # We have reworked collect2
10374 :
10375 else
10376 # We have old collect2
10377 hardcode_direct=unsupported
10378 # It fails to find uninstalled libraries when the uninstalled
10379 # path is not listed in the libpath. Setting hardcode_minus_L
10380 # to unsupported forces relinking
10381 hardcode_minus_L=yes
10382 hardcode_libdir_flag_spec='-L$libdir'
10383 hardcode_libdir_separator=
10384 fi
10385 ;;
10386 esac
10387 shared_flag='-shared'
10388 if test "$aix_use_runtimelinking" = yes; then
10389 shared_flag="$shared_flag "'${wl}-G'
10390 fi
10391 else
10392 # not using gcc
10393 if test "$host_cpu" = ia64; then
10394 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10395 # chokes on -Wl,-G. The following line is correct:
10396 shared_flag='-G'
10397 else
10398 if test "$aix_use_runtimelinking" = yes; then
10399 shared_flag='${wl}-G'
10400 else
10401 shared_flag='${wl}-bM:SRE'
10402 fi
10403 fi
10404 fi
f35db108 10405
c915a581
JJ
10406 export_dynamic_flag_spec='${wl}-bexpall'
10407 # It seems that -bexpall does not export symbols beginning with
10408 # underscore (_), so it is better to generate a list of symbols to export.
10409 always_export_symbols=yes
10410 if test "$aix_use_runtimelinking" = yes; then
10411 # Warning - without using the other runtime loading flags (-brtl),
10412 # -berok will link without error, but may produce a broken library.
10413 allow_undefined_flag='-berok'
10414 # Determine the default libpath from the value encoded in an
10415 # empty executable.
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417/* end confdefs.h. */
f35db108 10418
c915a581
JJ
10419int
10420main ()
10421{
f35db108 10422
c915a581
JJ
10423 ;
10424 return 0;
10425}
10426_ACEOF
10427if ac_fn_c_try_link "$LINENO"; then :
f35db108 10428
c915a581
JJ
10429lt_aix_libpath_sed='
10430 /Import File Strings/,/^$/ {
10431 /^0/ {
10432 s/^0 *\(.*\)$/\1/
10433 p
10434 }
10435 }'
10436aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10437# Check for a 64-bit object if we didn't find anything.
10438if test -z "$aix_libpath"; then
10439 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10440fi
10441fi
10442rm -f core conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10444if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
f35db108 10445
c915a581
JJ
10446 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10447 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"
10448 else
10449 if test "$host_cpu" = ia64; then
10450 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10451 allow_undefined_flag="-z nodefs"
10452 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"
10453 else
10454 # Determine the default libpath from the value encoded in an
10455 # empty executable.
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457/* end confdefs.h. */
f35db108 10458
c915a581
JJ
10459int
10460main ()
10461{
f35db108 10462
c915a581
JJ
10463 ;
10464 return 0;
10465}
10466_ACEOF
10467if ac_fn_c_try_link "$LINENO"; then :
f35db108 10468
c915a581
JJ
10469lt_aix_libpath_sed='
10470 /Import File Strings/,/^$/ {
10471 /^0/ {
10472 s/^0 *\(.*\)$/\1/
10473 p
10474 }
10475 }'
10476aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10477# Check for a 64-bit object if we didn't find anything.
10478if test -z "$aix_libpath"; then
10479 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10480fi
10481fi
10482rm -f core conftest.err conftest.$ac_objext \
10483 conftest$ac_exeext conftest.$ac_ext
10484if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
f35db108 10485
c915a581
JJ
10486 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10487 # Warning - without using the other run time loading flags,
10488 # -berok will link without error, but may produce a broken library.
10489 no_undefined_flag=' ${wl}-bernotok'
10490 allow_undefined_flag=' ${wl}-berok'
10491 if test "$with_gnu_ld" = yes; then
10492 # We only use this code for GNU lds that support --whole-archive.
10493 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10494 else
10495 # Exported symbols can be pulled into shared objects from archives
10496 whole_archive_flag_spec='$convenience'
10497 fi
10498 archive_cmds_need_lc=yes
10499 # This is similar to how AIX traditionally builds its shared libraries.
10500 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'
10501 fi
10502 fi
10503 ;;
f35db108 10504
c915a581
JJ
10505 amigaos*)
10506 case $host_cpu in
10507 powerpc)
10508 # see comment about AmigaOS4 .so support
10509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10510 archive_expsym_cmds=''
10511 ;;
10512 m68k)
10513 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)'
10514 hardcode_libdir_flag_spec='-L$libdir'
10515 hardcode_minus_L=yes
10516 ;;
10517 esac
10518 ;;
f35db108 10519
c915a581
JJ
10520 bsdi[45]*)
10521 export_dynamic_flag_spec=-rdynamic
10522 ;;
f35db108 10523
c915a581
JJ
10524 cygwin* | mingw* | pw32* | cegcc*)
10525 # When not using gcc, we currently assume that we are using
10526 # Microsoft Visual C++.
10527 # hardcode_libdir_flag_spec is actually meaningless, as there is
10528 # no search path for DLLs.
10529 hardcode_libdir_flag_spec=' '
10530 allow_undefined_flag=unsupported
10531 # Tell ltmain to make .lib files, not .a files.
10532 libext=lib
10533 # Tell ltmain to make .dll files, not .so files.
10534 shrext_cmds=".dll"
10535 # FIXME: Setting linknames here is a bad hack.
10536 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10537 # The linker will automatically build a .lib file if we build a DLL.
10538 old_archive_from_new_cmds='true'
10539 # FIXME: Should let the user specify the lib program.
10540 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10541 fix_srcfile_path='`cygpath -w "$srcfile"`'
10542 enable_shared_with_static_runtimes=yes
10543 ;;
f35db108 10544
c915a581 10545 darwin* | rhapsody*)
f35db108
WM
10546
10547
c915a581
JJ
10548 archive_cmds_need_lc=no
10549 hardcode_direct=no
10550 hardcode_automatic=yes
10551 hardcode_shlibpath_var=unsupported
10552 if test "$lt_cv_ld_force_load" = "yes"; then
10553 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\"`'
10554 else
10555 whole_archive_flag_spec=''
10556 fi
10557 link_all_deplibs=yes
10558 allow_undefined_flag="$_lt_dar_allow_undefined"
10559 case $cc_basename in
10560 ifort*) _lt_dar_can_shared=yes ;;
10561 *) _lt_dar_can_shared=$GCC ;;
10562 esac
10563 if test "$_lt_dar_can_shared" = "yes"; then
10564 output_verbose_link_cmd=func_echo_all
10565 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10566 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10567 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}"
10568 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 10569
c915a581
JJ
10570 else
10571 ld_shlibs=no
10572 fi
f35db108 10573
c915a581 10574 ;;
f35db108 10575
c915a581
JJ
10576 dgux*)
10577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10578 hardcode_libdir_flag_spec='-L$libdir'
10579 hardcode_shlibpath_var=no
10580 ;;
f35db108 10581
c915a581
JJ
10582 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10583 # support. Future versions do this automatically, but an explicit c++rt0.o
10584 # does not break anything, and helps significantly (at the cost of a little
10585 # extra space).
10586 freebsd2.2*)
10587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10588 hardcode_libdir_flag_spec='-R$libdir'
10589 hardcode_direct=yes
10590 hardcode_shlibpath_var=no
10591 ;;
f35db108 10592
c915a581
JJ
10593 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10594 freebsd2.*)
10595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10596 hardcode_direct=yes
10597 hardcode_minus_L=yes
10598 hardcode_shlibpath_var=no
10599 ;;
f35db108 10600
c915a581
JJ
10601 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10602 freebsd* | dragonfly*)
10603 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10604 hardcode_libdir_flag_spec='-R$libdir'
10605 hardcode_direct=yes
10606 hardcode_shlibpath_var=no
10607 ;;
f35db108 10608
c915a581
JJ
10609 hpux9*)
10610 if test "$GCC" = yes; then
10611 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'
10612 else
10613 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'
10614 fi
10615 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10616 hardcode_libdir_separator=:
10617 hardcode_direct=yes
f35db108 10618
c915a581
JJ
10619 # hardcode_minus_L: Not really in the search PATH,
10620 # but as the default location of the library.
10621 hardcode_minus_L=yes
10622 export_dynamic_flag_spec='${wl}-E'
10623 ;;
f35db108 10624
c915a581
JJ
10625 hpux10*)
10626 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10627 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10628 else
10629 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10630 fi
10631 if test "$with_gnu_ld" = no; then
10632 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10633 hardcode_libdir_flag_spec_ld='+b $libdir'
10634 hardcode_libdir_separator=:
10635 hardcode_direct=yes
10636 hardcode_direct_absolute=yes
10637 export_dynamic_flag_spec='${wl}-E'
10638 # hardcode_minus_L: Not really in the search PATH,
10639 # but as the default location of the library.
10640 hardcode_minus_L=yes
10641 fi
10642 ;;
f35db108 10643
c915a581
JJ
10644 hpux11*)
10645 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10646 case $host_cpu in
10647 hppa*64*)
10648 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10649 ;;
10650 ia64*)
10651 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10652 ;;
10653 *)
10654 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10655 ;;
10656 esac
10657 else
10658 case $host_cpu in
10659 hppa*64*)
10660 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10661 ;;
10662 ia64*)
10663 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10664 ;;
10665 *)
f35db108 10666
c915a581
JJ
10667 # Older versions of the 11.00 compiler do not understand -b yet
10668 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10670$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 10671if ${lt_cv_prog_compiler__b+:} false; then :
c915a581 10672 $as_echo_n "(cached) " >&6
f35db108 10673else
c915a581
JJ
10674 lt_cv_prog_compiler__b=no
10675 save_LDFLAGS="$LDFLAGS"
10676 LDFLAGS="$LDFLAGS -b"
10677 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10678 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10679 # The linker can only warn and ignore the option if not recognized
10680 # So say no if there are warnings
10681 if test -s conftest.err; then
10682 # Append any errors to the config.log.
10683 cat conftest.err 1>&5
10684 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10686 if diff conftest.exp conftest.er2 >/dev/null; then
10687 lt_cv_prog_compiler__b=yes
10688 fi
10689 else
10690 lt_cv_prog_compiler__b=yes
10691 fi
10692 fi
10693 $RM -r conftest*
10694 LDFLAGS="$save_LDFLAGS"
f35db108 10695
f35db108 10696fi
c915a581
JJ
10697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10698$as_echo "$lt_cv_prog_compiler__b" >&6; }
f35db108 10699
c915a581
JJ
10700if test x"$lt_cv_prog_compiler__b" = xyes; then
10701 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10702else
10703 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10704fi
f35db108 10705
c915a581
JJ
10706 ;;
10707 esac
10708 fi
10709 if test "$with_gnu_ld" = no; then
10710 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10711 hardcode_libdir_separator=:
f35db108 10712
c915a581
JJ
10713 case $host_cpu in
10714 hppa*64*|ia64*)
10715 hardcode_direct=no
10716 hardcode_shlibpath_var=no
10717 ;;
10718 *)
10719 hardcode_direct=yes
10720 hardcode_direct_absolute=yes
10721 export_dynamic_flag_spec='${wl}-E'
f35db108 10722
c915a581
JJ
10723 # hardcode_minus_L: Not really in the search PATH,
10724 # but as the default location of the library.
10725 hardcode_minus_L=yes
10726 ;;
10727 esac
10728 fi
10729 ;;
f35db108 10730
c915a581
JJ
10731 irix5* | irix6* | nonstopux*)
10732 if test "$GCC" = yes; then
10733 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'
10734 # Try to use the -exported_symbol ld option, if it does not
10735 # work, assume that -exports_file does not work either and
10736 # implicitly export all symbols.
10737 save_LDFLAGS="$LDFLAGS"
10738 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740/* end confdefs.h. */
10741int foo(void) {}
10742_ACEOF
10743if ac_fn_c_try_link "$LINENO"; then :
10744 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 10745
c915a581
JJ
10746fi
10747rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10749 LDFLAGS="$save_LDFLAGS"
10750 else
10751 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'
10752 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'
10753 fi
10754 archive_cmds_need_lc='no'
10755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10756 hardcode_libdir_separator=:
10757 inherit_rpath=yes
10758 link_all_deplibs=yes
10759 ;;
f35db108 10760
c915a581
JJ
10761 netbsd*)
10762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10764 else
10765 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10766 fi
10767 hardcode_libdir_flag_spec='-R$libdir'
10768 hardcode_direct=yes
10769 hardcode_shlibpath_var=no
10770 ;;
f35db108 10771
c915a581
JJ
10772 newsos6)
10773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10774 hardcode_direct=yes
10775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10776 hardcode_libdir_separator=:
10777 hardcode_shlibpath_var=no
10778 ;;
f35db108 10779
c915a581
JJ
10780 *nto* | *qnx*)
10781 ;;
f35db108 10782
c915a581
JJ
10783 openbsd*)
10784 if test -f /usr/libexec/ld.so; then
10785 hardcode_direct=yes
10786 hardcode_shlibpath_var=no
10787 hardcode_direct_absolute=yes
10788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10789 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10790 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10791 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10792 export_dynamic_flag_spec='${wl}-E'
10793 else
10794 case $host_os in
10795 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10796 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10797 hardcode_libdir_flag_spec='-R$libdir'
10798 ;;
10799 *)
10800 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10801 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10802 ;;
10803 esac
10804 fi
10805 else
10806 ld_shlibs=no
10807 fi
10808 ;;
f35db108 10809
c915a581
JJ
10810 os2*)
10811 hardcode_libdir_flag_spec='-L$libdir'
10812 hardcode_minus_L=yes
10813 allow_undefined_flag=unsupported
10814 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'
10815 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10816 ;;
f35db108 10817
c915a581
JJ
10818 osf3*)
10819 if test "$GCC" = yes; then
10820 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10821 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'
10822 else
10823 allow_undefined_flag=' -expect_unresolved \*'
10824 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'
10825 fi
10826 archive_cmds_need_lc='no'
10827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10828 hardcode_libdir_separator=:
10829 ;;
f35db108 10830
c915a581
JJ
10831 osf4* | osf5*) # as osf3* with the addition of -msym flag
10832 if test "$GCC" = yes; then
10833 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10834 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'
10835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10836 else
10837 allow_undefined_flag=' -expect_unresolved \*'
10838 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'
10839 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~
10840 $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 10841
c915a581
JJ
10842 # Both c and cxx compiler support -rpath directly
10843 hardcode_libdir_flag_spec='-rpath $libdir'
10844 fi
10845 archive_cmds_need_lc='no'
10846 hardcode_libdir_separator=:
10847 ;;
f35db108 10848
c915a581
JJ
10849 solaris*)
10850 no_undefined_flag=' -z defs'
10851 if test "$GCC" = yes; then
10852 wlarc='${wl}'
10853 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10854 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10855 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10856 else
10857 case `$CC -V 2>&1` in
10858 *"Compilers 5.0"*)
10859 wlarc=''
10860 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10861 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10862 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10863 ;;
10864 *)
10865 wlarc='${wl}'
10866 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10867 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10868 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10869 ;;
10870 esac
10871 fi
10872 hardcode_libdir_flag_spec='-R$libdir'
10873 hardcode_shlibpath_var=no
10874 case $host_os in
10875 solaris2.[0-5] | solaris2.[0-5].*) ;;
10876 *)
10877 # The compiler driver will combine and reorder linker options,
10878 # but understands `-z linker_flag'. GCC discards it without `$wl',
10879 # but is careful enough not to reorder.
10880 # Supported since Solaris 2.6 (maybe 2.5.1?)
10881 if test "$GCC" = yes; then
10882 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10883 else
10884 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10885 fi
10886 ;;
10887 esac
10888 link_all_deplibs=yes
10889 ;;
f35db108 10890
c915a581
JJ
10891 sunos4*)
10892 if test "x$host_vendor" = xsequent; then
10893 # Use $CC to link under sequent, because it throws in some extra .o
10894 # files that make .init and .fini sections work.
10895 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10896 else
10897 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10898 fi
10899 hardcode_libdir_flag_spec='-L$libdir'
10900 hardcode_direct=yes
10901 hardcode_minus_L=yes
10902 hardcode_shlibpath_var=no
10903 ;;
f35db108 10904
c915a581
JJ
10905 sysv4)
10906 case $host_vendor in
10907 sni)
10908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10909 hardcode_direct=yes # is this really true???
10910 ;;
10911 siemens)
10912 ## LD is ld it makes a PLAMLIB
10913 ## CC just makes a GrossModule.
10914 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10915 reload_cmds='$CC -r -o $output$reload_objs'
10916 hardcode_direct=no
10917 ;;
10918 motorola)
10919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10920 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10921 ;;
10922 esac
10923 runpath_var='LD_RUN_PATH'
10924 hardcode_shlibpath_var=no
10925 ;;
f35db108 10926
c915a581
JJ
10927 sysv4.3*)
10928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10929 hardcode_shlibpath_var=no
10930 export_dynamic_flag_spec='-Bexport'
10931 ;;
f35db108 10932
c915a581
JJ
10933 sysv4*MP*)
10934 if test -d /usr/nec; then
10935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10936 hardcode_shlibpath_var=no
10937 runpath_var=LD_RUN_PATH
10938 hardcode_runpath_var=yes
10939 ld_shlibs=yes
10940 fi
10941 ;;
f35db108 10942
c915a581
JJ
10943 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10944 no_undefined_flag='${wl}-z,text'
10945 archive_cmds_need_lc=no
10946 hardcode_shlibpath_var=no
10947 runpath_var='LD_RUN_PATH'
f35db108 10948
c915a581
JJ
10949 if test "$GCC" = yes; then
10950 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10951 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10952 else
10953 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10954 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10955 fi
10956 ;;
f35db108 10957
c915a581
JJ
10958 sysv5* | sco3.2v5* | sco5v6*)
10959 # Note: We can NOT use -z defs as we might desire, because we do not
10960 # link with -lc, and that would cause any symbols used from libc to
10961 # always be unresolved, which means just about no library would
10962 # ever link correctly. If we're not using GNU ld we use -z text
10963 # though, which does catch some bad symbols but isn't as heavy-handed
10964 # as -z defs.
10965 no_undefined_flag='${wl}-z,text'
10966 allow_undefined_flag='${wl}-z,nodefs'
10967 archive_cmds_need_lc=no
10968 hardcode_shlibpath_var=no
10969 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10970 hardcode_libdir_separator=':'
10971 link_all_deplibs=yes
10972 export_dynamic_flag_spec='${wl}-Bexport'
10973 runpath_var='LD_RUN_PATH'
f35db108 10974
c915a581
JJ
10975 if test "$GCC" = yes; then
10976 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10977 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10978 else
10979 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10980 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10981 fi
10982 ;;
f35db108 10983
c915a581
JJ
10984 uts4*)
10985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10986 hardcode_libdir_flag_spec='-L$libdir'
10987 hardcode_shlibpath_var=no
10988 ;;
f35db108 10989
c915a581
JJ
10990 *)
10991 ld_shlibs=no
10992 ;;
10993 esac
f35db108 10994
c915a581
JJ
10995 if test x$host_vendor = xsni; then
10996 case $host in
10997 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10998 export_dynamic_flag_spec='${wl}-Blargedynsym'
10999 ;;
11000 esac
11001 fi
11002 fi
f35db108 11003
c915a581
JJ
11004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11005$as_echo "$ld_shlibs" >&6; }
11006test "$ld_shlibs" = no && can_build_shared=no
f35db108 11007
c915a581 11008with_gnu_ld=$with_gnu_ld
f35db108 11009
f35db108 11010
f35db108 11011
f35db108 11012
f35db108 11013
f35db108 11014
f35db108 11015
f35db108 11016
f35db108 11017
f35db108 11018
f35db108 11019
f35db108 11020
f35db108 11021
f35db108 11022
f35db108 11023
c915a581
JJ
11024#
11025# Do we need to explicitly link libc?
11026#
11027case "x$archive_cmds_need_lc" in
11028x|xyes)
11029 # Assume -lc should be added
11030 archive_cmds_need_lc=yes
11031
11032 if test "$enable_shared" = yes && test "$GCC" = yes; then
11033 case $archive_cmds in
11034 *'~'*)
11035 # FIXME: we may have to deal with multi-command sequences.
11036 ;;
11037 '$CC '*)
11038 # Test whether the compiler implicitly links with -lc since on some
11039 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11040 # to ld, don't add -lc before -lgcc.
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11042$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 11043if ${lt_cv_archive_cmds_need_lc+:} false; then :
c915a581
JJ
11044 $as_echo_n "(cached) " >&6
11045else
11046 $RM conftest*
11047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11048
11049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11050 (eval $ac_compile) 2>&5
f35db108
WM
11051 ac_status=$?
11052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c915a581
JJ
11053 test $ac_status = 0; } 2>conftest.err; then
11054 soname=conftest
11055 lib=conftest
11056 libobjs=conftest.$ac_objext
11057 deplibs=
11058 wl=$lt_prog_compiler_wl
11059 pic_flag=$lt_prog_compiler_pic
11060 compiler_flags=-v
11061 linker_flags=-v
11062 verstring=
11063 output_objdir=.
11064 libname=conftest
11065 lt_save_allow_undefined_flag=$allow_undefined_flag
11066 allow_undefined_flag=
11067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11068 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11069 ac_status=$?
11070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11071 test $ac_status = 0; }
11072 then
11073 lt_cv_archive_cmds_need_lc=no
11074 else
11075 lt_cv_archive_cmds_need_lc=yes
11076 fi
11077 allow_undefined_flag=$lt_save_allow_undefined_flag
11078 else
11079 cat conftest.err 1>&5
11080 fi
11081 $RM conftest*
11082
11083fi
11084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11085$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11086 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11087 ;;
f35db108 11088 esac
f35db108 11089 fi
c915a581
JJ
11090 ;;
11091esac
f35db108
WM
11092
11093
f35db108 11094
f35db108 11095
f35db108 11096
f35db108 11097
f35db108 11098
f35db108 11099
f35db108 11100
f35db108 11101
f35db108 11102
f35db108
WM
11103
11104
f35db108 11105
f35db108 11106
f35db108 11107
f35db108
WM
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
f35db108
WM
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
f35db108 11137
f35db108 11138
f35db108 11139
f35db108 11140
f35db108
WM
11141
11142
11143
11144
f35db108 11145
f35db108 11146
f35db108 11147
f35db108 11148
f35db108 11149
f35db108 11150
f35db108 11151
f35db108 11152
f35db108 11153
f35db108 11154
f35db108 11155
f35db108 11156
f35db108 11157
f35db108 11158
f35db108 11159
f35db108 11160
f35db108 11161
f35db108 11162
f35db108 11163
f35db108 11164
f35db108
WM
11165
11166
11167
11168
11169
11170
f35db108 11171
f35db108 11172
f35db108
WM
11173
11174
f35db108 11175
f35db108
WM
11176
11177
f35db108
WM
11178
11179
f35db108 11180
f35db108
WM
11181
11182
11183
f35db108 11184
f35db108 11185
f35db108
WM
11186
11187
11188
11189
11190
11191
11192
f35db108 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
a2479b3d 11218
f35db108
WM
11219
11220
f35db108 11221
f35db108 11222
f35db108 11223
f35db108 11224
f35db108 11225
f35db108 11226
f35db108 11227
f35db108 11228
f35db108 11229
f35db108 11230
f35db108 11231
f35db108 11232
f35db108 11233
f35db108 11234
f35db108 11235
f35db108 11236
f35db108 11237
f35db108 11238
f35db108 11239
f35db108 11240
f35db108 11241
f35db108 11242
f35db108 11243
f35db108 11244
f35db108 11245
f35db108 11246
f35db108 11247
f35db108 11248
c915a581
JJ
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11250$as_echo_n "checking dynamic linker characteristics... " >&6; }
f35db108 11251
c915a581
JJ
11252if test "$GCC" = yes; then
11253 case $host_os in
11254 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11255 *) lt_awk_arg="/^libraries:/" ;;
11256 esac
11257 case $host_os in
11258 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11259 *) lt_sed_strip_eq="s,=/,/,g" ;;
11260 esac
11261 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11262 case $lt_search_path_spec in
11263 *\;*)
11264 # if the path contains ";" then we assume it to be the separator
11265 # otherwise default to the standard path separator (i.e. ":") - it is
11266 # assumed that no part of a normal pathname contains ";" but that should
11267 # okay in the real world where ";" in dirpaths is itself problematic.
11268 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11269 ;;
11270 *)
11271 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11272 ;;
11273 esac
11274 # Ok, now we have the path, separated by spaces, we can step through it
11275 # and add multilib dir if necessary.
11276 lt_tmp_lt_search_path_spec=
11277 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11278 for lt_sys_path in $lt_search_path_spec; do
11279 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11280 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11281 else
11282 test -d "$lt_sys_path" && \
11283 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11284 fi
11285 done
11286 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11287BEGIN {RS=" "; FS="/|\n";} {
11288 lt_foo="";
11289 lt_count=0;
11290 for (lt_i = NF; lt_i > 0; lt_i--) {
11291 if ($lt_i != "" && $lt_i != ".") {
11292 if ($lt_i == "..") {
11293 lt_count++;
11294 } else {
11295 if (lt_count == 0) {
11296 lt_foo="/" $lt_i lt_foo;
11297 } else {
11298 lt_count--;
11299 }
11300 }
11301 }
11302 }
11303 if (lt_foo != "") { lt_freq[lt_foo]++; }
11304 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11305}'`
11306 # AWK program above erroneously prepends '/' to C:/dos/paths
11307 # for these hosts.
11308 case $host_os in
11309 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11310 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11311 esac
11312 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11313else
11314 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11315fi
11316library_names_spec=
11317libname_spec='lib$name'
11318soname_spec=
11319shrext_cmds=".so"
11320postinstall_cmds=
11321postuninstall_cmds=
11322finish_cmds=
11323finish_eval=
11324shlibpath_var=
11325shlibpath_overrides_runpath=unknown
11326version_type=none
11327dynamic_linker="$host_os ld.so"
11328sys_lib_dlsearch_path_spec="/lib /usr/lib"
11329need_lib_prefix=unknown
11330hardcode_into_libs=no
f35db108 11331
c915a581
JJ
11332# when you set need_version to no, make sure it does not cause -set_version
11333# flags to be left without arguments
11334need_version=unknown
f35db108 11335
c915a581
JJ
11336case $host_os in
11337aix3*)
11338 version_type=linux
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11340 shlibpath_var=LIBPATH
f35db108 11341
c915a581
JJ
11342 # AIX 3 has no versioning support, so we append a major version to the name.
11343 soname_spec='${libname}${release}${shared_ext}$major'
11344 ;;
f35db108 11345
c915a581
JJ
11346aix[4-9]*)
11347 version_type=linux
11348 need_lib_prefix=no
11349 need_version=no
11350 hardcode_into_libs=yes
11351 if test "$host_cpu" = ia64; then
11352 # AIX 5 supports IA64
11353 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11354 shlibpath_var=LD_LIBRARY_PATH
11355 else
11356 # With GCC up to 2.95.x, collect2 would create an import file
11357 # for dependence libraries. The import file would start with
11358 # the line `#! .'. This would cause the generated library to
11359 # depend on `.', always an invalid library. This was fixed in
11360 # development snapshots of GCC prior to 3.0.
11361 case $host_os in
11362 aix4 | aix4.[01] | aix4.[01].*)
11363 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11364 echo ' yes '
11365 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11366 :
11367 else
11368 can_build_shared=no
11369 fi
11370 ;;
11371 esac
11372 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11373 # soname into executable. Probably we can add versioning support to
11374 # collect2, so additional links can be useful in future.
11375 if test "$aix_use_runtimelinking" = yes; then
11376 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11377 # instead of lib<name>.a to let people know that these are not
11378 # typical AIX shared libraries.
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11380 else
11381 # We preserve .a as extension for shared libraries through AIX4.2
11382 # and later when we are not doing run time linking.
11383 library_names_spec='${libname}${release}.a $libname.a'
11384 soname_spec='${libname}${release}${shared_ext}$major'
11385 fi
11386 shlibpath_var=LIBPATH
11387 fi
11388 ;;
f35db108 11389
c915a581
JJ
11390amigaos*)
11391 case $host_cpu in
11392 powerpc)
11393 # Since July 2007 AmigaOS4 officially supports .so libraries.
11394 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396 ;;
11397 m68k)
11398 library_names_spec='$libname.ixlibrary $libname.a'
11399 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11400 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'
11401 ;;
11402 esac
11403 ;;
f35db108 11404
c915a581
JJ
11405beos*)
11406 library_names_spec='${libname}${shared_ext}'
11407 dynamic_linker="$host_os ld.so"
11408 shlibpath_var=LIBRARY_PATH
11409 ;;
f35db108 11410
c915a581
JJ
11411bsdi[45]*)
11412 version_type=linux
11413 need_version=no
11414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11415 soname_spec='${libname}${release}${shared_ext}$major'
11416 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11417 shlibpath_var=LD_LIBRARY_PATH
11418 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11419 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11420 # the default ld.so.conf also contains /usr/contrib/lib and
11421 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11422 # libtool to hard-code these into programs
11423 ;;
f35db108 11424
c915a581
JJ
11425cygwin* | mingw* | pw32* | cegcc*)
11426 version_type=windows
11427 shrext_cmds=".dll"
11428 need_version=no
11429 need_lib_prefix=no
f35db108 11430
c915a581
JJ
11431 case $GCC,$host_os in
11432 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11433 library_names_spec='$libname.dll.a'
11434 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11435 postinstall_cmds='base_file=`basename \${file}`~
11436 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11437 dldir=$destdir/`dirname \$dlpath`~
11438 test -d \$dldir || mkdir -p \$dldir~
11439 $install_prog $dir/$dlname \$dldir/$dlname~
11440 chmod a+x \$dldir/$dlname~
11441 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11442 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11443 fi'
11444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11445 dlpath=$dir/\$dldll~
11446 $RM \$dlpath'
11447 shlibpath_overrides_runpath=yes
f35db108 11448
c915a581
JJ
11449 case $host_os in
11450 cygwin*)
11451 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11452 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
f35db108 11453
c915a581
JJ
11454 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11455 ;;
11456 mingw* | cegcc*)
11457 # MinGW DLLs use traditional 'lib' prefix
11458 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11459 ;;
11460 pw32*)
11461 # pw32 DLLs use 'pw' prefix rather than 'lib'
11462 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11463 ;;
11464 esac
11465 ;;
f35db108 11466
c915a581
JJ
11467 *)
11468 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11469 ;;
11470 esac
11471 dynamic_linker='Win32 ld.exe'
11472 # FIXME: first we should search . and the directory the executable is in
11473 shlibpath_var=PATH
11474 ;;
f35db108 11475
c915a581
JJ
11476darwin* | rhapsody*)
11477 dynamic_linker="$host_os dyld"
11478 version_type=darwin
11479 need_lib_prefix=no
11480 need_version=no
11481 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11482 soname_spec='${libname}${release}${major}$shared_ext'
11483 shlibpath_overrides_runpath=yes
11484 shlibpath_var=DYLD_LIBRARY_PATH
11485 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
f35db108 11486
c915a581
JJ
11487 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11488 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11489 ;;
f35db108 11490
c915a581
JJ
11491dgux*)
11492 version_type=linux
11493 need_lib_prefix=no
11494 need_version=no
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11496 soname_spec='${libname}${release}${shared_ext}$major'
11497 shlibpath_var=LD_LIBRARY_PATH
11498 ;;
f35db108 11499
c915a581
JJ
11500freebsd* | dragonfly*)
11501 # DragonFly does not have aout. When/if they implement a new
11502 # versioning mechanism, adjust this.
11503 if test -x /usr/bin/objformat; then
11504 objformat=`/usr/bin/objformat`
11505 else
11506 case $host_os in
11507 freebsd[23].*) objformat=aout ;;
11508 *) objformat=elf ;;
11509 esac
11510 fi
11511 version_type=freebsd-$objformat
11512 case $version_type in
11513 freebsd-elf*)
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11515 need_version=no
11516 need_lib_prefix=no
f35db108 11517 ;;
c915a581
JJ
11518 freebsd-*)
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11520 need_version=yes
f35db108 11521 ;;
c915a581
JJ
11522 esac
11523 shlibpath_var=LD_LIBRARY_PATH
11524 case $host_os in
11525 freebsd2.*)
11526 shlibpath_overrides_runpath=yes
11527 ;;
11528 freebsd3.[01]* | freebsdelf3.[01]*)
11529 shlibpath_overrides_runpath=yes
11530 hardcode_into_libs=yes
11531 ;;
11532 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11533 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11534 shlibpath_overrides_runpath=no
11535 hardcode_into_libs=yes
11536 ;;
11537 *) # from 4.6 on, and DragonFly
11538 shlibpath_overrides_runpath=yes
11539 hardcode_into_libs=yes
11540 ;;
11541 esac
11542 ;;
f35db108 11543
c915a581
JJ
11544gnu*)
11545 version_type=linux
11546 need_lib_prefix=no
11547 need_version=no
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11549 soname_spec='${libname}${release}${shared_ext}$major'
11550 shlibpath_var=LD_LIBRARY_PATH
11551 hardcode_into_libs=yes
11552 ;;
f35db108 11553
c915a581
JJ
11554haiku*)
11555 version_type=linux
11556 need_lib_prefix=no
11557 need_version=no
11558 dynamic_linker="$host_os runtime_loader"
11559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11560 soname_spec='${libname}${release}${shared_ext}$major'
11561 shlibpath_var=LIBRARY_PATH
11562 shlibpath_overrides_runpath=yes
11563 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11564 hardcode_into_libs=yes
11565 ;;
f35db108 11566
c915a581
JJ
11567hpux9* | hpux10* | hpux11*)
11568 # Give a soname corresponding to the major version so that dld.sl refuses to
11569 # link against other versions.
11570 version_type=sunos
11571 need_lib_prefix=no
11572 need_version=no
11573 case $host_cpu in
11574 ia64*)
11575 shrext_cmds='.so'
11576 hardcode_into_libs=yes
11577 dynamic_linker="$host_os dld.so"
11578 shlibpath_var=LD_LIBRARY_PATH
11579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581 soname_spec='${libname}${release}${shared_ext}$major'
11582 if test "X$HPUX_IA64_MODE" = X32; then
11583 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11584 else
11585 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11586 fi
11587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11588 ;;
11589 hppa*64*)
11590 shrext_cmds='.sl'
11591 hardcode_into_libs=yes
11592 dynamic_linker="$host_os dld.sl"
11593 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11594 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11596 soname_spec='${libname}${release}${shared_ext}$major'
11597 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11598 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11599 ;;
11600 *)
11601 shrext_cmds='.sl'
11602 dynamic_linker="$host_os dld.sl"
11603 shlibpath_var=SHLIB_PATH
11604 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606 soname_spec='${libname}${release}${shared_ext}$major'
11607 ;;
11608 esac
11609 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11610 postinstall_cmds='chmod 555 $lib'
11611 # or fails outright, so override atomically:
11612 install_override_mode=555
11613 ;;
f35db108 11614
c915a581
JJ
11615interix[3-9]*)
11616 version_type=linux
11617 need_lib_prefix=no
11618 need_version=no
11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11620 soname_spec='${libname}${release}${shared_ext}$major'
11621 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11622 shlibpath_var=LD_LIBRARY_PATH
11623 shlibpath_overrides_runpath=no
11624 hardcode_into_libs=yes
11625 ;;
f35db108 11626
c915a581
JJ
11627irix5* | irix6* | nonstopux*)
11628 case $host_os in
11629 nonstopux*) version_type=nonstopux ;;
11630 *)
11631 if test "$lt_cv_prog_gnu_ld" = yes; then
11632 version_type=linux
11633 else
11634 version_type=irix
11635 fi ;;
11636 esac
11637 need_lib_prefix=no
11638 need_version=no
11639 soname_spec='${libname}${release}${shared_ext}$major'
11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11641 case $host_os in
11642 irix5* | nonstopux*)
11643 libsuff= shlibsuff=
11644 ;;
11645 *)
11646 case $LD in # libtool.m4 will add one of these switches to LD
11647 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11648 libsuff= shlibsuff= libmagic=32-bit;;
11649 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11650 libsuff=32 shlibsuff=N32 libmagic=N32;;
11651 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11652 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11653 *) libsuff= shlibsuff= libmagic=never-match;;
11654 esac
11655 ;;
11656 esac
11657 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11658 shlibpath_overrides_runpath=no
11659 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11660 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11661 hardcode_into_libs=yes
11662 ;;
f35db108 11663
c915a581
JJ
11664# No shared lib support for Linux oldld, aout, or coff.
11665linux*oldld* | linux*aout* | linux*coff*)
11666 dynamic_linker=no
11667 ;;
f35db108 11668
c915a581 11669# This must be Linux ELF.
e9085da5
MR
11670
11671# uclinux* changes (here and below) have been submitted to the libtool
11672# project, but have not yet been accepted: they are GCC-local changes
11673# for the time being. (See
11674# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11675linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
c915a581
JJ
11676 version_type=linux
11677 need_lib_prefix=no
11678 need_version=no
11679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11680 soname_spec='${libname}${release}${shared_ext}$major'
11681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11682 shlibpath_var=LD_LIBRARY_PATH
11683 shlibpath_overrides_runpath=no
f35db108 11684
c915a581 11685 # Some binutils ld are patched to set DT_RUNPATH
22e05272 11686 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
c915a581
JJ
11687 $as_echo_n "(cached) " >&6
11688else
11689 lt_cv_shlibpath_overrides_runpath=no
11690 save_LDFLAGS=$LDFLAGS
11691 save_libdir=$libdir
11692 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11693 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11695/* end confdefs.h. */
f35db108 11696
c915a581
JJ
11697int
11698main ()
11699{
f35db108 11700
c915a581
JJ
11701 ;
11702 return 0;
11703}
11704_ACEOF
11705if ac_fn_c_try_link "$LINENO"; then :
11706 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11707 lt_cv_shlibpath_overrides_runpath=yes
11708fi
11709fi
11710rm -f core conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11712 LDFLAGS=$save_LDFLAGS
11713 libdir=$save_libdir
f35db108 11714
c915a581 11715fi
f35db108 11716
c915a581 11717 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
f35db108 11718
c915a581
JJ
11719 # This implies no fast_install, which is unacceptable.
11720 # Some rework will be needed to allow for fast_install
11721 # before this can be enabled.
11722 hardcode_into_libs=yes
f35db108 11723
c915a581
JJ
11724 # Append ld.so.conf contents to the search path
11725 if test -f /etc/ld.so.conf; then
11726 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' ' '`
11727 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11728 fi
f35db108 11729
c915a581
JJ
11730 # We used to test for /lib/ld.so.1 and disable shared libraries on
11731 # powerpc, because MkLinux only supported shared libraries with the
11732 # GNU dynamic linker. Since this was broken with cross compilers,
11733 # most powerpc-linux boxes support dynamic linking these days and
11734 # people can always --disable-shared, the test was removed, and we
11735 # assume the GNU/Linux dynamic linker is in use.
11736 dynamic_linker='GNU/Linux ld.so'
11737 ;;
f35db108 11738
c915a581
JJ
11739netbsd*)
11740 version_type=sunos
11741 need_lib_prefix=no
11742 need_version=no
11743 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11746 dynamic_linker='NetBSD (a.out) ld.so'
11747 else
11748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11749 soname_spec='${libname}${release}${shared_ext}$major'
11750 dynamic_linker='NetBSD ld.elf_so'
11751 fi
11752 shlibpath_var=LD_LIBRARY_PATH
11753 shlibpath_overrides_runpath=yes
11754 hardcode_into_libs=yes
f35db108
WM
11755 ;;
11756
c915a581
JJ
11757newsos6)
11758 version_type=linux
11759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 shlibpath_overrides_runpath=yes
11762 ;;
f35db108 11763
c915a581
JJ
11764*nto* | *qnx*)
11765 version_type=qnx
11766 need_lib_prefix=no
11767 need_version=no
11768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11769 soname_spec='${libname}${release}${shared_ext}$major'
11770 shlibpath_var=LD_LIBRARY_PATH
11771 shlibpath_overrides_runpath=no
11772 hardcode_into_libs=yes
11773 dynamic_linker='ldqnx.so'
11774 ;;
f35db108 11775
c915a581
JJ
11776openbsd*)
11777 version_type=sunos
11778 sys_lib_dlsearch_path_spec="/usr/lib"
11779 need_lib_prefix=no
11780 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11781 case $host_os in
11782 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11783 *) need_version=no ;;
f35db108 11784 esac
c915a581
JJ
11785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11787 shlibpath_var=LD_LIBRARY_PATH
11788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11789 case $host_os in
11790 openbsd2.[89] | openbsd2.[89].*)
11791 shlibpath_overrides_runpath=no
11792 ;;
11793 *)
11794 shlibpath_overrides_runpath=yes
11795 ;;
11796 esac
11797 else
11798 shlibpath_overrides_runpath=yes
11799 fi
11800 ;;
11801
11802os2*)
11803 libname_spec='$name'
11804 shrext_cmds=".dll"
11805 need_lib_prefix=no
11806 library_names_spec='$libname${shared_ext} $libname.a'
11807 dynamic_linker='OS/2 ld.exe'
11808 shlibpath_var=LIBPATH
11809 ;;
11810
11811osf3* | osf4* | osf5*)
11812 version_type=osf
11813 need_lib_prefix=no
11814 need_version=no
11815 soname_spec='${libname}${release}${shared_ext}$major'
11816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11817 shlibpath_var=LD_LIBRARY_PATH
11818 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11819 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11820 ;;
11821
11822rdos*)
11823 dynamic_linker=no
f35db108
WM
11824 ;;
11825
11826solaris*)
c915a581
JJ
11827 version_type=linux
11828 need_lib_prefix=no
11829 need_version=no
11830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11831 soname_spec='${libname}${release}${shared_ext}$major'
11832 shlibpath_var=LD_LIBRARY_PATH
11833 shlibpath_overrides_runpath=yes
11834 hardcode_into_libs=yes
11835 # ldd complains unless libraries are executable
11836 postinstall_cmds='chmod +x $lib'
11837 ;;
11838
11839sunos4*)
11840 version_type=sunos
11841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11842 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11843 shlibpath_var=LD_LIBRARY_PATH
11844 shlibpath_overrides_runpath=yes
11845 if test "$with_gnu_ld" = yes; then
11846 need_lib_prefix=no
11847 fi
11848 need_version=yes
11849 ;;
11850
11851sysv4 | sysv4.3*)
11852 version_type=linux
11853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11854 soname_spec='${libname}${release}${shared_ext}$major'
11855 shlibpath_var=LD_LIBRARY_PATH
11856 case $host_vendor in
11857 sni)
11858 shlibpath_overrides_runpath=no
11859 need_lib_prefix=no
11860 runpath_var=LD_RUN_PATH
11861 ;;
11862 siemens)
11863 need_lib_prefix=no
11864 ;;
11865 motorola)
11866 need_lib_prefix=no
11867 need_version=no
11868 shlibpath_overrides_runpath=no
11869 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
f35db108 11870 ;;
c915a581
JJ
11871 esac
11872 ;;
11873
11874sysv4*MP*)
11875 if test -d /usr/nec ;then
11876 version_type=linux
11877 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11878 soname_spec='$libname${shared_ext}.$major'
11879 shlibpath_var=LD_LIBRARY_PATH
11880 fi
11881 ;;
11882
11883sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11884 version_type=freebsd-elf
11885 need_lib_prefix=no
11886 need_version=no
11887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11888 soname_spec='${libname}${release}${shared_ext}$major'
11889 shlibpath_var=LD_LIBRARY_PATH
11890 shlibpath_overrides_runpath=yes
11891 hardcode_into_libs=yes
11892 if test "$with_gnu_ld" = yes; then
11893 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11894 else
11895 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11896 case $host_os in
11897 sco3.2v5*)
11898 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11899 ;;
f35db108 11900 esac
c915a581
JJ
11901 fi
11902 sys_lib_dlsearch_path_spec='/usr/lib'
11903 ;;
f35db108 11904
c915a581
JJ
11905tpf*)
11906 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11907 version_type=linux
11908 need_lib_prefix=no
11909 need_version=no
11910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11911 shlibpath_var=LD_LIBRARY_PATH
11912 shlibpath_overrides_runpath=no
11913 hardcode_into_libs=yes
f35db108 11914 ;;
f35db108 11915
c915a581
JJ
11916uts4*)
11917 version_type=linux
11918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11919 soname_spec='${libname}${release}${shared_ext}$major'
11920 shlibpath_var=LD_LIBRARY_PATH
11921 ;;
f35db108 11922
c915a581
JJ
11923*)
11924 dynamic_linker=no
11925 ;;
f35db108 11926esac
c915a581
JJ
11927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11928$as_echo "$dynamic_linker" >&6; }
11929test "$dynamic_linker" = no && can_build_shared=no
11930
11931variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11932if test "$GCC" = yes; then
11933 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
f35db108
WM
11934fi
11935
c915a581
JJ
11936if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11937 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11938fi
11939if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11940 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11941fi
f35db108
WM
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
f35db108
WM
11972
11973
c915a581
JJ
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
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12035$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12036hardcode_action=
12037if test -n "$hardcode_libdir_flag_spec" ||
12038 test -n "$runpath_var" ||
12039 test "X$hardcode_automatic" = "Xyes" ; then
12040
12041 # We can hardcode non-existent directories.
12042 if test "$hardcode_direct" != no &&
12043 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12044 # have to relink, otherwise we might link with an installed library
12045 # when we should be linking with a yet-to-be-installed one
12046 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12047 test "$hardcode_minus_L" != no; then
12048 # Linking always hardcodes the temporary library directory.
12049 hardcode_action=relink
12050 else
12051 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12052 hardcode_action=immediate
12053 fi
12054else
12055 # We cannot hardcode anything, or else we can only hardcode existing
12056 # directories.
12057 hardcode_action=unsupported
12058fi
12059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12060$as_echo "$hardcode_action" >&6; }
12061
12062if test "$hardcode_action" = relink ||
12063 test "$inherit_rpath" = yes; then
12064 # Fast installation is not supported
12065 enable_fast_install=no
12066elif test "$shlibpath_overrides_runpath" = yes ||
12067 test "$enable_shared" = no; then
12068 # Fast installation is not necessary
12069 enable_fast_install=needless
12070fi
12071
12072
12073
12074
12075
12076
12077 if test "x$enable_dlopen" != xyes; then
12078 enable_dlopen=unknown
12079 enable_dlopen_self=unknown
12080 enable_dlopen_self_static=unknown
12081else
12082 lt_cv_dlopen=no
12083 lt_cv_dlopen_libs=
12084
12085 case $host_os in
12086 beos*)
12087 lt_cv_dlopen="load_add_on"
12088 lt_cv_dlopen_libs=
12089 lt_cv_dlopen_self=yes
12090 ;;
12091
12092 mingw* | pw32* | cegcc*)
12093 lt_cv_dlopen="LoadLibrary"
12094 lt_cv_dlopen_libs=
12095 ;;
12096
12097 cygwin*)
12098 lt_cv_dlopen="dlopen"
12099 lt_cv_dlopen_libs=
12100 ;;
12101
12102 darwin*)
12103 # if libdl is installed we need to link against it
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12105$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 12106if ${ac_cv_lib_dl_dlopen+:} false; then :
c915a581
JJ
12107 $as_echo_n "(cached) " >&6
12108else
12109 ac_check_lib_save_LIBS=$LIBS
12110LIBS="-ldl $LIBS"
12111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112/* end confdefs.h. */
12113
12114/* Override any GCC internal prototype to avoid an error.
12115 Use char because int might match the return type of a GCC
12116 builtin and then its argument prototype would still apply. */
12117#ifdef __cplusplus
12118extern "C"
12119#endif
12120char dlopen ();
12121int
12122main ()
12123{
12124return dlopen ();
12125 ;
12126 return 0;
12127}
12128_ACEOF
12129if ac_fn_c_try_link "$LINENO"; then :
12130 ac_cv_lib_dl_dlopen=yes
12131else
12132 ac_cv_lib_dl_dlopen=no
12133fi
12134rm -f core conftest.err conftest.$ac_objext \
12135 conftest$ac_exeext conftest.$ac_ext
12136LIBS=$ac_check_lib_save_LIBS
12137fi
12138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12139$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 12140if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
c915a581
JJ
12141 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12142else
12143
12144 lt_cv_dlopen="dyld"
12145 lt_cv_dlopen_libs=
12146 lt_cv_dlopen_self=yes
12147
12148fi
12149
12150 ;;
12151
12152 *)
12153 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 12154if test "x$ac_cv_func_shl_load" = xyes; then :
c915a581
JJ
12155 lt_cv_dlopen="shl_load"
12156else
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12158$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 12159if ${ac_cv_lib_dld_shl_load+:} false; then :
c915a581
JJ
12160 $as_echo_n "(cached) " >&6
12161else
12162 ac_check_lib_save_LIBS=$LIBS
12163LIBS="-ldld $LIBS"
12164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165/* end confdefs.h. */
12166
12167/* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12170#ifdef __cplusplus
12171extern "C"
12172#endif
12173char shl_load ();
12174int
12175main ()
12176{
12177return shl_load ();
12178 ;
12179 return 0;
12180}
12181_ACEOF
12182if ac_fn_c_try_link "$LINENO"; then :
12183 ac_cv_lib_dld_shl_load=yes
12184else
12185 ac_cv_lib_dld_shl_load=no
12186fi
12187rm -f core conftest.err conftest.$ac_objext \
12188 conftest$ac_exeext conftest.$ac_ext
12189LIBS=$ac_check_lib_save_LIBS
12190fi
12191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12192$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 12193if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
c915a581
JJ
12194 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12195else
12196 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 12197if test "x$ac_cv_func_dlopen" = xyes; then :
c915a581
JJ
12198 lt_cv_dlopen="dlopen"
12199else
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12201$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 12202if ${ac_cv_lib_dl_dlopen+:} false; then :
c915a581
JJ
12203 $as_echo_n "(cached) " >&6
12204else
12205 ac_check_lib_save_LIBS=$LIBS
12206LIBS="-ldl $LIBS"
12207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12208/* end confdefs.h. */
12209
12210/* Override any GCC internal prototype to avoid an error.
12211 Use char because int might match the return type of a GCC
12212 builtin and then its argument prototype would still apply. */
12213#ifdef __cplusplus
12214extern "C"
12215#endif
12216char dlopen ();
12217int
12218main ()
12219{
12220return dlopen ();
12221 ;
12222 return 0;
12223}
12224_ACEOF
12225if ac_fn_c_try_link "$LINENO"; then :
12226 ac_cv_lib_dl_dlopen=yes
12227else
12228 ac_cv_lib_dl_dlopen=no
12229fi
12230rm -f core conftest.err conftest.$ac_objext \
12231 conftest$ac_exeext conftest.$ac_ext
12232LIBS=$ac_check_lib_save_LIBS
12233fi
12234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12235$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 12236if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
c915a581
JJ
12237 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12238else
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12240$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 12241if ${ac_cv_lib_svld_dlopen+:} false; then :
c915a581
JJ
12242 $as_echo_n "(cached) " >&6
12243else
12244 ac_check_lib_save_LIBS=$LIBS
12245LIBS="-lsvld $LIBS"
12246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247/* end confdefs.h. */
12248
12249/* Override any GCC internal prototype to avoid an error.
12250 Use char because int might match the return type of a GCC
12251 builtin and then its argument prototype would still apply. */
12252#ifdef __cplusplus
12253extern "C"
12254#endif
12255char dlopen ();
12256int
12257main ()
12258{
12259return dlopen ();
12260 ;
12261 return 0;
12262}
12263_ACEOF
12264if ac_fn_c_try_link "$LINENO"; then :
12265 ac_cv_lib_svld_dlopen=yes
12266else
12267 ac_cv_lib_svld_dlopen=no
12268fi
12269rm -f core conftest.err conftest.$ac_objext \
12270 conftest$ac_exeext conftest.$ac_ext
12271LIBS=$ac_check_lib_save_LIBS
12272fi
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12274$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 12275if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
c915a581
JJ
12276 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12277else
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12279$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 12280if ${ac_cv_lib_dld_dld_link+:} false; then :
c915a581
JJ
12281 $as_echo_n "(cached) " >&6
12282else
12283 ac_check_lib_save_LIBS=$LIBS
12284LIBS="-ldld $LIBS"
12285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286/* end confdefs.h. */
12287
12288/* Override any GCC internal prototype to avoid an error.
12289 Use char because int might match the return type of a GCC
12290 builtin and then its argument prototype would still apply. */
12291#ifdef __cplusplus
12292extern "C"
12293#endif
12294char dld_link ();
12295int
12296main ()
12297{
12298return dld_link ();
12299 ;
12300 return 0;
12301}
12302_ACEOF
12303if ac_fn_c_try_link "$LINENO"; then :
12304 ac_cv_lib_dld_dld_link=yes
12305else
12306 ac_cv_lib_dld_dld_link=no
12307fi
12308rm -f core conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12310LIBS=$ac_check_lib_save_LIBS
12311fi
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12313$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 12314if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
c915a581
JJ
12315 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12316fi
12317
12318
12319fi
12320
12321
12322fi
12323
12324
12325fi
12326
12327
12328fi
12329
12330
12331fi
12332
12333 ;;
12334 esac
12335
12336 if test "x$lt_cv_dlopen" != xno; then
12337 enable_dlopen=yes
12338 else
12339 enable_dlopen=no
12340 fi
12341
12342 case $lt_cv_dlopen in
12343 dlopen)
12344 save_CPPFLAGS="$CPPFLAGS"
12345 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12346
12347 save_LDFLAGS="$LDFLAGS"
12348 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12349
12350 save_LIBS="$LIBS"
12351 LIBS="$lt_cv_dlopen_libs $LIBS"
12352
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12354$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 12355if ${lt_cv_dlopen_self+:} false; then :
c915a581
JJ
12356 $as_echo_n "(cached) " >&6
12357else
12358 if test "$cross_compiling" = yes; then :
12359 lt_cv_dlopen_self=cross
12360else
12361 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12362 lt_status=$lt_dlunknown
12363 cat > conftest.$ac_ext <<_LT_EOF
e8e66971 12364#line 12364 "configure"
c915a581
JJ
12365#include "confdefs.h"
12366
12367#if HAVE_DLFCN_H
12368#include <dlfcn.h>
12369#endif
12370
12371#include <stdio.h>
12372
12373#ifdef RTLD_GLOBAL
12374# define LT_DLGLOBAL RTLD_GLOBAL
12375#else
12376# ifdef DL_GLOBAL
12377# define LT_DLGLOBAL DL_GLOBAL
12378# else
12379# define LT_DLGLOBAL 0
12380# endif
12381#endif
12382
12383/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12384 find out it does not work in some platform. */
12385#ifndef LT_DLLAZY_OR_NOW
12386# ifdef RTLD_LAZY
12387# define LT_DLLAZY_OR_NOW RTLD_LAZY
12388# else
12389# ifdef DL_LAZY
12390# define LT_DLLAZY_OR_NOW DL_LAZY
12391# else
12392# ifdef RTLD_NOW
12393# define LT_DLLAZY_OR_NOW RTLD_NOW
12394# else
12395# ifdef DL_NOW
12396# define LT_DLLAZY_OR_NOW DL_NOW
12397# else
12398# define LT_DLLAZY_OR_NOW 0
12399# endif
12400# endif
12401# endif
12402# endif
12403#endif
12404
12405/* When -fvisbility=hidden is used, assume the code has been annotated
12406 correspondingly for the symbols needed. */
12407#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12408void fnord () __attribute__((visibility("default")));
12409#endif
12410
12411void fnord () { int i=42; }
12412int main ()
12413{
12414 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12415 int status = $lt_dlunknown;
12416
12417 if (self)
12418 {
12419 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12420 else
12421 {
12422 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12423 else puts (dlerror ());
12424 }
12425 /* dlclose (self); */
12426 }
12427 else
12428 puts (dlerror ());
12429
12430 return status;
12431}
12432_LT_EOF
12433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12434 (eval $ac_link) 2>&5
12435 ac_status=$?
12436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12437 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12438 (./conftest; exit; ) >&5 2>/dev/null
12439 lt_status=$?
12440 case x$lt_status in
12441 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12442 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12443 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12444 esac
12445 else :
12446 # compilation failed
12447 lt_cv_dlopen_self=no
12448 fi
12449fi
12450rm -fr conftest*
12451
12452
12453fi
12454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12455$as_echo "$lt_cv_dlopen_self" >&6; }
12456
12457 if test "x$lt_cv_dlopen_self" = xyes; then
12458 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12460$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 12461if ${lt_cv_dlopen_self_static+:} false; then :
c915a581
JJ
12462 $as_echo_n "(cached) " >&6
12463else
12464 if test "$cross_compiling" = yes; then :
12465 lt_cv_dlopen_self_static=cross
12466else
12467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12468 lt_status=$lt_dlunknown
12469 cat > conftest.$ac_ext <<_LT_EOF
e8e66971 12470#line 12470 "configure"
c915a581
JJ
12471#include "confdefs.h"
12472
12473#if HAVE_DLFCN_H
12474#include <dlfcn.h>
12475#endif
12476
12477#include <stdio.h>
12478
12479#ifdef RTLD_GLOBAL
12480# define LT_DLGLOBAL RTLD_GLOBAL
12481#else
12482# ifdef DL_GLOBAL
12483# define LT_DLGLOBAL DL_GLOBAL
12484# else
12485# define LT_DLGLOBAL 0
12486# endif
12487#endif
12488
12489/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12490 find out it does not work in some platform. */
12491#ifndef LT_DLLAZY_OR_NOW
12492# ifdef RTLD_LAZY
12493# define LT_DLLAZY_OR_NOW RTLD_LAZY
12494# else
12495# ifdef DL_LAZY
12496# define LT_DLLAZY_OR_NOW DL_LAZY
12497# else
12498# ifdef RTLD_NOW
12499# define LT_DLLAZY_OR_NOW RTLD_NOW
12500# else
12501# ifdef DL_NOW
12502# define LT_DLLAZY_OR_NOW DL_NOW
12503# else
12504# define LT_DLLAZY_OR_NOW 0
12505# endif
12506# endif
12507# endif
12508# endif
12509#endif
12510
12511/* When -fvisbility=hidden is used, assume the code has been annotated
12512 correspondingly for the symbols needed. */
12513#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12514void fnord () __attribute__((visibility("default")));
12515#endif
12516
12517void fnord () { int i=42; }
12518int main ()
12519{
12520 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12521 int status = $lt_dlunknown;
12522
12523 if (self)
12524 {
12525 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12526 else
12527 {
12528 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12529 else puts (dlerror ());
12530 }
12531 /* dlclose (self); */
12532 }
12533 else
12534 puts (dlerror ());
12535
12536 return status;
12537}
12538_LT_EOF
12539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12540 (eval $ac_link) 2>&5
12541 ac_status=$?
12542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12543 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12544 (./conftest; exit; ) >&5 2>/dev/null
12545 lt_status=$?
12546 case x$lt_status in
12547 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12548 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12549 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12550 esac
12551 else :
12552 # compilation failed
12553 lt_cv_dlopen_self_static=no
12554 fi
12555fi
12556rm -fr conftest*
12557
12558
12559fi
12560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12561$as_echo "$lt_cv_dlopen_self_static" >&6; }
12562 fi
12563
12564 CPPFLAGS="$save_CPPFLAGS"
12565 LDFLAGS="$save_LDFLAGS"
12566 LIBS="$save_LIBS"
12567 ;;
12568 esac
12569
12570 case $lt_cv_dlopen_self in
12571 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12572 *) enable_dlopen_self=unknown ;;
12573 esac
12574
12575 case $lt_cv_dlopen_self_static in
12576 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12577 *) enable_dlopen_self_static=unknown ;;
12578 esac
12579fi
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597striplib=
12598old_striplib=
12599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12600$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12601if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12602 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12603 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12605$as_echo "yes" >&6; }
12606else
12607# FIXME - insert some real tests, host_os isn't really good enough
12608 case $host_os in
12609 darwin*)
12610 if test -n "$STRIP" ; then
12611 striplib="$STRIP -x"
12612 old_striplib="$STRIP -S"
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12614$as_echo "yes" >&6; }
12615 else
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617$as_echo "no" >&6; }
12618 fi
12619 ;;
12620 *)
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622$as_echo "no" >&6; }
12623 ;;
12624 esac
12625fi
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638 # Report which library types will actually be built
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12640$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12642$as_echo "$can_build_shared" >&6; }
12643
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12645$as_echo_n "checking whether to build shared libraries... " >&6; }
12646 test "$can_build_shared" = "no" && enable_shared=no
12647
12648 # On AIX, shared libraries and static libraries use the same namespace, and
12649 # are all built from PIC.
12650 case $host_os in
12651 aix3*)
12652 test "$enable_shared" = yes && enable_static=no
12653 if test -n "$RANLIB"; then
12654 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12655 postinstall_cmds='$RANLIB $lib'
12656 fi
12657 ;;
12658
12659 aix[4-9]*)
12660 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12661 test "$enable_shared" = yes && enable_static=no
12662 fi
12663 ;;
12664 esac
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12666$as_echo "$enable_shared" >&6; }
12667
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12669$as_echo_n "checking whether to build static libraries... " >&6; }
12670 # Make sure either enable_shared or enable_static is yes.
12671 test "$enable_shared" = yes || enable_static=yes
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12673$as_echo "$enable_static" >&6; }
12674
12675
12676
12677
12678fi
12679ac_ext=c
12680ac_cpp='$CPP $CPPFLAGS'
12681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12683ac_compiler_gnu=$ac_cv_c_compiler_gnu
12684
12685CC="$lt_save_CC"
12686
12687 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12688 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12689 (test "X$CXX" != "Xg++"))) ; then
12690 ac_ext=cpp
12691ac_cpp='$CXXCPP $CPPFLAGS'
12692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12696$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12697if test -z "$CXXCPP"; then
22e05272 12698 if ${ac_cv_prog_CXXCPP+:} false; then :
c915a581
JJ
12699 $as_echo_n "(cached) " >&6
12700else
12701 # Double quotes because CXXCPP needs to be expanded
12702 for CXXCPP in "$CXX -E" "/lib/cpp"
12703 do
12704 ac_preproc_ok=false
12705for ac_cxx_preproc_warn_flag in '' yes
12706do
12707 # Use a header file that comes with gcc, so configuring glibc
12708 # with a fresh cross-compiler works.
12709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12710 # <limits.h> exists even on freestanding compilers.
12711 # On the NeXT, cc -E runs the code through the compiler's parser,
12712 # not just through cpp. "Syntax error" is here to catch this case.
12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714/* end confdefs.h. */
12715#ifdef __STDC__
12716# include <limits.h>
12717#else
12718# include <assert.h>
12719#endif
12720 Syntax error
12721_ACEOF
12722if ac_fn_cxx_try_cpp "$LINENO"; then :
12723
12724else
12725 # Broken: fails on valid input.
12726continue
12727fi
22e05272 12728rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
12729
12730 # OK, works on sane cases. Now check whether nonexistent headers
12731 # can be detected and how.
12732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12733/* end confdefs.h. */
12734#include <ac_nonexistent.h>
12735_ACEOF
12736if ac_fn_cxx_try_cpp "$LINENO"; then :
12737 # Broken: success on invalid input.
12738continue
12739else
12740 # Passes both tests.
12741ac_preproc_ok=:
12742break
12743fi
22e05272 12744rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
12745
12746done
12747# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 12748rm -f conftest.i conftest.err conftest.$ac_ext
c915a581
JJ
12749if $ac_preproc_ok; then :
12750 break
12751fi
12752
12753 done
12754 ac_cv_prog_CXXCPP=$CXXCPP
12755
12756fi
12757 CXXCPP=$ac_cv_prog_CXXCPP
12758else
12759 ac_cv_prog_CXXCPP=$CXXCPP
12760fi
12761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12762$as_echo "$CXXCPP" >&6; }
12763ac_preproc_ok=false
12764for ac_cxx_preproc_warn_flag in '' yes
12765do
12766 # Use a header file that comes with gcc, so configuring glibc
12767 # with a fresh cross-compiler works.
12768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12769 # <limits.h> exists even on freestanding compilers.
12770 # On the NeXT, cc -E runs the code through the compiler's parser,
12771 # not just through cpp. "Syntax error" is here to catch this case.
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773/* end confdefs.h. */
12774#ifdef __STDC__
12775# include <limits.h>
12776#else
12777# include <assert.h>
12778#endif
12779 Syntax error
12780_ACEOF
12781if ac_fn_cxx_try_cpp "$LINENO"; then :
12782
12783else
12784 # Broken: fails on valid input.
12785continue
12786fi
22e05272 12787rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
12788
12789 # OK, works on sane cases. Now check whether nonexistent headers
12790 # can be detected and how.
12791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792/* end confdefs.h. */
12793#include <ac_nonexistent.h>
12794_ACEOF
12795if ac_fn_cxx_try_cpp "$LINENO"; then :
12796 # Broken: success on invalid input.
12797continue
12798else
12799 # Passes both tests.
12800ac_preproc_ok=:
12801break
12802fi
22e05272 12803rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
12804
12805done
12806# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 12807rm -f conftest.i conftest.err conftest.$ac_ext
c915a581
JJ
12808if $ac_preproc_ok; then :
12809
12810else
12811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12813as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12814See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
12815fi
12816
12817ac_ext=c
12818ac_cpp='$CPP $CPPFLAGS'
12819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12821ac_compiler_gnu=$ac_cv_c_compiler_gnu
12822
12823else
12824 _lt_caught_CXX_error=yes
12825fi
12826
12827ac_ext=cpp
12828ac_cpp='$CXXCPP $CPPFLAGS'
12829ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12830ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12831ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12832
12833archive_cmds_need_lc_CXX=no
12834allow_undefined_flag_CXX=
12835always_export_symbols_CXX=no
12836archive_expsym_cmds_CXX=
12837compiler_needs_object_CXX=no
12838export_dynamic_flag_spec_CXX=
12839hardcode_direct_CXX=no
12840hardcode_direct_absolute_CXX=no
12841hardcode_libdir_flag_spec_CXX=
12842hardcode_libdir_flag_spec_ld_CXX=
12843hardcode_libdir_separator_CXX=
12844hardcode_minus_L_CXX=no
12845hardcode_shlibpath_var_CXX=unsupported
12846hardcode_automatic_CXX=no
12847inherit_rpath_CXX=no
12848module_cmds_CXX=
12849module_expsym_cmds_CXX=
12850link_all_deplibs_CXX=unknown
12851old_archive_cmds_CXX=$old_archive_cmds
12852reload_flag_CXX=$reload_flag
12853reload_cmds_CXX=$reload_cmds
12854no_undefined_flag_CXX=
12855whole_archive_flag_spec_CXX=
12856enable_shared_with_static_runtimes_CXX=no
12857
12858# Source file extension for C++ test sources.
12859ac_ext=cpp
12860
12861# Object file extension for compiled C++ test sources.
12862objext=o
12863objext_CXX=$objext
12864
12865# No sense in running all these tests if we already determined that
12866# the CXX compiler isn't working. Some variables (like enable_shared)
12867# are currently assumed to apply to all compilers on this platform,
12868# and will be corrupted by setting them based on a non-working compiler.
12869if test "$_lt_caught_CXX_error" != yes; then
12870 # Code to be used in simple compile tests
12871 lt_simple_compile_test_code="int some_variable = 0;"
12872
12873 # Code to be used in simple link tests
12874 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12875
12876 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12877
12878
12879
12880
12881
12882
12883# If no C compiler was specified, use CC.
12884LTCC=${LTCC-"$CC"}
12885
12886# If no C compiler flags were specified, use CFLAGS.
12887LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12888
12889# Allow CC to be a program name with arguments.
12890compiler=$CC
12891
12892
12893 # save warnings/boilerplate of simple test code
12894 ac_outfile=conftest.$ac_objext
12895echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12896eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12897_lt_compiler_boilerplate=`cat conftest.err`
12898$RM conftest*
12899
12900 ac_outfile=conftest.$ac_objext
12901echo "$lt_simple_link_test_code" >conftest.$ac_ext
12902eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12903_lt_linker_boilerplate=`cat conftest.err`
12904$RM -r conftest*
12905
12906
12907 # Allow CC to be a program name with arguments.
12908 lt_save_CC=$CC
12909 lt_save_LD=$LD
12910 lt_save_GCC=$GCC
12911 GCC=$GXX
12912 lt_save_with_gnu_ld=$with_gnu_ld
12913 lt_save_path_LD=$lt_cv_path_LD
12914 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12915 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12916 else
12917 $as_unset lt_cv_prog_gnu_ld
12918 fi
12919 if test -n "${lt_cv_path_LDCXX+set}"; then
12920 lt_cv_path_LD=$lt_cv_path_LDCXX
12921 else
12922 $as_unset lt_cv_path_LD
12923 fi
12924 test -z "${LDCXX+set}" || LD=$LDCXX
12925 CC=${CXX-"c++"}
12926 compiler=$CC
12927 compiler_CXX=$CC
12928 for cc_temp in $compiler""; do
12929 case $cc_temp in
12930 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12931 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12932 \-*) ;;
12933 *) break;;
12934 esac
12935done
12936cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12937
12938
12939 if test -n "$compiler"; then
12940 # We don't want -fno-exception when compiling C++ code, so set the
12941 # no_builtin_flag separately
12942 if test "$GXX" = yes; then
12943 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12944 else
12945 lt_prog_compiler_no_builtin_flag_CXX=
12946 fi
12947
12948 if test "$GXX" = yes; then
12949 # Set up default GNU C++ configuration
12950
12951
12952
12953# Check whether --with-gnu-ld was given.
12954if test "${with_gnu_ld+set}" = set; then :
12955 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12956else
12957 with_gnu_ld=no
12958fi
12959
12960ac_prog=ld
12961if test "$GCC" = yes; then
12962 # Check if gcc -print-prog-name=ld gives a path.
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12964$as_echo_n "checking for ld used by $CC... " >&6; }
12965 case $host in
12966 *-*-mingw*)
12967 # gcc leaves a trailing carriage return which upsets mingw
12968 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12969 *)
12970 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12971 esac
12972 case $ac_prog in
12973 # Accept absolute paths.
12974 [\\/]* | ?:[\\/]*)
12975 re_direlt='/[^/][^/]*/\.\./'
12976 # Canonicalize the pathname of ld
12977 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12978 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12979 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12980 done
12981 test -z "$LD" && LD="$ac_prog"
12982 ;;
12983 "")
12984 # If it fails, then pretend we aren't using GCC.
12985 ac_prog=ld
12986 ;;
12987 *)
12988 # If it is relative, then search for the first ld in PATH.
12989 with_gnu_ld=unknown
12990 ;;
12991 esac
12992elif test "$with_gnu_ld" = yes; then
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12994$as_echo_n "checking for GNU ld... " >&6; }
12995else
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12997$as_echo_n "checking for non-GNU ld... " >&6; }
12998fi
22e05272 12999if ${lt_cv_path_LD+:} false; then :
c915a581
JJ
13000 $as_echo_n "(cached) " >&6
13001else
13002 if test -z "$LD"; then
13003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13004 for ac_dir in $PATH; do
13005 IFS="$lt_save_ifs"
13006 test -z "$ac_dir" && ac_dir=.
13007 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13008 lt_cv_path_LD="$ac_dir/$ac_prog"
13009 # Check to see if the program is GNU ld. I'd rather use --version,
13010 # but apparently some variants of GNU ld only accept -v.
13011 # Break only if it was the GNU/non-GNU ld that we prefer.
13012 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13013 *GNU* | *'with BFD'*)
13014 test "$with_gnu_ld" != no && break
13015 ;;
13016 *)
13017 test "$with_gnu_ld" != yes && break
13018 ;;
13019 esac
13020 fi
13021 done
13022 IFS="$lt_save_ifs"
13023else
13024 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13025fi
13026fi
13027
13028LD="$lt_cv_path_LD"
13029if test -n "$LD"; then
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13031$as_echo "$LD" >&6; }
13032else
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034$as_echo "no" >&6; }
13035fi
22e05272 13036test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
c915a581
JJ
13037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13038$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 13039if ${lt_cv_prog_gnu_ld+:} false; then :
c915a581
JJ
13040 $as_echo_n "(cached) " >&6
13041else
13042 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13043case `$LD -v 2>&1 </dev/null` in
13044*GNU* | *'with BFD'*)
13045 lt_cv_prog_gnu_ld=yes
13046 ;;
13047*)
13048 lt_cv_prog_gnu_ld=no
13049 ;;
13050esac
13051fi
13052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13053$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13054with_gnu_ld=$lt_cv_prog_gnu_ld
13055
13056
13057
13058
13059
13060
13061
13062 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13063 # archiving commands below assume that GNU ld is being used.
13064 if test "$with_gnu_ld" = yes; then
a699d672
L
13065 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13066 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
13067
13068 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13069 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13070
13071 # If archive_cmds runs LD, not CC, wlarc should be empty
13072 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13073 # investigate it a little bit more. (MM)
13074 wlarc='${wl}'
13075
13076 # ancient GNU ld didn't support --whole-archive et. al.
13077 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13078 $GREP 'no-whole-archive' > /dev/null; then
13079 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13080 else
13081 whole_archive_flag_spec_CXX=
13082 fi
13083 else
13084 with_gnu_ld=no
13085 wlarc=
13086
13087 # A generic and very simple default shared library creation
13088 # command for GNU C++ for the case where it uses the native
13089 # linker, instead of GNU ld. If possible, this setting should
13090 # overridden to take advantage of the native linker features on
13091 # the platform it is being used on.
13092 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13093 fi
13094
13095 # Commands to make compiler produce verbose output that lists
13096 # what "hidden" libraries, object files and flags are used when
13097 # linking a shared library.
13098 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13099
13100 else
13101 GXX=no
13102 with_gnu_ld=no
13103 wlarc=
13104 fi
13105
13106 # PORTME: fill in a description of your system's C++ link characteristics
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13108$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13109 ld_shlibs_CXX=yes
13110 case $host_os in
13111 aix3*)
13112 # FIXME: insert proper C++ library support
13113 ld_shlibs_CXX=no
13114 ;;
13115 aix[4-9]*)
13116 if test "$host_cpu" = ia64; then
13117 # On IA64, the linker does run time linking by default, so we don't
13118 # have to do anything special.
13119 aix_use_runtimelinking=no
13120 exp_sym_flag='-Bexport'
13121 no_entry_flag=""
13122 else
13123 aix_use_runtimelinking=no
13124
13125 # Test if we are trying to use run time linking or normal
13126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13127 # need to do runtime linking.
13128 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13129 for ld_flag in $LDFLAGS; do
13130 case $ld_flag in
13131 *-brtl*)
13132 aix_use_runtimelinking=yes
13133 break
13134 ;;
13135 esac
13136 done
13137 ;;
13138 esac
13139
13140 exp_sym_flag='-bexport'
13141 no_entry_flag='-bnoentry'
13142 fi
13143
13144 # When large executables or shared objects are built, AIX ld can
13145 # have problems creating the table of contents. If linking a library
13146 # or program results in "error TOC overflow" add -mminimal-toc to
13147 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13148 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13149
13150 archive_cmds_CXX=''
13151 hardcode_direct_CXX=yes
13152 hardcode_direct_absolute_CXX=yes
13153 hardcode_libdir_separator_CXX=':'
13154 link_all_deplibs_CXX=yes
13155 file_list_spec_CXX='${wl}-f,'
13156
13157 if test "$GXX" = yes; then
13158 case $host_os in aix4.[012]|aix4.[012].*)
13159 # We only want to do this on AIX 4.2 and lower, the check
13160 # below for broken collect2 doesn't work under 4.3+
13161 collect2name=`${CC} -print-prog-name=collect2`
13162 if test -f "$collect2name" &&
13163 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13164 then
13165 # We have reworked collect2
13166 :
13167 else
13168 # We have old collect2
13169 hardcode_direct_CXX=unsupported
13170 # It fails to find uninstalled libraries when the uninstalled
13171 # path is not listed in the libpath. Setting hardcode_minus_L
13172 # to unsupported forces relinking
13173 hardcode_minus_L_CXX=yes
13174 hardcode_libdir_flag_spec_CXX='-L$libdir'
13175 hardcode_libdir_separator_CXX=
13176 fi
13177 esac
13178 shared_flag='-shared'
13179 if test "$aix_use_runtimelinking" = yes; then
13180 shared_flag="$shared_flag "'${wl}-G'
13181 fi
13182 else
13183 # not using gcc
13184 if test "$host_cpu" = ia64; then
13185 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13186 # chokes on -Wl,-G. The following line is correct:
13187 shared_flag='-G'
13188 else
13189 if test "$aix_use_runtimelinking" = yes; then
13190 shared_flag='${wl}-G'
13191 else
13192 shared_flag='${wl}-bM:SRE'
13193 fi
13194 fi
13195 fi
13196
13197 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13198 # It seems that -bexpall does not export symbols beginning with
13199 # underscore (_), so it is better to generate a list of symbols to
13200 # export.
13201 always_export_symbols_CXX=yes
13202 if test "$aix_use_runtimelinking" = yes; then
13203 # Warning - without using the other runtime loading flags (-brtl),
13204 # -berok will link without error, but may produce a broken library.
13205 allow_undefined_flag_CXX='-berok'
13206 # Determine the default libpath from the value encoded in an empty
13207 # executable.
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209/* end confdefs.h. */
13210
13211int
13212main ()
13213{
13214
13215 ;
13216 return 0;
13217}
13218_ACEOF
13219if ac_fn_cxx_try_link "$LINENO"; then :
13220
13221lt_aix_libpath_sed='
13222 /Import File Strings/,/^$/ {
13223 /^0/ {
13224 s/^0 *\(.*\)$/\1/
13225 p
13226 }
13227 }'
13228aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13229# Check for a 64-bit object if we didn't find anything.
13230if test -z "$aix_libpath"; then
13231 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13232fi
13233fi
13234rm -f core conftest.err conftest.$ac_objext \
13235 conftest$ac_exeext conftest.$ac_ext
13236if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13237
13238 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13239
13240 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"
13241 else
13242 if test "$host_cpu" = ia64; then
13243 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13244 allow_undefined_flag_CXX="-z nodefs"
13245 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"
13246 else
13247 # Determine the default libpath from the value encoded in an
13248 # empty executable.
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250/* end confdefs.h. */
13251
13252int
13253main ()
13254{
13255
13256 ;
13257 return 0;
13258}
13259_ACEOF
13260if ac_fn_cxx_try_link "$LINENO"; then :
13261
13262lt_aix_libpath_sed='
13263 /Import File Strings/,/^$/ {
13264 /^0/ {
13265 s/^0 *\(.*\)$/\1/
13266 p
13267 }
13268 }'
13269aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13270# Check for a 64-bit object if we didn't find anything.
13271if test -z "$aix_libpath"; then
13272 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13273fi
13274fi
13275rm -f core conftest.err conftest.$ac_objext \
13276 conftest$ac_exeext conftest.$ac_ext
13277if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13278
13279 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13280 # Warning - without using the other run time loading flags,
13281 # -berok will link without error, but may produce a broken library.
13282 no_undefined_flag_CXX=' ${wl}-bernotok'
13283 allow_undefined_flag_CXX=' ${wl}-berok'
13284 if test "$with_gnu_ld" = yes; then
13285 # We only use this code for GNU lds that support --whole-archive.
13286 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13287 else
13288 # Exported symbols can be pulled into shared objects from archives
13289 whole_archive_flag_spec_CXX='$convenience'
13290 fi
13291 archive_cmds_need_lc_CXX=yes
13292 # This is similar to how AIX traditionally builds its shared
13293 # libraries.
13294 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'
13295 fi
13296 fi
13297 ;;
13298
13299 beos*)
13300 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13301 allow_undefined_flag_CXX=unsupported
13302 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13303 # support --undefined. This deserves some investigation. FIXME
13304 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13305 else
13306 ld_shlibs_CXX=no
13307 fi
13308 ;;
13309
13310 chorus*)
13311 case $cc_basename in
13312 *)
13313 # FIXME: insert proper C++ library support
13314 ld_shlibs_CXX=no
13315 ;;
13316 esac
13317 ;;
13318
13319 cygwin* | mingw* | pw32* | cegcc*)
13320 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13321 # as there is no search path for DLLs.
13322 hardcode_libdir_flag_spec_CXX='-L$libdir'
13323 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13324 allow_undefined_flag_CXX=unsupported
13325 always_export_symbols_CXX=no
13326 enable_shared_with_static_runtimes_CXX=yes
13327
13328 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13329 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'
13330 # If the export-symbols file already is a .def file (1st line
13331 # is EXPORTS), use it as is; otherwise, prepend...
13332 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13333 cp $export_symbols $output_objdir/$soname.def;
13334 else
13335 echo EXPORTS > $output_objdir/$soname.def;
13336 cat $export_symbols >> $output_objdir/$soname.def;
13337 fi~
13338 $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'
13339 else
13340 ld_shlibs_CXX=no
13341 fi
13342 ;;
13343 darwin* | rhapsody*)
13344
13345
13346 archive_cmds_need_lc_CXX=no
13347 hardcode_direct_CXX=no
13348 hardcode_automatic_CXX=yes
13349 hardcode_shlibpath_var_CXX=unsupported
13350 if test "$lt_cv_ld_force_load" = "yes"; then
13351 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\"`'
13352 else
13353 whole_archive_flag_spec_CXX=''
13354 fi
13355 link_all_deplibs_CXX=yes
13356 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13357 case $cc_basename in
13358 ifort*) _lt_dar_can_shared=yes ;;
13359 *) _lt_dar_can_shared=$GCC ;;
13360 esac
13361 if test "$_lt_dar_can_shared" = "yes"; then
13362 output_verbose_link_cmd=func_echo_all
13363 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}"
13364 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13365 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}"
13366 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}"
13367 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13368 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}"
13369 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}"
13370 fi
13371
13372 else
13373 ld_shlibs_CXX=no
13374 fi
13375
13376 ;;
13377
13378 dgux*)
13379 case $cc_basename in
13380 ec++*)
13381 # FIXME: insert proper C++ library support
13382 ld_shlibs_CXX=no
13383 ;;
13384 ghcx*)
13385 # Green Hills C++ Compiler
13386 # FIXME: insert proper C++ library support
13387 ld_shlibs_CXX=no
13388 ;;
13389 *)
13390 # FIXME: insert proper C++ library support
13391 ld_shlibs_CXX=no
13392 ;;
13393 esac
13394 ;;
13395
13396 freebsd2.*)
13397 # C++ shared libraries reported to be fairly broken before
13398 # switch to ELF
13399 ld_shlibs_CXX=no
13400 ;;
13401
13402 freebsd-elf*)
13403 archive_cmds_need_lc_CXX=no
13404 ;;
13405
13406 freebsd* | dragonfly*)
13407 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13408 # conventions
13409 ld_shlibs_CXX=yes
13410 ;;
13411
13412 gnu*)
13413 ;;
13414
13415 haiku*)
13416 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13417 link_all_deplibs_CXX=yes
13418 ;;
13419
13420 hpux9*)
13421 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13422 hardcode_libdir_separator_CXX=:
13423 export_dynamic_flag_spec_CXX='${wl}-E'
13424 hardcode_direct_CXX=yes
13425 hardcode_minus_L_CXX=yes # Not in the search PATH,
13426 # but as the default
13427 # location of the library.
13428
13429 case $cc_basename in
13430 CC*)
13431 # FIXME: insert proper C++ library support
13432 ld_shlibs_CXX=no
13433 ;;
13434 aCC*)
13435 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'
13436 # Commands to make compiler produce verbose output that lists
13437 # what "hidden" libraries, object files and flags are used when
13438 # linking a shared library.
13439 #
13440 # There doesn't appear to be a way to prevent this compiler from
13441 # explicitly linking system object files so we need to strip them
13442 # from the output so that they don't get included in the library
13443 # dependencies.
13444 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"'
13445 ;;
13446 *)
13447 if test "$GXX" = yes; then
13448 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'
13449 else
13450 # FIXME: insert proper C++ library support
13451 ld_shlibs_CXX=no
13452 fi
13453 ;;
13454 esac
13455 ;;
13456
13457 hpux10*|hpux11*)
13458 if test $with_gnu_ld = no; then
13459 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13460 hardcode_libdir_separator_CXX=:
13461
13462 case $host_cpu in
13463 hppa*64*|ia64*)
13464 ;;
13465 *)
13466 export_dynamic_flag_spec_CXX='${wl}-E'
13467 ;;
13468 esac
13469 fi
13470 case $host_cpu in
13471 hppa*64*|ia64*)
13472 hardcode_direct_CXX=no
13473 hardcode_shlibpath_var_CXX=no
13474 ;;
13475 *)
13476 hardcode_direct_CXX=yes
13477 hardcode_direct_absolute_CXX=yes
13478 hardcode_minus_L_CXX=yes # Not in the search PATH,
13479 # but as the default
13480 # location of the library.
13481 ;;
13482 esac
13483
13484 case $cc_basename in
13485 CC*)
13486 # FIXME: insert proper C++ library support
13487 ld_shlibs_CXX=no
13488 ;;
13489 aCC*)
13490 case $host_cpu in
13491 hppa*64*)
13492 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13493 ;;
13494 ia64*)
13495 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13496 ;;
13497 *)
13498 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13499 ;;
13500 esac
13501 # Commands to make compiler produce verbose output that lists
13502 # what "hidden" libraries, object files and flags are used when
13503 # linking a shared library.
13504 #
13505 # There doesn't appear to be a way to prevent this compiler from
13506 # explicitly linking system object files so we need to strip them
13507 # from the output so that they don't get included in the library
13508 # dependencies.
13509 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"'
13510 ;;
13511 *)
13512 if test "$GXX" = yes; then
13513 if test $with_gnu_ld = no; then
13514 case $host_cpu in
13515 hppa*64*)
13516 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13517 ;;
13518 ia64*)
13519 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13520 ;;
13521 *)
13522 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'
13523 ;;
13524 esac
13525 fi
13526 else
13527 # FIXME: insert proper C++ library support
13528 ld_shlibs_CXX=no
13529 fi
13530 ;;
13531 esac
13532 ;;
13533
13534 interix[3-9]*)
13535 hardcode_direct_CXX=no
13536 hardcode_shlibpath_var_CXX=no
13537 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13538 export_dynamic_flag_spec_CXX='${wl}-E'
13539 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13540 # Instead, shared libraries are loaded at an image base (0x10000000 by
13541 # default) and relocated if they conflict, which is a slow very memory
13542 # consuming and fragmenting process. To avoid this, we pick a random,
13543 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13544 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13545 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'
13546 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'
13547 ;;
13548 irix5* | irix6*)
13549 case $cc_basename in
13550 CC*)
13551 # SGI C++
13552 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'
13553
13554 # Archives containing C++ object files must be created using
13555 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13556 # necessary to make sure instantiated templates are included
13557 # in the archive.
13558 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13559 ;;
13560 *)
13561 if test "$GXX" = yes; then
13562 if test "$with_gnu_ld" = no; then
13563 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'
13564 else
13565 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'
13566 fi
13567 fi
13568 link_all_deplibs_CXX=yes
13569 ;;
13570 esac
13571 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13572 hardcode_libdir_separator_CXX=:
13573 inherit_rpath_CXX=yes
13574 ;;
13575
13576 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13577 case $cc_basename in
13578 KCC*)
13579 # Kuck and Associates, Inc. (KAI) C++ Compiler
13580
13581 # KCC will only create a shared library if the output file
13582 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13583 # to its proper name (with version) after linking.
13584 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'
13585 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'
13586 # Commands to make compiler produce verbose output that lists
13587 # what "hidden" libraries, object files and flags are used when
13588 # linking a shared library.
13589 #
13590 # There doesn't appear to be a way to prevent this compiler from
13591 # explicitly linking system object files so we need to strip them
13592 # from the output so that they don't get included in the library
13593 # dependencies.
13594 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"'
13595
13596 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13597 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13598
13599 # Archives containing C++ object files must be created using
13600 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13601 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13602 ;;
13603 icpc* | ecpc* )
13604 # Intel C++
13605 with_gnu_ld=yes
13606 # version 8.0 and above of icpc choke on multiply defined symbols
13607 # if we add $predep_objects and $postdep_objects, however 7.1 and
13608 # earlier do not add the objects themselves.
13609 case `$CC -V 2>&1` in
13610 *"Version 7."*)
13611 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13612 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'
13613 ;;
13614 *) # Version 8.0 or newer
13615 tmp_idyn=
13616 case $host_cpu in
13617 ia64*) tmp_idyn=' -i_dynamic';;
13618 esac
13619 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13620 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'
13621 ;;
13622 esac
13623 archive_cmds_need_lc_CXX=no
13624 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13625 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13626 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13627 ;;
13628 pgCC* | pgcpp*)
13629 # Portland Group C++ compiler
13630 case `$CC -V` in
13631 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13632 prelink_cmds_CXX='tpldir=Template.dir~
13633 rm -rf $tpldir~
13634 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
8468f944 13635 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
c915a581
JJ
13636 old_archive_cmds_CXX='tpldir=Template.dir~
13637 rm -rf $tpldir~
13638 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
8468f944 13639 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
c915a581
JJ
13640 $RANLIB $oldlib'
13641 archive_cmds_CXX='tpldir=Template.dir~
13642 rm -rf $tpldir~
13643 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8468f944 13644 $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
13645 archive_expsym_cmds_CXX='tpldir=Template.dir~
13646 rm -rf $tpldir~
13647 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8468f944 13648 $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
13649 ;;
13650 *) # Version 6 and above use weak symbols
13651 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13652 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'
13653 ;;
13654 esac
13655
13656 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13657 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13658 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'
13659 ;;
13660 cxx*)
13661 # Compaq C++
13662 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13663 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'
13664
13665 runpath_var=LD_RUN_PATH
13666 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13667 hardcode_libdir_separator_CXX=:
13668
13669 # Commands to make compiler produce verbose output that lists
13670 # what "hidden" libraries, object files and flags are used when
13671 # linking a shared library.
13672 #
13673 # There doesn't appear to be a way to prevent this compiler from
13674 # explicitly linking system object files so we need to strip them
13675 # from the output so that they don't get included in the library
13676 # dependencies.
13677 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'
13678 ;;
13679 xl* | mpixl* | bgxl*)
13680 # IBM XL 8.0 on PPC, with GNU ld
13681 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13682 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13683 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13684 if test "x$supports_anon_versioning" = xyes; then
13685 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13686 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13687 echo "local: *; };" >> $output_objdir/$libname.ver~
13688 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13689 fi
13690 ;;
13691 *)
13692 case `$CC -V 2>&1 | sed 5q` in
13693 *Sun\ C*)
13694 # Sun C++ 5.9
13695 no_undefined_flag_CXX=' -zdefs'
13696 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13697 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'
13698 hardcode_libdir_flag_spec_CXX='-R$libdir'
13699 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'
13700 compiler_needs_object_CXX=yes
13701
13702 # Not sure whether something based on
13703 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13704 # would be better.
13705 output_verbose_link_cmd='func_echo_all'
13706
13707 # Archives containing C++ object files must be created using
13708 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13709 # necessary to make sure instantiated templates are included
13710 # in the archive.
13711 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13712 ;;
13713 esac
13714 ;;
13715 esac
13716 ;;
13717
13718 lynxos*)
13719 # FIXME: insert proper C++ library support
13720 ld_shlibs_CXX=no
13721 ;;
13722
13723 m88k*)
13724 # FIXME: insert proper C++ library support
13725 ld_shlibs_CXX=no
13726 ;;
13727
13728 mvs*)
13729 case $cc_basename in
13730 cxx*)
13731 # FIXME: insert proper C++ library support
13732 ld_shlibs_CXX=no
13733 ;;
13734 *)
13735 # FIXME: insert proper C++ library support
13736 ld_shlibs_CXX=no
13737 ;;
13738 esac
13739 ;;
13740
13741 netbsd*)
13742 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13743 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13744 wlarc=
13745 hardcode_libdir_flag_spec_CXX='-R$libdir'
13746 hardcode_direct_CXX=yes
13747 hardcode_shlibpath_var_CXX=no
13748 fi
13749 # Workaround some broken pre-1.5 toolchains
13750 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13751 ;;
13752
13753 *nto* | *qnx*)
13754 ld_shlibs_CXX=yes
13755 ;;
13756
13757 openbsd2*)
13758 # C++ shared libraries are fairly broken
13759 ld_shlibs_CXX=no
13760 ;;
13761
13762 openbsd*)
13763 if test -f /usr/libexec/ld.so; then
13764 hardcode_direct_CXX=yes
13765 hardcode_shlibpath_var_CXX=no
13766 hardcode_direct_absolute_CXX=yes
13767 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13768 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13770 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13771 export_dynamic_flag_spec_CXX='${wl}-E'
13772 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13773 fi
13774 output_verbose_link_cmd=func_echo_all
13775 else
13776 ld_shlibs_CXX=no
13777 fi
13778 ;;
13779
13780 osf3* | osf4* | osf5*)
13781 case $cc_basename in
13782 KCC*)
13783 # Kuck and Associates, Inc. (KAI) C++ Compiler
13784
13785 # KCC will only create a shared library if the output file
13786 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13787 # to its proper name (with version) after linking.
13788 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'
13789
13790 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13791 hardcode_libdir_separator_CXX=:
13792
13793 # Archives containing C++ object files must be created using
13794 # the KAI C++ compiler.
13795 case $host in
13796 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13797 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13798 esac
13799 ;;
13800 RCC*)
13801 # Rational C++ 2.4.1
13802 # FIXME: insert proper C++ library support
13803 ld_shlibs_CXX=no
13804 ;;
13805 cxx*)
13806 case $host in
13807 osf3*)
13808 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13809 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'
13810 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13811 ;;
13812 *)
13813 allow_undefined_flag_CXX=' -expect_unresolved \*'
13814 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'
13815 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13816 echo "-hidden">> $lib.exp~
13817 $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~
13818 $RM $lib.exp'
13819 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13820 ;;
13821 esac
13822
13823 hardcode_libdir_separator_CXX=:
13824
13825 # Commands to make compiler produce verbose output that lists
13826 # what "hidden" libraries, object files and flags are used when
13827 # linking a shared library.
13828 #
13829 # There doesn't appear to be a way to prevent this compiler from
13830 # explicitly linking system object files so we need to strip them
13831 # from the output so that they don't get included in the library
13832 # dependencies.
13833 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"'
13834 ;;
13835 *)
13836 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13837 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13838 case $host in
13839 osf3*)
13840 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'
13841 ;;
13842 *)
13843 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'
13844 ;;
13845 esac
13846
13847 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13848 hardcode_libdir_separator_CXX=:
13849
13850 # Commands to make compiler produce verbose output that lists
13851 # what "hidden" libraries, object files and flags are used when
13852 # linking a shared library.
13853 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13854
13855 else
13856 # FIXME: insert proper C++ library support
13857 ld_shlibs_CXX=no
13858 fi
13859 ;;
13860 esac
13861 ;;
13862
13863 psos*)
13864 # FIXME: insert proper C++ library support
13865 ld_shlibs_CXX=no
13866 ;;
13867
13868 sunos4*)
13869 case $cc_basename in
13870 CC*)
13871 # Sun C++ 4.x
13872 # FIXME: insert proper C++ library support
13873 ld_shlibs_CXX=no
13874 ;;
13875 lcc*)
13876 # Lucid
13877 # FIXME: insert proper C++ library support
13878 ld_shlibs_CXX=no
13879 ;;
13880 *)
13881 # FIXME: insert proper C++ library support
13882 ld_shlibs_CXX=no
13883 ;;
13884 esac
13885 ;;
13886
13887 solaris*)
13888 case $cc_basename in
13889 CC*)
13890 # Sun C++ 4.2, 5.x and Centerline C++
13891 archive_cmds_need_lc_CXX=yes
13892 no_undefined_flag_CXX=' -zdefs'
13893 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13894 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13895 $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'
13896
13897 hardcode_libdir_flag_spec_CXX='-R$libdir'
13898 hardcode_shlibpath_var_CXX=no
13899 case $host_os in
13900 solaris2.[0-5] | solaris2.[0-5].*) ;;
13901 *)
13902 # The compiler driver will combine and reorder linker options,
13903 # but understands `-z linker_flag'.
13904 # Supported since Solaris 2.6 (maybe 2.5.1?)
13905 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13906 ;;
13907 esac
13908 link_all_deplibs_CXX=yes
13909
13910 output_verbose_link_cmd='func_echo_all'
13911
13912 # Archives containing C++ object files must be created using
13913 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13914 # necessary to make sure instantiated templates are included
13915 # in the archive.
13916 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13917 ;;
13918 gcx*)
13919 # Green Hills C++ Compiler
13920 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13921
13922 # The C++ compiler must be used to create the archive.
13923 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13924 ;;
13925 *)
13926 # GNU C++ compiler with Solaris linker
13927 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13928 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13929 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13930 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13931 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13932 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13933
13934 # Commands to make compiler produce verbose output that lists
13935 # what "hidden" libraries, object files and flags are used when
13936 # linking a shared library.
13937 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13938 else
13939 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13940 # platform.
13941 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13942 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13943 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13944
13945 # Commands to make compiler produce verbose output that lists
13946 # what "hidden" libraries, object files and flags are used when
13947 # linking a shared library.
13948 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13949 fi
13950
13951 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13952 case $host_os in
13953 solaris2.[0-5] | solaris2.[0-5].*) ;;
13954 *)
13955 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13956 ;;
13957 esac
13958 fi
13959 ;;
13960 esac
13961 ;;
13962
13963 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13964 no_undefined_flag_CXX='${wl}-z,text'
13965 archive_cmds_need_lc_CXX=no
13966 hardcode_shlibpath_var_CXX=no
13967 runpath_var='LD_RUN_PATH'
13968
13969 case $cc_basename in
13970 CC*)
13971 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13972 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13973 ;;
13974 *)
13975 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13976 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13977 ;;
13978 esac
13979 ;;
13980
13981 sysv5* | sco3.2v5* | sco5v6*)
13982 # Note: We can NOT use -z defs as we might desire, because we do not
13983 # link with -lc, and that would cause any symbols used from libc to
13984 # always be unresolved, which means just about no library would
13985 # ever link correctly. If we're not using GNU ld we use -z text
13986 # though, which does catch some bad symbols but isn't as heavy-handed
13987 # as -z defs.
13988 no_undefined_flag_CXX='${wl}-z,text'
13989 allow_undefined_flag_CXX='${wl}-z,nodefs'
13990 archive_cmds_need_lc_CXX=no
13991 hardcode_shlibpath_var_CXX=no
13992 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13993 hardcode_libdir_separator_CXX=':'
13994 link_all_deplibs_CXX=yes
13995 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13996 runpath_var='LD_RUN_PATH'
13997
13998 case $cc_basename in
13999 CC*)
14000 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14001 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14002 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14003 '"$old_archive_cmds_CXX"
14004 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14005 '"$reload_cmds_CXX"
14006 ;;
14007 *)
14008 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14009 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14010 ;;
14011 esac
14012 ;;
14013
14014 tandem*)
14015 case $cc_basename in
14016 NCC*)
14017 # NonStop-UX NCC 3.20
14018 # FIXME: insert proper C++ library support
14019 ld_shlibs_CXX=no
14020 ;;
14021 *)
14022 # FIXME: insert proper C++ library support
14023 ld_shlibs_CXX=no
14024 ;;
14025 esac
14026 ;;
14027
14028 vxworks*)
14029 # FIXME: insert proper C++ library support
14030 ld_shlibs_CXX=no
14031 ;;
14032
14033 *)
14034 # FIXME: insert proper C++ library support
14035 ld_shlibs_CXX=no
14036 ;;
14037 esac
14038
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14040$as_echo "$ld_shlibs_CXX" >&6; }
14041 test "$ld_shlibs_CXX" = no && can_build_shared=no
14042
14043 GCC_CXX="$GXX"
14044 LD_CXX="$LD"
14045
14046 ## CAVEAT EMPTOR:
14047 ## There is no encapsulation within the following macros, do not change
14048 ## the running order or otherwise move them around unless you know exactly
14049 ## what you are doing...
14050 # Dependencies to place before and after the object being linked:
14051predep_objects_CXX=
14052postdep_objects_CXX=
14053predeps_CXX=
14054postdeps_CXX=
14055compiler_lib_search_path_CXX=
14056
14057cat > conftest.$ac_ext <<_LT_EOF
14058class Foo
14059{
14060public:
14061 Foo (void) { a = 0; }
14062private:
14063 int a;
14064};
14065_LT_EOF
14066
14067if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14068 (eval $ac_compile) 2>&5
14069 ac_status=$?
14070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14071 test $ac_status = 0; }; then
14072 # Parse the compiler output and extract the necessary
14073 # objects, libraries and library flags.
14074
14075 # Sentinel used to keep track of whether or not we are before
14076 # the conftest object file.
14077 pre_test_object_deps_done=no
14078
14079 for p in `eval "$output_verbose_link_cmd"`; do
14080 case $p in
14081
14082 -L* | -R* | -l*)
14083 # Some compilers place space between "-{L,R}" and the path.
14084 # Remove the space.
14085 if test $p = "-L" ||
14086 test $p = "-R"; then
14087 prev=$p
14088 continue
14089 else
14090 prev=
14091 fi
14092
14093 if test "$pre_test_object_deps_done" = no; then
14094 case $p in
14095 -L* | -R*)
14096 # Internal compiler library paths should come after those
14097 # provided the user. The postdeps already come after the
14098 # user supplied libs so there is no need to process them.
14099 if test -z "$compiler_lib_search_path_CXX"; then
14100 compiler_lib_search_path_CXX="${prev}${p}"
14101 else
14102 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14103 fi
14104 ;;
14105 # The "-l" case would never come before the object being
14106 # linked, so don't bother handling this case.
14107 esac
14108 else
14109 if test -z "$postdeps_CXX"; then
14110 postdeps_CXX="${prev}${p}"
14111 else
14112 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14113 fi
14114 fi
14115 ;;
14116
14117 *.$objext)
14118 # This assumes that the test object file only shows up
14119 # once in the compiler output.
14120 if test "$p" = "conftest.$objext"; then
14121 pre_test_object_deps_done=yes
14122 continue
14123 fi
14124
14125 if test "$pre_test_object_deps_done" = no; then
14126 if test -z "$predep_objects_CXX"; then
14127 predep_objects_CXX="$p"
14128 else
14129 predep_objects_CXX="$predep_objects_CXX $p"
14130 fi
14131 else
14132 if test -z "$postdep_objects_CXX"; then
14133 postdep_objects_CXX="$p"
14134 else
14135 postdep_objects_CXX="$postdep_objects_CXX $p"
14136 fi
14137 fi
14138 ;;
14139
14140 *) ;; # Ignore the rest.
14141
14142 esac
14143 done
14144
14145 # Clean up.
14146 rm -f a.out a.exe
14147else
14148 echo "libtool.m4: error: problem compiling CXX test program"
14149fi
14150
14151$RM -f confest.$objext
14152
14153# PORTME: override above test on systems where it is broken
14154case $host_os in
14155interix[3-9]*)
14156 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14157 # hack all around it, let's just trust "g++" to DTRT.
14158 predep_objects_CXX=
14159 postdep_objects_CXX=
14160 postdeps_CXX=
14161 ;;
14162
14163linux*)
14164 case `$CC -V 2>&1 | sed 5q` in
14165 *Sun\ C*)
14166 # Sun C++ 5.9
14167
14168 # The more standards-conforming stlport4 library is
14169 # incompatible with the Cstd library. Avoid specifying
14170 # it if it's in CXXFLAGS. Ignore libCrun as
14171 # -library=stlport4 depends on it.
14172 case " $CXX $CXXFLAGS " in
14173 *" -library=stlport4 "*)
14174 solaris_use_stlport4=yes
14175 ;;
14176 esac
14177
14178 if test "$solaris_use_stlport4" != yes; then
14179 postdeps_CXX='-library=Cstd -library=Crun'
14180 fi
14181 ;;
14182 esac
14183 ;;
14184
14185solaris*)
14186 case $cc_basename in
14187 CC*)
14188 # The more standards-conforming stlport4 library is
14189 # incompatible with the Cstd library. Avoid specifying
14190 # it if it's in CXXFLAGS. Ignore libCrun as
14191 # -library=stlport4 depends on it.
14192 case " $CXX $CXXFLAGS " in
14193 *" -library=stlport4 "*)
14194 solaris_use_stlport4=yes
14195 ;;
14196 esac
14197
14198 # Adding this requires a known-good setup of shared libraries for
14199 # Sun compiler versions before 5.6, else PIC objects from an old
14200 # archive will be linked into the output, leading to subtle bugs.
14201 if test "$solaris_use_stlport4" != yes; then
14202 postdeps_CXX='-library=Cstd -library=Crun'
14203 fi
14204 ;;
14205 esac
14206 ;;
14207esac
14208
14209
14210case " $postdeps_CXX " in
14211*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14212esac
14213 compiler_lib_search_dirs_CXX=
14214if test -n "${compiler_lib_search_path_CXX}"; then
14215 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14216fi
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248 lt_prog_compiler_wl_CXX=
14249lt_prog_compiler_pic_CXX=
14250lt_prog_compiler_static_CXX=
14251
14252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14253$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14254
14255 # C++ specific cases for pic, static, wl, etc.
14256 if test "$GXX" = yes; then
14257 lt_prog_compiler_wl_CXX='-Wl,'
14258 lt_prog_compiler_static_CXX='-static'
f35db108
WM
14259
14260 case $host_os in
14261 aix*)
14262 # All AIX code is PIC.
14263 if test "$host_cpu" = ia64; then
14264 # AIX 5 now supports IA64 processor
14265 lt_prog_compiler_static_CXX='-Bstatic'
14266 fi
a2479b3d 14267 lt_prog_compiler_pic_CXX='-fPIC'
f35db108
WM
14268 ;;
14269
c915a581
JJ
14270 amigaos*)
14271 case $host_cpu in
14272 powerpc)
14273 # see comment about AmigaOS4 .so support
14274 lt_prog_compiler_pic_CXX='-fPIC'
14275 ;;
14276 m68k)
14277 # FIXME: we need at least 68020 code to build shared libraries, but
14278 # adding the `-m68020' flag to GCC prevents building anything better,
14279 # like `-m68040'.
14280 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14281 ;;
14282 esac
14283 ;;
14284
14285 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14286 # PIC is the default for these OSes.
14287 ;;
14288 mingw* | cygwin* | os2* | pw32* | cegcc*)
14289 # This hack is so that the source file can tell whether it is being
14290 # built for inclusion in a dll (and should export symbols for example).
14291 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14292 # (--disable-auto-import) libraries
14293 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14294 ;;
14295 darwin* | rhapsody*)
14296 # PIC is the default on this platform
14297 # Common symbols not allowed in MH_DYLIB files
14298 lt_prog_compiler_pic_CXX='-fno-common'
14299 ;;
14300 *djgpp*)
14301 # DJGPP does not support shared libraries at all
14302 lt_prog_compiler_pic_CXX=
14303 ;;
14304 haiku*)
14305 # PIC is the default for Haiku.
14306 # The "-static" flag exists, but is broken.
14307 lt_prog_compiler_static_CXX=
14308 ;;
14309 interix[3-9]*)
14310 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14311 # Instead, we relocate shared libraries at runtime.
14312 ;;
14313 sysv4*MP*)
14314 if test -d /usr/nec; then
14315 lt_prog_compiler_pic_CXX=-Kconform_pic
14316 fi
14317 ;;
14318 hpux*)
14319 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14320 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14321 # sets the default TLS model and affects inlining.
14322 case $host_cpu in
14323 hppa*64*)
14324 ;;
14325 *)
14326 lt_prog_compiler_pic_CXX='-fPIC'
14327 ;;
14328 esac
14329 ;;
14330 *qnx* | *nto*)
14331 # QNX uses GNU C++, but need to define -shared option too, otherwise
14332 # it will coredump.
14333 lt_prog_compiler_pic_CXX='-fPIC -shared'
14334 ;;
14335 *)
14336 lt_prog_compiler_pic_CXX='-fPIC'
14337 ;;
14338 esac
14339 else
14340 case $host_os in
14341 aix[4-9]*)
14342 # All AIX code is PIC.
14343 if test "$host_cpu" = ia64; then
14344 # AIX 5 now supports IA64 processor
14345 lt_prog_compiler_static_CXX='-Bstatic'
14346 else
14347 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14348 fi
14349 ;;
14350 chorus*)
14351 case $cc_basename in
14352 cxch68*)
14353 # Green Hills C++ Compiler
14354 # _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"
14355 ;;
14356 esac
14357 ;;
14358 dgux*)
14359 case $cc_basename in
14360 ec++*)
14361 lt_prog_compiler_pic_CXX='-KPIC'
14362 ;;
14363 ghcx*)
14364 # Green Hills C++ Compiler
14365 lt_prog_compiler_pic_CXX='-pic'
14366 ;;
14367 *)
14368 ;;
14369 esac
14370 ;;
14371 freebsd* | dragonfly*)
14372 # FreeBSD uses GNU C++
14373 ;;
14374 hpux9* | hpux10* | hpux11*)
14375 case $cc_basename in
14376 CC*)
14377 lt_prog_compiler_wl_CXX='-Wl,'
14378 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14379 if test "$host_cpu" != ia64; then
14380 lt_prog_compiler_pic_CXX='+Z'
14381 fi
14382 ;;
14383 aCC*)
14384 lt_prog_compiler_wl_CXX='-Wl,'
14385 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14386 case $host_cpu in
14387 hppa*64*|ia64*)
14388 # +Z the default
14389 ;;
14390 *)
14391 lt_prog_compiler_pic_CXX='+Z'
14392 ;;
14393 esac
14394 ;;
14395 *)
14396 ;;
14397 esac
14398 ;;
14399 interix*)
14400 # This is c89, which is MS Visual C++ (no shared libs)
14401 # Anyone wants to do a port?
14402 ;;
14403 irix5* | irix6* | nonstopux*)
14404 case $cc_basename in
14405 CC*)
14406 lt_prog_compiler_wl_CXX='-Wl,'
14407 lt_prog_compiler_static_CXX='-non_shared'
14408 # CC pic flag -KPIC is the default.
14409 ;;
14410 *)
14411 ;;
14412 esac
14413 ;;
14414 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14415 case $cc_basename in
14416 KCC*)
14417 # KAI C++ Compiler
14418 lt_prog_compiler_wl_CXX='--backend -Wl,'
14419 lt_prog_compiler_pic_CXX='-fPIC'
14420 ;;
14421 ecpc* )
14422 # old Intel C++ for x86_64 which still supported -KPIC.
14423 lt_prog_compiler_wl_CXX='-Wl,'
14424 lt_prog_compiler_pic_CXX='-KPIC'
14425 lt_prog_compiler_static_CXX='-static'
14426 ;;
14427 icpc* )
14428 # Intel C++, used to be incompatible with GCC.
14429 # ICC 10 doesn't accept -KPIC any more.
14430 lt_prog_compiler_wl_CXX='-Wl,'
14431 lt_prog_compiler_pic_CXX='-fPIC'
14432 lt_prog_compiler_static_CXX='-static'
14433 ;;
14434 pgCC* | pgcpp*)
14435 # Portland Group C++ compiler
14436 lt_prog_compiler_wl_CXX='-Wl,'
14437 lt_prog_compiler_pic_CXX='-fpic'
14438 lt_prog_compiler_static_CXX='-Bstatic'
14439 ;;
14440 cxx*)
14441 # Compaq C++
14442 # Make sure the PIC flag is empty. It appears that all Alpha
14443 # Linux and Compaq Tru64 Unix objects are PIC.
14444 lt_prog_compiler_pic_CXX=
14445 lt_prog_compiler_static_CXX='-non_shared'
14446 ;;
14447 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14448 # IBM XL 8.0, 9.0 on PPC and BlueGene
14449 lt_prog_compiler_wl_CXX='-Wl,'
14450 lt_prog_compiler_pic_CXX='-qpic'
14451 lt_prog_compiler_static_CXX='-qstaticlink'
14452 ;;
14453 *)
14454 case `$CC -V 2>&1 | sed 5q` in
14455 *Sun\ C*)
14456 # Sun C++ 5.9
14457 lt_prog_compiler_pic_CXX='-KPIC'
14458 lt_prog_compiler_static_CXX='-Bstatic'
14459 lt_prog_compiler_wl_CXX='-Qoption ld '
14460 ;;
14461 esac
14462 ;;
14463 esac
14464 ;;
14465 lynxos*)
14466 ;;
14467 m88k*)
14468 ;;
14469 mvs*)
14470 case $cc_basename in
14471 cxx*)
14472 lt_prog_compiler_pic_CXX='-W c,exportall'
14473 ;;
14474 *)
14475 ;;
14476 esac
14477 ;;
14478 netbsd*)
14479 ;;
14480 *qnx* | *nto*)
14481 # QNX uses GNU C++, but need to define -shared option too, otherwise
14482 # it will coredump.
14483 lt_prog_compiler_pic_CXX='-fPIC -shared'
14484 ;;
14485 osf3* | osf4* | osf5*)
14486 case $cc_basename in
14487 KCC*)
14488 lt_prog_compiler_wl_CXX='--backend -Wl,'
14489 ;;
14490 RCC*)
14491 # Rational C++ 2.4.1
14492 lt_prog_compiler_pic_CXX='-pic'
14493 ;;
14494 cxx*)
14495 # Digital/Compaq C++
14496 lt_prog_compiler_wl_CXX='-Wl,'
14497 # Make sure the PIC flag is empty. It appears that all Alpha
14498 # Linux and Compaq Tru64 Unix objects are PIC.
14499 lt_prog_compiler_pic_CXX=
14500 lt_prog_compiler_static_CXX='-non_shared'
14501 ;;
14502 *)
14503 ;;
14504 esac
14505 ;;
14506 psos*)
14507 ;;
14508 solaris*)
14509 case $cc_basename in
14510 CC*)
14511 # Sun C++ 4.2, 5.x and Centerline C++
14512 lt_prog_compiler_pic_CXX='-KPIC'
14513 lt_prog_compiler_static_CXX='-Bstatic'
14514 lt_prog_compiler_wl_CXX='-Qoption ld '
14515 ;;
14516 gcx*)
14517 # Green Hills C++ Compiler
14518 lt_prog_compiler_pic_CXX='-PIC'
14519 ;;
14520 *)
14521 ;;
14522 esac
14523 ;;
14524 sunos4*)
14525 case $cc_basename in
14526 CC*)
14527 # Sun C++ 4.x
14528 lt_prog_compiler_pic_CXX='-pic'
14529 lt_prog_compiler_static_CXX='-Bstatic'
14530 ;;
14531 lcc*)
14532 # Lucid
14533 lt_prog_compiler_pic_CXX='-pic'
14534 ;;
14535 *)
14536 ;;
14537 esac
14538 ;;
14539 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14540 case $cc_basename in
14541 CC*)
14542 lt_prog_compiler_wl_CXX='-Wl,'
14543 lt_prog_compiler_pic_CXX='-KPIC'
14544 lt_prog_compiler_static_CXX='-Bstatic'
14545 ;;
14546 esac
14547 ;;
14548 tandem*)
14549 case $cc_basename in
14550 NCC*)
14551 # NonStop-UX NCC 3.20
14552 lt_prog_compiler_pic_CXX='-KPIC'
14553 ;;
14554 *)
14555 ;;
14556 esac
14557 ;;
14558 vxworks*)
14559 ;;
14560 *)
14561 lt_prog_compiler_can_build_shared_CXX=no
14562 ;;
14563 esac
14564 fi
14565
14566case $host_os in
14567 # For platforms which do not support PIC, -DPIC is meaningless:
14568 *djgpp*)
14569 lt_prog_compiler_pic_CXX=
14570 ;;
14571 *)
14572 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14573 ;;
14574esac
14575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14576$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14577
14578
14579
14580#
14581# Check to make sure the PIC flag actually works.
14582#
14583if test -n "$lt_prog_compiler_pic_CXX"; then
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14585$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22e05272 14586if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
c915a581
JJ
14587 $as_echo_n "(cached) " >&6
14588else
14589 lt_cv_prog_compiler_pic_works_CXX=no
14590 ac_outfile=conftest.$ac_objext
14591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14592 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14593 # Insert the option either (1) after the last *FLAGS variable, or
14594 # (2) before a word containing "conftest.", or (3) at the end.
14595 # Note that $ac_compile itself does not contain backslashes and begins
14596 # with a dollar sign (not a hyphen), so the echo should work correctly.
14597 # The option is referenced via a variable to avoid confusing sed.
14598 lt_compile=`echo "$ac_compile" | $SED \
14599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14601 -e 's:$: $lt_compiler_flag:'`
14602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14603 (eval "$lt_compile" 2>conftest.err)
14604 ac_status=$?
14605 cat conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 if (exit $ac_status) && test -s "$ac_outfile"; then
14608 # The compiler can only warn and ignore the option if not recognized
14609 # So say no if there are warnings other than the usual output.
14610 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14612 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14613 lt_cv_prog_compiler_pic_works_CXX=yes
14614 fi
14615 fi
14616 $RM conftest*
14617
14618fi
14619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14620$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14621
14622if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14623 case $lt_prog_compiler_pic_CXX in
14624 "" | " "*) ;;
14625 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14626 esac
14627else
14628 lt_prog_compiler_pic_CXX=
14629 lt_prog_compiler_can_build_shared_CXX=no
14630fi
14631
14632fi
14633
14634
14635
14636#
14637# Check to make sure the static flag actually works.
14638#
14639wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14641$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 14642if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
c915a581
JJ
14643 $as_echo_n "(cached) " >&6
14644else
14645 lt_cv_prog_compiler_static_works_CXX=no
14646 save_LDFLAGS="$LDFLAGS"
14647 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14648 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14649 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14650 # The linker can only warn and ignore the option if not recognized
14651 # So say no if there are warnings
14652 if test -s conftest.err; then
14653 # Append any errors to the config.log.
14654 cat conftest.err 1>&5
14655 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14657 if diff conftest.exp conftest.er2 >/dev/null; then
14658 lt_cv_prog_compiler_static_works_CXX=yes
14659 fi
14660 else
14661 lt_cv_prog_compiler_static_works_CXX=yes
14662 fi
14663 fi
14664 $RM -r conftest*
14665 LDFLAGS="$save_LDFLAGS"
14666
14667fi
14668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14669$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14670
14671if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14672 :
14673else
14674 lt_prog_compiler_static_CXX=
14675fi
14676
14677
14678
14679
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14681$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 14682if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
c915a581
JJ
14683 $as_echo_n "(cached) " >&6
14684else
14685 lt_cv_prog_compiler_c_o_CXX=no
14686 $RM -r conftest 2>/dev/null
14687 mkdir conftest
14688 cd conftest
14689 mkdir out
14690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14691
14692 lt_compiler_flag="-o out/conftest2.$ac_objext"
14693 # Insert the option either (1) after the last *FLAGS variable, or
14694 # (2) before a word containing "conftest.", or (3) at the end.
14695 # Note that $ac_compile itself does not contain backslashes and begins
14696 # with a dollar sign (not a hyphen), so the echo should work correctly.
14697 lt_compile=`echo "$ac_compile" | $SED \
14698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14700 -e 's:$: $lt_compiler_flag:'`
14701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14702 (eval "$lt_compile" 2>out/conftest.err)
14703 ac_status=$?
14704 cat out/conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14707 then
14708 # The compiler can only warn and ignore the option if not recognized
14709 # So say no if there are warnings
14710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14711 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14712 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14713 lt_cv_prog_compiler_c_o_CXX=yes
14714 fi
14715 fi
14716 chmod u+w . 2>&5
14717 $RM conftest*
14718 # SGI C++ compiler will create directory out/ii_files/ for
14719 # template instantiation
14720 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14721 $RM out/* && rmdir out
14722 cd ..
14723 $RM -r conftest
14724 $RM conftest*
14725
14726fi
14727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14728$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14729
14730
14731
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14733$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 14734if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
c915a581
JJ
14735 $as_echo_n "(cached) " >&6
14736else
14737 lt_cv_prog_compiler_c_o_CXX=no
14738 $RM -r conftest 2>/dev/null
14739 mkdir conftest
14740 cd conftest
14741 mkdir out
14742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14743
14744 lt_compiler_flag="-o out/conftest2.$ac_objext"
14745 # Insert the option either (1) after the last *FLAGS variable, or
14746 # (2) before a word containing "conftest.", or (3) at the end.
14747 # Note that $ac_compile itself does not contain backslashes and begins
14748 # with a dollar sign (not a hyphen), so the echo should work correctly.
14749 lt_compile=`echo "$ac_compile" | $SED \
14750 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14752 -e 's:$: $lt_compiler_flag:'`
14753 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14754 (eval "$lt_compile" 2>out/conftest.err)
14755 ac_status=$?
14756 cat out/conftest.err >&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14759 then
14760 # The compiler can only warn and ignore the option if not recognized
14761 # So say no if there are warnings
14762 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14763 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14764 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14765 lt_cv_prog_compiler_c_o_CXX=yes
14766 fi
14767 fi
14768 chmod u+w . 2>&5
14769 $RM conftest*
14770 # SGI C++ compiler will create directory out/ii_files/ for
14771 # template instantiation
14772 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14773 $RM out/* && rmdir out
14774 cd ..
14775 $RM -r conftest
14776 $RM conftest*
14777
14778fi
14779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14780$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14781
14782
14783
14784
14785hard_links="nottested"
14786if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14787 # do not overwrite the value of need_locks provided by the user
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14789$as_echo_n "checking if we can lock with hard links... " >&6; }
14790 hard_links=yes
14791 $RM conftest*
14792 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14793 touch conftest.a
14794 ln conftest.a conftest.b 2>&5 || hard_links=no
14795 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14797$as_echo "$hard_links" >&6; }
14798 if test "$hard_links" = no; then
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14800$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14801 need_locks=warn
14802 fi
14803else
14804 need_locks=no
14805fi
14806
14807
14808
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14810$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14811
14812 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14813 case $host_os in
14814 aix[4-9]*)
14815 # If we're using GNU nm, then we don't want the "-C" option.
14816 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14817 # Also, AIX nm treats weak defined symbols like other global defined
14818 # symbols, whereas GNU nm marks them as "W".
14819 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14820 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'
14821 else
bf93d543 14822 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
14823 fi
14824 ;;
14825 pw32*)
14826 export_symbols_cmds_CXX="$ltdll_cmds"
14827 ;;
14828 cygwin* | mingw* | cegcc*)
14829 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'
14830 ;;
14831 *)
14832 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14833 ;;
14834 esac
14835 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14836
14837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14838$as_echo "$ld_shlibs_CXX" >&6; }
14839test "$ld_shlibs_CXX" = no && can_build_shared=no
14840
14841with_gnu_ld_CXX=$with_gnu_ld
14842
14843
14844
14845
14846
14847
14848#
14849# Do we need to explicitly link libc?
14850#
14851case "x$archive_cmds_need_lc_CXX" in
14852x|xyes)
14853 # Assume -lc should be added
14854 archive_cmds_need_lc_CXX=yes
14855
14856 if test "$enable_shared" = yes && test "$GCC" = yes; then
14857 case $archive_cmds_CXX in
14858 *'~'*)
14859 # FIXME: we may have to deal with multi-command sequences.
14860 ;;
14861 '$CC '*)
14862 # Test whether the compiler implicitly links with -lc since on some
14863 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14864 # to ld, don't add -lc before -lgcc.
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14866$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 14867if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
c915a581
JJ
14868 $as_echo_n "(cached) " >&6
14869else
14870 $RM conftest*
14871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14872
14873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14874 (eval $ac_compile) 2>&5
14875 ac_status=$?
14876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14877 test $ac_status = 0; } 2>conftest.err; then
14878 soname=conftest
14879 lib=conftest
14880 libobjs=conftest.$ac_objext
14881 deplibs=
14882 wl=$lt_prog_compiler_wl_CXX
14883 pic_flag=$lt_prog_compiler_pic_CXX
14884 compiler_flags=-v
14885 linker_flags=-v
14886 verstring=
14887 output_objdir=.
14888 libname=conftest
14889 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14890 allow_undefined_flag_CXX=
14891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14892 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14893 ac_status=$?
14894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14895 test $ac_status = 0; }
14896 then
14897 lt_cv_archive_cmds_need_lc_CXX=no
14898 else
14899 lt_cv_archive_cmds_need_lc_CXX=yes
14900 fi
14901 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14902 else
14903 cat conftest.err 1>&5
14904 fi
14905 $RM conftest*
14906
14907fi
14908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14909$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14910 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14911 ;;
14912 esac
14913 fi
14914 ;;
14915esac
14916
f35db108 14917
c915a581
JJ
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
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14981$as_echo_n "checking dynamic linker characteristics... " >&6; }
14982
14983library_names_spec=
14984libname_spec='lib$name'
14985soname_spec=
14986shrext_cmds=".so"
14987postinstall_cmds=
14988postuninstall_cmds=
14989finish_cmds=
14990finish_eval=
14991shlibpath_var=
14992shlibpath_overrides_runpath=unknown
14993version_type=none
14994dynamic_linker="$host_os ld.so"
14995sys_lib_dlsearch_path_spec="/lib /usr/lib"
14996need_lib_prefix=unknown
14997hardcode_into_libs=no
14998
14999# when you set need_version to no, make sure it does not cause -set_version
15000# flags to be left without arguments
15001need_version=unknown
15002
15003case $host_os in
15004aix3*)
15005 version_type=linux
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15007 shlibpath_var=LIBPATH
15008
15009 # AIX 3 has no versioning support, so we append a major version to the name.
15010 soname_spec='${libname}${release}${shared_ext}$major'
15011 ;;
15012
15013aix[4-9]*)
15014 version_type=linux
15015 need_lib_prefix=no
15016 need_version=no
15017 hardcode_into_libs=yes
15018 if test "$host_cpu" = ia64; then
15019 # AIX 5 supports IA64
15020 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15021 shlibpath_var=LD_LIBRARY_PATH
15022 else
15023 # With GCC up to 2.95.x, collect2 would create an import file
15024 # for dependence libraries. The import file would start with
15025 # the line `#! .'. This would cause the generated library to
15026 # depend on `.', always an invalid library. This was fixed in
15027 # development snapshots of GCC prior to 3.0.
15028 case $host_os in
15029 aix4 | aix4.[01] | aix4.[01].*)
15030 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15031 echo ' yes '
15032 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15033 :
15034 else
15035 can_build_shared=no
f35db108
WM
15036 fi
15037 ;;
c915a581
JJ
15038 esac
15039 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15040 # soname into executable. Probably we can add versioning support to
15041 # collect2, so additional links can be useful in future.
15042 if test "$aix_use_runtimelinking" = yes; then
15043 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15044 # instead of lib<name>.a to let people know that these are not
15045 # typical AIX shared libraries.
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15047 else
15048 # We preserve .a as extension for shared libraries through AIX4.2
15049 # and later when we are not doing run time linking.
15050 library_names_spec='${libname}${release}.a $libname.a'
15051 soname_spec='${libname}${release}${shared_ext}$major'
15052 fi
15053 shlibpath_var=LIBPATH
15054 fi
15055 ;;
15056
15057amigaos*)
15058 case $host_cpu in
15059 powerpc)
15060 # Since July 2007 AmigaOS4 officially supports .so libraries.
15061 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15063 ;;
15064 m68k)
15065 library_names_spec='$libname.ixlibrary $libname.a'
15066 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15067 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'
15068 ;;
15069 esac
15070 ;;
15071
15072beos*)
15073 library_names_spec='${libname}${shared_ext}'
15074 dynamic_linker="$host_os ld.so"
15075 shlibpath_var=LIBRARY_PATH
15076 ;;
15077
15078bsdi[45]*)
15079 version_type=linux
15080 need_version=no
15081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15082 soname_spec='${libname}${release}${shared_ext}$major'
15083 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15084 shlibpath_var=LD_LIBRARY_PATH
15085 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15086 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15087 # the default ld.so.conf also contains /usr/contrib/lib and
15088 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15089 # libtool to hard-code these into programs
15090 ;;
15091
15092cygwin* | mingw* | pw32* | cegcc*)
15093 version_type=windows
15094 shrext_cmds=".dll"
15095 need_version=no
15096 need_lib_prefix=no
15097
15098 case $GCC,$host_os in
15099 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15100 library_names_spec='$libname.dll.a'
15101 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15102 postinstall_cmds='base_file=`basename \${file}`~
15103 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15104 dldir=$destdir/`dirname \$dlpath`~
15105 test -d \$dldir || mkdir -p \$dldir~
15106 $install_prog $dir/$dlname \$dldir/$dlname~
15107 chmod a+x \$dldir/$dlname~
15108 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15109 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15110 fi'
15111 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15112 dlpath=$dir/\$dldll~
15113 $RM \$dlpath'
15114 shlibpath_overrides_runpath=yes
15115
15116 case $host_os in
15117 cygwin*)
15118 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15119 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15120
f35db108 15121 ;;
c915a581
JJ
15122 mingw* | cegcc*)
15123 # MinGW DLLs use traditional 'lib' prefix
15124 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
f35db108 15125 ;;
c915a581
JJ
15126 pw32*)
15127 # pw32 DLLs use 'pw' prefix rather than 'lib'
15128 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
f35db108
WM
15129 ;;
15130 esac
c915a581
JJ
15131 ;;
15132
15133 *)
15134 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15135 ;;
15136 esac
15137 dynamic_linker='Win32 ld.exe'
15138 # FIXME: first we should search . and the directory the executable is in
15139 shlibpath_var=PATH
15140 ;;
15141
15142darwin* | rhapsody*)
15143 dynamic_linker="$host_os dyld"
15144 version_type=darwin
15145 need_lib_prefix=no
15146 need_version=no
15147 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15148 soname_spec='${libname}${release}${major}$shared_ext'
15149 shlibpath_overrides_runpath=yes
15150 shlibpath_var=DYLD_LIBRARY_PATH
15151 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15152
15153 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15154 ;;
15155
15156dgux*)
15157 version_type=linux
15158 need_lib_prefix=no
15159 need_version=no
15160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15161 soname_spec='${libname}${release}${shared_ext}$major'
15162 shlibpath_var=LD_LIBRARY_PATH
15163 ;;
15164
15165freebsd* | dragonfly*)
15166 # DragonFly does not have aout. When/if they implement a new
15167 # versioning mechanism, adjust this.
15168 if test -x /usr/bin/objformat; then
15169 objformat=`/usr/bin/objformat`
15170 else
15171 case $host_os in
15172 freebsd[23].*) objformat=aout ;;
15173 *) objformat=elf ;;
f35db108
WM
15174 esac
15175 fi
c915a581
JJ
15176 version_type=freebsd-$objformat
15177 case $version_type in
15178 freebsd-elf*)
15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15180 need_version=no
15181 need_lib_prefix=no
15182 ;;
15183 freebsd-*)
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15185 need_version=yes
15186 ;;
15187 esac
15188 shlibpath_var=LD_LIBRARY_PATH
15189 case $host_os in
15190 freebsd2.*)
15191 shlibpath_overrides_runpath=yes
15192 ;;
15193 freebsd3.[01]* | freebsdelf3.[01]*)
15194 shlibpath_overrides_runpath=yes
15195 hardcode_into_libs=yes
15196 ;;
15197 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15198 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15199 shlibpath_overrides_runpath=no
15200 hardcode_into_libs=yes
15201 ;;
15202 *) # from 4.6 on, and DragonFly
15203 shlibpath_overrides_runpath=yes
15204 hardcode_into_libs=yes
15205 ;;
15206 esac
15207 ;;
f35db108 15208
c915a581
JJ
15209gnu*)
15210 version_type=linux
15211 need_lib_prefix=no
15212 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
15216 hardcode_into_libs=yes
15217 ;;
15218
15219haiku*)
15220 version_type=linux
15221 need_lib_prefix=no
15222 need_version=no
15223 dynamic_linker="$host_os runtime_loader"
15224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15225 soname_spec='${libname}${release}${shared_ext}$major'
15226 shlibpath_var=LIBRARY_PATH
15227 shlibpath_overrides_runpath=yes
15228 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15229 hardcode_into_libs=yes
15230 ;;
15231
15232hpux9* | hpux10* | hpux11*)
15233 # Give a soname corresponding to the major version so that dld.sl refuses to
15234 # link against other versions.
15235 version_type=sunos
15236 need_lib_prefix=no
15237 need_version=no
15238 case $host_cpu in
15239 ia64*)
15240 shrext_cmds='.so'
15241 hardcode_into_libs=yes
15242 dynamic_linker="$host_os dld.so"
15243 shlibpath_var=LD_LIBRARY_PATH
15244 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246 soname_spec='${libname}${release}${shared_ext}$major'
15247 if test "X$HPUX_IA64_MODE" = X32; then
15248 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15249 else
15250 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15251 fi
15252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15253 ;;
15254 hppa*64*)
15255 shrext_cmds='.sl'
15256 hardcode_into_libs=yes
15257 dynamic_linker="$host_os dld.sl"
15258 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15259 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15261 soname_spec='${libname}${release}${shared_ext}$major'
15262 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
f35db108
WM
15264 ;;
15265 *)
c915a581
JJ
15266 shrext_cmds='.sl'
15267 dynamic_linker="$host_os dld.sl"
15268 shlibpath_var=SHLIB_PATH
15269 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15271 soname_spec='${libname}${release}${shared_ext}$major'
f35db108 15272 ;;
c915a581
JJ
15273 esac
15274 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15275 postinstall_cmds='chmod 555 $lib'
15276 # or fails outright, so override atomically:
15277 install_override_mode=555
15278 ;;
a2479b3d 15279
c915a581
JJ
15280interix[3-9]*)
15281 version_type=linux
15282 need_lib_prefix=no
15283 need_version=no
15284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15285 soname_spec='${libname}${release}${shared_ext}$major'
15286 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15287 shlibpath_var=LD_LIBRARY_PATH
15288 shlibpath_overrides_runpath=no
15289 hardcode_into_libs=yes
15290 ;;
f35db108 15291
c915a581
JJ
15292irix5* | irix6* | nonstopux*)
15293 case $host_os in
15294 nonstopux*) version_type=nonstopux ;;
15295 *)
15296 if test "$lt_cv_prog_gnu_ld" = yes; then
15297 version_type=linux
15298 else
15299 version_type=irix
15300 fi ;;
15301 esac
15302 need_lib_prefix=no
15303 need_version=no
15304 soname_spec='${libname}${release}${shared_ext}$major'
15305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15306 case $host_os in
15307 irix5* | nonstopux*)
15308 libsuff= shlibsuff=
15309 ;;
15310 *)
15311 case $LD in # libtool.m4 will add one of these switches to LD
15312 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15313 libsuff= shlibsuff= libmagic=32-bit;;
15314 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15315 libsuff=32 shlibsuff=N32 libmagic=N32;;
15316 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15317 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15318 *) libsuff= shlibsuff= libmagic=never-match;;
15319 esac
15320 ;;
15321 esac
15322 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15323 shlibpath_overrides_runpath=no
15324 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15325 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15326 hardcode_into_libs=yes
15327 ;;
f35db108 15328
c915a581
JJ
15329# No shared lib support for Linux oldld, aout, or coff.
15330linux*oldld* | linux*aout* | linux*coff*)
15331 dynamic_linker=no
15332 ;;
15333
15334# This must be Linux ELF.
e9085da5
MR
15335
15336# uclinux* changes (here and below) have been submitted to the libtool
15337# project, but have not yet been accepted: they are GCC-local changes
15338# for the time being. (See
15339# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15340linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
c915a581
JJ
15341 version_type=linux
15342 need_lib_prefix=no
15343 need_version=no
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15345 soname_spec='${libname}${release}${shared_ext}$major'
15346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15347 shlibpath_var=LD_LIBRARY_PATH
15348 shlibpath_overrides_runpath=no
15349
15350 # Some binutils ld are patched to set DT_RUNPATH
22e05272 15351 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
f35db108
WM
15352 $as_echo_n "(cached) " >&6
15353else
c915a581
JJ
15354 lt_cv_shlibpath_overrides_runpath=no
15355 save_LDFLAGS=$LDFLAGS
15356 save_libdir=$libdir
15357 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15358 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360/* end confdefs.h. */
15361
15362int
15363main ()
15364{
f35db108 15365
c915a581
JJ
15366 ;
15367 return 0;
15368}
15369_ACEOF
15370if ac_fn_cxx_try_link "$LINENO"; then :
15371 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15372 lt_cv_shlibpath_overrides_runpath=yes
15373fi
f35db108 15374fi
c915a581
JJ
15375rm -f core conftest.err conftest.$ac_objext \
15376 conftest$ac_exeext conftest.$ac_ext
15377 LDFLAGS=$save_LDFLAGS
15378 libdir=$save_libdir
f35db108 15379
f35db108
WM
15380fi
15381
c915a581 15382 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
f35db108 15383
c915a581
JJ
15384 # This implies no fast_install, which is unacceptable.
15385 # Some rework will be needed to allow for fast_install
15386 # before this can be enabled.
15387 hardcode_into_libs=yes
f35db108 15388
c915a581
JJ
15389 # Append ld.so.conf contents to the search path
15390 if test -f /etc/ld.so.conf; then
15391 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' ' '`
15392 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15393 fi
f35db108 15394
c915a581
JJ
15395 # We used to test for /lib/ld.so.1 and disable shared libraries on
15396 # powerpc, because MkLinux only supported shared libraries with the
15397 # GNU dynamic linker. Since this was broken with cross compilers,
15398 # most powerpc-linux boxes support dynamic linking these days and
15399 # people can always --disable-shared, the test was removed, and we
15400 # assume the GNU/Linux dynamic linker is in use.
15401 dynamic_linker='GNU/Linux ld.so'
15402 ;;
f35db108 15403
c915a581
JJ
15404netbsd*)
15405 version_type=sunos
15406 need_lib_prefix=no
15407 need_version=no
15408 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15411 dynamic_linker='NetBSD (a.out) ld.so'
15412 else
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15414 soname_spec='${libname}${release}${shared_ext}$major'
15415 dynamic_linker='NetBSD ld.elf_so'
15416 fi
15417 shlibpath_var=LD_LIBRARY_PATH
15418 shlibpath_overrides_runpath=yes
15419 hardcode_into_libs=yes
15420 ;;
f35db108 15421
c915a581
JJ
15422newsos6)
15423 version_type=linux
15424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15425 shlibpath_var=LD_LIBRARY_PATH
15426 shlibpath_overrides_runpath=yes
15427 ;;
15428
15429*nto* | *qnx*)
15430 version_type=qnx
15431 need_lib_prefix=no
15432 need_version=no
15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434 soname_spec='${libname}${release}${shared_ext}$major'
15435 shlibpath_var=LD_LIBRARY_PATH
15436 shlibpath_overrides_runpath=no
15437 hardcode_into_libs=yes
15438 dynamic_linker='ldqnx.so'
15439 ;;
15440
15441openbsd*)
15442 version_type=sunos
15443 sys_lib_dlsearch_path_spec="/usr/lib"
15444 need_lib_prefix=no
15445 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15446 case $host_os in
15447 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15448 *) need_version=no ;;
15449 esac
15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15452 shlibpath_var=LD_LIBRARY_PATH
15453 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15454 case $host_os in
15455 openbsd2.[89] | openbsd2.[89].*)
15456 shlibpath_overrides_runpath=no
15457 ;;
15458 *)
15459 shlibpath_overrides_runpath=yes
15460 ;;
15461 esac
15462 else
15463 shlibpath_overrides_runpath=yes
15464 fi
15465 ;;
f35db108 15466
c915a581
JJ
15467os2*)
15468 libname_spec='$name'
15469 shrext_cmds=".dll"
15470 need_lib_prefix=no
15471 library_names_spec='$libname${shared_ext} $libname.a'
15472 dynamic_linker='OS/2 ld.exe'
15473 shlibpath_var=LIBPATH
15474 ;;
f35db108 15475
c915a581
JJ
15476osf3* | osf4* | osf5*)
15477 version_type=osf
15478 need_lib_prefix=no
15479 need_version=no
15480 soname_spec='${libname}${release}${shared_ext}$major'
15481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15482 shlibpath_var=LD_LIBRARY_PATH
15483 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15484 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15485 ;;
f35db108 15486
c915a581
JJ
15487rdos*)
15488 dynamic_linker=no
15489 ;;
f35db108 15490
c915a581
JJ
15491solaris*)
15492 version_type=linux
15493 need_lib_prefix=no
15494 need_version=no
15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15496 soname_spec='${libname}${release}${shared_ext}$major'
15497 shlibpath_var=LD_LIBRARY_PATH
15498 shlibpath_overrides_runpath=yes
15499 hardcode_into_libs=yes
15500 # ldd complains unless libraries are executable
15501 postinstall_cmds='chmod +x $lib'
15502 ;;
f35db108 15503
c915a581
JJ
15504sunos4*)
15505 version_type=sunos
15506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15507 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15508 shlibpath_var=LD_LIBRARY_PATH
15509 shlibpath_overrides_runpath=yes
15510 if test "$with_gnu_ld" = yes; then
15511 need_lib_prefix=no
15512 fi
15513 need_version=yes
15514 ;;
f35db108 15515
c915a581
JJ
15516sysv4 | sysv4.3*)
15517 version_type=linux
15518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15519 soname_spec='${libname}${release}${shared_ext}$major'
15520 shlibpath_var=LD_LIBRARY_PATH
15521 case $host_vendor in
15522 sni)
15523 shlibpath_overrides_runpath=no
15524 need_lib_prefix=no
15525 runpath_var=LD_RUN_PATH
15526 ;;
15527 siemens)
15528 need_lib_prefix=no
15529 ;;
15530 motorola)
15531 need_lib_prefix=no
15532 need_version=no
15533 shlibpath_overrides_runpath=no
15534 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15535 ;;
15536 esac
15537 ;;
15538
15539sysv4*MP*)
15540 if test -d /usr/nec ;then
15541 version_type=linux
15542 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15543 soname_spec='$libname${shared_ext}.$major'
15544 shlibpath_var=LD_LIBRARY_PATH
15545 fi
15546 ;;
f35db108 15547
c915a581
JJ
15548sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15549 version_type=freebsd-elf
15550 need_lib_prefix=no
15551 need_version=no
15552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15553 soname_spec='${libname}${release}${shared_ext}$major'
15554 shlibpath_var=LD_LIBRARY_PATH
15555 shlibpath_overrides_runpath=yes
15556 hardcode_into_libs=yes
15557 if test "$with_gnu_ld" = yes; then
15558 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15559 else
15560 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15561 case $host_os in
15562 sco3.2v5*)
15563 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15564 ;;
15565 esac
15566 fi
15567 sys_lib_dlsearch_path_spec='/usr/lib'
15568 ;;
f35db108 15569
c915a581
JJ
15570tpf*)
15571 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15572 version_type=linux
15573 need_lib_prefix=no
15574 need_version=no
15575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15576 shlibpath_var=LD_LIBRARY_PATH
15577 shlibpath_overrides_runpath=no
15578 hardcode_into_libs=yes
15579 ;;
f35db108 15580
c915a581
JJ
15581uts4*)
15582 version_type=linux
15583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15584 soname_spec='${libname}${release}${shared_ext}$major'
15585 shlibpath_var=LD_LIBRARY_PATH
15586 ;;
f35db108 15587
c915a581
JJ
15588*)
15589 dynamic_linker=no
15590 ;;
15591esac
15592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15593$as_echo "$dynamic_linker" >&6; }
15594test "$dynamic_linker" = no && can_build_shared=no
f35db108 15595
c915a581
JJ
15596variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15597if test "$GCC" = yes; then
15598 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
f35db108 15599fi
f35db108 15600
c915a581
JJ
15601if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15602 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15603fi
15604if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15605 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15606fi
f35db108
WM
15607
15608
f35db108
WM
15609
15610
15611
f35db108 15612
f35db108 15613
f35db108 15614
f35db108
WM
15615
15616
15617
15618
15619
15620
f35db108 15621
f35db108 15622
f35db108 15623
f35db108
WM
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
c915a581
JJ
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15646$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15647hardcode_action_CXX=
15648if test -n "$hardcode_libdir_flag_spec_CXX" ||
15649 test -n "$runpath_var_CXX" ||
15650 test "X$hardcode_automatic_CXX" = "Xyes" ; then
f35db108 15651
c915a581
JJ
15652 # We can hardcode non-existent directories.
15653 if test "$hardcode_direct_CXX" != no &&
15654 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15655 # have to relink, otherwise we might link with an installed library
15656 # when we should be linking with a yet-to-be-installed one
15657 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15658 test "$hardcode_minus_L_CXX" != no; then
15659 # Linking always hardcodes the temporary library directory.
15660 hardcode_action_CXX=relink
15661 else
15662 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15663 hardcode_action_CXX=immediate
15664 fi
15665else
15666 # We cannot hardcode anything, or else we can only hardcode existing
15667 # directories.
15668 hardcode_action_CXX=unsupported
15669fi
15670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15671$as_echo "$hardcode_action_CXX" >&6; }
f35db108 15672
c915a581
JJ
15673if test "$hardcode_action_CXX" = relink ||
15674 test "$inherit_rpath_CXX" = yes; then
15675 # Fast installation is not supported
15676 enable_fast_install=no
15677elif test "$shlibpath_overrides_runpath" = yes ||
15678 test "$enable_shared" = no; then
15679 # Fast installation is not necessary
15680 enable_fast_install=needless
15681fi
f35db108
WM
15682
15683
15684
15685
15686
15687
15688
c915a581 15689 fi # test -n "$compiler"
f35db108 15690
c915a581
JJ
15691 CC=$lt_save_CC
15692 LDCXX=$LD
15693 LD=$lt_save_LD
15694 GCC=$lt_save_GCC
15695 with_gnu_ld=$lt_save_with_gnu_ld
15696 lt_cv_path_LDCXX=$lt_cv_path_LD
15697 lt_cv_path_LD=$lt_save_path_LD
15698 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15699 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15700fi # test "$_lt_caught_CXX_error" != yes
f35db108 15701
c915a581
JJ
15702ac_ext=c
15703ac_cpp='$CPP $CPPFLAGS'
15704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15706ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108
WM
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
c915a581 15720 ac_config_commands="$ac_config_commands libtool"
f35db108
WM
15721
15722
15723
15724
c915a581 15725# Only expand once:
f35db108
WM
15726
15727
15728
c915a581
JJ
15729for ac_prog in gawk mawk nawk awk
15730do
15731 # Extract the first word of "$ac_prog", so it can be a program name with args.
15732set dummy $ac_prog; ac_word=$2
15733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15734$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15735if ${ac_cv_prog_AWK+:} false; then :
c915a581
JJ
15736 $as_echo_n "(cached) " >&6
15737else
15738 if test -n "$AWK"; then
15739 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15740else
15741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15742for as_dir in $PATH
15743do
15744 IFS=$as_save_IFS
15745 test -z "$as_dir" && as_dir=.
15746 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
15748 ac_cv_prog_AWK="$ac_prog"
15749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15750 break 2
15751 fi
15752done
15753 done
15754IFS=$as_save_IFS
f35db108 15755
c915a581
JJ
15756fi
15757fi
15758AWK=$ac_cv_prog_AWK
15759if test -n "$AWK"; then
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15761$as_echo "$AWK" >&6; }
15762else
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15764$as_echo "no" >&6; }
15765fi
f35db108
WM
15766
15767
c915a581
JJ
15768 test -n "$AWK" && break
15769done
f35db108 15770
c915a581 15771case "$AWK" in
22e05272 15772"") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
c915a581 15773esac
f35db108
WM
15774
15775
15776
a2479b3d 15777
c915a581
JJ
15778# The cast to long int works around a bug in the HP C Compiler
15779# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15780# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15781# This bug is HP SR number 8606223364.
15782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15783$as_echo_n "checking size of void *... " >&6; }
22e05272 15784if ${ac_cv_sizeof_void_p+:} false; then :
c915a581
JJ
15785 $as_echo_n "(cached) " >&6
15786else
15787 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
a2479b3d 15788
c915a581
JJ
15789else
15790 if test "$ac_cv_type_void_p" = yes; then
15791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
15793as_fn_error 77 "cannot compute sizeof (void *)
15794See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
15795 else
15796 ac_cv_sizeof_void_p=0
15797 fi
15798fi
f35db108 15799
c915a581
JJ
15800fi
15801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15802$as_echo "$ac_cv_sizeof_void_p" >&6; }
f35db108
WM
15803
15804
f35db108 15805
c915a581
JJ
15806cat >>confdefs.h <<_ACEOF
15807#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15808_ACEOF
f35db108 15809
f35db108 15810
f35db108 15811
c915a581
JJ
15812if test "${multilib}" = "yes"; then
15813 multilib_arg="--enable-multilib"
15814else
15815 multilib_arg=
15816fi
f35db108 15817
c915a581
JJ
15818# Get target configury.
15819unset TSAN_SUPPORTED
15820unset LSAN_SUPPORTED
15821. ${srcdir}/configure.tgt
15822 if test "x$TSAN_SUPPORTED" = "xyes"; then
15823 TSAN_SUPPORTED_TRUE=
15824 TSAN_SUPPORTED_FALSE='#'
15825else
15826 TSAN_SUPPORTED_TRUE='#'
15827 TSAN_SUPPORTED_FALSE=
15828fi
f35db108 15829
c915a581
JJ
15830 if test "x$LSAN_SUPPORTED" = "xyes"; then
15831 LSAN_SUPPORTED_TRUE=
15832 LSAN_SUPPORTED_FALSE='#'
15833else
15834 LSAN_SUPPORTED_TRUE='#'
15835 LSAN_SUPPORTED_FALSE=
15836fi
f35db108 15837
f35db108 15838
c915a581 15839# Check for functions needed.
3b07c0e5 15840for ac_func in clock_getres clock_gettime clock_settime lstat readlink
c915a581
JJ
15841do :
15842 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15843ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 15844if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
c915a581
JJ
15845 cat >>confdefs.h <<_ACEOF
15846#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15847_ACEOF
f35db108 15848
c915a581
JJ
15849fi
15850done
f35db108 15851
f35db108 15852
c915a581 15853# Common libraries that we need to link against for all sanitizer libs.
bf93d543 15854link_sanitizer_common='-lpthread -lm'
692b1131
MO
15855
15856# At least for glibc, shm_open is in librt. But don't pull that
15857# in if it still doesn't give us the function we want. This
15858# test is copied from libgomp.
15859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
15860$as_echo_n "checking for shm_open in -lrt... " >&6; }
22e05272 15861if ${ac_cv_lib_rt_shm_open+:} false; then :
692b1131
MO
15862 $as_echo_n "(cached) " >&6
15863else
15864 ac_check_lib_save_LIBS=$LIBS
15865LIBS="-lrt $LIBS"
15866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15867/* end confdefs.h. */
15868
15869/* Override any GCC internal prototype to avoid an error.
15870 Use char because int might match the return type of a GCC
15871 builtin and then its argument prototype would still apply. */
15872#ifdef __cplusplus
15873extern "C"
15874#endif
15875char shm_open ();
15876int
15877main ()
15878{
15879return shm_open ();
15880 ;
15881 return 0;
15882}
15883_ACEOF
15884if ac_fn_c_try_link "$LINENO"; then :
15885 ac_cv_lib_rt_shm_open=yes
15886else
15887 ac_cv_lib_rt_shm_open=no
15888fi
15889rm -f core conftest.err conftest.$ac_objext \
15890 conftest$ac_exeext conftest.$ac_ext
15891LIBS=$ac_check_lib_save_LIBS
15892fi
15893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
15894$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
22e05272 15895if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
692b1131
MO
15896 link_sanitizer_common="-lrt $link_sanitizer_common"
15897fi
15898
f35db108 15899
bf93d543
AT
15900# Do a configure time check for -ldl
15901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15902$as_echo_n "checking for dlsym in -ldl... " >&6; }
22e05272 15903if ${ac_cv_lib_dl_dlsym+:} false; then :
bf93d543
AT
15904 $as_echo_n "(cached) " >&6
15905else
15906 ac_check_lib_save_LIBS=$LIBS
15907LIBS="-ldl $LIBS"
15908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909/* end confdefs.h. */
15910
15911/* Override any GCC internal prototype to avoid an error.
15912 Use char because int might match the return type of a GCC
15913 builtin and then its argument prototype would still apply. */
15914#ifdef __cplusplus
15915extern "C"
15916#endif
15917char dlsym ();
15918int
15919main ()
15920{
15921return dlsym ();
15922 ;
15923 return 0;
15924}
15925_ACEOF
15926if ac_fn_c_try_link "$LINENO"; then :
15927 ac_cv_lib_dl_dlsym=yes
15928else
15929 ac_cv_lib_dl_dlsym=no
15930fi
15931rm -f core conftest.err conftest.$ac_objext \
15932 conftest$ac_exeext conftest.$ac_ext
15933LIBS=$ac_check_lib_save_LIBS
15934fi
15935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15936$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
22e05272 15937if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
bf93d543
AT
15938 link_sanitizer_common="-ldl $link_sanitizer_common"
15939fi
15940
15941
c915a581
JJ
15942# Set up the set of additional libraries that we need to link against for libasan.
15943link_libasan=$link_sanitizer_common
f35db108 15944
f35db108 15945
c915a581
JJ
15946# Set up the set of additional libraries that we need to link against for libtsan.
15947link_libtsan=$link_sanitizer_common
f35db108 15948
f35db108 15949
c915a581
JJ
15950# Set up the set of additional libraries that we need to link against for libubsan.
15951link_libubsan=$link_sanitizer_common
f35db108 15952
f35db108 15953
c915a581
JJ
15954# Set up the set of additional libraries that we need to link against for liblsan.
15955link_liblsan=$link_sanitizer_common
f35db108 15956
f35db108 15957
692b1131
MO
15958
15959# At least for glibc, clock_gettime is in librt. But don't pull that
15960# in if it still doesn't give us the function we want. This
15961# test is copied from libgomp.
15962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15963$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22e05272 15964if ${ac_cv_lib_rt_clock_gettime+:} false; then :
692b1131
MO
15965 $as_echo_n "(cached) " >&6
15966else
15967 ac_check_lib_save_LIBS=$LIBS
15968LIBS="-lrt $LIBS"
15969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970/* end confdefs.h. */
15971
15972/* Override any GCC internal prototype to avoid an error.
15973 Use char because int might match the return type of a GCC
15974 builtin and then its argument prototype would still apply. */
15975#ifdef __cplusplus
15976extern "C"
15977#endif
15978char clock_gettime ();
15979int
15980main ()
15981{
15982return clock_gettime ();
15983 ;
15984 return 0;
15985}
15986_ACEOF
15987if ac_fn_c_try_link "$LINENO"; then :
15988 ac_cv_lib_rt_clock_gettime=yes
15989else
15990 ac_cv_lib_rt_clock_gettime=no
15991fi
15992rm -f core conftest.err conftest.$ac_objext \
15993 conftest$ac_exeext conftest.$ac_ext
15994LIBS=$ac_check_lib_save_LIBS
15995fi
15996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15997$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22e05272 15998if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
692b1131
MO
15999 link_libasan="-lrt $link_libasan"
16000link_libtsan="-lrt $link_libtsan"
16001# Other sanitizers do not override clock_* API
16002
16003fi
16004
16005
c915a581 16006case "$host" in
692b1131
MO
16007 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
16008 *) MAC_INTERPOSE=false ;;
c915a581
JJ
16009esac
16010 if $MAC_INTERPOSE; then
16011 USING_MAC_INTERPOSE_TRUE=
16012 USING_MAC_INTERPOSE_FALSE='#'
16013else
16014 USING_MAC_INTERPOSE_TRUE='#'
16015 USING_MAC_INTERPOSE_FALSE=
16016fi
f35db108 16017
c915a581
JJ
16018
16019backtrace_supported=yes
16020
4a7eaf5f
YG
16021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
16022$as_echo_n "checking for necessary platform features... " >&6; }
16023case "$target" in
16024 *-*-linux*)
16025 # Some old Linux distributions miss required syscalls.
16026 sanitizer_supported=no
16027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028/* end confdefs.h. */
16029#include <sys/syscall.h>
16030int
16031main ()
16032{
16033
16034 syscall (__NR_gettid);
16035 syscall (__NR_futex);
16036 syscall (__NR_exit_group);
16037
16038 ;
16039 return 0;
16040}
16041_ACEOF
16042if ac_fn_c_try_compile "$LINENO"; then :
16043 sanitizer_supported=yes
16044fi
16045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16046 ;;
16047 *)
16048 sanitizer_supported=yes
16049 ;;
16050esac
16051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
16052$as_echo "$sanitizer_supported" >&6; }
16053 if test "$sanitizer_supported" = yes; then
16054 SANITIZER_SUPPORTED_TRUE=
16055 SANITIZER_SUPPORTED_FALSE='#'
16056else
16057 SANITIZER_SUPPORTED_TRUE='#'
16058 SANITIZER_SUPPORTED_FALSE=
16059fi
16060
16061
c915a581
JJ
16062# Test for __sync support.
16063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
16064$as_echo_n "checking __sync extensions... " >&6; }
22e05272 16065if ${libsanitizer_cv_sys_sync+:} false; then :
f35db108
WM
16066 $as_echo_n "(cached) " >&6
16067else
c915a581
JJ
16068 if test -n "${with_target_subdir}"; then
16069 libsanitizer_cv_sys_sync=yes
16070 else
16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108 16072/* end confdefs.h. */
c915a581 16073int i;
f35db108
WM
16074int
16075main ()
16076{
c915a581
JJ
16077__sync_bool_compare_and_swap (&i, i, i);
16078 __sync_lock_test_and_set (&i, 1);
16079 __sync_lock_release (&i);
f35db108
WM
16080 ;
16081 return 0;
16082}
16083_ACEOF
c915a581
JJ
16084if ac_fn_c_try_link "$LINENO"; then :
16085 libsanitizer_cv_sys_sync=yes
16086else
16087 libsanitizer_cv_sys_sync=no
f35db108
WM
16088fi
16089rm -f core conftest.err conftest.$ac_objext \
16090 conftest$ac_exeext conftest.$ac_ext
c915a581 16091 fi
f35db108 16092fi
c915a581
JJ
16093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
16094$as_echo "$libsanitizer_cv_sys_sync" >&6; }
16095if test "$libsanitizer_cv_sys_sync" = "yes"; then
f35db108 16096
c915a581 16097$as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
f35db108 16098
f35db108
WM
16099fi
16100
c915a581
JJ
16101# Test for __atomic support.
16102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
16103$as_echo_n "checking __atomic extensions... " >&6; }
22e05272 16104if ${libsanitizer_cv_sys_atomic+:} false; then :
c915a581
JJ
16105 $as_echo_n "(cached) " >&6
16106else
16107 if test -n "${with_target_subdir}"; then
16108 libsanitizer_cv_sys_atomic=yes
16109 else
16110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16111/* end confdefs.h. */
16112int i;
16113int
16114main ()
16115{
16116__atomic_load_n (&i, __ATOMIC_ACQUIRE);
16117 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
16118 ;
16119 return 0;
16120}
16121_ACEOF
16122if ac_fn_c_try_link "$LINENO"; then :
16123 libsanitizer_cv_sys_atomic=yes
16124else
16125 libsanitizer_cv_sys_atomic=no
f35db108 16126fi
c915a581
JJ
16127rm -f core conftest.err conftest.$ac_objext \
16128 conftest$ac_exeext conftest.$ac_ext
16129 fi
f35db108 16130fi
c915a581
JJ
16131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
16132$as_echo "$libsanitizer_cv_sys_atomic" >&6; }
16133if test "$libsanitizer_cv_sys_atomic" = "yes"; then
f35db108 16134
c915a581 16135$as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
f35db108 16136
c915a581 16137fi
f35db108 16138
c915a581
JJ
16139# The library needs to be able to read the executable itself. Compile
16140# a file to determine the executable format. The awk script
16141# filetype.awk prints out the file type.
16142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
16143$as_echo_n "checking output filetype... " >&6; }
22e05272 16144if ${libsanitizer_cv_sys_filetype+:} false; then :
c915a581
JJ
16145 $as_echo_n "(cached) " >&6
16146else
16147 filetype=
16148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149/* end confdefs.h. */
16150int i;
16151int
16152main ()
16153{
16154int j;
16155 ;
16156 return 0;
16157}
16158_ACEOF
16159if ac_fn_c_try_compile "$LINENO"; then :
16160 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
16161else
16162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16164as_fn_error $? "compiler failed
16165See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
16166fi
16167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16168libsanitizer_cv_sys_filetype=$filetype
16169fi
16170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
16171$as_echo "$libsanitizer_cv_sys_filetype" >&6; }
16172
16173# Match the file type to decide what files to compile.
16174FORMAT_FILE=
16175case "$libsanitizer_cv_sys_filetype" in
16176elf*) FORMAT_FILE="elf.lo" ;;
16177*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
16178$as_echo "$as_me: WARNING: could not determine output file type" >&2;}
16179 FORMAT_FILE="unknown.lo"
16180 backtrace_supported=no
16181 ;;
16182esac
f35db108
WM
16183
16184
c915a581
JJ
16185# ELF defines.
16186elfsize=
16187case "$libsanitizer_cv_sys_filetype" in
16188elf32) elfsize=32 ;;
16189elf64) elfsize=64 ;;
16190esac
f35db108 16191
c915a581
JJ
16192cat >>confdefs.h <<_ACEOF
16193#define BACKTRACE_ELF_SIZE $elfsize
16194_ACEOF
f35db108
WM
16195
16196
c915a581
JJ
16197BACKTRACE_SUPPORTED=0
16198if test "$backtrace_supported" = "yes"; then
16199 BACKTRACE_SUPPORTED=1
16200fi
f35db108
WM
16201
16202
16203
16204
c915a581 16205inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
f35db108 16206
c915a581
JJ
16207acx_cv_header_stdint=stddef.h
16208acx_cv_header_stdint_kind="(already complete)"
16209for i in stdint.h $inttype_headers; do
16210 unset ac_cv_type_uintptr_t
16211 unset ac_cv_type_uintmax_t
16212 unset ac_cv_type_int_least32_t
16213 unset ac_cv_type_int_fast32_t
16214 unset ac_cv_type_uint64_t
16215 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16216 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16217#include <$i>
16218"
22e05272 16219if test "x$ac_cv_type_uintmax_t" = xyes; then :
c915a581
JJ
16220 acx_cv_header_stdint=$i
16221else
16222 continue
16223fi
f35db108 16224
c915a581
JJ
16225 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16226#include <$i>
16227"
22e05272 16228if test "x$ac_cv_type_uintptr_t" = xyes; then :
f35db108 16229
c915a581
JJ
16230else
16231 acx_cv_header_stdint_kind="(mostly complete)"
16232fi
f35db108 16233
c915a581
JJ
16234 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16235#include <$i>
16236"
22e05272 16237if test "x$ac_cv_type_int_least32_t" = xyes; then :
f35db108 16238
c915a581
JJ
16239else
16240 acx_cv_header_stdint_kind="(mostly complete)"
16241fi
f35db108 16242
c915a581
JJ
16243 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16244#include <$i>
16245"
22e05272 16246if test "x$ac_cv_type_int_fast32_t" = xyes; then :
f35db108 16247
c915a581
JJ
16248else
16249 acx_cv_header_stdint_kind="(mostly complete)"
16250fi
f35db108 16251
c915a581
JJ
16252 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16253#include <$i>
16254"
22e05272 16255if test "x$ac_cv_type_uint64_t" = xyes; then :
f35db108 16256
c915a581
JJ
16257else
16258 acx_cv_header_stdint_kind="(lacks uint64_t)"
16259fi
f35db108 16260
c915a581
JJ
16261 break
16262done
16263if test "$acx_cv_header_stdint" = stddef.h; then
16264 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16265 for i in stdint.h $inttype_headers; do
16266 unset ac_cv_type_uintptr_t
16267 unset ac_cv_type_uint32_t
16268 unset ac_cv_type_uint64_t
16269 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16270 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16271#include <$i>
16272"
22e05272 16273if test "x$ac_cv_type_uint32_t" = xyes; then :
c915a581
JJ
16274 acx_cv_header_stdint=$i
16275else
16276 continue
16277fi
f35db108 16278
c915a581
JJ
16279 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16280#include <$i>
16281"
22e05272 16282if test "x$ac_cv_type_uint64_t" = xyes; then :
f35db108 16283
c915a581 16284fi
f35db108 16285
c915a581
JJ
16286 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16287#include <$i>
16288"
22e05272 16289if test "x$ac_cv_type_uintptr_t" = xyes; then :
f35db108 16290
c915a581 16291fi
f35db108 16292
c915a581
JJ
16293 break
16294 done
16295fi
16296if test "$acx_cv_header_stdint" = stddef.h; then
16297 acx_cv_header_stdint_kind="(u_intXX_t style)"
16298 for i in sys/types.h $inttype_headers; do
16299 unset ac_cv_type_u_int32_t
16300 unset ac_cv_type_u_int64_t
16301 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16302 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16303#include <$i>
16304"
22e05272 16305if test "x$ac_cv_type_u_int32_t" = xyes; then :
c915a581
JJ
16306 acx_cv_header_stdint=$i
16307else
16308 continue
16309fi
f35db108 16310
c915a581
JJ
16311 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16312#include <$i>
16313"
22e05272 16314if test "x$ac_cv_type_u_int64_t" = xyes; then :
f35db108 16315
c915a581 16316fi
f35db108 16317
c915a581
JJ
16318 break
16319 done
16320fi
16321if test "$acx_cv_header_stdint" = stddef.h; then
16322 acx_cv_header_stdint_kind="(using manual detection)"
16323fi
f35db108 16324
c915a581
JJ
16325test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16326test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16327test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16328test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16329test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
f35db108 16330
c915a581 16331# ----------------- Summarize what we found so far
f35db108 16332
c915a581
JJ
16333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16334$as_echo_n "checking what to include in gstdint.h... " >&6; }
f35db108 16335
c915a581
JJ
16336case `$as_basename -- gstdint.h ||
16337$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16338 Xgstdint.h : 'X\(//\)$' \| \
16339 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16340$as_echo X/gstdint.h |
16341 sed '/^.*\/\([^/][^/]*\)\/*$/{
16342 s//\1/
16343 q
16344 }
16345 /^X\/\(\/\/\)$/{
16346 s//\1/
16347 q
16348 }
16349 /^X\/\(\/\).*/{
16350 s//\1/
16351 q
16352 }
16353 s/.*/./; q'` in
16354 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16355$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16356 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16357$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16358 *) ;;
16359esac
f35db108 16360
c915a581
JJ
16361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16362$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
f35db108 16363
c915a581 16364# ----------------- done included file, check C basic types --------
f35db108 16365
c915a581
JJ
16366# Lacking an uintptr_t? Test size of void *
16367case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16368 stddef.h:* | *: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 void *" >&5
16373$as_echo_n "checking size of void *... " >&6; }
22e05272 16374if ${ac_cv_sizeof_void_p+:} false; then :
c915a581
JJ
16375 $as_echo_n "(cached) " >&6
16376else
16377 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
f35db108 16378
f35db108 16379else
c915a581
JJ
16380 if test "$ac_cv_type_void_p" = 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 (void *)
16384See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
16385 else
16386 ac_cv_sizeof_void_p=0
16387 fi
f35db108 16388fi
f35db108 16389
f35db108 16390fi
c915a581
JJ
16391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16392$as_echo "$ac_cv_sizeof_void_p" >&6; }
f35db108
WM
16393
16394
16395
c915a581
JJ
16396cat >>confdefs.h <<_ACEOF
16397#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16398_ACEOF
f35db108 16399
c915a581
JJ
16400 ;;
16401esac
f35db108 16402
c915a581
JJ
16403# Lacking an uint64_t? Test size of long
16404case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16405 stddef.h:*:* | *:no:no) # 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 long" >&5
16410$as_echo_n "checking size of long... " >&6; }
22e05272 16411if ${ac_cv_sizeof_long+:} false; then :
c915a581
JJ
16412 $as_echo_n "(cached) " >&6
16413else
16414 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
f35db108 16415
c915a581
JJ
16416else
16417 if test "$ac_cv_type_long" = 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 (long)
16421See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
16422 else
16423 ac_cv_sizeof_long=0
16424 fi
16425fi
f35db108 16426
c915a581
JJ
16427fi
16428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16429$as_echo "$ac_cv_sizeof_long" >&6; }
f35db108
WM
16430
16431
16432
c915a581
JJ
16433cat >>confdefs.h <<_ACEOF
16434#define SIZEOF_LONG $ac_cv_sizeof_long
16435_ACEOF
f35db108 16436
c915a581
JJ
16437 ;;
16438esac
f35db108 16439
c915a581
JJ
16440if test $acx_cv_header_stdint = stddef.h; then
16441 # Lacking a good header? Test size of everything and deduce all types.
16442 # The cast to long int works around a bug in the HP C Compiler
16443# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16444# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16445# This bug is HP SR number 8606223364.
16446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16447$as_echo_n "checking size of int... " >&6; }
22e05272 16448if ${ac_cv_sizeof_int+:} false; then :
c915a581
JJ
16449 $as_echo_n "(cached) " >&6
16450else
16451 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
f35db108 16452
c915a581
JJ
16453else
16454 if test "$ac_cv_type_int" = yes; then
16455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16457as_fn_error 77 "cannot compute sizeof (int)
16458See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
16459 else
16460 ac_cv_sizeof_int=0
16461 fi
16462fi
f35db108 16463
c915a581
JJ
16464fi
16465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16466$as_echo "$ac_cv_sizeof_int" >&6; }
f35db108
WM
16467
16468
f35db108 16469
c915a581
JJ
16470cat >>confdefs.h <<_ACEOF
16471#define SIZEOF_INT $ac_cv_sizeof_int
16472_ACEOF
f35db108
WM
16473
16474
c915a581
JJ
16475 # The cast to long int works around a bug in the HP C Compiler
16476# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16477# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16478# This bug is HP SR number 8606223364.
16479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16480$as_echo_n "checking size of short... " >&6; }
22e05272 16481if ${ac_cv_sizeof_short+:} false; then :
c915a581
JJ
16482 $as_echo_n "(cached) " >&6
16483else
16484 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
f35db108 16485
c915a581
JJ
16486else
16487 if test "$ac_cv_type_short" = yes; then
16488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16490as_fn_error 77 "cannot compute sizeof (short)
16491See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
16492 else
16493 ac_cv_sizeof_short=0
16494 fi
16495fi
f35db108 16496
c915a581
JJ
16497fi
16498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16499$as_echo "$ac_cv_sizeof_short" >&6; }
f35db108
WM
16500
16501
16502
c915a581
JJ
16503cat >>confdefs.h <<_ACEOF
16504#define SIZEOF_SHORT $ac_cv_sizeof_short
16505_ACEOF
f35db108
WM
16506
16507
c915a581 16508 # The cast to long int works around a bug in the HP C Compiler
64548f3b
JJ
16509# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16510# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16511# This bug is HP SR number 8606223364.
c915a581
JJ
16512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16513$as_echo_n "checking size of char... " >&6; }
22e05272 16514if ${ac_cv_sizeof_char+:} false; then :
64548f3b
JJ
16515 $as_echo_n "(cached) " >&6
16516else
c915a581 16517 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
64548f3b
JJ
16518
16519else
c915a581 16520 if test "$ac_cv_type_char" = yes; then
64548f3b
JJ
16521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16523as_fn_error 77 "cannot compute sizeof (char)
16524See \`config.log' for more details" "$LINENO" 5; }
64548f3b 16525 else
c915a581 16526 ac_cv_sizeof_char=0
64548f3b
JJ
16527 fi
16528fi
16529
16530fi
c915a581
JJ
16531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16532$as_echo "$ac_cv_sizeof_char" >&6; }
16533
16534
16535
16536cat >>confdefs.h <<_ACEOF
16537#define SIZEOF_CHAR $ac_cv_sizeof_char
16538_ACEOF
16539
16540
16541
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16543$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16544 case "$ac_cv_sizeof_char" in
16545 1) acx_cv_type_int8_t=char ;;
22e05272 16546 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
c915a581
JJ
16547 esac
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16549$as_echo "$acx_cv_type_int8_t" >&6; }
16550
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16552$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16553 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16554 2:*) acx_cv_type_int16_t=int ;;
16555 *:2) acx_cv_type_int16_t=short ;;
22e05272 16556 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
c915a581
JJ
16557 esac
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16559$as_echo "$acx_cv_type_int16_t" >&6; }
16560
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16562$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16563 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16564 4:*) acx_cv_type_int32_t=int ;;
16565 *:4) acx_cv_type_int32_t=long ;;
22e05272 16566 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
c915a581
JJ
16567 esac
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16569$as_echo "$acx_cv_type_int32_t" >&6; }
16570fi
16571
16572# These tests are here to make the output prettier
16573
16574if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16575 case "$ac_cv_sizeof_long" in
16576 8) acx_cv_type_int64_t=long ;;
16577 esac
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16579$as_echo_n "checking for type equivalent to int64_t... " >&6; }
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16581$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16582fi
16583
16584# Now we can use the above types
16585
16586if test "$ac_cv_type_uintptr_t" != yes; then
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16588$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16589 case $ac_cv_sizeof_void_p in
16590 2) acx_cv_type_intptr_t=int16_t ;;
16591 4) acx_cv_type_intptr_t=int32_t ;;
16592 8) acx_cv_type_intptr_t=int64_t ;;
22e05272 16593 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
c915a581
JJ
16594 esac
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16596$as_echo "$acx_cv_type_intptr_t" >&6; }
16597fi
16598
16599# ----------------- done all checks, emit header -------------
16600ac_config_commands="$ac_config_commands gstdint.h"
16601
16602
16603
16604
b5f58ba3 16605for ac_header in sys/mman.h alloca.h
c915a581 16606do :
b5f58ba3
JJ
16607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16608ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22e05272 16609if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
c915a581 16610 cat >>confdefs.h <<_ACEOF
b5f58ba3 16611#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
c915a581
JJ
16612_ACEOF
16613
16614fi
16615
16616done
16617
16618if test "$ac_cv_header_sys_mman_h" = "no"; then
16619 have_mmap=no
16620else
16621 if test -n "${with_target_subdir}"; then
16622 # When built as a GCC target library, we can't do a link test. We
16623 # simply assume that if we have mman.h, we have mmap.
16624 have_mmap=yes
16625 else
16626 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22e05272 16627if test "x$ac_cv_func_mmap" = xyes; then :
c915a581
JJ
16628 have_mmap=yes
16629else
16630 have_mmap=no
16631fi
16632
16633 fi
16634fi
16635if test "$have_mmap" = "no"; then
16636 VIEW_FILE=read.lo
16637 ALLOC_FILE=alloc.lo
16638else
16639 VIEW_FILE=mmapio.lo
16640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641/* end confdefs.h. */
64548f3b 16642
c915a581
JJ
16643#include <sys/mman.h>
16644#if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
16645 #error no MAP_ANONYMOUS
16646#endif
64548f3b 16647
64548f3b 16648_ACEOF
c915a581
JJ
16649if ac_fn_c_try_cpp "$LINENO"; then :
16650 ALLOC_FILE=mmap.lo
16651else
16652 ALLOC_FILE=alloc.lo
16653fi
22e05272 16654rm -f conftest.err conftest.i conftest.$ac_ext
c915a581 16655fi
64548f3b
JJ
16656
16657
16658
c915a581
JJ
16659BACKTRACE_USES_MALLOC=0
16660if test "$ALLOC_FILE" = "alloc.lo"; then
16661 BACKTRACE_USES_MALLOC=1
2a6346c4 16662fi
64548f3b 16663
cd0be65c 16664
c915a581
JJ
16665# Don't care about thread support
16666BACKTRACE_SUPPORTS_THREADS=0
9065ada9 16667
f35db108 16668
c915a581
JJ
16669# Check for dl_iterate_phdr.
16670for ac_header in link.h
35814b03 16671do :
c915a581 16672 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
22e05272 16673if test "x$ac_cv_header_link_h" = xyes; then :
35814b03 16674 cat >>confdefs.h <<_ACEOF
c915a581 16675#define HAVE_LINK_H 1
35814b03
JJ
16676_ACEOF
16677
16678fi
35814b03 16679
c915a581 16680done
35814b03 16681
c915a581
JJ
16682if test "$ac_cv_header_link_h" = "no"; then
16683 have_dl_iterate_phdr=no
16684else
16685 # When built as a GCC target library, we can't do a link test.
16686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687/* end confdefs.h. */
16688#include <link.h>
35814b03 16689
c915a581
JJ
16690_ACEOF
16691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16692 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
16693 have_dl_iterate_phdr=yes
16694else
16695 have_dl_iterate_phdr=no
16696fi
16697rm -f conftest*
35814b03 16698
c915a581
JJ
16699fi
16700if test "$have_dl_iterate_phdr" = "yes"; then
35814b03 16701
c915a581 16702$as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
35814b03 16703
c915a581 16704fi
35814b03 16705
c915a581
JJ
16706# Check for the fcntl function.
16707if test -n "${with_target_subdir}"; then
16708 case "${host}" in
16709 *-*-mingw*) have_fcntl=no ;;
16710 *) have_fcntl=yes ;;
16711 esac
16712else
16713 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
22e05272 16714if test "x$ac_cv_func_fcntl" = xyes; then :
c915a581
JJ
16715 have_fcntl=yes
16716else
16717 have_fcntl=no
16718fi
35814b03 16719
c915a581
JJ
16720fi
16721if test "$have_fcntl" = "yes"; then
35814b03 16722
c915a581 16723$as_echo "#define HAVE_FCNTL 1" >>confdefs.h
35814b03 16724
c915a581 16725fi
35814b03 16726
c915a581 16727ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
22e05272 16728if test "x$ac_cv_have_decl_strnlen" = xyes; then :
c915a581 16729 ac_have_decl=1
35814b03 16730else
c915a581
JJ
16731 ac_have_decl=0
16732fi
35814b03 16733
c915a581
JJ
16734cat >>confdefs.h <<_ACEOF
16735#define HAVE_DECL_STRNLEN $ac_have_decl
35814b03 16736_ACEOF
c915a581
JJ
16737
16738
16739# Check for getexecname function.
16740if test -n "${with_target_subdir}"; then
16741 case "${host}" in
16742 *-*-solaris2*) have_getexecname=yes ;;
16743 *) have_getexecname=no ;;
16744 esac
35814b03 16745else
c915a581 16746 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
22e05272 16747if test "x$ac_cv_func_getexecname" = xyes; then :
c915a581
JJ
16748 have_getexecname=yes
16749else
16750 have_getexecname=no
35814b03 16751fi
35814b03
JJ
16752
16753fi
c915a581
JJ
16754if test "$have_getexecname" = "yes"; then
16755
16756$as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
35814b03
JJ
16757
16758fi
16759
d041a6fc
YG
16760# Check for rpc/xdr.h
16761for ac_header in rpc/xdr.h
16762do :
16763 ac_fn_c_check_header_mongrel "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default"
22e05272 16764if test "x$ac_cv_header_rpc_xdr_h" = xyes; then :
d041a6fc
YG
16765 cat >>confdefs.h <<_ACEOF
16766#define HAVE_RPC_XDR_H 1
16767_ACEOF
16768
16769fi
16770
16771done
16772
16773if test x"$ac_cv_header_rpc_xdr_h" = xyes; then
16774 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=1"
16775else
16776 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=0"
16777fi
16778
16779# Check for tirpc/rpc/xdr.h
16780for ac_header in tirpc/rpc/xdr.h
16781do :
16782 ac_fn_c_check_header_mongrel "$LINENO" "tirpc/rpc/xdr.h" "ac_cv_header_tirpc_rpc_xdr_h" "$ac_includes_default"
22e05272 16783if test "x$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then :
d041a6fc
YG
16784 cat >>confdefs.h <<_ACEOF
16785#define HAVE_TIRPC_RPC_XDR_H 1
16786_ACEOF
16787
16788fi
16789
16790done
16791
16792if test x"$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then
16793 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=1"
16794else
16795 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=0"
16796fi
16797
16798RPC_DEFS=$rpc_defs
16799
16800
c915a581
JJ
16801 if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
16802 LIBBACKTRACE_SUPPORTED_TRUE=
16803 LIBBACKTRACE_SUPPORTED_FALSE='#'
f246eadc 16804else
c915a581
JJ
16805 LIBBACKTRACE_SUPPORTED_TRUE='#'
16806 LIBBACKTRACE_SUPPORTED_FALSE=
f246eadc
JH
16807fi
16808
16809
f35db108 16810
c915a581
JJ
16811ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
16812
16813ac_config_headers="$ac_config_headers config.h"
f35db108 16814
c915a581
JJ
16815
16816ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
f35db108
WM
16817
16818
64548f3b 16819if test "x$TSAN_SUPPORTED" = "xyes"; then
cd0be65c
WM
16820 ac_config_files="$ac_config_files tsan/Makefile"
16821
16822fi
16823
b0edd457
VK
16824
16825
10189819 16826
3c36aa6b
JJ
16827# Determine what GCC version number to use in filesystem paths.
16828
16829 get_gcc_base_ver="cat"
16830
16831# Check whether --with-gcc-major-version-only was given.
16832if test "${with_gcc_major_version_only+set}" = set; then :
16833 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 16834 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
16835 fi
16836
16837fi
16838
16839
16840
16841
9069eb28
IT
16842# Add CET specific flags if Intel CET is enabled.
16843 # Check whether --enable-cet was given.
16844if test "${enable_cet+set}" = set; then :
16845 enableval=$enable_cet;
16846 case "$enableval" in
a0e1df88 16847 yes|no|auto) ;;
22e05272 16848 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
9069eb28
IT
16849 esac
16850
16851else
8d286dd1 16852 enable_cet=auto
9069eb28
IT
16853fi
16854
16855
14e335ed
IT
16856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16857$as_echo_n "checking for CET support... " >&6; }
16858
9051b548 16859# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
9069eb28
IT
16860case "$host" in
16861 i[34567]86-*-linux* | x86_64-*-linux*)
16862 case "$enable_cet" in
a0e1df88 16863 auto)
14e335ed
IT
16864 # Check if target supports multi-byte NOPs
16865 # and if assembler supports CET insn.
9051b548 16866 cet_save_CFLAGS="$CFLAGS"
4c1a5d8b 16867 CFLAGS="$CFLAGS -fcf-protection"
9069eb28
IT
16868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869/* end confdefs.h. */
16870
16871int
16872main ()
16873{
14e335ed
IT
16874
16875#if !defined(__SSE2__)
16876#error target does not support multi-byte NOPs
16877#else
9069eb28 16878asm ("setssbsy");
14e335ed
IT
16879#endif
16880
9069eb28
IT
16881 ;
16882 return 0;
16883}
16884_ACEOF
16885if ac_fn_c_try_compile "$LINENO"; then :
16886 enable_cet=yes
16887else
16888 enable_cet=no
16889fi
16890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051b548 16891 CFLAGS="$cet_save_CFLAGS"
9069eb28
IT
16892 ;;
16893 yes)
16894 # Check if assembler supports CET.
16895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16896/* end confdefs.h. */
16897
16898int
16899main ()
16900{
16901asm ("setssbsy");
16902 ;
16903 return 0;
16904}
16905_ACEOF
16906if ac_fn_c_try_compile "$LINENO"; then :
16907
16908else
22e05272 16909 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
9069eb28
IT
16910fi
16911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16912 ;;
16913 esac
16914 ;;
16915 *)
16916 enable_cet=no
16917 ;;
16918esac
16919if test x$enable_cet = xyes; then
7b47ecf2 16920 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16922$as_echo "yes" >&6; }
16923else
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16925$as_echo "no" >&6; }
9069eb28
IT
16926fi
16927
16928EXTRA_CFLAGS="$EXTRA_CFLAGS $CET_FLAGS"
16929EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $CET_FLAGS"
16930EXTRA_ASFLAGS=$CET_FLAGS
16931
16932
16933
16934
f35db108
WM
16935cat >confcache <<\_ACEOF
16936# This file is a shell script that caches the results of configure
16937# tests run on this system so they can be shared between configure
16938# scripts and configure runs, see configure's option --config-cache.
16939# It is not useful on other systems. If it contains results you don't
16940# want to keep, you may remove or edit it.
16941#
16942# config.status only pays attention to the cache file if you give it
16943# the --recheck option to rerun configure.
16944#
16945# `ac_cv_env_foo' variables (set or unset) will be overridden when
16946# loading this file, other *unset* `ac_cv_foo' will be assigned the
16947# following values.
16948
16949_ACEOF
16950
16951# The following way of writing the cache mishandles newlines in values,
16952# but we know of no workaround that is simple, portable, and efficient.
16953# So, we kill variables containing newlines.
16954# Ultrix sh set writes to stderr and can't be redirected directly,
16955# and sets the high bit in the cache file unless we assign to the vars.
16956(
16957 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16958 eval ac_val=\$$ac_var
16959 case $ac_val in #(
16960 *${as_nl}*)
16961 case $ac_var in #(
16962 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16963$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16964 esac
16965 case $ac_var in #(
16966 _ | IFS | as_nl) ;; #(
16967 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16968 *) { eval $ac_var=; unset $ac_var;} ;;
16969 esac ;;
16970 esac
16971 done
16972
16973 (set) 2>&1 |
16974 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16975 *${as_nl}ac_space=\ *)
16976 # `set' does not quote correctly, so add quotes: double-quote
16977 # substitution turns \\\\ into \\, and sed turns \\ into \.
16978 sed -n \
16979 "s/'/'\\\\''/g;
16980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16981 ;; #(
16982 *)
16983 # `set' quotes correctly as required by POSIX, so do not add quotes.
16984 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16985 ;;
16986 esac |
16987 sort
16988) |
16989 sed '
16990 /^ac_cv_env_/b end
16991 t clear
16992 :clear
16993 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16994 t end
16995 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16996 :end' >>confcache
16997if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16998 if test -w "$cache_file"; then
22e05272 16999 if test "x$cache_file" != "x/dev/null"; then
f35db108
WM
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17001$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
17002 if test ! -f "$cache_file" || test -h "$cache_file"; then
17003 cat confcache >"$cache_file"
17004 else
17005 case $cache_file in #(
17006 */* | ?:*)
17007 mv -f confcache "$cache_file"$$ &&
17008 mv -f "$cache_file"$$ "$cache_file" ;; #(
17009 *)
17010 mv -f confcache "$cache_file" ;;
17011 esac
17012 fi
17013 fi
f35db108
WM
17014 else
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17016$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17017 fi
17018fi
17019rm -f confcache
17020
17021test "x$prefix" = xNONE && prefix=$ac_default_prefix
17022# Let make expand exec_prefix.
17023test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17024
c915a581 17025DEFS=-DHAVE_CONFIG_H
f35db108
WM
17026
17027ac_libobjs=
17028ac_ltlibobjs=
22e05272 17029U=
f35db108
WM
17030for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17031 # 1. Remove the extension, and $U if already installed.
17032 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17033 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17034 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17035 # will be set to the directory where LIBOBJS objects are built.
17036 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17037 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17038done
17039LIBOBJS=$ac_libobjs
17040
17041LTLIBOBJS=$ac_ltlibobjs
17042
17043
22e05272
JM
17044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17045$as_echo_n "checking that generated files are newer than configure... " >&6; }
17046 if test -n "$am_sleep_pid"; then
17047 # Hide warnings about reused PIDs.
17048 wait $am_sleep_pid 2>/dev/null
17049 fi
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17051$as_echo "done" >&6; }
c915a581 17052if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 17053 as_fn_error $? "conditional \"AMDEP\" was never defined.
c915a581
JJ
17054Usually this means the macro was only invoked conditionally." "$LINENO" 5
17055fi
17056if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 17057 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
c915a581
JJ
17058Usually this means the macro was only invoked conditionally." "$LINENO" 5
17059fi
f35db108
WM
17060 if test -n "$EXEEXT"; then
17061 am__EXEEXT_TRUE=
17062 am__EXEEXT_FALSE='#'
17063else
17064 am__EXEEXT_TRUE='#'
17065 am__EXEEXT_FALSE=
17066fi
17067
2b723e21 17068if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 17069 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
2b723e21
TT
17070Usually this means the macro was only invoked conditionally." "$LINENO" 5
17071fi
f35db108 17072if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22e05272 17073 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
f35db108
WM
17074Usually this means the macro was only invoked conditionally." "$LINENO" 5
17075fi
17076if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22e05272 17077 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
f35db108
WM
17078Usually this means the macro was only invoked conditionally." "$LINENO" 5
17079fi
64548f3b 17080if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
22e05272 17081 as_fn_error $? "conditional \"TSAN_SUPPORTED\" was never defined.
cd0be65c
WM
17082Usually this means the macro was only invoked conditionally." "$LINENO" 5
17083fi
9065ada9 17084if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
22e05272 17085 as_fn_error $? "conditional \"LSAN_SUPPORTED\" was never defined.
9065ada9
JJ
17086Usually this means the macro was only invoked conditionally." "$LINENO" 5
17087fi
8c4d267c 17088if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
22e05272 17089 as_fn_error $? "conditional \"USING_MAC_INTERPOSE\" was never defined.
f246eadc
JH
17090Usually this means the macro was only invoked conditionally." "$LINENO" 5
17091fi
4a7eaf5f 17092if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
22e05272 17093 as_fn_error $? "conditional \"SANITIZER_SUPPORTED\" was never defined.
4a7eaf5f
YG
17094Usually this means the macro was only invoked conditionally." "$LINENO" 5
17095fi
c915a581 17096if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
22e05272 17097 as_fn_error $? "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
c915a581
JJ
17098Usually this means the macro was only invoked conditionally." "$LINENO" 5
17099fi
f35db108 17100
22e05272 17101: "${CONFIG_STATUS=./config.status}"
f35db108
WM
17102ac_write_fail=0
17103ac_clean_files_save=$ac_clean_files
17104ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17105{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17106$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17107as_write_fail=0
17108cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17109#! $SHELL
17110# Generated by $as_me.
17111# Run this file to recreate the current configuration.
17112# Compiler output produced by configure, useful for debugging
17113# configure, is in config.log if it exists.
17114
17115debug=false
17116ac_cs_recheck=false
17117ac_cs_silent=false
17118
17119SHELL=\${CONFIG_SHELL-$SHELL}
17120export SHELL
17121_ASEOF
17122cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17123## -------------------- ##
17124## M4sh Initialization. ##
17125## -------------------- ##
17126
17127# Be more Bourne compatible
17128DUALCASE=1; export DUALCASE # for MKS sh
17129if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17130 emulate sh
17131 NULLCMD=:
17132 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17133 # is contrary to our usage. Disable this feature.
17134 alias -g '${1+"$@"}'='"$@"'
17135 setopt NO_GLOB_SUBST
17136else
17137 case `(set -o) 2>/dev/null` in #(
17138 *posix*) :
17139 set -o posix ;; #(
17140 *) :
17141 ;;
17142esac
17143fi
17144
17145
17146as_nl='
17147'
17148export as_nl
17149# Printing a long string crashes Solaris 7 /usr/bin/printf.
17150as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17151as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17152as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17153# Prefer a ksh shell builtin over an external printf program on Solaris,
17154# but without wasting forks for bash or zsh.
17155if test -z "$BASH_VERSION$ZSH_VERSION" \
17156 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17157 as_echo='print -r --'
17158 as_echo_n='print -rn --'
17159elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17160 as_echo='printf %s\n'
17161 as_echo_n='printf %s'
17162else
17163 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17164 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17165 as_echo_n='/usr/ucb/echo -n'
17166 else
17167 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17168 as_echo_n_body='eval
17169 arg=$1;
17170 case $arg in #(
17171 *"$as_nl"*)
17172 expr "X$arg" : "X\\(.*\\)$as_nl";
17173 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17174 esac;
17175 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17176 '
17177 export as_echo_n_body
17178 as_echo_n='sh -c $as_echo_n_body as_echo'
17179 fi
17180 export as_echo_body
17181 as_echo='sh -c $as_echo_body as_echo'
17182fi
17183
17184# The user is always right.
17185if test "${PATH_SEPARATOR+set}" != set; then
17186 PATH_SEPARATOR=:
17187 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17188 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17189 PATH_SEPARATOR=';'
17190 }
17191fi
17192
17193
17194# IFS
17195# We need space, tab and new line, in precisely that order. Quoting is
17196# there to prevent editors from complaining about space-tab.
17197# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17198# splitting by setting IFS to empty value.)
17199IFS=" "" $as_nl"
17200
17201# Find who we are. Look in the path if we contain no directory separator.
22e05272 17202as_myself=
f35db108
WM
17203case $0 in #((
17204 *[\\/]* ) as_myself=$0 ;;
17205 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17206for as_dir in $PATH
17207do
17208 IFS=$as_save_IFS
17209 test -z "$as_dir" && as_dir=.
17210 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17211 done
17212IFS=$as_save_IFS
17213
17214 ;;
17215esac
17216# We did not find ourselves, most probably we were run as `sh COMMAND'
17217# in which case we are not to be found in the path.
17218if test "x$as_myself" = x; then
17219 as_myself=$0
17220fi
17221if test ! -f "$as_myself"; then
17222 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17223 exit 1
17224fi
17225
17226# Unset variables that we do not need and which cause bugs (e.g. in
17227# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17228# suppresses any "Segmentation fault" message there. '((' could
17229# trigger a bug in pdksh 5.2.14.
17230for as_var in BASH_ENV ENV MAIL MAILPATH
17231do eval test x\${$as_var+set} = xset \
17232 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17233done
17234PS1='$ '
17235PS2='> '
17236PS4='+ '
17237
17238# NLS nuisances.
17239LC_ALL=C
17240export LC_ALL
17241LANGUAGE=C
17242export LANGUAGE
17243
17244# CDPATH.
17245(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17246
17247
22e05272
JM
17248# as_fn_error STATUS ERROR [LINENO LOG_FD]
17249# ----------------------------------------
f35db108
WM
17250# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17251# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 17252# script with STATUS, using 1 if that was 0.
f35db108
WM
17253as_fn_error ()
17254{
22e05272
JM
17255 as_status=$1; test $as_status -eq 0 && as_status=1
17256 if test "$4"; then
17257 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17258 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
f35db108 17259 fi
22e05272 17260 $as_echo "$as_me: error: $2" >&2
f35db108
WM
17261 as_fn_exit $as_status
17262} # as_fn_error
17263
17264
17265# as_fn_set_status STATUS
17266# -----------------------
17267# Set $? to STATUS, without forking.
17268as_fn_set_status ()
17269{
17270 return $1
17271} # as_fn_set_status
17272
17273# as_fn_exit STATUS
17274# -----------------
17275# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17276as_fn_exit ()
17277{
17278 set +e
17279 as_fn_set_status $1
17280 exit $1
17281} # as_fn_exit
17282
17283# as_fn_unset VAR
17284# ---------------
17285# Portably unset VAR.
17286as_fn_unset ()
17287{
17288 { eval $1=; unset $1;}
17289}
17290as_unset=as_fn_unset
17291# as_fn_append VAR VALUE
17292# ----------------------
17293# Append the text in VALUE to the end of the definition contained in VAR. Take
17294# advantage of any shell optimizations that allow amortized linear growth over
17295# repeated appends, instead of the typical quadratic growth present in naive
17296# implementations.
17297if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17298 eval 'as_fn_append ()
17299 {
17300 eval $1+=\$2
17301 }'
17302else
17303 as_fn_append ()
17304 {
17305 eval $1=\$$1\$2
17306 }
17307fi # as_fn_append
17308
17309# as_fn_arith ARG...
17310# ------------------
17311# Perform arithmetic evaluation on the ARGs, and store the result in the
17312# global $as_val. Take advantage of shells that can avoid forks. The arguments
17313# must be portable across $(()) and expr.
17314if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17315 eval 'as_fn_arith ()
17316 {
17317 as_val=$(( $* ))
17318 }'
17319else
17320 as_fn_arith ()
17321 {
17322 as_val=`expr "$@" || test $? -eq 1`
17323 }
17324fi # as_fn_arith
17325
17326
17327if expr a : '\(a\)' >/dev/null 2>&1 &&
17328 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17329 as_expr=expr
17330else
17331 as_expr=false
17332fi
17333
17334if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17335 as_basename=basename
17336else
17337 as_basename=false
17338fi
17339
17340if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17341 as_dirname=dirname
17342else
17343 as_dirname=false
17344fi
17345
17346as_me=`$as_basename -- "$0" ||
17347$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17348 X"$0" : 'X\(//\)$' \| \
17349 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17350$as_echo X/"$0" |
17351 sed '/^.*\/\([^/][^/]*\)\/*$/{
17352 s//\1/
17353 q
17354 }
17355 /^X\/\(\/\/\)$/{
17356 s//\1/
17357 q
17358 }
17359 /^X\/\(\/\).*/{
17360 s//\1/
17361 q
17362 }
17363 s/.*/./; q'`
17364
17365# Avoid depending upon Character Ranges.
17366as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17367as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17368as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17369as_cr_digits='0123456789'
17370as_cr_alnum=$as_cr_Letters$as_cr_digits
17371
17372ECHO_C= ECHO_N= ECHO_T=
17373case `echo -n x` in #(((((
17374-n*)
17375 case `echo 'xy\c'` in
17376 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17377 xy) ECHO_C='\c';;
17378 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17379 ECHO_T=' ';;
17380 esac;;
17381*)
17382 ECHO_N='-n';;
17383esac
17384
17385rm -f conf$$ conf$$.exe conf$$.file
17386if test -d conf$$.dir; then
17387 rm -f conf$$.dir/conf$$.file
17388else
17389 rm -f conf$$.dir
17390 mkdir conf$$.dir 2>/dev/null
17391fi
17392if (echo >conf$$.file) 2>/dev/null; then
17393 if ln -s conf$$.file conf$$ 2>/dev/null; then
17394 as_ln_s='ln -s'
17395 # ... but there are two gotchas:
17396 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17397 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 17398 # In both cases, we have to default to `cp -pR'.
f35db108 17399 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 17400 as_ln_s='cp -pR'
f35db108
WM
17401 elif ln conf$$.file conf$$ 2>/dev/null; then
17402 as_ln_s=ln
17403 else
22e05272 17404 as_ln_s='cp -pR'
f35db108
WM
17405 fi
17406else
22e05272 17407 as_ln_s='cp -pR'
f35db108
WM
17408fi
17409rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17410rmdir conf$$.dir 2>/dev/null
17411
17412
17413# as_fn_mkdir_p
17414# -------------
17415# Create "$as_dir" as a directory, including parents if necessary.
17416as_fn_mkdir_p ()
17417{
17418
17419 case $as_dir in #(
17420 -*) as_dir=./$as_dir;;
17421 esac
17422 test -d "$as_dir" || eval $as_mkdir_p || {
17423 as_dirs=
17424 while :; do
17425 case $as_dir in #(
17426 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17427 *) as_qdir=$as_dir;;
17428 esac
17429 as_dirs="'$as_qdir' $as_dirs"
17430 as_dir=`$as_dirname -- "$as_dir" ||
17431$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17432 X"$as_dir" : 'X\(//\)[^/]' \| \
17433 X"$as_dir" : 'X\(//\)$' \| \
17434 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17435$as_echo X"$as_dir" |
17436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17437 s//\1/
17438 q
17439 }
17440 /^X\(\/\/\)[^/].*/{
17441 s//\1/
17442 q
17443 }
17444 /^X\(\/\/\)$/{
17445 s//\1/
17446 q
17447 }
17448 /^X\(\/\).*/{
17449 s//\1/
17450 q
17451 }
17452 s/.*/./; q'`
17453 test -d "$as_dir" && break
17454 done
17455 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 17456 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
f35db108
WM
17457
17458
17459} # as_fn_mkdir_p
17460if mkdir -p . 2>/dev/null; then
17461 as_mkdir_p='mkdir -p "$as_dir"'
17462else
17463 test -d ./-p && rmdir ./-p
17464 as_mkdir_p=false
17465fi
17466
22e05272
JM
17467
17468# as_fn_executable_p FILE
17469# -----------------------
17470# Test if FILE is an executable regular file.
17471as_fn_executable_p ()
17472{
17473 test -f "$1" && test -x "$1"
17474} # as_fn_executable_p
17475as_test_x='test -x'
17476as_executable_p=as_fn_executable_p
f35db108
WM
17477
17478# Sed expression to map a string onto a valid CPP name.
17479as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17480
17481# Sed expression to map a string onto a valid variable name.
17482as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17483
17484
17485exec 6>&1
17486## ----------------------------------- ##
17487## Main body of $CONFIG_STATUS script. ##
17488## ----------------------------------- ##
17489_ASEOF
17490test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17491
17492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17493# Save the log message, to keep $0 and so on meaningful, and to
17494# report actual input values of CONFIG_FILES etc. instead of their
17495# values after options handling.
17496ac_log="
17497This file was extended by package-unused $as_me version-unused, which was
22e05272 17498generated by GNU Autoconf 2.69. Invocation command line was
f35db108
WM
17499
17500 CONFIG_FILES = $CONFIG_FILES
17501 CONFIG_HEADERS = $CONFIG_HEADERS
17502 CONFIG_LINKS = $CONFIG_LINKS
17503 CONFIG_COMMANDS = $CONFIG_COMMANDS
17504 $ $0 $@
17505
17506on `(hostname || uname -n) 2>/dev/null | sed 1q`
17507"
17508
17509_ACEOF
17510
17511case $ac_config_files in *"
17512"*) set x $ac_config_files; shift; ac_config_files=$*;;
17513esac
17514
c915a581
JJ
17515case $ac_config_headers in *"
17516"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17517esac
f35db108
WM
17518
17519
17520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17521# Files that config.status was made for.
17522config_files="$ac_config_files"
c915a581 17523config_headers="$ac_config_headers"
f35db108
WM
17524config_commands="$ac_config_commands"
17525
17526_ACEOF
17527
17528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17529ac_cs_usage="\
17530\`$as_me' instantiates files and other configuration actions
17531from templates according to the current configuration. Unless the files
17532and actions are specified as TAGs, all are instantiated by default.
17533
17534Usage: $0 [OPTION]... [TAG]...
17535
17536 -h, --help print this help, then exit
17537 -V, --version print version number and configuration settings, then exit
22e05272 17538 --config print configuration, then exit
f35db108
WM
17539 -q, --quiet, --silent
17540 do not print progress messages
17541 -d, --debug don't remove temporary files
17542 --recheck update $as_me by reconfiguring in the same conditions
17543 --file=FILE[:TEMPLATE]
17544 instantiate the configuration file FILE
c915a581
JJ
17545 --header=FILE[:TEMPLATE]
17546 instantiate the configuration header FILE
f35db108
WM
17547
17548Configuration files:
17549$config_files
17550
c915a581
JJ
17551Configuration headers:
17552$config_headers
17553
f35db108
WM
17554Configuration commands:
17555$config_commands
17556
17557Report bugs to <libsanitizer>."
17558
17559_ACEOF
17560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 17561ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
f35db108
WM
17562ac_cs_version="\\
17563package-unused config.status version-unused
22e05272
JM
17564configured by $0, generated by GNU Autoconf 2.69,
17565 with options \\"\$ac_cs_config\\"
f35db108 17566
22e05272 17567Copyright (C) 2012 Free Software Foundation, Inc.
f35db108
WM
17568This config.status script is free software; the Free Software Foundation
17569gives unlimited permission to copy, distribute and modify it."
17570
17571ac_pwd='$ac_pwd'
17572srcdir='$srcdir'
17573INSTALL='$INSTALL'
17574MKDIR_P='$MKDIR_P'
17575AWK='$AWK'
17576test -n "\$AWK" || AWK=awk
17577_ACEOF
17578
17579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17580# The default lists apply if the user does not specify any file.
17581ac_need_defaults=:
17582while test $# != 0
17583do
17584 case $1 in
22e05272 17585 --*=?*)
f35db108
WM
17586 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17587 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17588 ac_shift=:
17589 ;;
22e05272
JM
17590 --*=)
17591 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17592 ac_optarg=
17593 ac_shift=:
17594 ;;
f35db108
WM
17595 *)
17596 ac_option=$1
17597 ac_optarg=$2
17598 ac_shift=shift
17599 ;;
17600 esac
17601
17602 case $ac_option in
17603 # Handling of the options.
17604 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17605 ac_cs_recheck=: ;;
17606 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17607 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
17608 --config | --confi | --conf | --con | --co | --c )
17609 $as_echo "$ac_cs_config"; exit ;;
f35db108
WM
17610 --debug | --debu | --deb | --de | --d | -d )
17611 debug=: ;;
17612 --file | --fil | --fi | --f )
17613 $ac_shift
17614 case $ac_optarg in
17615 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 17616 '') as_fn_error $? "missing file argument" ;;
f35db108
WM
17617 esac
17618 as_fn_append CONFIG_FILES " '$ac_optarg'"
17619 ac_need_defaults=false;;
c915a581
JJ
17620 --header | --heade | --head | --hea )
17621 $ac_shift
17622 case $ac_optarg in
17623 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17624 esac
17625 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17626 ac_need_defaults=false;;
17627 --he | --h)
17628 # Conflict between --help and --header
22e05272 17629 as_fn_error $? "ambiguous option: \`$1'
c915a581
JJ
17630Try \`$0 --help' for more information.";;
17631 --help | --hel | -h )
f35db108
WM
17632 $as_echo "$ac_cs_usage"; exit ;;
17633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17634 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17635 ac_cs_silent=: ;;
17636
17637 # This is an error.
22e05272 17638 -*) as_fn_error $? "unrecognized option: \`$1'
f35db108
WM
17639Try \`$0 --help' for more information." ;;
17640
17641 *) as_fn_append ac_config_targets " $1"
17642 ac_need_defaults=false ;;
17643
17644 esac
17645 shift
17646done
17647
17648ac_configure_extra_args=
17649
17650if $ac_cs_silent; then
17651 exec 6>/dev/null
17652 ac_configure_extra_args="$ac_configure_extra_args --silent"
17653fi
17654
17655_ACEOF
17656cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17657if \$ac_cs_recheck; then
22e05272 17658 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
f35db108
WM
17659 shift
17660 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17661 CONFIG_SHELL='$SHELL'
17662 export CONFIG_SHELL
17663 exec "\$@"
17664fi
17665
17666_ACEOF
17667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17668exec 5>>config.log
17669{
17670 echo
17671 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17672## Running $as_me. ##
17673_ASBOX
17674 $as_echo "$ac_log"
17675} >&5
17676
17677_ACEOF
17678cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17679#
17680# INIT-COMMANDS
17681#
2a6346c4
L
17682
17683srcdir="$srcdir"
17684host="$host"
17685target="$target"
17686with_multisubdir="$with_multisubdir"
17687with_multisrctop="$with_multisrctop"
17688with_target_subdir="$with_target_subdir"
17689ac_configure_args="${multilib_arg} ${ac_configure_args}"
17690multi_basedir="$multi_basedir"
17691CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17692CC="$CC"
17693CXX="$CXX"
17694GFORTRAN="$GFORTRAN"
22e05272 17695GDC="$GDC"
8bc1fac7 17696AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
f35db108
WM
17697
17698
17699# The HP-UX ksh and POSIX shell print the target directory to stdout
17700# if CDPATH is set.
17701(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17702
17703sed_quote_subst='$sed_quote_subst'
17704double_quote_subst='$double_quote_subst'
17705delay_variable_subst='$delay_variable_subst'
17706macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17707macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17708enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17709enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17710pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17711enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17712SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17713ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17714host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17715host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17716host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17717build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17718build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17719build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17720SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17721Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17722GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17723EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17724FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17725LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17726NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17727LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17728max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17729ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17730exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17731lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17732lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17733lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17734reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17735reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17736OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17737deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17738file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17739AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17740AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17741STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17742RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17743old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17744old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17745old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17746lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17747CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17748CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17749compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17750GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17751lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17752lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17753lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17754lt_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
17755objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17756MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17757lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
f35db108 17758lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
a2479b3d 17759lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17760lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17761lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17762need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17763DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17764NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17765LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17766OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17767OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17768libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17769shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17770extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17771archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17772enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17773export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17774whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17775compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17776old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17777old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17778archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17779archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17780module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17781module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17782with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17783allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17784no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17785hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
a2479b3d 17786hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17787hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17788hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17789hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17790hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17791hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17792hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17793inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17794link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
a2479b3d 17795fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17796always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17797export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17798exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17799include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17800prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17801file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17802variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17803need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17804need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17805version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17806runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17807shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17808shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17809libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17810library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17811soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17812install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17813postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17814postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17815finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17816finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17817hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17818sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17819sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17820hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17821enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17822enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17823enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17824old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17825striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17826compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17827predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17828postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17829predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17830postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17831compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17832LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17833reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17834reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17835old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17836compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17837GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17838lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
f35db108 17839lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
a2479b3d 17840lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17841lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17842lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17843archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17844enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17845export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17846whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17847compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17848old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17849old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17850archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17851archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17852module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17853module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17854with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17855allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17856no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17857hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
a2479b3d 17858hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17859hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17860hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17861hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17862hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17863hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17864hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17865inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17866link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
a2479b3d 17867fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17868always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17869export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17870exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17871include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17872prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17873file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17874hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17875compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17876predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17877postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17878predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17879postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17880compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17881
17882LTCC='$LTCC'
17883LTCFLAGS='$LTCFLAGS'
17884compiler='$compiler_DEFAULT'
17885
17886# A function that is used when there is no print builtin or printf.
17887func_fallback_echo ()
17888{
17889 eval 'cat <<_LTECHO_EOF
17890\$1
17891_LTECHO_EOF'
17892}
17893
17894# Quote evaled strings.
17895for var in SHELL \
17896ECHO \
f35db108
WM
17897SED \
17898GREP \
17899EGREP \
17900FGREP \
17901LD \
17902NM \
17903LN_S \
17904lt_SP2NL \
17905lt_NL2SP \
17906reload_flag \
17907OBJDUMP \
17908deplibs_check_method \
17909file_magic_cmd \
f35db108
WM
17910AR \
17911AR_FLAGS \
f35db108
WM
17912STRIP \
17913RANLIB \
17914CC \
17915CFLAGS \
17916compiler \
17917lt_cv_sys_global_symbol_pipe \
17918lt_cv_sys_global_symbol_to_cdecl \
17919lt_cv_sys_global_symbol_to_c_name_address \
17920lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
f35db108 17921lt_prog_compiler_no_builtin_flag \
f35db108 17922lt_prog_compiler_wl \
a2479b3d 17923lt_prog_compiler_pic \
f35db108
WM
17924lt_prog_compiler_static \
17925lt_cv_prog_compiler_c_o \
17926need_locks \
f35db108
WM
17927DSYMUTIL \
17928NMEDIT \
17929LIPO \
17930OTOOL \
17931OTOOL64 \
17932shrext_cmds \
17933export_dynamic_flag_spec \
17934whole_archive_flag_spec \
17935compiler_needs_object \
17936with_gnu_ld \
17937allow_undefined_flag \
17938no_undefined_flag \
17939hardcode_libdir_flag_spec \
a2479b3d 17940hardcode_libdir_flag_spec_ld \
f35db108 17941hardcode_libdir_separator \
a2479b3d 17942fix_srcfile_path \
f35db108
WM
17943exclude_expsyms \
17944include_expsyms \
17945file_list_spec \
17946variables_saved_for_relink \
17947libname_spec \
17948library_names_spec \
17949soname_spec \
17950install_override_mode \
17951finish_eval \
17952old_striplib \
17953striplib \
17954compiler_lib_search_dirs \
17955predep_objects \
17956postdep_objects \
17957predeps \
17958postdeps \
17959compiler_lib_search_path \
17960LD_CXX \
17961reload_flag_CXX \
17962compiler_CXX \
17963lt_prog_compiler_no_builtin_flag_CXX \
f35db108 17964lt_prog_compiler_wl_CXX \
a2479b3d 17965lt_prog_compiler_pic_CXX \
f35db108
WM
17966lt_prog_compiler_static_CXX \
17967lt_cv_prog_compiler_c_o_CXX \
17968export_dynamic_flag_spec_CXX \
17969whole_archive_flag_spec_CXX \
17970compiler_needs_object_CXX \
17971with_gnu_ld_CXX \
17972allow_undefined_flag_CXX \
17973no_undefined_flag_CXX \
17974hardcode_libdir_flag_spec_CXX \
a2479b3d 17975hardcode_libdir_flag_spec_ld_CXX \
f35db108 17976hardcode_libdir_separator_CXX \
a2479b3d 17977fix_srcfile_path_CXX \
f35db108
WM
17978exclude_expsyms_CXX \
17979include_expsyms_CXX \
17980file_list_spec_CXX \
17981compiler_lib_search_dirs_CXX \
17982predep_objects_CXX \
17983postdep_objects_CXX \
17984predeps_CXX \
17985postdeps_CXX \
17986compiler_lib_search_path_CXX; do
17987 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17988 *[\\\\\\\`\\"\\\$]*)
17989 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17990 ;;
17991 *)
17992 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17993 ;;
17994 esac
17995done
17996
17997# Double-quote double-evaled strings.
17998for var in reload_cmds \
17999old_postinstall_cmds \
18000old_postuninstall_cmds \
18001old_archive_cmds \
18002extract_expsyms_cmds \
18003old_archive_from_new_cmds \
18004old_archive_from_expsyms_cmds \
18005archive_cmds \
18006archive_expsym_cmds \
18007module_cmds \
18008module_expsym_cmds \
18009export_symbols_cmds \
18010prelink_cmds \
f35db108
WM
18011postinstall_cmds \
18012postuninstall_cmds \
18013finish_cmds \
18014sys_lib_search_path_spec \
18015sys_lib_dlsearch_path_spec \
18016reload_cmds_CXX \
18017old_archive_cmds_CXX \
18018old_archive_from_new_cmds_CXX \
18019old_archive_from_expsyms_cmds_CXX \
18020archive_cmds_CXX \
18021archive_expsym_cmds_CXX \
18022module_cmds_CXX \
18023module_expsym_cmds_CXX \
18024export_symbols_cmds_CXX \
a2479b3d 18025prelink_cmds_CXX; do
f35db108
WM
18026 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18027 *[\\\\\\\`\\"\\\$]*)
18028 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18029 ;;
18030 *)
18031 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18032 ;;
18033 esac
18034done
18035
18036ac_aux_dir='$ac_aux_dir'
18037xsi_shell='$xsi_shell'
18038lt_shell_append='$lt_shell_append'
18039
18040# See if we are running on zsh, and set the options which allow our
18041# commands through without removal of \ escapes INIT.
18042if test -n "\${ZSH_VERSION+set}" ; then
18043 setopt NO_GLOB_SUBST
18044fi
18045
18046
18047 PACKAGE='$PACKAGE'
18048 VERSION='$VERSION'
18049 TIMESTAMP='$TIMESTAMP'
18050 RM='$RM'
18051 ofile='$ofile'
18052
18053
18054
18055
18056
18057
c915a581
JJ
18058GCC="$GCC"
18059CC="$CC"
18060acx_cv_header_stdint="$acx_cv_header_stdint"
18061acx_cv_type_int8_t="$acx_cv_type_int8_t"
18062acx_cv_type_int16_t="$acx_cv_type_int16_t"
18063acx_cv_type_int32_t="$acx_cv_type_int32_t"
18064acx_cv_type_int64_t="$acx_cv_type_int64_t"
18065acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18066ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18067ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18068ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18069ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18070ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18071ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18072ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18073ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18074
18075
f35db108
WM
18076_ACEOF
18077
18078cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18079
18080# Handling of arguments.
18081for ac_config_target in $ac_config_targets
18082do
18083 case $ac_config_target in
c915a581 18084 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
94213c10 18085 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
f35db108 18086 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
c915a581 18087 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
f35db108 18088 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35814b03 18089 "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
c915a581
JJ
18090 "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
18091 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
f35db108
WM
18092 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
18093 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
c915a581 18094 "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;;
ef1b3fda 18095 "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
f35db108 18096 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
de5a5fa1 18097 "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
cd0be65c 18098 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
f35db108 18099
22e05272 18100 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
f35db108
WM
18101 esac
18102done
18103
18104
18105# If the user did not use the arguments to specify the items to instantiate,
18106# then the envvar interface is used. Set only those that are not.
18107# We use the long form for the default assignment because of an extremely
18108# bizarre bug on SunOS 4.1.3.
18109if $ac_need_defaults; then
18110 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
c915a581 18111 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
f35db108
WM
18112 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18113fi
18114
18115# Have a temporary directory for convenience. Make it in the build tree
18116# simply because there is no reason against having it here, and in addition,
18117# creating and moving files from /tmp can sometimes cause problems.
18118# Hook for its removal unless debugging.
18119# Note that there is a small window in which the directory will not be cleaned:
18120# after its creation but before its name has been assigned to `$tmp'.
18121$debug ||
18122{
22e05272 18123 tmp= ac_tmp=
f35db108 18124 trap 'exit_status=$?
22e05272
JM
18125 : "${ac_tmp:=$tmp}"
18126 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
f35db108
WM
18127' 0
18128 trap 'as_fn_exit 1' 1 2 13 15
18129}
18130# Create a (secure) tmp directory for tmp files.
18131
18132{
18133 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 18134 test -d "$tmp"
f35db108
WM
18135} ||
18136{
18137 tmp=./conf$$-$RANDOM
18138 (umask 077 && mkdir "$tmp")
22e05272
JM
18139} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18140ac_tmp=$tmp
f35db108
WM
18141
18142# Set up the scripts for CONFIG_FILES section.
18143# No need to generate them if there are no CONFIG_FILES.
18144# This happens for instance with `./config.status config.h'.
18145if test -n "$CONFIG_FILES"; then
18146
18147
18148ac_cr=`echo X | tr X '\015'`
18149# On cygwin, bash can eat \r inside `` if the user requested igncr.
18150# But we know of no other shell where ac_cr would be empty at this
18151# point, so we can use a bashism as a fallback.
18152if test "x$ac_cr" = x; then
18153 eval ac_cr=\$\'\\r\'
18154fi
18155ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18156if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 18157 ac_cs_awk_cr='\\r'
f35db108
WM
18158else
18159 ac_cs_awk_cr=$ac_cr
18160fi
18161
22e05272 18162echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
f35db108
WM
18163_ACEOF
18164
18165
18166{
18167 echo "cat >conf$$subs.awk <<_ACEOF" &&
18168 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18169 echo "_ACEOF"
18170} >conf$$subs.sh ||
22e05272
JM
18171 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18172ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
f35db108
WM
18173ac_delim='%!_!# '
18174for ac_last_try in false false false false false :; do
18175 . ./conf$$subs.sh ||
22e05272 18176 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
f35db108
WM
18177
18178 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18179 if test $ac_delim_n = $ac_delim_num; then
18180 break
18181 elif $ac_last_try; then
22e05272 18182 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
f35db108
WM
18183 else
18184 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18185 fi
18186done
18187rm -f conf$$subs.sh
18188
18189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 18190cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
f35db108
WM
18191_ACEOF
18192sed -n '
18193h
18194s/^/S["/; s/!.*/"]=/
18195p
18196g
18197s/^[^!]*!//
18198:repl
18199t repl
18200s/'"$ac_delim"'$//
18201t delim
18202:nl
18203h
22e05272 18204s/\(.\{148\}\)..*/\1/
f35db108
WM
18205t more1
18206s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18207p
18208n
18209b repl
18210:more1
18211s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18212p
18213g
18214s/.\{148\}//
18215t nl
18216:delim
18217h
22e05272 18218s/\(.\{148\}\)..*/\1/
f35db108
WM
18219t more2
18220s/["\\]/\\&/g; s/^/"/; s/$/"/
18221p
18222b
18223:more2
18224s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18225p
18226g
18227s/.\{148\}//
18228t delim
18229' <conf$$subs.awk | sed '
18230/^[^""]/{
18231 N
18232 s/\n//
18233}
18234' >>$CONFIG_STATUS || ac_write_fail=1
18235rm -f conf$$subs.awk
18236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18237_ACAWK
22e05272 18238cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
f35db108
WM
18239 for (key in S) S_is_set[key] = 1
18240 FS = "\a"
18241
18242}
18243{
18244 line = $ 0
18245 nfields = split(line, field, "@")
18246 substed = 0
18247 len = length(field[1])
18248 for (i = 2; i < nfields; i++) {
18249 key = field[i]
18250 keylen = length(key)
18251 if (S_is_set[key]) {
18252 value = S[key]
18253 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18254 len += length(value) + length(field[++i])
18255 substed = 1
18256 } else
18257 len += 1 + keylen
18258 }
18259
18260 print line
18261}
18262
18263_ACAWK
18264_ACEOF
18265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18266if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18267 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18268else
18269 cat
22e05272
JM
18270fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18271 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
f35db108
WM
18272_ACEOF
18273
22e05272
JM
18274# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18275# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
f35db108
WM
18276# trailing colons and then remove the whole line if VPATH becomes empty
18277# (actually we leave an empty line to preserve line numbers).
18278if test "x$srcdir" = x.; then
22e05272
JM
18279 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18280h
18281s///
18282s/^/:/
18283s/[ ]*$/:/
18284s/:\$(srcdir):/:/g
18285s/:\${srcdir}:/:/g
18286s/:@srcdir@:/:/g
18287s/^:*//
f35db108 18288s/:*$//
22e05272
JM
18289x
18290s/\(=[ ]*\).*/\1/
18291G
18292s/\n//
f35db108
WM
18293s/^[^=]*=[ ]*$//
18294}'
18295fi
18296
18297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18298fi # test -n "$CONFIG_FILES"
18299
c915a581
JJ
18300# Set up the scripts for CONFIG_HEADERS section.
18301# No need to generate them if there are no CONFIG_HEADERS.
18302# This happens for instance with `./config.status Makefile'.
18303if test -n "$CONFIG_HEADERS"; then
22e05272 18304cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
c915a581
JJ
18305BEGIN {
18306_ACEOF
18307
18308# Transform confdefs.h into an awk script `defines.awk', embedded as
18309# here-document in config.status, that substitutes the proper values into
18310# config.h.in to produce config.h.
18311
18312# Create a delimiter string that does not exist in confdefs.h, to ease
18313# handling of long lines.
18314ac_delim='%!_!# '
18315for ac_last_try in false false :; do
22e05272
JM
18316 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18317 if test -z "$ac_tt"; then
c915a581
JJ
18318 break
18319 elif $ac_last_try; then
22e05272 18320 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
c915a581
JJ
18321 else
18322 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18323 fi
18324done
18325
18326# For the awk script, D is an array of macro values keyed by name,
18327# likewise P contains macro parameters if any. Preserve backslash
18328# newline sequences.
18329
18330ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18331sed -n '
18332s/.\{148\}/&'"$ac_delim"'/g
18333t rset
18334:rset
18335s/^[ ]*#[ ]*define[ ][ ]*/ /
18336t def
18337d
18338:def
18339s/\\$//
18340t bsnl
18341s/["\\]/\\&/g
18342s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18343D["\1"]=" \3"/p
18344s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18345d
18346:bsnl
18347s/["\\]/\\&/g
18348s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18349D["\1"]=" \3\\\\\\n"\\/p
18350t cont
18351s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18352t cont
18353d
18354:cont
18355n
18356s/.\{148\}/&'"$ac_delim"'/g
18357t clear
18358:clear
18359s/\\$//
18360t bsnlc
18361s/["\\]/\\&/g; s/^/"/; s/$/"/p
18362d
18363:bsnlc
18364s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18365b cont
18366' <confdefs.h | sed '
18367s/'"$ac_delim"'/"\\\
18368"/g' >>$CONFIG_STATUS || ac_write_fail=1
18369
18370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18371 for (key in D) D_is_set[key] = 1
18372 FS = "\a"
18373}
18374/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18375 line = \$ 0
18376 split(line, arg, " ")
18377 if (arg[1] == "#") {
18378 defundef = arg[2]
18379 mac1 = arg[3]
18380 } else {
18381 defundef = substr(arg[1], 2)
18382 mac1 = arg[2]
18383 }
18384 split(mac1, mac2, "(") #)
18385 macro = mac2[1]
18386 prefix = substr(line, 1, index(line, defundef) - 1)
18387 if (D_is_set[macro]) {
18388 # Preserve the white space surrounding the "#".
18389 print prefix "define", macro P[macro] D[macro]
18390 next
18391 } else {
18392 # Replace #undef with comments. This is necessary, for example,
18393 # in the case of _POSIX_SOURCE, which is predefined and required
18394 # on some systems where configure will not decide to define it.
18395 if (defundef == "undef") {
18396 print "/*", prefix defundef, macro, "*/"
18397 next
18398 }
18399 }
18400}
18401{ print }
18402_ACAWK
18403_ACEOF
18404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 18405 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
c915a581
JJ
18406fi # test -n "$CONFIG_HEADERS"
18407
f35db108 18408
c915a581 18409eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
f35db108
WM
18410shift
18411for ac_tag
18412do
18413 case $ac_tag in
18414 :[FHLC]) ac_mode=$ac_tag; continue;;
18415 esac
18416 case $ac_mode$ac_tag in
18417 :[FHL]*:*);;
22e05272 18418 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
f35db108
WM
18419 :[FH]-) ac_tag=-:-;;
18420 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18421 esac
18422 ac_save_IFS=$IFS
18423 IFS=:
18424 set x $ac_tag
18425 IFS=$ac_save_IFS
18426 shift
18427 ac_file=$1
18428 shift
18429
18430 case $ac_mode in
18431 :L) ac_source=$1;;
18432 :[FH])
18433 ac_file_inputs=
18434 for ac_f
18435 do
18436 case $ac_f in
22e05272 18437 -) ac_f="$ac_tmp/stdin";;
f35db108
WM
18438 *) # Look for the file first in the build tree, then in the source tree
18439 # (if the path is not absolute). The absolute path cannot be DOS-style,
18440 # because $ac_f cannot contain `:'.
18441 test -f "$ac_f" ||
18442 case $ac_f in
18443 [\\/$]*) false;;
18444 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18445 esac ||
22e05272 18446 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
f35db108
WM
18447 esac
18448 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18449 as_fn_append ac_file_inputs " '$ac_f'"
18450 done
18451
18452 # Let's still pretend it is `configure' which instantiates (i.e., don't
18453 # use $as_me), people would be surprised to read:
18454 # /* config.h. Generated by config.status. */
18455 configure_input='Generated from '`
18456 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18457 `' by configure.'
18458 if test x"$ac_file" != x-; then
18459 configure_input="$ac_file. $configure_input"
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18461$as_echo "$as_me: creating $ac_file" >&6;}
18462 fi
18463 # Neutralize special characters interpreted by sed in replacement strings.
18464 case $configure_input in #(
18465 *\&* | *\|* | *\\* )
18466 ac_sed_conf_input=`$as_echo "$configure_input" |
18467 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18468 *) ac_sed_conf_input=$configure_input;;
18469 esac
18470
18471 case $ac_tag in
22e05272
JM
18472 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18473 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
f35db108
WM
18474 esac
18475 ;;
18476 esac
18477
18478 ac_dir=`$as_dirname -- "$ac_file" ||
18479$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18480 X"$ac_file" : 'X\(//\)[^/]' \| \
18481 X"$ac_file" : 'X\(//\)$' \| \
18482 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18483$as_echo X"$ac_file" |
18484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18485 s//\1/
18486 q
18487 }
18488 /^X\(\/\/\)[^/].*/{
18489 s//\1/
18490 q
18491 }
18492 /^X\(\/\/\)$/{
18493 s//\1/
18494 q
18495 }
18496 /^X\(\/\).*/{
18497 s//\1/
18498 q
18499 }
18500 s/.*/./; q'`
18501 as_dir="$ac_dir"; as_fn_mkdir_p
18502 ac_builddir=.
18503
18504case "$ac_dir" in
18505.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18506*)
18507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18508 # A ".." for each directory in $ac_dir_suffix.
18509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18510 case $ac_top_builddir_sub in
18511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18513 esac ;;
18514esac
18515ac_abs_top_builddir=$ac_pwd
18516ac_abs_builddir=$ac_pwd$ac_dir_suffix
18517# for backward compatibility:
18518ac_top_builddir=$ac_top_build_prefix
18519
18520case $srcdir in
18521 .) # We are building in place.
18522 ac_srcdir=.
18523 ac_top_srcdir=$ac_top_builddir_sub
18524 ac_abs_top_srcdir=$ac_pwd ;;
18525 [\\/]* | ?:[\\/]* ) # Absolute name.
18526 ac_srcdir=$srcdir$ac_dir_suffix;
18527 ac_top_srcdir=$srcdir
18528 ac_abs_top_srcdir=$srcdir ;;
18529 *) # Relative name.
18530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18531 ac_top_srcdir=$ac_top_build_prefix$srcdir
18532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18533esac
18534ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18535
18536
18537 case $ac_mode in
18538 :F)
18539 #
18540 # CONFIG_FILE
18541 #
18542
18543 case $INSTALL in
18544 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18545 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18546 esac
18547 ac_MKDIR_P=$MKDIR_P
18548 case $MKDIR_P in
18549 [\\/$]* | ?:[\\/]* ) ;;
18550 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18551 esac
18552_ACEOF
18553
18554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18555# If the template does not know about datarootdir, expand it.
18556# FIXME: This hack should be removed a few years after 2.60.
18557ac_datarootdir_hack=; ac_datarootdir_seen=
18558ac_sed_dataroot='
18559/datarootdir/ {
18560 p
18561 q
18562}
18563/@datadir@/p
18564/@docdir@/p
18565/@infodir@/p
18566/@localedir@/p
18567/@mandir@/p'
18568case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18569*datarootdir*) ac_datarootdir_seen=yes;;
18570*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18572$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18573_ACEOF
18574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18575 ac_datarootdir_hack='
18576 s&@datadir@&$datadir&g
18577 s&@docdir@&$docdir&g
18578 s&@infodir@&$infodir&g
18579 s&@localedir@&$localedir&g
18580 s&@mandir@&$mandir&g
18581 s&\\\${datarootdir}&$datarootdir&g' ;;
18582esac
18583_ACEOF
18584
18585# Neutralize VPATH when `$srcdir' = `.'.
18586# Shell code in configure.ac might set extrasub.
18587# FIXME: do we really want to maintain this feature?
18588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18589ac_sed_extra="$ac_vpsub
18590$extrasub
18591_ACEOF
18592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18593:t
18594/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18595s|@configure_input@|$ac_sed_conf_input|;t t
18596s&@top_builddir@&$ac_top_builddir_sub&;t t
18597s&@top_build_prefix@&$ac_top_build_prefix&;t t
18598s&@srcdir@&$ac_srcdir&;t t
18599s&@abs_srcdir@&$ac_abs_srcdir&;t t
18600s&@top_srcdir@&$ac_top_srcdir&;t t
18601s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18602s&@builddir@&$ac_builddir&;t t
18603s&@abs_builddir@&$ac_abs_builddir&;t t
18604s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18605s&@INSTALL@&$ac_INSTALL&;t t
18606s&@MKDIR_P@&$ac_MKDIR_P&;t t
18607$ac_datarootdir_hack
18608"
22e05272
JM
18609eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18610 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
f35db108
WM
18611
18612test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
18613 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18614 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18615 "$ac_tmp/out"`; test -z "$ac_out"; } &&
f35db108 18616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 18617which seems to be undefined. Please make sure it is defined" >&5
f35db108 18618$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 18619which seems to be undefined. Please make sure it is defined" >&2;}
f35db108 18620
22e05272 18621 rm -f "$ac_tmp/stdin"
f35db108 18622 case $ac_file in
22e05272
JM
18623 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18624 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
f35db108 18625 esac \
22e05272 18626 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
f35db108 18627 ;;
c915a581
JJ
18628 :H)
18629 #
18630 # CONFIG_HEADER
18631 #
18632 if test x"$ac_file" != x-; then
18633 {
18634 $as_echo "/* $configure_input */" \
22e05272
JM
18635 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18636 } >"$ac_tmp/config.h" \
18637 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18638 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
c915a581
JJ
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18640$as_echo "$as_me: $ac_file is unchanged" >&6;}
18641 else
18642 rm -f "$ac_file"
22e05272
JM
18643 mv "$ac_tmp/config.h" "$ac_file" \
18644 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
c915a581
JJ
18645 fi
18646 else
18647 $as_echo "/* $configure_input */" \
22e05272
JM
18648 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18649 || as_fn_error $? "could not create -" "$LINENO" 5
c915a581
JJ
18650 fi
18651# Compute "$ac_file"'s index in $config_headers.
18652_am_arg="$ac_file"
18653_am_stamp_count=1
18654for _am_header in $config_headers :; do
18655 case $_am_header in
18656 $_am_arg | $_am_arg:* )
18657 break ;;
18658 * )
18659 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18660 esac
18661done
18662echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18663$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18664 X"$_am_arg" : 'X\(//\)[^/]' \| \
18665 X"$_am_arg" : 'X\(//\)$' \| \
18666 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18667$as_echo X"$_am_arg" |
18668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18669 s//\1/
18670 q
18671 }
18672 /^X\(\/\/\)[^/].*/{
18673 s//\1/
18674 q
18675 }
18676 /^X\(\/\/\)$/{
18677 s//\1/
18678 q
18679 }
18680 /^X\(\/\).*/{
18681 s//\1/
18682 q
18683 }
18684 s/.*/./; q'`/stamp-h$_am_stamp_count
18685 ;;
f35db108
WM
18686
18687 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18688$as_echo "$as_me: executing $ac_file commands" >&6;}
18689 ;;
18690 esac
18691
18692
18693 case $ac_file$ac_mode in
94213c10
MK
18694 "default-1":C)
18695# Only add multilib support code if we just rebuilt the top-level
18696# Makefile.
18697case " $CONFIG_FILES " in
18698 *" Makefile "*)
18699 ac_file=Makefile . ${multi_basedir}/config-ml.in
18700 ;;
18701esac ;;
f35db108 18702 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 18703 # Older Autoconf quotes --file arguments for eval, but not when files
f35db108
WM
18704 # are listed without --file. Let's play safe and only enable the eval
18705 # if we detect the quoting.
8bc1fac7
IS
18706 case $CONFIG_FILES in
18707 *\'*) eval set x "$CONFIG_FILES" ;;
18708 *) set x $CONFIG_FILES ;;
18709 esac
f35db108 18710 shift
8bc1fac7 18711 for mf
f35db108
WM
18712 do
18713 # Strip MF so we end up with the name of the file.
8bc1fac7
IS
18714 mf=`echo "$mf" | sed -e 's/:.*$//'`
18715 # Check whether this is an Automake generated Makefile or not.
18716 # We used to match only the files named 'Makefile.in', but
18717 # some people rename them; so instead we look at the file content.
18718 # Grep'ing the first line is not enough: some people post-process
18719 # each Makefile.in and add a new line on top of each file to say so.
18720 # Grep'ing the whole file is not good either: AIX grep has a line
f35db108 18721 # limit of 2048, but all sed's we know have understand at least 4000.
8bc1fac7
IS
18722 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18723 dirpart=`$as_dirname -- "$mf" ||
18724$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18725 X"$mf" : 'X\(//\)[^/]' \| \
18726 X"$mf" : 'X\(//\)$' \| \
18727 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18728$as_echo X"$mf" |
f35db108
WM
18729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18730 s//\1/
18731 q
18732 }
18733 /^X\(\/\/\)[^/].*/{
18734 s//\1/
18735 q
18736 }
18737 /^X\(\/\/\)$/{
18738 s//\1/
18739 q
18740 }
18741 /^X\(\/\).*/{
18742 s//\1/
18743 q
18744 }
18745 s/.*/./; q'`
8bc1fac7
IS
18746 else
18747 continue
18748 fi
18749 # Extract the definition of DEPDIR, am__include, and am__quote
18750 # from the Makefile without running 'make'.
18751 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18752 test -z "$DEPDIR" && continue
18753 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18754 test -z "$am__include" && continue
18755 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18756 # Find all dependency output files, they are included files with
18757 # $(DEPDIR) in their names. We invoke sed twice because it is the
18758 # simplest approach to changing $(DEPDIR) to its actual value in the
18759 # expansion.
18760 for file in `sed -n "
18761 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18762 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18763 # Make sure the directory exists.
18764 test -f "$dirpart/$file" && continue
18765 fdir=`$as_dirname -- "$file" ||
18766$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18767 X"$file" : 'X\(//\)[^/]' \| \
18768 X"$file" : 'X\(//\)$' \| \
18769 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18770$as_echo X"$file" |
18771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
f35db108
WM
18772 s//\1/
18773 q
18774 }
8bc1fac7 18775 /^X\(\/\/\)[^/].*/{
f35db108
WM
18776 s//\1/
18777 q
18778 }
8bc1fac7
IS
18779 /^X\(\/\/\)$/{
18780 s//\1/
18781 q
18782 }
18783 /^X\(\/\).*/{
f35db108
WM
18784 s//\1/
18785 q
18786 }
18787 s/.*/./; q'`
8bc1fac7
IS
18788 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18789 # echo "creating $dirpart/$file"
18790 echo '# dummy' > "$dirpart/$file"
18791 done
f35db108
WM
18792 done
18793}
18794 ;;
18795 "libtool":C)
18796
18797 # See if we are running on zsh, and set the options which allow our
18798 # commands through without removal of \ escapes.
18799 if test -n "${ZSH_VERSION+set}" ; then
18800 setopt NO_GLOB_SUBST
18801 fi
18802
18803 cfgfile="${ofile}T"
18804 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18805 $RM "$cfgfile"
18806
18807 cat <<_LT_EOF >> "$cfgfile"
18808#! $SHELL
18809
18810# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18811# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18812# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18813# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18814#
18815# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
a2479b3d 18816# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
f35db108
WM
18817# Written by Gordon Matzigkeit, 1996
18818#
18819# This file is part of GNU Libtool.
18820#
18821# GNU Libtool is free software; you can redistribute it and/or
18822# modify it under the terms of the GNU General Public License as
18823# published by the Free Software Foundation; either version 2 of
18824# the License, or (at your option) any later version.
18825#
18826# As a special exception to the GNU General Public License,
18827# if you distribute this file as part of a program or library that
18828# is built using GNU Libtool, you may include this file under the
18829# same distribution terms that you use for the rest of that program.
18830#
18831# GNU Libtool is distributed in the hope that it will be useful,
18832# but WITHOUT ANY WARRANTY; without even the implied warranty of
18833# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18834# GNU General Public License for more details.
18835#
18836# You should have received a copy of the GNU General Public License
18837# along with GNU Libtool; see the file COPYING. If not, a copy
18838# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18839# obtained by writing to the Free Software Foundation, Inc.,
18840# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18841
18842
18843# The names of the tagged configurations supported by this script.
18844available_tags="CXX "
18845
18846# ### BEGIN LIBTOOL CONFIG
18847
18848# Which release of libtool.m4 was used?
18849macro_version=$macro_version
18850macro_revision=$macro_revision
18851
18852# Whether or not to build shared libraries.
18853build_libtool_libs=$enable_shared
18854
18855# Whether or not to build static libraries.
18856build_old_libs=$enable_static
18857
18858# What type of objects to build.
18859pic_mode=$pic_mode
18860
18861# Whether or not to optimize for fast installation.
18862fast_install=$enable_fast_install
18863
18864# Shell to use when invoking shell scripts.
18865SHELL=$lt_SHELL
18866
18867# An echo program that protects backslashes.
18868ECHO=$lt_ECHO
18869
f35db108
WM
18870# The host system.
18871host_alias=$host_alias
18872host=$host
18873host_os=$host_os
18874
18875# The build system.
18876build_alias=$build_alias
18877build=$build
18878build_os=$build_os
18879
18880# A sed program that does not truncate output.
18881SED=$lt_SED
18882
18883# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18884Xsed="\$SED -e 1s/^X//"
18885
18886# A grep program that handles long lines.
18887GREP=$lt_GREP
18888
18889# An ERE matcher.
18890EGREP=$lt_EGREP
18891
18892# A literal string matcher.
18893FGREP=$lt_FGREP
18894
18895# A BSD- or MS-compatible name lister.
18896NM=$lt_NM
18897
18898# Whether we need soft or hard links.
18899LN_S=$lt_LN_S
18900
18901# What is the maximum length of a command?
18902max_cmd_len=$max_cmd_len
18903
18904# Object file suffix (normally "o").
18905objext=$ac_objext
18906
18907# Executable file suffix (normally "").
18908exeext=$exeext
18909
18910# whether the shell understands "unset".
18911lt_unset=$lt_unset
18912
18913# turn spaces into newlines.
18914SP2NL=$lt_lt_SP2NL
18915
18916# turn newlines into spaces.
18917NL2SP=$lt_lt_NL2SP
18918
f35db108
WM
18919# An object symbol dumper.
18920OBJDUMP=$lt_OBJDUMP
18921
18922# Method to check whether dependent libraries are shared objects.
18923deplibs_check_method=$lt_deplibs_check_method
18924
a2479b3d 18925# Command to use when deplibs_check_method == "file_magic".
f35db108
WM
18926file_magic_cmd=$lt_file_magic_cmd
18927
f35db108
WM
18928# The archiver.
18929AR=$lt_AR
f35db108
WM
18930AR_FLAGS=$lt_AR_FLAGS
18931
f35db108
WM
18932# A symbol stripping program.
18933STRIP=$lt_STRIP
18934
18935# Commands used to install an old-style archive.
18936RANLIB=$lt_RANLIB
18937old_postinstall_cmds=$lt_old_postinstall_cmds
18938old_postuninstall_cmds=$lt_old_postuninstall_cmds
18939
18940# Whether to use a lock for old archive extraction.
18941lock_old_archive_extraction=$lock_old_archive_extraction
18942
18943# A C compiler.
18944LTCC=$lt_CC
18945
18946# LTCC compiler flags.
18947LTCFLAGS=$lt_CFLAGS
18948
18949# Take the output of nm and produce a listing of raw symbols and C names.
18950global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18951
18952# Transform the output of nm in a proper C declaration.
18953global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18954
18955# Transform the output of nm in a C name address pair.
18956global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18957
18958# Transform the output of nm in a C name address pair when lib prefix is needed.
18959global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18960
f35db108
WM
18961# The name of the directory that contains temporary libtool files.
18962objdir=$objdir
18963
18964# Used to examine libraries when file_magic_cmd begins with "file".
18965MAGIC_CMD=$MAGIC_CMD
18966
18967# Must we lock files when doing compilation?
18968need_locks=$lt_need_locks
18969
f35db108
WM
18970# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18971DSYMUTIL=$lt_DSYMUTIL
18972
18973# Tool to change global to local symbols on Mac OS X.
18974NMEDIT=$lt_NMEDIT
18975
18976# Tool to manipulate fat objects and archives on Mac OS X.
18977LIPO=$lt_LIPO
18978
18979# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18980OTOOL=$lt_OTOOL
18981
18982# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18983OTOOL64=$lt_OTOOL64
18984
18985# Old archive suffix (normally "a").
18986libext=$libext
18987
18988# Shared library suffix (normally ".so").
18989shrext_cmds=$lt_shrext_cmds
18990
18991# The commands to extract the exported symbol list from a shared archive.
18992extract_expsyms_cmds=$lt_extract_expsyms_cmds
18993
18994# Variables whose values should be saved in libtool wrapper scripts and
18995# restored at link time.
18996variables_saved_for_relink=$lt_variables_saved_for_relink
18997
18998# Do we need the "lib" prefix for modules?
18999need_lib_prefix=$need_lib_prefix
19000
19001# Do we need a version for libraries?
19002need_version=$need_version
19003
19004# Library versioning type.
19005version_type=$version_type
19006
19007# Shared library runtime path variable.
19008runpath_var=$runpath_var
19009
19010# Shared library path variable.
19011shlibpath_var=$shlibpath_var
19012
19013# Is shlibpath searched before the hard-coded library search path?
19014shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19015
19016# Format of library name prefix.
19017libname_spec=$lt_libname_spec
19018
19019# List of archive names. First name is the real one, the rest are links.
19020# The last name is the one that the linker finds with -lNAME
19021library_names_spec=$lt_library_names_spec
19022
19023# The coded name of the library, if different from the real name.
19024soname_spec=$lt_soname_spec
19025
19026# Permission mode override for installation of shared libraries.
19027install_override_mode=$lt_install_override_mode
19028
19029# Command to use after installation of a shared archive.
19030postinstall_cmds=$lt_postinstall_cmds
19031
19032# Command to use after uninstallation of a shared archive.
19033postuninstall_cmds=$lt_postuninstall_cmds
19034
19035# Commands used to finish a libtool library installation in a directory.
19036finish_cmds=$lt_finish_cmds
19037
19038# As "finish_cmds", except a single script fragment to be evaled but
19039# not shown.
19040finish_eval=$lt_finish_eval
19041
19042# Whether we should hardcode library paths into libraries.
19043hardcode_into_libs=$hardcode_into_libs
19044
19045# Compile-time system search path for libraries.
19046sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19047
19048# Run-time system search path for libraries.
19049sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19050
19051# Whether dlopen is supported.
19052dlopen_support=$enable_dlopen
19053
19054# Whether dlopen of programs is supported.
19055dlopen_self=$enable_dlopen_self
19056
19057# Whether dlopen of statically linked programs is supported.
19058dlopen_self_static=$enable_dlopen_self_static
19059
19060# Commands to strip libraries.
19061old_striplib=$lt_old_striplib
19062striplib=$lt_striplib
19063
19064
19065# The linker used to build libraries.
19066LD=$lt_LD
19067
19068# How to create reloadable object files.
19069reload_flag=$lt_reload_flag
19070reload_cmds=$lt_reload_cmds
19071
19072# Commands used to build an old-style archive.
19073old_archive_cmds=$lt_old_archive_cmds
19074
19075# A language specific compiler.
19076CC=$lt_compiler
19077
19078# Is the compiler the GNU compiler?
19079with_gcc=$GCC
19080
19081# Compiler flag to turn off builtin functions.
19082no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19083
f35db108
WM
19084# How to pass a linker flag through the compiler.
19085wl=$lt_lt_prog_compiler_wl
19086
a2479b3d
L
19087# Additional compiler flags for building library objects.
19088pic_flag=$lt_lt_prog_compiler_pic
19089
f35db108
WM
19090# Compiler flag to prevent dynamic linking.
19091link_static_flag=$lt_lt_prog_compiler_static
19092
19093# Does compiler simultaneously support -c and -o options?
19094compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19095
19096# Whether or not to add -lc for building shared libraries.
19097build_libtool_need_lc=$archive_cmds_need_lc
19098
19099# Whether or not to disallow shared libs when runtime libs are static.
19100allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19101
19102# Compiler flag to allow reflexive dlopens.
19103export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19104
19105# Compiler flag to generate shared objects directly from archives.
19106whole_archive_flag_spec=$lt_whole_archive_flag_spec
19107
19108# Whether the compiler copes with passing no objects directly.
19109compiler_needs_object=$lt_compiler_needs_object
19110
19111# Create an old-style archive from a shared archive.
19112old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19113
19114# Create a temporary old-style archive to link instead of a shared archive.
19115old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19116
19117# Commands used to build a shared archive.
19118archive_cmds=$lt_archive_cmds
19119archive_expsym_cmds=$lt_archive_expsym_cmds
19120
19121# Commands used to build a loadable module if different from building
19122# a shared archive.
19123module_cmds=$lt_module_cmds
19124module_expsym_cmds=$lt_module_expsym_cmds
19125
19126# Whether we are building with GNU ld or not.
19127with_gnu_ld=$lt_with_gnu_ld
19128
19129# Flag that allows shared libraries with undefined symbols to be built.
19130allow_undefined_flag=$lt_allow_undefined_flag
19131
19132# Flag that enforces no undefined symbols.
19133no_undefined_flag=$lt_no_undefined_flag
19134
19135# Flag to hardcode \$libdir into a binary during linking.
19136# This must work even if \$libdir does not exist
19137hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19138
a2479b3d
L
19139# If ld is used when linking, flag to hardcode \$libdir into a binary
19140# during linking. This must work even if \$libdir does not exist.
19141hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19142
f35db108
WM
19143# Whether we need a single "-rpath" flag with a separated argument.
19144hardcode_libdir_separator=$lt_hardcode_libdir_separator
19145
19146# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19147# DIR into the resulting binary.
19148hardcode_direct=$hardcode_direct
19149
19150# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19151# DIR into the resulting binary and the resulting library dependency is
19152# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19153# library is relocated.
19154hardcode_direct_absolute=$hardcode_direct_absolute
19155
19156# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19157# into the resulting binary.
19158hardcode_minus_L=$hardcode_minus_L
19159
19160# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19161# into the resulting binary.
19162hardcode_shlibpath_var=$hardcode_shlibpath_var
19163
19164# Set to "yes" if building a shared library automatically hardcodes DIR
19165# into the library and all subsequent libraries and executables linked
19166# against it.
19167hardcode_automatic=$hardcode_automatic
19168
19169# Set to yes if linker adds runtime paths of dependent libraries
19170# to runtime path list.
19171inherit_rpath=$inherit_rpath
19172
19173# Whether libtool must link a program against all its dependency libraries.
19174link_all_deplibs=$link_all_deplibs
19175
a2479b3d
L
19176# Fix the shell variable \$srcfile for the compiler.
19177fix_srcfile_path=$lt_fix_srcfile_path
19178
f35db108
WM
19179# Set to "yes" if exported symbols are required.
19180always_export_symbols=$always_export_symbols
19181
19182# The commands to list exported symbols.
19183export_symbols_cmds=$lt_export_symbols_cmds
19184
19185# Symbols that should not be listed in the preloaded symbols.
19186exclude_expsyms=$lt_exclude_expsyms
19187
19188# Symbols that must always be exported.
19189include_expsyms=$lt_include_expsyms
19190
19191# Commands necessary for linking programs (against libraries) with templates.
19192prelink_cmds=$lt_prelink_cmds
19193
f35db108
WM
19194# Specify filename containing input files.
19195file_list_spec=$lt_file_list_spec
19196
19197# How to hardcode a shared library path into an executable.
19198hardcode_action=$hardcode_action
19199
19200# The directories searched by this compiler when creating a shared library.
19201compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19202
19203# Dependencies to place before and after the objects being linked to
19204# create a shared library.
19205predep_objects=$lt_predep_objects
19206postdep_objects=$lt_postdep_objects
19207predeps=$lt_predeps
19208postdeps=$lt_postdeps
19209
19210# The library search path used internally by the compiler when linking
19211# a shared library.
19212compiler_lib_search_path=$lt_compiler_lib_search_path
19213
19214# ### END LIBTOOL CONFIG
19215
19216_LT_EOF
19217
19218 case $host_os in
19219 aix3*)
19220 cat <<\_LT_EOF >> "$cfgfile"
19221# AIX sometimes has problems with the GCC collect2 program. For some
19222# reason, if we set the COLLECT_NAMES environment variable, the problems
19223# vanish in a puff of smoke.
19224if test "X${COLLECT_NAMES+set}" != Xset; then
19225 COLLECT_NAMES=
19226 export COLLECT_NAMES
19227fi
19228_LT_EOF
19229 ;;
19230 esac
19231
19232
19233ltmain="$ac_aux_dir/ltmain.sh"
19234
19235
19236 # We use sed instead of cat because bash on DJGPP gets confused if
19237 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19238 # text mode, it properly converts lines to CR/LF. This bash problem
19239 # is reportedly fixed, but why not run on old versions too?
a2479b3d
L
19240 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19241 || (rm -f "$cfgfile"; exit 1)
19242
19243 case $xsi_shell in
19244 yes)
19245 cat << \_LT_EOF >> "$cfgfile"
19246
19247# func_dirname file append nondir_replacement
19248# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19249# otherwise set result to NONDIR_REPLACEMENT.
19250func_dirname ()
19251{
19252 case ${1} in
19253 */*) func_dirname_result="${1%/*}${2}" ;;
19254 * ) func_dirname_result="${3}" ;;
19255 esac
19256}
19257
19258# func_basename file
19259func_basename ()
19260{
19261 func_basename_result="${1##*/}"
19262}
19263
19264# func_dirname_and_basename file append nondir_replacement
19265# perform func_basename and func_dirname in a single function
19266# call:
19267# dirname: Compute the dirname of FILE. If nonempty,
19268# add APPEND to the result, otherwise set result
19269# to NONDIR_REPLACEMENT.
19270# value returned in "$func_dirname_result"
19271# basename: Compute filename of FILE.
19272# value retuned in "$func_basename_result"
19273# Implementation must be kept synchronized with func_dirname
19274# and func_basename. For efficiency, we do not delegate to
19275# those functions but instead duplicate the functionality here.
19276func_dirname_and_basename ()
19277{
19278 case ${1} in
19279 */*) func_dirname_result="${1%/*}${2}" ;;
19280 * ) func_dirname_result="${3}" ;;
19281 esac
19282 func_basename_result="${1##*/}"
19283}
19284
19285# func_stripname prefix suffix name
19286# strip PREFIX and SUFFIX off of NAME.
19287# PREFIX and SUFFIX must not contain globbing or regex special
19288# characters, hashes, percent signs, but SUFFIX may contain a leading
19289# dot (in which case that matches only a dot).
19290func_stripname ()
19291{
19292 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19293 # positional parameters, so assign one to ordinary parameter first.
19294 func_stripname_result=${3}
19295 func_stripname_result=${func_stripname_result#"${1}"}
19296 func_stripname_result=${func_stripname_result%"${2}"}
19297}
19298
19299# func_opt_split
19300func_opt_split ()
19301{
19302 func_opt_split_opt=${1%%=*}
19303 func_opt_split_arg=${1#*=}
19304}
19305
19306# func_lo2o object
19307func_lo2o ()
19308{
19309 case ${1} in
19310 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19311 *) func_lo2o_result=${1} ;;
19312 esac
19313}
19314
19315# func_xform libobj-or-source
19316func_xform ()
19317{
19318 func_xform_result=${1%.*}.lo
19319}
19320
19321# func_arith arithmetic-term...
19322func_arith ()
19323{
19324 func_arith_result=$(( $* ))
19325}
19326
19327# func_len string
19328# STRING may not start with a hyphen.
19329func_len ()
19330{
19331 func_len_result=${#1}
19332}
19333
19334_LT_EOF
19335 ;;
19336 *) # Bourne compatible functions.
19337 cat << \_LT_EOF >> "$cfgfile"
19338
19339# func_dirname file append nondir_replacement
19340# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19341# otherwise set result to NONDIR_REPLACEMENT.
19342func_dirname ()
19343{
19344 # Extract subdirectory from the argument.
19345 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19346 if test "X$func_dirname_result" = "X${1}"; then
19347 func_dirname_result="${3}"
19348 else
19349 func_dirname_result="$func_dirname_result${2}"
19350 fi
19351}
19352
19353# func_basename file
19354func_basename ()
19355{
19356 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19357}
19358
19359
19360# func_stripname prefix suffix name
19361# strip PREFIX and SUFFIX off of NAME.
19362# PREFIX and SUFFIX must not contain globbing or regex special
19363# characters, hashes, percent signs, but SUFFIX may contain a leading
19364# dot (in which case that matches only a dot).
19365# func_strip_suffix prefix name
19366func_stripname ()
19367{
19368 case ${2} in
19369 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19370 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19371 esac
19372}
19373
19374# sed scripts:
19375my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19376my_sed_long_arg='1s/^-[^=]*=//'
19377
19378# func_opt_split
19379func_opt_split ()
19380{
19381 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19382 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19383}
19384
19385# func_lo2o object
19386func_lo2o ()
19387{
19388 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19389}
19390
19391# func_xform libobj-or-source
19392func_xform ()
19393{
19394 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19395}
19396
19397# func_arith arithmetic-term...
19398func_arith ()
19399{
19400 func_arith_result=`expr "$@"`
19401}
19402
19403# func_len string
19404# STRING may not start with a hyphen.
19405func_len ()
19406{
19407 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19408}
19409
19410_LT_EOF
19411esac
19412
19413case $lt_shell_append in
19414 yes)
19415 cat << \_LT_EOF >> "$cfgfile"
19416
19417# func_append var value
19418# Append VALUE to the end of shell variable VAR.
19419func_append ()
19420{
19421 eval "$1+=\$2"
19422}
19423_LT_EOF
19424 ;;
19425 *)
19426 cat << \_LT_EOF >> "$cfgfile"
19427
19428# func_append var value
19429# Append VALUE to the end of shell variable VAR.
19430func_append ()
19431{
19432 eval "$1=\$$1\$2"
19433}
19434
19435_LT_EOF
19436 ;;
19437 esac
19438
19439
19440 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19441 || (rm -f "$cfgfile"; exit 1)
19442
19443 mv -f "$cfgfile" "$ofile" ||
f35db108
WM
19444 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19445 chmod +x "$ofile"
19446
19447
19448 cat <<_LT_EOF >> "$ofile"
19449
19450# ### BEGIN LIBTOOL TAG CONFIG: CXX
19451
19452# The linker used to build libraries.
19453LD=$lt_LD_CXX
19454
19455# How to create reloadable object files.
19456reload_flag=$lt_reload_flag_CXX
19457reload_cmds=$lt_reload_cmds_CXX
19458
19459# Commands used to build an old-style archive.
19460old_archive_cmds=$lt_old_archive_cmds_CXX
19461
19462# A language specific compiler.
19463CC=$lt_compiler_CXX
19464
19465# Is the compiler the GNU compiler?
19466with_gcc=$GCC_CXX
19467
19468# Compiler flag to turn off builtin functions.
19469no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19470
f35db108
WM
19471# How to pass a linker flag through the compiler.
19472wl=$lt_lt_prog_compiler_wl_CXX
19473
a2479b3d
L
19474# Additional compiler flags for building library objects.
19475pic_flag=$lt_lt_prog_compiler_pic_CXX
19476
f35db108
WM
19477# Compiler flag to prevent dynamic linking.
19478link_static_flag=$lt_lt_prog_compiler_static_CXX
19479
19480# Does compiler simultaneously support -c and -o options?
19481compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19482
19483# Whether or not to add -lc for building shared libraries.
19484build_libtool_need_lc=$archive_cmds_need_lc_CXX
19485
19486# Whether or not to disallow shared libs when runtime libs are static.
19487allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19488
19489# Compiler flag to allow reflexive dlopens.
19490export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19491
19492# Compiler flag to generate shared objects directly from archives.
19493whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19494
19495# Whether the compiler copes with passing no objects directly.
19496compiler_needs_object=$lt_compiler_needs_object_CXX
19497
19498# Create an old-style archive from a shared archive.
19499old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19500
19501# Create a temporary old-style archive to link instead of a shared archive.
19502old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19503
19504# Commands used to build a shared archive.
19505archive_cmds=$lt_archive_cmds_CXX
19506archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19507
19508# Commands used to build a loadable module if different from building
19509# a shared archive.
19510module_cmds=$lt_module_cmds_CXX
19511module_expsym_cmds=$lt_module_expsym_cmds_CXX
19512
19513# Whether we are building with GNU ld or not.
19514with_gnu_ld=$lt_with_gnu_ld_CXX
19515
19516# Flag that allows shared libraries with undefined symbols to be built.
19517allow_undefined_flag=$lt_allow_undefined_flag_CXX
19518
19519# Flag that enforces no undefined symbols.
19520no_undefined_flag=$lt_no_undefined_flag_CXX
19521
19522# Flag to hardcode \$libdir into a binary during linking.
19523# This must work even if \$libdir does not exist
19524hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19525
a2479b3d
L
19526# If ld is used when linking, flag to hardcode \$libdir into a binary
19527# during linking. This must work even if \$libdir does not exist.
19528hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19529
f35db108
WM
19530# Whether we need a single "-rpath" flag with a separated argument.
19531hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19532
19533# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19534# DIR into the resulting binary.
19535hardcode_direct=$hardcode_direct_CXX
19536
19537# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19538# DIR into the resulting binary and the resulting library dependency is
19539# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19540# library is relocated.
19541hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19542
19543# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19544# into the resulting binary.
19545hardcode_minus_L=$hardcode_minus_L_CXX
19546
19547# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19548# into the resulting binary.
19549hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19550
19551# Set to "yes" if building a shared library automatically hardcodes DIR
19552# into the library and all subsequent libraries and executables linked
19553# against it.
19554hardcode_automatic=$hardcode_automatic_CXX
19555
19556# Set to yes if linker adds runtime paths of dependent libraries
19557# to runtime path list.
19558inherit_rpath=$inherit_rpath_CXX
19559
19560# Whether libtool must link a program against all its dependency libraries.
19561link_all_deplibs=$link_all_deplibs_CXX
19562
a2479b3d
L
19563# Fix the shell variable \$srcfile for the compiler.
19564fix_srcfile_path=$lt_fix_srcfile_path_CXX
19565
f35db108
WM
19566# Set to "yes" if exported symbols are required.
19567always_export_symbols=$always_export_symbols_CXX
19568
19569# The commands to list exported symbols.
19570export_symbols_cmds=$lt_export_symbols_cmds_CXX
19571
19572# Symbols that should not be listed in the preloaded symbols.
19573exclude_expsyms=$lt_exclude_expsyms_CXX
19574
19575# Symbols that must always be exported.
19576include_expsyms=$lt_include_expsyms_CXX
19577
19578# Commands necessary for linking programs (against libraries) with templates.
19579prelink_cmds=$lt_prelink_cmds_CXX
19580
f35db108
WM
19581# Specify filename containing input files.
19582file_list_spec=$lt_file_list_spec_CXX
19583
19584# How to hardcode a shared library path into an executable.
19585hardcode_action=$hardcode_action_CXX
19586
19587# The directories searched by this compiler when creating a shared library.
19588compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19589
19590# Dependencies to place before and after the objects being linked to
19591# create a shared library.
19592predep_objects=$lt_predep_objects_CXX
19593postdep_objects=$lt_postdep_objects_CXX
19594predeps=$lt_predeps_CXX
19595postdeps=$lt_postdeps_CXX
19596
19597# The library search path used internally by the compiler when linking
19598# a shared library.
19599compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19600
19601# ### END LIBTOOL TAG CONFIG: CXX
19602_LT_EOF
19603
c915a581
JJ
19604 ;;
19605 "gstdint.h":C)
19606if test "$GCC" = yes; then
19607 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19608else
19609 echo "/* generated for $CC */" > tmp-stdint.h
19610fi
19611
19612sed 's/^ *//' >> tmp-stdint.h <<EOF
19613
19614 #ifndef GCC_GENERATED_STDINT_H
19615 #define GCC_GENERATED_STDINT_H 1
19616
19617 #include <sys/types.h>
19618EOF
19619
19620if test "$acx_cv_header_stdint" != stdint.h; then
19621 echo "#include <stddef.h>" >> tmp-stdint.h
19622fi
19623if test "$acx_cv_header_stdint" != stddef.h; then
19624 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19625fi
19626
19627sed 's/^ *//' >> tmp-stdint.h <<EOF
19628 /* glibc uses these symbols as guards to prevent redefinitions. */
19629 #ifdef __int8_t_defined
19630 #define _INT8_T
19631 #define _INT16_T
19632 #define _INT32_T
19633 #endif
19634 #ifdef __uint32_t_defined
19635 #define _UINT32_T
19636 #endif
19637
19638EOF
19639
19640# ----------------- done header, emit basic int types -------------
19641if test "$acx_cv_header_stdint" = stddef.h; then
19642 sed 's/^ *//' >> tmp-stdint.h <<EOF
19643
19644 #ifndef _UINT8_T
19645 #define _UINT8_T
19646 #ifndef __uint8_t_defined
19647 #define __uint8_t_defined
19648 #ifndef uint8_t
19649 typedef unsigned $acx_cv_type_int8_t uint8_t;
19650 #endif
19651 #endif
19652 #endif
19653
19654 #ifndef _UINT16_T
19655 #define _UINT16_T
19656 #ifndef __uint16_t_defined
19657 #define __uint16_t_defined
19658 #ifndef uint16_t
19659 typedef unsigned $acx_cv_type_int16_t uint16_t;
19660 #endif
19661 #endif
19662 #endif
19663
19664 #ifndef _UINT32_T
19665 #define _UINT32_T
19666 #ifndef __uint32_t_defined
19667 #define __uint32_t_defined
19668 #ifndef uint32_t
19669 typedef unsigned $acx_cv_type_int32_t uint32_t;
19670 #endif
19671 #endif
19672 #endif
19673
19674 #ifndef _INT8_T
19675 #define _INT8_T
19676 #ifndef __int8_t_defined
19677 #define __int8_t_defined
19678 #ifndef int8_t
19679 typedef $acx_cv_type_int8_t int8_t;
19680 #endif
19681 #endif
19682 #endif
19683
19684 #ifndef _INT16_T
19685 #define _INT16_T
19686 #ifndef __int16_t_defined
19687 #define __int16_t_defined
19688 #ifndef int16_t
19689 typedef $acx_cv_type_int16_t int16_t;
19690 #endif
19691 #endif
19692 #endif
19693
19694 #ifndef _INT32_T
19695 #define _INT32_T
19696 #ifndef __int32_t_defined
19697 #define __int32_t_defined
19698 #ifndef int32_t
19699 typedef $acx_cv_type_int32_t int32_t;
19700 #endif
19701 #endif
19702 #endif
19703EOF
19704elif test "$ac_cv_type_u_int32_t" = yes; then
19705 sed 's/^ *//' >> tmp-stdint.h <<EOF
19706
19707 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19708 #ifndef _INT8_T
19709 #define _INT8_T
19710 #endif
19711 #ifndef _INT16_T
19712 #define _INT16_T
19713 #endif
19714 #ifndef _INT32_T
19715 #define _INT32_T
19716 #endif
19717
19718 #ifndef _UINT8_T
19719 #define _UINT8_T
19720 #ifndef __uint8_t_defined
19721 #define __uint8_t_defined
19722 #ifndef uint8_t
19723 typedef u_int8_t uint8_t;
19724 #endif
19725 #endif
19726 #endif
19727
19728 #ifndef _UINT16_T
19729 #define _UINT16_T
19730 #ifndef __uint16_t_defined
19731 #define __uint16_t_defined
19732 #ifndef uint16_t
19733 typedef u_int16_t uint16_t;
19734 #endif
19735 #endif
19736 #endif
19737
19738 #ifndef _UINT32_T
19739 #define _UINT32_T
19740 #ifndef __uint32_t_defined
19741 #define __uint32_t_defined
19742 #ifndef uint32_t
19743 typedef u_int32_t uint32_t;
19744 #endif
19745 #endif
19746 #endif
19747EOF
19748else
19749 sed 's/^ *//' >> tmp-stdint.h <<EOF
19750
19751 /* Some systems have guard macros to prevent redefinitions, define them. */
19752 #ifndef _INT8_T
19753 #define _INT8_T
19754 #endif
19755 #ifndef _INT16_T
19756 #define _INT16_T
19757 #endif
19758 #ifndef _INT32_T
19759 #define _INT32_T
19760 #endif
19761 #ifndef _UINT8_T
19762 #define _UINT8_T
19763 #endif
19764 #ifndef _UINT16_T
19765 #define _UINT16_T
19766 #endif
19767 #ifndef _UINT32_T
19768 #define _UINT32_T
19769 #endif
19770EOF
19771fi
19772
19773# ------------- done basic int types, emit int64_t types ------------
19774if test "$ac_cv_type_uint64_t" = yes; then
19775 sed 's/^ *//' >> tmp-stdint.h <<EOF
19776
19777 /* system headers have good uint64_t and int64_t */
19778 #ifndef _INT64_T
19779 #define _INT64_T
19780 #endif
19781 #ifndef _UINT64_T
19782 #define _UINT64_T
19783 #endif
19784EOF
19785elif test "$ac_cv_type_u_int64_t" = yes; then
19786 sed 's/^ *//' >> tmp-stdint.h <<EOF
19787
19788 /* system headers have an u_int64_t (and int64_t) */
19789 #ifndef _INT64_T
19790 #define _INT64_T
19791 #endif
19792 #ifndef _UINT64_T
19793 #define _UINT64_T
19794 #ifndef __uint64_t_defined
19795 #define __uint64_t_defined
19796 #ifndef uint64_t
19797 typedef u_int64_t uint64_t;
19798 #endif
19799 #endif
19800 #endif
19801EOF
19802elif test -n "$acx_cv_type_int64_t"; then
19803 sed 's/^ *//' >> tmp-stdint.h <<EOF
19804
19805 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19806 #ifndef _INT64_T
19807 #define _INT64_T
19808 #ifndef int64_t
19809 typedef $acx_cv_type_int64_t int64_t;
19810 #endif
19811 #endif
19812 #ifndef _UINT64_T
19813 #define _UINT64_T
19814 #ifndef __uint64_t_defined
19815 #define __uint64_t_defined
19816 #ifndef uint64_t
19817 typedef unsigned $acx_cv_type_int64_t uint64_t;
19818 #endif
19819 #endif
19820 #endif
19821EOF
19822else
19823 sed 's/^ *//' >> tmp-stdint.h <<EOF
19824
19825 /* some common heuristics for int64_t, using compiler-specific tests */
19826 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19827 #ifndef _INT64_T
19828 #define _INT64_T
19829 #ifndef __int64_t_defined
19830 #ifndef int64_t
19831 typedef long long int64_t;
19832 #endif
19833 #endif
19834 #endif
19835 #ifndef _UINT64_T
19836 #define _UINT64_T
19837 #ifndef uint64_t
19838 typedef unsigned long long uint64_t;
19839 #endif
19840 #endif
19841
19842 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19843 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19844 does not implement __extension__. But that compiler doesn't define
19845 __GNUC_MINOR__. */
19846 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19847 # define __extension__
19848 # endif
19849
19850 # ifndef _INT64_T
19851 # define _INT64_T
19852 # ifndef int64_t
19853 __extension__ typedef long long int64_t;
19854 # endif
19855 # endif
19856 # ifndef _UINT64_T
19857 # define _UINT64_T
19858 # ifndef uint64_t
19859 __extension__ typedef unsigned long long uint64_t;
19860 # endif
19861 # endif
19862
19863 #elif !defined __STRICT_ANSI__
19864 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19865
19866 # ifndef _INT64_T
19867 # define _INT64_T
19868 # ifndef int64_t
19869 typedef __int64 int64_t;
19870 # endif
19871 # endif
19872 # ifndef _UINT64_T
19873 # define _UINT64_T
19874 # ifndef uint64_t
19875 typedef unsigned __int64 uint64_t;
19876 # endif
19877 # endif
19878 # endif /* compiler */
19879
19880 #endif /* ANSI version */
19881EOF
19882fi
19883
19884# ------------- done int64_t types, emit intptr types ------------
19885if test "$ac_cv_type_uintptr_t" != yes; then
19886 sed 's/^ *//' >> tmp-stdint.h <<EOF
19887
19888 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19889 #ifndef __uintptr_t_defined
19890 #ifndef uintptr_t
19891 typedef u$acx_cv_type_intptr_t uintptr_t;
19892 #endif
19893 #endif
19894 #ifndef __intptr_t_defined
19895 #ifndef intptr_t
19896 typedef $acx_cv_type_intptr_t intptr_t;
19897 #endif
19898 #endif
19899EOF
19900fi
19901
19902# ------------- done intptr types, emit int_least types ------------
19903if test "$ac_cv_type_int_least32_t" != yes; then
19904 sed 's/^ *//' >> tmp-stdint.h <<EOF
19905
19906 /* Define int_least types */
19907 typedef int8_t int_least8_t;
19908 typedef int16_t int_least16_t;
19909 typedef int32_t int_least32_t;
19910 #ifdef _INT64_T
19911 typedef int64_t int_least64_t;
19912 #endif
19913
19914 typedef uint8_t uint_least8_t;
19915 typedef uint16_t uint_least16_t;
19916 typedef uint32_t uint_least32_t;
19917 #ifdef _UINT64_T
19918 typedef uint64_t uint_least64_t;
19919 #endif
19920EOF
19921fi
19922
19923# ------------- done intptr types, emit int_fast types ------------
19924if test "$ac_cv_type_int_fast32_t" != yes; then
19925 sed 's/^ *//' >> tmp-stdint.h <<EOF
19926
19927 /* Define int_fast types. short is often slow */
19928 typedef int8_t int_fast8_t;
19929 typedef int int_fast16_t;
19930 typedef int32_t int_fast32_t;
19931 #ifdef _INT64_T
19932 typedef int64_t int_fast64_t;
19933 #endif
19934
19935 typedef uint8_t uint_fast8_t;
19936 typedef unsigned int uint_fast16_t;
19937 typedef uint32_t uint_fast32_t;
19938 #ifdef _UINT64_T
19939 typedef uint64_t uint_fast64_t;
19940 #endif
19941EOF
19942fi
19943
19944if test "$ac_cv_type_uintmax_t" != yes; then
19945 sed 's/^ *//' >> tmp-stdint.h <<EOF
19946
19947 /* Define intmax based on what we found */
19948 #ifndef intmax_t
19949 #ifdef _INT64_T
19950 typedef int64_t intmax_t;
19951 #else
19952 typedef long intmax_t;
19953 #endif
19954 #endif
19955 #ifndef uintmax_t
19956 #ifdef _UINT64_T
19957 typedef uint64_t uintmax_t;
19958 #else
19959 typedef unsigned long uintmax_t;
19960 #endif
19961 #endif
19962EOF
19963fi
19964
19965sed 's/^ *//' >> tmp-stdint.h <<EOF
19966
19967 #endif /* GCC_GENERATED_STDINT_H */
19968EOF
19969
19970if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19971 rm -f tmp-stdint.h
19972else
19973 mv -f tmp-stdint.h gstdint.h
19974fi
19975
f35db108
WM
19976 ;;
19977 "interception/Makefile":F) cat > vpsed$$ << \_EOF
19978s!`test -f '$<' || echo '$(srcdir)/'`!!
19979_EOF
19980 sed -f vpsed$$ $ac_file > tmp$$
19981 mv tmp$$ $ac_file
19982 rm vpsed$$
19983 echo 'MULTISUBDIR =' >> $ac_file
f64bcb29
L
19984 ml_norecursion=yes
19985 . ${multi_basedir}/config-ml.in
19986 { ml_norecursion=; unset ml_norecursion;}
f35db108
WM
19987 ;;
19988 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
19989s!`test -f '$<' || echo '$(srcdir)/'`!!
c915a581
JJ
19990_EOF
19991 sed -f vpsed$$ $ac_file > tmp$$
19992 mv tmp$$ $ac_file
19993 rm vpsed$$
19994 echo 'MULTISUBDIR =' >> $ac_file
19995 ml_norecursion=yes
19996 . ${multi_basedir}/config-ml.in
19997 { ml_norecursion=; unset ml_norecursion;}
19998 ;;
19999 "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
20000s!`test -f '$<' || echo '$(srcdir)/'`!!
ef1b3fda
KS
20001_EOF
20002 sed -f vpsed$$ $ac_file > tmp$$
20003 mv tmp$$ $ac_file
20004 rm vpsed$$
20005 echo 'MULTISUBDIR =' >> $ac_file
20006 ml_norecursion=yes
20007 . ${multi_basedir}/config-ml.in
20008 { ml_norecursion=; unset ml_norecursion;}
20009 ;;
20010 "lsan/Makefile":F) cat > vpsed$$ << \_EOF
20011s!`test -f '$<' || echo '$(srcdir)/'`!!
f35db108
WM
20012_EOF
20013 sed -f vpsed$$ $ac_file > tmp$$
20014 mv tmp$$ $ac_file
20015 rm vpsed$$
20016 echo 'MULTISUBDIR =' >> $ac_file
f64bcb29
L
20017 ml_norecursion=yes
20018 . ${multi_basedir}/config-ml.in
20019 { ml_norecursion=; unset ml_norecursion;}
f35db108
WM
20020 ;;
20021 "asan/Makefile":F) cat > vpsed$$ << \_EOF
20022s!`test -f '$<' || echo '$(srcdir)/'`!!
de5a5fa1
MP
20023_EOF
20024 sed -f vpsed$$ $ac_file > tmp$$
20025 mv tmp$$ $ac_file
20026 rm vpsed$$
20027 echo 'MULTISUBDIR =' >> $ac_file
20028 ml_norecursion=yes
20029 . ${multi_basedir}/config-ml.in
20030 { ml_norecursion=; unset ml_norecursion;}
20031 ;;
20032 "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
20033s!`test -f '$<' || echo '$(srcdir)/'`!!
f35db108
WM
20034_EOF
20035 sed -f vpsed$$ $ac_file > tmp$$
20036 mv tmp$$ $ac_file
20037 rm vpsed$$
20038 echo 'MULTISUBDIR =' >> $ac_file
f64bcb29
L
20039 ml_norecursion=yes
20040 . ${multi_basedir}/config-ml.in
20041 { ml_norecursion=; unset ml_norecursion;}
f35db108 20042 ;;
cd0be65c
WM
20043 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
20044s!`test -f '$<' || echo '$(srcdir)/'`!!
20045_EOF
20046 sed -f vpsed$$ $ac_file > tmp$$
20047 mv tmp$$ $ac_file
20048 rm vpsed$$
20049 echo 'MULTISUBDIR =' >> $ac_file
20050 ml_norecursion=yes
20051 . ${multi_basedir}/config-ml.in
20052 { ml_norecursion=; unset ml_norecursion;}
20053 ;;
f35db108
WM
20054
20055 esac
20056done # for ac_tag
20057
20058
20059as_fn_exit 0
20060_ACEOF
20061ac_clean_files=$ac_clean_files_save
20062
20063test $ac_write_fail = 0 ||
22e05272 20064 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
f35db108
WM
20065
20066
20067# configure is writing to config.log, and then calls config.status.
20068# config.status does its own redirection, appending to config.log.
20069# Unfortunately, on DOS this fails, as config.log is still kept open
20070# by configure, so config.status won't be able to write to it; its
20071# output is simply discarded. So we exec the FD to /dev/null,
20072# effectively closing config.log, so it can be properly (re)opened and
20073# appended to by config.status. When coming back to configure, we
20074# need to make the FD available again.
20075if test "$no_create" != yes; then
20076 ac_cs_success=:
20077 ac_config_status_args=
20078 test "$silent" = yes &&
20079 ac_config_status_args="$ac_config_status_args --quiet"
20080 exec 5>/dev/null
20081 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20082 exec 5>>config.log
20083 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20084 # would make configure fail if this is the last instruction.
22e05272 20085 $ac_cs_success || as_fn_exit 1
f35db108
WM
20086fi
20087if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20089$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20090fi
20091