]> git.ipfire.org Git - thirdparty/gcc.git/blame - libsanitizer/configure
inter-procedural value range propagation
[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
45ba6bf2 642WARN_FLAGS
10189819 643SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS
b0edd457 644TSAN_TARGET_DEPENDENT_OBJECTS
c915a581
JJ
645LIBBACKTRACE_SUPPORTED_FALSE
646LIBBACKTRACE_SUPPORTED_TRUE
d041a6fc 647RPC_DEFS
c915a581
JJ
648BACKTRACE_SUPPORTS_THREADS
649BACKTRACE_USES_MALLOC
650ALLOC_FILE
651VIEW_FILE
652BACKTRACE_SUPPORTED
653FORMAT_FILE
4a7eaf5f
YG
654SANITIZER_SUPPORTED_FALSE
655SANITIZER_SUPPORTED_TRUE
8c4d267c
KS
656USING_MAC_INTERPOSE_FALSE
657USING_MAC_INTERPOSE_TRUE
35814b03
JJ
658link_liblsan
659link_libubsan
660link_libtsan
edb07cb9 661link_libhwasan
35814b03 662link_libasan
8a769f81
MM
663HWASAN_SUPPORTED_FALSE
664HWASAN_SUPPORTED_TRUE
9065ada9
JJ
665LSAN_SUPPORTED_FALSE
666LSAN_SUPPORTED_TRUE
64548f3b
JJ
667TSAN_SUPPORTED_FALSE
668TSAN_SUPPORTED_TRUE
6a6d3817
IS
669ENABLE_DARWIN_AT_RPATH_FALSE
670ENABLE_DARWIN_AT_RPATH_TRUE
f35db108
WM
671enable_static
672enable_shared
673CXXCPP
f35db108
WM
674OTOOL64
675OTOOL
676LIPO
677NMEDIT
678DSYMUTIL
f35db108 679AR
f35db108
WM
680OBJDUMP
681LN_S
682NM
683ac_ct_DUMPBIN
684DUMPBIN
685LD
686FGREP
f35db108 687SED
f35db108 688LIBTOOL
c915a581 689RANLIB
f35db108
WM
690am__fastdepCCAS_FALSE
691am__fastdepCCAS_TRUE
692CCASDEPMODE
693CCASFLAGS
694CCAS
695am__fastdepCXX_FALSE
696am__fastdepCXX_TRUE
697CXXDEPMODE
698ac_ct_CXX
699CXXFLAGS
700CXX
c915a581
JJ
701toolexeclibdir
702toolexecdir
703MAINT
704MAINTAINER_MODE_FALSE
705MAINTAINER_MODE_TRUE
22e05272
JM
706AM_BACKSLASH
707AM_DEFAULT_VERBOSITY
708AM_DEFAULT_V
709AM_V
f35db108
WM
710am__fastdepCC_FALSE
711am__fastdepCC_TRUE
712CCDEPMODE
f3915b42 713am__nodep
f35db108
WM
714AMDEPBACKSLASH
715AMDEP_FALSE
716AMDEP_TRUE
8bc1fac7 717am__quote
f35db108
WM
718am__include
719DEPDIR
f35db108
WM
720am__untar
721am__tar
722AMTAR
723am__leading_dot
724SET_MAKE
725AWK
726mkdir_p
727MKDIR_P
728INSTALL_STRIP_PROGRAM
729STRIP
730install_sh
731MAKEINFO
732AUTOHEADER
733AUTOMAKE
734AUTOCONF
735ACLOCAL
736VERSION
737PACKAGE
738CYGPATH_W
739am__isrc
740INSTALL_DATA
741INSTALL_SCRIPT
742INSTALL_PROGRAM
e1e953d9 743LIBSTDCXX_RAW_CXX_LDFLAGS
d10a2df2
L
744LIBSTDCXX_RAW_CXX_CXXFLAGS
745target_noncanonical
2a6346c4
L
746target_os
747target_vendor
748target_cpu
749target
750host_os
751host_vendor
752host_cpu
753host
754build_os
755build_vendor
756build_cpu
757build
c915a581
JJ
758EGREP
759GREP
760CPP
761OBJEXT
762EXEEXT
763ac_ct_CC
764CPPFLAGS
765LDFLAGS
766CFLAGS
767CC
94213c10 768multi_basedir
f35db108
WM
769target_alias
770host_alias
771build_alias
772LIBS
773ECHO_T
774ECHO_N
775ECHO_C
776DEFS
777mandir
778localedir
779libdir
780psdir
781pdfdir
782dvidir
783htmldir
784infodir
785docdir
786oldincludedir
787includedir
788localstatedir
789sharedstatedir
790sysconfdir
791datadir
792datarootdir
793libexecdir
794sbindir
795bindir
796program_transform_name
797prefix
798exec_prefix
799PACKAGE_URL
800PACKAGE_BUGREPORT
801PACKAGE_STRING
802PACKAGE_VERSION
803PACKAGE_TARNAME
804PACKAGE_NAME
805PATH_SEPARATOR
8bc1fac7 806SHELL'
f35db108
WM
807ac_subst_files=''
808ac_user_opts='
809enable_option_checking
94213c10 810enable_multilib
2a6346c4 811enable_version_specific_runtime_libs
c915a581 812enable_dependency_tracking
22e05272 813enable_silent_rules
2b723e21 814enable_maintainer_mode
e8e66971 815with_toolexeclibdir
f35db108
WM
816enable_shared
817enable_static
818with_pic
819enable_fast_install
820with_gnu_ld
f35db108 821enable_libtool_lock
6a6d3817 822enable_darwin_at_rpath
45ba6bf2 823enable_werror
3c36aa6b 824with_gcc_major_version_only
9069eb28 825enable_cet
f35db108
WM
826'
827 ac_precious_vars='build_alias
828host_alias
829target_alias
830CC
831CFLAGS
832LDFLAGS
833LIBS
834CPPFLAGS
c915a581 835CPP
f35db108
WM
836CXX
837CXXFLAGS
838CCC
839CCAS
840CCASFLAGS
f35db108
WM
841CXXCPP'
842
843
844# Initialize some variables set by options.
845ac_init_help=
846ac_init_version=false
847ac_unrecognized_opts=
848ac_unrecognized_sep=
849# The variables have the same names as the options, with
850# dashes changed to underlines.
851cache_file=/dev/null
852exec_prefix=NONE
853no_create=
854no_recursion=
855prefix=NONE
856program_prefix=NONE
857program_suffix=NONE
858program_transform_name=s,x,x,
859silent=
860site=
861srcdir=
862verbose=
863x_includes=NONE
864x_libraries=NONE
865
866# Installation directory options.
867# These are left unexpanded so users can "make install exec_prefix=/foo"
868# and all the variables that are supposed to be based on exec_prefix
869# by default will actually change.
870# Use braces instead of parens because sh, perl, etc. also accept them.
871# (The list follows the same order as the GNU Coding Standards.)
872bindir='${exec_prefix}/bin'
873sbindir='${exec_prefix}/sbin'
874libexecdir='${exec_prefix}/libexec'
875datarootdir='${prefix}/share'
876datadir='${datarootdir}'
877sysconfdir='${prefix}/etc'
878sharedstatedir='${prefix}/com'
879localstatedir='${prefix}/var'
880includedir='${prefix}/include'
881oldincludedir='/usr/include'
882docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883infodir='${datarootdir}/info'
884htmldir='${docdir}'
885dvidir='${docdir}'
886pdfdir='${docdir}'
887psdir='${docdir}'
888libdir='${exec_prefix}/lib'
889localedir='${datarootdir}/locale'
890mandir='${datarootdir}/man'
891
892ac_prev=
893ac_dashdash=
894for ac_option
895do
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
899 ac_prev=
900 continue
901 fi
902
903 case $ac_option in
22e05272
JM
904 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *=) ac_optarg= ;;
906 *) ac_optarg=yes ;;
f35db108
WM
907 esac
908
909 # Accept the important Cygnus configure options, so we can diagnose typos.
910
911 case $ac_dashdash$ac_option in
912 --)
913 ac_dashdash=yes ;;
914
915 -bindir | --bindir | --bindi | --bind | --bin | --bi)
916 ac_prev=bindir ;;
917 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918 bindir=$ac_optarg ;;
919
920 -build | --build | --buil | --bui | --bu)
921 ac_prev=build_alias ;;
922 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923 build_alias=$ac_optarg ;;
924
925 -cache-file | --cache-file | --cache-fil | --cache-fi \
926 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927 ac_prev=cache_file ;;
928 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930 cache_file=$ac_optarg ;;
931
932 --config-cache | -C)
933 cache_file=config.cache ;;
934
935 -datadir | --datadir | --datadi | --datad)
936 ac_prev=datadir ;;
937 -datadir=* | --datadir=* | --datadi=* | --datad=*)
938 datadir=$ac_optarg ;;
939
940 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941 | --dataroo | --dataro | --datar)
942 ac_prev=datarootdir ;;
943 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945 datarootdir=$ac_optarg ;;
946
947 -disable-* | --disable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 951 as_fn_error $? "invalid feature name: $ac_useropt"
f35db108
WM
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956"enable_$ac_useropt"
957"*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=no ;;
962
963 -docdir | --docdir | --docdi | --doc | --do)
964 ac_prev=docdir ;;
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966 docdir=$ac_optarg ;;
967
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969 ac_prev=dvidir ;;
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971 dvidir=$ac_optarg ;;
972
973 -enable-* | --enable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 977 as_fn_error $? "invalid feature name: $ac_useropt"
f35db108
WM
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
981 *"
982"enable_$ac_useropt"
983"*) ;;
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
986 esac
987 eval enable_$ac_useropt=\$ac_optarg ;;
988
989 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991 | --exec | --exe | --ex)
992 ac_prev=exec_prefix ;;
993 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995 | --exec=* | --exe=* | --ex=*)
996 exec_prefix=$ac_optarg ;;
997
998 -gas | --gas | --ga | --g)
999 # Obsolete; use --with-gas.
1000 with_gas=yes ;;
1001
1002 -help | --help | --hel | --he | -h)
1003 ac_init_help=long ;;
1004 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005 ac_init_help=recursive ;;
1006 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007 ac_init_help=short ;;
1008
1009 -host | --host | --hos | --ho)
1010 ac_prev=host_alias ;;
1011 -host=* | --host=* | --hos=* | --ho=*)
1012 host_alias=$ac_optarg ;;
1013
1014 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015 ac_prev=htmldir ;;
1016 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017 | --ht=*)
1018 htmldir=$ac_optarg ;;
1019
1020 -includedir | --includedir | --includedi | --included | --include \
1021 | --includ | --inclu | --incl | --inc)
1022 ac_prev=includedir ;;
1023 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024 | --includ=* | --inclu=* | --incl=* | --inc=*)
1025 includedir=$ac_optarg ;;
1026
1027 -infodir | --infodir | --infodi | --infod | --info | --inf)
1028 ac_prev=infodir ;;
1029 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030 infodir=$ac_optarg ;;
1031
1032 -libdir | --libdir | --libdi | --libd)
1033 ac_prev=libdir ;;
1034 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035 libdir=$ac_optarg ;;
1036
1037 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038 | --libexe | --libex | --libe)
1039 ac_prev=libexecdir ;;
1040 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041 | --libexe=* | --libex=* | --libe=*)
1042 libexecdir=$ac_optarg ;;
1043
1044 -localedir | --localedir | --localedi | --localed | --locale)
1045 ac_prev=localedir ;;
1046 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047 localedir=$ac_optarg ;;
1048
1049 -localstatedir | --localstatedir | --localstatedi | --localstated \
1050 | --localstate | --localstat | --localsta | --localst | --locals)
1051 ac_prev=localstatedir ;;
1052 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054 localstatedir=$ac_optarg ;;
1055
1056 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057 ac_prev=mandir ;;
1058 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059 mandir=$ac_optarg ;;
1060
1061 -nfp | --nfp | --nf)
1062 # Obsolete; use --without-fp.
1063 with_fp=no ;;
1064
1065 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066 | --no-cr | --no-c | -n)
1067 no_create=yes ;;
1068
1069 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071 no_recursion=yes ;;
1072
1073 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075 | --oldin | --oldi | --old | --ol | --o)
1076 ac_prev=oldincludedir ;;
1077 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080 oldincludedir=$ac_optarg ;;
1081
1082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083 ac_prev=prefix ;;
1084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085 prefix=$ac_optarg ;;
1086
1087 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088 | --program-pre | --program-pr | --program-p)
1089 ac_prev=program_prefix ;;
1090 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092 program_prefix=$ac_optarg ;;
1093
1094 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095 | --program-suf | --program-su | --program-s)
1096 ac_prev=program_suffix ;;
1097 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099 program_suffix=$ac_optarg ;;
1100
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 ac_prev=program_transform_name ;;
1109 -program-transform-name=* | --program-transform-name=* \
1110 | --program-transform-nam=* | --program-transform-na=* \
1111 | --program-transform-n=* | --program-transform-=* \
1112 | --program-transform=* | --program-transfor=* \
1113 | --program-transfo=* | --program-transf=* \
1114 | --program-trans=* | --program-tran=* \
1115 | --progr-tra=* | --program-tr=* | --program-t=*)
1116 program_transform_name=$ac_optarg ;;
1117
1118 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119 ac_prev=pdfdir ;;
1120 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121 pdfdir=$ac_optarg ;;
1122
1123 -psdir | --psdir | --psdi | --psd | --ps)
1124 ac_prev=psdir ;;
1125 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126 psdir=$ac_optarg ;;
1127
1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129 | -silent | --silent | --silen | --sile | --sil)
1130 silent=yes ;;
1131
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133 ac_prev=sbindir ;;
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135 | --sbi=* | --sb=*)
1136 sbindir=$ac_optarg ;;
1137
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1141 | --sha | --sh)
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146 | --sha=* | --sh=*)
1147 sharedstatedir=$ac_optarg ;;
1148
1149 -site | --site | --sit)
1150 ac_prev=site ;;
1151 -site=* | --site=* | --sit=*)
1152 site=$ac_optarg ;;
1153
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155 ac_prev=srcdir ;;
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1158
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1165
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1170
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 verbose=yes ;;
1173
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1176
1177 -with-* | --with-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1181 as_fn_error $? "invalid package name: $ac_useropt"
f35db108
WM
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1185 *"
1186"with_$ac_useropt"
1187"*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=\$ac_optarg ;;
1192
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1197 as_fn_error $? "invalid package name: $ac_useropt"
f35db108
WM
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202"with_$ac_useropt"
1203"*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=no ;;
1208
1209 --x)
1210 # Obsolete; use --with-x.
1211 with_x=yes ;;
1212
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1219
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1226
22e05272
JM
1227 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228Try \`$0 --help' for more information"
f35db108
WM
1229 ;;
1230
1231 *=*)
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 case $ac_envvar in #(
1235 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1236 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
f35db108
WM
1237 esac
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1240
1241 *)
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1246 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
f35db108
WM
1247 ;;
1248
1249 esac
1250done
1251
1252if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1254 as_fn_error $? "missing argument to $ac_option"
f35db108
WM
1255fi
1256
1257if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1259 no) ;;
22e05272 1260 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
f35db108
WM
1261 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 esac
1263fi
1264
1265# Check all directory arguments for consistency.
1266for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir
1270do
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1273 case $ac_val in
1274 */ )
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1277 esac
1278 # Be sure to have absolute directory names.
1279 case $ac_val in
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282 esac
22e05272 1283 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
f35db108
WM
1284done
1285
1286# There might be people who depend on the old broken behavior: `$host'
1287# used to hold the argument of --host etc.
1288# FIXME: To remove some day.
1289build=$build_alias
1290host=$host_alias
1291target=$target_alias
1292
1293# FIXME: To remove some day.
1294if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
f35db108
WM
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1299 fi
1300fi
1301
1302ac_tool_prefix=
1303test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305test "$silent" = yes && exec 6>/dev/null
1306
1307
1308ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309ac_ls_di=`ls -di .` &&
1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1311 as_fn_error $? "working directory cannot be determined"
f35db108 1312test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1313 as_fn_error $? "pwd does not report name of working directory"
f35db108
WM
1314
1315
1316# Find the source files, if location was not specified.
1317if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325$as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\).*/{
1339 s//\1/
1340 q
1341 }
1342 s/.*/./; q'`
1343 srcdir=$ac_confdir
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 srcdir=..
1346 fi
1347else
1348 ac_srcdir_defaulted=no
1349fi
1350if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1352 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
f35db108
WM
1353fi
1354ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355ac_abs_confdir=`(
22e05272 1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
f35db108
WM
1357 pwd)`
1358# When building in place, set srcdir=.
1359if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1361fi
1362# Remove unnecessary trailing slashes from srcdir.
1363# Double slashes in file names in object file debugging info
1364# mess up M-x gdb in Emacs.
1365case $srcdir in
1366*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367esac
1368for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373done
1374
1375#
1376# Report the --help message.
1377#
1378if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1381 cat <<_ACEOF
1382\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1383
1384Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387VAR=VALUE. See below for descriptions of some of the useful variables.
1388
1389Defaults for the options are specified in brackets.
1390
1391Configuration:
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
22e05272 1396 -q, --quiet, --silent do not print \`checking ...' messages
f35db108
WM
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401
1402Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
1404 [$ac_default_prefix]
1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406 [PREFIX]
1407
1408By default, \`make install' will install all the files in
1409\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411for instance \`--prefix=\$HOME'.
1412
1413For better control, use the options below.
1414
1415Fine tuning of the installation directories:
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --libdir=DIR object code libraries [EPREFIX/lib]
1423 --includedir=DIR C header files [PREFIX/include]
1424 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1425 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1426 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1427 --infodir=DIR info documentation [DATAROOTDIR/info]
1428 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1429 --mandir=DIR man documentation [DATAROOTDIR/man]
1430 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1431 --htmldir=DIR html documentation [DOCDIR]
1432 --dvidir=DIR dvi documentation [DOCDIR]
1433 --pdfdir=DIR pdf documentation [DOCDIR]
1434 --psdir=DIR ps documentation [DOCDIR]
1435_ACEOF
1436
1437 cat <<\_ACEOF
1438
1439Program names:
1440 --program-prefix=PREFIX prepend PREFIX to installed program names
1441 --program-suffix=SUFFIX append SUFFIX to installed program names
1442 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1443
1444System types:
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2a6346c4 1447 --target=TARGET configure for building compilers for TARGET [HOST]
f35db108
WM
1448_ACEOF
1449fi
1450
1451if test -n "$ac_init_help"; then
1452 case $ac_init_help in
1453 short | recursive ) echo "Configuration of package-unused version-unused:";;
1454 esac
1455 cat <<\_ACEOF
1456
1457Optional Features:
1458 --disable-option-checking ignore unrecognized --enable/--with options
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
94213c10 1461 --enable-multilib build many library versions (default)
2a6346c4 1462 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
22e05272
JM
1463 --enable-dependency-tracking
1464 do not reject slow dependency extractors
1465 --disable-dependency-tracking
1466 speeds up one-time build
1467 --enable-silent-rules less verbose build output (undo: "make V=1")
1468 --disable-silent-rules verbose build output (undo: "make V=0")
1469 --enable-maintainer-mode
1470 enable make rules and dependencies not useful (and
1471 sometimes confusing) to the casual installer
f35db108
WM
1472 --enable-shared[=PKGS] build shared libraries [default=yes]
1473 --enable-static[=PKGS] build static libraries [default=yes]
1474 --enable-fast-install[=PKGS]
1475 optimize for fast installation [default=yes]
1476 --disable-libtool-lock avoid locking (might break parallel builds)
6a6d3817
IS
1477 --enable-darwin-at-rpath
1478 install libraries with @rpath/library-name, requires
1479 rpaths to be added to executables
45ba6bf2 1480 --disable-werror disable building with -Werror
8d286dd1 1481 --enable-cet enable Intel CET in target libraries [default=auto]
f35db108
WM
1482
1483Optional Packages:
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
e8e66971
MR
1486 --with-toolexeclibdir=DIR
1487 install libraries built with a cross compiler within
1488 DIR
a2479b3d 1489 --with-pic try to use only PIC/non-PIC objects [default=use
f35db108
WM
1490 both]
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3c36aa6b
JJ
1492 --with-gcc-major-version-only
1493 use only GCC major number in filesystem paths
f35db108
WM
1494
1495Some influential environment variables:
1496 CC C compiler command
1497 CFLAGS C compiler flags
1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir>
1500 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1501 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
f35db108 1502 you have headers in a nonstandard directory <include dir>
c915a581 1503 CPP C preprocessor
f35db108
WM
1504 CXX C++ compiler command
1505 CXXFLAGS C++ compiler flags
1506 CCAS assembler compiler command (defaults to CC)
1507 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
f35db108
WM
1508 CXXCPP C++ preprocessor
1509
1510Use these variables to override the choices made by `configure' or to help
1511it to find libraries and programs with nonstandard names/locations.
1512
1513Report bugs to <libsanitizer>.
1514_ACEOF
1515ac_status=$?
1516fi
1517
1518if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521 test -d "$ac_dir" ||
1522 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523 continue
1524 ac_builddir=.
1525
1526case "$ac_dir" in
1527.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528*)
1529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536esac
1537ac_abs_top_builddir=$ac_pwd
1538ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539# for backward compatibility:
1540ac_top_builddir=$ac_top_build_prefix
1541
1542case $srcdir in
1543 .) # We are building in place.
1544 ac_srcdir=.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555esac
1556ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1571fi
1572
1573test -n "$ac_init_help" && exit $ac_status
1574if $ac_init_version; then
1575 cat <<\_ACEOF
1576package-unused configure version-unused
22e05272 1577generated by GNU Autoconf 2.69
f35db108 1578
22e05272 1579Copyright (C) 2012 Free Software Foundation, Inc.
f35db108
WM
1580This configure script is free software; the Free Software Foundation
1581gives unlimited permission to copy, distribute and modify it.
1582_ACEOF
1583 exit
1584fi
1585
1586## ------------------------ ##
1587## Autoconf initialization. ##
1588## ------------------------ ##
1589
1590# ac_fn_c_try_compile LINENO
1591# --------------------------
1592# Try to compile conftest.$ac_ext, and return whether this succeeded.
1593ac_fn_c_try_compile ()
1594{
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1598case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601esac
1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603$as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1616 ac_retval=0
1617else
1618 $as_echo "$as_me: failed program was:" >&5
1619sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622fi
22e05272
JM
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
f35db108
WM
1625
1626} # ac_fn_c_try_compile
1627
c915a581
JJ
1628# ac_fn_c_try_cpp LINENO
1629# ----------------------
1630# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631ac_fn_c_try_cpp ()
f35db108
WM
1632{
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c915a581 1634 if { { ac_try="$ac_cpp conftest.$ac_ext"
f35db108
WM
1635case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638esac
1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640$as_echo "$ac_try_echo"; } >&5
c915a581 1641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
f35db108
WM
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1647 fi
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1649 test $ac_status = 0; } > conftest.i && {
c915a581 1650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
f35db108 1651 test ! -s conftest.err
c915a581 1652 }; then :
f35db108
WM
1653 ac_retval=0
1654else
1655 $as_echo "$as_me: failed program was:" >&5
1656sed 's/^/| /' conftest.$ac_ext >&5
1657
c915a581 1658 ac_retval=1
f35db108 1659fi
22e05272
JM
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
f35db108 1662
c915a581 1663} # ac_fn_c_try_cpp
f35db108 1664
c915a581
JJ
1665# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1666# -------------------------------------------------------
1667# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1668# the include files in INCLUDES and setting the cache variable VAR
1669# accordingly.
1670ac_fn_c_check_header_mongrel ()
1671{
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1673 if eval \${$3+:} false; then :
c915a581
JJ
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675$as_echo_n "checking for $2... " >&6; }
22e05272 1676if eval \${$3+:} false; then :
c915a581
JJ
1677 $as_echo_n "(cached) " >&6
1678fi
1679eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681$as_echo "$ac_res" >&6; }
1682else
1683 # Is the header compilable?
1684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1685$as_echo_n "checking $2 usability... " >&6; }
1686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687/* end confdefs.h. */
1688$4
1689#include <$2>
1690_ACEOF
1691if ac_fn_c_try_compile "$LINENO"; then :
1692 ac_header_compiler=yes
1693else
1694 ac_header_compiler=no
1695fi
1696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1698$as_echo "$ac_header_compiler" >&6; }
1699
1700# Is the header present?
1701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1702$as_echo_n "checking $2 presence... " >&6; }
1703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704/* end confdefs.h. */
1705#include <$2>
1706_ACEOF
1707if ac_fn_c_try_cpp "$LINENO"; then :
1708 ac_header_preproc=yes
1709else
1710 ac_header_preproc=no
1711fi
22e05272 1712rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
1713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1714$as_echo "$ac_header_preproc" >&6; }
1715
1716# So? What about this header?
1717case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1718 yes:no: )
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1720$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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;}
1723 ;;
1724 no:yes:* )
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1726$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1728$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1730$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1732$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
22e05272 1735( $as_echo "## --------------------------- ##
c915a581 1736## Report this to libsanitizer ##
22e05272 1737## --------------------------- ##"
c915a581
JJ
1738 ) | sed "s/^/$as_me: WARNING: /" >&2
1739 ;;
1740esac
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742$as_echo_n "checking for $2... " >&6; }
22e05272 1743if eval \${$3+:} false; then :
c915a581
JJ
1744 $as_echo_n "(cached) " >&6
1745else
1746 eval "$3=\$ac_header_compiler"
1747fi
1748eval ac_res=\$$3
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750$as_echo "$ac_res" >&6; }
1751fi
22e05272 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c915a581
JJ
1753
1754} # ac_fn_c_check_header_mongrel
1755
1756# ac_fn_c_try_run LINENO
1757# ----------------------
1758# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1759# that executables *can* be run.
1760ac_fn_c_try_run ()
f35db108
WM
1761{
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
f35db108
WM
1763 if { { ac_try="$ac_link"
1764case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767esac
1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769$as_echo "$ac_try_echo"; } >&5
c915a581 1770 (eval "$ac_link") 2>&5
f35db108 1771 ac_status=$?
f35db108 1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c915a581
JJ
1773 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1774 { { case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777esac
1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779$as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_try") 2>&5
1781 ac_status=$?
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; }; }; then :
f35db108
WM
1784 ac_retval=0
1785else
c915a581
JJ
1786 $as_echo "$as_me: program exited with status $ac_status" >&5
1787 $as_echo "$as_me: failed program was:" >&5
f35db108
WM
1788sed 's/^/| /' conftest.$ac_ext >&5
1789
c915a581 1790 ac_retval=$ac_status
f35db108 1791fi
f35db108 1792 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 as_fn_set_status $ac_retval
f35db108 1795
c915a581 1796} # ac_fn_c_try_run
f35db108
WM
1797
1798# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1799# -------------------------------------------------------
1800# Tests whether HEADER exists and can be compiled using the include files in
1801# INCLUDES, setting the cache variable VAR accordingly.
1802ac_fn_c_check_header_compile ()
1803{
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806$as_echo_n "checking for $2... " >&6; }
22e05272 1807if eval \${$3+:} false; then :
f35db108
WM
1808 $as_echo_n "(cached) " >&6
1809else
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h. */
1812$4
1813#include <$2>
1814_ACEOF
1815if ac_fn_c_try_compile "$LINENO"; then :
1816 eval "$3=yes"
1817else
1818 eval "$3=no"
1819fi
1820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821fi
1822eval ac_res=\$$3
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824$as_echo "$ac_res" >&6; }
22e05272 1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
f35db108
WM
1826
1827} # ac_fn_c_check_header_compile
1828
c915a581
JJ
1829# ac_fn_cxx_try_compile LINENO
1830# ----------------------------
1831# Try to compile conftest.$ac_ext, and return whether this succeeded.
1832ac_fn_cxx_try_compile ()
f35db108
WM
1833{
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c915a581
JJ
1835 rm -f conftest.$ac_objext
1836 if { { ac_try="$ac_compile"
f35db108
WM
1837case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
c915a581 1843 (eval "$ac_compile") 2>conftest.err
f35db108
WM
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1849 fi
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c915a581
JJ
1851 test $ac_status = 0; } && {
1852 test -z "$ac_cxx_werror_flag" ||
f35db108 1853 test ! -s conftest.err
c915a581 1854 } && test -s conftest.$ac_objext; then :
f35db108
WM
1855 ac_retval=0
1856else
1857 $as_echo "$as_me: failed program was:" >&5
1858sed 's/^/| /' conftest.$ac_ext >&5
1859
c915a581 1860 ac_retval=1
f35db108 1861fi
22e05272
JM
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 as_fn_set_status $ac_retval
f35db108 1864
c915a581 1865} # ac_fn_cxx_try_compile
f35db108 1866
c915a581
JJ
1867# ac_fn_c_try_link LINENO
1868# -----------------------
1869# Try to link conftest.$ac_ext, and return whether this succeeded.
1870ac_fn_c_try_link ()
f35db108
WM
1871{
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c915a581 1873 rm -f conftest.$ac_objext conftest$ac_exeext
f35db108
WM
1874 if { { ac_try="$ac_link"
1875case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878esac
1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880$as_echo "$ac_try_echo"; } >&5
c915a581 1881 (eval "$ac_link") 2>conftest.err
f35db108 1882 ac_status=$?
c915a581
JJ
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1887 fi
f35db108 1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c915a581
JJ
1889 test $ac_status = 0; } && {
1890 test -z "$ac_c_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest$ac_exeext && {
1893 test "$cross_compiling" = yes ||
22e05272 1894 test -x conftest$ac_exeext
c915a581 1895 }; then :
f35db108
WM
1896 ac_retval=0
1897else
c915a581 1898 $as_echo "$as_me: failed program was:" >&5
f35db108
WM
1899sed 's/^/| /' conftest.$ac_ext >&5
1900
c915a581 1901 ac_retval=1
f35db108 1902fi
c915a581
JJ
1903 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905 # interfere with the next link command; also delete a directory that is
1906 # left behind by Apple's compiler. We do this before executing the actions.
f35db108 1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status $ac_retval
f35db108 1910
c915a581 1911} # ac_fn_c_try_link
f35db108
WM
1912
1913# ac_fn_c_check_func LINENO FUNC VAR
1914# ----------------------------------
1915# Tests whether FUNC exists, setting the cache variable VAR accordingly
1916ac_fn_c_check_func ()
1917{
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920$as_echo_n "checking for $2... " >&6; }
22e05272 1921if eval \${$3+:} false; then :
f35db108
WM
1922 $as_echo_n "(cached) " >&6
1923else
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925/* end confdefs.h. */
1926/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1928#define $2 innocuous_$2
1929
1930/* System header to define __stub macros and hopefully few prototypes,
1931 which can conflict with char $2 (); below.
1932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1933 <limits.h> exists even on freestanding compilers. */
1934
1935#ifdef __STDC__
1936# include <limits.h>
1937#else
1938# include <assert.h>
1939#endif
1940
1941#undef $2
1942
1943/* Override any GCC internal prototype to avoid an error.
1944 Use char because int might match the return type of a GCC
1945 builtin and then its argument prototype would still apply. */
1946#ifdef __cplusplus
1947extern "C"
1948#endif
1949char $2 ();
1950/* The GNU C library defines this for functions which it implements
1951 to always fail with ENOSYS. Some functions are actually named
1952 something starting with __ and the normal name is an alias. */
1953#if defined __stub_$2 || defined __stub___$2
1954choke me
1955#endif
1956
1957int
1958main ()
1959{
1960return $2 ();
1961 ;
1962 return 0;
1963}
1964_ACEOF
1965if ac_fn_c_try_link "$LINENO"; then :
1966 eval "$3=yes"
1967else
1968 eval "$3=no"
1969fi
1970rm -f core conftest.err conftest.$ac_objext \
1971 conftest$ac_exeext conftest.$ac_ext
1972fi
1973eval ac_res=\$$3
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975$as_echo "$ac_res" >&6; }
22e05272 1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
f35db108
WM
1977
1978} # ac_fn_c_check_func
1979
1980# ac_fn_cxx_try_cpp LINENO
1981# ------------------------
1982# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1983ac_fn_cxx_try_cpp ()
1984{
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 if { { ac_try="$ac_cpp conftest.$ac_ext"
1987case "(($ac_try" in
1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989 *) ac_try_echo=$ac_try;;
1990esac
1991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992$as_echo "$ac_try_echo"; } >&5
1993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1994 ac_status=$?
1995 if test -s conftest.err; then
1996 grep -v '^ *+' conftest.err >conftest.er1
1997 cat conftest.er1 >&5
1998 mv -f conftest.er1 conftest.err
1999 fi
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 2001 test $ac_status = 0; } > conftest.i && {
f35db108
WM
2002 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2003 test ! -s conftest.err
2004 }; then :
2005 ac_retval=0
2006else
2007 $as_echo "$as_me: failed program was:" >&5
2008sed 's/^/| /' conftest.$ac_ext >&5
2009
2010 ac_retval=1
2011fi
22e05272
JM
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 as_fn_set_status $ac_retval
f35db108
WM
2014
2015} # ac_fn_cxx_try_cpp
2016
2017# ac_fn_cxx_try_link LINENO
2018# -------------------------
2019# Try to link conftest.$ac_ext, and return whether this succeeded.
2020ac_fn_cxx_try_link ()
2021{
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 rm -f conftest.$ac_objext conftest$ac_exeext
2024 if { { ac_try="$ac_link"
2025case "(($ac_try" in
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2028esac
2029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030$as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_link") 2>conftest.err
2032 ac_status=$?
2033 if test -s conftest.err; then
2034 grep -v '^ *+' conftest.err >conftest.er1
2035 cat conftest.er1 >&5
2036 mv -f conftest.er1 conftest.err
2037 fi
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && {
2040 test -z "$ac_cxx_werror_flag" ||
2041 test ! -s conftest.err
2042 } && test -s conftest$ac_exeext && {
2043 test "$cross_compiling" = yes ||
22e05272 2044 test -x conftest$ac_exeext
f35db108
WM
2045 }; then :
2046 ac_retval=0
2047else
2048 $as_echo "$as_me: failed program was:" >&5
2049sed 's/^/| /' conftest.$ac_ext >&5
2050
2051 ac_retval=1
2052fi
2053 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2054 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2055 # interfere with the next link command; also delete a directory that is
2056 # left behind by Apple's compiler. We do this before executing the actions.
2057 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 as_fn_set_status $ac_retval
f35db108
WM
2060
2061} # ac_fn_cxx_try_link
64548f3b
JJ
2062
2063# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2064# --------------------------------------------
2065# Tries to find the compile-time value of EXPR in a program that includes
2066# INCLUDES, setting VAR accordingly. Returns whether the value could be
2067# computed
2068ac_fn_c_compute_int ()
2069{
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 if test "$cross_compiling" = yes; then
2072 # Depending upon the size, compute the lo and hi bounds.
2073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h. */
2075$4
2076int
2077main ()
2078{
2079static int test_array [1 - 2 * !(($2) >= 0)];
22e05272
JM
2080test_array [0] = 0;
2081return test_array [0];
64548f3b
JJ
2082
2083 ;
2084 return 0;
2085}
2086_ACEOF
2087if ac_fn_c_try_compile "$LINENO"; then :
2088 ac_lo=0 ac_mid=0
2089 while :; do
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h. */
2092$4
2093int
2094main ()
2095{
2096static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2097test_array [0] = 0;
2098return test_array [0];
64548f3b
JJ
2099
2100 ;
2101 return 0;
2102}
2103_ACEOF
2104if ac_fn_c_try_compile "$LINENO"; then :
2105 ac_hi=$ac_mid; break
2106else
2107 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2108 if test $ac_lo -le $ac_mid; then
2109 ac_lo= ac_hi=
2110 break
2111 fi
2112 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2113fi
2114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 done
2116else
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118/* end confdefs.h. */
2119$4
2120int
2121main ()
2122{
2123static int test_array [1 - 2 * !(($2) < 0)];
22e05272
JM
2124test_array [0] = 0;
2125return test_array [0];
64548f3b
JJ
2126
2127 ;
2128 return 0;
2129}
2130_ACEOF
2131if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_hi=-1 ac_mid=-1
2133 while :; do
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135/* end confdefs.h. */
2136$4
2137int
2138main ()
2139{
2140static int test_array [1 - 2 * !(($2) >= $ac_mid)];
22e05272
JM
2141test_array [0] = 0;
2142return test_array [0];
64548f3b
JJ
2143
2144 ;
2145 return 0;
2146}
2147_ACEOF
2148if ac_fn_c_try_compile "$LINENO"; then :
2149 ac_lo=$ac_mid; break
2150else
2151 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2152 if test $ac_mid -le $ac_hi; then
2153 ac_lo= ac_hi=
2154 break
2155 fi
2156 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2157fi
2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 done
2160else
2161 ac_lo= ac_hi=
2162fi
2163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164fi
2165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166# Binary search between lo and hi bounds.
2167while test "x$ac_lo" != "x$ac_hi"; do
2168 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170/* end confdefs.h. */
2171$4
2172int
2173main ()
2174{
2175static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2176test_array [0] = 0;
2177return test_array [0];
64548f3b
JJ
2178
2179 ;
2180 return 0;
2181}
2182_ACEOF
2183if ac_fn_c_try_compile "$LINENO"; then :
2184 ac_hi=$ac_mid
2185else
2186 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2187fi
2188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189done
2190case $ac_lo in #((
2191?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2192'') ac_retval=1 ;;
2193esac
2194 else
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196/* end confdefs.h. */
2197$4
2198static long int longval () { return $2; }
2199static unsigned long int ulongval () { return $2; }
2200#include <stdio.h>
2201#include <stdlib.h>
2202int
2203main ()
2204{
2205
2206 FILE *f = fopen ("conftest.val", "w");
2207 if (! f)
2208 return 1;
2209 if (($2) < 0)
2210 {
2211 long int i = longval ();
2212 if (i != ($2))
2213 return 1;
2214 fprintf (f, "%ld", i);
2215 }
2216 else
2217 {
2218 unsigned long int i = ulongval ();
2219 if (i != ($2))
2220 return 1;
2221 fprintf (f, "%lu", i);
2222 }
2223 /* Do not output a trailing newline, as this causes \r\n confusion
2224 on some platforms. */
2225 return ferror (f) || fclose (f) != 0;
2226
2227 ;
2228 return 0;
2229}
2230_ACEOF
2231if ac_fn_c_try_run "$LINENO"; then :
2232 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2233else
2234 ac_retval=1
2235fi
2236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2237 conftest.$ac_objext conftest.beam conftest.$ac_ext
2238rm -f conftest.val
2239
2240 fi
22e05272
JM
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2242 as_fn_set_status $ac_retval
64548f3b
JJ
2243
2244} # ac_fn_c_compute_int
f35db108 2245
c915a581
JJ
2246# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2247# -------------------------------------------
2248# Tests whether TYPE exists after having included INCLUDES, setting cache
2249# variable VAR accordingly.
2250ac_fn_c_check_type ()
f35db108 2251{
c915a581
JJ
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254$as_echo_n "checking for $2... " >&6; }
22e05272 2255if eval \${$3+:} false; then :
c915a581
JJ
2256 $as_echo_n "(cached) " >&6
2257else
2258 eval "$3=no"
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260/* end confdefs.h. */
2261$4
2262int
2263main ()
2264{
2265if (sizeof ($2))
2266 return 0;
2267 ;
2268 return 0;
2269}
2270_ACEOF
2271if ac_fn_c_try_compile "$LINENO"; then :
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273/* end confdefs.h. */
2274$4
2275int
2276main ()
2277{
2278if (sizeof (($2)))
2279 return 0;
2280 ;
2281 return 0;
2282}
2283_ACEOF
2284if ac_fn_c_try_compile "$LINENO"; then :
2285
2286else
2287 eval "$3=yes"
2288fi
2289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290fi
2291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292fi
2293eval ac_res=\$$3
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295$as_echo "$ac_res" >&6; }
22e05272 2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c915a581
JJ
2297
2298} # ac_fn_c_check_type
2299
22e05272
JM
2300# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2301# ---------------------------------------------
2302# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2303# accordingly.
c915a581
JJ
2304ac_fn_c_check_decl ()
2305{
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 as_decl_name=`echo $2|sed 's/ *(.*//'`
2308 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2310$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
22e05272 2311if eval \${$3+:} false; then :
c915a581
JJ
2312 $as_echo_n "(cached) " >&6
2313else
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315/* end confdefs.h. */
2316$4
2317int
2318main ()
2319{
2320#ifndef $as_decl_name
2321#ifdef __cplusplus
2322 (void) $as_decl_use;
2323#else
2324 (void) $as_decl_name;
2325#endif
2326#endif
2327
2328 ;
2329 return 0;
2330}
2331_ACEOF
2332if ac_fn_c_try_compile "$LINENO"; then :
2333 eval "$3=yes"
2334else
2335 eval "$3=no"
2336fi
2337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338fi
2339eval ac_res=\$$3
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2341$as_echo "$ac_res" >&6; }
22e05272 2342 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c915a581
JJ
2343
2344} # ac_fn_c_check_decl
2345cat >config.log <<_ACEOF
2346This file contains any messages produced by compilers while
2347running configure, to aid debugging if configure makes a mistake.
2348
2349It was created by package-unused $as_me version-unused, which was
22e05272 2350generated by GNU Autoconf 2.69. Invocation command line was
c915a581
JJ
2351
2352 $ $0 $@
2353
2354_ACEOF
2355exec 5>>config.log
2356{
2357cat <<_ASUNAME
2358## --------- ##
2359## Platform. ##
2360## --------- ##
2361
2362hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2363uname -m = `(uname -m) 2>/dev/null || echo unknown`
2364uname -r = `(uname -r) 2>/dev/null || echo unknown`
2365uname -s = `(uname -s) 2>/dev/null || echo unknown`
2366uname -v = `(uname -v) 2>/dev/null || echo unknown`
2367
2368/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2369/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2370
2371/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2372/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2373/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
f35db108
WM
2374/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2375/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2376/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2377/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2378
2379_ASUNAME
2380
2381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382for as_dir in $PATH
2383do
2384 IFS=$as_save_IFS
2385 test -z "$as_dir" && as_dir=.
2386 $as_echo "PATH: $as_dir"
2387 done
2388IFS=$as_save_IFS
2389
2390} >&5
2391
2392cat >&5 <<_ACEOF
2393
2394
2395## ----------- ##
2396## Core tests. ##
2397## ----------- ##
2398
2399_ACEOF
2400
2401
2402# Keep a trace of the command line.
2403# Strip out --no-create and --no-recursion so they do not pile up.
2404# Strip out --silent because we don't want to record it for future runs.
2405# Also quote any args containing shell meta-characters.
2406# Make two passes to allow for proper duplicate-argument suppression.
2407ac_configure_args=
2408ac_configure_args0=
2409ac_configure_args1=
2410ac_must_keep_next=false
2411for ac_pass in 1 2
2412do
2413 for ac_arg
2414 do
2415 case $ac_arg in
2416 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2417 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2418 | -silent | --silent | --silen | --sile | --sil)
2419 continue ;;
2420 *\'*)
2421 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2422 esac
2423 case $ac_pass in
2424 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2425 2)
2426 as_fn_append ac_configure_args1 " '$ac_arg'"
2427 if test $ac_must_keep_next = true; then
2428 ac_must_keep_next=false # Got value, back to normal.
2429 else
2430 case $ac_arg in
2431 *=* | --config-cache | -C | -disable-* | --disable-* \
2432 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2433 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2434 | -with-* | --with-* | -without-* | --without-* | --x)
2435 case "$ac_configure_args0 " in
2436 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2437 esac
2438 ;;
2439 -* ) ac_must_keep_next=true ;;
2440 esac
2441 fi
2442 as_fn_append ac_configure_args " '$ac_arg'"
2443 ;;
2444 esac
2445 done
2446done
2447{ ac_configure_args0=; unset ac_configure_args0;}
2448{ ac_configure_args1=; unset ac_configure_args1;}
2449
2450# When interrupted or exit'd, cleanup temporary files, and complete
2451# config.log. We remove comments because anyway the quotes in there
2452# would cause problems or look ugly.
2453# WARNING: Use '\'' to represent an apostrophe within the trap.
2454# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2455trap 'exit_status=$?
2456 # Save into config.log some information that might help in debugging.
2457 {
2458 echo
2459
22e05272 2460 $as_echo "## ---------------- ##
f35db108 2461## Cache variables. ##
22e05272 2462## ---------------- ##"
f35db108
WM
2463 echo
2464 # The following way of writing the cache mishandles newlines in values,
2465(
2466 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2467 eval ac_val=\$$ac_var
2468 case $ac_val in #(
2469 *${as_nl}*)
2470 case $ac_var in #(
2471 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2472$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2473 esac
2474 case $ac_var in #(
2475 _ | IFS | as_nl) ;; #(
2476 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2477 *) { eval $ac_var=; unset $ac_var;} ;;
2478 esac ;;
2479 esac
2480 done
2481 (set) 2>&1 |
2482 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2483 *${as_nl}ac_space=\ *)
2484 sed -n \
2485 "s/'\''/'\''\\\\'\'''\''/g;
2486 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2487 ;; #(
2488 *)
2489 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2490 ;;
2491 esac |
2492 sort
2493)
2494 echo
2495
22e05272 2496 $as_echo "## ----------------- ##
f35db108 2497## Output variables. ##
22e05272 2498## ----------------- ##"
f35db108
WM
2499 echo
2500 for ac_var in $ac_subst_vars
2501 do
2502 eval ac_val=\$$ac_var
2503 case $ac_val in
2504 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2505 esac
2506 $as_echo "$ac_var='\''$ac_val'\''"
2507 done | sort
2508 echo
2509
2510 if test -n "$ac_subst_files"; then
22e05272 2511 $as_echo "## ------------------- ##
f35db108 2512## File substitutions. ##
22e05272 2513## ------------------- ##"
f35db108
WM
2514 echo
2515 for ac_var in $ac_subst_files
2516 do
2517 eval ac_val=\$$ac_var
2518 case $ac_val in
2519 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2520 esac
2521 $as_echo "$ac_var='\''$ac_val'\''"
2522 done | sort
2523 echo
2524 fi
2525
2526 if test -s confdefs.h; then
22e05272 2527 $as_echo "## ----------- ##
f35db108 2528## confdefs.h. ##
22e05272 2529## ----------- ##"
f35db108
WM
2530 echo
2531 cat confdefs.h
2532 echo
2533 fi
2534 test "$ac_signal" != 0 &&
2535 $as_echo "$as_me: caught signal $ac_signal"
2536 $as_echo "$as_me: exit $exit_status"
2537 } >&5
2538 rm -f core *.core core.conftest.* &&
2539 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2540 exit $exit_status
2541' 0
2542for ac_signal in 1 2 13 15; do
2543 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2544done
2545ac_signal=0
2546
2547# confdefs.h avoids OS command line length limits that DEFS can exceed.
2548rm -f -r conftest* confdefs.h
2549
2550$as_echo "/* confdefs.h */" > confdefs.h
2551
2552# Predefined preprocessor variables.
2553
2554cat >>confdefs.h <<_ACEOF
2555#define PACKAGE_NAME "$PACKAGE_NAME"
2556_ACEOF
2557
2558cat >>confdefs.h <<_ACEOF
2559#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2560_ACEOF
2561
2562cat >>confdefs.h <<_ACEOF
2563#define PACKAGE_VERSION "$PACKAGE_VERSION"
2564_ACEOF
2565
2566cat >>confdefs.h <<_ACEOF
2567#define PACKAGE_STRING "$PACKAGE_STRING"
2568_ACEOF
2569
2570cat >>confdefs.h <<_ACEOF
2571#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2572_ACEOF
2573
2574cat >>confdefs.h <<_ACEOF
2575#define PACKAGE_URL "$PACKAGE_URL"
2576_ACEOF
2577
2578
2579# Let the site file select an alternate cache file if it wants to.
2580# Prefer an explicitly selected file to automatically selected ones.
2581ac_site_file1=NONE
2582ac_site_file2=NONE
2583if test -n "$CONFIG_SITE"; then
22e05272
JM
2584 # We do not want a PATH search for config.site.
2585 case $CONFIG_SITE in #((
2586 -*) ac_site_file1=./$CONFIG_SITE;;
2587 */*) ac_site_file1=$CONFIG_SITE;;
2588 *) ac_site_file1=./$CONFIG_SITE;;
2589 esac
f35db108
WM
2590elif test "x$prefix" != xNONE; then
2591 ac_site_file1=$prefix/share/config.site
2592 ac_site_file2=$prefix/etc/config.site
2593else
2594 ac_site_file1=$ac_default_prefix/share/config.site
2595 ac_site_file2=$ac_default_prefix/etc/config.site
2596fi
2597for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2598do
2599 test "x$ac_site_file" = xNONE && continue
22e05272 2600 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
f35db108
WM
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2602$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2603 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2604 . "$ac_site_file" \
2605 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2607as_fn_error $? "failed to load site script $ac_site_file
2608See \`config.log' for more details" "$LINENO" 5; }
f35db108
WM
2609 fi
2610done
2611
2612if test -r "$cache_file"; then
22e05272
JM
2613 # Some versions of bash will fail to source /dev/null (special files
2614 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2615 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
f35db108
WM
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2617$as_echo "$as_me: loading cache $cache_file" >&6;}
2618 case $cache_file in
2619 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2620 *) . "./$cache_file";;
2621 esac
2622 fi
2623else
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2625$as_echo "$as_me: creating cache $cache_file" >&6;}
2626 >$cache_file
2627fi
2628
2629# Check that the precious variables saved in the cache have kept the same
2630# value.
2631ac_cache_corrupted=false
2632for ac_var in $ac_precious_vars; do
2633 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2634 eval ac_new_set=\$ac_env_${ac_var}_set
2635 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2636 eval ac_new_val=\$ac_env_${ac_var}_value
2637 case $ac_old_set,$ac_new_set in
2638 set,)
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2640$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2641 ac_cache_corrupted=: ;;
2642 ,set)
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2644$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2645 ac_cache_corrupted=: ;;
2646 ,);;
2647 *)
2648 if test "x$ac_old_val" != "x$ac_new_val"; then
2649 # differences in whitespace do not lead to failure.
2650 ac_old_val_w=`echo x $ac_old_val`
2651 ac_new_val_w=`echo x $ac_new_val`
2652 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2654$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2655 ac_cache_corrupted=:
2656 else
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2658$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2659 eval $ac_var=\$ac_old_val
2660 fi
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2662$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2664$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2665 fi;;
2666 esac
2667 # Pass precious variables to config.status.
2668 if test "$ac_new_set" = set; then
2669 case $ac_new_val in
2670 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2671 *) ac_arg=$ac_var=$ac_new_val ;;
2672 esac
2673 case " $ac_configure_args " in
2674 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2675 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2676 esac
2677 fi
2678done
2679if $ac_cache_corrupted; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2683$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2684 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
f35db108
WM
2685fi
2686## -------------------- ##
2687## Main body of script. ##
2688## -------------------- ##
2689
2690ac_ext=c
2691ac_cpp='$CPP $CPPFLAGS'
2692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2694ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695
2696
2697
a2479b3d
L
2698
2699
2700
4053ca2c 2701
94213c10
MK
2702# Default to --enable-multilib
2703# Check whether --enable-multilib was given.
2704if test "${enable_multilib+set}" = set; then :
2705 enableval=$enable_multilib; case "$enableval" in
2706 yes) multilib=yes ;;
2707 no) multilib=no ;;
22e05272 2708 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
94213c10
MK
2709 esac
2710else
2711 multilib=yes
2712fi
2713
2714
2715# We may get other options which we leave undocumented:
2716# --with-target-subdir, --with-multisrctop, --with-multisubdir
2717# See config-ml.in if you want the gory details.
2718
2719if test "$srcdir" = "."; then
2720 if test "$with_target_subdir" != "."; then
2721 multi_basedir="$srcdir/$with_multisrctop../.."
2722 else
2723 multi_basedir="$srcdir/$with_multisrctop.."
2724 fi
2725else
2726 multi_basedir="$srcdir/.."
2727fi
2728
2729
2730# Even if the default multilib is not a cross compilation,
2731# it may be that some of the other multilibs are.
2732if test $cross_compiling = no && test $multilib = yes \
2733 && test "x${with_multisubdir}" != x ; then
2734 cross_compiling=maybe
2735fi
2736
2737ac_config_commands="$ac_config_commands default-1"
2738
2739
2a6346c4
L
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2741$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2742# Check whether --enable-version-specific-runtime-libs was given.
2743if test "${enable_version_specific_runtime_libs+set}" = set; then :
2744 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2745 yes) version_specific_libs=yes ;;
2746 no) version_specific_libs=no ;;
22e05272 2747 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2a6346c4
L
2748 esac
2749else
2750 version_specific_libs=no
2751fi
2752
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2754$as_echo "$version_specific_libs" >&6; }
2755
22e05272
JM
2756ac_aux_dir=
2757for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2758 if test -f "$ac_dir/install-sh"; then
2759 ac_aux_dir=$ac_dir
2760 ac_install_sh="$ac_aux_dir/install-sh -c"
2761 break
2762 elif test -f "$ac_dir/install.sh"; then
2763 ac_aux_dir=$ac_dir
2764 ac_install_sh="$ac_aux_dir/install.sh -c"
2765 break
2766 elif test -f "$ac_dir/shtool"; then
2767 ac_aux_dir=$ac_dir
2768 ac_install_sh="$ac_aux_dir/shtool install -c"
2769 break
2770 fi
2771done
2772if test -z "$ac_aux_dir"; then
2773 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2774fi
2775
2776# These three variables are undocumented and unsupported,
2777# and are intended to be withdrawn in a future Autoconf release.
2778# They can cause serious problems if a builder's source tree is in a directory
2779# whose full name contains unusual characters.
2780ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2781ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2782ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2783
2784
2785# Expand $ac_aux_dir to an absolute path.
2786am_aux_dir=`cd "$ac_aux_dir" && pwd`
2787
c915a581
JJ
2788ac_ext=c
2789ac_cpp='$CPP $CPPFLAGS'
2790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792ac_compiler_gnu=$ac_cv_c_compiler_gnu
2793if test -n "$ac_tool_prefix"; then
2794 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2795set dummy ${ac_tool_prefix}gcc; ac_word=$2
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2798if ${ac_cv_prog_CC+:} false; then :
2a6346c4
L
2799 $as_echo_n "(cached) " >&6
2800else
c915a581
JJ
2801 if test -n "$CC"; then
2802 ac_cv_prog_CC="$CC" # Let the user override the test.
2803else
2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805for as_dir in $PATH
2806do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
2811 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2814 fi
2815done
2816 done
2817IFS=$as_save_IFS
2a6346c4
L
2818
2819fi
c915a581
JJ
2820fi
2821CC=$ac_cv_prog_CC
2822if test -n "$CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824$as_echo "$CC" >&6; }
2825else
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827$as_echo "no" >&6; }
2828fi
2a6346c4
L
2829
2830
c915a581
JJ
2831fi
2832if test -z "$ac_cv_prog_CC"; then
2833 ac_ct_CC=$CC
2834 # Extract the first word of "gcc", so it can be a program name with args.
2835set dummy gcc; ac_word=$2
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2838if ${ac_cv_prog_ac_ct_CC+:} false; then :
2a6346c4
L
2839 $as_echo_n "(cached) " >&6
2840else
c915a581
JJ
2841 if test -n "$ac_ct_CC"; then
2842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2a6346c4 2843else
c915a581
JJ
2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
2851 ac_cv_prog_ac_ct_CC="gcc"
2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855done
2856 done
2857IFS=$as_save_IFS
2a6346c4
L
2858
2859fi
c915a581
JJ
2860fi
2861ac_ct_CC=$ac_cv_prog_ac_ct_CC
2862if test -n "$ac_ct_CC"; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2864$as_echo "$ac_ct_CC" >&6; }
2865else
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867$as_echo "no" >&6; }
2868fi
2869
2870 if test "x$ac_ct_CC" = x; then
2871 CC=""
2872 else
2873 case $cross_compiling:$ac_tool_warned in
2874yes:)
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2877ac_tool_warned=yes ;;
2a6346c4 2878esac
c915a581
JJ
2879 CC=$ac_ct_CC
2880 fi
2881else
2882 CC="$ac_cv_prog_CC"
2883fi
2a6346c4 2884
c915a581
JJ
2885if test -z "$CC"; then
2886 if test -n "$ac_tool_prefix"; then
2887 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2888set dummy ${ac_tool_prefix}cc; ac_word=$2
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2891if ${ac_cv_prog_CC+:} false; then :
2a6346c4
L
2892 $as_echo_n "(cached) " >&6
2893else
c915a581
JJ
2894 if test -n "$CC"; then
2895 ac_cv_prog_CC="$CC" # Let the user override the test.
2a6346c4 2896else
c915a581
JJ
2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
2904 ac_cv_prog_CC="${ac_tool_prefix}cc"
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908done
2909 done
2910IFS=$as_save_IFS
2a6346c4
L
2911
2912fi
c915a581
JJ
2913fi
2914CC=$ac_cv_prog_CC
2915if test -n "$CC"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2917$as_echo "$CC" >&6; }
2918else
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920$as_echo "no" >&6; }
2921fi
e1e953d9 2922
d10a2df2 2923
c915a581
JJ
2924 fi
2925fi
2926if test -z "$CC"; then
2927 # Extract the first word of "cc", so it can be a program name with args.
2928set dummy cc; ac_word=$2
2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2931if ${ac_cv_prog_CC+:} false; then :
c915a581
JJ
2932 $as_echo_n "(cached) " >&6
2933else
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2936else
2937 ac_prog_rejected=no
2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH
2940do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
2945 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2946 ac_prog_rejected=yes
2947 continue
2948 fi
2949 ac_cv_prog_CC="cc"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953done
2954 done
2955IFS=$as_save_IFS
d10a2df2 2956
c915a581
JJ
2957if test $ac_prog_rejected = yes; then
2958 # We found a bogon in the path, so make sure we never use it.
2959 set dummy $ac_cv_prog_CC
2960 shift
2961 if test $# != 0; then
2962 # We chose a different compiler from the bogus one.
2963 # However, it has the same basename, so the bogon will be chosen
2964 # first if we set CC to just the basename; use the full file name.
2965 shift
2966 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2967 fi
2968fi
2969fi
2970fi
2971CC=$ac_cv_prog_CC
2972if test -n "$CC"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2974$as_echo "$CC" >&6; }
2975else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977$as_echo "no" >&6; }
2978fi
2a6346c4 2979
2a6346c4 2980
c915a581
JJ
2981fi
2982if test -z "$CC"; then
2983 if test -n "$ac_tool_prefix"; then
2984 for ac_prog in cl.exe
2985 do
2986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2987set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2990if ${ac_cv_prog_CC+:} false; then :
f35db108
WM
2991 $as_echo_n "(cached) " >&6
2992else
c915a581
JJ
2993 if test -n "$CC"; then
2994 ac_cv_prog_CC="$CC" # Let the user override the test.
2995else
2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
f35db108
WM
2997for as_dir in $PATH
2998do
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
c915a581 3001 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
3003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007done
f35db108
WM
3008 done
3009IFS=$as_save_IFS
3010
f35db108 3011fi
f35db108 3012fi
c915a581
JJ
3013CC=$ac_cv_prog_CC
3014if test -n "$CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016$as_echo "$CC" >&6; }
f35db108 3017else
c915a581
JJ
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019$as_echo "no" >&6; }
f35db108 3020fi
f35db108 3021
f35db108 3022
c915a581
JJ
3023 test -n "$CC" && break
3024 done
f35db108 3025fi
c915a581
JJ
3026if test -z "$CC"; then
3027 ac_ct_CC=$CC
3028 for ac_prog in cl.exe
3029do
3030 # Extract the first word of "$ac_prog", so it can be a program name with args.
3031set dummy $ac_prog; ac_word=$2
f35db108
WM
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3034if ${ac_cv_prog_ac_ct_CC+:} false; then :
f35db108
WM
3035 $as_echo_n "(cached) " >&6
3036else
c915a581
JJ
3037 if test -n "$ac_ct_CC"; then
3038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
f35db108
WM
3039else
3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 3047 ac_cv_prog_ac_ct_CC="$ac_prog"
f35db108
WM
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3050 fi
3051done
3052 done
3053IFS=$as_save_IFS
3054
3055fi
3056fi
c915a581
JJ
3057ac_ct_CC=$ac_cv_prog_ac_ct_CC
3058if test -n "$ac_ct_CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3060$as_echo "$ac_ct_CC" >&6; }
f35db108
WM
3061else
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063$as_echo "no" >&6; }
3064fi
3065
3066
c915a581 3067 test -n "$ac_ct_CC" && break
f35db108 3068done
f35db108 3069
c915a581
JJ
3070 if test "x$ac_ct_CC" = x; then
3071 CC=""
f35db108
WM
3072 else
3073 case $cross_compiling:$ac_tool_warned in
3074yes:)
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3077ac_tool_warned=yes ;;
3078esac
c915a581 3079 CC=$ac_ct_CC
f35db108 3080 fi
f35db108
WM
3081fi
3082
3083fi
f35db108 3084
f35db108 3085
c915a581
JJ
3086test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3088as_fn_error $? "no acceptable C compiler found in \$PATH
3089See \`config.log' for more details" "$LINENO" 5; }
f35db108 3090
c915a581
JJ
3091# Provide some information about the compiler.
3092$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3093set X $ac_compile
3094ac_compiler=$2
3095for ac_option in --version -v -V -qversion; do
3096 { { ac_try="$ac_compiler $ac_option >&5"
3097case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100esac
3101eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102$as_echo "$ac_try_echo"; } >&5
3103 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3104 ac_status=$?
3105 if test -s conftest.err; then
3106 sed '10a\
3107... rest of stderr output deleted ...
3108 10q' conftest.err >conftest.er1
3109 cat conftest.er1 >&5
f35db108 3110 fi
22e05272 3111 rm -f conftest.er1 conftest.err
c915a581
JJ
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }
3114done
f35db108 3115
c915a581
JJ
3116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117/* end confdefs.h. */
f35db108 3118
c915a581
JJ
3119int
3120main ()
3121{
f35db108 3122
c915a581
JJ
3123 ;
3124 return 0;
3125}
3126_ACEOF
3127ac_clean_files_save=$ac_clean_files
22e05272 3128ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
c915a581
JJ
3129# Try to create an executable without -o first, disregard a.out.
3130# It will help us diagnose broken compilers, and finding out an intuition
3131# of exeext.
22e05272
JM
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3133$as_echo_n "checking whether the C compiler works... " >&6; }
c915a581 3134ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
f35db108 3135
c915a581
JJ
3136# The possible output files:
3137ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
f35db108 3138
c915a581
JJ
3139ac_rmfiles=
3140for ac_file in $ac_files
3141do
3142 case $ac_file in
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3144 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3145 esac
f35db108 3146done
c915a581 3147rm -f $ac_rmfiles
f35db108 3148
c915a581
JJ
3149if { { ac_try="$ac_link_default"
3150case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
f35db108 3153esac
c915a581
JJ
3154eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155$as_echo "$ac_try_echo"; } >&5
3156 (eval "$ac_link_default") 2>&5
3157 ac_status=$?
3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159 test $ac_status = 0; }; then :
3160 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3161# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3162# in a Makefile. We should not override ac_cv_exeext if it was cached,
3163# so that the user can short-circuit this test for compilers unknown to
3164# Autoconf.
3165for ac_file in $ac_files ''
3166do
3167 test -f "$ac_file" || continue
3168 case $ac_file in
3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3170 ;;
3171 [ab].out )
3172 # We found the default executable, but exeext='' is most
3173 # certainly right.
3174 break;;
3175 *.* )
3176 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3177 then :; else
3178 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3179 fi
3180 # We set ac_cv_exeext here because the later test for it is not
3181 # safe: cross compilers may not add the suffix if given an `-o'
3182 # argument, so we may need to know it at that point already.
3183 # Even if this section looks crufty: it has the advantage of
3184 # actually working.
3185 break;;
3186 * )
3187 break;;
3188 esac
3189done
3190test "$ac_cv_exeext" = no && ac_cv_exeext=
f35db108 3191
f35db108 3192else
c915a581 3193 ac_file=''
f35db108 3194fi
c915a581 3195if test -z "$ac_file"; then :
22e05272
JM
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197$as_echo "no" >&6; }
3198$as_echo "$as_me: failed program was:" >&5
c915a581 3199sed 's/^/| /' conftest.$ac_ext >&5
f35db108 3200
c915a581
JJ
3201{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3203as_fn_error 77 "C compiler cannot create executables
3204See \`config.log' for more details" "$LINENO" 5; }
3205else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3207$as_echo "yes" >&6; }
f35db108 3208fi
22e05272
JM
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3210$as_echo_n "checking for C compiler default output file name... " >&6; }
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3212$as_echo "$ac_file" >&6; }
c915a581 3213ac_exeext=$ac_cv_exeext
f35db108 3214
22e05272 3215rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
c915a581 3216ac_clean_files=$ac_clean_files_save
c915a581
JJ
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3218$as_echo_n "checking for suffix of executables... " >&6; }
3219if { { ac_try="$ac_link"
3220case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223esac
3224eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3225$as_echo "$ac_try_echo"; } >&5
3226 (eval "$ac_link") 2>&5
3227 ac_status=$?
3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229 test $ac_status = 0; }; then :
3230 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3231# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3232# work properly (i.e., refer to `conftest.exe'), while it won't with
3233# `rm'.
3234for ac_file in conftest.exe conftest conftest.*; do
3235 test -f "$ac_file" || continue
3236 case $ac_file in
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3238 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3239 break;;
3240 * ) break;;
3241 esac
3242done
3243else
3244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3246as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3247See \`config.log' for more details" "$LINENO" 5; }
c915a581 3248fi
22e05272 3249rm -f conftest conftest$ac_cv_exeext
c915a581
JJ
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3251$as_echo "$ac_cv_exeext" >&6; }
f35db108 3252
c915a581
JJ
3253rm -f conftest.$ac_ext
3254EXEEXT=$ac_cv_exeext
3255ac_exeext=$EXEEXT
22e05272
JM
3256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257/* end confdefs.h. */
3258#include <stdio.h>
3259int
3260main ()
3261{
3262FILE *f = fopen ("conftest.out", "w");
3263 return ferror (f) || fclose (f) != 0;
3264
3265 ;
3266 return 0;
3267}
3268_ACEOF
3269ac_clean_files="$ac_clean_files conftest.out"
3270# Check that the compiler produces executables we can run. If not, either
3271# the compiler is broken, or we cross compile.
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3273$as_echo_n "checking whether we are cross compiling... " >&6; }
3274if test "$cross_compiling" != yes; then
3275 { { ac_try="$ac_link"
3276case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279esac
3280eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281$as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_link") 2>&5
3283 ac_status=$?
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }
3286 if { ac_try='./conftest$ac_cv_exeext'
3287 { { case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290esac
3291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292$as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_try") 2>&5
3294 ac_status=$?
3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296 test $ac_status = 0; }; }; then
3297 cross_compiling=no
3298 else
3299 if test "$cross_compiling" = maybe; then
3300 cross_compiling=yes
3301 else
3302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304as_fn_error $? "cannot run C compiled programs.
3305If you meant to cross compile, use \`--host'.
3306See \`config.log' for more details" "$LINENO" 5; }
3307 fi
3308 fi
3309fi
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3311$as_echo "$cross_compiling" >&6; }
3312
3313rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3314ac_clean_files=$ac_clean_files_save
c915a581
JJ
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3316$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3317if ${ac_cv_objext+:} false; then :
c915a581
JJ
3318 $as_echo_n "(cached) " >&6
3319else
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321/* end confdefs.h. */
f35db108 3322
c915a581
JJ
3323int
3324main ()
3325{
f35db108 3326
c915a581
JJ
3327 ;
3328 return 0;
3329}
3330_ACEOF
3331rm -f conftest.o conftest.obj
3332if { { ac_try="$ac_compile"
3333case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336esac
3337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338$as_echo "$ac_try_echo"; } >&5
3339 (eval "$ac_compile") 2>&5
3340 ac_status=$?
3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342 test $ac_status = 0; }; then :
3343 for ac_file in conftest.o conftest.obj conftest.*; do
3344 test -f "$ac_file" || continue;
3345 case $ac_file in
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3347 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3348 break;;
3349 esac
3350done
2a6346c4 3351else
c915a581
JJ
3352 $as_echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
2a6346c4 3354
c915a581
JJ
3355{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3357as_fn_error $? "cannot compute suffix of object files: cannot compile
3358See \`config.log' for more details" "$LINENO" 5; }
2a6346c4 3359fi
c915a581 3360rm -f conftest.$ac_cv_objext conftest.$ac_ext
2a6346c4 3361fi
c915a581
JJ
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3363$as_echo "$ac_cv_objext" >&6; }
3364OBJEXT=$ac_cv_objext
3365ac_objext=$OBJEXT
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3367$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3368if ${ac_cv_c_compiler_gnu+:} false; then :
c915a581
JJ
3369 $as_echo_n "(cached) " >&6
3370else
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372/* end confdefs.h. */
2a6346c4 3373
c915a581
JJ
3374int
3375main ()
3376{
3377#ifndef __GNUC__
3378 choke me
3379#endif
2a6346c4 3380
c915a581
JJ
3381 ;
3382 return 0;
3383}
3384_ACEOF
3385if ac_fn_c_try_compile "$LINENO"; then :
3386 ac_compiler_gnu=yes
2b723e21 3387else
c915a581 3388 ac_compiler_gnu=no
2b723e21 3389fi
c915a581
JJ
3390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391ac_cv_c_compiler_gnu=$ac_compiler_gnu
2b723e21 3392
c915a581
JJ
3393fi
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3395$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3396if test $ac_compiler_gnu = yes; then
3397 GCC=yes
2b723e21 3398else
c915a581 3399 GCC=
2b723e21 3400fi
c915a581
JJ
3401ac_test_CFLAGS=${CFLAGS+set}
3402ac_save_CFLAGS=$CFLAGS
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3404$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3405if ${ac_cv_prog_cc_g+:} false; then :
c915a581
JJ
3406 $as_echo_n "(cached) " >&6
3407else
3408 ac_save_c_werror_flag=$ac_c_werror_flag
3409 ac_c_werror_flag=yes
3410 ac_cv_prog_cc_g=no
3411 CFLAGS="-g"
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413/* end confdefs.h. */
2b723e21 3414
c915a581
JJ
3415int
3416main ()
3417{
2b723e21 3418
c915a581
JJ
3419 ;
3420 return 0;
3421}
3422_ACEOF
3423if ac_fn_c_try_compile "$LINENO"; then :
3424 ac_cv_prog_cc_g=yes
3425else
3426 CFLAGS=""
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428/* end confdefs.h. */
2a6346c4 3429
c915a581
JJ
3430int
3431main ()
3432{
2a6346c4 3433
c915a581
JJ
3434 ;
3435 return 0;
3436}
3437_ACEOF
3438if ac_fn_c_try_compile "$LINENO"; then :
f35db108 3439
f35db108 3440else
c915a581
JJ
3441 ac_c_werror_flag=$ac_save_c_werror_flag
3442 CFLAGS="-g"
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444/* end confdefs.h. */
3445
3446int
3447main ()
3448{
f35db108 3449
c915a581
JJ
3450 ;
3451 return 0;
3452}
3453_ACEOF
3454if ac_fn_c_try_compile "$LINENO"; then :
3455 ac_cv_prog_cc_g=yes
f35db108 3456fi
c915a581 3457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 3458fi
c915a581 3459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 3460fi
c915a581
JJ
3461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3462 ac_c_werror_flag=$ac_save_c_werror_flag
f35db108 3463fi
c915a581
JJ
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3465$as_echo "$ac_cv_prog_cc_g" >&6; }
3466if test "$ac_test_CFLAGS" = set; then
3467 CFLAGS=$ac_save_CFLAGS
3468elif test $ac_cv_prog_cc_g = yes; then
3469 if test "$GCC" = yes; then
3470 CFLAGS="-g -O2"
3471 else
3472 CFLAGS="-g"
f35db108 3473 fi
f35db108 3474else
c915a581
JJ
3475 if test "$GCC" = yes; then
3476 CFLAGS="-O2"
f35db108 3477 else
c915a581 3478 CFLAGS=
f35db108 3479 fi
f35db108 3480fi
c915a581
JJ
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3482$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3483if ${ac_cv_prog_cc_c89+:} false; then :
f35db108
WM
3484 $as_echo_n "(cached) " >&6
3485else
c915a581
JJ
3486 ac_cv_prog_cc_c89=no
3487ac_save_CC=$CC
3488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489/* end confdefs.h. */
3490#include <stdarg.h>
3491#include <stdio.h>
22e05272 3492struct stat;
c915a581
JJ
3493/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3494struct buf { int x; };
3495FILE * (*rcsopen) (struct buf *, struct stat *, int);
3496static char *e (p, i)
3497 char **p;
3498 int i;
3499{
3500 return p[i];
3501}
3502static char *f (char * (*g) (char **, int), char **p, ...)
3503{
3504 char *s;
3505 va_list v;
3506 va_start (v,p);
3507 s = g (p, va_arg (v,int));
3508 va_end (v);
3509 return s;
3510}
f35db108 3511
c915a581
JJ
3512/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3513 function prototypes and stuff, but not '\xHH' hex character constants.
3514 These don't provoke an error unfortunately, instead are silently treated
3515 as 'x'. The following induces an error, until -std is added to get
3516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3517 array size at least. It's necessary to write '\x00'==0 to get something
3518 that's true only with -std. */
3519int osf4_cc_array ['\x00' == 0 ? 1 : -1];
f35db108 3520
c915a581
JJ
3521/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3522 inside strings and character constants. */
3523#define FOO(x) 'x'
3524int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
f35db108 3525
c915a581
JJ
3526int test (int i, double x);
3527struct s1 {int (*f) (int a);};
3528struct s2 {int (*f) (double a);};
3529int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3530int argc;
3531char **argv;
3532int
3533main ()
3534{
3535return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3536 ;
3537 return 0;
3538}
3539_ACEOF
3540for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3541 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
f35db108 3542do
c915a581
JJ
3543 CC="$ac_save_CC $ac_arg"
3544 if ac_fn_c_try_compile "$LINENO"; then :
3545 ac_cv_prog_cc_c89=$ac_arg
3546fi
3547rm -f core conftest.err conftest.$ac_objext
3548 test "x$ac_cv_prog_cc_c89" != "xno" && break
f35db108 3549done
c915a581
JJ
3550rm -f conftest.$ac_ext
3551CC=$ac_save_CC
f35db108 3552
f35db108 3553fi
c915a581
JJ
3554# AC_CACHE_VAL
3555case "x$ac_cv_prog_cc_c89" in
3556 x)
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3558$as_echo "none needed" >&6; } ;;
3559 xno)
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3561$as_echo "unsupported" >&6; } ;;
3562 *)
3563 CC="$CC $ac_cv_prog_cc_c89"
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3565$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3566esac
3567if test "x$ac_cv_prog_cc_c89" != xno; then :
3568
f35db108
WM
3569fi
3570
c915a581
JJ
3571ac_ext=c
3572ac_cpp='$CPP $CPPFLAGS'
3573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576
22e05272
JM
3577ac_ext=c
3578ac_cpp='$CPP $CPPFLAGS'
3579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3583$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3584if ${am_cv_prog_cc_c_o+:} false; then :
3585 $as_echo_n "(cached) " >&6
3586else
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588/* end confdefs.h. */
3589
3590int
3591main ()
3592{
3593
3594 ;
3595 return 0;
3596}
3597_ACEOF
3598 # Make sure it works both with $CC and with simple cc.
3599 # Following AC_PROG_CC_C_O, we do the test twice because some
3600 # compilers refuse to overwrite an existing .o file with -o,
3601 # though they will create one.
3602 am_cv_prog_cc_c_o=yes
3603 for am_i in 1 2; do
3604 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3605 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3606 ac_status=$?
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } \
3609 && test -f conftest2.$ac_objext; then
3610 : OK
3611 else
3612 am_cv_prog_cc_c_o=no
3613 break
3614 fi
3615 done
3616 rm -f core conftest*
3617 unset am_i
3618fi
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3620$as_echo "$am_cv_prog_cc_c_o" >&6; }
3621if test "$am_cv_prog_cc_c_o" != yes; then
3622 # Losing compiler, so override with the script.
3623 # FIXME: It is wrong to rewrite CC.
3624 # But if we don't then we get into trouble of one sort or another.
3625 # A longer-term fix would be to have automake use am__CC in this case,
3626 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3627 CC="$am_aux_dir/compile $CC"
3628fi
3629ac_ext=c
3630ac_cpp='$CPP $CPPFLAGS'
3631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634
3635
f35db108 3636
c915a581
JJ
3637ac_ext=c
3638ac_cpp='$CPP $CPPFLAGS'
3639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3643$as_echo_n "checking how to run the C preprocessor... " >&6; }
3644# On Suns, sometimes $CPP names a directory.
3645if test -n "$CPP" && test -d "$CPP"; then
3646 CPP=
f35db108 3647fi
c915a581 3648if test -z "$CPP"; then
22e05272 3649 if ${ac_cv_prog_CPP+:} false; then :
f35db108
WM
3650 $as_echo_n "(cached) " >&6
3651else
c915a581
JJ
3652 # Double quotes because CPP needs to be expanded
3653 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3654 do
3655 ac_preproc_ok=false
3656for ac_c_preproc_warn_flag in '' yes
f35db108 3657do
c915a581
JJ
3658 # Use a header file that comes with gcc, so configuring glibc
3659 # with a fresh cross-compiler works.
3660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3661 # <limits.h> exists even on freestanding compilers.
3662 # On the NeXT, cc -E runs the code through the compiler's parser,
3663 # not just through cpp. "Syntax error" is here to catch this case.
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665/* end confdefs.h. */
3666#ifdef __STDC__
3667# include <limits.h>
3668#else
3669# include <assert.h>
3670#endif
3671 Syntax error
3672_ACEOF
3673if ac_fn_c_try_cpp "$LINENO"; then :
f35db108 3674
c915a581
JJ
3675else
3676 # Broken: fails on valid input.
3677continue
f35db108 3678fi
22e05272 3679rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
3680
3681 # OK, works on sane cases. Now check whether nonexistent headers
3682 # can be detected and how.
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684/* end confdefs.h. */
3685#include <ac_nonexistent.h>
3686_ACEOF
3687if ac_fn_c_try_cpp "$LINENO"; then :
3688 # Broken: success on invalid input.
3689continue
f35db108 3690else
c915a581
JJ
3691 # Passes both tests.
3692ac_preproc_ok=:
3693break
3694fi
22e05272 3695rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
3696
3697done
3698# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3699rm -f conftest.i conftest.err conftest.$ac_ext
c915a581
JJ
3700if $ac_preproc_ok; then :
3701 break
f35db108
WM
3702fi
3703
c915a581
JJ
3704 done
3705 ac_cv_prog_CPP=$CPP
f35db108 3706
f35db108 3707fi
c915a581 3708 CPP=$ac_cv_prog_CPP
f35db108 3709else
c915a581
JJ
3710 ac_cv_prog_CPP=$CPP
3711fi
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3713$as_echo "$CPP" >&6; }
3714ac_preproc_ok=false
3715for ac_c_preproc_warn_flag in '' yes
f35db108 3716do
c915a581
JJ
3717 # Use a header file that comes with gcc, so configuring glibc
3718 # with a fresh cross-compiler works.
3719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3720 # <limits.h> exists even on freestanding compilers.
3721 # On the NeXT, cc -E runs the code through the compiler's parser,
3722 # not just through cpp. "Syntax error" is here to catch this case.
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724/* end confdefs.h. */
3725#ifdef __STDC__
3726# include <limits.h>
3727#else
3728# include <assert.h>
3729#endif
3730 Syntax error
3731_ACEOF
3732if ac_fn_c_try_cpp "$LINENO"; then :
f35db108 3733
c915a581
JJ
3734else
3735 # Broken: fails on valid input.
3736continue
f35db108 3737fi
22e05272 3738rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
3739
3740 # OK, works on sane cases. Now check whether nonexistent headers
3741 # can be detected and how.
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743/* end confdefs.h. */
3744#include <ac_nonexistent.h>
3745_ACEOF
3746if ac_fn_c_try_cpp "$LINENO"; then :
3747 # Broken: success on invalid input.
3748continue
3749else
3750 # Passes both tests.
3751ac_preproc_ok=:
3752break
f35db108 3753fi
22e05272 3754rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
3755
3756done
3757# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3758rm -f conftest.i conftest.err conftest.$ac_ext
c915a581
JJ
3759if $ac_preproc_ok; then :
3760
f35db108 3761else
c915a581
JJ
3762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3764as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3765See \`config.log' for more details" "$LINENO" 5; }
f35db108
WM
3766fi
3767
c915a581
JJ
3768ac_ext=c
3769ac_cpp='$CPP $CPPFLAGS'
3770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 3773
f35db108 3774
c915a581
JJ
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3776$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 3777if ${ac_cv_path_GREP+:} false; then :
c915a581
JJ
3778 $as_echo_n "(cached) " >&6
3779else
3780 if test -z "$GREP"; then
3781 ac_path_GREP_found=false
3782 # Loop through the user's path and test for each of PROGNAME-LIST
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3785do
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
3788 for ac_prog in grep ggrep; do
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3791 as_fn_executable_p "$ac_path_GREP" || continue
c915a581
JJ
3792# Check for GNU ac_path_GREP and select it if it is found.
3793 # Check for GNU $ac_path_GREP
3794case `"$ac_path_GREP" --version 2>&1` in
3795*GNU*)
3796 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3797*)
3798 ac_count=0
3799 $as_echo_n 0123456789 >"conftest.in"
3800 while :
3801 do
3802 cat "conftest.in" "conftest.in" >"conftest.tmp"
3803 mv "conftest.tmp" "conftest.in"
3804 cp "conftest.in" "conftest.nl"
3805 $as_echo 'GREP' >> "conftest.nl"
3806 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3807 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3808 as_fn_arith $ac_count + 1 && ac_count=$as_val
3809 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3810 # Best one so far, save it but keep looking for a better one
3811 ac_cv_path_GREP="$ac_path_GREP"
3812 ac_path_GREP_max=$ac_count
3813 fi
3814 # 10*(2^10) chars as input seems more than enough
3815 test $ac_count -gt 10 && break
3816 done
3817 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
f35db108 3818esac
c915a581
JJ
3819
3820 $ac_path_GREP_found && break 3
3821 done
3822 done
3823 done
3824IFS=$as_save_IFS
3825 if test -z "$ac_cv_path_GREP"; then
22e05272 3826 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
f35db108 3827 fi
c915a581
JJ
3828else
3829 ac_cv_path_GREP=$GREP
f35db108
WM
3830fi
3831
3832fi
c915a581
JJ
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3834$as_echo "$ac_cv_path_GREP" >&6; }
3835 GREP="$ac_cv_path_GREP"
f35db108
WM
3836
3837
c915a581
JJ
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3839$as_echo_n "checking for egrep... " >&6; }
22e05272 3840if ${ac_cv_path_EGREP+:} false; then :
c915a581
JJ
3841 $as_echo_n "(cached) " >&6
3842else
3843 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3844 then ac_cv_path_EGREP="$GREP -E"
3845 else
3846 if test -z "$EGREP"; then
3847 ac_path_EGREP_found=false
3848 # Loop through the user's path and test for each of PROGNAME-LIST
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
f35db108 3851do
c915a581
JJ
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 for ac_prog in egrep; do
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3857 as_fn_executable_p "$ac_path_EGREP" || continue
c915a581
JJ
3858# Check for GNU ac_path_EGREP and select it if it is found.
3859 # Check for GNU $ac_path_EGREP
3860case `"$ac_path_EGREP" --version 2>&1` in
3861*GNU*)
3862 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3863*)
3864 ac_count=0
3865 $as_echo_n 0123456789 >"conftest.in"
3866 while :
3867 do
3868 cat "conftest.in" "conftest.in" >"conftest.tmp"
3869 mv "conftest.tmp" "conftest.in"
3870 cp "conftest.in" "conftest.nl"
3871 $as_echo 'EGREP' >> "conftest.nl"
3872 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3873 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3874 as_fn_arith $ac_count + 1 && ac_count=$as_val
3875 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3876 # Best one so far, save it but keep looking for a better one
3877 ac_cv_path_EGREP="$ac_path_EGREP"
3878 ac_path_EGREP_max=$ac_count
3879 fi
3880 # 10*(2^10) chars as input seems more than enough
3881 test $ac_count -gt 10 && break
3882 done
3883 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
f35db108 3884esac
f35db108 3885
c915a581
JJ
3886 $ac_path_EGREP_found && break 3
3887 done
3888 done
3889 done
3890IFS=$as_save_IFS
3891 if test -z "$ac_cv_path_EGREP"; then
22e05272 3892 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
c915a581 3893 fi
f35db108 3894else
c915a581 3895 ac_cv_path_EGREP=$EGREP
f35db108 3896fi
f35db108 3897
c915a581 3898 fi
a2479b3d 3899fi
c915a581
JJ
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3901$as_echo "$ac_cv_path_EGREP" >&6; }
3902 EGREP="$ac_cv_path_EGREP"
a2479b3d 3903
f35db108 3904
c915a581
JJ
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3906$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 3907if ${ac_cv_header_stdc+:} false; then :
f35db108
WM
3908 $as_echo_n "(cached) " >&6
3909else
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911/* end confdefs.h. */
c915a581
JJ
3912#include <stdlib.h>
3913#include <stdarg.h>
3914#include <string.h>
3915#include <float.h>
f35db108
WM
3916
3917int
3918main ()
3919{
3920
3921 ;
3922 return 0;
3923}
3924_ACEOF
c915a581
JJ
3925if ac_fn_c_try_compile "$LINENO"; then :
3926 ac_cv_header_stdc=yes
f35db108 3927else
c915a581 3928 ac_cv_header_stdc=no
f35db108 3929fi
c915a581
JJ
3930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931
3932if test $ac_cv_header_stdc = yes; then
3933 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
f35db108
WM
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935/* end confdefs.h. */
c915a581 3936#include <string.h>
f35db108 3937
f35db108 3938_ACEOF
c915a581
JJ
3939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3940 $EGREP "memchr" >/dev/null 2>&1; then :
3941
f35db108 3942else
c915a581 3943 ac_cv_header_stdc=no
f35db108 3944fi
c915a581 3945rm -f conftest*
f35db108
WM
3946
3947fi
c915a581
JJ
3948
3949if test $ac_cv_header_stdc = yes; then
3950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952/* end confdefs.h. */
3953#include <stdlib.h>
3954
3955_ACEOF
3956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957 $EGREP "free" >/dev/null 2>&1; then :
3958
f35db108 3959else
c915a581 3960 ac_cv_header_stdc=no
f35db108 3961fi
c915a581 3962rm -f conftest*
f35db108 3963
c915a581 3964fi
f35db108 3965
c915a581
JJ
3966if test $ac_cv_header_stdc = yes; then
3967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3968 if test "$cross_compiling" = yes; then :
3969 :
f35db108 3970else
c915a581 3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108 3972/* end confdefs.h. */
c915a581
JJ
3973#include <ctype.h>
3974#include <stdlib.h>
3975#if ((' ' & 0x0FF) == 0x020)
3976# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3977# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3978#else
3979# define ISLOWER(c) \
3980 (('a' <= (c) && (c) <= 'i') \
3981 || ('j' <= (c) && (c) <= 'r') \
3982 || ('s' <= (c) && (c) <= 'z'))
3983# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3984#endif
f35db108 3985
c915a581 3986#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
f35db108
WM
3987int
3988main ()
3989{
c915a581
JJ
3990 int i;
3991 for (i = 0; i < 256; i++)
3992 if (XOR (islower (i), ISLOWER (i))
3993 || toupper (i) != TOUPPER (i))
3994 return 2;
f35db108
WM
3995 return 0;
3996}
3997_ACEOF
c915a581 3998if ac_fn_c_try_run "$LINENO"; then :
f35db108
WM
3999
4000else
c915a581
JJ
4001 ac_cv_header_stdc=no
4002fi
4003rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4004 conftest.$ac_objext conftest.beam conftest.$ac_ext
4005fi
f35db108 4006
f35db108 4007fi
f35db108 4008fi
c915a581
JJ
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4010$as_echo "$ac_cv_header_stdc" >&6; }
4011if test $ac_cv_header_stdc = yes; then
4012
4013$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4014
f35db108 4015fi
c915a581
JJ
4016
4017# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4018for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4019 inttypes.h stdint.h unistd.h
4020do :
4021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4022ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4023"
22e05272 4024if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
c915a581
JJ
4025 cat >>confdefs.h <<_ACEOF
4026#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4027_ACEOF
4028
f35db108 4029fi
c915a581
JJ
4030
4031done
4032
4033
4034
4035 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
22e05272 4036if test "x$ac_cv_header_minix_config_h" = xyes; then :
c915a581 4037 MINIX=yes
f35db108 4038else
c915a581 4039 MINIX=
f35db108 4040fi
c915a581
JJ
4041
4042
4043 if test "$MINIX" = yes; then
4044
4045$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4046
4047
4048$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4049
4050
4051$as_echo "#define _MINIX 1" >>confdefs.h
4052
4053 fi
4054
4055
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4057$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
22e05272 4058if ${ac_cv_safe_to_define___extensions__+:} false; then :
f35db108
WM
4059 $as_echo_n "(cached) " >&6
4060else
c915a581 4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108 4062/* end confdefs.h. */
f35db108 4063
22e05272
JM
4064# define __EXTENSIONS__ 1
4065 $ac_includes_default
f35db108
WM
4066int
4067main ()
4068{
c915a581 4069
f35db108
WM
4070 ;
4071 return 0;
4072}
4073_ACEOF
c915a581
JJ
4074if ac_fn_c_try_compile "$LINENO"; then :
4075 ac_cv_safe_to_define___extensions__=yes
4076else
4077 ac_cv_safe_to_define___extensions__=no
f35db108 4078fi
c915a581 4079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 4080fi
c915a581
JJ
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4082$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4083 test $ac_cv_safe_to_define___extensions__ = yes &&
4084 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
f35db108 4085
c915a581 4086 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
f35db108 4087
c915a581 4088 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
f35db108 4089
c915a581 4090 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
f35db108 4091
c915a581 4092 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
f35db108 4093
f35db108 4094
f35db108 4095
c915a581
JJ
4096# Do not delete or change the following two lines. For why, see
4097# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
c915a581
JJ
4098# Make sure we can run config.sub.
4099$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 4100 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
f35db108 4101
c915a581
JJ
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4103$as_echo_n "checking build system type... " >&6; }
22e05272 4104if ${ac_cv_build+:} false; then :
f35db108
WM
4105 $as_echo_n "(cached) " >&6
4106else
c915a581
JJ
4107 ac_build_alias=$build_alias
4108test "x$ac_build_alias" = x &&
4109 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4110test "x$ac_build_alias" = x &&
22e05272 4111 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
c915a581 4112ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 4113 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
f35db108 4114
c915a581
JJ
4115fi
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4117$as_echo "$ac_cv_build" >&6; }
4118case $ac_cv_build in
4119*-*-*) ;;
22e05272 4120*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
c915a581
JJ
4121esac
4122build=$ac_cv_build
4123ac_save_IFS=$IFS; IFS='-'
4124set x $ac_cv_build
4125shift
4126build_cpu=$1
4127build_vendor=$2
4128shift; shift
4129# Remember, the first character of IFS is used to create $*,
4130# except with old shells:
4131build_os=$*
4132IFS=$ac_save_IFS
4133case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
f35db108 4134
f35db108 4135
c915a581
JJ
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4137$as_echo_n "checking host system type... " >&6; }
22e05272 4138if ${ac_cv_host+:} false; then :
c915a581 4139 $as_echo_n "(cached) " >&6
f35db108 4140else
c915a581
JJ
4141 if test "x$host_alias" = x; then
4142 ac_cv_host=$ac_cv_build
4143else
4144 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 4145 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
f35db108
WM
4146fi
4147
4148fi
c915a581
JJ
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4150$as_echo "$ac_cv_host" >&6; }
4151case $ac_cv_host in
4152*-*-*) ;;
22e05272 4153*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
c915a581
JJ
4154esac
4155host=$ac_cv_host
4156ac_save_IFS=$IFS; IFS='-'
4157set x $ac_cv_host
4158shift
4159host_cpu=$1
4160host_vendor=$2
4161shift; shift
4162# Remember, the first character of IFS is used to create $*,
4163# except with old shells:
4164host_os=$*
4165IFS=$ac_save_IFS
4166case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
f35db108
WM
4167
4168
c915a581
JJ
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4170$as_echo_n "checking target system type... " >&6; }
22e05272 4171if ${ac_cv_target+:} false; then :
f35db108
WM
4172 $as_echo_n "(cached) " >&6
4173else
c915a581
JJ
4174 if test "x$target_alias" = x; then
4175 ac_cv_target=$ac_cv_host
f35db108 4176else
c915a581 4177 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 4178 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
f35db108
WM
4179fi
4180
f35db108 4181fi
c915a581
JJ
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4183$as_echo "$ac_cv_target" >&6; }
4184case $ac_cv_target in
4185*-*-*) ;;
22e05272 4186*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
c915a581
JJ
4187esac
4188target=$ac_cv_target
4189ac_save_IFS=$IFS; IFS='-'
4190set x $ac_cv_target
4191shift
4192target_cpu=$1
4193target_vendor=$2
4194shift; shift
4195# Remember, the first character of IFS is used to create $*,
4196# except with old shells:
4197target_os=$*
4198IFS=$ac_save_IFS
4199case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
f35db108 4200
f35db108 4201
c915a581
JJ
4202# The aliases save the names the user supplied, while $host etc.
4203# will get canonicalized.
4204test -n "$target_alias" &&
4205 test "$program_prefix$program_suffix$program_transform_name" = \
4206 NONENONEs,x,x, &&
4207 program_prefix=${target_alias}-
f35db108 4208
c915a581 4209target_alias=${target_alias-$host_alias}
f35db108 4210
c915a581
JJ
4211 case ${build_alias} in
4212 "") build_noncanonical=${build} ;;
4213 *) build_noncanonical=${build_alias} ;;
f35db108 4214esac
f35db108 4215
c915a581
JJ
4216 case ${host_alias} in
4217 "") host_noncanonical=${build_noncanonical} ;;
4218 *) host_noncanonical=${host_alias} ;;
f35db108 4219esac
f35db108 4220
c915a581
JJ
4221 case ${target_alias} in
4222 "") target_noncanonical=${host_noncanonical} ;;
4223 *) target_noncanonical=${target_alias} ;;
4224esac
f35db108 4225
f35db108 4226
f35db108 4227
f35db108 4228
f35db108 4229
c915a581
JJ
4230 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
4231 -I\$(top_builddir)/../libstdc++-v3/include \
4232 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
4233 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
4234 LIBSTDCXX_RAW_CXX_LDFLAGS="\
4235 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
f35db108 4236
f35db108 4237
f35db108 4238
f35db108 4239
8bc1fac7 4240am__api_version='1.15'
f35db108 4241
c915a581
JJ
4242# Find a good install program. We prefer a C program (faster),
4243# so one script is as good as another. But avoid the broken or
4244# incompatible versions:
4245# SysV /etc/install, /usr/sbin/install
4246# SunOS /usr/etc/install
4247# IRIX /sbin/install
4248# AIX /bin/install
4249# AmigaOS /C/install, which installs bootblocks on floppy discs
4250# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4251# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4252# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4253# OS/2's system install, which has a completely different semantic
4254# ./install, which can be erroneously created by make from ./install.sh.
4255# Reject install programs that cannot install multiple files.
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4257$as_echo_n "checking for a BSD-compatible install... " >&6; }
4258if test -z "$INSTALL"; then
22e05272 4259if ${ac_cv_path_install+:} false; then :
f35db108
WM
4260 $as_echo_n "(cached) " >&6
4261else
c915a581
JJ
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263for as_dir in $PATH
4264do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 # Account for people who put trailing slashes in PATH elements.
4268case $as_dir/ in #((
4269 ./ | .// | /[cC]/* | \
4270 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4271 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4272 /usr/ucb/* ) ;;
4273 *)
4274 # OSF1 and SCO ODT 3.0 have their own names for install.
4275 # Don't use installbsd from OSF since it installs stuff as root
4276 # by default.
4277 for ac_prog in ginstall scoinst install; do
4278 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4279 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
c915a581
JJ
4280 if test $ac_prog = install &&
4281 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4282 # AIX install. It has an incompatible calling convention.
4283 :
4284 elif test $ac_prog = install &&
4285 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4286 # program-specific install script used by HP pwplus--don't use.
4287 :
4288 else
4289 rm -rf conftest.one conftest.two conftest.dir
4290 echo one > conftest.one
4291 echo two > conftest.two
4292 mkdir conftest.dir
4293 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4294 test -s conftest.one && test -s conftest.two &&
4295 test -s conftest.dir/conftest.one &&
4296 test -s conftest.dir/conftest.two
4297 then
4298 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4299 break 3
4300 fi
4301 fi
4302 fi
4303 done
f35db108 4304 done
c915a581
JJ
4305 ;;
4306esac
f35db108 4307
f35db108 4308 done
c915a581 4309IFS=$as_save_IFS
f35db108 4310
c915a581 4311rm -rf conftest.one conftest.two conftest.dir
f35db108
WM
4312
4313fi
c915a581
JJ
4314 if test "${ac_cv_path_install+set}" = set; then
4315 INSTALL=$ac_cv_path_install
4316 else
4317 # As a last resort, use the slow shell script. Don't cache a
4318 # value for INSTALL within a source directory, because that will
4319 # break other packages using the cache if that directory is
4320 # removed, or if the value is a relative name.
4321 INSTALL=$ac_install_sh
4322 fi
f35db108 4323fi
c915a581
JJ
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4325$as_echo "$INSTALL" >&6; }
f35db108 4326
c915a581
JJ
4327# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4328# It thinks the first close brace ends the variable substitution.
4329test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
f35db108 4330
c915a581 4331test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f35db108 4332
c915a581 4333test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
f35db108 4334
c915a581
JJ
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4336$as_echo_n "checking whether build environment is sane... " >&6; }
c915a581
JJ
4337# Reject unsafe characters in $srcdir or the absolute working directory
4338# name. Accept space and tab only in the latter.
4339am_lf='
4340'
4341case `pwd` in
4342 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 4343 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
c915a581
JJ
4344esac
4345case $srcdir in
4346 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 4347 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
c915a581 4348esac
f35db108 4349
22e05272 4350# Do 'set' in a subshell so we don't clobber the current shell's
c915a581
JJ
4351# arguments. Must try -L first in case configure is actually a
4352# symlink; some systems play weird games with the mod time of symlinks
4353# (eg FreeBSD returns the mod time of the symlink's containing
4354# directory).
4355if (
22e05272
JM
4356 am_has_slept=no
4357 for am_try in 1 2; do
4358 echo "timestamp, slept: $am_has_slept" > conftest.file
4359 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4360 if test "$*" = "X"; then
4361 # -L didn't work.
4362 set X `ls -t "$srcdir/configure" conftest.file`
4363 fi
4364 if test "$*" != "X $srcdir/configure conftest.file" \
4365 && test "$*" != "X conftest.file $srcdir/configure"; then
4366
4367 # If neither matched, then we have a broken ls. This can happen
4368 # if, for instance, CONFIG_SHELL is bash and it inherits a
4369 # broken ls alias from the environment. This has actually
4370 # happened. Such a system could not be considered "sane".
4371 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4372 alias in your environment" "$LINENO" 5
4373 fi
4374 if test "$2" = conftest.file || test $am_try -eq 2; then
4375 break
4376 fi
4377 # Just in case.
4378 sleep 1
4379 am_has_slept=yes
4380 done
c915a581
JJ
4381 test "$2" = conftest.file
4382 )
4383then
4384 # Ok.
4385 :
f35db108 4386else
22e05272 4387 as_fn_error $? "newly created file is older than distributed files!
c915a581 4388Check your system clock" "$LINENO" 5
f35db108 4389fi
c915a581
JJ
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4391$as_echo "yes" >&6; }
22e05272
JM
4392# If we didn't sleep, we still need to ensure time stamps of config.status and
4393# generated files are strictly newer.
4394am_sleep_pid=
4395if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4396 ( sleep 1 ) &
4397 am_sleep_pid=$!
4398fi
4399
4400rm -f conftest.file
4401
c915a581
JJ
4402test "$program_prefix" != NONE &&
4403 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4404# Use a double $ so make ignores it.
4405test "$program_suffix" != NONE &&
4406 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4407# Double any \ or $.
4408# By default was `s,x,x', remove it if useless.
4409ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4410program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
f35db108 4411
c915a581
JJ
4412if test x"${MISSING+set}" != xset; then
4413 case $am_aux_dir in
4414 *\ * | *\ *)
4415 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4416 *)
4417 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4418 esac
4419fi
4420# Use eval to expand $SHELL
22e05272
JM
4421if eval "$MISSING --is-lightweight"; then
4422 am_missing_run="$MISSING "
f35db108 4423else
c915a581 4424 am_missing_run=
22e05272
JM
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4426$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
f35db108
WM
4427fi
4428
22e05272 4429if test x"${install_sh+set}" != xset; then
c915a581 4430 case $am_aux_dir in
f35db108 4431 *\ * | *\ *)
c915a581
JJ
4432 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4433 *)
4434 install_sh="\${SHELL} $am_aux_dir/install-sh"
4435 esac
4436fi
f35db108 4437
22e05272
JM
4438# Installed binaries are usually stripped using 'strip' when the user
4439# run "make install-strip". However 'strip' might not be the right
c915a581 4440# tool to use in cross-compilation environments, therefore Automake
22e05272 4441# will honor the 'STRIP' environment variable to overrule this program.
c915a581
JJ
4442if test "$cross_compiling" != no; then
4443 if test -n "$ac_tool_prefix"; then
4444 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4445set dummy ${ac_tool_prefix}strip; ac_word=$2
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4447$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4448if ${ac_cv_prog_STRIP+:} false; then :
c915a581
JJ
4449 $as_echo_n "(cached) " >&6
4450else
4451 if test -n "$STRIP"; then
4452 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4453else
4454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455for as_dir in $PATH
4456do
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
4461 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 break 2
4464 fi
4465done
4466 done
4467IFS=$as_save_IFS
f35db108 4468
c915a581
JJ
4469fi
4470fi
4471STRIP=$ac_cv_prog_STRIP
4472if test -n "$STRIP"; then
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4474$as_echo "$STRIP" >&6; }
4475else
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477$as_echo "no" >&6; }
4478fi
f35db108
WM
4479
4480
c915a581
JJ
4481fi
4482if test -z "$ac_cv_prog_STRIP"; then
4483 ac_ct_STRIP=$STRIP
4484 # Extract the first word of "strip", so it can be a program name with args.
4485set dummy strip; ac_word=$2
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4488if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
c915a581
JJ
4489 $as_echo_n "(cached) " >&6
4490else
4491 if test -n "$ac_ct_STRIP"; then
4492 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4493else
4494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495for as_dir in $PATH
4496do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
4501 ac_cv_prog_ac_ct_STRIP="strip"
4502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4504 fi
4505done
4506 done
4507IFS=$as_save_IFS
f35db108 4508
c915a581
JJ
4509fi
4510fi
4511ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4512if test -n "$ac_ct_STRIP"; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4514$as_echo "$ac_ct_STRIP" >&6; }
f35db108 4515else
c915a581
JJ
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517$as_echo "no" >&6; }
f35db108
WM
4518fi
4519
c915a581
JJ
4520 if test "x$ac_ct_STRIP" = x; then
4521 STRIP=":"
4522 else
4523 case $cross_compiling:$ac_tool_warned in
4524yes:)
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4527ac_tool_warned=yes ;;
f35db108 4528esac
c915a581
JJ
4529 STRIP=$ac_ct_STRIP
4530 fi
4531else
4532 STRIP="$ac_cv_prog_STRIP"
4533fi
f35db108 4534
c915a581
JJ
4535fi
4536INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
f35db108 4537
c915a581
JJ
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4539$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4540if test -z "$MKDIR_P"; then
22e05272 4541 if ${ac_cv_path_mkdir+:} false; then :
f35db108
WM
4542 $as_echo_n "(cached) " >&6
4543else
f35db108 4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
c915a581 4545for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
f35db108
WM
4546do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
c915a581
JJ
4549 for ac_prog in mkdir gmkdir; do
4550 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4551 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
c915a581
JJ
4552 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4553 'mkdir (GNU coreutils) '* | \
4554 'mkdir (coreutils) '* | \
4555 'mkdir (fileutils) '4.1*)
4556 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4557 break 3;;
4558 esac
4559 done
4560 done
f35db108
WM
4561 done
4562IFS=$as_save_IFS
f35db108
WM
4563
4564fi
f35db108 4565
22e05272 4566 test -d ./--version && rmdir ./--version
c915a581
JJ
4567 if test "${ac_cv_path_mkdir+set}" = set; then
4568 MKDIR_P="$ac_cv_path_mkdir -p"
4569 else
4570 # As a last resort, use the slow shell script. Don't cache a
4571 # value for MKDIR_P within a source directory, because that will
4572 # break other packages using the cache if that directory is
4573 # removed, or if the value is a relative name.
c915a581
JJ
4574 MKDIR_P="$ac_install_sh -d"
4575 fi
4576fi
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4578$as_echo "$MKDIR_P" >&6; }
f35db108 4579
c915a581
JJ
4580for ac_prog in gawk mawk nawk awk
4581do
4582 # Extract the first word of "$ac_prog", so it can be a program name with args.
4583set dummy $ac_prog; ac_word=$2
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4585$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4586if ${ac_cv_prog_AWK+:} false; then :
f35db108
WM
4587 $as_echo_n "(cached) " >&6
4588else
c915a581
JJ
4589 if test -n "$AWK"; then
4590 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4591else
4592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593for as_dir in $PATH
f35db108
WM
4594do
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
f35db108 4597 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
4599 ac_cv_prog_AWK="$ac_prog"
4600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4602 fi
4603done
f35db108 4604 done
c915a581 4605IFS=$as_save_IFS
f35db108 4606
c915a581
JJ
4607fi
4608fi
4609AWK=$ac_cv_prog_AWK
4610if test -n "$AWK"; then
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4612$as_echo "$AWK" >&6; }
f35db108 4613else
c915a581
JJ
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615$as_echo "no" >&6; }
f35db108
WM
4616fi
4617
f35db108 4618
c915a581
JJ
4619 test -n "$AWK" && break
4620done
f35db108 4621
c915a581
JJ
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4623$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4624set x ${MAKE-make}
4625ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 4626if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
f35db108
WM
4627 $as_echo_n "(cached) " >&6
4628else
c915a581
JJ
4629 cat >conftest.make <<\_ACEOF
4630SHELL = /bin/sh
4631all:
4632 @echo '@@@%%%=$(MAKE)=@@@%%%'
4633_ACEOF
22e05272 4634# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
c915a581
JJ
4635case `${MAKE-make} -f conftest.make 2>/dev/null` in
4636 *@@@%%%=?*=@@@%%%*)
4637 eval ac_cv_prog_make_${ac_make}_set=yes;;
4638 *)
4639 eval ac_cv_prog_make_${ac_make}_set=no;;
f35db108 4640esac
c915a581
JJ
4641rm -f conftest.make
4642fi
4643if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4645$as_echo "yes" >&6; }
4646 SET_MAKE=
f35db108 4647else
c915a581
JJ
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649$as_echo "no" >&6; }
4650 SET_MAKE="MAKE=${MAKE-make}"
f35db108
WM
4651fi
4652
c915a581
JJ
4653rm -rf .tst 2>/dev/null
4654mkdir .tst 2>/dev/null
4655if test -d .tst; then
4656 am__leading_dot=.
4657else
4658 am__leading_dot=_
f35db108 4659fi
c915a581 4660rmdir .tst 2>/dev/null
f35db108 4661
c915a581 4662DEPDIR="${am__leading_dot}deps"
f35db108 4663
c915a581 4664ac_config_commands="$ac_config_commands depfiles"
f35db108 4665
8bc1fac7
IS
4666
4667am_make=${MAKE-make}
4668cat > confinc << 'END'
c915a581 4669am__doit:
8bc1fac7 4670 @echo this is the am__doit target
c915a581
JJ
4671.PHONY: am__doit
4672END
8bc1fac7
IS
4673# If we don't find an include directive, just comment out the code.
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4675$as_echo_n "checking for style of include used by $am_make... " >&6; }
c915a581
JJ
4676am__include="#"
4677am__quote=
8bc1fac7
IS
4678_am_result=none
4679# First try GNU make style include.
4680echo "include confinc" > confmf
4681# Ignore all kinds of additional output from 'make'.
4682case `$am_make -s -f confmf 2> /dev/null` in #(
4683*the\ am__doit\ target*)
4684 am__include=include
4685 am__quote=
4686 _am_result=GNU
4687 ;;
b667dd70 4688esac
8bc1fac7
IS
4689# Now try BSD make style include.
4690if test "$am__include" = "#"; then
4691 echo '.include "confinc"' > confmf
4692 case `$am_make -s -f confmf 2> /dev/null` in #(
4693 *the\ am__doit\ target*)
4694 am__include=.include
4695 am__quote="\""
4696 _am_result=BSD
4697 ;;
4698 esac
4699fi
4700
4701
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4703$as_echo "$_am_result" >&6; }
4704rm -f confinc confmf
f35db108 4705
c915a581
JJ
4706# Check whether --enable-dependency-tracking was given.
4707if test "${enable_dependency_tracking+set}" = set; then :
4708 enableval=$enable_dependency_tracking;
4709fi
f35db108 4710
c915a581
JJ
4711if test "x$enable_dependency_tracking" != xno; then
4712 am_depcomp="$ac_aux_dir/depcomp"
4713 AMDEPBACKSLASH='\'
f3915b42 4714 am__nodep='_no'
c915a581
JJ
4715fi
4716 if test "x$enable_dependency_tracking" != xno; then
4717 AMDEP_TRUE=
4718 AMDEP_FALSE='#'
4719else
4720 AMDEP_TRUE='#'
4721 AMDEP_FALSE=
4722fi
f35db108
WM
4723
4724
22e05272
JM
4725# Check whether --enable-silent-rules was given.
4726if test "${enable_silent_rules+set}" = set; then :
4727 enableval=$enable_silent_rules;
4728fi
4729
4730case $enable_silent_rules in # (((
4731 yes) AM_DEFAULT_VERBOSITY=0;;
4732 no) AM_DEFAULT_VERBOSITY=1;;
4733 *) AM_DEFAULT_VERBOSITY=1;;
4734esac
4735am_make=${MAKE-make}
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4737$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4738if ${am_cv_make_support_nested_variables+:} false; then :
4739 $as_echo_n "(cached) " >&6
4740else
4741 if $as_echo 'TRUE=$(BAR$(V))
4742BAR0=false
4743BAR1=true
4744V=1
4745am__doit:
4746 @$(TRUE)
4747.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4748 am_cv_make_support_nested_variables=yes
4749else
4750 am_cv_make_support_nested_variables=no
4751fi
4752fi
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4754$as_echo "$am_cv_make_support_nested_variables" >&6; }
4755if test $am_cv_make_support_nested_variables = yes; then
4756 AM_V='$(V)'
4757 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4758else
4759 AM_V=$AM_DEFAULT_VERBOSITY
4760 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4761fi
4762AM_BACKSLASH='\'
4763
c915a581
JJ
4764if test "`cd $srcdir && pwd`" != "`pwd`"; then
4765 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4766 # is not polluted with repeated "-I."
4767 am__isrc=' -I$(srcdir)'
4768 # test to see if srcdir already configured
4769 if test -f $srcdir/config.status; then
22e05272 4770 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
c915a581
JJ
4771 fi
4772fi
f35db108 4773
c915a581
JJ
4774# test whether we have cygpath
4775if test -z "$CYGPATH_W"; then
4776 if (cygpath --version) >/dev/null 2>/dev/null; then
4777 CYGPATH_W='cygpath -w'
4778 else
4779 CYGPATH_W=echo
4780 fi
4781fi
f35db108
WM
4782
4783
c915a581
JJ
4784# Define the identity of the package.
4785 PACKAGE='package-unused'
4786 VERSION='version-unused'
f35db108
WM
4787
4788
c915a581
JJ
4789cat >>confdefs.h <<_ACEOF
4790#define PACKAGE "$PACKAGE"
4791_ACEOF
f35db108
WM
4792
4793
c915a581
JJ
4794cat >>confdefs.h <<_ACEOF
4795#define VERSION "$VERSION"
4796_ACEOF
f35db108 4797
c915a581 4798# Some tools Automake needs.
f35db108 4799
c915a581 4800ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
f35db108
WM
4801
4802
c915a581 4803AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
f35db108
WM
4804
4805
c915a581 4806AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
f35db108
WM
4807
4808
c915a581 4809AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
f35db108 4810
c915a581
JJ
4811
4812MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4813
22e05272
JM
4814# For better backward compatibility. To be removed once Automake 1.9.x
4815# dies out for good. For more background, see:
8bc1fac7
IS
4816# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4817# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
22e05272
JM
4818mkdir_p='$(MKDIR_P)'
4819
4820# We need awk for the "check" target (and possibly the TAP driver). The
4821# system "awk" is bad on some platforms.
f3915b42
MH
4822# Always define AMTAR for backward compatibility. Yes, it's still used
4823# in the wild :-( We should find a proper way to deprecate it ...
4824AMTAR='$${TAR-tar}'
c915a581 4825
22e05272
JM
4826
4827# We'll loop over all known methods to create a tar archive until one works.
4828_am_tools='gnutar pax cpio none'
4829
f3915b42 4830am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
c915a581
JJ
4831
4832
4833
4834
22e05272 4835
c915a581
JJ
4836depcc="$CC" am_compiler_list=
4837
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4839$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4840if ${am_cv_CC_dependencies_compiler_type+:} false; then :
f35db108
WM
4841 $as_echo_n "(cached) " >&6
4842else
c915a581
JJ
4843 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4844 # We make a subdir and do the tests there. Otherwise we can end up
4845 # making bogus files that we don't know about and never remove. For
4846 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4847 # making a dummy file named 'D' -- because '-MD' means "put the output
4848 # in D".
f3915b42 4849 rm -rf conftest.dir
c915a581
JJ
4850 mkdir conftest.dir
4851 # Copy depcomp to subdir because otherwise we won't find it if we're
4852 # using a relative directory.
4853 cp "$am_depcomp" conftest.dir
4854 cd conftest.dir
4855 # We will build objects and dependencies in a subdirectory because
4856 # it helps to detect inapplicable dependency modes. For instance
4857 # both Tru64's cc and ICC support -MD to output dependencies as a
4858 # side effect of compilation, but ICC will put the dependencies in
4859 # the current directory while Tru64 will put them in the object
4860 # directory.
4861 mkdir sub
4862
4863 am_cv_CC_dependencies_compiler_type=none
4864 if test "$am_compiler_list" = ""; then
4865 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4866 fi
4867 am__universal=false
4868 case " $depcc " in #(
4869 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4870 esac
4871
4872 for depmode in $am_compiler_list; do
4873 # Setup a source with many dependencies, because some compilers
4874 # like to wrap large dependency lists on column 80 (with \), and
4875 # we should not choose a depcomp mode which is confused by this.
4876 #
4877 # We need to recreate these files for each test, as the compiler may
4878 # overwrite some of them when testing with obscure command lines.
4879 # This happens at least with the AIX C compiler.
4880 : > sub/conftest.c
4881 for i in 1 2 3 4 5 6; do
4882 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4883 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4884 # Solaris 10 /bin/sh.
4885 echo '/* dummy */' > sub/conftst$i.h
c915a581
JJ
4886 done
4887 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4888
22e05272 4889 # We check with '-c' and '-o' for the sake of the "dashmstdout"
c915a581 4890 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4891 # handle '-M -o', and we need to detect this. Also, some Intel
4892 # versions had trouble with output in subdirs.
c915a581
JJ
4893 am__obj=sub/conftest.${OBJEXT-o}
4894 am__minus_obj="-o $am__obj"
4895 case $depmode in
4896 gcc)
4897 # This depmode causes a compiler race in universal mode.
4898 test "$am__universal" = false || continue
4899 ;;
4900 nosideeffect)
22e05272
JM
4901 # After this tag, mechanisms are not by side-effect, so they'll
4902 # only be used when explicitly requested.
c915a581
JJ
4903 if test "x$enable_dependency_tracking" = xyes; then
4904 continue
4905 else
4906 break
4907 fi
4908 ;;
f3915b42 4909 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4910 # This compiler won't grok '-c -o', but also, the minuso test has
c915a581
JJ
4911 # not run yet. These depmodes are late enough in the game, and
4912 # so weak that their functioning should not be impacted.
4913 am__obj=conftest.${OBJEXT-o}
4914 am__minus_obj=
4915 ;;
4916 none) break ;;
4917 esac
4918 if depmode=$depmode \
4919 source=sub/conftest.c object=$am__obj \
4920 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4921 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4922 >/dev/null 2>conftest.err &&
4923 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4924 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4925 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4926 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4927 # icc doesn't choke on unknown options, it will just issue warnings
4928 # or remarks (even with -Werror). So we grep stderr for any message
4929 # that says an option was ignored or not supported.
4930 # When given -MP, icc 7.0 and 7.1 complain thusly:
4931 # icc: Command line warning: ignoring option '-M'; no argument required
4932 # The diagnosis changed in icc 8.0:
4933 # icc: Command line remark: option '-MP' not supported
4934 if (grep 'ignoring option' conftest.err ||
4935 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4936 am_cv_CC_dependencies_compiler_type=$depmode
4937 break
4938 fi
f35db108
WM
4939 fi
4940 done
c915a581
JJ
4941
4942 cd ..
4943 rm -rf conftest.dir
f35db108 4944else
c915a581 4945 am_cv_CC_dependencies_compiler_type=none
f35db108 4946fi
c915a581 4947
f35db108 4948fi
c915a581
JJ
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4950$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4951CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
f35db108 4952
c915a581
JJ
4953 if
4954 test "x$enable_dependency_tracking" != xno \
4955 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4956 am__fastdepCC_TRUE=
4957 am__fastdepCC_FALSE='#'
f35db108 4958else
c915a581
JJ
4959 am__fastdepCC_TRUE='#'
4960 am__fastdepCC_FALSE=
f35db108 4961fi
c915a581
JJ
4962
4963
4964
22e05272
JM
4965# POSIX will say in a future version that running "rm -f" with no argument
4966# is OK; and we want to be able to make that assumption in our Makefile
4967# recipes. So use an aggressive probe to check that the usage we want is
4968# actually supported "in the wild" to an acceptable degree.
4969# See automake bug#10828.
4970# To make any issue more visible, cause the running configure to be aborted
4971# by default if the 'rm' program in use doesn't match our expectations; the
4972# user can still override this though.
4973if rm -f && rm -fr && rm -rf; then : OK; else
4974 cat >&2 <<'END'
4975Oops!
4976
4977Your 'rm' program seems unable to run without file operands specified
4978on the command line, even when the '-f' option is present. This is contrary
4979to the behaviour of most rm programs out there, and not conforming with
4980the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4981
4982Please tell bug-automake@gnu.org about your system, including the value
4983of your $PATH and any error possibly output before this message. This
4984can help us improve future automake versions.
4985
4986END
4987 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4988 echo 'Configuration will proceed anyway, since you have set the' >&2
4989 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4990 echo >&2
4991 else
4992 cat >&2 <<'END'
4993Aborting the configuration process, to ensure you take notice of the issue.
4994
4995You can download and install GNU coreutils to get an 'rm' implementation
8bc1fac7 4996that behaves properly: <http://www.gnu.org/software/coreutils/>.
22e05272
JM
4997
4998If you want to complete the configuration process using your problematic
4999'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5000to "yes", and re-run configure.
5001
5002END
5003 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5004 fi
5005fi
5006
f35db108 5007
c915a581
JJ
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5009$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5010 # Check whether --enable-maintainer-mode was given.
5011if test "${enable_maintainer_mode+set}" = set; then :
5012 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
f35db108 5013else
c915a581 5014 USE_MAINTAINER_MODE=no
f35db108 5015fi
c915a581
JJ
5016
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5018$as_echo "$USE_MAINTAINER_MODE" >&6; }
5019 if test $USE_MAINTAINER_MODE = yes; then
5020 MAINTAINER_MODE_TRUE=
5021 MAINTAINER_MODE_FALSE='#'
f35db108 5022else
c915a581
JJ
5023 MAINTAINER_MODE_TRUE='#'
5024 MAINTAINER_MODE_FALSE=
5025fi
5026
5027 MAINT=$MAINTAINER_MODE_TRUE
5028
5029
5030
e8e66971
MR
5031
5032# Check whether --with-toolexeclibdir was given.
5033if test "${with_toolexeclibdir+set}" = set; then :
5034 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
5035 /)
5036 ;;
5037 */)
5038 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
5039 ;;
5040esac
5041else
5042 with_toolexeclibdir=no
5043fi
5044
5045
5046
c915a581
JJ
5047# Calculate toolexeclibdir
5048# Also toolexecdir, though it's only used in toolexeclibdir
5049case ${version_specific_libs} in
5050 yes)
5051 # Need the gcc compiler version to know where to install libraries
5052 # and header files if --enable-version-specific-runtime-libs option
5053 # is selected.
5054 toolexecdir='$(libdir)/gcc/$(target_alias)'
5055 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5056 ;;
5057 no)
5058 if test -n "$with_cross_host" &&
5059 test x"$with_cross_host" != x"no"; then
5060 # Install a library built with a cross compiler in tooldir, not libdir.
5061 toolexecdir='$(exec_prefix)/$(target_alias)'
e8e66971
MR
5062 case ${with_toolexeclibdir} in
5063 no)
5064 toolexeclibdir='$(toolexecdir)/lib'
5065 ;;
5066 *)
5067 toolexeclibdir=${with_toolexeclibdir}
5068 ;;
5069 esac
c915a581
JJ
5070 else
5071 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5072 toolexeclibdir='$(libdir)'
5073 fi
5074 multi_os_directory=`$CC -print-multi-os-directory`
5075 case $multi_os_directory in
5076 .) ;; # Avoid trailing /.
5077 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5078 esac
5079 ;;
5080esac
5081
5082
5083
5084# Checks for programs.
5085ac_ext=c
5086ac_cpp='$CPP $CPPFLAGS'
5087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090if test -n "$ac_tool_prefix"; then
5091 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5092set dummy ${ac_tool_prefix}gcc; ac_word=$2
f35db108
WM
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5095if ${ac_cv_prog_CC+:} false; then :
f35db108
WM
5096 $as_echo_n "(cached) " >&6
5097else
c915a581
JJ
5098 if test -n "$CC"; then
5099 ac_cv_prog_CC="$CC" # Let the user override the test.
f35db108
WM
5100else
5101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102for as_dir in $PATH
5103do
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 5108 ac_cv_prog_CC="${ac_tool_prefix}gcc"
f35db108
WM
5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5111 fi
5112done
5113 done
5114IFS=$as_save_IFS
5115
5116fi
5117fi
c915a581
JJ
5118CC=$ac_cv_prog_CC
5119if test -n "$CC"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5121$as_echo "$CC" >&6; }
f35db108
WM
5122else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124$as_echo "no" >&6; }
5125fi
5126
5127
f35db108 5128fi
c915a581
JJ
5129if test -z "$ac_cv_prog_CC"; then
5130 ac_ct_CC=$CC
5131 # Extract the first word of "gcc", so it can be a program name with args.
5132set dummy gcc; ac_word=$2
f35db108
WM
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5135if ${ac_cv_prog_ac_ct_CC+:} false; then :
f35db108
WM
5136 $as_echo_n "(cached) " >&6
5137else
c915a581
JJ
5138 if test -n "$ac_ct_CC"; then
5139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
f35db108
WM
5140else
5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH
5143do
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 5148 ac_cv_prog_ac_ct_CC="gcc"
f35db108
WM
5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5151 fi
5152done
5153 done
5154IFS=$as_save_IFS
5155
5156fi
5157fi
c915a581
JJ
5158ac_ct_CC=$ac_cv_prog_ac_ct_CC
5159if test -n "$ac_ct_CC"; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5161$as_echo "$ac_ct_CC" >&6; }
f35db108
WM
5162else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164$as_echo "no" >&6; }
5165fi
5166
c915a581
JJ
5167 if test "x$ac_ct_CC" = x; then
5168 CC=""
f35db108
WM
5169 else
5170 case $cross_compiling:$ac_tool_warned in
5171yes:)
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5174ac_tool_warned=yes ;;
5175esac
c915a581 5176 CC=$ac_ct_CC
f35db108 5177 fi
c915a581
JJ
5178else
5179 CC="$ac_cv_prog_CC"
f35db108
WM
5180fi
5181
c915a581
JJ
5182if test -z "$CC"; then
5183 if test -n "$ac_tool_prefix"; then
5184 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5185set dummy ${ac_tool_prefix}cc; ac_word=$2
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5188if ${ac_cv_prog_CC+:} false; then :
c915a581
JJ
5189 $as_echo_n "(cached) " >&6
5190else
5191 if test -n "$CC"; then
5192 ac_cv_prog_CC="$CC" # Let the user override the test.
5193else
5194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195for as_dir in $PATH
5196do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
5201 ac_cv_prog_CC="${ac_tool_prefix}cc"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
f35db108 5204 fi
c915a581
JJ
5205done
5206 done
5207IFS=$as_save_IFS
f35db108 5208
f35db108 5209fi
c915a581
JJ
5210fi
5211CC=$ac_cv_prog_CC
5212if test -n "$CC"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5214$as_echo "$CC" >&6; }
5215else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217$as_echo "no" >&6; }
5218fi
f35db108
WM
5219
5220
f35db108 5221 fi
f35db108 5222fi
c915a581
JJ
5223if test -z "$CC"; then
5224 # Extract the first word of "cc", so it can be a program name with args.
5225set dummy cc; ac_word=$2
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5228if ${ac_cv_prog_CC+:} false; then :
c915a581 5229 $as_echo_n "(cached) " >&6
f35db108 5230else
c915a581
JJ
5231 if test -n "$CC"; then
5232 ac_cv_prog_CC="$CC" # Let the user override the test.
f35db108 5233else
c915a581 5234 ac_prog_rejected=no
f35db108
WM
5235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236for as_dir in $PATH
5237do
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
5242 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5243 ac_prog_rejected=yes
5244 continue
5245 fi
5246 ac_cv_prog_CC="cc"
f35db108
WM
5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5249 fi
5250done
5251 done
5252IFS=$as_save_IFS
5253
c915a581
JJ
5254if test $ac_prog_rejected = yes; then
5255 # We found a bogon in the path, so make sure we never use it.
5256 set dummy $ac_cv_prog_CC
5257 shift
5258 if test $# != 0; then
5259 # We chose a different compiler from the bogus one.
5260 # However, it has the same basename, so the bogon will be chosen
5261 # first if we set CC to just the basename; use the full file name.
5262 shift
5263 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5264 fi
5265fi
5266fi
5267fi
5268CC=$ac_cv_prog_CC
5269if test -n "$CC"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5271$as_echo "$CC" >&6; }
f35db108
WM
5272else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274$as_echo "no" >&6; }
5275fi
5276
5277
5278fi
c915a581
JJ
5279if test -z "$CC"; then
5280 if test -n "$ac_tool_prefix"; then
5281 for ac_prog in cl.exe
5282 do
5283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5284set dummy $ac_tool_prefix$ac_prog; ac_word=$2
f35db108
WM
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5287if ${ac_cv_prog_CC+:} false; then :
f35db108
WM
5288 $as_echo_n "(cached) " >&6
5289else
c915a581
JJ
5290 if test -n "$CC"; then
5291 ac_cv_prog_CC="$CC" # Let the user override the test.
f35db108
WM
5292else
5293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294for as_dir in $PATH
5295do
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 5300 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
f35db108
WM
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5303 fi
5304done
5305 done
5306IFS=$as_save_IFS
5307
5308fi
5309fi
c915a581
JJ
5310CC=$ac_cv_prog_CC
5311if test -n "$CC"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5313$as_echo "$CC" >&6; }
f35db108
WM
5314else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316$as_echo "no" >&6; }
5317fi
5318
c915a581
JJ
5319
5320 test -n "$CC" && break
5321 done
5322fi
5323if test -z "$CC"; then
5324 ac_ct_CC=$CC
5325 for ac_prog in cl.exe
5326do
5327 # Extract the first word of "$ac_prog", so it can be a program name with args.
5328set dummy $ac_prog; ac_word=$2
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5331if ${ac_cv_prog_ac_ct_CC+:} false; then :
c915a581
JJ
5332 $as_echo_n "(cached) " >&6
5333else
5334 if test -n "$ac_ct_CC"; then
5335 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5336else
5337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338for as_dir in $PATH
5339do
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
5344 ac_cv_prog_ac_ct_CC="$ac_prog"
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5347 fi
5348done
5349 done
5350IFS=$as_save_IFS
5351
5352fi
5353fi
5354ac_ct_CC=$ac_cv_prog_ac_ct_CC
5355if test -n "$ac_ct_CC"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5357$as_echo "$ac_ct_CC" >&6; }
5358else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360$as_echo "no" >&6; }
5361fi
5362
5363
5364 test -n "$ac_ct_CC" && break
5365done
5366
5367 if test "x$ac_ct_CC" = x; then
5368 CC=""
f35db108
WM
5369 else
5370 case $cross_compiling:$ac_tool_warned in
5371yes:)
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5374ac_tool_warned=yes ;;
5375esac
c915a581 5376 CC=$ac_ct_CC
f35db108 5377 fi
f35db108
WM
5378fi
5379
c915a581 5380fi
f35db108
WM
5381
5382
c915a581
JJ
5383test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
5385as_fn_error $? "no acceptable C compiler found in \$PATH
5386See \`config.log' for more details" "$LINENO" 5; }
f35db108 5387
c915a581
JJ
5388# Provide some information about the compiler.
5389$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5390set X $ac_compile
5391ac_compiler=$2
5392for ac_option in --version -v -V -qversion; do
5393 { { ac_try="$ac_compiler $ac_option >&5"
5394case "(($ac_try" in
5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5397esac
5398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5399$as_echo "$ac_try_echo"; } >&5
5400 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5401 ac_status=$?
5402 if test -s conftest.err; then
5403 sed '10a\
5404... rest of stderr output deleted ...
5405 10q' conftest.err >conftest.er1
5406 cat conftest.er1 >&5
c915a581 5407 fi
22e05272 5408 rm -f conftest.er1 conftest.err
c915a581
JJ
5409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5410 test $ac_status = 0; }
5411done
f35db108 5412
c915a581
JJ
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5414$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 5415if ${ac_cv_c_compiler_gnu+:} false; then :
c915a581
JJ
5416 $as_echo_n "(cached) " >&6
5417else
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419/* end confdefs.h. */
f35db108 5420
c915a581
JJ
5421int
5422main ()
5423{
5424#ifndef __GNUC__
5425 choke me
5426#endif
f35db108 5427
c915a581
JJ
5428 ;
5429 return 0;
5430}
5431_ACEOF
5432if ac_fn_c_try_compile "$LINENO"; then :
5433 ac_compiler_gnu=yes
5434else
5435 ac_compiler_gnu=no
5436fi
5437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438ac_cv_c_compiler_gnu=$ac_compiler_gnu
f35db108 5439
c915a581
JJ
5440fi
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5442$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5443if test $ac_compiler_gnu = yes; then
5444 GCC=yes
5445else
5446 GCC=
5447fi
5448ac_test_CFLAGS=${CFLAGS+set}
5449ac_save_CFLAGS=$CFLAGS
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5451$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 5452if ${ac_cv_prog_cc_g+:} false; then :
f35db108
WM
5453 $as_echo_n "(cached) " >&6
5454else
c915a581
JJ
5455 ac_save_c_werror_flag=$ac_c_werror_flag
5456 ac_c_werror_flag=yes
5457 ac_cv_prog_cc_g=no
5458 CFLAGS="-g"
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460/* end confdefs.h. */
f35db108 5461
c915a581
JJ
5462int
5463main ()
5464{
f35db108 5465
c915a581
JJ
5466 ;
5467 return 0;
5468}
5469_ACEOF
5470if ac_fn_c_try_compile "$LINENO"; then :
5471 ac_cv_prog_cc_g=yes
5472else
5473 CFLAGS=""
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475/* end confdefs.h. */
f35db108 5476
c915a581
JJ
5477int
5478main ()
5479{
f35db108 5480
c915a581
JJ
5481 ;
5482 return 0;
5483}
5484_ACEOF
5485if ac_fn_c_try_compile "$LINENO"; then :
f35db108 5486
c915a581
JJ
5487else
5488 ac_c_werror_flag=$ac_save_c_werror_flag
5489 CFLAGS="-g"
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491/* end confdefs.h. */
f35db108 5492
c915a581
JJ
5493int
5494main ()
5495{
f35db108 5496
c915a581
JJ
5497 ;
5498 return 0;
5499}
5500_ACEOF
5501if ac_fn_c_try_compile "$LINENO"; then :
5502 ac_cv_prog_cc_g=yes
5503fi
5504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505fi
5506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507fi
5508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509 ac_c_werror_flag=$ac_save_c_werror_flag
5510fi
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5512$as_echo "$ac_cv_prog_cc_g" >&6; }
5513if test "$ac_test_CFLAGS" = set; then
5514 CFLAGS=$ac_save_CFLAGS
5515elif test $ac_cv_prog_cc_g = yes; then
5516 if test "$GCC" = yes; then
5517 CFLAGS="-g -O2"
f35db108 5518 else
c915a581 5519 CFLAGS="-g"
f35db108 5520 fi
c915a581
JJ
5521else
5522 if test "$GCC" = yes; then
5523 CFLAGS="-O2"
5524 else
5525 CFLAGS=
5526 fi
5527fi
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5529$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 5530if ${ac_cv_prog_cc_c89+:} false; then :
c915a581
JJ
5531 $as_echo_n "(cached) " >&6
5532else
5533 ac_cv_prog_cc_c89=no
5534ac_save_CC=$CC
5535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536/* end confdefs.h. */
5537#include <stdarg.h>
5538#include <stdio.h>
22e05272 5539struct stat;
c915a581
JJ
5540/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5541struct buf { int x; };
5542FILE * (*rcsopen) (struct buf *, struct stat *, int);
5543static char *e (p, i)
5544 char **p;
5545 int i;
5546{
5547 return p[i];
5548}
5549static char *f (char * (*g) (char **, int), char **p, ...)
5550{
5551 char *s;
5552 va_list v;
5553 va_start (v,p);
5554 s = g (p, va_arg (v,int));
5555 va_end (v);
5556 return s;
5557}
f35db108 5558
c915a581
JJ
5559/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5560 function prototypes and stuff, but not '\xHH' hex character constants.
5561 These don't provoke an error unfortunately, instead are silently treated
5562 as 'x'. The following induces an error, until -std is added to get
5563 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5564 array size at least. It's necessary to write '\x00'==0 to get something
5565 that's true only with -std. */
5566int osf4_cc_array ['\x00' == 0 ? 1 : -1];
f35db108 5567
c915a581
JJ
5568/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5569 inside strings and character constants. */
5570#define FOO(x) 'x'
5571int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
f35db108 5572
c915a581
JJ
5573int test (int i, double x);
5574struct s1 {int (*f) (int a);};
5575struct s2 {int (*f) (double a);};
5576int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5577int argc;
5578char **argv;
5579int
5580main ()
5581{
5582return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5583 ;
5584 return 0;
5585}
5586_ACEOF
5587for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5588 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5589do
5590 CC="$ac_save_CC $ac_arg"
5591 if ac_fn_c_try_compile "$LINENO"; then :
5592 ac_cv_prog_cc_c89=$ac_arg
5593fi
5594rm -f core conftest.err conftest.$ac_objext
5595 test "x$ac_cv_prog_cc_c89" != "xno" && break
5596done
5597rm -f conftest.$ac_ext
5598CC=$ac_save_CC
f35db108 5599
c915a581
JJ
5600fi
5601# AC_CACHE_VAL
5602case "x$ac_cv_prog_cc_c89" in
5603 x)
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5605$as_echo "none needed" >&6; } ;;
5606 xno)
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5608$as_echo "unsupported" >&6; } ;;
5609 *)
5610 CC="$CC $ac_cv_prog_cc_c89"
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5612$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5613esac
5614if test "x$ac_cv_prog_cc_c89" != xno; then :
f35db108 5615
c915a581 5616fi
f35db108 5617
c915a581
JJ
5618ac_ext=c
5619ac_cpp='$CPP $CPPFLAGS'
5620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5622ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 5623
22e05272
JM
5624ac_ext=c
5625ac_cpp='$CPP $CPPFLAGS'
5626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5628ac_compiler_gnu=$ac_cv_c_compiler_gnu
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5630$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5631if ${am_cv_prog_cc_c_o+:} false; then :
5632 $as_echo_n "(cached) " >&6
5633else
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h. */
5636
5637int
5638main ()
5639{
5640
5641 ;
5642 return 0;
5643}
5644_ACEOF
5645 # Make sure it works both with $CC and with simple cc.
5646 # Following AC_PROG_CC_C_O, we do the test twice because some
5647 # compilers refuse to overwrite an existing .o file with -o,
5648 # though they will create one.
5649 am_cv_prog_cc_c_o=yes
5650 for am_i in 1 2; do
5651 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5652 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } \
5656 && test -f conftest2.$ac_objext; then
5657 : OK
5658 else
5659 am_cv_prog_cc_c_o=no
5660 break
5661 fi
5662 done
5663 rm -f core conftest*
5664 unset am_i
5665fi
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5667$as_echo "$am_cv_prog_cc_c_o" >&6; }
5668if test "$am_cv_prog_cc_c_o" != yes; then
5669 # Losing compiler, so override with the script.
5670 # FIXME: It is wrong to rewrite CC.
5671 # But if we don't then we get into trouble of one sort or another.
5672 # A longer-term fix would be to have automake use am__CC in this case,
5673 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5674 CC="$am_aux_dir/compile $CC"
5675fi
5676ac_ext=c
5677ac_cpp='$CPP $CPPFLAGS'
5678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680ac_compiler_gnu=$ac_cv_c_compiler_gnu
5681
5682
c915a581
JJ
5683ac_ext=cpp
5684ac_cpp='$CXXCPP $CPPFLAGS'
5685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5688if test -z "$CXX"; then
5689 if test -n "$CCC"; then
5690 CXX=$CCC
f35db108 5691 else
c915a581
JJ
5692 if test -n "$ac_tool_prefix"; then
5693 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5694 do
5695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5696set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5699if ${ac_cv_prog_CXX+:} false; then :
c915a581
JJ
5700 $as_echo_n "(cached) " >&6
5701else
5702 if test -n "$CXX"; then
5703 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5704else
5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706for as_dir in $PATH
5707do
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
5712 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
f35db108 5715 fi
c915a581
JJ
5716done
5717 done
5718IFS=$as_save_IFS
f35db108 5719
c915a581
JJ
5720fi
5721fi
5722CXX=$ac_cv_prog_CXX
5723if test -n "$CXX"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5725$as_echo "$CXX" >&6; }
5726else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728$as_echo "no" >&6; }
5729fi
f35db108 5730
f35db108 5731
c915a581
JJ
5732 test -n "$CXX" && break
5733 done
f35db108 5734fi
c915a581
JJ
5735if test -z "$CXX"; then
5736 ac_ct_CXX=$CXX
5737 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5738do
5739 # Extract the first word of "$ac_prog", so it can be a program name with args.
5740set dummy $ac_prog; ac_word=$2
f35db108
WM
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5743if ${ac_cv_prog_ac_ct_CXX+:} false; then :
f35db108
WM
5744 $as_echo_n "(cached) " >&6
5745else
c915a581
JJ
5746 if test -n "$ac_ct_CXX"; then
5747 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
f35db108
WM
5748else
5749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750for as_dir in $PATH
5751do
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 5756 ac_cv_prog_ac_ct_CXX="$ac_prog"
f35db108
WM
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5759 fi
5760done
5761 done
5762IFS=$as_save_IFS
5763
5764fi
5765fi
c915a581
JJ
5766ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5767if test -n "$ac_ct_CXX"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5769$as_echo "$ac_ct_CXX" >&6; }
f35db108
WM
5770else
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772$as_echo "no" >&6; }
5773fi
5774
5775
c915a581 5776 test -n "$ac_ct_CXX" && break
f35db108 5777done
f35db108 5778
c915a581
JJ
5779 if test "x$ac_ct_CXX" = x; then
5780 CXX="g++"
f35db108
WM
5781 else
5782 case $cross_compiling:$ac_tool_warned in
5783yes:)
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5786ac_tool_warned=yes ;;
5787esac
c915a581 5788 CXX=$ac_ct_CXX
f35db108 5789 fi
f35db108
WM
5790fi
5791
f35db108 5792 fi
c915a581
JJ
5793fi
5794# Provide some information about the compiler.
5795$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5796set X $ac_compile
5797ac_compiler=$2
5798for ac_option in --version -v -V -qversion; do
5799 { { ac_try="$ac_compiler $ac_option >&5"
5800case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803esac
5804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5805$as_echo "$ac_try_echo"; } >&5
5806 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5807 ac_status=$?
5808 if test -s conftest.err; then
5809 sed '10a\
5810... rest of stderr output deleted ...
5811 10q' conftest.err >conftest.er1
5812 cat conftest.er1 >&5
c915a581 5813 fi
22e05272 5814 rm -f conftest.er1 conftest.err
c915a581
JJ
5815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5816 test $ac_status = 0; }
f35db108 5817done
f35db108 5818
c915a581
JJ
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5820$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5821if ${ac_cv_cxx_compiler_gnu+:} false; then :
c915a581 5822 $as_echo_n "(cached) " >&6
f35db108 5823else
c915a581
JJ
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825/* end confdefs.h. */
f35db108 5826
c915a581
JJ
5827int
5828main ()
5829{
5830#ifndef __GNUC__
5831 choke me
5832#endif
f35db108 5833
c915a581
JJ
5834 ;
5835 return 0;
5836}
5837_ACEOF
5838if ac_fn_cxx_try_compile "$LINENO"; then :
5839 ac_compiler_gnu=yes
f35db108 5840else
c915a581 5841 ac_compiler_gnu=no
f35db108 5842fi
c915a581
JJ
5843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5845
f35db108 5846fi
c915a581
JJ
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5848$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5849if test $ac_compiler_gnu = yes; then
5850 GXX=yes
f35db108 5851else
c915a581 5852 GXX=
f35db108 5853fi
c915a581
JJ
5854ac_test_CXXFLAGS=${CXXFLAGS+set}
5855ac_save_CXXFLAGS=$CXXFLAGS
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5857$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5858if ${ac_cv_prog_cxx_g+:} false; then :
c915a581 5859 $as_echo_n "(cached) " >&6
f35db108 5860else
c915a581
JJ
5861 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5862 ac_cxx_werror_flag=yes
5863 ac_cv_prog_cxx_g=no
5864 CXXFLAGS="-g"
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866/* end confdefs.h. */
f35db108 5867
c915a581
JJ
5868int
5869main ()
5870{
f35db108 5871
c915a581
JJ
5872 ;
5873 return 0;
5874}
5875_ACEOF
5876if ac_fn_cxx_try_compile "$LINENO"; then :
5877 ac_cv_prog_cxx_g=yes
5878else
5879 CXXFLAGS=""
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881/* end confdefs.h. */
f35db108 5882
c915a581
JJ
5883int
5884main ()
5885{
f35db108 5886
c915a581
JJ
5887 ;
5888 return 0;
5889}
5890_ACEOF
5891if ac_fn_cxx_try_compile "$LINENO"; then :
f35db108 5892
f35db108 5893else
c915a581
JJ
5894 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5895 CXXFLAGS="-g"
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897/* end confdefs.h. */
f35db108 5898
c915a581
JJ
5899int
5900main ()
5901{
f35db108 5902
c915a581
JJ
5903 ;
5904 return 0;
5905}
5906_ACEOF
5907if ac_fn_cxx_try_compile "$LINENO"; then :
5908 ac_cv_prog_cxx_g=yes
f35db108 5909fi
c915a581 5910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 5911fi
c915a581 5912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 5913fi
c915a581
JJ
5914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
f35db108 5916fi
c915a581
JJ
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5918$as_echo "$ac_cv_prog_cxx_g" >&6; }
5919if test "$ac_test_CXXFLAGS" = set; then
5920 CXXFLAGS=$ac_save_CXXFLAGS
5921elif test $ac_cv_prog_cxx_g = yes; then
5922 if test "$GXX" = yes; then
5923 CXXFLAGS="-g -O2"
f35db108 5924 else
c915a581 5925 CXXFLAGS="-g"
f35db108
WM
5926 fi
5927else
c915a581
JJ
5928 if test "$GXX" = yes; then
5929 CXXFLAGS="-O2"
5930 else
5931 CXXFLAGS=
5932 fi
f35db108 5933fi
c915a581
JJ
5934ac_ext=c
5935ac_cpp='$CPP $CPPFLAGS'
5936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5938ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 5939
c915a581 5940depcc="$CXX" am_compiler_list=
f35db108 5941
c915a581
JJ
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5943$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 5944if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
c915a581
JJ
5945 $as_echo_n "(cached) " >&6
5946else
5947 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5948 # We make a subdir and do the tests there. Otherwise we can end up
5949 # making bogus files that we don't know about and never remove. For
5950 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
5951 # making a dummy file named 'D' -- because '-MD' means "put the output
5952 # in D".
f3915b42 5953 rm -rf conftest.dir
c915a581
JJ
5954 mkdir conftest.dir
5955 # Copy depcomp to subdir because otherwise we won't find it if we're
5956 # using a relative directory.
5957 cp "$am_depcomp" conftest.dir
5958 cd conftest.dir
5959 # We will build objects and dependencies in a subdirectory because
5960 # it helps to detect inapplicable dependency modes. For instance
5961 # both Tru64's cc and ICC support -MD to output dependencies as a
5962 # side effect of compilation, but ICC will put the dependencies in
5963 # the current directory while Tru64 will put them in the object
5964 # directory.
5965 mkdir sub
f35db108 5966
c915a581
JJ
5967 am_cv_CXX_dependencies_compiler_type=none
5968 if test "$am_compiler_list" = ""; then
5969 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5970 fi
5971 am__universal=false
5972 case " $depcc " in #(
5973 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5974 esac
f35db108 5975
c915a581
JJ
5976 for depmode in $am_compiler_list; do
5977 # Setup a source with many dependencies, because some compilers
5978 # like to wrap large dependency lists on column 80 (with \), and
5979 # we should not choose a depcomp mode which is confused by this.
5980 #
5981 # We need to recreate these files for each test, as the compiler may
5982 # overwrite some of them when testing with obscure command lines.
5983 # This happens at least with the AIX C compiler.
5984 : > sub/conftest.c
5985 for i in 1 2 3 4 5 6; do
5986 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
5987 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5988 # Solaris 10 /bin/sh.
5989 echo '/* dummy */' > sub/conftst$i.h
c915a581
JJ
5990 done
5991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
f35db108 5992
22e05272 5993 # We check with '-c' and '-o' for the sake of the "dashmstdout"
c915a581 5994 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
5995 # handle '-M -o', and we need to detect this. Also, some Intel
5996 # versions had trouble with output in subdirs.
c915a581
JJ
5997 am__obj=sub/conftest.${OBJEXT-o}
5998 am__minus_obj="-o $am__obj"
5999 case $depmode in
6000 gcc)
6001 # This depmode causes a compiler race in universal mode.
6002 test "$am__universal" = false || continue
6003 ;;
6004 nosideeffect)
22e05272
JM
6005 # After this tag, mechanisms are not by side-effect, so they'll
6006 # only be used when explicitly requested.
c915a581
JJ
6007 if test "x$enable_dependency_tracking" = xyes; then
6008 continue
6009 else
6010 break
6011 fi
6012 ;;
f3915b42 6013 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 6014 # This compiler won't grok '-c -o', but also, the minuso test has
c915a581
JJ
6015 # not run yet. These depmodes are late enough in the game, and
6016 # so weak that their functioning should not be impacted.
6017 am__obj=conftest.${OBJEXT-o}
6018 am__minus_obj=
6019 ;;
6020 none) break ;;
6021 esac
6022 if depmode=$depmode \
6023 source=sub/conftest.c object=$am__obj \
6024 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6025 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6026 >/dev/null 2>conftest.err &&
6027 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6028 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6029 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6030 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6031 # icc doesn't choke on unknown options, it will just issue warnings
6032 # or remarks (even with -Werror). So we grep stderr for any message
6033 # that says an option was ignored or not supported.
6034 # When given -MP, icc 7.0 and 7.1 complain thusly:
6035 # icc: Command line warning: ignoring option '-M'; no argument required
6036 # The diagnosis changed in icc 8.0:
6037 # icc: Command line remark: option '-MP' not supported
6038 if (grep 'ignoring option' conftest.err ||
6039 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6040 am_cv_CXX_dependencies_compiler_type=$depmode
6041 break
6042 fi
6043 fi
6044 done
f35db108 6045
c915a581
JJ
6046 cd ..
6047 rm -rf conftest.dir
6048else
6049 am_cv_CXX_dependencies_compiler_type=none
6050fi
f35db108 6051
c915a581
JJ
6052fi
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6054$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6055CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
f35db108 6056
c915a581
JJ
6057 if
6058 test "x$enable_dependency_tracking" != xno \
6059 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6060 am__fastdepCXX_TRUE=
6061 am__fastdepCXX_FALSE='#'
6062else
6063 am__fastdepCXX_TRUE='#'
6064 am__fastdepCXX_FALSE=
6065fi
f35db108
WM
6066
6067
c915a581 6068# By default we simply use the C compiler to build assembly code.
f35db108 6069
c915a581
JJ
6070test "${CCAS+set}" = set || CCAS=$CC
6071test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
f35db108
WM
6072
6073
6074
c915a581 6075depcc="$CCAS" am_compiler_list=
f35db108 6076
c915a581
JJ
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6078$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 6079if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
c915a581
JJ
6080 $as_echo_n "(cached) " >&6
6081else
6082 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6083 # We make a subdir and do the tests there. Otherwise we can end up
6084 # making bogus files that we don't know about and never remove. For
6085 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
6086 # making a dummy file named 'D' -- because '-MD' means "put the output
6087 # in D".
f3915b42 6088 rm -rf conftest.dir
c915a581
JJ
6089 mkdir conftest.dir
6090 # Copy depcomp to subdir because otherwise we won't find it if we're
6091 # using a relative directory.
6092 cp "$am_depcomp" conftest.dir
6093 cd conftest.dir
6094 # We will build objects and dependencies in a subdirectory because
6095 # it helps to detect inapplicable dependency modes. For instance
6096 # both Tru64's cc and ICC support -MD to output dependencies as a
6097 # side effect of compilation, but ICC will put the dependencies in
6098 # the current directory while Tru64 will put them in the object
6099 # directory.
6100 mkdir sub
f35db108 6101
c915a581
JJ
6102 am_cv_CCAS_dependencies_compiler_type=none
6103 if test "$am_compiler_list" = ""; then
6104 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6105 fi
6106 am__universal=false
f35db108
WM
6107
6108
c915a581
JJ
6109 for depmode in $am_compiler_list; do
6110 # Setup a source with many dependencies, because some compilers
6111 # like to wrap large dependency lists on column 80 (with \), and
6112 # we should not choose a depcomp mode which is confused by this.
6113 #
6114 # We need to recreate these files for each test, as the compiler may
6115 # overwrite some of them when testing with obscure command lines.
6116 # This happens at least with the AIX C compiler.
6117 : > sub/conftest.c
6118 for i in 1 2 3 4 5 6; do
6119 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
6120 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6121 # Solaris 10 /bin/sh.
6122 echo '/* dummy */' > sub/conftst$i.h
c915a581
JJ
6123 done
6124 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
f35db108 6125
22e05272 6126 # We check with '-c' and '-o' for the sake of the "dashmstdout"
c915a581 6127 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
6128 # handle '-M -o', and we need to detect this. Also, some Intel
6129 # versions had trouble with output in subdirs.
c915a581
JJ
6130 am__obj=sub/conftest.${OBJEXT-o}
6131 am__minus_obj="-o $am__obj"
6132 case $depmode in
6133 gcc)
6134 # This depmode causes a compiler race in universal mode.
6135 test "$am__universal" = false || continue
6136 ;;
6137 nosideeffect)
22e05272
JM
6138 # After this tag, mechanisms are not by side-effect, so they'll
6139 # only be used when explicitly requested.
c915a581
JJ
6140 if test "x$enable_dependency_tracking" = xyes; then
6141 continue
6142 else
6143 break
6144 fi
6145 ;;
f3915b42 6146 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 6147 # This compiler won't grok '-c -o', but also, the minuso test has
c915a581
JJ
6148 # not run yet. These depmodes are late enough in the game, and
6149 # so weak that their functioning should not be impacted.
6150 am__obj=conftest.${OBJEXT-o}
6151 am__minus_obj=
6152 ;;
6153 none) break ;;
6154 esac
6155 if depmode=$depmode \
6156 source=sub/conftest.c object=$am__obj \
6157 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6158 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6159 >/dev/null 2>conftest.err &&
6160 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6161 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6162 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6163 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6164 # icc doesn't choke on unknown options, it will just issue warnings
6165 # or remarks (even with -Werror). So we grep stderr for any message
6166 # that says an option was ignored or not supported.
6167 # When given -MP, icc 7.0 and 7.1 complain thusly:
6168 # icc: Command line warning: ignoring option '-M'; no argument required
6169 # The diagnosis changed in icc 8.0:
6170 # icc: Command line remark: option '-MP' not supported
6171 if (grep 'ignoring option' conftest.err ||
6172 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6173 am_cv_CCAS_dependencies_compiler_type=$depmode
6174 break
6175 fi
6176 fi
6177 done
f35db108 6178
c915a581
JJ
6179 cd ..
6180 rm -rf conftest.dir
6181else
6182 am_cv_CCAS_dependencies_compiler_type=none
6183fi
f35db108 6184
c915a581
JJ
6185fi
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6187$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6188CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
f35db108 6189
c915a581
JJ
6190 if
6191 test "x$enable_dependency_tracking" != xno \
6192 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6193 am__fastdepCCAS_TRUE=
6194 am__fastdepCCAS_FALSE='#'
6195else
6196 am__fastdepCCAS_TRUE='#'
6197 am__fastdepCCAS_FALSE=
6198fi
f35db108
WM
6199
6200
c915a581
JJ
6201if test -n "$ac_tool_prefix"; then
6202 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6203set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6206if ${ac_cv_prog_RANLIB+:} false; then :
f35db108
WM
6207 $as_echo_n "(cached) " >&6
6208else
c915a581
JJ
6209 if test -n "$RANLIB"; then
6210 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6211else
6212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213for as_dir in $PATH
6214do
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
6219 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 break 2
6222 fi
6223done
6224 done
6225IFS=$as_save_IFS
f35db108 6226
c915a581
JJ
6227fi
6228fi
6229RANLIB=$ac_cv_prog_RANLIB
6230if test -n "$RANLIB"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6232$as_echo "$RANLIB" >&6; }
6233else
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235$as_echo "no" >&6; }
6236fi
f35db108 6237
f35db108 6238
c915a581
JJ
6239fi
6240if test -z "$ac_cv_prog_RANLIB"; then
6241 ac_ct_RANLIB=$RANLIB
6242 # Extract the first word of "ranlib", so it can be a program name with args.
6243set dummy ranlib; ac_word=$2
6244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6246if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
c915a581
JJ
6247 $as_echo_n "(cached) " >&6
6248else
6249 if test -n "$ac_ct_RANLIB"; then
6250 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6251else
6252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253for as_dir in $PATH
6254do
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
6259 ac_cv_prog_ac_ct_RANLIB="ranlib"
6260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
f35db108
WM
6262 fi
6263done
c915a581
JJ
6264 done
6265IFS=$as_save_IFS
f35db108
WM
6266
6267fi
f35db108 6268fi
c915a581
JJ
6269ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6270if test -n "$ac_ct_RANLIB"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6272$as_echo "$ac_ct_RANLIB" >&6; }
f35db108 6273else
c915a581
JJ
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275$as_echo "no" >&6; }
f35db108
WM
6276fi
6277
c915a581
JJ
6278 if test "x$ac_ct_RANLIB" = x; then
6279 RANLIB=":"
6280 else
6281 case $cross_compiling:$ac_tool_warned in
6282yes:)
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6285ac_tool_warned=yes ;;
6286esac
6287 RANLIB=$ac_ct_RANLIB
6288 fi
6289else
6290 RANLIB="$ac_cv_prog_RANLIB"
6291fi
f35db108
WM
6292
6293
c915a581 6294enable_dlopen=yes
f35db108
WM
6295
6296
6297
c915a581
JJ
6298case `pwd` in
6299 *\ * | *\ *)
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6301$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6302esac
f35db108
WM
6303
6304
6305
c915a581
JJ
6306macro_version='2.2.7a'
6307macro_revision='1.3134'
f35db108
WM
6308
6309
6310
6311
6312
6313
6314
6315
6316
f35db108
WM
6317
6318
6319
6320
c915a581 6321ltmain="$ac_aux_dir/ltmain.sh"
f35db108 6322
c915a581
JJ
6323# Backslashify metacharacters that are still active within
6324# double-quoted strings.
6325sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
f35db108 6326
c915a581
JJ
6327# Same as above, but do not quote variable references.
6328double_quote_subst='s/\(["`\\]\)/\\\1/g'
f35db108 6329
c915a581
JJ
6330# Sed substitution to delay expansion of an escaped shell variable in a
6331# double_quote_subst'ed string.
6332delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
f35db108 6333
c915a581
JJ
6334# Sed substitution to delay expansion of an escaped single quote.
6335delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
f35db108 6336
c915a581
JJ
6337# Sed substitution to avoid accidental globbing in evaled expressions
6338no_glob_subst='s/\*/\\\*/g'
f35db108 6339
c915a581
JJ
6340ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6341ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6342ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
f35db108 6343
c915a581
JJ
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6345$as_echo_n "checking how to print strings... " >&6; }
6346# Test print first, because it will be a builtin if present.
6347if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6348 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6349 ECHO='print -r --'
6350elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6351 ECHO='printf %s\n'
f35db108 6352else
c915a581
JJ
6353 # Use this function as a fallback that always works.
6354 func_fallback_echo ()
6355 {
6356 eval 'cat <<_LTECHO_EOF
6357$1
6358_LTECHO_EOF'
6359 }
6360 ECHO='func_fallback_echo'
f35db108 6361fi
f35db108 6362
c915a581
JJ
6363# func_echo_all arg...
6364# Invoke $ECHO with all args, space-separated.
6365func_echo_all ()
6366{
6367 $ECHO ""
6368}
6369
6370case "$ECHO" in
6371 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6372$as_echo "printf" >&6; } ;;
6373 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6374$as_echo "print -r" >&6; } ;;
6375 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6376$as_echo "cat" >&6; } ;;
f35db108
WM
6377esac
6378
f35db108 6379
f35db108 6380
c915a581
JJ
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6393$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 6394if ${ac_cv_path_SED+:} false; then :
f35db108
WM
6395 $as_echo_n "(cached) " >&6
6396else
c915a581
JJ
6397 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6398 for ac_i in 1 2 3 4 5 6 7; do
6399 ac_script="$ac_script$as_nl$ac_script"
6400 done
6401 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6402 { ac_script=; unset ac_script;}
6403 if test -z "$SED"; then
6404 ac_path_SED_found=false
6405 # Loop through the user's path and test for each of PROGNAME-LIST
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in $PATH
f35db108
WM
6408do
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
c915a581 6411 for ac_prog in sed gsed; do
f35db108 6412 for ac_exec_ext in '' $ac_executable_extensions; do
c915a581 6413 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6414 as_fn_executable_p "$ac_path_SED" || continue
c915a581
JJ
6415# Check for GNU ac_path_SED and select it if it is found.
6416 # Check for GNU $ac_path_SED
6417case `"$ac_path_SED" --version 2>&1` in
6418*GNU*)
6419 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6420*)
6421 ac_count=0
6422 $as_echo_n 0123456789 >"conftest.in"
6423 while :
6424 do
6425 cat "conftest.in" "conftest.in" >"conftest.tmp"
6426 mv "conftest.tmp" "conftest.in"
6427 cp "conftest.in" "conftest.nl"
6428 $as_echo '' >> "conftest.nl"
6429 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6430 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6431 as_fn_arith $ac_count + 1 && ac_count=$as_val
6432 if test $ac_count -gt ${ac_path_SED_max-0}; then
6433 # Best one so far, save it but keep looking for a better one
6434 ac_cv_path_SED="$ac_path_SED"
6435 ac_path_SED_max=$ac_count
6436 fi
6437 # 10*(2^10) chars as input seems more than enough
6438 test $ac_count -gt 10 && break
f35db108 6439 done
c915a581
JJ
6440 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6441esac
f35db108 6442
c915a581
JJ
6443 $ac_path_SED_found && break 3
6444 done
6445 done
f35db108
WM
6446 done
6447IFS=$as_save_IFS
c915a581 6448 if test -z "$ac_cv_path_SED"; then
22e05272 6449 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
c915a581 6450 fi
f35db108 6451else
c915a581 6452 ac_cv_path_SED=$SED
f35db108
WM
6453fi
6454
f35db108 6455fi
c915a581
JJ
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6457$as_echo "$ac_cv_path_SED" >&6; }
6458 SED="$ac_cv_path_SED"
6459 rm -f conftest.sed
f35db108 6460
c915a581
JJ
6461test -z "$SED" && SED=sed
6462Xsed="$SED -e 1s/^X//"
f35db108 6463
f35db108
WM
6464
6465
c915a581
JJ
6466
6467
6468
6469
6470
6471
6472
6473
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6475$as_echo_n "checking for fgrep... " >&6; }
22e05272 6476if ${ac_cv_path_FGREP+:} false; then :
f35db108
WM
6477 $as_echo_n "(cached) " >&6
6478else
c915a581
JJ
6479 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6480 then ac_cv_path_FGREP="$GREP -F"
6481 else
6482 if test -z "$FGREP"; then
6483 ac_path_FGREP_found=false
6484 # Loop through the user's path and test for each of PROGNAME-LIST
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
f35db108
WM
6487do
6488 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=.
c915a581 6490 for ac_prog in fgrep; do
f35db108 6491 for ac_exec_ext in '' $ac_executable_extensions; do
c915a581 6492 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6493 as_fn_executable_p "$ac_path_FGREP" || continue
c915a581
JJ
6494# Check for GNU ac_path_FGREP and select it if it is found.
6495 # Check for GNU $ac_path_FGREP
6496case `"$ac_path_FGREP" --version 2>&1` in
6497*GNU*)
6498 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6499*)
6500 ac_count=0
6501 $as_echo_n 0123456789 >"conftest.in"
6502 while :
6503 do
6504 cat "conftest.in" "conftest.in" >"conftest.tmp"
6505 mv "conftest.tmp" "conftest.in"
6506 cp "conftest.in" "conftest.nl"
6507 $as_echo 'FGREP' >> "conftest.nl"
6508 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6510 as_fn_arith $ac_count + 1 && ac_count=$as_val
6511 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6512 # Best one so far, save it but keep looking for a better one
6513 ac_cv_path_FGREP="$ac_path_FGREP"
6514 ac_path_FGREP_max=$ac_count
6515 fi
6516 # 10*(2^10) chars as input seems more than enough
6517 test $ac_count -gt 10 && break
f35db108 6518 done
c915a581
JJ
6519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6520esac
f35db108 6521
c915a581
JJ
6522 $ac_path_FGREP_found && break 3
6523 done
6524 done
6525 done
6526IFS=$as_save_IFS
6527 if test -z "$ac_cv_path_FGREP"; then
22e05272 6528 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
c915a581 6529 fi
f35db108 6530else
c915a581 6531 ac_cv_path_FGREP=$FGREP
f35db108
WM
6532fi
6533
c915a581 6534 fi
f35db108 6535fi
c915a581
JJ
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6537$as_echo "$ac_cv_path_FGREP" >&6; }
6538 FGREP="$ac_cv_path_FGREP"
f35db108 6539
c915a581
JJ
6540
6541test -z "$GREP" && GREP=grep
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561# Check whether --with-gnu-ld was given.
6562if test "${with_gnu_ld+set}" = set; then :
6563 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6564else
6565 with_gnu_ld=no
6566fi
6567
6568ac_prog=ld
6569if test "$GCC" = yes; then
6570 # Check if gcc -print-prog-name=ld gives a path.
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6572$as_echo_n "checking for ld used by $CC... " >&6; }
6573 case $host in
6574 *-*-mingw*)
6575 # gcc leaves a trailing carriage return which upsets mingw
6576 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6577 *)
6578 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6579 esac
6580 case $ac_prog in
6581 # Accept absolute paths.
6582 [\\/]* | ?:[\\/]*)
6583 re_direlt='/[^/][^/]*/\.\./'
6584 # Canonicalize the pathname of ld
6585 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6586 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6587 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6588 done
6589 test -z "$LD" && LD="$ac_prog"
6590 ;;
6591 "")
6592 # If it fails, then pretend we aren't using GCC.
6593 ac_prog=ld
6594 ;;
6595 *)
6596 # If it is relative, then search for the first ld in PATH.
6597 with_gnu_ld=unknown
6598 ;;
6599 esac
6600elif test "$with_gnu_ld" = yes; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6602$as_echo_n "checking for GNU ld... " >&6; }
6603else
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6605$as_echo_n "checking for non-GNU ld... " >&6; }
6606fi
22e05272 6607if ${lt_cv_path_LD+:} false; then :
c915a581
JJ
6608 $as_echo_n "(cached) " >&6
6609else
6610 if test -z "$LD"; then
6611 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6612 for ac_dir in $PATH; do
6613 IFS="$lt_save_ifs"
6614 test -z "$ac_dir" && ac_dir=.
6615 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6616 lt_cv_path_LD="$ac_dir/$ac_prog"
6617 # Check to see if the program is GNU ld. I'd rather use --version,
6618 # but apparently some variants of GNU ld only accept -v.
6619 # Break only if it was the GNU/non-GNU ld that we prefer.
6620 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6621 *GNU* | *'with BFD'*)
6622 test "$with_gnu_ld" != no && break
6623 ;;
6624 *)
6625 test "$with_gnu_ld" != yes && break
6626 ;;
6627 esac
6628 fi
6629 done
6630 IFS="$lt_save_ifs"
6631else
6632 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6633fi
6634fi
6635
6636LD="$lt_cv_path_LD"
6637if test -n "$LD"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6639$as_echo "$LD" >&6; }
6640else
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642$as_echo "no" >&6; }
6643fi
22e05272 6644test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
c915a581
JJ
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6646$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 6647if ${lt_cv_prog_gnu_ld+:} false; then :
c915a581
JJ
6648 $as_echo_n "(cached) " >&6
6649else
6650 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6651case `$LD -v 2>&1 </dev/null` in
6652*GNU* | *'with BFD'*)
6653 lt_cv_prog_gnu_ld=yes
6654 ;;
6655*)
6656 lt_cv_prog_gnu_ld=no
6657 ;;
6658esac
6659fi
6660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6661$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6662with_gnu_ld=$lt_cv_prog_gnu_ld
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6673$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 6674if ${lt_cv_path_NM+:} false; then :
c915a581
JJ
6675 $as_echo_n "(cached) " >&6
6676else
6677 if test -n "$NM"; then
ab422974
NA
6678 # Let the user override the nm to test.
6679 lt_nm_to_check="$NM"
6680 else
6681 lt_nm_to_check="${ac_tool_prefix}nm"
6682 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6683 lt_nm_to_check="$lt_nm_to_check nm"
6684 fi
6685 fi
f3307109 6686 for lt_tmp_nm in "$lt_nm_to_check"; do
ab422974
NA
6687 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6688 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6689 IFS="$lt_save_ifs"
6690 test -z "$ac_dir" && ac_dir=.
f3307109
NA
6691 # Strip out any user-provided options from the nm to test twice,
6692 # the first time to test to see if nm (rather than its options) has
6693 # an explicit path, the second time to yield a file which can be
6694 # nm'ed itself.
6695 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6696 case "$tmp_nm_path" in
ab422974
NA
6697 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6698 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6699 esac
f3307109
NA
6700 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6701 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
ab422974
NA
6702 # Check to see if the nm accepts a BSD-compat flag.
6703 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6704 # nm: unknown option "B" ignored
f3307109 6705 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
ab422974
NA
6706 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6707 break
6708 ;;
6709 *)
f3307109 6710 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
ab422974
NA
6711 *$tmp_nm*)
6712 lt_cv_path_NM="$tmp_nm -p"
6713 break
6714 ;;
6715 *)
6716 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6717 continue # so that we can try to find one that supports BSD flags
6718 ;;
6719 esac
6720 ;;
6721 esac
6722 fi
6723 done
6724 IFS="$lt_save_ifs"
6725 done
6726 : ${lt_cv_path_NM=no}
c915a581
JJ
6727fi
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6729$as_echo "$lt_cv_path_NM" >&6; }
6730if test "$lt_cv_path_NM" != "no"; then
6731 NM="$lt_cv_path_NM"
6732else
6733 # Didn't find any BSD compatible name lister, look for dumpbin.
6734 if test -n "$DUMPBIN"; then :
6735 # Let the user override the test.
6736 else
f35db108 6737 if test -n "$ac_tool_prefix"; then
c915a581
JJ
6738 for ac_prog in dumpbin "link -dump"
6739 do
6740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6741set dummy $ac_tool_prefix$ac_prog; ac_word=$2
f35db108
WM
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6744if ${ac_cv_prog_DUMPBIN+:} false; then :
f35db108
WM
6745 $as_echo_n "(cached) " >&6
6746else
c915a581
JJ
6747 if test -n "$DUMPBIN"; then
6748 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
f35db108
WM
6749else
6750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751for as_dir in $PATH
6752do
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 6757 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
f35db108
WM
6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6760 fi
6761done
6762 done
6763IFS=$as_save_IFS
6764
6765fi
6766fi
c915a581
JJ
6767DUMPBIN=$ac_cv_prog_DUMPBIN
6768if test -n "$DUMPBIN"; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6770$as_echo "$DUMPBIN" >&6; }
f35db108
WM
6771else
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773$as_echo "no" >&6; }
6774fi
6775
6776
c915a581
JJ
6777 test -n "$DUMPBIN" && break
6778 done
f35db108 6779fi
c915a581
JJ
6780if test -z "$DUMPBIN"; then
6781 ac_ct_DUMPBIN=$DUMPBIN
6782 for ac_prog in dumpbin "link -dump"
6783do
6784 # Extract the first word of "$ac_prog", so it can be a program name with args.
6785set dummy $ac_prog; ac_word=$2
f35db108
WM
6786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6788if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
f35db108
WM
6789 $as_echo_n "(cached) " >&6
6790else
c915a581
JJ
6791 if test -n "$ac_ct_DUMPBIN"; then
6792 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
f35db108
WM
6793else
6794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795for as_dir in $PATH
6796do
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581 6801 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
f35db108
WM
6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 break 2
6804 fi
6805done
6806 done
6807IFS=$as_save_IFS
6808
6809fi
6810fi
c915a581
JJ
6811ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6812if test -n "$ac_ct_DUMPBIN"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6814$as_echo "$ac_ct_DUMPBIN" >&6; }
f35db108
WM
6815else
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817$as_echo "no" >&6; }
6818fi
6819
c915a581
JJ
6820
6821 test -n "$ac_ct_DUMPBIN" && break
6822done
6823
6824 if test "x$ac_ct_DUMPBIN" = x; then
6825 DUMPBIN=":"
f35db108
WM
6826 else
6827 case $cross_compiling:$ac_tool_warned in
6828yes:)
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6831ac_tool_warned=yes ;;
6832esac
c915a581 6833 DUMPBIN=$ac_ct_DUMPBIN
f35db108 6834 fi
f35db108
WM
6835fi
6836
c915a581
JJ
6837 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6838 *COFF*)
6839 DUMPBIN="$DUMPBIN -symbols"
6840 ;;
6841 *)
6842 DUMPBIN=:
6843 ;;
6844 esac
f35db108 6845 fi
f35db108 6846
c915a581
JJ
6847 if test "$DUMPBIN" != ":"; then
6848 NM="$DUMPBIN"
6849 fi
f35db108 6850fi
c915a581 6851test -z "$NM" && NM=nm
f35db108
WM
6852
6853
f35db108 6854
f35db108 6855
f35db108 6856
c915a581
JJ
6857
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6859$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 6860if ${lt_cv_nm_interface+:} false; then :
f35db108
WM
6861 $as_echo_n "(cached) " >&6
6862else
c915a581
JJ
6863 lt_cv_nm_interface="BSD nm"
6864 echo "int some_variable = 0;" > conftest.$ac_ext
6865 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6866 (eval "$ac_compile" 2>conftest.err)
6867 cat conftest.err >&5
6868 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6869 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6870 cat conftest.err >&5
6871 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6872 cat conftest.out >&5
6873 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6874 lt_cv_nm_interface="MS dumpbin"
f35db108 6875 fi
c915a581 6876 rm -f conftest*
f35db108 6877fi
c915a581
JJ
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6879$as_echo "$lt_cv_nm_interface" >&6; }
6880
6881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6882$as_echo_n "checking whether ln -s works... " >&6; }
6883LN_S=$as_ln_s
6884if test "$LN_S" = "ln -s"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6886$as_echo "yes" >&6; }
f35db108 6887else
c915a581
JJ
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6889$as_echo "no, using $LN_S" >&6; }
f35db108
WM
6890fi
6891
c915a581
JJ
6892# find the maximum length of command line arguments
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6894$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 6895if ${lt_cv_sys_max_cmd_len+:} false; then :
f35db108
WM
6896 $as_echo_n "(cached) " >&6
6897else
c915a581
JJ
6898 i=0
6899 teststring="ABCD"
f35db108 6900
c915a581
JJ
6901 case $build_os in
6902 msdosdjgpp*)
6903 # On DJGPP, this test can blow up pretty badly due to problems in libc
6904 # (any single argument exceeding 2000 bytes causes a buffer overrun
6905 # during glob expansion). Even if it were fixed, the result of this
6906 # check would be larger than it should be.
6907 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6908 ;;
f35db108 6909
c915a581
JJ
6910 gnu*)
6911 # Under GNU Hurd, this test is not required because there is
6912 # no limit to the length of command line arguments.
6913 # Libtool will interpret -1 as no limit whatsoever
6914 lt_cv_sys_max_cmd_len=-1;
6915 ;;
f35db108 6916
c915a581
JJ
6917 cygwin* | mingw* | cegcc*)
6918 # On Win9x/ME, this test blows up -- it succeeds, but takes
6919 # about 5 minutes as the teststring grows exponentially.
6920 # Worse, since 9x/ME are not pre-emptively multitasking,
6921 # you end up with a "frozen" computer, even though with patience
6922 # the test eventually succeeds (with a max line length of 256k).
6923 # Instead, let's just punt: use the minimum linelength reported by
6924 # all of the supported platforms: 8192 (on NT/2K/XP).
6925 lt_cv_sys_max_cmd_len=8192;
6926 ;;
f35db108 6927
c915a581
JJ
6928 mint*)
6929 # On MiNT this can take a long time and run out of memory.
6930 lt_cv_sys_max_cmd_len=8192;
6931 ;;
f35db108 6932
c915a581
JJ
6933 amigaos*)
6934 # On AmigaOS with pdksh, this test takes hours, literally.
6935 # So we just punt and use a minimum line length of 8192.
6936 lt_cv_sys_max_cmd_len=8192;
6937 ;;
f35db108 6938
c915a581
JJ
6939 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6940 # This has been around since 386BSD, at least. Likely further.
6941 if test -x /sbin/sysctl; then
6942 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6943 elif test -x /usr/sbin/sysctl; then
6944 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6945 else
6946 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6947 fi
6948 # And add a safety zone
6949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6951 ;;
f35db108 6952
c915a581
JJ
6953 interix*)
6954 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6955 lt_cv_sys_max_cmd_len=196608
6956 ;;
6957
6958 osf*)
6959 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6960 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6961 # nice to cause kernel panics so lets avoid the loop below.
6962 # First set a reasonable default.
6963 lt_cv_sys_max_cmd_len=16384
6964 #
6965 if test -x /sbin/sysconfig; then
6966 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6967 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6968 esac
6969 fi
6970 ;;
6971 sco3.2v5*)
6972 lt_cv_sys_max_cmd_len=102400
6973 ;;
6974 sysv5* | sco5v6* | sysv4.2uw2*)
6975 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6976 if test -n "$kargmax"; then
6977 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6978 else
6979 lt_cv_sys_max_cmd_len=32768
6980 fi
6981 ;;
6982 *)
6983 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6984 if test -n "$lt_cv_sys_max_cmd_len"; then
6985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6987 else
6988 # Make teststring a little bigger before we do anything with it.
6989 # a 1K string should be a reasonable start.
6990 for i in 1 2 3 4 5 6 7 8 ; do
6991 teststring=$teststring$teststring
6992 done
6993 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6994 # If test is not a shell built-in, we'll probably end up computing a
6995 # maximum length that is only half of the actual maximum length, but
6996 # we can't tell.
6997 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6998 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6999 test $i != 17 # 1/2 MB should be enough
7000 do
7001 i=`expr $i + 1`
7002 teststring=$teststring$teststring
7003 done
7004 # Only check the string length outside the loop.
7005 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7006 teststring=
7007 # Add a significant safety factor because C++ compilers can tack on
7008 # massive amounts of additional arguments before passing them to the
7009 # linker. It appears as though 1/2 is a usable value.
7010 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7011 fi
7012 ;;
7013 esac
7014
7015fi
7016
7017if test -n $lt_cv_sys_max_cmd_len ; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7019$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7020else
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7022$as_echo "none" >&6; }
7023fi
7024max_cmd_len=$lt_cv_sys_max_cmd_len
f35db108
WM
7025
7026
7027
7028
7029
7030
c915a581
JJ
7031: ${CP="cp -f"}
7032: ${MV="mv -f"}
7033: ${RM="rm -f"}
7034
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7036$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7037# Try some XSI features
7038xsi_shell=no
7039( _lt_dummy="a/b/c"
7040 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7041 = c,a/b,, \
7042 && eval 'test $(( 1 + 1 )) -eq 2 \
7043 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7044 && xsi_shell=yes
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7046$as_echo "$xsi_shell" >&6; }
7047
7048
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7050$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7051lt_shell_append=no
7052( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7053 >/dev/null 2>&1 \
7054 && lt_shell_append=yes
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7056$as_echo "$lt_shell_append" >&6; }
f35db108
WM
7057
7058
c915a581
JJ
7059if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7060 lt_unset=unset
7061else
7062 lt_unset=false
7063fi
f35db108
WM
7064
7065
7066
7067
7068
c915a581
JJ
7069# test EBCDIC or ASCII
7070case `echo X|tr X '\101'` in
7071 A) # ASCII based system
7072 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7073 lt_SP2NL='tr \040 \012'
7074 lt_NL2SP='tr \015\012 \040\040'
7075 ;;
7076 *) # EBCDIC based system
7077 lt_SP2NL='tr \100 \n'
7078 lt_NL2SP='tr \r\n \100\100'
7079 ;;
7080esac
f35db108
WM
7081
7082
7083
7084
7085
7086
7087
7088
7089
c915a581
JJ
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7091$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 7092if ${lt_cv_ld_reload_flag+:} false; then :
f35db108
WM
7093 $as_echo_n "(cached) " >&6
7094else
c915a581 7095 lt_cv_ld_reload_flag='-r'
f35db108 7096fi
c915a581
JJ
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7098$as_echo "$lt_cv_ld_reload_flag" >&6; }
7099reload_flag=$lt_cv_ld_reload_flag
7100case $reload_flag in
7101"" | " "*) ;;
7102*) reload_flag=" $reload_flag" ;;
7103esac
7104reload_cmds='$LD$reload_flag -o $output$reload_objs'
7105case $host_os in
7106 darwin*)
7107 if test "$GCC" = yes; then
7108 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7109 else
7110 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7111 fi
7112 ;;
7113esac
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123if test -n "$ac_tool_prefix"; then
7124 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7125set dummy ${ac_tool_prefix}objdump; ac_word=$2
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7128if ${ac_cv_prog_OBJDUMP+:} false; then :
f35db108
WM
7129 $as_echo_n "(cached) " >&6
7130else
c915a581
JJ
7131 if test -n "$OBJDUMP"; then
7132 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7133else
7134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7141 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 break 2
7144 fi
7145done
7146 done
7147IFS=$as_save_IFS
f35db108 7148
c915a581
JJ
7149fi
7150fi
7151OBJDUMP=$ac_cv_prog_OBJDUMP
7152if test -n "$OBJDUMP"; then
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7154$as_echo "$OBJDUMP" >&6; }
f35db108 7155else
c915a581
JJ
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157$as_echo "no" >&6; }
f35db108 7158fi
c915a581 7159
f35db108
WM
7160
7161fi
c915a581
JJ
7162if test -z "$ac_cv_prog_OBJDUMP"; then
7163 ac_ct_OBJDUMP=$OBJDUMP
7164 # Extract the first word of "objdump", so it can be a program name with args.
7165set dummy objdump; ac_word=$2
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7168if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
f35db108
WM
7169 $as_echo_n "(cached) " >&6
7170else
c915a581
JJ
7171 if test -n "$ac_ct_OBJDUMP"; then
7172 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
f35db108 7173else
c915a581
JJ
7174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
f35db108 7176do
c915a581
JJ
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7181 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 break 2
7184 fi
f35db108 7185done
c915a581
JJ
7186 done
7187IFS=$as_save_IFS
f35db108
WM
7188
7189fi
f35db108 7190fi
c915a581
JJ
7191ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7192if test -n "$ac_ct_OBJDUMP"; then
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7194$as_echo "$ac_ct_OBJDUMP" >&6; }
f35db108 7195else
c915a581
JJ
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197$as_echo "no" >&6; }
f35db108 7198fi
f35db108 7199
c915a581
JJ
7200 if test "x$ac_ct_OBJDUMP" = x; then
7201 OBJDUMP="false"
7202 else
7203 case $cross_compiling:$ac_tool_warned in
7204yes:)
7205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7207ac_tool_warned=yes ;;
7208esac
7209 OBJDUMP=$ac_ct_OBJDUMP
7210 fi
f35db108 7211else
c915a581 7212 OBJDUMP="$ac_cv_prog_OBJDUMP"
f35db108 7213fi
f35db108 7214
c915a581 7215test -z "$OBJDUMP" && OBJDUMP=objdump
f35db108 7216
f35db108 7217
f35db108
WM
7218
7219
f35db108 7220
f35db108 7221
f35db108 7222
f35db108 7223
f35db108 7224
c915a581
JJ
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7226$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 7227if ${lt_cv_deplibs_check_method+:} false; then :
c915a581 7228 $as_echo_n "(cached) " >&6
f35db108 7229else
c915a581
JJ
7230 lt_cv_file_magic_cmd='$MAGIC_CMD'
7231lt_cv_file_magic_test_file=
7232lt_cv_deplibs_check_method='unknown'
7233# Need to set the preceding variable on all platforms that support
7234# interlibrary dependencies.
7235# 'none' -- dependencies not supported.
7236# `unknown' -- same as none, but documents that we really don't know.
7237# 'pass_all' -- all dependencies passed with no checks.
7238# 'test_compile' -- check by making test program.
7239# 'file_magic [[regex]]' -- check by looking for files in library path
7240# which responds to the $file_magic_cmd with a given extended regex.
7241# If you have `file' or equivalent on your system and you're not sure
7242# whether `pass_all' will *always* work, you probably want this one.
f35db108 7243
c915a581
JJ
7244case $host_os in
7245aix[4-9]*)
7246 lt_cv_deplibs_check_method=pass_all
7247 ;;
f35db108 7248
c915a581
JJ
7249beos*)
7250 lt_cv_deplibs_check_method=pass_all
7251 ;;
f35db108 7252
c915a581
JJ
7253bsdi[45]*)
7254 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7255 lt_cv_file_magic_cmd='/usr/bin/file -L'
7256 lt_cv_file_magic_test_file=/shlib/libc.so
7257 ;;
f35db108 7258
c915a581
JJ
7259cygwin*)
7260 # func_win32_libid is a shell function defined in ltmain.sh
7261 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7262 lt_cv_file_magic_cmd='func_win32_libid'
7263 ;;
f35db108 7264
c915a581
JJ
7265mingw* | pw32*)
7266 # Base MSYS/MinGW do not provide the 'file' command needed by
7267 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7268 # unless we find 'file', for example because we are cross-compiling.
7269 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7270 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7271 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7272 lt_cv_file_magic_cmd='func_win32_libid'
7273 else
7274 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7275 lt_cv_file_magic_cmd='$OBJDUMP -f'
7276 fi
7277 ;;
f35db108 7278
c915a581
JJ
7279cegcc*)
7280 # use the weaker test based on 'objdump'. See mingw*.
7281 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7282 lt_cv_file_magic_cmd='$OBJDUMP -f'
7283 ;;
f35db108 7284
c915a581
JJ
7285darwin* | rhapsody*)
7286 lt_cv_deplibs_check_method=pass_all
7287 ;;
f35db108 7288
c915a581
JJ
7289freebsd* | dragonfly*)
7290 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7291 case $host_cpu in
7292 i*86 )
7293 # Not sure whether the presence of OpenBSD here was a mistake.
7294 # Let's accept both of them until this is cleared up.
7295 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7296 lt_cv_file_magic_cmd=/usr/bin/file
7297 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7298 ;;
7299 esac
7300 else
7301 lt_cv_deplibs_check_method=pass_all
7302 fi
7303 ;;
f35db108 7304
c915a581
JJ
7305gnu*)
7306 lt_cv_deplibs_check_method=pass_all
7307 ;;
f35db108 7308
c915a581
JJ
7309haiku*)
7310 lt_cv_deplibs_check_method=pass_all
7311 ;;
f35db108 7312
c915a581
JJ
7313hpux10.20* | hpux11*)
7314 lt_cv_file_magic_cmd=/usr/bin/file
7315 case $host_cpu in
7316 ia64*)
7317 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7318 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7319 ;;
7320 hppa*64*)
7321 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]'
7322 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7323 ;;
7324 *)
7325 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7326 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7327 ;;
7328 esac
7329 ;;
f35db108 7330
c915a581
JJ
7331interix[3-9]*)
7332 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7334 ;;
f35db108 7335
c915a581
JJ
7336irix5* | irix6* | nonstopux*)
7337 case $LD in
7338 *-32|*"-32 ") libmagic=32-bit;;
7339 *-n32|*"-n32 ") libmagic=N32;;
7340 *-64|*"-64 ") libmagic=64-bit;;
7341 *) libmagic=never-match;;
7342 esac
7343 lt_cv_deplibs_check_method=pass_all
7344 ;;
f35db108 7345
c915a581 7346# This must be Linux ELF.
e9085da5 7347linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
c915a581
JJ
7348 lt_cv_deplibs_check_method=pass_all
7349 ;;
f35db108 7350
c915a581
JJ
7351netbsd*)
7352 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7354 else
7355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7356 fi
7357 ;;
f35db108 7358
c915a581
JJ
7359newos6*)
7360 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7361 lt_cv_file_magic_cmd=/usr/bin/file
7362 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7363 ;;
f35db108 7364
c915a581
JJ
7365*nto* | *qnx*)
7366 lt_cv_deplibs_check_method=pass_all
7367 ;;
f35db108 7368
c915a581
JJ
7369openbsd*)
7370 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7372 else
7373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7374 fi
7375 ;;
f35db108 7376
c915a581
JJ
7377osf3* | osf4* | osf5*)
7378 lt_cv_deplibs_check_method=pass_all
7379 ;;
f35db108 7380
c915a581
JJ
7381rdos*)
7382 lt_cv_deplibs_check_method=pass_all
7383 ;;
f35db108 7384
c915a581
JJ
7385solaris*)
7386 lt_cv_deplibs_check_method=pass_all
7387 ;;
f35db108 7388
c915a581
JJ
7389sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7390 lt_cv_deplibs_check_method=pass_all
7391 ;;
f35db108 7392
c915a581
JJ
7393sysv4 | sysv4.3*)
7394 case $host_vendor in
7395 motorola)
7396 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]'
7397 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7398 ;;
7399 ncr)
7400 lt_cv_deplibs_check_method=pass_all
7401 ;;
7402 sequent)
7403 lt_cv_file_magic_cmd='/bin/file'
7404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7405 ;;
7406 sni)
7407 lt_cv_file_magic_cmd='/bin/file'
7408 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7409 lt_cv_file_magic_test_file=/lib/libc.so
7410 ;;
7411 siemens)
7412 lt_cv_deplibs_check_method=pass_all
7413 ;;
7414 pc)
7415 lt_cv_deplibs_check_method=pass_all
7416 ;;
7417 esac
7418 ;;
f35db108 7419
c915a581
JJ
7420tpf*)
7421 lt_cv_deplibs_check_method=pass_all
7422 ;;
0ecd0f1c
OH
7423vxworks*)
7424 # Assume VxWorks cross toolchains are built on Linux, possibly
7425 # as canadian for Windows hosts.
7426 lt_cv_deplibs_check_method=pass_all
7427 ;;
c915a581 7428esac
f35db108 7429
c915a581
JJ
7430fi
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7432$as_echo "$lt_cv_deplibs_check_method" >&6; }
7433file_magic_cmd=$lt_cv_file_magic_cmd
7434deplibs_check_method=$lt_cv_deplibs_check_method
7435test -z "$deplibs_check_method" && deplibs_check_method=unknown
f35db108
WM
7436
7437
f35db108
WM
7438
7439
f35db108
WM
7440
7441
7442
7443
7444
7445
7446
7447
126f707e
L
7448plugin_option=
7449plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7450for plugin in $plugin_names; do
7451 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7452 if test x$plugin_so = x$plugin; then
7453 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7454 fi
7455 if test x$plugin_so != x$plugin; then
7456 plugin_option="--plugin $plugin_so"
7457 break
7458 fi
7459done
7460
c915a581
JJ
7461if test -n "$ac_tool_prefix"; then
7462 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7463set dummy ${ac_tool_prefix}ar; ac_word=$2
7464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7466if ${ac_cv_prog_AR+:} false; then :
c915a581
JJ
7467 $as_echo_n "(cached) " >&6
7468else
7469 if test -n "$AR"; then
7470 ac_cv_prog_AR="$AR" # Let the user override the test.
7471else
7472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473for as_dir in $PATH
7474do
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7479 ac_cv_prog_AR="${ac_tool_prefix}ar"
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 break 2
7482 fi
7483done
7484 done
7485IFS=$as_save_IFS
f35db108 7486
c915a581
JJ
7487fi
7488fi
7489AR=$ac_cv_prog_AR
7490if test -n "$AR"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7492$as_echo "$AR" >&6; }
f35db108 7493else
c915a581
JJ
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495$as_echo "no" >&6; }
f35db108
WM
7496fi
7497
7498
c915a581
JJ
7499fi
7500if test -z "$ac_cv_prog_AR"; then
7501 ac_ct_AR=$AR
7502 # Extract the first word of "ar", so it can be a program name with args.
7503set dummy ar; ac_word=$2
7504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7506if ${ac_cv_prog_ac_ct_AR+:} false; then :
c915a581
JJ
7507 $as_echo_n "(cached) " >&6
7508else
7509 if test -n "$ac_ct_AR"; then
7510 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7511else
7512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513for as_dir in $PATH
7514do
7515 IFS=$as_save_IFS
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7519 ac_cv_prog_ac_ct_AR="ar"
7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 break 2
7522 fi
7523done
7524 done
7525IFS=$as_save_IFS
f35db108 7526
c915a581
JJ
7527fi
7528fi
7529ac_ct_AR=$ac_cv_prog_ac_ct_AR
7530if test -n "$ac_ct_AR"; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7532$as_echo "$ac_ct_AR" >&6; }
f35db108 7533else
c915a581
JJ
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535$as_echo "no" >&6; }
f35db108
WM
7536fi
7537
c915a581
JJ
7538 if test "x$ac_ct_AR" = x; then
7539 AR="false"
7540 else
7541 case $cross_compiling:$ac_tool_warned in
7542yes:)
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7545ac_tool_warned=yes ;;
7546esac
7547 AR=$ac_ct_AR
7548 fi
f35db108 7549else
c915a581 7550 AR="$ac_cv_prog_AR"
f35db108
WM
7551fi
7552
c915a581 7553test -z "$AR" && AR=ar
126f707e
L
7554if test -n "$plugin_option"; then
7555 if $AR --help 2>&1 | grep -q "\--plugin"; then
9c7797a8
L
7556 touch conftest.c
7557 $AR $plugin_option rc conftest.a conftest.c
7558 if test "$?" != 0; then
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7560$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7561 else
7562 AR="$AR $plugin_option"
7563 fi
7564 rm -f conftest.*
126f707e
L
7565 fi
7566fi
c915a581 7567test -z "$AR_FLAGS" && AR_FLAGS=cru
f35db108
WM
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
c915a581
JJ
7579if test -n "$ac_tool_prefix"; then
7580 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7581set dummy ${ac_tool_prefix}strip; ac_word=$2
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7584if ${ac_cv_prog_STRIP+:} false; then :
c915a581
JJ
7585 $as_echo_n "(cached) " >&6
7586else
7587 if test -n "$STRIP"; then
7588 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7589else
7590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591for as_dir in $PATH
7592do
7593 IFS=$as_save_IFS
7594 test -z "$as_dir" && as_dir=.
7595 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7597 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 break 2
7600 fi
7601done
7602 done
7603IFS=$as_save_IFS
f35db108 7604
c915a581
JJ
7605fi
7606fi
7607STRIP=$ac_cv_prog_STRIP
7608if test -n "$STRIP"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7610$as_echo "$STRIP" >&6; }
7611else
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613$as_echo "no" >&6; }
7614fi
f35db108
WM
7615
7616
c915a581
JJ
7617fi
7618if test -z "$ac_cv_prog_STRIP"; then
7619 ac_ct_STRIP=$STRIP
7620 # Extract the first word of "strip", so it can be a program name with args.
7621set dummy strip; ac_word=$2
7622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7624if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
c915a581
JJ
7625 $as_echo_n "(cached) " >&6
7626else
7627 if test -n "$ac_ct_STRIP"; then
7628 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7629else
7630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631for as_dir in $PATH
7632do
7633 IFS=$as_save_IFS
7634 test -z "$as_dir" && as_dir=.
7635 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7637 ac_cv_prog_ac_ct_STRIP="strip"
7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 break 2
7640 fi
7641done
7642 done
7643IFS=$as_save_IFS
f35db108 7644
c915a581
JJ
7645fi
7646fi
7647ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7648if test -n "$ac_ct_STRIP"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7650$as_echo "$ac_ct_STRIP" >&6; }
7651else
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653$as_echo "no" >&6; }
7654fi
f35db108 7655
c915a581
JJ
7656 if test "x$ac_ct_STRIP" = x; then
7657 STRIP=":"
7658 else
7659 case $cross_compiling:$ac_tool_warned in
7660yes:)
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7663ac_tool_warned=yes ;;
7664esac
7665 STRIP=$ac_ct_STRIP
7666 fi
7667else
7668 STRIP="$ac_cv_prog_STRIP"
7669fi
f35db108 7670
c915a581 7671test -z "$STRIP" && STRIP=:
f35db108
WM
7672
7673
7674
7675
7676
7677
c915a581
JJ
7678if test -n "$ac_tool_prefix"; then
7679 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7680set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7683if ${ac_cv_prog_RANLIB+:} false; then :
c915a581
JJ
7684 $as_echo_n "(cached) " >&6
7685else
7686 if test -n "$RANLIB"; then
7687 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7688else
7689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690for as_dir in $PATH
7691do
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7696 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7699 fi
7700done
7701 done
7702IFS=$as_save_IFS
f35db108 7703
c915a581
JJ
7704fi
7705fi
7706RANLIB=$ac_cv_prog_RANLIB
7707if test -n "$RANLIB"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7709$as_echo "$RANLIB" >&6; }
7710else
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712$as_echo "no" >&6; }
7713fi
f35db108
WM
7714
7715
f35db108 7716fi
c915a581
JJ
7717if test -z "$ac_cv_prog_RANLIB"; then
7718 ac_ct_RANLIB=$RANLIB
7719 # Extract the first word of "ranlib", so it can be a program name with args.
7720set dummy ranlib; ac_word=$2
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7723if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
f35db108
WM
7724 $as_echo_n "(cached) " >&6
7725else
c915a581
JJ
7726 if test -n "$ac_ct_RANLIB"; then
7727 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
f35db108 7728else
c915a581
JJ
7729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730for as_dir in $PATH
7731do
7732 IFS=$as_save_IFS
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
7736 ac_cv_prog_ac_ct_RANLIB="ranlib"
7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 break 2
7739 fi
7740done
7741 done
7742IFS=$as_save_IFS
7743
f35db108 7744fi
f35db108 7745fi
c915a581
JJ
7746ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7747if test -n "$ac_ct_RANLIB"; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7749$as_echo "$ac_ct_RANLIB" >&6; }
7750else
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752$as_echo "no" >&6; }
7753fi
7754
7755 if test "x$ac_ct_RANLIB" = x; then
7756 RANLIB=":"
7757 else
7758 case $cross_compiling:$ac_tool_warned in
7759yes:)
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7762ac_tool_warned=yes ;;
7763esac
7764 RANLIB=$ac_ct_RANLIB
7765 fi
7766else
7767 RANLIB="$ac_cv_prog_RANLIB"
7768fi
f35db108 7769
c915a581 7770test -z "$RANLIB" && RANLIB=:
126f707e
L
7771if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7772 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7773 RANLIB="$RANLIB $plugin_option"
7774 fi
7775fi
f35db108
WM
7776
7777
7778
7779
f35db108
WM
7780
7781
c915a581
JJ
7782# Determine commands to create old-style static archives.
7783old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7784old_postinstall_cmds='chmod 644 $oldlib'
7785old_postuninstall_cmds=
f35db108 7786
c915a581
JJ
7787if test -n "$RANLIB"; then
7788 case $host_os in
7789 openbsd*)
7790 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7791 ;;
7792 *)
7793 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7794 ;;
7795 esac
7796 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7797fi
f35db108
WM
7798
7799case $host_os in
c915a581
JJ
7800 darwin*)
7801 lock_old_archive_extraction=yes ;;
7802 *)
7803 lock_old_archive_extraction=no ;;
f35db108
WM
7804esac
7805
f35db108 7806
f35db108 7807
f35db108 7808
f35db108 7809
f35db108 7810
f35db108
WM
7811
7812
f35db108 7813
f35db108 7814
f35db108 7815
f35db108
WM
7816
7817
7818
7819
7820
f35db108 7821
f35db108 7822
f35db108 7823
f35db108
WM
7824
7825
f35db108 7826
f35db108 7827
f35db108 7828
f35db108
WM
7829
7830
f35db108 7831
f35db108 7832
f35db108 7833
c915a581
JJ
7834
7835
7836
f35db108
WM
7837
7838
7839
7840
7841
7842
7843
7844# If no C compiler was specified, use CC.
7845LTCC=${LTCC-"$CC"}
7846
7847# If no C compiler flags were specified, use CFLAGS.
7848LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7849
7850# Allow CC to be a program name with arguments.
7851compiler=$CC
7852
f35db108 7853
c915a581
JJ
7854# Check for command to grab the raw symbol name followed by C symbol from nm.
7855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7856$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 7857if ${lt_cv_sys_global_symbol_pipe+:} false; then :
c915a581
JJ
7858 $as_echo_n "(cached) " >&6
7859else
f35db108 7860
c915a581
JJ
7861# These are sane defaults that work on at least a few old systems.
7862# [They come from Ultrix. What could be older than Ultrix?!! ;)]
f35db108 7863
c915a581
JJ
7864# Character class describing NM global symbol codes.
7865symcode='[BCDEGRST]'
f35db108 7866
c915a581
JJ
7867# Regexp to match symbols that can be accessed directly from C.
7868sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
f35db108 7869
c915a581
JJ
7870# Define system-specific variables.
7871case $host_os in
7872aix*)
7873 symcode='[BCDT]'
7874 ;;
7875cygwin* | mingw* | pw32* | cegcc*)
7876 symcode='[ABCDGISTW]'
7877 ;;
7878hpux*)
7879 if test "$host_cpu" = ia64; then
7880 symcode='[ABCDEGRST]'
7881 fi
7882 ;;
7883irix* | nonstopux*)
7884 symcode='[BCDEGRST]'
7885 ;;
7886osf*)
7887 symcode='[BCDEGQRST]'
7888 ;;
7889solaris*)
dc17ceb3 7890 symcode='[BCDRT]'
c915a581
JJ
7891 ;;
7892sco3.2v5*)
7893 symcode='[DT]'
7894 ;;
7895sysv4.2uw2*)
7896 symcode='[DT]'
7897 ;;
7898sysv5* | sco5v6* | unixware* | OpenUNIX*)
7899 symcode='[ABDT]'
7900 ;;
7901sysv4)
7902 symcode='[DFNSTU]'
7903 ;;
7904esac
f35db108 7905
c915a581
JJ
7906# If we're using GNU nm, then use its standard symbol codes.
7907case `$NM -V 2>&1` in
7908*GNU* | *'with BFD'*)
7909 symcode='[ABCDGIRSTW]' ;;
7910esac
f35db108 7911
c915a581
JJ
7912# Transform an extracted symbol line into a proper C declaration.
7913# Some systems (esp. on ia64) link data and code symbols differently,
7914# so use this general approach.
7915lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
f35db108 7916
c915a581
JJ
7917# Transform an extracted symbol line into symbol name and symbol address
7918lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7919lt_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 7920
c915a581
JJ
7921# Handle CRLF in mingw tool chain
7922opt_cr=
7923case $build_os in
7924mingw*)
7925 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7926 ;;
7927esac
f35db108 7928
c915a581
JJ
7929# Try without a prefix underscore, then with it.
7930for ac_symprfx in "" "_"; do
f35db108 7931
c915a581
JJ
7932 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7933 symxfrm="\\1 $ac_symprfx\\2 \\2"
f35db108 7934
c915a581
JJ
7935 # Write the raw and C identifiers.
7936 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7937 # Fake it for dumpbin and say T for any non-static function
7938 # and D for any global variable.
7939 # Also find C++ and __fastcall symbols from MSVC++,
7940 # which start with @ or ?.
7941 lt_cv_sys_global_symbol_pipe="$AWK '"\
7942" {last_section=section; section=\$ 3};"\
7943" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7944" \$ 0!~/External *\|/{next};"\
7945" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7946" {if(hide[section]) next};"\
7947" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7948" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7949" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7950" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7951" ' prfx=^$ac_symprfx"
7952 else
7953 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7954 fi
f35db108 7955
c915a581
JJ
7956 # Check to see that the pipe works correctly.
7957 pipe_works=no
f35db108 7958
c915a581
JJ
7959 rm -f conftest*
7960 cat > conftest.$ac_ext <<_LT_EOF
7961#ifdef __cplusplus
7962extern "C" {
7963#endif
7964char nm_test_var;
7965void nm_test_func(void);
7966void nm_test_func(void){}
7967#ifdef __cplusplus
7968}
7969#endif
7970int main(){nm_test_var='a';nm_test_func();return(0);}
7971_LT_EOF
f35db108 7972
c915a581
JJ
7973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7974 (eval $ac_compile) 2>&5
7975 ac_status=$?
7976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7977 test $ac_status = 0; }; then
7978 # Now try to grab the symbols.
7979 nlist=conftest.nm
7980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7981 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7982 ac_status=$?
7983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7984 test $ac_status = 0; } && test -s "$nlist"; then
7985 # Try sorting and uniquifying the output.
7986 if sort "$nlist" | uniq > "$nlist"T; then
7987 mv -f "$nlist"T "$nlist"
7988 else
7989 rm -f "$nlist"T
7990 fi
f35db108 7991
c915a581
JJ
7992 # Make sure that we snagged all the symbols we need.
7993 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7994 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7995 cat <<_LT_EOF > conftest.$ac_ext
7996#ifdef __cplusplus
7997extern "C" {
7998#endif
f35db108 7999
c915a581
JJ
8000_LT_EOF
8001 # Now generate the symbol file.
8002 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
f35db108 8003
c915a581
JJ
8004 cat <<_LT_EOF >> conftest.$ac_ext
8005
8006/* The mapping between symbol names and symbols. */
8007const struct {
8008 const char *name;
8009 void *address;
8010}
8011lt__PROGRAM__LTX_preloaded_symbols[] =
8012{
8013 { "@PROGRAM@", (void *) 0 },
8014_LT_EOF
8015 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8016 cat <<\_LT_EOF >> conftest.$ac_ext
8017 {0, (void *) 0}
8018};
8019
8020/* This works around a problem in FreeBSD linker */
8021#ifdef FREEBSD_WORKAROUND
8022static const void *lt_preloaded_setup() {
8023 return lt__PROGRAM__LTX_preloaded_symbols;
8024}
8025#endif
8026
8027#ifdef __cplusplus
8028}
8029#endif
8030_LT_EOF
8031 # Now try linking the two files.
8032 mv conftest.$ac_objext conftstm.$ac_objext
8033 lt_save_LIBS="$LIBS"
8034 lt_save_CFLAGS="$CFLAGS"
8035 LIBS="conftstm.$ac_objext"
8036 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8038 (eval $ac_link) 2>&5
8039 ac_status=$?
8040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8041 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8042 pipe_works=yes
8043 fi
8044 LIBS="$lt_save_LIBS"
8045 CFLAGS="$lt_save_CFLAGS"
8046 else
8047 echo "cannot find nm_test_func in $nlist" >&5
8048 fi
8049 else
8050 echo "cannot find nm_test_var in $nlist" >&5
f35db108 8051 fi
c915a581
JJ
8052 else
8053 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8054 fi
8055 else
8056 echo "$progname: failed program was:" >&5
8057 cat conftest.$ac_ext >&5
8058 fi
8059 rm -rf conftest* conftst*
f35db108 8060
c915a581
JJ
8061 # Do not use the global_symbol_pipe unless it works.
8062 if test "$pipe_works" = yes; then
8063 break
8064 else
8065 lt_cv_sys_global_symbol_pipe=
8066 fi
8067done
f35db108 8068
c915a581 8069fi
f35db108 8070
c915a581
JJ
8071if test -z "$lt_cv_sys_global_symbol_pipe"; then
8072 lt_cv_sys_global_symbol_to_cdecl=
8073fi
8074if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8076$as_echo "failed" >&6; }
8077else
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8079$as_echo "ok" >&6; }
8080fi
f35db108 8081
f35db108 8082
f35db108 8083
f35db108 8084
f35db108 8085
f35db108 8086
f35db108 8087
f35db108 8088
f35db108 8089
f35db108 8090
f35db108 8091
f35db108 8092
f35db108 8093
c915a581
JJ
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103# Check whether --enable-libtool-lock was given.
8104if test "${enable_libtool_lock+set}" = set; then :
8105 enableval=$enable_libtool_lock;
8106fi
8107
8108test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8109
8110# Some flags need to be propagated to the compiler or linker for good
8111# libtool support.
8112case $host in
8113ia64-*-hpux*)
8114 # Find out which ABI we are using.
8115 echo 'int i;' > conftest.$ac_ext
8116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8117 (eval $ac_compile) 2>&5
8118 ac_status=$?
8119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8120 test $ac_status = 0; }; then
8121 case `/usr/bin/file conftest.$ac_objext` in
8122 *ELF-32*)
8123 HPUX_IA64_MODE="32"
f35db108 8124 ;;
c915a581
JJ
8125 *ELF-64*)
8126 HPUX_IA64_MODE="64"
f35db108 8127 ;;
c915a581
JJ
8128 esac
8129 fi
8130 rm -rf conftest*
8131 ;;
8132*-*-irix6*)
8133 # Find out which ABI we are using.
8134 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8136 (eval $ac_compile) 2>&5
8137 ac_status=$?
8138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8139 test $ac_status = 0; }; then
8140 if test "$lt_cv_prog_gnu_ld" = yes; then
8141 case `/usr/bin/file conftest.$ac_objext` in
8142 *32-bit*)
8143 LD="${LD-ld} -melf32bsmip"
f35db108 8144 ;;
c915a581
JJ
8145 *N32*)
8146 LD="${LD-ld} -melf32bmipn32"
f35db108 8147 ;;
c915a581
JJ
8148 *64-bit*)
8149 LD="${LD-ld} -melf64bmip"
f35db108
WM
8150 ;;
8151 esac
c915a581
JJ
8152 else
8153 case `/usr/bin/file conftest.$ac_objext` in
8154 *32-bit*)
8155 LD="${LD-ld} -32"
8156 ;;
8157 *N32*)
8158 LD="${LD-ld} -n32"
8159 ;;
8160 *64-bit*)
8161 LD="${LD-ld} -64"
8162 ;;
f35db108 8163 esac
c915a581
JJ
8164 fi
8165 fi
8166 rm -rf conftest*
8167 ;;
f35db108 8168
c915a581
JJ
8169x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8170s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8171 # Find out which ABI we are using.
8172 echo 'int i;' > conftest.$ac_ext
8173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8174 (eval $ac_compile) 2>&5
8175 ac_status=$?
8176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8177 test $ac_status = 0; }; then
8178 case `/usr/bin/file conftest.o` in
8179 *32-bit*)
8180 case $host in
8181 x86_64-*kfreebsd*-gnu)
8182 LD="${LD-ld} -m elf_i386_fbsd"
8183 ;;
8184 x86_64-*linux*)
8185 case `/usr/bin/file conftest.o` in
8186 *x86-64*)
8187 LD="${LD-ld} -m elf32_x86_64"
8188 ;;
8189 *)
8190 LD="${LD-ld} -m elf_i386"
8191 ;;
8192 esac
8193 ;;
8194 powerpc64le-*linux*)
8195 LD="${LD-ld} -m elf32lppclinux"
8196 ;;
8197 powerpc64-*linux*)
8198 LD="${LD-ld} -m elf32ppclinux"
8199 ;;
8200 s390x-*linux*)
8201 LD="${LD-ld} -m elf_s390"
8202 ;;
8203 sparc64-*linux*)
8204 LD="${LD-ld} -m elf32_sparc"
8205 ;;
8206 esac
8207 ;;
8208 *64-bit*)
8209 case $host in
8210 x86_64-*kfreebsd*-gnu)
8211 LD="${LD-ld} -m elf_x86_64_fbsd"
8212 ;;
8213 x86_64-*linux*)
8214 LD="${LD-ld} -m elf_x86_64"
8215 ;;
8216 powerpcle-*linux*)
8217 LD="${LD-ld} -m elf64lppc"
8218 ;;
8219 powerpc-*linux*)
8220 LD="${LD-ld} -m elf64ppc"
8221 ;;
8222 s390*-*linux*|s390*-*tpf*)
8223 LD="${LD-ld} -m elf64_s390"
8224 ;;
8225 sparc*-*linux*)
8226 LD="${LD-ld} -m elf64_sparc"
8227 ;;
8228 esac
8229 ;;
8230 esac
8231 fi
8232 rm -rf conftest*
8233 ;;
f35db108 8234
c915a581
JJ
8235*-*-sco3.2v5*)
8236 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8237 SAVE_CFLAGS="$CFLAGS"
8238 CFLAGS="$CFLAGS -belf"
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8240$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 8241if ${lt_cv_cc_needs_belf+:} false; then :
c915a581
JJ
8242 $as_echo_n "(cached) " >&6
8243else
8244 ac_ext=c
8245ac_cpp='$CPP $CPPFLAGS'
8246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8248ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 8249
c915a581
JJ
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251/* end confdefs.h. */
f35db108 8252
c915a581
JJ
8253int
8254main ()
8255{
f35db108 8256
c915a581
JJ
8257 ;
8258 return 0;
8259}
8260_ACEOF
8261if ac_fn_c_try_link "$LINENO"; then :
8262 lt_cv_cc_needs_belf=yes
8263else
8264 lt_cv_cc_needs_belf=no
8265fi
8266rm -f core conftest.err conftest.$ac_objext \
8267 conftest$ac_exeext conftest.$ac_ext
8268 ac_ext=c
8269ac_cpp='$CPP $CPPFLAGS'
8270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8272ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 8273
c915a581
JJ
8274fi
8275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8276$as_echo "$lt_cv_cc_needs_belf" >&6; }
8277 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8278 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8279 CFLAGS="$SAVE_CFLAGS"
8280 fi
8281 ;;
8282sparc*-*solaris*)
8283 # Find out which ABI we are using.
8284 echo 'int i;' > conftest.$ac_ext
8285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8286 (eval $ac_compile) 2>&5
8287 ac_status=$?
8288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8289 test $ac_status = 0; }; then
8290 case `/usr/bin/file conftest.o` in
8291 *64-bit*)
8292 case $lt_cv_prog_gnu_ld in
8293 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8294 *)
8295 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8296 LD="${LD-ld} -64"
8297 fi
8298 ;;
8299 esac
f35db108
WM
8300 ;;
8301 esac
8302 fi
c915a581
JJ
8303 rm -rf conftest*
8304 ;;
8305esac
f35db108 8306
c915a581 8307need_locks="$enable_libtool_lock"
a2479b3d
L
8308
8309
c915a581
JJ
8310 case $host_os in
8311 rhapsody* | darwin*)
8312 if test -n "$ac_tool_prefix"; then
8313 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8314set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8317if ${ac_cv_prog_DSYMUTIL+:} false; then :
c915a581
JJ
8318 $as_echo_n "(cached) " >&6
8319else
8320 if test -n "$DSYMUTIL"; then
8321 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8322else
8323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324for as_dir in $PATH
8325do
8326 IFS=$as_save_IFS
8327 test -z "$as_dir" && as_dir=.
8328 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8330 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332 break 2
8333 fi
8334done
8335 done
8336IFS=$as_save_IFS
a2479b3d 8337
c915a581
JJ
8338fi
8339fi
8340DSYMUTIL=$ac_cv_prog_DSYMUTIL
8341if test -n "$DSYMUTIL"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8343$as_echo "$DSYMUTIL" >&6; }
8344else
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346$as_echo "no" >&6; }
8347fi
f35db108 8348
f35db108 8349
c915a581
JJ
8350fi
8351if test -z "$ac_cv_prog_DSYMUTIL"; then
8352 ac_ct_DSYMUTIL=$DSYMUTIL
8353 # Extract the first word of "dsymutil", so it can be a program name with args.
8354set dummy dsymutil; ac_word=$2
8355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8357if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
f35db108
WM
8358 $as_echo_n "(cached) " >&6
8359else
c915a581
JJ
8360 if test -n "$ac_ct_DSYMUTIL"; then
8361 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8362else
8363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364for as_dir in $PATH
8365do
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8370 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 break 2
8373 fi
8374done
8375 done
8376IFS=$as_save_IFS
f35db108
WM
8377
8378fi
c915a581
JJ
8379fi
8380ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8381if test -n "$ac_ct_DSYMUTIL"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8383$as_echo "$ac_ct_DSYMUTIL" >&6; }
f35db108 8384else
c915a581
JJ
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386$as_echo "no" >&6; }
f35db108
WM
8387fi
8388
c915a581
JJ
8389 if test "x$ac_ct_DSYMUTIL" = x; then
8390 DSYMUTIL=":"
8391 else
8392 case $cross_compiling:$ac_tool_warned in
8393yes:)
8394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8396ac_tool_warned=yes ;;
8397esac
8398 DSYMUTIL=$ac_ct_DSYMUTIL
8399 fi
8400else
8401 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
f35db108
WM
8402fi
8403
c915a581
JJ
8404 if test -n "$ac_tool_prefix"; then
8405 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8406set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8409if ${ac_cv_prog_NMEDIT+:} false; then :
f35db108
WM
8410 $as_echo_n "(cached) " >&6
8411else
c915a581
JJ
8412 if test -n "$NMEDIT"; then
8413 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8414else
8415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416for as_dir in $PATH
8417do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8422 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 break 2
8425 fi
8426done
8427 done
8428IFS=$as_save_IFS
f35db108
WM
8429
8430fi
c915a581
JJ
8431fi
8432NMEDIT=$ac_cv_prog_NMEDIT
8433if test -n "$NMEDIT"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8435$as_echo "$NMEDIT" >&6; }
f35db108 8436else
c915a581
JJ
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438$as_echo "no" >&6; }
f35db108
WM
8439fi
8440
8441
c915a581
JJ
8442fi
8443if test -z "$ac_cv_prog_NMEDIT"; then
8444 ac_ct_NMEDIT=$NMEDIT
8445 # Extract the first word of "nmedit", so it can be a program name with args.
8446set dummy nmedit; ac_word=$2
8447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8449if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
f35db108
WM
8450 $as_echo_n "(cached) " >&6
8451else
c915a581
JJ
8452 if test -n "$ac_ct_NMEDIT"; then
8453 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8454else
8455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456for as_dir in $PATH
8457do
8458 IFS=$as_save_IFS
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8462 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 break 2
8465 fi
8466done
8467 done
8468IFS=$as_save_IFS
f35db108
WM
8469
8470fi
c915a581
JJ
8471fi
8472ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8473if test -n "$ac_ct_NMEDIT"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8475$as_echo "$ac_ct_NMEDIT" >&6; }
8476else
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478$as_echo "no" >&6; }
8479fi
f35db108 8480
c915a581
JJ
8481 if test "x$ac_ct_NMEDIT" = x; then
8482 NMEDIT=":"
8483 else
8484 case $cross_compiling:$ac_tool_warned in
8485yes:)
8486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8488ac_tool_warned=yes ;;
8489esac
8490 NMEDIT=$ac_ct_NMEDIT
8491 fi
8492else
8493 NMEDIT="$ac_cv_prog_NMEDIT"
8494fi
f35db108 8495
c915a581
JJ
8496 if test -n "$ac_tool_prefix"; then
8497 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8498set dummy ${ac_tool_prefix}lipo; ac_word=$2
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8501if ${ac_cv_prog_LIPO+:} false; then :
f35db108
WM
8502 $as_echo_n "(cached) " >&6
8503else
c915a581
JJ
8504 if test -n "$LIPO"; then
8505 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8506else
8507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508for as_dir in $PATH
8509do
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8514 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 break 2
8517 fi
8518done
8519 done
8520IFS=$as_save_IFS
f35db108
WM
8521
8522fi
c915a581
JJ
8523fi
8524LIPO=$ac_cv_prog_LIPO
8525if test -n "$LIPO"; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8527$as_echo "$LIPO" >&6; }
8528else
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530$as_echo "no" >&6; }
8531fi
f35db108
WM
8532
8533
c915a581
JJ
8534fi
8535if test -z "$ac_cv_prog_LIPO"; then
8536 ac_ct_LIPO=$LIPO
8537 # Extract the first word of "lipo", so it can be a program name with args.
8538set dummy lipo; ac_word=$2
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8541if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
c915a581
JJ
8542 $as_echo_n "(cached) " >&6
8543else
8544 if test -n "$ac_ct_LIPO"; then
8545 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8546else
8547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548for as_dir in $PATH
8549do
8550 IFS=$as_save_IFS
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8554 ac_cv_prog_ac_ct_LIPO="lipo"
8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 break 2
8557 fi
8558done
8559 done
8560IFS=$as_save_IFS
f35db108 8561
c915a581
JJ
8562fi
8563fi
8564ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8565if test -n "$ac_ct_LIPO"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8567$as_echo "$ac_ct_LIPO" >&6; }
8568else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570$as_echo "no" >&6; }
8571fi
f35db108 8572
c915a581
JJ
8573 if test "x$ac_ct_LIPO" = x; then
8574 LIPO=":"
8575 else
8576 case $cross_compiling:$ac_tool_warned in
8577yes:)
8578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8580ac_tool_warned=yes ;;
8581esac
8582 LIPO=$ac_ct_LIPO
f35db108
WM
8583 fi
8584else
c915a581 8585 LIPO="$ac_cv_prog_LIPO"
f35db108
WM
8586fi
8587
c915a581
JJ
8588 if test -n "$ac_tool_prefix"; then
8589 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8590set dummy ${ac_tool_prefix}otool; ac_word=$2
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8593if ${ac_cv_prog_OTOOL+:} false; then :
c915a581
JJ
8594 $as_echo_n "(cached) " >&6
8595else
8596 if test -n "$OTOOL"; then
8597 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8598else
8599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600for as_dir in $PATH
8601do
8602 IFS=$as_save_IFS
8603 test -z "$as_dir" && as_dir=.
8604 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8606 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8608 break 2
8609 fi
8610done
8611 done
8612IFS=$as_save_IFS
f35db108 8613
c915a581
JJ
8614fi
8615fi
8616OTOOL=$ac_cv_prog_OTOOL
8617if test -n "$OTOOL"; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8619$as_echo "$OTOOL" >&6; }
8620else
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622$as_echo "no" >&6; }
8623fi
f35db108
WM
8624
8625
c915a581
JJ
8626fi
8627if test -z "$ac_cv_prog_OTOOL"; then
8628 ac_ct_OTOOL=$OTOOL
8629 # Extract the first word of "otool", so it can be a program name with args.
8630set dummy otool; ac_word=$2
8631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8633if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
c915a581
JJ
8634 $as_echo_n "(cached) " >&6
8635else
8636 if test -n "$ac_ct_OTOOL"; then
8637 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8638else
8639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640for as_dir in $PATH
8641do
8642 IFS=$as_save_IFS
8643 test -z "$as_dir" && as_dir=.
8644 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8646 ac_cv_prog_ac_ct_OTOOL="otool"
8647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 break 2
8649 fi
8650done
8651 done
8652IFS=$as_save_IFS
f35db108 8653
c915a581
JJ
8654fi
8655fi
8656ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8657if test -n "$ac_ct_OTOOL"; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8659$as_echo "$ac_ct_OTOOL" >&6; }
8660else
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662$as_echo "no" >&6; }
8663fi
f35db108 8664
c915a581
JJ
8665 if test "x$ac_ct_OTOOL" = x; then
8666 OTOOL=":"
8667 else
8668 case $cross_compiling:$ac_tool_warned in
8669yes:)
8670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8672ac_tool_warned=yes ;;
8673esac
8674 OTOOL=$ac_ct_OTOOL
8675 fi
8676else
8677 OTOOL="$ac_cv_prog_OTOOL"
8678fi
f35db108 8679
c915a581
JJ
8680 if test -n "$ac_tool_prefix"; then
8681 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8682set dummy ${ac_tool_prefix}otool64; ac_word=$2
8683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8684$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8685if ${ac_cv_prog_OTOOL64+:} false; then :
c915a581
JJ
8686 $as_echo_n "(cached) " >&6
8687else
8688 if test -n "$OTOOL64"; then
8689 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8690else
8691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692for as_dir in $PATH
8693do
8694 IFS=$as_save_IFS
8695 test -z "$as_dir" && as_dir=.
8696 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8698 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8700 break 2
f35db108 8701 fi
c915a581
JJ
8702done
8703 done
8704IFS=$as_save_IFS
f35db108 8705
c915a581
JJ
8706fi
8707fi
8708OTOOL64=$ac_cv_prog_OTOOL64
8709if test -n "$OTOOL64"; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8711$as_echo "$OTOOL64" >&6; }
8712else
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714$as_echo "no" >&6; }
8715fi
f35db108 8716
f35db108 8717
c915a581
JJ
8718fi
8719if test -z "$ac_cv_prog_OTOOL64"; then
8720 ac_ct_OTOOL64=$OTOOL64
8721 # Extract the first word of "otool64", so it can be a program name with args.
8722set dummy otool64; ac_word=$2
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8725if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
c915a581
JJ
8726 $as_echo_n "(cached) " >&6
8727else
8728 if test -n "$ac_ct_OTOOL64"; then
8729 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8730else
8731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732for as_dir in $PATH
8733do
8734 IFS=$as_save_IFS
8735 test -z "$as_dir" && as_dir=.
8736 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
8738 ac_cv_prog_ac_ct_OTOOL64="otool64"
8739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8740 break 2
8741 fi
8742done
8743 done
8744IFS=$as_save_IFS
f35db108 8745
c915a581
JJ
8746fi
8747fi
8748ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8749if test -n "$ac_ct_OTOOL64"; then
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8751$as_echo "$ac_ct_OTOOL64" >&6; }
8752else
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754$as_echo "no" >&6; }
8755fi
f35db108 8756
c915a581
JJ
8757 if test "x$ac_ct_OTOOL64" = x; then
8758 OTOOL64=":"
8759 else
8760 case $cross_compiling:$ac_tool_warned in
8761yes:)
8762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8764ac_tool_warned=yes ;;
8765esac
8766 OTOOL64=$ac_ct_OTOOL64
8767 fi
8768else
8769 OTOOL64="$ac_cv_prog_OTOOL64"
8770fi
f35db108 8771
f35db108 8772
f35db108 8773
f35db108 8774
f35db108 8775
f35db108 8776
f35db108 8777
f35db108 8778
f35db108 8779
f35db108 8780
f35db108 8781
f35db108 8782
f35db108 8783
f35db108 8784
f35db108 8785
f35db108 8786
f35db108 8787
f35db108 8788
f35db108 8789
f35db108 8790
f35db108 8791
f35db108 8792
f35db108 8793
f35db108 8794
f35db108 8795
c915a581
JJ
8796
8797
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8799$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 8800if ${lt_cv_apple_cc_single_mod+:} false; then :
c915a581
JJ
8801 $as_echo_n "(cached) " >&6
8802else
8803 lt_cv_apple_cc_single_mod=no
8804 if test -z "${LT_MULTI_MODULE}"; then
8805 # By default we will add the -single_module flag. You can override
8806 # by either setting the environment variable LT_MULTI_MODULE
8807 # non-empty at configure time, or by adding -multi_module to the
8808 # link flags.
8809 rm -rf libconftest.dylib*
8810 echo "int foo(void){return 1;}" > conftest.c
8811 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8812-dynamiclib -Wl,-single_module conftest.c" >&5
8813 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8814 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8815 _lt_result=$?
8816 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8817 lt_cv_apple_cc_single_mod=yes
f35db108 8818 else
c915a581 8819 cat conftest.err >&5
f35db108 8820 fi
c915a581
JJ
8821 rm -rf libconftest.dylib*
8822 rm -f conftest.*
f35db108 8823 fi
c915a581
JJ
8824fi
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8826$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8828$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 8829if ${lt_cv_ld_exported_symbols_list+:} false; then :
c915a581
JJ
8830 $as_echo_n "(cached) " >&6
8831else
8832 lt_cv_ld_exported_symbols_list=no
8833 save_LDFLAGS=$LDFLAGS
8834 echo "_main" > conftest.sym
8835 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108
WM
8837/* end confdefs.h. */
8838
8839int
8840main ()
8841{
8842
8843 ;
8844 return 0;
8845}
8846_ACEOF
8847if ac_fn_c_try_link "$LINENO"; then :
c915a581
JJ
8848 lt_cv_ld_exported_symbols_list=yes
8849else
8850 lt_cv_ld_exported_symbols_list=no
f35db108
WM
8851fi
8852rm -f core conftest.err conftest.$ac_objext \
8853 conftest$ac_exeext conftest.$ac_ext
c915a581 8854 LDFLAGS="$save_LDFLAGS"
f35db108 8855
c915a581
JJ
8856fi
8857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8858$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8860$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 8861if ${lt_cv_ld_force_load+:} false; then :
c915a581
JJ
8862 $as_echo_n "(cached) " >&6
8863else
8864 lt_cv_ld_force_load=no
8865 cat > conftest.c << _LT_EOF
8866int forced_loaded() { return 2;}
8867_LT_EOF
8868 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8869 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8870 echo "$AR cru libconftest.a conftest.o" >&5
8871 $AR cru libconftest.a conftest.o 2>&5
8872 cat > conftest.c << _LT_EOF
8873int main() { return 0;}
8874_LT_EOF
8875 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8876 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8877 _lt_result=$?
8878 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8879 lt_cv_ld_force_load=yes
f35db108 8880 else
c915a581
JJ
8881 cat conftest.err >&5
8882 fi
8883 rm -f conftest.err libconftest.a conftest conftest.c
8884 rm -rf conftest.dSYM
f35db108 8885
c915a581
JJ
8886fi
8887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8888$as_echo "$lt_cv_ld_force_load" >&6; }
1352bc88
IS
8889 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8890 # build without first building modern cctools / linker.
8891 case $host_cpu-$host_os in
8892 *-rhapsody* | *-darwin1.[012])
c915a581 8893 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1352bc88 8894 *-darwin1.*)
c915a581 8895 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1352bc88
IS
8896 *-darwin*)
8897 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8898 # deployment target is forced to an earlier version.
8899 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
6a6d3817 8900 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
1352bc88 8901 ;;
ebf6d33b 8902 10.[012][,.]*)
1352bc88
IS
8903 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8904 ;;
8905 *)
8906 ;;
8907 esac
c915a581
JJ
8908 ;;
8909 esac
8910 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8911 _lt_dar_single_mod='$single_module'
8912 fi
8913 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8914 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8915 else
8916 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8917 fi
8918 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8919 _lt_dsymutil='~$DSYMUTIL $lib || :'
8920 else
8921 _lt_dsymutil=
8922 fi
8923 ;;
8924 esac
f35db108 8925
c915a581
JJ
8926for ac_header in dlfcn.h
8927do :
8928 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8929"
22e05272 8930if test "x$ac_cv_header_dlfcn_h" = xyes; then :
c915a581
JJ
8931 cat >>confdefs.h <<_ACEOF
8932#define HAVE_DLFCN_H 1
f35db108 8933_ACEOF
f35db108 8934
f35db108 8935fi
f35db108 8936
c915a581 8937done
f35db108 8938
f35db108 8939
f35db108 8940
f35db108 8941
f35db108
WM
8942
8943
c915a581 8944# Set options
f35db108 8945
f35db108 8946
f35db108 8947
f35db108 8948
c915a581 8949 enable_win32_dll=no
f35db108 8950
f35db108 8951
c915a581
JJ
8952 # Check whether --enable-shared was given.
8953if test "${enable_shared+set}" = set; then :
8954 enableval=$enable_shared; p=${PACKAGE-default}
8955 case $enableval in
8956 yes) enable_shared=yes ;;
8957 no) enable_shared=no ;;
8958 *)
8959 enable_shared=no
8960 # Look at the argument we got. We use all the common list separators.
8961 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8962 for pkg in $enableval; do
8963 IFS="$lt_save_ifs"
8964 if test "X$pkg" = "X$p"; then
8965 enable_shared=yes
8966 fi
8967 done
8968 IFS="$lt_save_ifs"
f35db108 8969 ;;
c915a581
JJ
8970 esac
8971else
8972 enable_shared=yes
8973fi
f35db108 8974
f35db108 8975
f35db108 8976
f35db108 8977
f35db108 8978
f35db108 8979
f35db108 8980
c915a581
JJ
8981
8982
8983 # Check whether --enable-static was given.
8984if test "${enable_static+set}" = set; then :
8985 enableval=$enable_static; p=${PACKAGE-default}
8986 case $enableval in
8987 yes) enable_static=yes ;;
8988 no) enable_static=no ;;
8989 *)
8990 enable_static=no
8991 # Look at the argument we got. We use all the common list separators.
8992 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8993 for pkg in $enableval; do
8994 IFS="$lt_save_ifs"
8995 if test "X$pkg" = "X$p"; then
8996 enable_static=yes
8997 fi
8998 done
8999 IFS="$lt_save_ifs"
9000 ;;
9001 esac
f35db108 9002else
c915a581 9003 enable_static=yes
f35db108
WM
9004fi
9005
f35db108 9006
f35db108 9007
f35db108 9008
a2479b3d 9009
f35db108 9010
f35db108 9011
f35db108 9012
f35db108 9013
f35db108 9014
c915a581
JJ
9015# Check whether --with-pic was given.
9016if test "${with_pic+set}" = set; then :
9017 withval=$with_pic; pic_mode="$withval"
9018else
9019 pic_mode=default
9020fi
f35db108 9021
f35db108 9022
c915a581 9023test -z "$pic_mode" && pic_mode=default
f35db108 9024
f35db108 9025
f35db108 9026
f35db108 9027
f35db108 9028
f35db108 9029
c915a581
JJ
9030
9031 # Check whether --enable-fast-install was given.
9032if test "${enable_fast_install+set}" = set; then :
9033 enableval=$enable_fast_install; p=${PACKAGE-default}
9034 case $enableval in
9035 yes) enable_fast_install=yes ;;
9036 no) enable_fast_install=no ;;
9037 *)
9038 enable_fast_install=no
9039 # Look at the argument we got. We use all the common list separators.
9040 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9041 for pkg in $enableval; do
9042 IFS="$lt_save_ifs"
9043 if test "X$pkg" = "X$p"; then
9044 enable_fast_install=yes
9045 fi
9046 done
9047 IFS="$lt_save_ifs"
f35db108 9048 ;;
c915a581
JJ
9049 esac
9050else
9051 enable_fast_install=yes
9052fi
f35db108
WM
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
c915a581
JJ
9064# This can be used to rebuild libtool when needed
9065LIBTOOL_DEPS="$ltmain"
f35db108 9066
c915a581
JJ
9067# Always use our own libtool.
9068LIBTOOL='$(SHELL) $(top_builddir)/libtool'
f35db108
WM
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
c915a581 9095test -z "$LN_S" && LN_S="ln -s"
f35db108
WM
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
c915a581
JJ
9110if test -n "${ZSH_VERSION+set}" ; then
9111 setopt NO_GLOB_SUBST
9112fi
f35db108 9113
c915a581
JJ
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9115$as_echo_n "checking for objdir... " >&6; }
22e05272 9116if ${lt_cv_objdir+:} false; then :
c915a581
JJ
9117 $as_echo_n "(cached) " >&6
9118else
9119 rm -f .libs 2>/dev/null
9120mkdir .libs 2>/dev/null
9121if test -d .libs; then
9122 lt_cv_objdir=.libs
9123else
9124 # MS-DOS does not allow filenames that begin with a dot.
9125 lt_cv_objdir=_libs
9126fi
9127rmdir .libs 2>/dev/null
9128fi
9129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9130$as_echo "$lt_cv_objdir" >&6; }
9131objdir=$lt_cv_objdir
f35db108
WM
9132
9133
9134
9135
9136
c915a581
JJ
9137cat >>confdefs.h <<_ACEOF
9138#define LT_OBJDIR "$lt_cv_objdir/"
9139_ACEOF
f35db108
WM
9140
9141
9142
9143
c915a581
JJ
9144case $host_os in
9145aix3*)
9146 # AIX sometimes has problems with the GCC collect2 program. For some
9147 # reason, if we set the COLLECT_NAMES environment variable, the problems
9148 # vanish in a puff of smoke.
9149 if test "X${COLLECT_NAMES+set}" != Xset; then
9150 COLLECT_NAMES=
9151 export COLLECT_NAMES
9152 fi
9153 ;;
9154esac
f35db108 9155
c915a581
JJ
9156# Global variables:
9157ofile=libtool
9158can_build_shared=yes
f35db108 9159
c915a581
JJ
9160# All known linkers require a `.a' archive for static linking (except MSVC,
9161# which needs '.lib').
9162libext=a
f35db108 9163
c915a581 9164with_gnu_ld="$lt_cv_prog_gnu_ld"
f35db108 9165
c915a581
JJ
9166old_CC="$CC"
9167old_CFLAGS="$CFLAGS"
f35db108 9168
c915a581
JJ
9169# Set sane defaults for various variables
9170test -z "$CC" && CC=cc
9171test -z "$LTCC" && LTCC=$CC
9172test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9173test -z "$LD" && LD=ld
9174test -z "$ac_objext" && ac_objext=o
f35db108 9175
c915a581
JJ
9176for cc_temp in $compiler""; do
9177 case $cc_temp in
9178 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9179 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9180 \-*) ;;
9181 *) break;;
9182 esac
9183done
9184cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
f35db108
WM
9185
9186
c915a581
JJ
9187# Only perform the check for file, if the check method requires it
9188test -z "$MAGIC_CMD" && MAGIC_CMD=file
9189case $deplibs_check_method in
9190file_magic*)
9191 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9193$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 9194if ${lt_cv_path_MAGIC_CMD+:} false; then :
c915a581
JJ
9195 $as_echo_n "(cached) " >&6
9196else
9197 case $MAGIC_CMD in
9198[\\/*] | ?:[\\/]*)
9199 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9200 ;;
9201*)
9202 lt_save_MAGIC_CMD="$MAGIC_CMD"
9203 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9204 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9205 for ac_dir in $ac_dummy; do
9206 IFS="$lt_save_ifs"
9207 test -z "$ac_dir" && ac_dir=.
9208 if test -f $ac_dir/${ac_tool_prefix}file; then
9209 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9210 if test -n "$file_magic_test_file"; then
9211 case $deplibs_check_method in
9212 "file_magic "*)
9213 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9214 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9215 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9216 $EGREP "$file_magic_regex" > /dev/null; then
9217 :
9218 else
9219 cat <<_LT_EOF 1>&2
f35db108 9220
c915a581
JJ
9221*** Warning: the command libtool uses to detect shared libraries,
9222*** $file_magic_cmd, produces output that libtool cannot recognize.
9223*** The result is that libtool may fail to recognize shared libraries
9224*** as such. This will affect the creation of libtool libraries that
9225*** depend on shared libraries, but programs linked with such libtool
9226*** libraries will work regardless of this problem. Nevertheless, you
9227*** may want to report the problem to your system manager and/or to
9228*** bug-libtool@gnu.org
f35db108 9229
c915a581
JJ
9230_LT_EOF
9231 fi ;;
9232 esac
9233 fi
9234 break
9235 fi
9236 done
9237 IFS="$lt_save_ifs"
9238 MAGIC_CMD="$lt_save_MAGIC_CMD"
9239 ;;
9240esac
9241fi
f35db108 9242
c915a581
JJ
9243MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9244if test -n "$MAGIC_CMD"; then
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9246$as_echo "$MAGIC_CMD" >&6; }
9247else
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9249$as_echo "no" >&6; }
9250fi
f35db108
WM
9251
9252
9253
9254
9255
c915a581
JJ
9256if test -z "$lt_cv_path_MAGIC_CMD"; then
9257 if test -n "$ac_tool_prefix"; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9259$as_echo_n "checking for file... " >&6; }
22e05272 9260if ${lt_cv_path_MAGIC_CMD+:} false; then :
c915a581
JJ
9261 $as_echo_n "(cached) " >&6
9262else
9263 case $MAGIC_CMD in
9264[\\/*] | ?:[\\/]*)
9265 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9266 ;;
9267*)
9268 lt_save_MAGIC_CMD="$MAGIC_CMD"
9269 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9270 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9271 for ac_dir in $ac_dummy; do
9272 IFS="$lt_save_ifs"
9273 test -z "$ac_dir" && ac_dir=.
9274 if test -f $ac_dir/file; then
9275 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9276 if test -n "$file_magic_test_file"; then
9277 case $deplibs_check_method in
9278 "file_magic "*)
9279 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9281 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9282 $EGREP "$file_magic_regex" > /dev/null; then
9283 :
9284 else
9285 cat <<_LT_EOF 1>&2
f35db108 9286
c915a581
JJ
9287*** Warning: the command libtool uses to detect shared libraries,
9288*** $file_magic_cmd, produces output that libtool cannot recognize.
9289*** The result is that libtool may fail to recognize shared libraries
9290*** as such. This will affect the creation of libtool libraries that
9291*** depend on shared libraries, but programs linked with such libtool
9292*** libraries will work regardless of this problem. Nevertheless, you
9293*** may want to report the problem to your system manager and/or to
9294*** bug-libtool@gnu.org
f35db108 9295
c915a581
JJ
9296_LT_EOF
9297 fi ;;
9298 esac
9299 fi
9300 break
9301 fi
9302 done
9303 IFS="$lt_save_ifs"
9304 MAGIC_CMD="$lt_save_MAGIC_CMD"
9305 ;;
9306esac
9307fi
f35db108 9308
c915a581
JJ
9309MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9310if test -n "$MAGIC_CMD"; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9312$as_echo "$MAGIC_CMD" >&6; }
9313else
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9315$as_echo "no" >&6; }
9316fi
f35db108
WM
9317
9318
c915a581
JJ
9319 else
9320 MAGIC_CMD=:
9321 fi
9322fi
f35db108 9323
c915a581
JJ
9324 fi
9325 ;;
9326esac
f35db108 9327
c915a581 9328# Use C for the default configuration in the libtool script
f35db108 9329
c915a581
JJ
9330lt_save_CC="$CC"
9331ac_ext=c
9332ac_cpp='$CPP $CPPFLAGS'
9333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9335ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108
WM
9336
9337
c915a581
JJ
9338# Source file extension for C test sources.
9339ac_ext=c
f35db108 9340
c915a581
JJ
9341# Object file extension for compiled C test sources.
9342objext=o
9343objext=$objext
f35db108 9344
c915a581
JJ
9345# Code to be used in simple compile tests
9346lt_simple_compile_test_code="int some_variable = 0;"
f35db108 9347
c915a581
JJ
9348# Code to be used in simple link tests
9349lt_simple_link_test_code='int main(){return(0);}'
f35db108
WM
9350
9351
9352
9353
9354
9355
9356
c915a581
JJ
9357# If no C compiler was specified, use CC.
9358LTCC=${LTCC-"$CC"}
f35db108 9359
c915a581
JJ
9360# If no C compiler flags were specified, use CFLAGS.
9361LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
f35db108 9362
c915a581
JJ
9363# Allow CC to be a program name with arguments.
9364compiler=$CC
f35db108 9365
c915a581
JJ
9366# Save the default compiler, since it gets overwritten when the other
9367# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9368compiler_DEFAULT=$CC
f35db108 9369
c915a581
JJ
9370# save warnings/boilerplate of simple test code
9371ac_outfile=conftest.$ac_objext
9372echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9373eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9374_lt_compiler_boilerplate=`cat conftest.err`
9375$RM conftest*
f35db108 9376
c915a581
JJ
9377ac_outfile=conftest.$ac_objext
9378echo "$lt_simple_link_test_code" >conftest.$ac_ext
9379eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9380_lt_linker_boilerplate=`cat conftest.err`
9381$RM -r conftest*
f35db108
WM
9382
9383
c915a581
JJ
9384## CAVEAT EMPTOR:
9385## There is no encapsulation within the following macros, do not change
9386## the running order or otherwise move them around unless you know exactly
9387## what you are doing...
9388if test -n "$compiler"; then
f35db108 9389
c915a581 9390lt_prog_compiler_no_builtin_flag=
f35db108 9391
c915a581
JJ
9392if test "$GCC" = yes; then
9393 case $cc_basename in
9394 nvcc*)
9395 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9396 *)
9397 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9398 esac
f35db108 9399
c915a581
JJ
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9401$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 9402if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
c915a581
JJ
9403 $as_echo_n "(cached) " >&6
9404else
9405 lt_cv_prog_compiler_rtti_exceptions=no
9406 ac_outfile=conftest.$ac_objext
9407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9408 lt_compiler_flag="-fno-rtti -fno-exceptions"
9409 # Insert the option either (1) after the last *FLAGS variable, or
9410 # (2) before a word containing "conftest.", or (3) at the end.
9411 # Note that $ac_compile itself does not contain backslashes and begins
9412 # with a dollar sign (not a hyphen), so the echo should work correctly.
9413 # The option is referenced via a variable to avoid confusing sed.
9414 lt_compile=`echo "$ac_compile" | $SED \
9415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9417 -e 's:$: $lt_compiler_flag:'`
9418 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9419 (eval "$lt_compile" 2>conftest.err)
9420 ac_status=$?
9421 cat conftest.err >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 if (exit $ac_status) && test -s "$ac_outfile"; then
9424 # The compiler can only warn and ignore the option if not recognized
9425 # So say no if there are warnings other than the usual output.
9426 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9428 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9429 lt_cv_prog_compiler_rtti_exceptions=yes
9430 fi
9431 fi
9432 $RM conftest*
f35db108 9433
c915a581
JJ
9434fi
9435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9436$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
f35db108 9437
c915a581
JJ
9438if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9439 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9440else
9441 :
9442fi
f35db108 9443
c915a581 9444fi
f35db108
WM
9445
9446
9447
9448
9449
9450
c915a581
JJ
9451 lt_prog_compiler_wl=
9452lt_prog_compiler_pic=
9453lt_prog_compiler_static=
f35db108 9454
c915a581
JJ
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9456$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
f35db108 9457
c915a581
JJ
9458 if test "$GCC" = yes; then
9459 lt_prog_compiler_wl='-Wl,'
9460 lt_prog_compiler_static='-static'
f35db108 9461
c915a581
JJ
9462 case $host_os in
9463 aix*)
9464 # All AIX code is PIC.
9465 if test "$host_cpu" = ia64; then
9466 # AIX 5 now supports IA64 processor
9467 lt_prog_compiler_static='-Bstatic'
9468 fi
9469 lt_prog_compiler_pic='-fPIC'
9470 ;;
f35db108 9471
c915a581
JJ
9472 amigaos*)
9473 case $host_cpu in
9474 powerpc)
9475 # see comment about AmigaOS4 .so support
9476 lt_prog_compiler_pic='-fPIC'
9477 ;;
9478 m68k)
9479 # FIXME: we need at least 68020 code to build shared libraries, but
9480 # adding the `-m68020' flag to GCC prevents building anything better,
9481 # like `-m68040'.
9482 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9483 ;;
9484 esac
9485 ;;
f35db108 9486
c915a581
JJ
9487 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9488 # PIC is the default for these OSes.
9489 ;;
f35db108 9490
c915a581
JJ
9491 mingw* | cygwin* | pw32* | os2* | cegcc*)
9492 # This hack is so that the source file can tell whether it is being
9493 # built for inclusion in a dll (and should export symbols for example).
9494 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9495 # (--disable-auto-import) libraries
9496 lt_prog_compiler_pic='-DDLL_EXPORT'
9497 ;;
f35db108 9498
c915a581
JJ
9499 darwin* | rhapsody*)
9500 # PIC is the default on this platform
9501 # Common symbols not allowed in MH_DYLIB files
9502 lt_prog_compiler_pic='-fno-common'
9503 ;;
f35db108 9504
c915a581
JJ
9505 haiku*)
9506 # PIC is the default for Haiku.
9507 # The "-static" flag exists, but is broken.
9508 lt_prog_compiler_static=
9509 ;;
f35db108 9510
c915a581
JJ
9511 hpux*)
9512 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9513 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9514 # sets the default TLS model and affects inlining.
9515 case $host_cpu in
9516 hppa*64*)
9517 # +Z the default
9518 ;;
9519 *)
9520 lt_prog_compiler_pic='-fPIC'
9521 ;;
9522 esac
9523 ;;
f35db108 9524
c915a581
JJ
9525 interix[3-9]*)
9526 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9527 # Instead, we relocate shared libraries at runtime.
9528 ;;
a2479b3d 9529
c915a581
JJ
9530 msdosdjgpp*)
9531 # Just because we use GCC doesn't mean we suddenly get shared libraries
9532 # on systems that don't support them.
9533 lt_prog_compiler_can_build_shared=no
9534 enable_shared=no
9535 ;;
a2479b3d 9536
c915a581
JJ
9537 *nto* | *qnx*)
9538 # QNX uses GNU C++, but need to define -shared option too, otherwise
9539 # it will coredump.
9540 lt_prog_compiler_pic='-fPIC -shared'
9541 ;;
a2479b3d 9542
c915a581
JJ
9543 sysv4*MP*)
9544 if test -d /usr/nec; then
9545 lt_prog_compiler_pic=-Kconform_pic
9546 fi
9547 ;;
a2479b3d 9548
c915a581
JJ
9549 *)
9550 lt_prog_compiler_pic='-fPIC'
9551 ;;
9552 esac
a2479b3d 9553
c915a581
JJ
9554 case $cc_basename in
9555 nvcc*) # Cuda Compiler Driver 2.2
9556 lt_prog_compiler_wl='-Xlinker '
9557 lt_prog_compiler_pic='-Xcompiler -fPIC'
9558 ;;
9559 esac
9560 else
9561 # PORTME Check for flag to pass linker flags through the system compiler.
9562 case $host_os in
9563 aix*)
9564 lt_prog_compiler_wl='-Wl,'
9565 if test "$host_cpu" = ia64; then
9566 # AIX 5 now supports IA64 processor
9567 lt_prog_compiler_static='-Bstatic'
9568 else
9569 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9570 fi
9571 ;;
f35db108 9572
c915a581
JJ
9573 mingw* | cygwin* | pw32* | os2* | cegcc*)
9574 # This hack is so that the source file can tell whether it is being
9575 # built for inclusion in a dll (and should export symbols for example).
9576 lt_prog_compiler_pic='-DDLL_EXPORT'
9577 ;;
f35db108 9578
c915a581
JJ
9579 hpux9* | hpux10* | hpux11*)
9580 lt_prog_compiler_wl='-Wl,'
9581 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9582 # not for PA HP-UX.
9583 case $host_cpu in
9584 hppa*64*|ia64*)
9585 # +Z the default
9586 ;;
9587 *)
9588 lt_prog_compiler_pic='+Z'
9589 ;;
9590 esac
9591 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9592 lt_prog_compiler_static='${wl}-a ${wl}archive'
9593 ;;
f35db108 9594
c915a581
JJ
9595 irix5* | irix6* | nonstopux*)
9596 lt_prog_compiler_wl='-Wl,'
9597 # PIC (with -KPIC) is the default.
9598 lt_prog_compiler_static='-non_shared'
9599 ;;
f35db108 9600
c915a581
JJ
9601 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9602 case $cc_basename in
9603 # old Intel for x86_64 which still supported -KPIC.
9604 ecc*)
9605 lt_prog_compiler_wl='-Wl,'
9606 lt_prog_compiler_pic='-KPIC'
9607 lt_prog_compiler_static='-static'
9608 ;;
9609 # icc used to be incompatible with GCC.
9610 # ICC 10 doesn't accept -KPIC any more.
9611 icc* | ifort*)
9612 lt_prog_compiler_wl='-Wl,'
9613 lt_prog_compiler_pic='-fPIC'
9614 lt_prog_compiler_static='-static'
9615 ;;
9616 # Lahey Fortran 8.1.
9617 lf95*)
9618 lt_prog_compiler_wl='-Wl,'
9619 lt_prog_compiler_pic='--shared'
9620 lt_prog_compiler_static='--static'
9621 ;;
9622 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9623 # Portland Group compilers (*not* the Pentium gcc compiler,
9624 # which looks to be a dead project)
9625 lt_prog_compiler_wl='-Wl,'
9626 lt_prog_compiler_pic='-fpic'
9627 lt_prog_compiler_static='-Bstatic'
9628 ;;
9629 ccc*)
9630 lt_prog_compiler_wl='-Wl,'
9631 # All Alpha code is PIC.
9632 lt_prog_compiler_static='-non_shared'
9633 ;;
9634 xl* | bgxl* | bgf* | mpixl*)
9635 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9636 lt_prog_compiler_wl='-Wl,'
9637 lt_prog_compiler_pic='-qpic'
9638 lt_prog_compiler_static='-qstaticlink'
9639 ;;
9640 *)
9641 case `$CC -V 2>&1 | sed 5q` in
9642 *Sun\ F* | *Sun*Fortran*)
9643 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9644 lt_prog_compiler_pic='-KPIC'
9645 lt_prog_compiler_static='-Bstatic'
9646 lt_prog_compiler_wl=''
9647 ;;
9648 *Sun\ C*)
9649 # Sun C 5.9
9650 lt_prog_compiler_pic='-KPIC'
9651 lt_prog_compiler_static='-Bstatic'
9652 lt_prog_compiler_wl='-Wl,'
9653 ;;
9654 esac
9655 ;;
9656 esac
9657 ;;
f35db108 9658
c915a581
JJ
9659 newsos6)
9660 lt_prog_compiler_pic='-KPIC'
9661 lt_prog_compiler_static='-Bstatic'
9662 ;;
f35db108 9663
c915a581
JJ
9664 *nto* | *qnx*)
9665 # QNX uses GNU C++, but need to define -shared option too, otherwise
9666 # it will coredump.
9667 lt_prog_compiler_pic='-fPIC -shared'
9668 ;;
f35db108 9669
c915a581
JJ
9670 osf3* | osf4* | osf5*)
9671 lt_prog_compiler_wl='-Wl,'
9672 # All OSF/1 code is PIC.
9673 lt_prog_compiler_static='-non_shared'
9674 ;;
f35db108 9675
c915a581
JJ
9676 rdos*)
9677 lt_prog_compiler_static='-non_shared'
9678 ;;
f35db108 9679
c915a581
JJ
9680 solaris*)
9681 lt_prog_compiler_pic='-KPIC'
9682 lt_prog_compiler_static='-Bstatic'
9683 case $cc_basename in
9684 f77* | f90* | f95*)
9685 lt_prog_compiler_wl='-Qoption ld ';;
9686 *)
9687 lt_prog_compiler_wl='-Wl,';;
9688 esac
9689 ;;
f35db108 9690
c915a581
JJ
9691 sunos4*)
9692 lt_prog_compiler_wl='-Qoption ld '
9693 lt_prog_compiler_pic='-PIC'
9694 lt_prog_compiler_static='-Bstatic'
9695 ;;
f35db108 9696
c915a581
JJ
9697 sysv4 | sysv4.2uw2* | sysv4.3*)
9698 lt_prog_compiler_wl='-Wl,'
9699 lt_prog_compiler_pic='-KPIC'
9700 lt_prog_compiler_static='-Bstatic'
9701 ;;
9702
9703 sysv4*MP*)
9704 if test -d /usr/nec ;then
9705 lt_prog_compiler_pic='-Kconform_pic'
9706 lt_prog_compiler_static='-Bstatic'
f35db108
WM
9707 fi
9708 ;;
c915a581
JJ
9709
9710 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9711 lt_prog_compiler_wl='-Wl,'
9712 lt_prog_compiler_pic='-KPIC'
9713 lt_prog_compiler_static='-Bstatic'
9714 ;;
9715
9716 unicos*)
9717 lt_prog_compiler_wl='-Wl,'
9718 lt_prog_compiler_can_build_shared=no
9719 ;;
9720
9721 uts4*)
9722 lt_prog_compiler_pic='-pic'
9723 lt_prog_compiler_static='-Bstatic'
9724 ;;
9725
9726 *)
9727 lt_prog_compiler_can_build_shared=no
9728 ;;
f35db108 9729 esac
f35db108 9730 fi
f35db108 9731
c915a581
JJ
9732case $host_os in
9733 # For platforms which do not support PIC, -DPIC is meaningless:
9734 *djgpp*)
9735 lt_prog_compiler_pic=
f35db108 9736 ;;
c915a581
JJ
9737 *)
9738 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
f35db108 9739 ;;
c915a581
JJ
9740esac
9741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9742$as_echo "$lt_prog_compiler_pic" >&6; }
f35db108 9743
f35db108 9744
f35db108 9745
f35db108 9746
f35db108 9747
f35db108 9748
c915a581
JJ
9749#
9750# Check to make sure the PIC flag actually works.
9751#
9752if test -n "$lt_prog_compiler_pic"; then
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9754$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 9755if ${lt_cv_prog_compiler_pic_works+:} false; then :
c915a581
JJ
9756 $as_echo_n "(cached) " >&6
9757else
9758 lt_cv_prog_compiler_pic_works=no
9759 ac_outfile=conftest.$ac_objext
9760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9761 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9762 # Insert the option either (1) after the last *FLAGS variable, or
9763 # (2) before a word containing "conftest.", or (3) at the end.
9764 # Note that $ac_compile itself does not contain backslashes and begins
9765 # with a dollar sign (not a hyphen), so the echo should work correctly.
9766 # The option is referenced via a variable to avoid confusing sed.
9767 lt_compile=`echo "$ac_compile" | $SED \
9768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9770 -e 's:$: $lt_compiler_flag:'`
9771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9772 (eval "$lt_compile" 2>conftest.err)
9773 ac_status=$?
9774 cat conftest.err >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 if (exit $ac_status) && test -s "$ac_outfile"; then
9777 # The compiler can only warn and ignore the option if not recognized
9778 # So say no if there are warnings other than the usual output.
9779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9781 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9782 lt_cv_prog_compiler_pic_works=yes
9783 fi
9784 fi
9785 $RM conftest*
f35db108 9786
c915a581
JJ
9787fi
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9789$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
f35db108 9790
c915a581
JJ
9791if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9792 case $lt_prog_compiler_pic in
9793 "" | " "*) ;;
9794 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9795 esac
9796else
9797 lt_prog_compiler_pic=
9798 lt_prog_compiler_can_build_shared=no
9799fi
f35db108 9800
c915a581 9801fi
f35db108 9802
f35db108 9803
f35db108 9804
f35db108 9805
f35db108 9806
f35db108 9807
c915a581
JJ
9808#
9809# Check to make sure the static flag actually works.
9810#
9811wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9813$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 9814if ${lt_cv_prog_compiler_static_works+:} false; then :
c915a581
JJ
9815 $as_echo_n "(cached) " >&6
9816else
9817 lt_cv_prog_compiler_static_works=no
9818 save_LDFLAGS="$LDFLAGS"
9819 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9820 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9821 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9822 # The linker can only warn and ignore the option if not recognized
9823 # So say no if there are warnings
9824 if test -s conftest.err; then
9825 # Append any errors to the config.log.
9826 cat conftest.err 1>&5
9827 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9829 if diff conftest.exp conftest.er2 >/dev/null; then
9830 lt_cv_prog_compiler_static_works=yes
9831 fi
9832 else
9833 lt_cv_prog_compiler_static_works=yes
9834 fi
9835 fi
9836 $RM -r conftest*
9837 LDFLAGS="$save_LDFLAGS"
f35db108 9838
c915a581
JJ
9839fi
9840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9841$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
f35db108 9842
c915a581
JJ
9843if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9844 :
9845else
9846 lt_prog_compiler_static=
9847fi
f35db108 9848
f35db108 9849
f35db108 9850
f35db108 9851
f35db108 9852
f35db108 9853
f35db108 9854
c915a581
JJ
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9856$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9857if ${lt_cv_prog_compiler_c_o+:} false; then :
c915a581
JJ
9858 $as_echo_n "(cached) " >&6
9859else
9860 lt_cv_prog_compiler_c_o=no
9861 $RM -r conftest 2>/dev/null
9862 mkdir conftest
9863 cd conftest
9864 mkdir out
9865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
f35db108 9866
c915a581
JJ
9867 lt_compiler_flag="-o out/conftest2.$ac_objext"
9868 # Insert the option either (1) after the last *FLAGS variable, or
9869 # (2) before a word containing "conftest.", or (3) at the end.
9870 # Note that $ac_compile itself does not contain backslashes and begins
9871 # with a dollar sign (not a hyphen), so the echo should work correctly.
9872 lt_compile=`echo "$ac_compile" | $SED \
9873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9875 -e 's:$: $lt_compiler_flag:'`
9876 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9877 (eval "$lt_compile" 2>out/conftest.err)
9878 ac_status=$?
9879 cat out/conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9882 then
9883 # The compiler can only warn and ignore the option if not recognized
9884 # So say no if there are warnings
9885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9886 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9887 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9888 lt_cv_prog_compiler_c_o=yes
9889 fi
9890 fi
9891 chmod u+w . 2>&5
9892 $RM conftest*
9893 # SGI C++ compiler will create directory out/ii_files/ for
9894 # template instantiation
9895 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9896 $RM out/* && rmdir out
9897 cd ..
9898 $RM -r conftest
9899 $RM conftest*
f35db108 9900
c915a581
JJ
9901fi
9902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9903$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
f35db108 9904
f35db108 9905
f35db108 9906
f35db108 9907
f35db108 9908
f35db108 9909
c915a581
JJ
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9911$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9912if ${lt_cv_prog_compiler_c_o+:} false; then :
c915a581
JJ
9913 $as_echo_n "(cached) " >&6
9914else
9915 lt_cv_prog_compiler_c_o=no
9916 $RM -r conftest 2>/dev/null
9917 mkdir conftest
9918 cd conftest
9919 mkdir out
9920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
f35db108 9921
c915a581
JJ
9922 lt_compiler_flag="-o out/conftest2.$ac_objext"
9923 # Insert the option either (1) after the last *FLAGS variable, or
9924 # (2) before a word containing "conftest.", or (3) at the end.
9925 # Note that $ac_compile itself does not contain backslashes and begins
9926 # with a dollar sign (not a hyphen), so the echo should work correctly.
9927 lt_compile=`echo "$ac_compile" | $SED \
9928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9930 -e 's:$: $lt_compiler_flag:'`
9931 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9932 (eval "$lt_compile" 2>out/conftest.err)
9933 ac_status=$?
9934 cat out/conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9937 then
9938 # The compiler can only warn and ignore the option if not recognized
9939 # So say no if there are warnings
9940 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9941 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9942 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9943 lt_cv_prog_compiler_c_o=yes
9944 fi
9945 fi
9946 chmod u+w . 2>&5
9947 $RM conftest*
9948 # SGI C++ compiler will create directory out/ii_files/ for
9949 # template instantiation
9950 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9951 $RM out/* && rmdir out
9952 cd ..
9953 $RM -r conftest
9954 $RM conftest*
f35db108 9955
c915a581
JJ
9956fi
9957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9958$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
f35db108 9959
f35db108 9960
f35db108 9961
f35db108 9962
c915a581
JJ
9963hard_links="nottested"
9964if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9965 # do not overwrite the value of need_locks provided by the user
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9967$as_echo_n "checking if we can lock with hard links... " >&6; }
9968 hard_links=yes
9969 $RM conftest*
9970 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9971 touch conftest.a
9972 ln conftest.a conftest.b 2>&5 || hard_links=no
9973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9975$as_echo "$hard_links" >&6; }
9976 if test "$hard_links" = no; then
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9978$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9979 need_locks=warn
f35db108 9980 fi
c915a581
JJ
9981else
9982 need_locks=no
f35db108
WM
9983fi
9984
f35db108
WM
9985
9986
9987
9988
9989
c915a581
JJ
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9991$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
f35db108 9992
c915a581
JJ
9993 runpath_var=
9994 allow_undefined_flag=
9995 always_export_symbols=no
9996 archive_cmds=
9997 archive_expsym_cmds=
9998 compiler_needs_object=no
9999 enable_shared_with_static_runtimes=no
10000 export_dynamic_flag_spec=
10001 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10002 hardcode_automatic=no
10003 hardcode_direct=no
10004 hardcode_direct_absolute=no
10005 hardcode_libdir_flag_spec=
10006 hardcode_libdir_flag_spec_ld=
10007 hardcode_libdir_separator=
10008 hardcode_minus_L=no
10009 hardcode_shlibpath_var=unsupported
10010 inherit_rpath=no
10011 link_all_deplibs=unknown
10012 module_cmds=
10013 module_expsym_cmds=
10014 old_archive_from_new_cmds=
10015 old_archive_from_expsyms_cmds=
10016 thread_safe_flag_spec=
10017 whole_archive_flag_spec=
10018 # include_expsyms should be a list of space-separated symbols to be *always*
10019 # included in the symbol list
10020 include_expsyms=
10021 # exclude_expsyms can be an extended regexp of symbols to exclude
10022 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10023 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10024 # as well as any symbol that contains `d'.
10025 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10026 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10027 # platforms (ab)use it in PIC code, but their linkers get confused if
10028 # the symbol is explicitly referenced. Since portable code cannot
10029 # rely on this symbol name, it's probably fine to never include it in
10030 # preloaded symbol tables.
10031 # Exclude shared library initialization/finalization symbols.
10032 extract_expsyms_cmds=
f35db108 10033
c915a581
JJ
10034 case $host_os in
10035 cygwin* | mingw* | pw32* | cegcc*)
10036 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10037 # When not using gcc, we currently assume that we are using
10038 # Microsoft Visual C++.
10039 if test "$GCC" != yes; then
10040 with_gnu_ld=no
10041 fi
10042 ;;
10043 interix*)
10044 # we just hope/assume this is gcc and not c89 (= MSVC++)
10045 with_gnu_ld=yes
10046 ;;
10047 openbsd*)
10048 with_gnu_ld=no
10049 ;;
10050 esac
f35db108 10051
c915a581 10052 ld_shlibs=yes
f35db108 10053
c915a581
JJ
10054 # On some targets, GNU ld is compatible enough with the native linker
10055 # that we're better off using the native interface for both.
10056 lt_use_gnu_ld_interface=no
10057 if test "$with_gnu_ld" = yes; then
10058 case $host_os in
10059 aix*)
10060 # The AIX port of GNU ld has always aspired to compatibility
10061 # with the native linker. However, as the warning in the GNU ld
10062 # block says, versions before 2.19.5* couldn't really create working
10063 # shared libraries, regardless of the interface used.
10064 case `$LD -v 2>&1` in
10065 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10066 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10067 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10068 *)
10069 lt_use_gnu_ld_interface=yes
10070 ;;
10071 esac
10072 ;;
10073 *)
10074 lt_use_gnu_ld_interface=yes
10075 ;;
10076 esac
10077 fi
f35db108 10078
c915a581
JJ
10079 if test "$lt_use_gnu_ld_interface" = yes; then
10080 # If archive_cmds runs LD, not CC, wlarc should be empty
10081 wlarc='${wl}'
f35db108 10082
c915a581
JJ
10083 # Set some defaults for GNU ld with shared library support. These
10084 # are reset later if shared libraries are not supported. Putting them
10085 # here allows them to be overridden if necessary.
10086 runpath_var=LD_RUN_PATH
10087 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10088 export_dynamic_flag_spec='${wl}--export-dynamic'
10089 # ancient GNU ld didn't support --whole-archive et. al.
10090 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10091 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10092 else
10093 whole_archive_flag_spec=
10094 fi
10095 supports_anon_versioning=no
10096 case `$LD -v 2>&1` in
10097 *GNU\ gold*) supports_anon_versioning=yes ;;
10098 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10099 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10100 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10101 *\ 2.11.*) ;; # other 2.11 versions
10102 *) supports_anon_versioning=yes ;;
10103 esac
f35db108 10104
c915a581
JJ
10105 # See if GNU ld supports shared libraries.
10106 case $host_os in
10107 aix[3-9]*)
10108 # On AIX/PPC, the GNU linker is very broken
10109 if test "$host_cpu" != ia64; then
10110 ld_shlibs=no
10111 cat <<_LT_EOF 1>&2
f35db108 10112
c915a581
JJ
10113*** Warning: the GNU linker, at least up to release 2.19, is reported
10114*** to be unable to reliably create shared libraries on AIX.
10115*** Therefore, libtool is disabling shared libraries support. If you
10116*** really care for shared libraries, you may want to install binutils
10117*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10118*** You will then need to restart the configuration process.
f35db108 10119
c915a581
JJ
10120_LT_EOF
10121 fi
10122 ;;
f35db108 10123
c915a581
JJ
10124 amigaos*)
10125 case $host_cpu in
10126 powerpc)
10127 # see comment about AmigaOS4 .so support
10128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10129 archive_expsym_cmds=''
10130 ;;
10131 m68k)
10132 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)'
10133 hardcode_libdir_flag_spec='-L$libdir'
10134 hardcode_minus_L=yes
10135 ;;
10136 esac
10137 ;;
f35db108 10138
c915a581
JJ
10139 beos*)
10140 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10141 allow_undefined_flag=unsupported
10142 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10143 # support --undefined. This deserves some investigation. FIXME
10144 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10145 else
10146 ld_shlibs=no
10147 fi
10148 ;;
f35db108 10149
c915a581
JJ
10150 cygwin* | mingw* | pw32* | cegcc*)
10151 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10152 # as there is no search path for DLLs.
10153 hardcode_libdir_flag_spec='-L$libdir'
10154 export_dynamic_flag_spec='${wl}--export-all-symbols'
10155 allow_undefined_flag=unsupported
10156 always_export_symbols=no
10157 enable_shared_with_static_runtimes=yes
10158 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
f35db108 10159
c915a581
JJ
10160 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10162 # If the export-symbols file already is a .def file (1st line
10163 # is EXPORTS), use it as is; otherwise, prepend...
10164 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10165 cp $export_symbols $output_objdir/$soname.def;
10166 else
10167 echo EXPORTS > $output_objdir/$soname.def;
10168 cat $export_symbols >> $output_objdir/$soname.def;
10169 fi~
10170 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10171 else
10172 ld_shlibs=no
10173 fi
10174 ;;
f35db108 10175
c915a581
JJ
10176 haiku*)
10177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10178 link_all_deplibs=yes
10179 ;;
f35db108 10180
c915a581
JJ
10181 interix[3-9]*)
10182 hardcode_direct=no
10183 hardcode_shlibpath_var=no
10184 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10185 export_dynamic_flag_spec='${wl}-E'
10186 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10187 # Instead, shared libraries are loaded at an image base (0x10000000 by
10188 # default) and relocated if they conflict, which is a slow very memory
10189 # consuming and fragmenting process. To avoid this, we pick a random,
10190 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10191 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10192 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10193 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'
10194 ;;
f35db108 10195
e9085da5 10196 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
c915a581
JJ
10197 tmp_diet=no
10198 if test "$host_os" = linux-dietlibc; then
10199 case $cc_basename in
10200 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10201 esac
10202 fi
10203 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10204 && test "$tmp_diet" = no
10205 then
a699d672 10206 tmp_addflag=' $pic_flag'
c915a581
JJ
10207 tmp_sharedflag='-shared'
10208 case $cc_basename,$host_cpu in
10209 pgcc*) # Portland Group C compiler
10210 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'
10211 tmp_addflag=' $pic_flag'
10212 ;;
10213 pgf77* | pgf90* | pgf95* | pgfortran*)
10214 # Portland Group f77 and f90 compilers
10215 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'
10216 tmp_addflag=' $pic_flag -Mnomain' ;;
10217 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10218 tmp_addflag=' -i_dynamic' ;;
10219 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10220 tmp_addflag=' -i_dynamic -nofor_main' ;;
10221 ifc* | ifort*) # Intel Fortran compiler
10222 tmp_addflag=' -nofor_main' ;;
10223 lf95*) # Lahey Fortran 8.1
10224 whole_archive_flag_spec=
10225 tmp_sharedflag='--shared' ;;
10226 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10227 tmp_sharedflag='-qmkshrobj'
10228 tmp_addflag= ;;
10229 nvcc*) # Cuda Compiler Driver 2.2
10230 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'
10231 compiler_needs_object=yes
10232 ;;
10233 esac
10234 case `$CC -V 2>&1 | sed 5q` in
10235 *Sun\ C*) # Sun C 5.9
10236 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'
10237 compiler_needs_object=yes
10238 tmp_sharedflag='-G' ;;
10239 *Sun\ F*) # Sun Fortran 8.3
10240 tmp_sharedflag='-G' ;;
10241 esac
10242 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
f35db108 10243
c915a581
JJ
10244 if test "x$supports_anon_versioning" = xyes; then
10245 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10246 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10247 echo "local: *; };" >> $output_objdir/$libname.ver~
10248 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10249 fi
f35db108 10250
c915a581
JJ
10251 case $cc_basename in
10252 xlf* | bgf* | bgxlf* | mpixlf*)
10253 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10254 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10255 hardcode_libdir_flag_spec=
10256 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10257 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10258 if test "x$supports_anon_versioning" = xyes; then
10259 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10261 echo "local: *; };" >> $output_objdir/$libname.ver~
10262 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10263 fi
10264 ;;
10265 esac
10266 else
10267 ld_shlibs=no
10268 fi
10269 ;;
f35db108 10270
c915a581
JJ
10271 netbsd*)
10272 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10273 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10274 wlarc=
10275 else
10276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10278 fi
10279 ;;
f35db108 10280
c915a581
JJ
10281 solaris*)
10282 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10283 ld_shlibs=no
10284 cat <<_LT_EOF 1>&2
f35db108 10285
c915a581
JJ
10286*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10287*** create shared libraries on Solaris systems. Therefore, libtool
10288*** is disabling shared libraries support. We urge you to upgrade GNU
10289*** binutils to release 2.9.1 or newer. Another option is to modify
10290*** your PATH or compiler configuration so that the native linker is
10291*** used, and then restart.
f35db108 10292
c915a581
JJ
10293_LT_EOF
10294 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10296 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10297 else
10298 ld_shlibs=no
10299 fi
10300 ;;
f35db108 10301
c915a581
JJ
10302 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10303 case `$LD -v 2>&1` in
10304 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10305 ld_shlibs=no
10306 cat <<_LT_EOF 1>&2
f35db108 10307
c915a581
JJ
10308*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10309*** reliably create shared libraries on SCO systems. Therefore, libtool
10310*** is disabling shared libraries support. We urge you to upgrade GNU
10311*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10312*** your PATH or compiler configuration so that the native linker is
10313*** used, and then restart.
f35db108 10314
c915a581
JJ
10315_LT_EOF
10316 ;;
10317 *)
10318 # For security reasons, it is highly recommended that you always
10319 # use absolute paths for naming shared libraries, and exclude the
10320 # DT_RUNPATH tag from executables and libraries. But doing so
10321 # requires that you compile everything twice, which is a pain.
10322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10326 else
10327 ld_shlibs=no
10328 fi
10329 ;;
10330 esac
10331 ;;
f35db108 10332
c915a581
JJ
10333 sunos4*)
10334 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10335 wlarc=
10336 hardcode_direct=yes
10337 hardcode_shlibpath_var=no
10338 ;;
f35db108 10339
c915a581
JJ
10340 *)
10341 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10344 else
10345 ld_shlibs=no
10346 fi
10347 ;;
10348 esac
f35db108 10349
c915a581
JJ
10350 if test "$ld_shlibs" = no; then
10351 runpath_var=
10352 hardcode_libdir_flag_spec=
10353 export_dynamic_flag_spec=
10354 whole_archive_flag_spec=
10355 fi
10356 else
10357 # PORTME fill in a description of your system's linker (not GNU ld)
10358 case $host_os in
10359 aix3*)
10360 allow_undefined_flag=unsupported
10361 always_export_symbols=yes
10362 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'
10363 # Note: this linker hardcodes the directories in LIBPATH if there
10364 # are no directories specified by -L.
10365 hardcode_minus_L=yes
10366 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10367 # Neither direct hardcoding nor static linking is supported with a
10368 # broken collect2.
10369 hardcode_direct=unsupported
10370 fi
10371 ;;
f35db108 10372
c915a581
JJ
10373 aix[4-9]*)
10374 if test "$host_cpu" = ia64; then
10375 # On IA64, the linker does run time linking by default, so we don't
10376 # have to do anything special.
10377 aix_use_runtimelinking=no
10378 exp_sym_flag='-Bexport'
10379 no_entry_flag=""
10380 else
10381 # If we're using GNU nm, then we don't want the "-C" option.
10382 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10383 # Also, AIX nm treats weak defined symbols like other global
10384 # defined symbols, whereas GNU nm marks them as "W".
10385 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10386 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'
10387 else
bf93d543 10388 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
10389 fi
10390 aix_use_runtimelinking=no
f35db108 10391
c915a581
JJ
10392 # Test if we are trying to use run time linking or normal
10393 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10394 # need to do runtime linking.
10395 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10396 for ld_flag in $LDFLAGS; do
10397 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10398 aix_use_runtimelinking=yes
10399 break
10400 fi
10401 done
10402 ;;
10403 esac
f35db108 10404
c915a581
JJ
10405 exp_sym_flag='-bexport'
10406 no_entry_flag='-bnoentry'
10407 fi
f35db108 10408
c915a581
JJ
10409 # When large executables or shared objects are built, AIX ld can
10410 # have problems creating the table of contents. If linking a library
10411 # or program results in "error TOC overflow" add -mminimal-toc to
10412 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10413 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
f35db108 10414
c915a581
JJ
10415 archive_cmds=''
10416 hardcode_direct=yes
10417 hardcode_direct_absolute=yes
10418 hardcode_libdir_separator=':'
10419 link_all_deplibs=yes
10420 file_list_spec='${wl}-f,'
f35db108 10421
c915a581
JJ
10422 if test "$GCC" = yes; then
10423 case $host_os in aix4.[012]|aix4.[012].*)
10424 # We only want to do this on AIX 4.2 and lower, the check
10425 # below for broken collect2 doesn't work under 4.3+
10426 collect2name=`${CC} -print-prog-name=collect2`
10427 if test -f "$collect2name" &&
10428 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10429 then
10430 # We have reworked collect2
10431 :
10432 else
10433 # We have old collect2
10434 hardcode_direct=unsupported
10435 # It fails to find uninstalled libraries when the uninstalled
10436 # path is not listed in the libpath. Setting hardcode_minus_L
10437 # to unsupported forces relinking
10438 hardcode_minus_L=yes
10439 hardcode_libdir_flag_spec='-L$libdir'
10440 hardcode_libdir_separator=
10441 fi
10442 ;;
10443 esac
10444 shared_flag='-shared'
10445 if test "$aix_use_runtimelinking" = yes; then
10446 shared_flag="$shared_flag "'${wl}-G'
10447 fi
10448 else
10449 # not using gcc
10450 if test "$host_cpu" = ia64; then
10451 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10452 # chokes on -Wl,-G. The following line is correct:
10453 shared_flag='-G'
10454 else
10455 if test "$aix_use_runtimelinking" = yes; then
10456 shared_flag='${wl}-G'
10457 else
10458 shared_flag='${wl}-bM:SRE'
10459 fi
10460 fi
10461 fi
f35db108 10462
c915a581
JJ
10463 export_dynamic_flag_spec='${wl}-bexpall'
10464 # It seems that -bexpall does not export symbols beginning with
10465 # underscore (_), so it is better to generate a list of symbols to export.
10466 always_export_symbols=yes
10467 if test "$aix_use_runtimelinking" = yes; then
10468 # Warning - without using the other runtime loading flags (-brtl),
10469 # -berok will link without error, but may produce a broken library.
10470 allow_undefined_flag='-berok'
10471 # Determine the default libpath from the value encoded in an
10472 # empty executable.
10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474/* end confdefs.h. */
f35db108 10475
c915a581
JJ
10476int
10477main ()
10478{
f35db108 10479
c915a581
JJ
10480 ;
10481 return 0;
10482}
10483_ACEOF
10484if ac_fn_c_try_link "$LINENO"; then :
f35db108 10485
c915a581
JJ
10486lt_aix_libpath_sed='
10487 /Import File Strings/,/^$/ {
10488 /^0/ {
10489 s/^0 *\(.*\)$/\1/
10490 p
10491 }
10492 }'
10493aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10494# Check for a 64-bit object if we didn't find anything.
10495if test -z "$aix_libpath"; then
10496 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10497fi
10498fi
10499rm -f core conftest.err conftest.$ac_objext \
10500 conftest$ac_exeext conftest.$ac_ext
10501if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
f35db108 10502
c915a581
JJ
10503 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10504 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"
10505 else
10506 if test "$host_cpu" = ia64; then
10507 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10508 allow_undefined_flag="-z nodefs"
10509 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"
10510 else
10511 # Determine the default libpath from the value encoded in an
10512 # empty executable.
10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514/* end confdefs.h. */
f35db108 10515
c915a581
JJ
10516int
10517main ()
10518{
f35db108 10519
c915a581
JJ
10520 ;
10521 return 0;
10522}
10523_ACEOF
10524if ac_fn_c_try_link "$LINENO"; then :
f35db108 10525
c915a581
JJ
10526lt_aix_libpath_sed='
10527 /Import File Strings/,/^$/ {
10528 /^0/ {
10529 s/^0 *\(.*\)$/\1/
10530 p
10531 }
10532 }'
10533aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10534# Check for a 64-bit object if we didn't find anything.
10535if test -z "$aix_libpath"; then
10536 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10537fi
10538fi
10539rm -f core conftest.err conftest.$ac_objext \
10540 conftest$ac_exeext conftest.$ac_ext
10541if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
f35db108 10542
c915a581
JJ
10543 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10544 # Warning - without using the other run time loading flags,
10545 # -berok will link without error, but may produce a broken library.
10546 no_undefined_flag=' ${wl}-bernotok'
10547 allow_undefined_flag=' ${wl}-berok'
10548 if test "$with_gnu_ld" = yes; then
10549 # We only use this code for GNU lds that support --whole-archive.
10550 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10551 else
10552 # Exported symbols can be pulled into shared objects from archives
10553 whole_archive_flag_spec='$convenience'
10554 fi
10555 archive_cmds_need_lc=yes
10556 # This is similar to how AIX traditionally builds its shared libraries.
10557 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'
10558 fi
10559 fi
10560 ;;
f35db108 10561
c915a581
JJ
10562 amigaos*)
10563 case $host_cpu in
10564 powerpc)
10565 # see comment about AmigaOS4 .so support
10566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10567 archive_expsym_cmds=''
10568 ;;
10569 m68k)
10570 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)'
10571 hardcode_libdir_flag_spec='-L$libdir'
10572 hardcode_minus_L=yes
10573 ;;
10574 esac
10575 ;;
f35db108 10576
c915a581
JJ
10577 bsdi[45]*)
10578 export_dynamic_flag_spec=-rdynamic
10579 ;;
f35db108 10580
c915a581
JJ
10581 cygwin* | mingw* | pw32* | cegcc*)
10582 # When not using gcc, we currently assume that we are using
10583 # Microsoft Visual C++.
10584 # hardcode_libdir_flag_spec is actually meaningless, as there is
10585 # no search path for DLLs.
10586 hardcode_libdir_flag_spec=' '
10587 allow_undefined_flag=unsupported
10588 # Tell ltmain to make .lib files, not .a files.
10589 libext=lib
10590 # Tell ltmain to make .dll files, not .so files.
10591 shrext_cmds=".dll"
10592 # FIXME: Setting linknames here is a bad hack.
10593 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10594 # The linker will automatically build a .lib file if we build a DLL.
10595 old_archive_from_new_cmds='true'
10596 # FIXME: Should let the user specify the lib program.
10597 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10598 fix_srcfile_path='`cygpath -w "$srcfile"`'
10599 enable_shared_with_static_runtimes=yes
10600 ;;
f35db108 10601
c915a581 10602 darwin* | rhapsody*)
f35db108
WM
10603
10604
6a6d3817
IS
10605
10606 # Publish an arg to allow the user to select that Darwin host (and target)
10607 # libraries should be given install-names like @rpath/libfoo.dylib. This
10608 # requires that the user of the library then adds an 'rpath' to the DSO that
10609 # needs access.
10610 # NOTE: there are defaults below, for systems that support rpaths. The person
10611 # configuring can override the defaults for any system version that supports
10612 # them - they are, however, forced off for system versions without support.
10613 # Check whether --enable-darwin-at-rpath was given.
10614if test "${enable_darwin_at_rpath+set}" = set; then :
10615 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
10616 # This is not supported before macOS 10.5 / Darwin9.
10617 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10618 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
10620$as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
10621 enable_darwin_at_rpath=no
10622 ;;
10623 esac
10624 fi
10625else
10626 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10627 # As above, before 10.5 / Darwin9 this does not work.
10628 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10629 enable_darwin_at_rpath=no
10630 ;;
10631
10632 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
10633 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
10634 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
10635 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
10637$as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
10638 enable_darwin_at_rpath=yes
10639 ;;
10640 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
10641 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
10642
10643 esac
10644
10645fi
10646
10647
c915a581
JJ
10648 archive_cmds_need_lc=no
10649 hardcode_direct=no
10650 hardcode_automatic=yes
10651 hardcode_shlibpath_var=unsupported
10652 if test "$lt_cv_ld_force_load" = "yes"; then
10653 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\"`'
10654 else
10655 whole_archive_flag_spec=''
10656 fi
10657 link_all_deplibs=yes
10658 allow_undefined_flag="$_lt_dar_allow_undefined"
10659 case $cc_basename in
10660 ifort*) _lt_dar_can_shared=yes ;;
10661 *) _lt_dar_can_shared=$GCC ;;
10662 esac
10663 if test "$_lt_dar_can_shared" = "yes"; then
10664 output_verbose_link_cmd=func_echo_all
6a6d3817
IS
10665 _lt_install_name='\$rpath/\$soname'
10666 if test "x$enable_darwin_at_rpath" = "xyes"; then
10667 _lt_install_name='@rpath/\$soname'
10668 fi
10669 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
c915a581 10670 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6a6d3817 10671 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
c915a581 10672 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 10673
c915a581
JJ
10674 else
10675 ld_shlibs=no
10676 fi
f35db108 10677
c915a581 10678 ;;
f35db108 10679
c915a581
JJ
10680 dgux*)
10681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10682 hardcode_libdir_flag_spec='-L$libdir'
10683 hardcode_shlibpath_var=no
10684 ;;
f35db108 10685
c915a581
JJ
10686 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10687 # support. Future versions do this automatically, but an explicit c++rt0.o
10688 # does not break anything, and helps significantly (at the cost of a little
10689 # extra space).
10690 freebsd2.2*)
10691 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10692 hardcode_libdir_flag_spec='-R$libdir'
10693 hardcode_direct=yes
10694 hardcode_shlibpath_var=no
10695 ;;
f35db108 10696
c915a581
JJ
10697 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10698 freebsd2.*)
10699 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10700 hardcode_direct=yes
10701 hardcode_minus_L=yes
10702 hardcode_shlibpath_var=no
10703 ;;
f35db108 10704
c915a581
JJ
10705 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10706 freebsd* | dragonfly*)
10707 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10708 hardcode_libdir_flag_spec='-R$libdir'
10709 hardcode_direct=yes
10710 hardcode_shlibpath_var=no
10711 ;;
f35db108 10712
c915a581
JJ
10713 hpux9*)
10714 if test "$GCC" = yes; then
10715 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'
10716 else
10717 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'
10718 fi
10719 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10720 hardcode_libdir_separator=:
10721 hardcode_direct=yes
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 export_dynamic_flag_spec='${wl}-E'
10727 ;;
f35db108 10728
c915a581
JJ
10729 hpux10*)
10730 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10731 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10732 else
10733 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10734 fi
10735 if test "$with_gnu_ld" = no; then
10736 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10737 hardcode_libdir_flag_spec_ld='+b $libdir'
10738 hardcode_libdir_separator=:
10739 hardcode_direct=yes
10740 hardcode_direct_absolute=yes
10741 export_dynamic_flag_spec='${wl}-E'
10742 # hardcode_minus_L: Not really in the search PATH,
10743 # but as the default location of the library.
10744 hardcode_minus_L=yes
10745 fi
10746 ;;
f35db108 10747
c915a581
JJ
10748 hpux11*)
10749 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10750 case $host_cpu in
10751 hppa*64*)
4e4ba647 10752 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
c915a581
JJ
10753 ;;
10754 ia64*)
10755 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10756 ;;
10757 *)
10758 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10759 ;;
10760 esac
10761 else
10762 case $host_cpu in
10763 hppa*64*)
4e4ba647 10764 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
c915a581
JJ
10765 ;;
10766 ia64*)
10767 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10768 ;;
10769 *)
f35db108 10770
c915a581
JJ
10771 # Older versions of the 11.00 compiler do not understand -b yet
10772 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10774$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 10775if ${lt_cv_prog_compiler__b+:} false; then :
c915a581 10776 $as_echo_n "(cached) " >&6
f35db108 10777else
c915a581
JJ
10778 lt_cv_prog_compiler__b=no
10779 save_LDFLAGS="$LDFLAGS"
10780 LDFLAGS="$LDFLAGS -b"
10781 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10782 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10783 # The linker can only warn and ignore the option if not recognized
10784 # So say no if there are warnings
10785 if test -s conftest.err; then
10786 # Append any errors to the config.log.
10787 cat conftest.err 1>&5
10788 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10790 if diff conftest.exp conftest.er2 >/dev/null; then
10791 lt_cv_prog_compiler__b=yes
10792 fi
10793 else
10794 lt_cv_prog_compiler__b=yes
10795 fi
10796 fi
10797 $RM -r conftest*
10798 LDFLAGS="$save_LDFLAGS"
f35db108 10799
f35db108 10800fi
c915a581
JJ
10801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10802$as_echo "$lt_cv_prog_compiler__b" >&6; }
f35db108 10803
c915a581
JJ
10804if test x"$lt_cv_prog_compiler__b" = xyes; then
10805 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10806else
10807 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10808fi
f35db108 10809
c915a581
JJ
10810 ;;
10811 esac
10812 fi
10813 if test "$with_gnu_ld" = no; then
10814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10815 hardcode_libdir_separator=:
f35db108 10816
c915a581
JJ
10817 case $host_cpu in
10818 hppa*64*|ia64*)
10819 hardcode_direct=no
10820 hardcode_shlibpath_var=no
10821 ;;
10822 *)
10823 hardcode_direct=yes
10824 hardcode_direct_absolute=yes
10825 export_dynamic_flag_spec='${wl}-E'
f35db108 10826
c915a581
JJ
10827 # hardcode_minus_L: Not really in the search PATH,
10828 # but as the default location of the library.
10829 hardcode_minus_L=yes
10830 ;;
10831 esac
10832 fi
10833 ;;
f35db108 10834
c915a581
JJ
10835 irix5* | irix6* | nonstopux*)
10836 if test "$GCC" = yes; then
10837 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'
10838 # Try to use the -exported_symbol ld option, if it does not
10839 # work, assume that -exports_file does not work either and
10840 # implicitly export all symbols.
10841 save_LDFLAGS="$LDFLAGS"
10842 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844/* end confdefs.h. */
10845int foo(void) {}
10846_ACEOF
10847if ac_fn_c_try_link "$LINENO"; then :
10848 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 10849
c915a581
JJ
10850fi
10851rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
10853 LDFLAGS="$save_LDFLAGS"
10854 else
10855 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'
10856 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'
10857 fi
10858 archive_cmds_need_lc='no'
10859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10860 hardcode_libdir_separator=:
10861 inherit_rpath=yes
10862 link_all_deplibs=yes
10863 ;;
f35db108 10864
c915a581
JJ
10865 netbsd*)
10866 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10867 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10868 else
10869 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10870 fi
10871 hardcode_libdir_flag_spec='-R$libdir'
10872 hardcode_direct=yes
10873 hardcode_shlibpath_var=no
10874 ;;
f35db108 10875
c915a581
JJ
10876 newsos6)
10877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10878 hardcode_direct=yes
10879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10880 hardcode_libdir_separator=:
10881 hardcode_shlibpath_var=no
10882 ;;
f35db108 10883
c915a581
JJ
10884 *nto* | *qnx*)
10885 ;;
f35db108 10886
c915a581
JJ
10887 openbsd*)
10888 if test -f /usr/libexec/ld.so; then
10889 hardcode_direct=yes
10890 hardcode_shlibpath_var=no
10891 hardcode_direct_absolute=yes
10892 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10893 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10894 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10895 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10896 export_dynamic_flag_spec='${wl}-E'
10897 else
10898 case $host_os in
10899 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10901 hardcode_libdir_flag_spec='-R$libdir'
10902 ;;
10903 *)
10904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10906 ;;
10907 esac
10908 fi
10909 else
10910 ld_shlibs=no
10911 fi
10912 ;;
f35db108 10913
c915a581
JJ
10914 os2*)
10915 hardcode_libdir_flag_spec='-L$libdir'
10916 hardcode_minus_L=yes
10917 allow_undefined_flag=unsupported
10918 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'
10919 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10920 ;;
f35db108 10921
c915a581
JJ
10922 osf3*)
10923 if test "$GCC" = yes; then
10924 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10925 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'
10926 else
10927 allow_undefined_flag=' -expect_unresolved \*'
10928 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'
10929 fi
10930 archive_cmds_need_lc='no'
10931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10932 hardcode_libdir_separator=:
10933 ;;
f35db108 10934
c915a581
JJ
10935 osf4* | osf5*) # as osf3* with the addition of -msym flag
10936 if test "$GCC" = yes; then
10937 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10938 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'
10939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10940 else
10941 allow_undefined_flag=' -expect_unresolved \*'
10942 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'
10943 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~
10944 $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 10945
c915a581
JJ
10946 # Both c and cxx compiler support -rpath directly
10947 hardcode_libdir_flag_spec='-rpath $libdir'
10948 fi
10949 archive_cmds_need_lc='no'
10950 hardcode_libdir_separator=:
10951 ;;
f35db108 10952
c915a581
JJ
10953 solaris*)
10954 no_undefined_flag=' -z defs'
10955 if test "$GCC" = yes; then
10956 wlarc='${wl}'
10957 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10958 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10959 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10960 else
10961 case `$CC -V 2>&1` in
10962 *"Compilers 5.0"*)
10963 wlarc=''
10964 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10965 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10966 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10967 ;;
10968 *)
10969 wlarc='${wl}'
10970 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10971 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10972 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10973 ;;
10974 esac
10975 fi
10976 hardcode_libdir_flag_spec='-R$libdir'
10977 hardcode_shlibpath_var=no
10978 case $host_os in
10979 solaris2.[0-5] | solaris2.[0-5].*) ;;
10980 *)
10981 # The compiler driver will combine and reorder linker options,
10982 # but understands `-z linker_flag'. GCC discards it without `$wl',
10983 # but is careful enough not to reorder.
10984 # Supported since Solaris 2.6 (maybe 2.5.1?)
10985 if test "$GCC" = yes; then
10986 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10987 else
10988 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10989 fi
10990 ;;
10991 esac
10992 link_all_deplibs=yes
10993 ;;
f35db108 10994
c915a581
JJ
10995 sunos4*)
10996 if test "x$host_vendor" = xsequent; then
10997 # Use $CC to link under sequent, because it throws in some extra .o
10998 # files that make .init and .fini sections work.
10999 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11000 else
11001 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11002 fi
11003 hardcode_libdir_flag_spec='-L$libdir'
11004 hardcode_direct=yes
11005 hardcode_minus_L=yes
11006 hardcode_shlibpath_var=no
11007 ;;
f35db108 11008
c915a581
JJ
11009 sysv4)
11010 case $host_vendor in
11011 sni)
11012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11013 hardcode_direct=yes # is this really true???
11014 ;;
11015 siemens)
11016 ## LD is ld it makes a PLAMLIB
11017 ## CC just makes a GrossModule.
11018 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11019 reload_cmds='$CC -r -o $output$reload_objs'
11020 hardcode_direct=no
11021 ;;
11022 motorola)
11023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11024 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11025 ;;
11026 esac
11027 runpath_var='LD_RUN_PATH'
11028 hardcode_shlibpath_var=no
11029 ;;
f35db108 11030
c915a581
JJ
11031 sysv4.3*)
11032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11033 hardcode_shlibpath_var=no
11034 export_dynamic_flag_spec='-Bexport'
11035 ;;
f35db108 11036
c915a581
JJ
11037 sysv4*MP*)
11038 if test -d /usr/nec; then
11039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11040 hardcode_shlibpath_var=no
11041 runpath_var=LD_RUN_PATH
11042 hardcode_runpath_var=yes
11043 ld_shlibs=yes
11044 fi
11045 ;;
f35db108 11046
c915a581
JJ
11047 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11048 no_undefined_flag='${wl}-z,text'
11049 archive_cmds_need_lc=no
11050 hardcode_shlibpath_var=no
11051 runpath_var='LD_RUN_PATH'
f35db108 11052
c915a581
JJ
11053 if test "$GCC" = yes; then
11054 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11055 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11056 else
11057 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11058 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11059 fi
11060 ;;
f35db108 11061
c915a581
JJ
11062 sysv5* | sco3.2v5* | sco5v6*)
11063 # Note: We can NOT use -z defs as we might desire, because we do not
11064 # link with -lc, and that would cause any symbols used from libc to
11065 # always be unresolved, which means just about no library would
11066 # ever link correctly. If we're not using GNU ld we use -z text
11067 # though, which does catch some bad symbols but isn't as heavy-handed
11068 # as -z defs.
11069 no_undefined_flag='${wl}-z,text'
11070 allow_undefined_flag='${wl}-z,nodefs'
11071 archive_cmds_need_lc=no
11072 hardcode_shlibpath_var=no
11073 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11074 hardcode_libdir_separator=':'
11075 link_all_deplibs=yes
11076 export_dynamic_flag_spec='${wl}-Bexport'
11077 runpath_var='LD_RUN_PATH'
f35db108 11078
c915a581
JJ
11079 if test "$GCC" = yes; then
11080 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11081 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11082 else
11083 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11084 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11085 fi
11086 ;;
f35db108 11087
c915a581
JJ
11088 uts4*)
11089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11090 hardcode_libdir_flag_spec='-L$libdir'
11091 hardcode_shlibpath_var=no
11092 ;;
f35db108 11093
c915a581
JJ
11094 *)
11095 ld_shlibs=no
11096 ;;
11097 esac
f35db108 11098
c915a581
JJ
11099 if test x$host_vendor = xsni; then
11100 case $host in
11101 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11102 export_dynamic_flag_spec='${wl}-Blargedynsym'
11103 ;;
11104 esac
11105 fi
11106 fi
f35db108 11107
c915a581
JJ
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11109$as_echo "$ld_shlibs" >&6; }
11110test "$ld_shlibs" = no && can_build_shared=no
f35db108 11111
c915a581 11112with_gnu_ld=$with_gnu_ld
f35db108 11113
f35db108 11114
f35db108 11115
f35db108 11116
f35db108 11117
f35db108 11118
f35db108 11119
f35db108 11120
f35db108 11121
f35db108 11122
f35db108 11123
f35db108 11124
f35db108 11125
f35db108 11126
f35db108 11127
c915a581
JJ
11128#
11129# Do we need to explicitly link libc?
11130#
11131case "x$archive_cmds_need_lc" in
11132x|xyes)
11133 # Assume -lc should be added
11134 archive_cmds_need_lc=yes
11135
11136 if test "$enable_shared" = yes && test "$GCC" = yes; then
11137 case $archive_cmds in
11138 *'~'*)
11139 # FIXME: we may have to deal with multi-command sequences.
11140 ;;
11141 '$CC '*)
11142 # Test whether the compiler implicitly links with -lc since on some
11143 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11144 # to ld, don't add -lc before -lgcc.
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11146$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 11147if ${lt_cv_archive_cmds_need_lc+:} false; then :
c915a581
JJ
11148 $as_echo_n "(cached) " >&6
11149else
11150 $RM conftest*
11151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11152
11153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11154 (eval $ac_compile) 2>&5
f35db108
WM
11155 ac_status=$?
11156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c915a581
JJ
11157 test $ac_status = 0; } 2>conftest.err; then
11158 soname=conftest
11159 lib=conftest
11160 libobjs=conftest.$ac_objext
11161 deplibs=
11162 wl=$lt_prog_compiler_wl
11163 pic_flag=$lt_prog_compiler_pic
11164 compiler_flags=-v
11165 linker_flags=-v
11166 verstring=
11167 output_objdir=.
11168 libname=conftest
11169 lt_save_allow_undefined_flag=$allow_undefined_flag
11170 allow_undefined_flag=
11171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11172 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11173 ac_status=$?
11174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11175 test $ac_status = 0; }
11176 then
11177 lt_cv_archive_cmds_need_lc=no
11178 else
11179 lt_cv_archive_cmds_need_lc=yes
11180 fi
11181 allow_undefined_flag=$lt_save_allow_undefined_flag
11182 else
11183 cat conftest.err 1>&5
11184 fi
11185 $RM conftest*
11186
11187fi
11188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11189$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11190 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11191 ;;
f35db108 11192 esac
f35db108 11193 fi
c915a581
JJ
11194 ;;
11195esac
f35db108
WM
11196
11197
f35db108 11198
f35db108 11199
f35db108 11200
f35db108 11201
f35db108 11202
f35db108 11203
f35db108 11204
f35db108 11205
f35db108 11206
f35db108
WM
11207
11208
f35db108 11209
f35db108 11210
f35db108 11211
f35db108
WM
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
f35db108
WM
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
f35db108 11241
f35db108 11242
f35db108 11243
f35db108 11244
f35db108
WM
11245
11246
11247
11248
f35db108 11249
f35db108 11250
f35db108 11251
f35db108 11252
f35db108 11253
f35db108 11254
f35db108 11255
f35db108 11256
f35db108 11257
f35db108 11258
f35db108 11259
f35db108 11260
f35db108 11261
f35db108 11262
f35db108 11263
f35db108 11264
f35db108 11265
f35db108 11266
f35db108 11267
f35db108 11268
f35db108
WM
11269
11270
11271
11272
11273
11274
f35db108 11275
f35db108 11276
f35db108
WM
11277
11278
f35db108 11279
f35db108
WM
11280
11281
f35db108
WM
11282
11283
f35db108 11284
f35db108
WM
11285
11286
11287
f35db108 11288
f35db108 11289
f35db108
WM
11290
11291
11292
11293
11294
11295
11296
f35db108 11297
f35db108 11298
f35db108 11299
f35db108 11300
f35db108 11301
f35db108 11302
f35db108 11303
f35db108 11304
f35db108 11305
f35db108 11306
f35db108 11307
f35db108 11308
f35db108 11309
f35db108 11310
f35db108 11311
f35db108 11312
f35db108 11313
f35db108 11314
f35db108 11315
f35db108 11316
f35db108 11317
f35db108 11318
f35db108 11319
f35db108 11320
f35db108 11321
a2479b3d 11322
f35db108
WM
11323
11324
f35db108 11325
f35db108 11326
f35db108 11327
f35db108 11328
f35db108 11329
f35db108 11330
f35db108 11331
f35db108 11332
f35db108 11333
f35db108 11334
f35db108 11335
f35db108 11336
f35db108 11337
f35db108 11338
f35db108 11339
f35db108 11340
f35db108 11341
f35db108 11342
f35db108 11343
f35db108 11344
f35db108 11345
f35db108 11346
f35db108 11347
f35db108 11348
f35db108 11349
f35db108 11350
f35db108 11351
f35db108 11352
c915a581
JJ
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11354$as_echo_n "checking dynamic linker characteristics... " >&6; }
f35db108 11355
c915a581
JJ
11356if test "$GCC" = yes; then
11357 case $host_os in
11358 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11359 *) lt_awk_arg="/^libraries:/" ;;
11360 esac
11361 case $host_os in
11362 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11363 *) lt_sed_strip_eq="s,=/,/,g" ;;
11364 esac
11365 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11366 case $lt_search_path_spec in
11367 *\;*)
11368 # if the path contains ";" then we assume it to be the separator
11369 # otherwise default to the standard path separator (i.e. ":") - it is
11370 # assumed that no part of a normal pathname contains ";" but that should
11371 # okay in the real world where ";" in dirpaths is itself problematic.
11372 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11373 ;;
11374 *)
11375 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11376 ;;
11377 esac
11378 # Ok, now we have the path, separated by spaces, we can step through it
11379 # and add multilib dir if necessary.
11380 lt_tmp_lt_search_path_spec=
11381 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11382 for lt_sys_path in $lt_search_path_spec; do
11383 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11384 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11385 else
11386 test -d "$lt_sys_path" && \
11387 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11388 fi
11389 done
11390 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11391BEGIN {RS=" "; FS="/|\n";} {
11392 lt_foo="";
11393 lt_count=0;
11394 for (lt_i = NF; lt_i > 0; lt_i--) {
11395 if ($lt_i != "" && $lt_i != ".") {
11396 if ($lt_i == "..") {
11397 lt_count++;
11398 } else {
11399 if (lt_count == 0) {
11400 lt_foo="/" $lt_i lt_foo;
11401 } else {
11402 lt_count--;
11403 }
11404 }
11405 }
11406 }
11407 if (lt_foo != "") { lt_freq[lt_foo]++; }
11408 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11409}'`
11410 # AWK program above erroneously prepends '/' to C:/dos/paths
11411 # for these hosts.
11412 case $host_os in
11413 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11414 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11415 esac
11416 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11417else
11418 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11419fi
11420library_names_spec=
11421libname_spec='lib$name'
11422soname_spec=
11423shrext_cmds=".so"
11424postinstall_cmds=
11425postuninstall_cmds=
11426finish_cmds=
11427finish_eval=
11428shlibpath_var=
11429shlibpath_overrides_runpath=unknown
11430version_type=none
11431dynamic_linker="$host_os ld.so"
11432sys_lib_dlsearch_path_spec="/lib /usr/lib"
11433need_lib_prefix=unknown
11434hardcode_into_libs=no
f35db108 11435
c915a581
JJ
11436# when you set need_version to no, make sure it does not cause -set_version
11437# flags to be left without arguments
11438need_version=unknown
f35db108 11439
c915a581
JJ
11440case $host_os in
11441aix3*)
11442 version_type=linux
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11444 shlibpath_var=LIBPATH
f35db108 11445
c915a581
JJ
11446 # AIX 3 has no versioning support, so we append a major version to the name.
11447 soname_spec='${libname}${release}${shared_ext}$major'
11448 ;;
f35db108 11449
c915a581
JJ
11450aix[4-9]*)
11451 version_type=linux
11452 need_lib_prefix=no
11453 need_version=no
11454 hardcode_into_libs=yes
11455 if test "$host_cpu" = ia64; then
11456 # AIX 5 supports IA64
11457 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11458 shlibpath_var=LD_LIBRARY_PATH
11459 else
11460 # With GCC up to 2.95.x, collect2 would create an import file
11461 # for dependence libraries. The import file would start with
11462 # the line `#! .'. This would cause the generated library to
11463 # depend on `.', always an invalid library. This was fixed in
11464 # development snapshots of GCC prior to 3.0.
11465 case $host_os in
11466 aix4 | aix4.[01] | aix4.[01].*)
11467 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11468 echo ' yes '
11469 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11470 :
11471 else
11472 can_build_shared=no
11473 fi
11474 ;;
11475 esac
11476 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11477 # soname into executable. Probably we can add versioning support to
11478 # collect2, so additional links can be useful in future.
11479 if test "$aix_use_runtimelinking" = yes; then
11480 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11481 # instead of lib<name>.a to let people know that these are not
11482 # typical AIX shared libraries.
11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11484 else
11485 # We preserve .a as extension for shared libraries through AIX4.2
11486 # and later when we are not doing run time linking.
11487 library_names_spec='${libname}${release}.a $libname.a'
11488 soname_spec='${libname}${release}${shared_ext}$major'
11489 fi
11490 shlibpath_var=LIBPATH
11491 fi
11492 ;;
f35db108 11493
c915a581
JJ
11494amigaos*)
11495 case $host_cpu in
11496 powerpc)
11497 # Since July 2007 AmigaOS4 officially supports .so libraries.
11498 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500 ;;
11501 m68k)
11502 library_names_spec='$libname.ixlibrary $libname.a'
11503 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11504 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'
11505 ;;
11506 esac
11507 ;;
f35db108 11508
c915a581
JJ
11509beos*)
11510 library_names_spec='${libname}${shared_ext}'
11511 dynamic_linker="$host_os ld.so"
11512 shlibpath_var=LIBRARY_PATH
11513 ;;
f35db108 11514
c915a581
JJ
11515bsdi[45]*)
11516 version_type=linux
11517 need_version=no
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11519 soname_spec='${libname}${release}${shared_ext}$major'
11520 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11521 shlibpath_var=LD_LIBRARY_PATH
11522 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11523 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11524 # the default ld.so.conf also contains /usr/contrib/lib and
11525 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11526 # libtool to hard-code these into programs
11527 ;;
f35db108 11528
c915a581
JJ
11529cygwin* | mingw* | pw32* | cegcc*)
11530 version_type=windows
11531 shrext_cmds=".dll"
11532 need_version=no
11533 need_lib_prefix=no
f35db108 11534
c915a581
JJ
11535 case $GCC,$host_os in
11536 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11537 library_names_spec='$libname.dll.a'
11538 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11539 postinstall_cmds='base_file=`basename \${file}`~
11540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11541 dldir=$destdir/`dirname \$dlpath`~
11542 test -d \$dldir || mkdir -p \$dldir~
11543 $install_prog $dir/$dlname \$dldir/$dlname~
11544 chmod a+x \$dldir/$dlname~
11545 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11546 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11547 fi'
11548 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11549 dlpath=$dir/\$dldll~
11550 $RM \$dlpath'
11551 shlibpath_overrides_runpath=yes
f35db108 11552
c915a581
JJ
11553 case $host_os in
11554 cygwin*)
11555 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11556 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
f35db108 11557
c915a581
JJ
11558 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11559 ;;
11560 mingw* | cegcc*)
11561 # MinGW DLLs use traditional 'lib' prefix
11562 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11563 ;;
11564 pw32*)
11565 # pw32 DLLs use 'pw' prefix rather than 'lib'
11566 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11567 ;;
11568 esac
11569 ;;
f35db108 11570
c915a581
JJ
11571 *)
11572 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11573 ;;
11574 esac
11575 dynamic_linker='Win32 ld.exe'
11576 # FIXME: first we should search . and the directory the executable is in
11577 shlibpath_var=PATH
11578 ;;
f35db108 11579
c915a581
JJ
11580darwin* | rhapsody*)
11581 dynamic_linker="$host_os dyld"
11582 version_type=darwin
11583 need_lib_prefix=no
11584 need_version=no
11585 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11586 soname_spec='${libname}${release}${major}$shared_ext'
11587 shlibpath_overrides_runpath=yes
11588 shlibpath_var=DYLD_LIBRARY_PATH
11589 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
f35db108 11590
c915a581
JJ
11591 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11592 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11593 ;;
f35db108 11594
c915a581
JJ
11595dgux*)
11596 version_type=linux
11597 need_lib_prefix=no
11598 need_version=no
11599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11600 soname_spec='${libname}${release}${shared_ext}$major'
11601 shlibpath_var=LD_LIBRARY_PATH
11602 ;;
f35db108 11603
c915a581
JJ
11604freebsd* | dragonfly*)
11605 # DragonFly does not have aout. When/if they implement a new
11606 # versioning mechanism, adjust this.
11607 if test -x /usr/bin/objformat; then
11608 objformat=`/usr/bin/objformat`
11609 else
11610 case $host_os in
11611 freebsd[23].*) objformat=aout ;;
11612 *) objformat=elf ;;
11613 esac
11614 fi
11615 version_type=freebsd-$objformat
11616 case $version_type in
11617 freebsd-elf*)
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11619 need_version=no
11620 need_lib_prefix=no
f35db108 11621 ;;
c915a581
JJ
11622 freebsd-*)
11623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11624 need_version=yes
f35db108 11625 ;;
c915a581
JJ
11626 esac
11627 shlibpath_var=LD_LIBRARY_PATH
11628 case $host_os in
11629 freebsd2.*)
11630 shlibpath_overrides_runpath=yes
11631 ;;
11632 freebsd3.[01]* | freebsdelf3.[01]*)
11633 shlibpath_overrides_runpath=yes
11634 hardcode_into_libs=yes
11635 ;;
11636 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11637 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11638 shlibpath_overrides_runpath=no
11639 hardcode_into_libs=yes
11640 ;;
11641 *) # from 4.6 on, and DragonFly
11642 shlibpath_overrides_runpath=yes
11643 hardcode_into_libs=yes
11644 ;;
11645 esac
11646 ;;
f35db108 11647
c915a581
JJ
11648haiku*)
11649 version_type=linux
11650 need_lib_prefix=no
11651 need_version=no
11652 dynamic_linker="$host_os runtime_loader"
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11654 soname_spec='${libname}${release}${shared_ext}$major'
11655 shlibpath_var=LIBRARY_PATH
11656 shlibpath_overrides_runpath=yes
ead5103c 11657 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
c915a581
JJ
11658 hardcode_into_libs=yes
11659 ;;
f35db108 11660
c915a581
JJ
11661hpux9* | hpux10* | hpux11*)
11662 # Give a soname corresponding to the major version so that dld.sl refuses to
11663 # link against other versions.
11664 version_type=sunos
11665 need_lib_prefix=no
11666 need_version=no
11667 case $host_cpu in
11668 ia64*)
11669 shrext_cmds='.so'
11670 hardcode_into_libs=yes
11671 dynamic_linker="$host_os dld.so"
11672 shlibpath_var=LD_LIBRARY_PATH
11673 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11675 soname_spec='${libname}${release}${shared_ext}$major'
11676 if test "X$HPUX_IA64_MODE" = X32; then
11677 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11678 else
11679 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11680 fi
11681 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11682 ;;
11683 hppa*64*)
11684 shrext_cmds='.sl'
11685 hardcode_into_libs=yes
11686 dynamic_linker="$host_os dld.sl"
11687 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11688 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11690 soname_spec='${libname}${release}${shared_ext}$major'
11691 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11693 ;;
11694 *)
11695 shrext_cmds='.sl'
11696 dynamic_linker="$host_os dld.sl"
11697 shlibpath_var=SHLIB_PATH
11698 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700 soname_spec='${libname}${release}${shared_ext}$major'
11701 ;;
11702 esac
11703 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11704 postinstall_cmds='chmod 555 $lib'
11705 # or fails outright, so override atomically:
11706 install_override_mode=555
11707 ;;
f35db108 11708
c915a581
JJ
11709interix[3-9]*)
11710 version_type=linux
11711 need_lib_prefix=no
11712 need_version=no
11713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11714 soname_spec='${libname}${release}${shared_ext}$major'
11715 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11716 shlibpath_var=LD_LIBRARY_PATH
11717 shlibpath_overrides_runpath=no
11718 hardcode_into_libs=yes
11719 ;;
f35db108 11720
c915a581
JJ
11721irix5* | irix6* | nonstopux*)
11722 case $host_os in
11723 nonstopux*) version_type=nonstopux ;;
11724 *)
11725 if test "$lt_cv_prog_gnu_ld" = yes; then
11726 version_type=linux
11727 else
11728 version_type=irix
11729 fi ;;
11730 esac
11731 need_lib_prefix=no
11732 need_version=no
11733 soname_spec='${libname}${release}${shared_ext}$major'
11734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11735 case $host_os in
11736 irix5* | nonstopux*)
11737 libsuff= shlibsuff=
11738 ;;
11739 *)
11740 case $LD in # libtool.m4 will add one of these switches to LD
11741 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11742 libsuff= shlibsuff= libmagic=32-bit;;
11743 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11744 libsuff=32 shlibsuff=N32 libmagic=N32;;
11745 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11746 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11747 *) libsuff= shlibsuff= libmagic=never-match;;
11748 esac
11749 ;;
11750 esac
11751 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11752 shlibpath_overrides_runpath=no
11753 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11754 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11755 hardcode_into_libs=yes
11756 ;;
f35db108 11757
c915a581
JJ
11758# No shared lib support for Linux oldld, aout, or coff.
11759linux*oldld* | linux*aout* | linux*coff*)
11760 dynamic_linker=no
11761 ;;
f35db108 11762
c915a581 11763# This must be Linux ELF.
e9085da5
MR
11764
11765# uclinux* changes (here and below) have been submitted to the libtool
11766# project, but have not yet been accepted: they are GCC-local changes
11767# for the time being. (See
11768# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
f56de355 11769linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
c915a581
JJ
11770 version_type=linux
11771 need_lib_prefix=no
11772 need_version=no
11773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11774 soname_spec='${libname}${release}${shared_ext}$major'
11775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11776 shlibpath_var=LD_LIBRARY_PATH
11777 shlibpath_overrides_runpath=no
f35db108 11778
c915a581 11779 # Some binutils ld are patched to set DT_RUNPATH
22e05272 11780 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
c915a581
JJ
11781 $as_echo_n "(cached) " >&6
11782else
11783 lt_cv_shlibpath_overrides_runpath=no
11784 save_LDFLAGS=$LDFLAGS
11785 save_libdir=$libdir
11786 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11787 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789/* end confdefs.h. */
f35db108 11790
c915a581
JJ
11791int
11792main ()
11793{
f35db108 11794
c915a581
JJ
11795 ;
11796 return 0;
11797}
11798_ACEOF
11799if ac_fn_c_try_link "$LINENO"; then :
11800 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11801 lt_cv_shlibpath_overrides_runpath=yes
11802fi
11803fi
11804rm -f core conftest.err conftest.$ac_objext \
11805 conftest$ac_exeext conftest.$ac_ext
11806 LDFLAGS=$save_LDFLAGS
11807 libdir=$save_libdir
f35db108 11808
c915a581 11809fi
f35db108 11810
c915a581 11811 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
f35db108 11812
c915a581
JJ
11813 # This implies no fast_install, which is unacceptable.
11814 # Some rework will be needed to allow for fast_install
11815 # before this can be enabled.
11816 hardcode_into_libs=yes
f35db108 11817
c915a581
JJ
11818 # Append ld.so.conf contents to the search path
11819 if test -f /etc/ld.so.conf; then
11820 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' ' '`
11821 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11822 fi
f35db108 11823
c915a581
JJ
11824 # We used to test for /lib/ld.so.1 and disable shared libraries on
11825 # powerpc, because MkLinux only supported shared libraries with the
11826 # GNU dynamic linker. Since this was broken with cross compilers,
11827 # most powerpc-linux boxes support dynamic linking these days and
11828 # people can always --disable-shared, the test was removed, and we
11829 # assume the GNU/Linux dynamic linker is in use.
11830 dynamic_linker='GNU/Linux ld.so'
11831 ;;
f35db108 11832
c915a581
JJ
11833netbsd*)
11834 version_type=sunos
11835 need_lib_prefix=no
11836 need_version=no
11837 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11840 dynamic_linker='NetBSD (a.out) ld.so'
11841 else
11842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11843 soname_spec='${libname}${release}${shared_ext}$major'
11844 dynamic_linker='NetBSD ld.elf_so'
11845 fi
11846 shlibpath_var=LD_LIBRARY_PATH
11847 shlibpath_overrides_runpath=yes
11848 hardcode_into_libs=yes
f35db108
WM
11849 ;;
11850
c915a581
JJ
11851newsos6)
11852 version_type=linux
11853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11854 shlibpath_var=LD_LIBRARY_PATH
11855 shlibpath_overrides_runpath=yes
11856 ;;
f35db108 11857
c915a581
JJ
11858*nto* | *qnx*)
11859 version_type=qnx
11860 need_lib_prefix=no
11861 need_version=no
11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11863 soname_spec='${libname}${release}${shared_ext}$major'
11864 shlibpath_var=LD_LIBRARY_PATH
11865 shlibpath_overrides_runpath=no
11866 hardcode_into_libs=yes
11867 dynamic_linker='ldqnx.so'
11868 ;;
f35db108 11869
c915a581
JJ
11870openbsd*)
11871 version_type=sunos
11872 sys_lib_dlsearch_path_spec="/usr/lib"
11873 need_lib_prefix=no
11874 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11875 case $host_os in
11876 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11877 *) need_version=no ;;
f35db108 11878 esac
c915a581
JJ
11879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11881 shlibpath_var=LD_LIBRARY_PATH
11882 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11883 case $host_os in
11884 openbsd2.[89] | openbsd2.[89].*)
11885 shlibpath_overrides_runpath=no
11886 ;;
11887 *)
11888 shlibpath_overrides_runpath=yes
11889 ;;
11890 esac
11891 else
11892 shlibpath_overrides_runpath=yes
11893 fi
11894 ;;
11895
11896os2*)
11897 libname_spec='$name'
11898 shrext_cmds=".dll"
11899 need_lib_prefix=no
11900 library_names_spec='$libname${shared_ext} $libname.a'
11901 dynamic_linker='OS/2 ld.exe'
11902 shlibpath_var=LIBPATH
11903 ;;
11904
11905osf3* | osf4* | osf5*)
11906 version_type=osf
11907 need_lib_prefix=no
11908 need_version=no
11909 soname_spec='${libname}${release}${shared_ext}$major'
11910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11911 shlibpath_var=LD_LIBRARY_PATH
11912 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11913 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11914 ;;
11915
11916rdos*)
11917 dynamic_linker=no
f35db108
WM
11918 ;;
11919
11920solaris*)
c915a581
JJ
11921 version_type=linux
11922 need_lib_prefix=no
11923 need_version=no
11924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11925 soname_spec='${libname}${release}${shared_ext}$major'
11926 shlibpath_var=LD_LIBRARY_PATH
11927 shlibpath_overrides_runpath=yes
11928 hardcode_into_libs=yes
11929 # ldd complains unless libraries are executable
11930 postinstall_cmds='chmod +x $lib'
11931 ;;
11932
11933sunos4*)
11934 version_type=sunos
11935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11936 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 shlibpath_overrides_runpath=yes
11939 if test "$with_gnu_ld" = yes; then
11940 need_lib_prefix=no
11941 fi
11942 need_version=yes
11943 ;;
11944
11945sysv4 | sysv4.3*)
11946 version_type=linux
11947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11948 soname_spec='${libname}${release}${shared_ext}$major'
11949 shlibpath_var=LD_LIBRARY_PATH
11950 case $host_vendor in
11951 sni)
11952 shlibpath_overrides_runpath=no
11953 need_lib_prefix=no
11954 runpath_var=LD_RUN_PATH
11955 ;;
11956 siemens)
11957 need_lib_prefix=no
11958 ;;
11959 motorola)
11960 need_lib_prefix=no
11961 need_version=no
11962 shlibpath_overrides_runpath=no
11963 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
f35db108 11964 ;;
c915a581
JJ
11965 esac
11966 ;;
11967
11968sysv4*MP*)
11969 if test -d /usr/nec ;then
11970 version_type=linux
11971 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11972 soname_spec='$libname${shared_ext}.$major'
11973 shlibpath_var=LD_LIBRARY_PATH
11974 fi
11975 ;;
11976
11977sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11978 version_type=freebsd-elf
11979 need_lib_prefix=no
11980 need_version=no
11981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11982 soname_spec='${libname}${release}${shared_ext}$major'
11983 shlibpath_var=LD_LIBRARY_PATH
11984 shlibpath_overrides_runpath=yes
11985 hardcode_into_libs=yes
11986 if test "$with_gnu_ld" = yes; then
11987 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11988 else
11989 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11990 case $host_os in
11991 sco3.2v5*)
11992 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11993 ;;
f35db108 11994 esac
c915a581
JJ
11995 fi
11996 sys_lib_dlsearch_path_spec='/usr/lib'
11997 ;;
f35db108 11998
c915a581
JJ
11999tpf*)
12000 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12001 version_type=linux
12002 need_lib_prefix=no
12003 need_version=no
12004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12005 shlibpath_var=LD_LIBRARY_PATH
12006 shlibpath_overrides_runpath=no
12007 hardcode_into_libs=yes
f35db108 12008 ;;
f35db108 12009
c915a581
JJ
12010uts4*)
12011 version_type=linux
12012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12013 soname_spec='${libname}${release}${shared_ext}$major'
12014 shlibpath_var=LD_LIBRARY_PATH
12015 ;;
f35db108 12016
0ecd0f1c
OH
12017# Shared libraries for VwWorks, >= 7 only at this stage
12018# and (fpic) still incompatible with "large" code models
12019# in a few configurations. Only for RTP mode in any case,
12020# and upon explicit request at configure time.
12021vxworks7*)
12022 dynamic_linker=no
12023 case ${with_multisubdir}-${enable_shared} in
12024 *large*)
12025 ;;
12026 *mrtp*-yes)
12027 version_type=linux
12028 need_lib_prefix=no
12029 need_version=no
12030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12031 soname_spec='${libname}${release}${shared_ext}$major'
12032 dynamic_linker="$host_os module_loader"
12033 ;;
12034 esac
12035 ;;
c915a581
JJ
12036*)
12037 dynamic_linker=no
12038 ;;
f35db108 12039esac
c915a581
JJ
12040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12041$as_echo "$dynamic_linker" >&6; }
12042test "$dynamic_linker" = no && can_build_shared=no
12043
12044variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12045if test "$GCC" = yes; then
12046 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
f35db108
WM
12047fi
12048
c915a581
JJ
12049if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12050 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12051fi
12052if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12053 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12054fi
f35db108
WM
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
f35db108
WM
12085
12086
c915a581
JJ
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12148$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12149hardcode_action=
12150if test -n "$hardcode_libdir_flag_spec" ||
12151 test -n "$runpath_var" ||
12152 test "X$hardcode_automatic" = "Xyes" ; then
12153
12154 # We can hardcode non-existent directories.
12155 if test "$hardcode_direct" != no &&
12156 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12157 # have to relink, otherwise we might link with an installed library
12158 # when we should be linking with a yet-to-be-installed one
12159 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12160 test "$hardcode_minus_L" != no; then
12161 # Linking always hardcodes the temporary library directory.
12162 hardcode_action=relink
12163 else
12164 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12165 hardcode_action=immediate
12166 fi
12167else
12168 # We cannot hardcode anything, or else we can only hardcode existing
12169 # directories.
12170 hardcode_action=unsupported
12171fi
12172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12173$as_echo "$hardcode_action" >&6; }
12174
12175if test "$hardcode_action" = relink ||
12176 test "$inherit_rpath" = yes; then
12177 # Fast installation is not supported
12178 enable_fast_install=no
12179elif test "$shlibpath_overrides_runpath" = yes ||
12180 test "$enable_shared" = no; then
12181 # Fast installation is not necessary
12182 enable_fast_install=needless
12183fi
12184
12185
12186
12187
12188
12189
12190 if test "x$enable_dlopen" != xyes; then
12191 enable_dlopen=unknown
12192 enable_dlopen_self=unknown
12193 enable_dlopen_self_static=unknown
12194else
12195 lt_cv_dlopen=no
12196 lt_cv_dlopen_libs=
12197
12198 case $host_os in
12199 beos*)
12200 lt_cv_dlopen="load_add_on"
12201 lt_cv_dlopen_libs=
12202 lt_cv_dlopen_self=yes
12203 ;;
12204
12205 mingw* | pw32* | cegcc*)
12206 lt_cv_dlopen="LoadLibrary"
12207 lt_cv_dlopen_libs=
12208 ;;
12209
12210 cygwin*)
12211 lt_cv_dlopen="dlopen"
12212 lt_cv_dlopen_libs=
12213 ;;
12214
12215 darwin*)
12216 # if libdl is installed we need to link against it
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12218$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 12219if ${ac_cv_lib_dl_dlopen+:} false; then :
c915a581
JJ
12220 $as_echo_n "(cached) " >&6
12221else
12222 ac_check_lib_save_LIBS=$LIBS
12223LIBS="-ldl $LIBS"
12224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225/* end confdefs.h. */
12226
12227/* Override any GCC internal prototype to avoid an error.
12228 Use char because int might match the return type of a GCC
12229 builtin and then its argument prototype would still apply. */
12230#ifdef __cplusplus
12231extern "C"
12232#endif
12233char dlopen ();
12234int
12235main ()
12236{
12237return dlopen ();
12238 ;
12239 return 0;
12240}
12241_ACEOF
12242if ac_fn_c_try_link "$LINENO"; then :
12243 ac_cv_lib_dl_dlopen=yes
12244else
12245 ac_cv_lib_dl_dlopen=no
12246fi
12247rm -f core conftest.err conftest.$ac_objext \
12248 conftest$ac_exeext conftest.$ac_ext
12249LIBS=$ac_check_lib_save_LIBS
12250fi
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12252$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 12253if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
c915a581
JJ
12254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12255else
12256
12257 lt_cv_dlopen="dyld"
12258 lt_cv_dlopen_libs=
12259 lt_cv_dlopen_self=yes
12260
12261fi
12262
12263 ;;
12264
12265 *)
12266 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 12267if test "x$ac_cv_func_shl_load" = xyes; then :
c915a581
JJ
12268 lt_cv_dlopen="shl_load"
12269else
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12271$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 12272if ${ac_cv_lib_dld_shl_load+:} false; then :
c915a581
JJ
12273 $as_echo_n "(cached) " >&6
12274else
12275 ac_check_lib_save_LIBS=$LIBS
12276LIBS="-ldld $LIBS"
12277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278/* end confdefs.h. */
12279
12280/* Override any GCC internal prototype to avoid an error.
12281 Use char because int might match the return type of a GCC
12282 builtin and then its argument prototype would still apply. */
12283#ifdef __cplusplus
12284extern "C"
12285#endif
12286char shl_load ();
12287int
12288main ()
12289{
12290return shl_load ();
12291 ;
12292 return 0;
12293}
12294_ACEOF
12295if ac_fn_c_try_link "$LINENO"; then :
12296 ac_cv_lib_dld_shl_load=yes
12297else
12298 ac_cv_lib_dld_shl_load=no
12299fi
12300rm -f core conftest.err conftest.$ac_objext \
12301 conftest$ac_exeext conftest.$ac_ext
12302LIBS=$ac_check_lib_save_LIBS
12303fi
12304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12305$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 12306if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
c915a581
JJ
12307 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12308else
12309 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 12310if test "x$ac_cv_func_dlopen" = xyes; then :
c915a581
JJ
12311 lt_cv_dlopen="dlopen"
12312else
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12314$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 12315if ${ac_cv_lib_dl_dlopen+:} false; then :
c915a581
JJ
12316 $as_echo_n "(cached) " >&6
12317else
12318 ac_check_lib_save_LIBS=$LIBS
12319LIBS="-ldl $LIBS"
12320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321/* end confdefs.h. */
12322
12323/* Override any GCC internal prototype to avoid an error.
12324 Use char because int might match the return type of a GCC
12325 builtin and then its argument prototype would still apply. */
12326#ifdef __cplusplus
12327extern "C"
12328#endif
12329char dlopen ();
12330int
12331main ()
12332{
12333return dlopen ();
12334 ;
12335 return 0;
12336}
12337_ACEOF
12338if ac_fn_c_try_link "$LINENO"; then :
12339 ac_cv_lib_dl_dlopen=yes
12340else
12341 ac_cv_lib_dl_dlopen=no
12342fi
12343rm -f core conftest.err conftest.$ac_objext \
12344 conftest$ac_exeext conftest.$ac_ext
12345LIBS=$ac_check_lib_save_LIBS
12346fi
12347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12348$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 12349if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
c915a581
JJ
12350 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12351else
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12353$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 12354if ${ac_cv_lib_svld_dlopen+:} false; then :
c915a581
JJ
12355 $as_echo_n "(cached) " >&6
12356else
12357 ac_check_lib_save_LIBS=$LIBS
12358LIBS="-lsvld $LIBS"
12359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360/* end confdefs.h. */
12361
12362/* Override any GCC internal prototype to avoid an error.
12363 Use char because int might match the return type of a GCC
12364 builtin and then its argument prototype would still apply. */
12365#ifdef __cplusplus
12366extern "C"
12367#endif
12368char dlopen ();
12369int
12370main ()
12371{
12372return dlopen ();
12373 ;
12374 return 0;
12375}
12376_ACEOF
12377if ac_fn_c_try_link "$LINENO"; then :
12378 ac_cv_lib_svld_dlopen=yes
12379else
12380 ac_cv_lib_svld_dlopen=no
12381fi
12382rm -f core conftest.err conftest.$ac_objext \
12383 conftest$ac_exeext conftest.$ac_ext
12384LIBS=$ac_check_lib_save_LIBS
12385fi
12386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12387$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 12388if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
c915a581
JJ
12389 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12390else
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12392$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 12393if ${ac_cv_lib_dld_dld_link+:} false; then :
c915a581
JJ
12394 $as_echo_n "(cached) " >&6
12395else
12396 ac_check_lib_save_LIBS=$LIBS
12397LIBS="-ldld $LIBS"
12398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399/* end confdefs.h. */
12400
12401/* Override any GCC internal prototype to avoid an error.
12402 Use char because int might match the return type of a GCC
12403 builtin and then its argument prototype would still apply. */
12404#ifdef __cplusplus
12405extern "C"
12406#endif
12407char dld_link ();
12408int
12409main ()
12410{
12411return dld_link ();
12412 ;
12413 return 0;
12414}
12415_ACEOF
12416if ac_fn_c_try_link "$LINENO"; then :
12417 ac_cv_lib_dld_dld_link=yes
12418else
12419 ac_cv_lib_dld_dld_link=no
12420fi
12421rm -f core conftest.err conftest.$ac_objext \
12422 conftest$ac_exeext conftest.$ac_ext
12423LIBS=$ac_check_lib_save_LIBS
12424fi
12425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12426$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 12427if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
c915a581
JJ
12428 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12429fi
12430
12431
12432fi
12433
12434
12435fi
12436
12437
12438fi
12439
12440
12441fi
12442
12443
12444fi
12445
12446 ;;
12447 esac
12448
12449 if test "x$lt_cv_dlopen" != xno; then
12450 enable_dlopen=yes
12451 else
12452 enable_dlopen=no
12453 fi
12454
12455 case $lt_cv_dlopen in
12456 dlopen)
12457 save_CPPFLAGS="$CPPFLAGS"
12458 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12459
12460 save_LDFLAGS="$LDFLAGS"
12461 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12462
12463 save_LIBS="$LIBS"
12464 LIBS="$lt_cv_dlopen_libs $LIBS"
12465
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12467$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 12468if ${lt_cv_dlopen_self+:} false; then :
c915a581
JJ
12469 $as_echo_n "(cached) " >&6
12470else
12471 if test "$cross_compiling" = yes; then :
12472 lt_cv_dlopen_self=cross
12473else
12474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12475 lt_status=$lt_dlunknown
12476 cat > conftest.$ac_ext <<_LT_EOF
6a6d3817 12477#line 12477 "configure"
c915a581
JJ
12478#include "confdefs.h"
12479
12480#if HAVE_DLFCN_H
12481#include <dlfcn.h>
12482#endif
12483
12484#include <stdio.h>
12485
12486#ifdef RTLD_GLOBAL
12487# define LT_DLGLOBAL RTLD_GLOBAL
12488#else
12489# ifdef DL_GLOBAL
12490# define LT_DLGLOBAL DL_GLOBAL
12491# else
12492# define LT_DLGLOBAL 0
12493# endif
12494#endif
12495
12496/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12497 find out it does not work in some platform. */
12498#ifndef LT_DLLAZY_OR_NOW
12499# ifdef RTLD_LAZY
12500# define LT_DLLAZY_OR_NOW RTLD_LAZY
12501# else
12502# ifdef DL_LAZY
12503# define LT_DLLAZY_OR_NOW DL_LAZY
12504# else
12505# ifdef RTLD_NOW
12506# define LT_DLLAZY_OR_NOW RTLD_NOW
12507# else
12508# ifdef DL_NOW
12509# define LT_DLLAZY_OR_NOW DL_NOW
12510# else
12511# define LT_DLLAZY_OR_NOW 0
12512# endif
12513# endif
12514# endif
12515# endif
12516#endif
12517
12518/* When -fvisbility=hidden is used, assume the code has been annotated
12519 correspondingly for the symbols needed. */
12520#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12521void fnord () __attribute__((visibility("default")));
12522#endif
12523
12524void fnord () { int i=42; }
12525int main ()
12526{
12527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12528 int status = $lt_dlunknown;
12529
12530 if (self)
12531 {
12532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12533 else
12534 {
12535 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12536 else puts (dlerror ());
12537 }
12538 /* dlclose (self); */
12539 }
12540 else
12541 puts (dlerror ());
12542
12543 return status;
12544}
12545_LT_EOF
12546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12547 (eval $ac_link) 2>&5
12548 ac_status=$?
12549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12550 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12551 (./conftest; exit; ) >&5 2>/dev/null
12552 lt_status=$?
12553 case x$lt_status in
12554 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12555 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12556 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12557 esac
12558 else :
12559 # compilation failed
12560 lt_cv_dlopen_self=no
12561 fi
12562fi
12563rm -fr conftest*
12564
12565
12566fi
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12568$as_echo "$lt_cv_dlopen_self" >&6; }
12569
12570 if test "x$lt_cv_dlopen_self" = xyes; then
12571 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12573$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 12574if ${lt_cv_dlopen_self_static+:} false; then :
c915a581
JJ
12575 $as_echo_n "(cached) " >&6
12576else
12577 if test "$cross_compiling" = yes; then :
12578 lt_cv_dlopen_self_static=cross
12579else
12580 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12581 lt_status=$lt_dlunknown
12582 cat > conftest.$ac_ext <<_LT_EOF
6a6d3817 12583#line 12583 "configure"
c915a581
JJ
12584#include "confdefs.h"
12585
12586#if HAVE_DLFCN_H
12587#include <dlfcn.h>
12588#endif
12589
12590#include <stdio.h>
12591
12592#ifdef RTLD_GLOBAL
12593# define LT_DLGLOBAL RTLD_GLOBAL
12594#else
12595# ifdef DL_GLOBAL
12596# define LT_DLGLOBAL DL_GLOBAL
12597# else
12598# define LT_DLGLOBAL 0
12599# endif
12600#endif
12601
12602/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12603 find out it does not work in some platform. */
12604#ifndef LT_DLLAZY_OR_NOW
12605# ifdef RTLD_LAZY
12606# define LT_DLLAZY_OR_NOW RTLD_LAZY
12607# else
12608# ifdef DL_LAZY
12609# define LT_DLLAZY_OR_NOW DL_LAZY
12610# else
12611# ifdef RTLD_NOW
12612# define LT_DLLAZY_OR_NOW RTLD_NOW
12613# else
12614# ifdef DL_NOW
12615# define LT_DLLAZY_OR_NOW DL_NOW
12616# else
12617# define LT_DLLAZY_OR_NOW 0
12618# endif
12619# endif
12620# endif
12621# endif
12622#endif
12623
12624/* When -fvisbility=hidden is used, assume the code has been annotated
12625 correspondingly for the symbols needed. */
12626#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12627void fnord () __attribute__((visibility("default")));
12628#endif
12629
12630void fnord () { int i=42; }
12631int main ()
12632{
12633 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12634 int status = $lt_dlunknown;
12635
12636 if (self)
12637 {
12638 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12639 else
12640 {
12641 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12642 else puts (dlerror ());
12643 }
12644 /* dlclose (self); */
12645 }
12646 else
12647 puts (dlerror ());
12648
12649 return status;
12650}
12651_LT_EOF
12652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12653 (eval $ac_link) 2>&5
12654 ac_status=$?
12655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12656 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12657 (./conftest; exit; ) >&5 2>/dev/null
12658 lt_status=$?
12659 case x$lt_status in
12660 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12661 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12662 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12663 esac
12664 else :
12665 # compilation failed
12666 lt_cv_dlopen_self_static=no
12667 fi
12668fi
12669rm -fr conftest*
12670
12671
12672fi
12673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12674$as_echo "$lt_cv_dlopen_self_static" >&6; }
12675 fi
12676
12677 CPPFLAGS="$save_CPPFLAGS"
12678 LDFLAGS="$save_LDFLAGS"
12679 LIBS="$save_LIBS"
12680 ;;
12681 esac
12682
12683 case $lt_cv_dlopen_self in
12684 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12685 *) enable_dlopen_self=unknown ;;
12686 esac
12687
12688 case $lt_cv_dlopen_self_static in
12689 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12690 *) enable_dlopen_self_static=unknown ;;
12691 esac
12692fi
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710striplib=
12711old_striplib=
12712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12713$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12714if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12715 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12716 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12718$as_echo "yes" >&6; }
12719else
12720# FIXME - insert some real tests, host_os isn't really good enough
12721 case $host_os in
12722 darwin*)
12723 if test -n "$STRIP" ; then
12724 striplib="$STRIP -x"
12725 old_striplib="$STRIP -S"
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12727$as_echo "yes" >&6; }
12728 else
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730$as_echo "no" >&6; }
12731 fi
12732 ;;
12733 *)
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735$as_echo "no" >&6; }
12736 ;;
12737 esac
12738fi
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751 # Report which library types will actually be built
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12753$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12755$as_echo "$can_build_shared" >&6; }
12756
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12758$as_echo_n "checking whether to build shared libraries... " >&6; }
12759 test "$can_build_shared" = "no" && enable_shared=no
12760
12761 # On AIX, shared libraries and static libraries use the same namespace, and
12762 # are all built from PIC.
12763 case $host_os in
12764 aix3*)
12765 test "$enable_shared" = yes && enable_static=no
12766 if test -n "$RANLIB"; then
12767 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12768 postinstall_cmds='$RANLIB $lib'
12769 fi
12770 ;;
12771
12772 aix[4-9]*)
12773 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12774 test "$enable_shared" = yes && enable_static=no
12775 fi
12776 ;;
12777 esac
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12779$as_echo "$enable_shared" >&6; }
12780
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12782$as_echo_n "checking whether to build static libraries... " >&6; }
12783 # Make sure either enable_shared or enable_static is yes.
12784 test "$enable_shared" = yes || enable_static=yes
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12786$as_echo "$enable_static" >&6; }
12787
12788
12789
12790
12791fi
12792ac_ext=c
12793ac_cpp='$CPP $CPPFLAGS'
12794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12796ac_compiler_gnu=$ac_cv_c_compiler_gnu
12797
12798CC="$lt_save_CC"
12799
12800 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12801 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12802 (test "X$CXX" != "Xg++"))) ; then
12803 ac_ext=cpp
12804ac_cpp='$CXXCPP $CPPFLAGS'
12805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12809$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12810if test -z "$CXXCPP"; then
22e05272 12811 if ${ac_cv_prog_CXXCPP+:} false; then :
c915a581
JJ
12812 $as_echo_n "(cached) " >&6
12813else
12814 # Double quotes because CXXCPP needs to be expanded
12815 for CXXCPP in "$CXX -E" "/lib/cpp"
12816 do
12817 ac_preproc_ok=false
12818for ac_cxx_preproc_warn_flag in '' yes
12819do
12820 # Use a header file that comes with gcc, so configuring glibc
12821 # with a fresh cross-compiler works.
12822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12823 # <limits.h> exists even on freestanding compilers.
12824 # On the NeXT, cc -E runs the code through the compiler's parser,
12825 # not just through cpp. "Syntax error" is here to catch this case.
12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827/* end confdefs.h. */
12828#ifdef __STDC__
12829# include <limits.h>
12830#else
12831# include <assert.h>
12832#endif
12833 Syntax error
12834_ACEOF
12835if ac_fn_cxx_try_cpp "$LINENO"; then :
12836
12837else
12838 # Broken: fails on valid input.
12839continue
12840fi
22e05272 12841rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
12842
12843 # OK, works on sane cases. Now check whether nonexistent headers
12844 # can be detected and how.
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846/* end confdefs.h. */
12847#include <ac_nonexistent.h>
12848_ACEOF
12849if ac_fn_cxx_try_cpp "$LINENO"; then :
12850 # Broken: success on invalid input.
12851continue
12852else
12853 # Passes both tests.
12854ac_preproc_ok=:
12855break
12856fi
22e05272 12857rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
12858
12859done
12860# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 12861rm -f conftest.i conftest.err conftest.$ac_ext
c915a581
JJ
12862if $ac_preproc_ok; then :
12863 break
12864fi
12865
12866 done
12867 ac_cv_prog_CXXCPP=$CXXCPP
12868
12869fi
12870 CXXCPP=$ac_cv_prog_CXXCPP
12871else
12872 ac_cv_prog_CXXCPP=$CXXCPP
12873fi
12874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12875$as_echo "$CXXCPP" >&6; }
12876ac_preproc_ok=false
12877for ac_cxx_preproc_warn_flag in '' yes
12878do
12879 # Use a header file that comes with gcc, so configuring glibc
12880 # with a fresh cross-compiler works.
12881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12882 # <limits.h> exists even on freestanding compilers.
12883 # On the NeXT, cc -E runs the code through the compiler's parser,
12884 # not just through cpp. "Syntax error" is here to catch this case.
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886/* end confdefs.h. */
12887#ifdef __STDC__
12888# include <limits.h>
12889#else
12890# include <assert.h>
12891#endif
12892 Syntax error
12893_ACEOF
12894if ac_fn_cxx_try_cpp "$LINENO"; then :
12895
12896else
12897 # Broken: fails on valid input.
12898continue
12899fi
22e05272 12900rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
12901
12902 # OK, works on sane cases. Now check whether nonexistent headers
12903 # can be detected and how.
12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905/* end confdefs.h. */
12906#include <ac_nonexistent.h>
12907_ACEOF
12908if ac_fn_cxx_try_cpp "$LINENO"; then :
12909 # Broken: success on invalid input.
12910continue
12911else
12912 # Passes both tests.
12913ac_preproc_ok=:
12914break
12915fi
22e05272 12916rm -f conftest.err conftest.i conftest.$ac_ext
c915a581
JJ
12917
12918done
12919# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 12920rm -f conftest.i conftest.err conftest.$ac_ext
c915a581
JJ
12921if $ac_preproc_ok; then :
12922
12923else
12924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12926as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12927See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
12928fi
12929
12930ac_ext=c
12931ac_cpp='$CPP $CPPFLAGS'
12932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12934ac_compiler_gnu=$ac_cv_c_compiler_gnu
12935
12936else
12937 _lt_caught_CXX_error=yes
12938fi
12939
12940ac_ext=cpp
12941ac_cpp='$CXXCPP $CPPFLAGS'
12942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12945
12946archive_cmds_need_lc_CXX=no
12947allow_undefined_flag_CXX=
12948always_export_symbols_CXX=no
12949archive_expsym_cmds_CXX=
12950compiler_needs_object_CXX=no
12951export_dynamic_flag_spec_CXX=
12952hardcode_direct_CXX=no
12953hardcode_direct_absolute_CXX=no
12954hardcode_libdir_flag_spec_CXX=
12955hardcode_libdir_flag_spec_ld_CXX=
12956hardcode_libdir_separator_CXX=
12957hardcode_minus_L_CXX=no
12958hardcode_shlibpath_var_CXX=unsupported
12959hardcode_automatic_CXX=no
12960inherit_rpath_CXX=no
12961module_cmds_CXX=
12962module_expsym_cmds_CXX=
12963link_all_deplibs_CXX=unknown
12964old_archive_cmds_CXX=$old_archive_cmds
12965reload_flag_CXX=$reload_flag
12966reload_cmds_CXX=$reload_cmds
12967no_undefined_flag_CXX=
12968whole_archive_flag_spec_CXX=
12969enable_shared_with_static_runtimes_CXX=no
12970
12971# Source file extension for C++ test sources.
12972ac_ext=cpp
12973
12974# Object file extension for compiled C++ test sources.
12975objext=o
12976objext_CXX=$objext
12977
12978# No sense in running all these tests if we already determined that
12979# the CXX compiler isn't working. Some variables (like enable_shared)
12980# are currently assumed to apply to all compilers on this platform,
12981# and will be corrupted by setting them based on a non-working compiler.
12982if test "$_lt_caught_CXX_error" != yes; then
12983 # Code to be used in simple compile tests
12984 lt_simple_compile_test_code="int some_variable = 0;"
12985
12986 # Code to be used in simple link tests
12987 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12988
12989 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12990
12991
12992
12993
12994
12995
12996# If no C compiler was specified, use CC.
12997LTCC=${LTCC-"$CC"}
12998
12999# If no C compiler flags were specified, use CFLAGS.
13000LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13001
13002# Allow CC to be a program name with arguments.
13003compiler=$CC
13004
13005
13006 # save warnings/boilerplate of simple test code
13007 ac_outfile=conftest.$ac_objext
13008echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13009eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13010_lt_compiler_boilerplate=`cat conftest.err`
13011$RM conftest*
13012
13013 ac_outfile=conftest.$ac_objext
13014echo "$lt_simple_link_test_code" >conftest.$ac_ext
13015eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13016_lt_linker_boilerplate=`cat conftest.err`
13017$RM -r conftest*
13018
13019
13020 # Allow CC to be a program name with arguments.
13021 lt_save_CC=$CC
13022 lt_save_LD=$LD
13023 lt_save_GCC=$GCC
13024 GCC=$GXX
13025 lt_save_with_gnu_ld=$with_gnu_ld
13026 lt_save_path_LD=$lt_cv_path_LD
13027 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13028 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13029 else
13030 $as_unset lt_cv_prog_gnu_ld
13031 fi
13032 if test -n "${lt_cv_path_LDCXX+set}"; then
13033 lt_cv_path_LD=$lt_cv_path_LDCXX
13034 else
13035 $as_unset lt_cv_path_LD
13036 fi
13037 test -z "${LDCXX+set}" || LD=$LDCXX
13038 CC=${CXX-"c++"}
13039 compiler=$CC
13040 compiler_CXX=$CC
13041 for cc_temp in $compiler""; do
13042 case $cc_temp in
13043 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13044 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13045 \-*) ;;
13046 *) break;;
13047 esac
13048done
13049cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13050
13051
13052 if test -n "$compiler"; then
13053 # We don't want -fno-exception when compiling C++ code, so set the
13054 # no_builtin_flag separately
13055 if test "$GXX" = yes; then
13056 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13057 else
13058 lt_prog_compiler_no_builtin_flag_CXX=
13059 fi
13060
13061 if test "$GXX" = yes; then
13062 # Set up default GNU C++ configuration
13063
13064
13065
13066# Check whether --with-gnu-ld was given.
13067if test "${with_gnu_ld+set}" = set; then :
13068 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13069else
13070 with_gnu_ld=no
13071fi
13072
13073ac_prog=ld
13074if test "$GCC" = yes; then
13075 # Check if gcc -print-prog-name=ld gives a path.
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13077$as_echo_n "checking for ld used by $CC... " >&6; }
13078 case $host in
13079 *-*-mingw*)
13080 # gcc leaves a trailing carriage return which upsets mingw
13081 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13082 *)
13083 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13084 esac
13085 case $ac_prog in
13086 # Accept absolute paths.
13087 [\\/]* | ?:[\\/]*)
13088 re_direlt='/[^/][^/]*/\.\./'
13089 # Canonicalize the pathname of ld
13090 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13091 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13092 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13093 done
13094 test -z "$LD" && LD="$ac_prog"
13095 ;;
13096 "")
13097 # If it fails, then pretend we aren't using GCC.
13098 ac_prog=ld
13099 ;;
13100 *)
13101 # If it is relative, then search for the first ld in PATH.
13102 with_gnu_ld=unknown
13103 ;;
13104 esac
13105elif test "$with_gnu_ld" = yes; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13107$as_echo_n "checking for GNU ld... " >&6; }
13108else
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13110$as_echo_n "checking for non-GNU ld... " >&6; }
13111fi
22e05272 13112if ${lt_cv_path_LD+:} false; then :
c915a581
JJ
13113 $as_echo_n "(cached) " >&6
13114else
13115 if test -z "$LD"; then
13116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13117 for ac_dir in $PATH; do
13118 IFS="$lt_save_ifs"
13119 test -z "$ac_dir" && ac_dir=.
13120 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13121 lt_cv_path_LD="$ac_dir/$ac_prog"
13122 # Check to see if the program is GNU ld. I'd rather use --version,
13123 # but apparently some variants of GNU ld only accept -v.
13124 # Break only if it was the GNU/non-GNU ld that we prefer.
13125 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13126 *GNU* | *'with BFD'*)
13127 test "$with_gnu_ld" != no && break
13128 ;;
13129 *)
13130 test "$with_gnu_ld" != yes && break
13131 ;;
13132 esac
13133 fi
13134 done
13135 IFS="$lt_save_ifs"
13136else
13137 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13138fi
13139fi
13140
13141LD="$lt_cv_path_LD"
13142if test -n "$LD"; then
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13144$as_echo "$LD" >&6; }
13145else
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147$as_echo "no" >&6; }
13148fi
22e05272 13149test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
c915a581
JJ
13150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13151$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 13152if ${lt_cv_prog_gnu_ld+:} false; then :
c915a581
JJ
13153 $as_echo_n "(cached) " >&6
13154else
13155 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13156case `$LD -v 2>&1 </dev/null` in
13157*GNU* | *'with BFD'*)
13158 lt_cv_prog_gnu_ld=yes
13159 ;;
13160*)
13161 lt_cv_prog_gnu_ld=no
13162 ;;
13163esac
13164fi
13165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13166$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13167with_gnu_ld=$lt_cv_prog_gnu_ld
13168
13169
13170
13171
13172
13173
13174
13175 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13176 # archiving commands below assume that GNU ld is being used.
13177 if test "$with_gnu_ld" = yes; then
a699d672
L
13178 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13179 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
13180
13181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13182 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13183
13184 # If archive_cmds runs LD, not CC, wlarc should be empty
13185 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13186 # investigate it a little bit more. (MM)
13187 wlarc='${wl}'
13188
13189 # ancient GNU ld didn't support --whole-archive et. al.
13190 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13191 $GREP 'no-whole-archive' > /dev/null; then
13192 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13193 else
13194 whole_archive_flag_spec_CXX=
13195 fi
13196 else
13197 with_gnu_ld=no
13198 wlarc=
13199
13200 # A generic and very simple default shared library creation
13201 # command for GNU C++ for the case where it uses the native
13202 # linker, instead of GNU ld. If possible, this setting should
13203 # overridden to take advantage of the native linker features on
13204 # the platform it is being used on.
13205 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13206 fi
13207
13208 # Commands to make compiler produce verbose output that lists
13209 # what "hidden" libraries, object files and flags are used when
13210 # linking a shared library.
13211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13212
13213 else
13214 GXX=no
13215 with_gnu_ld=no
13216 wlarc=
13217 fi
13218
13219 # PORTME: fill in a description of your system's C++ link characteristics
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13221$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13222 ld_shlibs_CXX=yes
13223 case $host_os in
13224 aix3*)
13225 # FIXME: insert proper C++ library support
13226 ld_shlibs_CXX=no
13227 ;;
13228 aix[4-9]*)
13229 if test "$host_cpu" = ia64; then
13230 # On IA64, the linker does run time linking by default, so we don't
13231 # have to do anything special.
13232 aix_use_runtimelinking=no
13233 exp_sym_flag='-Bexport'
13234 no_entry_flag=""
13235 else
13236 aix_use_runtimelinking=no
13237
13238 # Test if we are trying to use run time linking or normal
13239 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13240 # need to do runtime linking.
13241 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13242 for ld_flag in $LDFLAGS; do
13243 case $ld_flag in
13244 *-brtl*)
13245 aix_use_runtimelinking=yes
13246 break
13247 ;;
13248 esac
13249 done
13250 ;;
13251 esac
13252
13253 exp_sym_flag='-bexport'
13254 no_entry_flag='-bnoentry'
13255 fi
13256
13257 # When large executables or shared objects are built, AIX ld can
13258 # have problems creating the table of contents. If linking a library
13259 # or program results in "error TOC overflow" add -mminimal-toc to
13260 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13261 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13262
13263 archive_cmds_CXX=''
13264 hardcode_direct_CXX=yes
13265 hardcode_direct_absolute_CXX=yes
13266 hardcode_libdir_separator_CXX=':'
13267 link_all_deplibs_CXX=yes
13268 file_list_spec_CXX='${wl}-f,'
13269
13270 if test "$GXX" = yes; then
13271 case $host_os in aix4.[012]|aix4.[012].*)
13272 # We only want to do this on AIX 4.2 and lower, the check
13273 # below for broken collect2 doesn't work under 4.3+
13274 collect2name=`${CC} -print-prog-name=collect2`
13275 if test -f "$collect2name" &&
13276 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13277 then
13278 # We have reworked collect2
13279 :
13280 else
13281 # We have old collect2
13282 hardcode_direct_CXX=unsupported
13283 # It fails to find uninstalled libraries when the uninstalled
13284 # path is not listed in the libpath. Setting hardcode_minus_L
13285 # to unsupported forces relinking
13286 hardcode_minus_L_CXX=yes
13287 hardcode_libdir_flag_spec_CXX='-L$libdir'
13288 hardcode_libdir_separator_CXX=
13289 fi
13290 esac
13291 shared_flag='-shared'
13292 if test "$aix_use_runtimelinking" = yes; then
13293 shared_flag="$shared_flag "'${wl}-G'
13294 fi
13295 else
13296 # not using gcc
13297 if test "$host_cpu" = ia64; then
13298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13299 # chokes on -Wl,-G. The following line is correct:
13300 shared_flag='-G'
13301 else
13302 if test "$aix_use_runtimelinking" = yes; then
13303 shared_flag='${wl}-G'
13304 else
13305 shared_flag='${wl}-bM:SRE'
13306 fi
13307 fi
13308 fi
13309
13310 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13311 # It seems that -bexpall does not export symbols beginning with
13312 # underscore (_), so it is better to generate a list of symbols to
13313 # export.
13314 always_export_symbols_CXX=yes
13315 if test "$aix_use_runtimelinking" = yes; then
13316 # Warning - without using the other runtime loading flags (-brtl),
13317 # -berok will link without error, but may produce a broken library.
13318 allow_undefined_flag_CXX='-berok'
13319 # Determine the default libpath from the value encoded in an empty
13320 # executable.
13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322/* end confdefs.h. */
13323
13324int
13325main ()
13326{
13327
13328 ;
13329 return 0;
13330}
13331_ACEOF
13332if ac_fn_cxx_try_link "$LINENO"; then :
13333
13334lt_aix_libpath_sed='
13335 /Import File Strings/,/^$/ {
13336 /^0/ {
13337 s/^0 *\(.*\)$/\1/
13338 p
13339 }
13340 }'
13341aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13342# Check for a 64-bit object if we didn't find anything.
13343if test -z "$aix_libpath"; then
13344 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13345fi
13346fi
13347rm -f core conftest.err conftest.$ac_objext \
13348 conftest$ac_exeext conftest.$ac_ext
13349if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13350
13351 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13352
13353 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"
13354 else
13355 if test "$host_cpu" = ia64; then
13356 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13357 allow_undefined_flag_CXX="-z nodefs"
13358 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"
13359 else
13360 # Determine the default libpath from the value encoded in an
13361 # empty executable.
13362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13363/* end confdefs.h. */
13364
13365int
13366main ()
13367{
13368
13369 ;
13370 return 0;
13371}
13372_ACEOF
13373if ac_fn_cxx_try_link "$LINENO"; then :
13374
13375lt_aix_libpath_sed='
13376 /Import File Strings/,/^$/ {
13377 /^0/ {
13378 s/^0 *\(.*\)$/\1/
13379 p
13380 }
13381 }'
13382aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13383# Check for a 64-bit object if we didn't find anything.
13384if test -z "$aix_libpath"; then
13385 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13386fi
13387fi
13388rm -f core conftest.err conftest.$ac_objext \
13389 conftest$ac_exeext conftest.$ac_ext
13390if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13391
13392 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13393 # Warning - without using the other run time loading flags,
13394 # -berok will link without error, but may produce a broken library.
13395 no_undefined_flag_CXX=' ${wl}-bernotok'
13396 allow_undefined_flag_CXX=' ${wl}-berok'
13397 if test "$with_gnu_ld" = yes; then
13398 # We only use this code for GNU lds that support --whole-archive.
13399 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13400 else
13401 # Exported symbols can be pulled into shared objects from archives
13402 whole_archive_flag_spec_CXX='$convenience'
13403 fi
13404 archive_cmds_need_lc_CXX=yes
13405 # This is similar to how AIX traditionally builds its shared
13406 # libraries.
13407 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'
13408 fi
13409 fi
13410 ;;
13411
13412 beos*)
13413 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13414 allow_undefined_flag_CXX=unsupported
13415 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13416 # support --undefined. This deserves some investigation. FIXME
13417 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13418 else
13419 ld_shlibs_CXX=no
13420 fi
13421 ;;
13422
13423 chorus*)
13424 case $cc_basename in
13425 *)
13426 # FIXME: insert proper C++ library support
13427 ld_shlibs_CXX=no
13428 ;;
13429 esac
13430 ;;
13431
13432 cygwin* | mingw* | pw32* | cegcc*)
13433 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13434 # as there is no search path for DLLs.
13435 hardcode_libdir_flag_spec_CXX='-L$libdir'
13436 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13437 allow_undefined_flag_CXX=unsupported
13438 always_export_symbols_CXX=no
13439 enable_shared_with_static_runtimes_CXX=yes
13440
13441 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13442 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'
13443 # If the export-symbols file already is a .def file (1st line
13444 # is EXPORTS), use it as is; otherwise, prepend...
13445 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13446 cp $export_symbols $output_objdir/$soname.def;
13447 else
13448 echo EXPORTS > $output_objdir/$soname.def;
13449 cat $export_symbols >> $output_objdir/$soname.def;
13450 fi~
13451 $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'
13452 else
13453 ld_shlibs_CXX=no
13454 fi
13455 ;;
13456 darwin* | rhapsody*)
13457
13458
6a6d3817
IS
13459
13460 # Publish an arg to allow the user to select that Darwin host (and target)
13461 # libraries should be given install-names like @rpath/libfoo.dylib. This
13462 # requires that the user of the library then adds an 'rpath' to the DSO that
13463 # needs access.
13464 # NOTE: there are defaults below, for systems that support rpaths. The person
13465 # configuring can override the defaults for any system version that supports
13466 # them - they are, however, forced off for system versions without support.
13467 # Check whether --enable-darwin-at-rpath was given.
13468if test "${enable_darwin_at_rpath+set}" = set; then :
13469 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
13470 # This is not supported before macOS 10.5 / Darwin9.
13471 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13472 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
13474$as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
13475 enable_darwin_at_rpath=no
13476 ;;
13477 esac
13478 fi
13479else
13480 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13481 # As above, before 10.5 / Darwin9 this does not work.
13482 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13483 enable_darwin_at_rpath=no
13484 ;;
13485
13486 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
13487 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
13488 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
13489 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
13491$as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
13492 enable_darwin_at_rpath=yes
13493 ;;
13494 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
13495 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
13496
13497 esac
13498
13499fi
13500
13501
c915a581
JJ
13502 archive_cmds_need_lc_CXX=no
13503 hardcode_direct_CXX=no
13504 hardcode_automatic_CXX=yes
13505 hardcode_shlibpath_var_CXX=unsupported
13506 if test "$lt_cv_ld_force_load" = "yes"; then
13507 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\"`'
13508 else
13509 whole_archive_flag_spec_CXX=''
13510 fi
13511 link_all_deplibs_CXX=yes
13512 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13513 case $cc_basename in
13514 ifort*) _lt_dar_can_shared=yes ;;
13515 *) _lt_dar_can_shared=$GCC ;;
13516 esac
13517 if test "$_lt_dar_can_shared" = "yes"; then
13518 output_verbose_link_cmd=func_echo_all
6a6d3817
IS
13519 _lt_install_name='\$rpath/\$soname'
13520 if test "x$enable_darwin_at_rpath" = "xyes"; then
13521 _lt_install_name='@rpath/\$soname'
13522 fi
13523 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
c915a581 13524 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6a6d3817 13525 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
c915a581
JJ
13526 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}"
13527 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
6a6d3817
IS
13528 _lt_install_name='\$rpath/\$soname'
13529 if test "x$enable_darwin_at_rpath" = "xyes"; then
13530 _lt_install_name='@rpath/\$soname'
13531 fi
13532 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 ${_lt_install_name} \$verstring${_lt_dsymutil}"
c915a581
JJ
13533 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}"
13534 fi
13535
13536 else
13537 ld_shlibs_CXX=no
13538 fi
13539
13540 ;;
13541
13542 dgux*)
13543 case $cc_basename in
13544 ec++*)
13545 # FIXME: insert proper C++ library support
13546 ld_shlibs_CXX=no
13547 ;;
13548 ghcx*)
13549 # Green Hills C++ Compiler
13550 # FIXME: insert proper C++ library support
13551 ld_shlibs_CXX=no
13552 ;;
13553 *)
13554 # FIXME: insert proper C++ library support
13555 ld_shlibs_CXX=no
13556 ;;
13557 esac
13558 ;;
13559
13560 freebsd2.*)
13561 # C++ shared libraries reported to be fairly broken before
13562 # switch to ELF
13563 ld_shlibs_CXX=no
13564 ;;
13565
13566 freebsd-elf*)
13567 archive_cmds_need_lc_CXX=no
13568 ;;
13569
13570 freebsd* | dragonfly*)
13571 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13572 # conventions
13573 ld_shlibs_CXX=yes
13574 ;;
13575
13576 gnu*)
13577 ;;
13578
13579 haiku*)
13580 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13581 link_all_deplibs_CXX=yes
13582 ;;
13583
13584 hpux9*)
13585 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13586 hardcode_libdir_separator_CXX=:
13587 export_dynamic_flag_spec_CXX='${wl}-E'
13588 hardcode_direct_CXX=yes
13589 hardcode_minus_L_CXX=yes # Not in the search PATH,
13590 # but as the default
13591 # location of the library.
13592
13593 case $cc_basename in
13594 CC*)
13595 # FIXME: insert proper C++ library support
13596 ld_shlibs_CXX=no
13597 ;;
13598 aCC*)
13599 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'
13600 # Commands to make compiler produce verbose output that lists
13601 # what "hidden" libraries, object files and flags are used when
13602 # linking a shared library.
13603 #
13604 # There doesn't appear to be a way to prevent this compiler from
13605 # explicitly linking system object files so we need to strip them
13606 # from the output so that they don't get included in the library
13607 # dependencies.
13608 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"'
13609 ;;
13610 *)
13611 if test "$GXX" = yes; then
13612 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'
13613 else
13614 # FIXME: insert proper C++ library support
13615 ld_shlibs_CXX=no
13616 fi
13617 ;;
13618 esac
13619 ;;
13620
13621 hpux10*|hpux11*)
13622 if test $with_gnu_ld = no; then
13623 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13624 hardcode_libdir_separator_CXX=:
13625
13626 case $host_cpu in
13627 hppa*64*|ia64*)
13628 ;;
13629 *)
13630 export_dynamic_flag_spec_CXX='${wl}-E'
13631 ;;
13632 esac
13633 fi
13634 case $host_cpu in
13635 hppa*64*|ia64*)
13636 hardcode_direct_CXX=no
13637 hardcode_shlibpath_var_CXX=no
13638 ;;
13639 *)
13640 hardcode_direct_CXX=yes
13641 hardcode_direct_absolute_CXX=yes
13642 hardcode_minus_L_CXX=yes # Not in the search PATH,
13643 # but as the default
13644 # location of the library.
13645 ;;
13646 esac
13647
13648 case $cc_basename in
13649 CC*)
13650 # FIXME: insert proper C++ library support
13651 ld_shlibs_CXX=no
13652 ;;
13653 aCC*)
13654 case $host_cpu in
13655 hppa*64*)
4e4ba647 13656 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
c915a581
JJ
13657 ;;
13658 ia64*)
13659 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13660 ;;
13661 *)
13662 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13663 ;;
13664 esac
13665 # Commands to make compiler produce verbose output that lists
13666 # what "hidden" libraries, object files and flags are used when
13667 # linking a shared library.
13668 #
13669 # There doesn't appear to be a way to prevent this compiler from
13670 # explicitly linking system object files so we need to strip them
13671 # from the output so that they don't get included in the library
13672 # dependencies.
13673 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"'
13674 ;;
13675 *)
13676 if test "$GXX" = yes; then
13677 if test $with_gnu_ld = no; then
13678 case $host_cpu in
13679 hppa*64*)
4e4ba647 13680 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
c915a581
JJ
13681 ;;
13682 ia64*)
13683 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13684 ;;
13685 *)
13686 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'
13687 ;;
13688 esac
13689 fi
13690 else
13691 # FIXME: insert proper C++ library support
13692 ld_shlibs_CXX=no
13693 fi
13694 ;;
13695 esac
13696 ;;
13697
13698 interix[3-9]*)
13699 hardcode_direct_CXX=no
13700 hardcode_shlibpath_var_CXX=no
13701 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13702 export_dynamic_flag_spec_CXX='${wl}-E'
13703 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13704 # Instead, shared libraries are loaded at an image base (0x10000000 by
13705 # default) and relocated if they conflict, which is a slow very memory
13706 # consuming and fragmenting process. To avoid this, we pick a random,
13707 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13708 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13709 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'
13710 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'
13711 ;;
13712 irix5* | irix6*)
13713 case $cc_basename in
13714 CC*)
13715 # SGI C++
13716 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'
13717
13718 # Archives containing C++ object files must be created using
13719 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13720 # necessary to make sure instantiated templates are included
13721 # in the archive.
13722 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13723 ;;
13724 *)
13725 if test "$GXX" = yes; then
13726 if test "$with_gnu_ld" = no; then
13727 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'
13728 else
13729 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'
13730 fi
13731 fi
13732 link_all_deplibs_CXX=yes
13733 ;;
13734 esac
13735 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13736 hardcode_libdir_separator_CXX=:
13737 inherit_rpath_CXX=yes
13738 ;;
13739
13740 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13741 case $cc_basename in
13742 KCC*)
13743 # Kuck and Associates, Inc. (KAI) C++ Compiler
13744
13745 # KCC will only create a shared library if the output file
13746 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13747 # to its proper name (with version) after linking.
13748 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'
13749 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'
13750 # Commands to make compiler produce verbose output that lists
13751 # what "hidden" libraries, object files and flags are used when
13752 # linking a shared library.
13753 #
13754 # There doesn't appear to be a way to prevent this compiler from
13755 # explicitly linking system object files so we need to strip them
13756 # from the output so that they don't get included in the library
13757 # dependencies.
13758 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"'
13759
13760 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13761 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13762
13763 # Archives containing C++ object files must be created using
13764 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13765 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13766 ;;
13767 icpc* | ecpc* )
13768 # Intel C++
13769 with_gnu_ld=yes
13770 # version 8.0 and above of icpc choke on multiply defined symbols
13771 # if we add $predep_objects and $postdep_objects, however 7.1 and
13772 # earlier do not add the objects themselves.
13773 case `$CC -V 2>&1` in
13774 *"Version 7."*)
13775 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13776 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'
13777 ;;
13778 *) # Version 8.0 or newer
13779 tmp_idyn=
13780 case $host_cpu in
13781 ia64*) tmp_idyn=' -i_dynamic';;
13782 esac
13783 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13784 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'
13785 ;;
13786 esac
13787 archive_cmds_need_lc_CXX=no
13788 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13789 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13790 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13791 ;;
13792 pgCC* | pgcpp*)
13793 # Portland Group C++ compiler
13794 case `$CC -V` in
13795 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13796 prelink_cmds_CXX='tpldir=Template.dir~
13797 rm -rf $tpldir~
13798 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
8468f944 13799 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
c915a581
JJ
13800 old_archive_cmds_CXX='tpldir=Template.dir~
13801 rm -rf $tpldir~
13802 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
8468f944 13803 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
c915a581
JJ
13804 $RANLIB $oldlib'
13805 archive_cmds_CXX='tpldir=Template.dir~
13806 rm -rf $tpldir~
13807 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8468f944 13808 $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
13809 archive_expsym_cmds_CXX='tpldir=Template.dir~
13810 rm -rf $tpldir~
13811 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8468f944 13812 $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
13813 ;;
13814 *) # Version 6 and above use weak symbols
13815 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13816 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'
13817 ;;
13818 esac
13819
13820 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13821 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13822 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'
13823 ;;
13824 cxx*)
13825 # Compaq C++
13826 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13827 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'
13828
13829 runpath_var=LD_RUN_PATH
13830 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13831 hardcode_libdir_separator_CXX=:
13832
13833 # Commands to make compiler produce verbose output that lists
13834 # what "hidden" libraries, object files and flags are used when
13835 # linking a shared library.
13836 #
13837 # There doesn't appear to be a way to prevent this compiler from
13838 # explicitly linking system object files so we need to strip them
13839 # from the output so that they don't get included in the library
13840 # dependencies.
13841 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'
13842 ;;
13843 xl* | mpixl* | bgxl*)
13844 # IBM XL 8.0 on PPC, with GNU ld
13845 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13846 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13847 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13848 if test "x$supports_anon_versioning" = xyes; then
13849 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13850 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13851 echo "local: *; };" >> $output_objdir/$libname.ver~
13852 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13853 fi
13854 ;;
13855 *)
13856 case `$CC -V 2>&1 | sed 5q` in
13857 *Sun\ C*)
13858 # Sun C++ 5.9
13859 no_undefined_flag_CXX=' -zdefs'
13860 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13861 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'
13862 hardcode_libdir_flag_spec_CXX='-R$libdir'
13863 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'
13864 compiler_needs_object_CXX=yes
13865
13866 # Not sure whether something based on
13867 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13868 # would be better.
13869 output_verbose_link_cmd='func_echo_all'
13870
13871 # Archives containing C++ object files must be created using
13872 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13873 # necessary to make sure instantiated templates are included
13874 # in the archive.
13875 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13876 ;;
13877 esac
13878 ;;
13879 esac
13880 ;;
13881
13882 lynxos*)
13883 # FIXME: insert proper C++ library support
13884 ld_shlibs_CXX=no
13885 ;;
13886
13887 m88k*)
13888 # FIXME: insert proper C++ library support
13889 ld_shlibs_CXX=no
13890 ;;
13891
13892 mvs*)
13893 case $cc_basename in
13894 cxx*)
13895 # FIXME: insert proper C++ library support
13896 ld_shlibs_CXX=no
13897 ;;
13898 *)
13899 # FIXME: insert proper C++ library support
13900 ld_shlibs_CXX=no
13901 ;;
13902 esac
13903 ;;
13904
13905 netbsd*)
13906 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13907 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13908 wlarc=
13909 hardcode_libdir_flag_spec_CXX='-R$libdir'
13910 hardcode_direct_CXX=yes
13911 hardcode_shlibpath_var_CXX=no
13912 fi
13913 # Workaround some broken pre-1.5 toolchains
13914 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13915 ;;
13916
13917 *nto* | *qnx*)
13918 ld_shlibs_CXX=yes
13919 ;;
13920
13921 openbsd2*)
13922 # C++ shared libraries are fairly broken
13923 ld_shlibs_CXX=no
13924 ;;
13925
13926 openbsd*)
13927 if test -f /usr/libexec/ld.so; then
13928 hardcode_direct_CXX=yes
13929 hardcode_shlibpath_var_CXX=no
13930 hardcode_direct_absolute_CXX=yes
13931 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13932 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13933 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13934 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13935 export_dynamic_flag_spec_CXX='${wl}-E'
13936 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13937 fi
13938 output_verbose_link_cmd=func_echo_all
13939 else
13940 ld_shlibs_CXX=no
13941 fi
13942 ;;
13943
13944 osf3* | osf4* | osf5*)
13945 case $cc_basename in
13946 KCC*)
13947 # Kuck and Associates, Inc. (KAI) C++ Compiler
13948
13949 # KCC will only create a shared library if the output file
13950 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13951 # to its proper name (with version) after linking.
13952 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'
13953
13954 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13955 hardcode_libdir_separator_CXX=:
13956
13957 # Archives containing C++ object files must be created using
13958 # the KAI C++ compiler.
13959 case $host in
13960 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13961 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13962 esac
13963 ;;
13964 RCC*)
13965 # Rational C++ 2.4.1
13966 # FIXME: insert proper C++ library support
13967 ld_shlibs_CXX=no
13968 ;;
13969 cxx*)
13970 case $host in
13971 osf3*)
13972 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13973 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'
13974 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13975 ;;
13976 *)
13977 allow_undefined_flag_CXX=' -expect_unresolved \*'
13978 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'
13979 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13980 echo "-hidden">> $lib.exp~
13981 $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~
13982 $RM $lib.exp'
13983 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13984 ;;
13985 esac
13986
13987 hardcode_libdir_separator_CXX=:
13988
13989 # Commands to make compiler produce verbose output that lists
13990 # what "hidden" libraries, object files and flags are used when
13991 # linking a shared library.
13992 #
13993 # There doesn't appear to be a way to prevent this compiler from
13994 # explicitly linking system object files so we need to strip them
13995 # from the output so that they don't get included in the library
13996 # dependencies.
13997 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"'
13998 ;;
13999 *)
14000 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14001 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14002 case $host in
14003 osf3*)
14004 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'
14005 ;;
14006 *)
14007 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'
14008 ;;
14009 esac
14010
14011 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14012 hardcode_libdir_separator_CXX=:
14013
14014 # Commands to make compiler produce verbose output that lists
14015 # what "hidden" libraries, object files and flags are used when
14016 # linking a shared library.
14017 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14018
14019 else
14020 # FIXME: insert proper C++ library support
14021 ld_shlibs_CXX=no
14022 fi
14023 ;;
14024 esac
14025 ;;
14026
14027 psos*)
14028 # FIXME: insert proper C++ library support
14029 ld_shlibs_CXX=no
14030 ;;
14031
14032 sunos4*)
14033 case $cc_basename in
14034 CC*)
14035 # Sun C++ 4.x
14036 # FIXME: insert proper C++ library support
14037 ld_shlibs_CXX=no
14038 ;;
14039 lcc*)
14040 # Lucid
14041 # FIXME: insert proper C++ library support
14042 ld_shlibs_CXX=no
14043 ;;
14044 *)
14045 # FIXME: insert proper C++ library support
14046 ld_shlibs_CXX=no
14047 ;;
14048 esac
14049 ;;
14050
14051 solaris*)
14052 case $cc_basename in
14053 CC*)
14054 # Sun C++ 4.2, 5.x and Centerline C++
14055 archive_cmds_need_lc_CXX=yes
14056 no_undefined_flag_CXX=' -zdefs'
14057 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14058 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14059 $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'
14060
14061 hardcode_libdir_flag_spec_CXX='-R$libdir'
14062 hardcode_shlibpath_var_CXX=no
14063 case $host_os in
14064 solaris2.[0-5] | solaris2.[0-5].*) ;;
14065 *)
14066 # The compiler driver will combine and reorder linker options,
14067 # but understands `-z linker_flag'.
14068 # Supported since Solaris 2.6 (maybe 2.5.1?)
14069 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14070 ;;
14071 esac
14072 link_all_deplibs_CXX=yes
14073
14074 output_verbose_link_cmd='func_echo_all'
14075
14076 # Archives containing C++ object files must be created using
14077 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14078 # necessary to make sure instantiated templates are included
14079 # in the archive.
14080 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14081 ;;
14082 gcx*)
14083 # Green Hills C++ Compiler
14084 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14085
14086 # The C++ compiler must be used to create the archive.
14087 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14088 ;;
14089 *)
14090 # GNU C++ compiler with Solaris linker
14091 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14092 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14093 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14094 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14095 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14096 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14097
14098 # Commands to make compiler produce verbose output that lists
14099 # what "hidden" libraries, object files and flags are used when
14100 # linking a shared library.
14101 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14102 else
14103 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14104 # platform.
14105 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14106 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14107 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14108
14109 # Commands to make compiler produce verbose output that lists
14110 # what "hidden" libraries, object files and flags are used when
14111 # linking a shared library.
14112 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14113 fi
14114
14115 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14116 case $host_os in
14117 solaris2.[0-5] | solaris2.[0-5].*) ;;
14118 *)
14119 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14120 ;;
14121 esac
14122 fi
14123 ;;
14124 esac
14125 ;;
14126
14127 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14128 no_undefined_flag_CXX='${wl}-z,text'
14129 archive_cmds_need_lc_CXX=no
14130 hardcode_shlibpath_var_CXX=no
14131 runpath_var='LD_RUN_PATH'
14132
14133 case $cc_basename in
14134 CC*)
14135 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14136 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14137 ;;
14138 *)
14139 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14140 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14141 ;;
14142 esac
14143 ;;
14144
14145 sysv5* | sco3.2v5* | sco5v6*)
14146 # Note: We can NOT use -z defs as we might desire, because we do not
14147 # link with -lc, and that would cause any symbols used from libc to
14148 # always be unresolved, which means just about no library would
14149 # ever link correctly. If we're not using GNU ld we use -z text
14150 # though, which does catch some bad symbols but isn't as heavy-handed
14151 # as -z defs.
14152 no_undefined_flag_CXX='${wl}-z,text'
14153 allow_undefined_flag_CXX='${wl}-z,nodefs'
14154 archive_cmds_need_lc_CXX=no
14155 hardcode_shlibpath_var_CXX=no
14156 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14157 hardcode_libdir_separator_CXX=':'
14158 link_all_deplibs_CXX=yes
14159 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14160 runpath_var='LD_RUN_PATH'
14161
14162 case $cc_basename in
14163 CC*)
14164 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14165 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14166 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14167 '"$old_archive_cmds_CXX"
14168 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14169 '"$reload_cmds_CXX"
14170 ;;
14171 *)
14172 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14173 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14174 ;;
14175 esac
14176 ;;
14177
14178 tandem*)
14179 case $cc_basename in
14180 NCC*)
14181 # NonStop-UX NCC 3.20
14182 # FIXME: insert proper C++ library support
14183 ld_shlibs_CXX=no
14184 ;;
14185 *)
14186 # FIXME: insert proper C++ library support
14187 ld_shlibs_CXX=no
14188 ;;
14189 esac
14190 ;;
14191
14192 vxworks*)
0ecd0f1c
OH
14193 # For VxWorks ports, we assume the use of a GNU linker with
14194 # standard elf conventions.
14195 ld_shlibs_CXX=yes
c915a581
JJ
14196 ;;
14197
14198 *)
14199 # FIXME: insert proper C++ library support
14200 ld_shlibs_CXX=no
14201 ;;
14202 esac
14203
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14205$as_echo "$ld_shlibs_CXX" >&6; }
14206 test "$ld_shlibs_CXX" = no && can_build_shared=no
14207
14208 GCC_CXX="$GXX"
14209 LD_CXX="$LD"
14210
14211 ## CAVEAT EMPTOR:
14212 ## There is no encapsulation within the following macros, do not change
14213 ## the running order or otherwise move them around unless you know exactly
14214 ## what you are doing...
14215 # Dependencies to place before and after the object being linked:
14216predep_objects_CXX=
14217postdep_objects_CXX=
14218predeps_CXX=
14219postdeps_CXX=
14220compiler_lib_search_path_CXX=
14221
14222cat > conftest.$ac_ext <<_LT_EOF
14223class Foo
14224{
14225public:
14226 Foo (void) { a = 0; }
14227private:
14228 int a;
14229};
14230_LT_EOF
14231
14232if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14233 (eval $ac_compile) 2>&5
14234 ac_status=$?
14235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14236 test $ac_status = 0; }; then
14237 # Parse the compiler output and extract the necessary
14238 # objects, libraries and library flags.
14239
14240 # Sentinel used to keep track of whether or not we are before
14241 # the conftest object file.
14242 pre_test_object_deps_done=no
14243
14244 for p in `eval "$output_verbose_link_cmd"`; do
14245 case $p in
14246
14247 -L* | -R* | -l*)
14248 # Some compilers place space between "-{L,R}" and the path.
14249 # Remove the space.
14250 if test $p = "-L" ||
14251 test $p = "-R"; then
14252 prev=$p
14253 continue
14254 else
14255 prev=
14256 fi
14257
14258 if test "$pre_test_object_deps_done" = no; then
14259 case $p in
14260 -L* | -R*)
14261 # Internal compiler library paths should come after those
14262 # provided the user. The postdeps already come after the
14263 # user supplied libs so there is no need to process them.
14264 if test -z "$compiler_lib_search_path_CXX"; then
14265 compiler_lib_search_path_CXX="${prev}${p}"
14266 else
14267 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14268 fi
14269 ;;
14270 # The "-l" case would never come before the object being
14271 # linked, so don't bother handling this case.
14272 esac
14273 else
14274 if test -z "$postdeps_CXX"; then
14275 postdeps_CXX="${prev}${p}"
14276 else
14277 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14278 fi
14279 fi
14280 ;;
14281
14282 *.$objext)
14283 # This assumes that the test object file only shows up
14284 # once in the compiler output.
14285 if test "$p" = "conftest.$objext"; then
14286 pre_test_object_deps_done=yes
14287 continue
14288 fi
14289
14290 if test "$pre_test_object_deps_done" = no; then
14291 if test -z "$predep_objects_CXX"; then
14292 predep_objects_CXX="$p"
14293 else
14294 predep_objects_CXX="$predep_objects_CXX $p"
14295 fi
14296 else
14297 if test -z "$postdep_objects_CXX"; then
14298 postdep_objects_CXX="$p"
14299 else
14300 postdep_objects_CXX="$postdep_objects_CXX $p"
14301 fi
14302 fi
14303 ;;
14304
14305 *) ;; # Ignore the rest.
14306
14307 esac
14308 done
14309
14310 # Clean up.
14311 rm -f a.out a.exe
14312else
14313 echo "libtool.m4: error: problem compiling CXX test program"
14314fi
14315
14316$RM -f confest.$objext
14317
14318# PORTME: override above test on systems where it is broken
14319case $host_os in
14320interix[3-9]*)
14321 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14322 # hack all around it, let's just trust "g++" to DTRT.
14323 predep_objects_CXX=
14324 postdep_objects_CXX=
14325 postdeps_CXX=
14326 ;;
14327
14328linux*)
14329 case `$CC -V 2>&1 | sed 5q` in
14330 *Sun\ C*)
14331 # Sun C++ 5.9
14332
14333 # The more standards-conforming stlport4 library is
14334 # incompatible with the Cstd library. Avoid specifying
14335 # it if it's in CXXFLAGS. Ignore libCrun as
14336 # -library=stlport4 depends on it.
14337 case " $CXX $CXXFLAGS " in
14338 *" -library=stlport4 "*)
14339 solaris_use_stlport4=yes
14340 ;;
14341 esac
14342
14343 if test "$solaris_use_stlport4" != yes; then
14344 postdeps_CXX='-library=Cstd -library=Crun'
14345 fi
14346 ;;
14347 esac
14348 ;;
14349
14350solaris*)
14351 case $cc_basename in
14352 CC*)
14353 # The more standards-conforming stlport4 library is
14354 # incompatible with the Cstd library. Avoid specifying
14355 # it if it's in CXXFLAGS. Ignore libCrun as
14356 # -library=stlport4 depends on it.
14357 case " $CXX $CXXFLAGS " in
14358 *" -library=stlport4 "*)
14359 solaris_use_stlport4=yes
14360 ;;
14361 esac
14362
14363 # Adding this requires a known-good setup of shared libraries for
14364 # Sun compiler versions before 5.6, else PIC objects from an old
14365 # archive will be linked into the output, leading to subtle bugs.
14366 if test "$solaris_use_stlport4" != yes; then
14367 postdeps_CXX='-library=Cstd -library=Crun'
14368 fi
14369 ;;
14370 esac
14371 ;;
14372esac
14373
14374
14375case " $postdeps_CXX " in
14376*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14377esac
14378 compiler_lib_search_dirs_CXX=
14379if test -n "${compiler_lib_search_path_CXX}"; then
14380 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14381fi
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413 lt_prog_compiler_wl_CXX=
14414lt_prog_compiler_pic_CXX=
14415lt_prog_compiler_static_CXX=
14416
14417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14418$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14419
14420 # C++ specific cases for pic, static, wl, etc.
14421 if test "$GXX" = yes; then
14422 lt_prog_compiler_wl_CXX='-Wl,'
14423 lt_prog_compiler_static_CXX='-static'
f35db108
WM
14424
14425 case $host_os in
14426 aix*)
14427 # All AIX code is PIC.
14428 if test "$host_cpu" = ia64; then
14429 # AIX 5 now supports IA64 processor
14430 lt_prog_compiler_static_CXX='-Bstatic'
14431 fi
a2479b3d 14432 lt_prog_compiler_pic_CXX='-fPIC'
f35db108
WM
14433 ;;
14434
c915a581
JJ
14435 amigaos*)
14436 case $host_cpu in
14437 powerpc)
14438 # see comment about AmigaOS4 .so support
14439 lt_prog_compiler_pic_CXX='-fPIC'
14440 ;;
14441 m68k)
14442 # FIXME: we need at least 68020 code to build shared libraries, but
14443 # adding the `-m68020' flag to GCC prevents building anything better,
14444 # like `-m68040'.
14445 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14446 ;;
14447 esac
14448 ;;
14449
14450 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14451 # PIC is the default for these OSes.
14452 ;;
14453 mingw* | cygwin* | os2* | pw32* | cegcc*)
14454 # This hack is so that the source file can tell whether it is being
14455 # built for inclusion in a dll (and should export symbols for example).
14456 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14457 # (--disable-auto-import) libraries
14458 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14459 ;;
14460 darwin* | rhapsody*)
14461 # PIC is the default on this platform
14462 # Common symbols not allowed in MH_DYLIB files
14463 lt_prog_compiler_pic_CXX='-fno-common'
14464 ;;
14465 *djgpp*)
14466 # DJGPP does not support shared libraries at all
14467 lt_prog_compiler_pic_CXX=
14468 ;;
14469 haiku*)
14470 # PIC is the default for Haiku.
14471 # The "-static" flag exists, but is broken.
14472 lt_prog_compiler_static_CXX=
14473 ;;
14474 interix[3-9]*)
14475 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14476 # Instead, we relocate shared libraries at runtime.
14477 ;;
14478 sysv4*MP*)
14479 if test -d /usr/nec; then
14480 lt_prog_compiler_pic_CXX=-Kconform_pic
14481 fi
14482 ;;
14483 hpux*)
14484 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14485 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14486 # sets the default TLS model and affects inlining.
14487 case $host_cpu in
14488 hppa*64*)
14489 ;;
14490 *)
14491 lt_prog_compiler_pic_CXX='-fPIC'
14492 ;;
14493 esac
14494 ;;
14495 *qnx* | *nto*)
14496 # QNX uses GNU C++, but need to define -shared option too, otherwise
14497 # it will coredump.
14498 lt_prog_compiler_pic_CXX='-fPIC -shared'
14499 ;;
14500 *)
14501 lt_prog_compiler_pic_CXX='-fPIC'
14502 ;;
14503 esac
14504 else
14505 case $host_os in
14506 aix[4-9]*)
14507 # All AIX code is PIC.
14508 if test "$host_cpu" = ia64; then
14509 # AIX 5 now supports IA64 processor
14510 lt_prog_compiler_static_CXX='-Bstatic'
14511 else
14512 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14513 fi
14514 ;;
14515 chorus*)
14516 case $cc_basename in
14517 cxch68*)
14518 # Green Hills C++ Compiler
14519 # _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"
14520 ;;
14521 esac
14522 ;;
14523 dgux*)
14524 case $cc_basename in
14525 ec++*)
14526 lt_prog_compiler_pic_CXX='-KPIC'
14527 ;;
14528 ghcx*)
14529 # Green Hills C++ Compiler
14530 lt_prog_compiler_pic_CXX='-pic'
14531 ;;
14532 *)
14533 ;;
14534 esac
14535 ;;
14536 freebsd* | dragonfly*)
14537 # FreeBSD uses GNU C++
14538 ;;
14539 hpux9* | hpux10* | hpux11*)
14540 case $cc_basename in
14541 CC*)
14542 lt_prog_compiler_wl_CXX='-Wl,'
14543 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14544 if test "$host_cpu" != ia64; then
14545 lt_prog_compiler_pic_CXX='+Z'
14546 fi
14547 ;;
14548 aCC*)
14549 lt_prog_compiler_wl_CXX='-Wl,'
14550 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14551 case $host_cpu in
14552 hppa*64*|ia64*)
14553 # +Z the default
14554 ;;
14555 *)
14556 lt_prog_compiler_pic_CXX='+Z'
14557 ;;
14558 esac
14559 ;;
14560 *)
14561 ;;
14562 esac
14563 ;;
14564 interix*)
14565 # This is c89, which is MS Visual C++ (no shared libs)
14566 # Anyone wants to do a port?
14567 ;;
14568 irix5* | irix6* | nonstopux*)
14569 case $cc_basename in
14570 CC*)
14571 lt_prog_compiler_wl_CXX='-Wl,'
14572 lt_prog_compiler_static_CXX='-non_shared'
14573 # CC pic flag -KPIC is the default.
14574 ;;
14575 *)
14576 ;;
14577 esac
14578 ;;
14579 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14580 case $cc_basename in
14581 KCC*)
14582 # KAI C++ Compiler
14583 lt_prog_compiler_wl_CXX='--backend -Wl,'
14584 lt_prog_compiler_pic_CXX='-fPIC'
14585 ;;
14586 ecpc* )
14587 # old Intel C++ for x86_64 which still supported -KPIC.
14588 lt_prog_compiler_wl_CXX='-Wl,'
14589 lt_prog_compiler_pic_CXX='-KPIC'
14590 lt_prog_compiler_static_CXX='-static'
14591 ;;
14592 icpc* )
14593 # Intel C++, used to be incompatible with GCC.
14594 # ICC 10 doesn't accept -KPIC any more.
14595 lt_prog_compiler_wl_CXX='-Wl,'
14596 lt_prog_compiler_pic_CXX='-fPIC'
14597 lt_prog_compiler_static_CXX='-static'
14598 ;;
14599 pgCC* | pgcpp*)
14600 # Portland Group C++ compiler
14601 lt_prog_compiler_wl_CXX='-Wl,'
14602 lt_prog_compiler_pic_CXX='-fpic'
14603 lt_prog_compiler_static_CXX='-Bstatic'
14604 ;;
14605 cxx*)
14606 # Compaq C++
14607 # Make sure the PIC flag is empty. It appears that all Alpha
14608 # Linux and Compaq Tru64 Unix objects are PIC.
14609 lt_prog_compiler_pic_CXX=
14610 lt_prog_compiler_static_CXX='-non_shared'
14611 ;;
14612 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14613 # IBM XL 8.0, 9.0 on PPC and BlueGene
14614 lt_prog_compiler_wl_CXX='-Wl,'
14615 lt_prog_compiler_pic_CXX='-qpic'
14616 lt_prog_compiler_static_CXX='-qstaticlink'
14617 ;;
14618 *)
14619 case `$CC -V 2>&1 | sed 5q` in
14620 *Sun\ C*)
14621 # Sun C++ 5.9
14622 lt_prog_compiler_pic_CXX='-KPIC'
14623 lt_prog_compiler_static_CXX='-Bstatic'
14624 lt_prog_compiler_wl_CXX='-Qoption ld '
14625 ;;
14626 esac
14627 ;;
14628 esac
14629 ;;
14630 lynxos*)
14631 ;;
14632 m88k*)
14633 ;;
14634 mvs*)
14635 case $cc_basename in
14636 cxx*)
14637 lt_prog_compiler_pic_CXX='-W c,exportall'
14638 ;;
14639 *)
14640 ;;
14641 esac
14642 ;;
14643 netbsd*)
14644 ;;
14645 *qnx* | *nto*)
14646 # QNX uses GNU C++, but need to define -shared option too, otherwise
14647 # it will coredump.
14648 lt_prog_compiler_pic_CXX='-fPIC -shared'
14649 ;;
14650 osf3* | osf4* | osf5*)
14651 case $cc_basename in
14652 KCC*)
14653 lt_prog_compiler_wl_CXX='--backend -Wl,'
14654 ;;
14655 RCC*)
14656 # Rational C++ 2.4.1
14657 lt_prog_compiler_pic_CXX='-pic'
14658 ;;
14659 cxx*)
14660 # Digital/Compaq C++
14661 lt_prog_compiler_wl_CXX='-Wl,'
14662 # Make sure the PIC flag is empty. It appears that all Alpha
14663 # Linux and Compaq Tru64 Unix objects are PIC.
14664 lt_prog_compiler_pic_CXX=
14665 lt_prog_compiler_static_CXX='-non_shared'
14666 ;;
14667 *)
14668 ;;
14669 esac
14670 ;;
14671 psos*)
14672 ;;
14673 solaris*)
14674 case $cc_basename in
14675 CC*)
14676 # Sun C++ 4.2, 5.x and Centerline C++
14677 lt_prog_compiler_pic_CXX='-KPIC'
14678 lt_prog_compiler_static_CXX='-Bstatic'
14679 lt_prog_compiler_wl_CXX='-Qoption ld '
14680 ;;
14681 gcx*)
14682 # Green Hills C++ Compiler
14683 lt_prog_compiler_pic_CXX='-PIC'
14684 ;;
14685 *)
14686 ;;
14687 esac
14688 ;;
14689 sunos4*)
14690 case $cc_basename in
14691 CC*)
14692 # Sun C++ 4.x
14693 lt_prog_compiler_pic_CXX='-pic'
14694 lt_prog_compiler_static_CXX='-Bstatic'
14695 ;;
14696 lcc*)
14697 # Lucid
14698 lt_prog_compiler_pic_CXX='-pic'
14699 ;;
14700 *)
14701 ;;
14702 esac
14703 ;;
14704 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14705 case $cc_basename in
14706 CC*)
14707 lt_prog_compiler_wl_CXX='-Wl,'
14708 lt_prog_compiler_pic_CXX='-KPIC'
14709 lt_prog_compiler_static_CXX='-Bstatic'
14710 ;;
14711 esac
14712 ;;
14713 tandem*)
14714 case $cc_basename in
14715 NCC*)
14716 # NonStop-UX NCC 3.20
14717 lt_prog_compiler_pic_CXX='-KPIC'
14718 ;;
14719 *)
14720 ;;
14721 esac
14722 ;;
14723 vxworks*)
14724 ;;
14725 *)
14726 lt_prog_compiler_can_build_shared_CXX=no
14727 ;;
14728 esac
14729 fi
14730
14731case $host_os in
14732 # For platforms which do not support PIC, -DPIC is meaningless:
14733 *djgpp*)
14734 lt_prog_compiler_pic_CXX=
14735 ;;
14736 *)
14737 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14738 ;;
14739esac
14740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14741$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14742
14743
14744
14745#
14746# Check to make sure the PIC flag actually works.
14747#
14748if test -n "$lt_prog_compiler_pic_CXX"; then
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14750$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22e05272 14751if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
c915a581
JJ
14752 $as_echo_n "(cached) " >&6
14753else
14754 lt_cv_prog_compiler_pic_works_CXX=no
14755 ac_outfile=conftest.$ac_objext
14756 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14757 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14758 # Insert the option either (1) after the last *FLAGS variable, or
14759 # (2) before a word containing "conftest.", or (3) at the end.
14760 # Note that $ac_compile itself does not contain backslashes and begins
14761 # with a dollar sign (not a hyphen), so the echo should work correctly.
14762 # The option is referenced via a variable to avoid confusing sed.
14763 lt_compile=`echo "$ac_compile" | $SED \
14764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14766 -e 's:$: $lt_compiler_flag:'`
14767 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14768 (eval "$lt_compile" 2>conftest.err)
14769 ac_status=$?
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 if (exit $ac_status) && test -s "$ac_outfile"; then
14773 # The compiler can only warn and ignore the option if not recognized
14774 # So say no if there are warnings other than the usual output.
14775 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14777 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14778 lt_cv_prog_compiler_pic_works_CXX=yes
14779 fi
14780 fi
14781 $RM conftest*
14782
14783fi
14784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14785$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14786
14787if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14788 case $lt_prog_compiler_pic_CXX in
14789 "" | " "*) ;;
14790 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14791 esac
14792else
14793 lt_prog_compiler_pic_CXX=
14794 lt_prog_compiler_can_build_shared_CXX=no
14795fi
14796
14797fi
14798
14799
14800
14801#
14802# Check to make sure the static flag actually works.
14803#
14804wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14806$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 14807if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
c915a581
JJ
14808 $as_echo_n "(cached) " >&6
14809else
14810 lt_cv_prog_compiler_static_works_CXX=no
14811 save_LDFLAGS="$LDFLAGS"
14812 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14813 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14814 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14815 # The linker can only warn and ignore the option if not recognized
14816 # So say no if there are warnings
14817 if test -s conftest.err; then
14818 # Append any errors to the config.log.
14819 cat conftest.err 1>&5
14820 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14822 if diff conftest.exp conftest.er2 >/dev/null; then
14823 lt_cv_prog_compiler_static_works_CXX=yes
14824 fi
14825 else
14826 lt_cv_prog_compiler_static_works_CXX=yes
14827 fi
14828 fi
14829 $RM -r conftest*
14830 LDFLAGS="$save_LDFLAGS"
14831
14832fi
14833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14834$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14835
14836if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14837 :
14838else
14839 lt_prog_compiler_static_CXX=
14840fi
14841
14842
14843
14844
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14846$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 14847if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
c915a581
JJ
14848 $as_echo_n "(cached) " >&6
14849else
14850 lt_cv_prog_compiler_c_o_CXX=no
14851 $RM -r conftest 2>/dev/null
14852 mkdir conftest
14853 cd conftest
14854 mkdir out
14855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14856
14857 lt_compiler_flag="-o out/conftest2.$ac_objext"
14858 # Insert the option either (1) after the last *FLAGS variable, or
14859 # (2) before a word containing "conftest.", or (3) at the end.
14860 # Note that $ac_compile itself does not contain backslashes and begins
14861 # with a dollar sign (not a hyphen), so the echo should work correctly.
14862 lt_compile=`echo "$ac_compile" | $SED \
14863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14865 -e 's:$: $lt_compiler_flag:'`
14866 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14867 (eval "$lt_compile" 2>out/conftest.err)
14868 ac_status=$?
14869 cat out/conftest.err >&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14872 then
14873 # The compiler can only warn and ignore the option if not recognized
14874 # So say no if there are warnings
14875 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14876 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14877 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14878 lt_cv_prog_compiler_c_o_CXX=yes
14879 fi
14880 fi
14881 chmod u+w . 2>&5
14882 $RM conftest*
14883 # SGI C++ compiler will create directory out/ii_files/ for
14884 # template instantiation
14885 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14886 $RM out/* && rmdir out
14887 cd ..
14888 $RM -r conftest
14889 $RM conftest*
14890
14891fi
14892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14893$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14894
14895
14896
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14898$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 14899if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
c915a581
JJ
14900 $as_echo_n "(cached) " >&6
14901else
14902 lt_cv_prog_compiler_c_o_CXX=no
14903 $RM -r conftest 2>/dev/null
14904 mkdir conftest
14905 cd conftest
14906 mkdir out
14907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14908
14909 lt_compiler_flag="-o out/conftest2.$ac_objext"
14910 # Insert the option either (1) after the last *FLAGS variable, or
14911 # (2) before a word containing "conftest.", or (3) at the end.
14912 # Note that $ac_compile itself does not contain backslashes and begins
14913 # with a dollar sign (not a hyphen), so the echo should work correctly.
14914 lt_compile=`echo "$ac_compile" | $SED \
14915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14917 -e 's:$: $lt_compiler_flag:'`
14918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14919 (eval "$lt_compile" 2>out/conftest.err)
14920 ac_status=$?
14921 cat out/conftest.err >&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14924 then
14925 # The compiler can only warn and ignore the option if not recognized
14926 # So say no if there are warnings
14927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14930 lt_cv_prog_compiler_c_o_CXX=yes
14931 fi
14932 fi
14933 chmod u+w . 2>&5
14934 $RM conftest*
14935 # SGI C++ compiler will create directory out/ii_files/ for
14936 # template instantiation
14937 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14938 $RM out/* && rmdir out
14939 cd ..
14940 $RM -r conftest
14941 $RM conftest*
14942
14943fi
14944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14945$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14946
14947
14948
14949
14950hard_links="nottested"
14951if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14952 # do not overwrite the value of need_locks provided by the user
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14954$as_echo_n "checking if we can lock with hard links... " >&6; }
14955 hard_links=yes
14956 $RM conftest*
14957 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14958 touch conftest.a
14959 ln conftest.a conftest.b 2>&5 || hard_links=no
14960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14962$as_echo "$hard_links" >&6; }
14963 if test "$hard_links" = no; then
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14965$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14966 need_locks=warn
14967 fi
14968else
14969 need_locks=no
14970fi
14971
14972
14973
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14975$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14976
14977 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14978 case $host_os in
14979 aix[4-9]*)
14980 # If we're using GNU nm, then we don't want the "-C" option.
14981 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14982 # Also, AIX nm treats weak defined symbols like other global defined
14983 # symbols, whereas GNU nm marks them as "W".
14984 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14985 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'
14986 else
bf93d543 14987 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
14988 fi
14989 ;;
14990 pw32*)
14991 export_symbols_cmds_CXX="$ltdll_cmds"
14992 ;;
14993 cygwin* | mingw* | cegcc*)
14994 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'
14995 ;;
14996 *)
14997 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14998 ;;
14999 esac
15000 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15001
15002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15003$as_echo "$ld_shlibs_CXX" >&6; }
15004test "$ld_shlibs_CXX" = no && can_build_shared=no
15005
15006with_gnu_ld_CXX=$with_gnu_ld
15007
15008
15009
15010
15011
15012
15013#
15014# Do we need to explicitly link libc?
15015#
15016case "x$archive_cmds_need_lc_CXX" in
15017x|xyes)
15018 # Assume -lc should be added
15019 archive_cmds_need_lc_CXX=yes
15020
15021 if test "$enable_shared" = yes && test "$GCC" = yes; then
15022 case $archive_cmds_CXX in
15023 *'~'*)
15024 # FIXME: we may have to deal with multi-command sequences.
15025 ;;
15026 '$CC '*)
15027 # Test whether the compiler implicitly links with -lc since on some
15028 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15029 # to ld, don't add -lc before -lgcc.
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15031$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 15032if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
c915a581
JJ
15033 $as_echo_n "(cached) " >&6
15034else
15035 $RM conftest*
15036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15037
15038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15039 (eval $ac_compile) 2>&5
15040 ac_status=$?
15041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15042 test $ac_status = 0; } 2>conftest.err; then
15043 soname=conftest
15044 lib=conftest
15045 libobjs=conftest.$ac_objext
15046 deplibs=
15047 wl=$lt_prog_compiler_wl_CXX
15048 pic_flag=$lt_prog_compiler_pic_CXX
15049 compiler_flags=-v
15050 linker_flags=-v
15051 verstring=
15052 output_objdir=.
15053 libname=conftest
15054 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15055 allow_undefined_flag_CXX=
15056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15057 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15058 ac_status=$?
15059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15060 test $ac_status = 0; }
15061 then
15062 lt_cv_archive_cmds_need_lc_CXX=no
15063 else
15064 lt_cv_archive_cmds_need_lc_CXX=yes
15065 fi
15066 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15067 else
15068 cat conftest.err 1>&5
15069 fi
15070 $RM conftest*
15071
15072fi
15073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15074$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15075 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15076 ;;
15077 esac
15078 fi
15079 ;;
15080esac
15081
f35db108 15082
c915a581
JJ
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15146$as_echo_n "checking dynamic linker characteristics... " >&6; }
15147
15148library_names_spec=
15149libname_spec='lib$name'
15150soname_spec=
15151shrext_cmds=".so"
15152postinstall_cmds=
15153postuninstall_cmds=
15154finish_cmds=
15155finish_eval=
15156shlibpath_var=
15157shlibpath_overrides_runpath=unknown
15158version_type=none
15159dynamic_linker="$host_os ld.so"
15160sys_lib_dlsearch_path_spec="/lib /usr/lib"
15161need_lib_prefix=unknown
15162hardcode_into_libs=no
15163
15164# when you set need_version to no, make sure it does not cause -set_version
15165# flags to be left without arguments
15166need_version=unknown
15167
15168case $host_os in
15169aix3*)
15170 version_type=linux
15171 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15172 shlibpath_var=LIBPATH
15173
15174 # AIX 3 has no versioning support, so we append a major version to the name.
15175 soname_spec='${libname}${release}${shared_ext}$major'
15176 ;;
15177
15178aix[4-9]*)
15179 version_type=linux
15180 need_lib_prefix=no
15181 need_version=no
15182 hardcode_into_libs=yes
15183 if test "$host_cpu" = ia64; then
15184 # AIX 5 supports IA64
15185 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15186 shlibpath_var=LD_LIBRARY_PATH
15187 else
15188 # With GCC up to 2.95.x, collect2 would create an import file
15189 # for dependence libraries. The import file would start with
15190 # the line `#! .'. This would cause the generated library to
15191 # depend on `.', always an invalid library. This was fixed in
15192 # development snapshots of GCC prior to 3.0.
15193 case $host_os in
15194 aix4 | aix4.[01] | aix4.[01].*)
15195 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15196 echo ' yes '
15197 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15198 :
15199 else
15200 can_build_shared=no
f35db108
WM
15201 fi
15202 ;;
c915a581
JJ
15203 esac
15204 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15205 # soname into executable. Probably we can add versioning support to
15206 # collect2, so additional links can be useful in future.
15207 if test "$aix_use_runtimelinking" = yes; then
15208 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15209 # instead of lib<name>.a to let people know that these are not
15210 # typical AIX shared libraries.
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15212 else
15213 # We preserve .a as extension for shared libraries through AIX4.2
15214 # and later when we are not doing run time linking.
15215 library_names_spec='${libname}${release}.a $libname.a'
15216 soname_spec='${libname}${release}${shared_ext}$major'
15217 fi
15218 shlibpath_var=LIBPATH
15219 fi
15220 ;;
15221
15222amigaos*)
15223 case $host_cpu in
15224 powerpc)
15225 # Since July 2007 AmigaOS4 officially supports .so libraries.
15226 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15228 ;;
15229 m68k)
15230 library_names_spec='$libname.ixlibrary $libname.a'
15231 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15232 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'
15233 ;;
15234 esac
15235 ;;
15236
15237beos*)
15238 library_names_spec='${libname}${shared_ext}'
15239 dynamic_linker="$host_os ld.so"
15240 shlibpath_var=LIBRARY_PATH
15241 ;;
15242
15243bsdi[45]*)
15244 version_type=linux
15245 need_version=no
15246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15247 soname_spec='${libname}${release}${shared_ext}$major'
15248 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15249 shlibpath_var=LD_LIBRARY_PATH
15250 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15251 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15252 # the default ld.so.conf also contains /usr/contrib/lib and
15253 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15254 # libtool to hard-code these into programs
15255 ;;
15256
15257cygwin* | mingw* | pw32* | cegcc*)
15258 version_type=windows
15259 shrext_cmds=".dll"
15260 need_version=no
15261 need_lib_prefix=no
15262
15263 case $GCC,$host_os in
15264 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15265 library_names_spec='$libname.dll.a'
15266 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15267 postinstall_cmds='base_file=`basename \${file}`~
15268 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15269 dldir=$destdir/`dirname \$dlpath`~
15270 test -d \$dldir || mkdir -p \$dldir~
15271 $install_prog $dir/$dlname \$dldir/$dlname~
15272 chmod a+x \$dldir/$dlname~
15273 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15274 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15275 fi'
15276 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15277 dlpath=$dir/\$dldll~
15278 $RM \$dlpath'
15279 shlibpath_overrides_runpath=yes
15280
15281 case $host_os in
15282 cygwin*)
15283 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15284 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15285
f35db108 15286 ;;
c915a581
JJ
15287 mingw* | cegcc*)
15288 # MinGW DLLs use traditional 'lib' prefix
15289 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
f35db108 15290 ;;
c915a581
JJ
15291 pw32*)
15292 # pw32 DLLs use 'pw' prefix rather than 'lib'
15293 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
f35db108
WM
15294 ;;
15295 esac
c915a581
JJ
15296 ;;
15297
15298 *)
15299 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15300 ;;
15301 esac
15302 dynamic_linker='Win32 ld.exe'
15303 # FIXME: first we should search . and the directory the executable is in
15304 shlibpath_var=PATH
15305 ;;
15306
15307darwin* | rhapsody*)
15308 dynamic_linker="$host_os dyld"
15309 version_type=darwin
15310 need_lib_prefix=no
15311 need_version=no
15312 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15313 soname_spec='${libname}${release}${major}$shared_ext'
15314 shlibpath_overrides_runpath=yes
15315 shlibpath_var=DYLD_LIBRARY_PATH
15316 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15317
15318 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15319 ;;
15320
15321dgux*)
15322 version_type=linux
15323 need_lib_prefix=no
15324 need_version=no
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15326 soname_spec='${libname}${release}${shared_ext}$major'
15327 shlibpath_var=LD_LIBRARY_PATH
15328 ;;
15329
15330freebsd* | dragonfly*)
15331 # DragonFly does not have aout. When/if they implement a new
15332 # versioning mechanism, adjust this.
15333 if test -x /usr/bin/objformat; then
15334 objformat=`/usr/bin/objformat`
15335 else
15336 case $host_os in
15337 freebsd[23].*) objformat=aout ;;
15338 *) objformat=elf ;;
f35db108
WM
15339 esac
15340 fi
c915a581
JJ
15341 version_type=freebsd-$objformat
15342 case $version_type in
15343 freebsd-elf*)
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15345 need_version=no
15346 need_lib_prefix=no
15347 ;;
15348 freebsd-*)
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15350 need_version=yes
15351 ;;
15352 esac
15353 shlibpath_var=LD_LIBRARY_PATH
15354 case $host_os in
15355 freebsd2.*)
15356 shlibpath_overrides_runpath=yes
15357 ;;
15358 freebsd3.[01]* | freebsdelf3.[01]*)
15359 shlibpath_overrides_runpath=yes
15360 hardcode_into_libs=yes
15361 ;;
15362 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15363 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15364 shlibpath_overrides_runpath=no
15365 hardcode_into_libs=yes
15366 ;;
15367 *) # from 4.6 on, and DragonFly
15368 shlibpath_overrides_runpath=yes
15369 hardcode_into_libs=yes
15370 ;;
15371 esac
15372 ;;
f35db108 15373
c915a581
JJ
15374haiku*)
15375 version_type=linux
15376 need_lib_prefix=no
15377 need_version=no
15378 dynamic_linker="$host_os runtime_loader"
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15380 soname_spec='${libname}${release}${shared_ext}$major'
15381 shlibpath_var=LIBRARY_PATH
15382 shlibpath_overrides_runpath=yes
ead5103c 15383 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
c915a581
JJ
15384 hardcode_into_libs=yes
15385 ;;
15386
15387hpux9* | hpux10* | hpux11*)
15388 # Give a soname corresponding to the major version so that dld.sl refuses to
15389 # link against other versions.
15390 version_type=sunos
15391 need_lib_prefix=no
15392 need_version=no
15393 case $host_cpu in
15394 ia64*)
15395 shrext_cmds='.so'
15396 hardcode_into_libs=yes
15397 dynamic_linker="$host_os dld.so"
15398 shlibpath_var=LD_LIBRARY_PATH
15399 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401 soname_spec='${libname}${release}${shared_ext}$major'
15402 if test "X$HPUX_IA64_MODE" = X32; then
15403 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15404 else
15405 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15406 fi
15407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15408 ;;
15409 hppa*64*)
15410 shrext_cmds='.sl'
15411 hardcode_into_libs=yes
15412 dynamic_linker="$host_os dld.sl"
15413 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15414 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416 soname_spec='${libname}${release}${shared_ext}$major'
15417 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15418 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
f35db108
WM
15419 ;;
15420 *)
c915a581
JJ
15421 shrext_cmds='.sl'
15422 dynamic_linker="$host_os dld.sl"
15423 shlibpath_var=SHLIB_PATH
15424 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426 soname_spec='${libname}${release}${shared_ext}$major'
f35db108 15427 ;;
c915a581
JJ
15428 esac
15429 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15430 postinstall_cmds='chmod 555 $lib'
15431 # or fails outright, so override atomically:
15432 install_override_mode=555
15433 ;;
a2479b3d 15434
c915a581
JJ
15435interix[3-9]*)
15436 version_type=linux
15437 need_lib_prefix=no
15438 need_version=no
15439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15440 soname_spec='${libname}${release}${shared_ext}$major'
15441 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15442 shlibpath_var=LD_LIBRARY_PATH
15443 shlibpath_overrides_runpath=no
15444 hardcode_into_libs=yes
15445 ;;
f35db108 15446
c915a581
JJ
15447irix5* | irix6* | nonstopux*)
15448 case $host_os in
15449 nonstopux*) version_type=nonstopux ;;
15450 *)
15451 if test "$lt_cv_prog_gnu_ld" = yes; then
15452 version_type=linux
15453 else
15454 version_type=irix
15455 fi ;;
15456 esac
15457 need_lib_prefix=no
15458 need_version=no
15459 soname_spec='${libname}${release}${shared_ext}$major'
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15461 case $host_os in
15462 irix5* | nonstopux*)
15463 libsuff= shlibsuff=
15464 ;;
15465 *)
15466 case $LD in # libtool.m4 will add one of these switches to LD
15467 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15468 libsuff= shlibsuff= libmagic=32-bit;;
15469 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15470 libsuff=32 shlibsuff=N32 libmagic=N32;;
15471 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15472 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15473 *) libsuff= shlibsuff= libmagic=never-match;;
15474 esac
15475 ;;
15476 esac
15477 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15478 shlibpath_overrides_runpath=no
15479 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15480 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15481 hardcode_into_libs=yes
15482 ;;
f35db108 15483
c915a581
JJ
15484# No shared lib support for Linux oldld, aout, or coff.
15485linux*oldld* | linux*aout* | linux*coff*)
15486 dynamic_linker=no
15487 ;;
15488
15489# This must be Linux ELF.
e9085da5
MR
15490
15491# uclinux* changes (here and below) have been submitted to the libtool
15492# project, but have not yet been accepted: they are GCC-local changes
15493# for the time being. (See
15494# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
0cedf1fb 15495linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
c915a581
JJ
15496 version_type=linux
15497 need_lib_prefix=no
15498 need_version=no
15499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15500 soname_spec='${libname}${release}${shared_ext}$major'
15501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15502 shlibpath_var=LD_LIBRARY_PATH
15503 shlibpath_overrides_runpath=no
15504
15505 # Some binutils ld are patched to set DT_RUNPATH
22e05272 15506 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
f35db108
WM
15507 $as_echo_n "(cached) " >&6
15508else
c915a581
JJ
15509 lt_cv_shlibpath_overrides_runpath=no
15510 save_LDFLAGS=$LDFLAGS
15511 save_libdir=$libdir
15512 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15513 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15515/* end confdefs.h. */
15516
15517int
15518main ()
15519{
f35db108 15520
c915a581
JJ
15521 ;
15522 return 0;
15523}
15524_ACEOF
15525if ac_fn_cxx_try_link "$LINENO"; then :
15526 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15527 lt_cv_shlibpath_overrides_runpath=yes
15528fi
f35db108 15529fi
c915a581
JJ
15530rm -f core conftest.err conftest.$ac_objext \
15531 conftest$ac_exeext conftest.$ac_ext
15532 LDFLAGS=$save_LDFLAGS
15533 libdir=$save_libdir
f35db108 15534
f35db108
WM
15535fi
15536
c915a581 15537 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
f35db108 15538
c915a581
JJ
15539 # This implies no fast_install, which is unacceptable.
15540 # Some rework will be needed to allow for fast_install
15541 # before this can be enabled.
15542 hardcode_into_libs=yes
f35db108 15543
c915a581
JJ
15544 # Append ld.so.conf contents to the search path
15545 if test -f /etc/ld.so.conf; then
15546 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' ' '`
15547 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15548 fi
f35db108 15549
c915a581
JJ
15550 # We used to test for /lib/ld.so.1 and disable shared libraries on
15551 # powerpc, because MkLinux only supported shared libraries with the
15552 # GNU dynamic linker. Since this was broken with cross compilers,
15553 # most powerpc-linux boxes support dynamic linking these days and
15554 # people can always --disable-shared, the test was removed, and we
15555 # assume the GNU/Linux dynamic linker is in use.
15556 dynamic_linker='GNU/Linux ld.so'
15557 ;;
f35db108 15558
c915a581
JJ
15559netbsd*)
15560 version_type=sunos
15561 need_lib_prefix=no
15562 need_version=no
15563 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15565 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15566 dynamic_linker='NetBSD (a.out) ld.so'
15567 else
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15569 soname_spec='${libname}${release}${shared_ext}$major'
15570 dynamic_linker='NetBSD ld.elf_so'
15571 fi
15572 shlibpath_var=LD_LIBRARY_PATH
15573 shlibpath_overrides_runpath=yes
15574 hardcode_into_libs=yes
15575 ;;
f35db108 15576
c915a581
JJ
15577newsos6)
15578 version_type=linux
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15580 shlibpath_var=LD_LIBRARY_PATH
15581 shlibpath_overrides_runpath=yes
15582 ;;
15583
15584*nto* | *qnx*)
15585 version_type=qnx
15586 need_lib_prefix=no
15587 need_version=no
15588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15589 soname_spec='${libname}${release}${shared_ext}$major'
15590 shlibpath_var=LD_LIBRARY_PATH
15591 shlibpath_overrides_runpath=no
15592 hardcode_into_libs=yes
15593 dynamic_linker='ldqnx.so'
15594 ;;
15595
15596openbsd*)
15597 version_type=sunos
15598 sys_lib_dlsearch_path_spec="/usr/lib"
15599 need_lib_prefix=no
15600 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15601 case $host_os in
15602 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15603 *) need_version=no ;;
15604 esac
15605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15607 shlibpath_var=LD_LIBRARY_PATH
15608 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15609 case $host_os in
15610 openbsd2.[89] | openbsd2.[89].*)
15611 shlibpath_overrides_runpath=no
15612 ;;
15613 *)
15614 shlibpath_overrides_runpath=yes
15615 ;;
15616 esac
15617 else
15618 shlibpath_overrides_runpath=yes
15619 fi
15620 ;;
f35db108 15621
c915a581
JJ
15622os2*)
15623 libname_spec='$name'
15624 shrext_cmds=".dll"
15625 need_lib_prefix=no
15626 library_names_spec='$libname${shared_ext} $libname.a'
15627 dynamic_linker='OS/2 ld.exe'
15628 shlibpath_var=LIBPATH
15629 ;;
f35db108 15630
c915a581
JJ
15631osf3* | osf4* | osf5*)
15632 version_type=osf
15633 need_lib_prefix=no
15634 need_version=no
15635 soname_spec='${libname}${release}${shared_ext}$major'
15636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15637 shlibpath_var=LD_LIBRARY_PATH
15638 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15639 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15640 ;;
f35db108 15641
c915a581
JJ
15642rdos*)
15643 dynamic_linker=no
15644 ;;
f35db108 15645
c915a581
JJ
15646solaris*)
15647 version_type=linux
15648 need_lib_prefix=no
15649 need_version=no
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15651 soname_spec='${libname}${release}${shared_ext}$major'
15652 shlibpath_var=LD_LIBRARY_PATH
15653 shlibpath_overrides_runpath=yes
15654 hardcode_into_libs=yes
15655 # ldd complains unless libraries are executable
15656 postinstall_cmds='chmod +x $lib'
15657 ;;
f35db108 15658
c915a581
JJ
15659sunos4*)
15660 version_type=sunos
15661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15662 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15663 shlibpath_var=LD_LIBRARY_PATH
15664 shlibpath_overrides_runpath=yes
15665 if test "$with_gnu_ld" = yes; then
15666 need_lib_prefix=no
15667 fi
15668 need_version=yes
15669 ;;
f35db108 15670
c915a581
JJ
15671sysv4 | sysv4.3*)
15672 version_type=linux
15673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15674 soname_spec='${libname}${release}${shared_ext}$major'
15675 shlibpath_var=LD_LIBRARY_PATH
15676 case $host_vendor in
15677 sni)
15678 shlibpath_overrides_runpath=no
15679 need_lib_prefix=no
15680 runpath_var=LD_RUN_PATH
15681 ;;
15682 siemens)
15683 need_lib_prefix=no
15684 ;;
15685 motorola)
15686 need_lib_prefix=no
15687 need_version=no
15688 shlibpath_overrides_runpath=no
15689 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15690 ;;
15691 esac
15692 ;;
15693
15694sysv4*MP*)
15695 if test -d /usr/nec ;then
15696 version_type=linux
15697 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15698 soname_spec='$libname${shared_ext}.$major'
15699 shlibpath_var=LD_LIBRARY_PATH
15700 fi
15701 ;;
f35db108 15702
c915a581
JJ
15703sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15704 version_type=freebsd-elf
15705 need_lib_prefix=no
15706 need_version=no
15707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15708 soname_spec='${libname}${release}${shared_ext}$major'
15709 shlibpath_var=LD_LIBRARY_PATH
15710 shlibpath_overrides_runpath=yes
15711 hardcode_into_libs=yes
15712 if test "$with_gnu_ld" = yes; then
15713 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15714 else
15715 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15716 case $host_os in
15717 sco3.2v5*)
15718 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15719 ;;
15720 esac
15721 fi
15722 sys_lib_dlsearch_path_spec='/usr/lib'
15723 ;;
f35db108 15724
c915a581
JJ
15725tpf*)
15726 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15727 version_type=linux
15728 need_lib_prefix=no
15729 need_version=no
15730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15731 shlibpath_var=LD_LIBRARY_PATH
15732 shlibpath_overrides_runpath=no
15733 hardcode_into_libs=yes
15734 ;;
f35db108 15735
c915a581
JJ
15736uts4*)
15737 version_type=linux
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15739 soname_spec='${libname}${release}${shared_ext}$major'
15740 shlibpath_var=LD_LIBRARY_PATH
15741 ;;
f35db108 15742
0ecd0f1c
OH
15743# Shared libraries for VwWorks, >= 7 only at this stage
15744# and (fpic) still incompatible with "large" code models
15745# in a few configurations. Only for RTP mode in any case,
15746# and upon explicit request at configure time.
15747vxworks7*)
15748 dynamic_linker=no
15749 case ${with_multisubdir}-${enable_shared} in
15750 *large*)
15751 ;;
15752 *mrtp*-yes)
15753 version_type=linux
15754 need_lib_prefix=no
15755 need_version=no
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15757 soname_spec='${libname}${release}${shared_ext}$major'
15758 dynamic_linker="$host_os module_loader"
15759 ;;
15760 esac
15761 ;;
c915a581
JJ
15762*)
15763 dynamic_linker=no
15764 ;;
15765esac
15766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15767$as_echo "$dynamic_linker" >&6; }
15768test "$dynamic_linker" = no && can_build_shared=no
f35db108 15769
c915a581
JJ
15770variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15771if test "$GCC" = yes; then
15772 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
f35db108 15773fi
f35db108 15774
c915a581
JJ
15775if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15776 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15777fi
15778if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15779 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15780fi
f35db108
WM
15781
15782
f35db108
WM
15783
15784
15785
f35db108 15786
f35db108 15787
f35db108 15788
f35db108
WM
15789
15790
15791
15792
15793
15794
f35db108 15795
f35db108 15796
f35db108 15797
f35db108
WM
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
c915a581
JJ
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15820$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15821hardcode_action_CXX=
15822if test -n "$hardcode_libdir_flag_spec_CXX" ||
15823 test -n "$runpath_var_CXX" ||
15824 test "X$hardcode_automatic_CXX" = "Xyes" ; then
f35db108 15825
c915a581
JJ
15826 # We can hardcode non-existent directories.
15827 if test "$hardcode_direct_CXX" != no &&
15828 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15829 # have to relink, otherwise we might link with an installed library
15830 # when we should be linking with a yet-to-be-installed one
15831 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15832 test "$hardcode_minus_L_CXX" != no; then
15833 # Linking always hardcodes the temporary library directory.
15834 hardcode_action_CXX=relink
15835 else
15836 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15837 hardcode_action_CXX=immediate
15838 fi
15839else
15840 # We cannot hardcode anything, or else we can only hardcode existing
15841 # directories.
15842 hardcode_action_CXX=unsupported
15843fi
15844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15845$as_echo "$hardcode_action_CXX" >&6; }
f35db108 15846
c915a581
JJ
15847if test "$hardcode_action_CXX" = relink ||
15848 test "$inherit_rpath_CXX" = yes; then
15849 # Fast installation is not supported
15850 enable_fast_install=no
15851elif test "$shlibpath_overrides_runpath" = yes ||
15852 test "$enable_shared" = no; then
15853 # Fast installation is not necessary
15854 enable_fast_install=needless
15855fi
f35db108
WM
15856
15857
15858
15859
15860
15861
15862
c915a581 15863 fi # test -n "$compiler"
f35db108 15864
c915a581
JJ
15865 CC=$lt_save_CC
15866 LDCXX=$LD
15867 LD=$lt_save_LD
15868 GCC=$lt_save_GCC
15869 with_gnu_ld=$lt_save_with_gnu_ld
15870 lt_cv_path_LDCXX=$lt_cv_path_LD
15871 lt_cv_path_LD=$lt_save_path_LD
15872 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15873 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15874fi # test "$_lt_caught_CXX_error" != yes
f35db108 15875
c915a581
JJ
15876ac_ext=c
15877ac_cpp='$CPP $CPPFLAGS'
15878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15880ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108
WM
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
c915a581 15894 ac_config_commands="$ac_config_commands libtool"
f35db108
WM
15895
15896
15897
15898
c915a581 15899# Only expand once:
f35db108
WM
15900
15901
15902
c915a581
JJ
15903for ac_prog in gawk mawk nawk awk
15904do
15905 # Extract the first word of "$ac_prog", so it can be a program name with args.
15906set dummy $ac_prog; ac_word=$2
15907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15908$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15909if ${ac_cv_prog_AWK+:} false; then :
c915a581
JJ
15910 $as_echo_n "(cached) " >&6
15911else
15912 if test -n "$AWK"; then
15913 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15914else
15915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15916for as_dir in $PATH
15917do
15918 IFS=$as_save_IFS
15919 test -z "$as_dir" && as_dir=.
15920 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c915a581
JJ
15922 ac_cv_prog_AWK="$ac_prog"
15923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15924 break 2
15925 fi
15926done
15927 done
15928IFS=$as_save_IFS
f35db108 15929
c915a581
JJ
15930fi
15931fi
15932AWK=$ac_cv_prog_AWK
15933if test -n "$AWK"; then
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15935$as_echo "$AWK" >&6; }
15936else
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15938$as_echo "no" >&6; }
15939fi
f35db108
WM
15940
15941
c915a581
JJ
15942 test -n "$AWK" && break
15943done
f35db108 15944
c915a581 15945case "$AWK" in
22e05272 15946"") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
c915a581 15947esac
f35db108
WM
15948
15949
15950
a2479b3d 15951
6a6d3817
IS
15952 if test x$enable_darwin_at_rpath = xyes; then
15953 ENABLE_DARWIN_AT_RPATH_TRUE=
15954 ENABLE_DARWIN_AT_RPATH_FALSE='#'
15955else
15956 ENABLE_DARWIN_AT_RPATH_TRUE='#'
15957 ENABLE_DARWIN_AT_RPATH_FALSE=
15958fi
15959
15960
c915a581
JJ
15961# The cast to long int works around a bug in the HP C Compiler
15962# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15963# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15964# This bug is HP SR number 8606223364.
15965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15966$as_echo_n "checking size of void *... " >&6; }
22e05272 15967if ${ac_cv_sizeof_void_p+:} false; then :
c915a581
JJ
15968 $as_echo_n "(cached) " >&6
15969else
15970 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
a2479b3d 15971
c915a581
JJ
15972else
15973 if test "$ac_cv_type_void_p" = yes; then
15974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
15976as_fn_error 77 "cannot compute sizeof (void *)
15977See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
15978 else
15979 ac_cv_sizeof_void_p=0
15980 fi
15981fi
f35db108 15982
c915a581
JJ
15983fi
15984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15985$as_echo "$ac_cv_sizeof_void_p" >&6; }
f35db108
WM
15986
15987
f35db108 15988
c915a581
JJ
15989cat >>confdefs.h <<_ACEOF
15990#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15991_ACEOF
f35db108 15992
f35db108 15993
f35db108 15994
c915a581
JJ
15995if test "${multilib}" = "yes"; then
15996 multilib_arg="--enable-multilib"
15997else
15998 multilib_arg=
15999fi
f35db108 16000
c915a581
JJ
16001# Get target configury.
16002unset TSAN_SUPPORTED
16003unset LSAN_SUPPORTED
8a769f81 16004unset HWASAN_SUPPORTED
c915a581
JJ
16005. ${srcdir}/configure.tgt
16006 if test "x$TSAN_SUPPORTED" = "xyes"; then
16007 TSAN_SUPPORTED_TRUE=
16008 TSAN_SUPPORTED_FALSE='#'
16009else
16010 TSAN_SUPPORTED_TRUE='#'
16011 TSAN_SUPPORTED_FALSE=
16012fi
f35db108 16013
c915a581
JJ
16014 if test "x$LSAN_SUPPORTED" = "xyes"; then
16015 LSAN_SUPPORTED_TRUE=
16016 LSAN_SUPPORTED_FALSE='#'
16017else
16018 LSAN_SUPPORTED_TRUE='#'
16019 LSAN_SUPPORTED_FALSE=
16020fi
f35db108 16021
8a769f81
MM
16022 if test "x$HWASAN_SUPPORTED" = "xyes"; then
16023 HWASAN_SUPPORTED_TRUE=
16024 HWASAN_SUPPORTED_FALSE='#'
16025else
16026 HWASAN_SUPPORTED_TRUE='#'
16027 HWASAN_SUPPORTED_FALSE=
16028fi
16029
f35db108 16030
c915a581 16031# Check for functions needed.
3b07c0e5 16032for ac_func in clock_getres clock_gettime clock_settime lstat readlink
c915a581
JJ
16033do :
16034 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16035ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 16036if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
c915a581
JJ
16037 cat >>confdefs.h <<_ACEOF
16038#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16039_ACEOF
f35db108 16040
c915a581
JJ
16041fi
16042done
f35db108 16043
f35db108 16044
c915a581 16045# Common libraries that we need to link against for all sanitizer libs.
bf93d543 16046link_sanitizer_common='-lpthread -lm'
692b1131
MO
16047
16048# At least for glibc, shm_open is in librt. But don't pull that
16049# in if it still doesn't give us the function we want. This
16050# test is copied from libgomp.
16051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
16052$as_echo_n "checking for shm_open in -lrt... " >&6; }
22e05272 16053if ${ac_cv_lib_rt_shm_open+:} false; then :
692b1131
MO
16054 $as_echo_n "(cached) " >&6
16055else
16056 ac_check_lib_save_LIBS=$LIBS
16057LIBS="-lrt $LIBS"
16058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059/* end confdefs.h. */
16060
16061/* Override any GCC internal prototype to avoid an error.
16062 Use char because int might match the return type of a GCC
16063 builtin and then its argument prototype would still apply. */
16064#ifdef __cplusplus
16065extern "C"
16066#endif
16067char shm_open ();
16068int
16069main ()
16070{
16071return shm_open ();
16072 ;
16073 return 0;
16074}
16075_ACEOF
16076if ac_fn_c_try_link "$LINENO"; then :
16077 ac_cv_lib_rt_shm_open=yes
16078else
16079 ac_cv_lib_rt_shm_open=no
16080fi
16081rm -f core conftest.err conftest.$ac_objext \
16082 conftest$ac_exeext conftest.$ac_ext
16083LIBS=$ac_check_lib_save_LIBS
16084fi
16085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
16086$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
22e05272 16087if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
692b1131
MO
16088 link_sanitizer_common="-lrt $link_sanitizer_common"
16089fi
16090
f35db108 16091
bf93d543
AT
16092# Do a configure time check for -ldl
16093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
16094$as_echo_n "checking for dlsym in -ldl... " >&6; }
22e05272 16095if ${ac_cv_lib_dl_dlsym+:} false; then :
bf93d543
AT
16096 $as_echo_n "(cached) " >&6
16097else
16098 ac_check_lib_save_LIBS=$LIBS
16099LIBS="-ldl $LIBS"
16100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101/* end confdefs.h. */
16102
16103/* Override any GCC internal prototype to avoid an error.
16104 Use char because int might match the return type of a GCC
16105 builtin and then its argument prototype would still apply. */
16106#ifdef __cplusplus
16107extern "C"
16108#endif
16109char dlsym ();
16110int
16111main ()
16112{
16113return dlsym ();
16114 ;
16115 return 0;
16116}
16117_ACEOF
16118if ac_fn_c_try_link "$LINENO"; then :
16119 ac_cv_lib_dl_dlsym=yes
16120else
16121 ac_cv_lib_dl_dlsym=no
16122fi
16123rm -f core conftest.err conftest.$ac_objext \
16124 conftest$ac_exeext conftest.$ac_ext
16125LIBS=$ac_check_lib_save_LIBS
16126fi
16127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
16128$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
22e05272 16129if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
bf93d543
AT
16130 link_sanitizer_common="-ldl $link_sanitizer_common"
16131fi
16132
16133
c915a581
JJ
16134# Set up the set of additional libraries that we need to link against for libasan.
16135link_libasan=$link_sanitizer_common
f35db108 16136
f35db108 16137
edb07cb9
MM
16138# Set up the set of additional libraries that we need to link against for libhwasan.
16139link_libhwasan=$link_sanitizer_common
16140
16141
c915a581
JJ
16142# Set up the set of additional libraries that we need to link against for libtsan.
16143link_libtsan=$link_sanitizer_common
f35db108 16144
f35db108 16145
c915a581
JJ
16146# Set up the set of additional libraries that we need to link against for libubsan.
16147link_libubsan=$link_sanitizer_common
f35db108 16148
f35db108 16149
c915a581
JJ
16150# Set up the set of additional libraries that we need to link against for liblsan.
16151link_liblsan=$link_sanitizer_common
f35db108 16152
f35db108 16153
692b1131
MO
16154
16155# At least for glibc, clock_gettime is in librt. But don't pull that
16156# in if it still doesn't give us the function we want. This
16157# test is copied from libgomp.
16158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16159$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22e05272 16160if ${ac_cv_lib_rt_clock_gettime+:} false; then :
692b1131
MO
16161 $as_echo_n "(cached) " >&6
16162else
16163 ac_check_lib_save_LIBS=$LIBS
16164LIBS="-lrt $LIBS"
16165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166/* end confdefs.h. */
16167
16168/* Override any GCC internal prototype to avoid an error.
16169 Use char because int might match the return type of a GCC
16170 builtin and then its argument prototype would still apply. */
16171#ifdef __cplusplus
16172extern "C"
16173#endif
16174char clock_gettime ();
16175int
16176main ()
16177{
16178return clock_gettime ();
16179 ;
16180 return 0;
16181}
16182_ACEOF
16183if ac_fn_c_try_link "$LINENO"; then :
16184 ac_cv_lib_rt_clock_gettime=yes
16185else
16186 ac_cv_lib_rt_clock_gettime=no
16187fi
16188rm -f core conftest.err conftest.$ac_objext \
16189 conftest$ac_exeext conftest.$ac_ext
16190LIBS=$ac_check_lib_save_LIBS
16191fi
16192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16193$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22e05272 16194if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
692b1131
MO
16195 link_libasan="-lrt $link_libasan"
16196link_libtsan="-lrt $link_libtsan"
16197# Other sanitizers do not override clock_* API
16198
16199fi
16200
16201
c915a581 16202case "$host" in
692b1131
MO
16203 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
16204 *) MAC_INTERPOSE=false ;;
c915a581
JJ
16205esac
16206 if $MAC_INTERPOSE; then
16207 USING_MAC_INTERPOSE_TRUE=
16208 USING_MAC_INTERPOSE_FALSE='#'
16209else
16210 USING_MAC_INTERPOSE_TRUE='#'
16211 USING_MAC_INTERPOSE_FALSE=
16212fi
f35db108 16213
c915a581
JJ
16214
16215backtrace_supported=yes
16216
4a7eaf5f
YG
16217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
16218$as_echo_n "checking for necessary platform features... " >&6; }
16219case "$target" in
16220 *-*-linux*)
16221 # Some old Linux distributions miss required syscalls.
16222 sanitizer_supported=no
16223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224/* end confdefs.h. */
16225#include <sys/syscall.h>
6be2672e 16226#include <unistd.h>
4a7eaf5f
YG
16227int
16228main ()
16229{
16230
16231 syscall (__NR_gettid);
16232 syscall (__NR_futex);
16233 syscall (__NR_exit_group);
16234
16235 ;
16236 return 0;
16237}
16238_ACEOF
16239if ac_fn_c_try_compile "$LINENO"; then :
16240 sanitizer_supported=yes
16241fi
16242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16243 ;;
16244 *)
16245 sanitizer_supported=yes
16246 ;;
16247esac
16248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
16249$as_echo "$sanitizer_supported" >&6; }
16250 if test "$sanitizer_supported" = yes; then
16251 SANITIZER_SUPPORTED_TRUE=
16252 SANITIZER_SUPPORTED_FALSE='#'
16253else
16254 SANITIZER_SUPPORTED_TRUE='#'
16255 SANITIZER_SUPPORTED_FALSE=
16256fi
16257
16258
c915a581
JJ
16259# Test for __sync support.
16260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
16261$as_echo_n "checking __sync extensions... " >&6; }
22e05272 16262if ${libsanitizer_cv_sys_sync+:} false; then :
f35db108
WM
16263 $as_echo_n "(cached) " >&6
16264else
c915a581
JJ
16265 if test -n "${with_target_subdir}"; then
16266 libsanitizer_cv_sys_sync=yes
16267 else
16268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108 16269/* end confdefs.h. */
c915a581 16270int i;
f35db108
WM
16271int
16272main ()
16273{
c915a581
JJ
16274__sync_bool_compare_and_swap (&i, i, i);
16275 __sync_lock_test_and_set (&i, 1);
16276 __sync_lock_release (&i);
f35db108
WM
16277 ;
16278 return 0;
16279}
16280_ACEOF
c915a581
JJ
16281if ac_fn_c_try_link "$LINENO"; then :
16282 libsanitizer_cv_sys_sync=yes
16283else
16284 libsanitizer_cv_sys_sync=no
f35db108
WM
16285fi
16286rm -f core conftest.err conftest.$ac_objext \
16287 conftest$ac_exeext conftest.$ac_ext
c915a581 16288 fi
f35db108 16289fi
c915a581
JJ
16290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
16291$as_echo "$libsanitizer_cv_sys_sync" >&6; }
16292if test "$libsanitizer_cv_sys_sync" = "yes"; then
f35db108 16293
c915a581 16294$as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
f35db108 16295
f35db108
WM
16296fi
16297
c915a581
JJ
16298# Test for __atomic support.
16299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
16300$as_echo_n "checking __atomic extensions... " >&6; }
22e05272 16301if ${libsanitizer_cv_sys_atomic+:} false; then :
c915a581
JJ
16302 $as_echo_n "(cached) " >&6
16303else
16304 if test -n "${with_target_subdir}"; then
16305 libsanitizer_cv_sys_atomic=yes
16306 else
16307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16308/* end confdefs.h. */
16309int i;
16310int
16311main ()
16312{
16313__atomic_load_n (&i, __ATOMIC_ACQUIRE);
16314 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
16315 ;
16316 return 0;
16317}
16318_ACEOF
16319if ac_fn_c_try_link "$LINENO"; then :
16320 libsanitizer_cv_sys_atomic=yes
16321else
16322 libsanitizer_cv_sys_atomic=no
f35db108 16323fi
c915a581
JJ
16324rm -f core conftest.err conftest.$ac_objext \
16325 conftest$ac_exeext conftest.$ac_ext
16326 fi
f35db108 16327fi
c915a581
JJ
16328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
16329$as_echo "$libsanitizer_cv_sys_atomic" >&6; }
16330if test "$libsanitizer_cv_sys_atomic" = "yes"; then
f35db108 16331
c915a581 16332$as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
f35db108 16333
c915a581 16334fi
f35db108 16335
c915a581
JJ
16336# The library needs to be able to read the executable itself. Compile
16337# a file to determine the executable format. The awk script
16338# filetype.awk prints out the file type.
16339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
16340$as_echo_n "checking output filetype... " >&6; }
22e05272 16341if ${libsanitizer_cv_sys_filetype+:} false; then :
c915a581
JJ
16342 $as_echo_n "(cached) " >&6
16343else
16344 filetype=
16345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16346/* end confdefs.h. */
16347int i;
16348int
16349main ()
16350{
16351int j;
16352 ;
16353 return 0;
16354}
16355_ACEOF
16356if ac_fn_c_try_compile "$LINENO"; then :
16357 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
16358else
16359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16361as_fn_error $? "compiler failed
16362See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
16363fi
16364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16365libsanitizer_cv_sys_filetype=$filetype
16366fi
16367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
16368$as_echo "$libsanitizer_cv_sys_filetype" >&6; }
16369
16370# Match the file type to decide what files to compile.
16371FORMAT_FILE=
16372case "$libsanitizer_cv_sys_filetype" in
16373elf*) FORMAT_FILE="elf.lo" ;;
16374*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
16375$as_echo "$as_me: WARNING: could not determine output file type" >&2;}
16376 FORMAT_FILE="unknown.lo"
16377 backtrace_supported=no
16378 ;;
16379esac
f35db108
WM
16380
16381
c915a581
JJ
16382# ELF defines.
16383elfsize=
16384case "$libsanitizer_cv_sys_filetype" in
16385elf32) elfsize=32 ;;
16386elf64) elfsize=64 ;;
16387esac
f35db108 16388
c915a581
JJ
16389cat >>confdefs.h <<_ACEOF
16390#define BACKTRACE_ELF_SIZE $elfsize
16391_ACEOF
f35db108
WM
16392
16393
c915a581
JJ
16394BACKTRACE_SUPPORTED=0
16395if test "$backtrace_supported" = "yes"; then
16396 BACKTRACE_SUPPORTED=1
16397fi
f35db108
WM
16398
16399
16400
16401
c915a581 16402inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
f35db108 16403
c915a581
JJ
16404acx_cv_header_stdint=stddef.h
16405acx_cv_header_stdint_kind="(already complete)"
16406for i in stdint.h $inttype_headers; do
16407 unset ac_cv_type_uintptr_t
16408 unset ac_cv_type_uintmax_t
16409 unset ac_cv_type_int_least32_t
16410 unset ac_cv_type_int_fast32_t
16411 unset ac_cv_type_uint64_t
16412 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16413 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16414#include <$i>
16415"
22e05272 16416if test "x$ac_cv_type_uintmax_t" = xyes; then :
c915a581
JJ
16417 acx_cv_header_stdint=$i
16418else
16419 continue
16420fi
f35db108 16421
c915a581
JJ
16422 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16423#include <$i>
16424"
22e05272 16425if test "x$ac_cv_type_uintptr_t" = xyes; then :
f35db108 16426
c915a581
JJ
16427else
16428 acx_cv_header_stdint_kind="(mostly complete)"
16429fi
f35db108 16430
c915a581
JJ
16431 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16432#include <$i>
16433"
22e05272 16434if test "x$ac_cv_type_int_least32_t" = xyes; then :
f35db108 16435
c915a581
JJ
16436else
16437 acx_cv_header_stdint_kind="(mostly complete)"
16438fi
f35db108 16439
c915a581
JJ
16440 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16441#include <$i>
16442"
22e05272 16443if test "x$ac_cv_type_int_fast32_t" = xyes; then :
f35db108 16444
c915a581
JJ
16445else
16446 acx_cv_header_stdint_kind="(mostly complete)"
16447fi
f35db108 16448
c915a581
JJ
16449 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16450#include <$i>
16451"
22e05272 16452if test "x$ac_cv_type_uint64_t" = xyes; then :
f35db108 16453
c915a581
JJ
16454else
16455 acx_cv_header_stdint_kind="(lacks uint64_t)"
16456fi
f35db108 16457
c915a581
JJ
16458 break
16459done
16460if test "$acx_cv_header_stdint" = stddef.h; then
16461 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16462 for i in stdint.h $inttype_headers; do
16463 unset ac_cv_type_uintptr_t
16464 unset ac_cv_type_uint32_t
16465 unset ac_cv_type_uint64_t
16466 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16467 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16468#include <$i>
16469"
22e05272 16470if test "x$ac_cv_type_uint32_t" = xyes; then :
c915a581
JJ
16471 acx_cv_header_stdint=$i
16472else
16473 continue
16474fi
f35db108 16475
c915a581
JJ
16476 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16477#include <$i>
16478"
22e05272 16479if test "x$ac_cv_type_uint64_t" = xyes; then :
f35db108 16480
c915a581 16481fi
f35db108 16482
c915a581
JJ
16483 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16484#include <$i>
16485"
22e05272 16486if test "x$ac_cv_type_uintptr_t" = xyes; then :
f35db108 16487
c915a581 16488fi
f35db108 16489
c915a581
JJ
16490 break
16491 done
16492fi
16493if test "$acx_cv_header_stdint" = stddef.h; then
16494 acx_cv_header_stdint_kind="(u_intXX_t style)"
16495 for i in sys/types.h $inttype_headers; do
16496 unset ac_cv_type_u_int32_t
16497 unset ac_cv_type_u_int64_t
16498 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16499 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16500#include <$i>
16501"
22e05272 16502if test "x$ac_cv_type_u_int32_t" = xyes; then :
c915a581
JJ
16503 acx_cv_header_stdint=$i
16504else
16505 continue
16506fi
f35db108 16507
c915a581
JJ
16508 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16509#include <$i>
16510"
22e05272 16511if test "x$ac_cv_type_u_int64_t" = xyes; then :
f35db108 16512
c915a581 16513fi
f35db108 16514
c915a581
JJ
16515 break
16516 done
16517fi
16518if test "$acx_cv_header_stdint" = stddef.h; then
16519 acx_cv_header_stdint_kind="(using manual detection)"
16520fi
f35db108 16521
c915a581
JJ
16522test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16523test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16524test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16525test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16526test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
f35db108 16527
c915a581 16528# ----------------- Summarize what we found so far
f35db108 16529
c915a581
JJ
16530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16531$as_echo_n "checking what to include in gstdint.h... " >&6; }
f35db108 16532
c915a581
JJ
16533case `$as_basename -- gstdint.h ||
16534$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16535 Xgstdint.h : 'X\(//\)$' \| \
16536 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16537$as_echo X/gstdint.h |
16538 sed '/^.*\/\([^/][^/]*\)\/*$/{
16539 s//\1/
16540 q
16541 }
16542 /^X\/\(\/\/\)$/{
16543 s//\1/
16544 q
16545 }
16546 /^X\/\(\/\).*/{
16547 s//\1/
16548 q
16549 }
16550 s/.*/./; q'` in
16551 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16552$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16553 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16554$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16555 *) ;;
16556esac
f35db108 16557
c915a581
JJ
16558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16559$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
f35db108 16560
c915a581 16561# ----------------- done included file, check C basic types --------
f35db108 16562
c915a581
JJ
16563# Lacking an uintptr_t? Test size of void *
16564case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16565 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16566# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16567# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16568# This bug is HP SR number 8606223364.
16569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16570$as_echo_n "checking size of void *... " >&6; }
22e05272 16571if ${ac_cv_sizeof_void_p+:} false; then :
c915a581
JJ
16572 $as_echo_n "(cached) " >&6
16573else
16574 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
f35db108 16575
f35db108 16576else
c915a581
JJ
16577 if test "$ac_cv_type_void_p" = yes; then
16578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16580as_fn_error 77 "cannot compute sizeof (void *)
16581See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
16582 else
16583 ac_cv_sizeof_void_p=0
16584 fi
f35db108 16585fi
f35db108 16586
f35db108 16587fi
c915a581
JJ
16588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16589$as_echo "$ac_cv_sizeof_void_p" >&6; }
f35db108
WM
16590
16591
16592
c915a581
JJ
16593cat >>confdefs.h <<_ACEOF
16594#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16595_ACEOF
f35db108 16596
c915a581
JJ
16597 ;;
16598esac
f35db108 16599
c915a581
JJ
16600# Lacking an uint64_t? Test size of long
16601case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16602 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16603# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16604# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16605# This bug is HP SR number 8606223364.
16606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16607$as_echo_n "checking size of long... " >&6; }
22e05272 16608if ${ac_cv_sizeof_long+:} false; then :
c915a581
JJ
16609 $as_echo_n "(cached) " >&6
16610else
16611 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
f35db108 16612
c915a581
JJ
16613else
16614 if test "$ac_cv_type_long" = yes; then
16615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16617as_fn_error 77 "cannot compute sizeof (long)
16618See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
16619 else
16620 ac_cv_sizeof_long=0
16621 fi
16622fi
f35db108 16623
c915a581
JJ
16624fi
16625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16626$as_echo "$ac_cv_sizeof_long" >&6; }
f35db108
WM
16627
16628
16629
c915a581
JJ
16630cat >>confdefs.h <<_ACEOF
16631#define SIZEOF_LONG $ac_cv_sizeof_long
16632_ACEOF
f35db108 16633
c915a581
JJ
16634 ;;
16635esac
f35db108 16636
c915a581
JJ
16637if test $acx_cv_header_stdint = stddef.h; then
16638 # Lacking a good header? Test size of everything and deduce all types.
16639 # The cast to long int works around a bug in the HP C Compiler
16640# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16641# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16642# This bug is HP SR number 8606223364.
16643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16644$as_echo_n "checking size of int... " >&6; }
22e05272 16645if ${ac_cv_sizeof_int+:} false; then :
c915a581
JJ
16646 $as_echo_n "(cached) " >&6
16647else
16648 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
f35db108 16649
c915a581
JJ
16650else
16651 if test "$ac_cv_type_int" = yes; then
16652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16654as_fn_error 77 "cannot compute sizeof (int)
16655See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
16656 else
16657 ac_cv_sizeof_int=0
16658 fi
16659fi
f35db108 16660
c915a581
JJ
16661fi
16662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16663$as_echo "$ac_cv_sizeof_int" >&6; }
f35db108
WM
16664
16665
f35db108 16666
c915a581
JJ
16667cat >>confdefs.h <<_ACEOF
16668#define SIZEOF_INT $ac_cv_sizeof_int
16669_ACEOF
f35db108
WM
16670
16671
c915a581
JJ
16672 # The cast to long int works around a bug in the HP C Compiler
16673# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16674# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16675# This bug is HP SR number 8606223364.
16676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16677$as_echo_n "checking size of short... " >&6; }
22e05272 16678if ${ac_cv_sizeof_short+:} false; then :
c915a581
JJ
16679 $as_echo_n "(cached) " >&6
16680else
16681 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
f35db108 16682
c915a581
JJ
16683else
16684 if test "$ac_cv_type_short" = yes; then
16685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16687as_fn_error 77 "cannot compute sizeof (short)
16688See \`config.log' for more details" "$LINENO" 5; }
c915a581
JJ
16689 else
16690 ac_cv_sizeof_short=0
16691 fi
16692fi
f35db108 16693
c915a581
JJ
16694fi
16695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16696$as_echo "$ac_cv_sizeof_short" >&6; }
f35db108
WM
16697
16698
16699
c915a581
JJ
16700cat >>confdefs.h <<_ACEOF
16701#define SIZEOF_SHORT $ac_cv_sizeof_short
16702_ACEOF
f35db108
WM
16703
16704
c915a581 16705 # The cast to long int works around a bug in the HP C Compiler
64548f3b
JJ
16706# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16707# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16708# This bug is HP SR number 8606223364.
c915a581
JJ
16709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16710$as_echo_n "checking size of char... " >&6; }
22e05272 16711if ${ac_cv_sizeof_char+:} false; then :
64548f3b
JJ
16712 $as_echo_n "(cached) " >&6
16713else
c915a581 16714 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
64548f3b
JJ
16715
16716else
c915a581 16717 if test "$ac_cv_type_char" = yes; then
64548f3b
JJ
16718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16720as_fn_error 77 "cannot compute sizeof (char)
16721See \`config.log' for more details" "$LINENO" 5; }
64548f3b 16722 else
c915a581 16723 ac_cv_sizeof_char=0
64548f3b
JJ
16724 fi
16725fi
16726
16727fi
c915a581
JJ
16728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16729$as_echo "$ac_cv_sizeof_char" >&6; }
16730
16731
16732
16733cat >>confdefs.h <<_ACEOF
16734#define SIZEOF_CHAR $ac_cv_sizeof_char
16735_ACEOF
16736
16737
16738
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16740$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16741 case "$ac_cv_sizeof_char" in
16742 1) acx_cv_type_int8_t=char ;;
22e05272 16743 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
c915a581
JJ
16744 esac
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16746$as_echo "$acx_cv_type_int8_t" >&6; }
16747
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16749$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16750 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16751 2:*) acx_cv_type_int16_t=int ;;
16752 *:2) acx_cv_type_int16_t=short ;;
22e05272 16753 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
c915a581
JJ
16754 esac
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16756$as_echo "$acx_cv_type_int16_t" >&6; }
16757
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16759$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16760 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16761 4:*) acx_cv_type_int32_t=int ;;
16762 *:4) acx_cv_type_int32_t=long ;;
22e05272 16763 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
c915a581
JJ
16764 esac
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16766$as_echo "$acx_cv_type_int32_t" >&6; }
16767fi
16768
16769# These tests are here to make the output prettier
16770
16771if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16772 case "$ac_cv_sizeof_long" in
16773 8) acx_cv_type_int64_t=long ;;
16774 esac
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16776$as_echo_n "checking for type equivalent to int64_t... " >&6; }
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16778$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16779fi
16780
16781# Now we can use the above types
16782
16783if test "$ac_cv_type_uintptr_t" != yes; then
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16785$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16786 case $ac_cv_sizeof_void_p in
16787 2) acx_cv_type_intptr_t=int16_t ;;
16788 4) acx_cv_type_intptr_t=int32_t ;;
16789 8) acx_cv_type_intptr_t=int64_t ;;
22e05272 16790 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
c915a581
JJ
16791 esac
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16793$as_echo "$acx_cv_type_intptr_t" >&6; }
16794fi
16795
16796# ----------------- done all checks, emit header -------------
16797ac_config_commands="$ac_config_commands gstdint.h"
16798
16799
16800
16801
b5f58ba3 16802for ac_header in sys/mman.h alloca.h
c915a581 16803do :
b5f58ba3
JJ
16804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16805ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22e05272 16806if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
c915a581 16807 cat >>confdefs.h <<_ACEOF
b5f58ba3 16808#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
c915a581
JJ
16809_ACEOF
16810
16811fi
16812
16813done
16814
16815if test "$ac_cv_header_sys_mman_h" = "no"; then
16816 have_mmap=no
16817else
16818 if test -n "${with_target_subdir}"; then
16819 # When built as a GCC target library, we can't do a link test. We
16820 # simply assume that if we have mman.h, we have mmap.
16821 have_mmap=yes
16822 else
16823 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22e05272 16824if test "x$ac_cv_func_mmap" = xyes; then :
c915a581
JJ
16825 have_mmap=yes
16826else
16827 have_mmap=no
16828fi
16829
16830 fi
16831fi
16832if test "$have_mmap" = "no"; then
16833 VIEW_FILE=read.lo
16834 ALLOC_FILE=alloc.lo
16835else
16836 VIEW_FILE=mmapio.lo
16837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16838/* end confdefs.h. */
64548f3b 16839
c915a581
JJ
16840#include <sys/mman.h>
16841#if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
16842 #error no MAP_ANONYMOUS
16843#endif
64548f3b 16844
64548f3b 16845_ACEOF
c915a581
JJ
16846if ac_fn_c_try_cpp "$LINENO"; then :
16847 ALLOC_FILE=mmap.lo
16848else
16849 ALLOC_FILE=alloc.lo
16850fi
22e05272 16851rm -f conftest.err conftest.i conftest.$ac_ext
c915a581 16852fi
64548f3b
JJ
16853
16854
16855
c915a581
JJ
16856BACKTRACE_USES_MALLOC=0
16857if test "$ALLOC_FILE" = "alloc.lo"; then
16858 BACKTRACE_USES_MALLOC=1
2a6346c4 16859fi
64548f3b 16860
cd0be65c 16861
c915a581
JJ
16862# Don't care about thread support
16863BACKTRACE_SUPPORTS_THREADS=0
9065ada9 16864
f35db108 16865
c915a581
JJ
16866# Check for dl_iterate_phdr.
16867for ac_header in link.h
35814b03 16868do :
c915a581 16869 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
22e05272 16870if test "x$ac_cv_header_link_h" = xyes; then :
35814b03 16871 cat >>confdefs.h <<_ACEOF
c915a581 16872#define HAVE_LINK_H 1
35814b03
JJ
16873_ACEOF
16874
16875fi
35814b03 16876
c915a581 16877done
35814b03 16878
c915a581
JJ
16879if test "$ac_cv_header_link_h" = "no"; then
16880 have_dl_iterate_phdr=no
16881else
16882 # When built as a GCC target library, we can't do a link test.
16883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16884/* end confdefs.h. */
16885#include <link.h>
35814b03 16886
c915a581
JJ
16887_ACEOF
16888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16889 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
16890 have_dl_iterate_phdr=yes
16891else
16892 have_dl_iterate_phdr=no
16893fi
16894rm -f conftest*
35814b03 16895
c915a581
JJ
16896fi
16897if test "$have_dl_iterate_phdr" = "yes"; then
35814b03 16898
c915a581 16899$as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
35814b03 16900
c915a581 16901fi
35814b03 16902
c915a581
JJ
16903# Check for the fcntl function.
16904if test -n "${with_target_subdir}"; then
16905 case "${host}" in
16906 *-*-mingw*) have_fcntl=no ;;
16907 *) have_fcntl=yes ;;
16908 esac
16909else
16910 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
22e05272 16911if test "x$ac_cv_func_fcntl" = xyes; then :
c915a581
JJ
16912 have_fcntl=yes
16913else
16914 have_fcntl=no
16915fi
35814b03 16916
c915a581
JJ
16917fi
16918if test "$have_fcntl" = "yes"; then
35814b03 16919
c915a581 16920$as_echo "#define HAVE_FCNTL 1" >>confdefs.h
35814b03 16921
c915a581 16922fi
35814b03 16923
c915a581 16924ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
22e05272 16925if test "x$ac_cv_have_decl_strnlen" = xyes; then :
c915a581 16926 ac_have_decl=1
35814b03 16927else
c915a581
JJ
16928 ac_have_decl=0
16929fi
35814b03 16930
c915a581
JJ
16931cat >>confdefs.h <<_ACEOF
16932#define HAVE_DECL_STRNLEN $ac_have_decl
35814b03 16933_ACEOF
c915a581
JJ
16934
16935
16936# Check for getexecname function.
16937if test -n "${with_target_subdir}"; then
16938 case "${host}" in
16939 *-*-solaris2*) have_getexecname=yes ;;
16940 *) have_getexecname=no ;;
16941 esac
35814b03 16942else
c915a581 16943 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
22e05272 16944if test "x$ac_cv_func_getexecname" = xyes; then :
c915a581
JJ
16945 have_getexecname=yes
16946else
16947 have_getexecname=no
35814b03 16948fi
35814b03
JJ
16949
16950fi
c915a581
JJ
16951if test "$have_getexecname" = "yes"; then
16952
16953$as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
35814b03
JJ
16954
16955fi
16956
d041a6fc
YG
16957# Check for rpc/xdr.h
16958for ac_header in rpc/xdr.h
16959do :
16960 ac_fn_c_check_header_mongrel "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default"
22e05272 16961if test "x$ac_cv_header_rpc_xdr_h" = xyes; then :
d041a6fc
YG
16962 cat >>confdefs.h <<_ACEOF
16963#define HAVE_RPC_XDR_H 1
16964_ACEOF
16965
16966fi
16967
16968done
16969
16970if test x"$ac_cv_header_rpc_xdr_h" = xyes; then
16971 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=1"
16972else
16973 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=0"
16974fi
16975
16976# Check for tirpc/rpc/xdr.h
16977for ac_header in tirpc/rpc/xdr.h
16978do :
16979 ac_fn_c_check_header_mongrel "$LINENO" "tirpc/rpc/xdr.h" "ac_cv_header_tirpc_rpc_xdr_h" "$ac_includes_default"
22e05272 16980if test "x$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then :
d041a6fc
YG
16981 cat >>confdefs.h <<_ACEOF
16982#define HAVE_TIRPC_RPC_XDR_H 1
16983_ACEOF
16984
16985fi
16986
16987done
16988
16989if test x"$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then
16990 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=1"
16991else
16992 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=0"
16993fi
16994
16995RPC_DEFS=$rpc_defs
16996
16997
c915a581
JJ
16998 if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
16999 LIBBACKTRACE_SUPPORTED_TRUE=
17000 LIBBACKTRACE_SUPPORTED_FALSE='#'
f246eadc 17001else
c915a581
JJ
17002 LIBBACKTRACE_SUPPORTED_TRUE='#'
17003 LIBBACKTRACE_SUPPORTED_FALSE=
f246eadc
JH
17004fi
17005
17006
f35db108 17007
c915a581
JJ
17008ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
17009
17010ac_config_headers="$ac_config_headers config.h"
f35db108 17011
c915a581 17012
8a769f81 17013ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
f35db108
WM
17014
17015
64548f3b 17016if test "x$TSAN_SUPPORTED" = "xyes"; then
cd0be65c
WM
17017 ac_config_files="$ac_config_files tsan/Makefile"
17018
17019fi
17020
8a769f81
MM
17021if test "x$HWASAN_SUPPORTED" = "xyes"; then
17022 ac_config_files="$ac_config_files hwasan/Makefile"
17023
17024fi
17025
b0edd457
VK
17026
17027
10189819 17028
45ba6bf2
DS
17029# Check whether --enable-werror was given.
17030if test "${enable_werror+set}" = set; then :
17031 enableval=$enable_werror;
17032fi
17033
17034
17035ac_ext=c
17036ac_cpp='$CPP $CPPFLAGS'
17037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17039ac_compiler_gnu=$ac_cv_c_compiler_gnu
17040
17041WARN_FLAGS=
17042save_CFLAGS="$CFLAGS"
17043for real_option in -Wextra -Wall -Wwrite-strings \
17044 -Wmissing-format-attribute -Wcast-qual; do
17045 # Do the check with the no- prefix removed since gcc silently
17046 # accepts any -Wno-* option on purpose
17047 case $real_option in
17048 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
17049 *) option=$real_option ;;
17050 esac
17051 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
17052
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
17054$as_echo_n "checking whether $CC supports $option... " >&6; }
17055if eval \${$as_acx_Woption+:} false; then :
17056 $as_echo_n "(cached) " >&6
17057else
17058 CFLAGS="$option"
17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060/* end confdefs.h. */
17061
17062int
17063main ()
17064{
17065
17066 ;
17067 return 0;
17068}
17069_ACEOF
17070if ac_fn_c_try_compile "$LINENO"; then :
17071 eval "$as_acx_Woption=yes"
17072else
17073 eval "$as_acx_Woption=no"
17074fi
17075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17076
17077fi
17078eval ac_res=\$$as_acx_Woption
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17080$as_echo "$ac_res" >&6; }
17081 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
17082 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
17083fi
17084 done
17085CFLAGS="$save_CFLAGS"
17086ac_ext=c
17087ac_cpp='$CPP $CPPFLAGS'
17088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17090ac_compiler_gnu=$ac_cv_c_compiler_gnu
17091
17092
17093if test "x$enable_werror" != "xno"; then :
17094 WARN_FLAGS="$WARN_FLAGS -Werror"
17095fi
17096
17097
3c36aa6b
JJ
17098# Determine what GCC version number to use in filesystem paths.
17099
17100 get_gcc_base_ver="cat"
17101
17102# Check whether --with-gcc-major-version-only was given.
17103if test "${with_gcc_major_version_only+set}" = set; then :
17104 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 17105 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
17106 fi
17107
17108fi
17109
17110
17111
17112
9069eb28
IT
17113# Add CET specific flags if Intel CET is enabled.
17114 # Check whether --enable-cet was given.
17115if test "${enable_cet+set}" = set; then :
17116 enableval=$enable_cet;
17117 case "$enableval" in
a0e1df88 17118 yes|no|auto) ;;
22e05272 17119 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
9069eb28
IT
17120 esac
17121
17122else
8d286dd1 17123 enable_cet=auto
9069eb28
IT
17124fi
17125
17126
14e335ed
IT
17127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
17128$as_echo_n "checking for CET support... " >&6; }
17129
9051b548 17130# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
9069eb28
IT
17131case "$host" in
17132 i[34567]86-*-linux* | x86_64-*-linux*)
17133 case "$enable_cet" in
a0e1df88 17134 auto)
14e335ed 17135 # Check if target supports multi-byte NOPs
edb07cb9 17136 # and if compiler and assembler support CET insn.
9051b548 17137 cet_save_CFLAGS="$CFLAGS"
4c1a5d8b 17138 CFLAGS="$CFLAGS -fcf-protection"
9069eb28
IT
17139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17140/* end confdefs.h. */
17141
17142int
17143main ()
17144{
14e335ed
IT
17145
17146#if !defined(__SSE2__)
17147#error target does not support multi-byte NOPs
17148#else
9069eb28 17149asm ("setssbsy");
14e335ed
IT
17150#endif
17151
9069eb28
IT
17152 ;
17153 return 0;
17154}
17155_ACEOF
17156if ac_fn_c_try_compile "$LINENO"; then :
17157 enable_cet=yes
17158else
17159 enable_cet=no
17160fi
17161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051b548 17162 CFLAGS="$cet_save_CFLAGS"
9069eb28
IT
17163 ;;
17164 yes)
17165 # Check if assembler supports CET.
17166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17167/* end confdefs.h. */
17168
17169int
17170main ()
17171{
17172asm ("setssbsy");
17173 ;
17174 return 0;
17175}
17176_ACEOF
17177if ac_fn_c_try_compile "$LINENO"; then :
17178
17179else
22e05272 17180 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
9069eb28
IT
17181fi
17182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17183 ;;
17184 esac
17185 ;;
17186 *)
17187 enable_cet=no
17188 ;;
17189esac
17190if test x$enable_cet = xyes; then
7b47ecf2 17191 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17193$as_echo "yes" >&6; }
17194else
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17196$as_echo "no" >&6; }
9069eb28
IT
17197fi
17198
3e405119 17199
e08835fd
YS
17200# Always set -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 to sync with LLVM,
17201# and keep struct *stat* have the same size.
17202case "${host}" in
17203 mips*-*) FILE64_FLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" ;;
17204 *) FILE64_FLAGS="" ;;
17205esac
17206
17207EXTRA_CFLAGS="$EXTRA_CFLAGS $CET_FLAGS $FILE64_FLAGS"
17208EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $CET_FLAGS $FILE64_FLAGS"
3e405119 17209EXTRA_ASFLAGS=$CET_FLAGS
9069eb28
IT
17210
17211
17212
17213
f35db108
WM
17214cat >confcache <<\_ACEOF
17215# This file is a shell script that caches the results of configure
17216# tests run on this system so they can be shared between configure
17217# scripts and configure runs, see configure's option --config-cache.
17218# It is not useful on other systems. If it contains results you don't
17219# want to keep, you may remove or edit it.
17220#
17221# config.status only pays attention to the cache file if you give it
17222# the --recheck option to rerun configure.
17223#
17224# `ac_cv_env_foo' variables (set or unset) will be overridden when
17225# loading this file, other *unset* `ac_cv_foo' will be assigned the
17226# following values.
17227
17228_ACEOF
17229
17230# The following way of writing the cache mishandles newlines in values,
17231# but we know of no workaround that is simple, portable, and efficient.
17232# So, we kill variables containing newlines.
17233# Ultrix sh set writes to stderr and can't be redirected directly,
17234# and sets the high bit in the cache file unless we assign to the vars.
17235(
17236 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17237 eval ac_val=\$$ac_var
17238 case $ac_val in #(
17239 *${as_nl}*)
17240 case $ac_var in #(
17241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17242$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17243 esac
17244 case $ac_var in #(
17245 _ | IFS | as_nl) ;; #(
17246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17247 *) { eval $ac_var=; unset $ac_var;} ;;
17248 esac ;;
17249 esac
17250 done
17251
17252 (set) 2>&1 |
17253 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17254 *${as_nl}ac_space=\ *)
17255 # `set' does not quote correctly, so add quotes: double-quote
17256 # substitution turns \\\\ into \\, and sed turns \\ into \.
17257 sed -n \
17258 "s/'/'\\\\''/g;
17259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17260 ;; #(
17261 *)
17262 # `set' quotes correctly as required by POSIX, so do not add quotes.
17263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17264 ;;
17265 esac |
17266 sort
17267) |
17268 sed '
17269 /^ac_cv_env_/b end
17270 t clear
17271 :clear
17272 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17273 t end
17274 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17275 :end' >>confcache
17276if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17277 if test -w "$cache_file"; then
22e05272 17278 if test "x$cache_file" != "x/dev/null"; then
f35db108
WM
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17280$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
17281 if test ! -f "$cache_file" || test -h "$cache_file"; then
17282 cat confcache >"$cache_file"
17283 else
17284 case $cache_file in #(
17285 */* | ?:*)
17286 mv -f confcache "$cache_file"$$ &&
17287 mv -f "$cache_file"$$ "$cache_file" ;; #(
17288 *)
17289 mv -f confcache "$cache_file" ;;
17290 esac
17291 fi
17292 fi
f35db108
WM
17293 else
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17295$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17296 fi
17297fi
17298rm -f confcache
17299
17300test "x$prefix" = xNONE && prefix=$ac_default_prefix
17301# Let make expand exec_prefix.
17302test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17303
c915a581 17304DEFS=-DHAVE_CONFIG_H
f35db108
WM
17305
17306ac_libobjs=
17307ac_ltlibobjs=
22e05272 17308U=
f35db108
WM
17309for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17310 # 1. Remove the extension, and $U if already installed.
17311 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17312 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17313 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17314 # will be set to the directory where LIBOBJS objects are built.
17315 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17316 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17317done
17318LIBOBJS=$ac_libobjs
17319
17320LTLIBOBJS=$ac_ltlibobjs
17321
17322
22e05272
JM
17323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17324$as_echo_n "checking that generated files are newer than configure... " >&6; }
17325 if test -n "$am_sleep_pid"; then
17326 # Hide warnings about reused PIDs.
17327 wait $am_sleep_pid 2>/dev/null
17328 fi
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17330$as_echo "done" >&6; }
c915a581 17331if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 17332 as_fn_error $? "conditional \"AMDEP\" was never defined.
c915a581
JJ
17333Usually this means the macro was only invoked conditionally." "$LINENO" 5
17334fi
17335if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 17336 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
c915a581
JJ
17337Usually this means the macro was only invoked conditionally." "$LINENO" 5
17338fi
f35db108
WM
17339 if test -n "$EXEEXT"; then
17340 am__EXEEXT_TRUE=
17341 am__EXEEXT_FALSE='#'
17342else
17343 am__EXEEXT_TRUE='#'
17344 am__EXEEXT_FALSE=
17345fi
17346
2b723e21 17347if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 17348 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
2b723e21
TT
17349Usually this means the macro was only invoked conditionally." "$LINENO" 5
17350fi
f35db108 17351if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22e05272 17352 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
f35db108
WM
17353Usually this means the macro was only invoked conditionally." "$LINENO" 5
17354fi
17355if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22e05272 17356 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
f35db108
WM
17357Usually this means the macro was only invoked conditionally." "$LINENO" 5
17358fi
6a6d3817
IS
17359if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
17360 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
17361Usually this means the macro was only invoked conditionally." "$LINENO" 5
17362fi
64548f3b 17363if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
22e05272 17364 as_fn_error $? "conditional \"TSAN_SUPPORTED\" was never defined.
cd0be65c
WM
17365Usually this means the macro was only invoked conditionally." "$LINENO" 5
17366fi
9065ada9 17367if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
22e05272 17368 as_fn_error $? "conditional \"LSAN_SUPPORTED\" was never defined.
9065ada9
JJ
17369Usually this means the macro was only invoked conditionally." "$LINENO" 5
17370fi
8a769f81
MM
17371if test -z "${HWASAN_SUPPORTED_TRUE}" && test -z "${HWASAN_SUPPORTED_FALSE}"; then
17372 as_fn_error $? "conditional \"HWASAN_SUPPORTED\" was never defined.
17373Usually this means the macro was only invoked conditionally." "$LINENO" 5
17374fi
8c4d267c 17375if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
22e05272 17376 as_fn_error $? "conditional \"USING_MAC_INTERPOSE\" was never defined.
f246eadc
JH
17377Usually this means the macro was only invoked conditionally." "$LINENO" 5
17378fi
4a7eaf5f 17379if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
22e05272 17380 as_fn_error $? "conditional \"SANITIZER_SUPPORTED\" was never defined.
4a7eaf5f
YG
17381Usually this means the macro was only invoked conditionally." "$LINENO" 5
17382fi
c915a581 17383if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
22e05272 17384 as_fn_error $? "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
c915a581
JJ
17385Usually this means the macro was only invoked conditionally." "$LINENO" 5
17386fi
f35db108 17387
22e05272 17388: "${CONFIG_STATUS=./config.status}"
f35db108
WM
17389ac_write_fail=0
17390ac_clean_files_save=$ac_clean_files
17391ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17392{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17393$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17394as_write_fail=0
17395cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17396#! $SHELL
17397# Generated by $as_me.
17398# Run this file to recreate the current configuration.
17399# Compiler output produced by configure, useful for debugging
17400# configure, is in config.log if it exists.
17401
17402debug=false
17403ac_cs_recheck=false
17404ac_cs_silent=false
17405
17406SHELL=\${CONFIG_SHELL-$SHELL}
17407export SHELL
17408_ASEOF
17409cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17410## -------------------- ##
17411## M4sh Initialization. ##
17412## -------------------- ##
17413
17414# Be more Bourne compatible
17415DUALCASE=1; export DUALCASE # for MKS sh
17416if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17417 emulate sh
17418 NULLCMD=:
17419 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17420 # is contrary to our usage. Disable this feature.
17421 alias -g '${1+"$@"}'='"$@"'
17422 setopt NO_GLOB_SUBST
17423else
17424 case `(set -o) 2>/dev/null` in #(
17425 *posix*) :
17426 set -o posix ;; #(
17427 *) :
17428 ;;
17429esac
17430fi
17431
17432
17433as_nl='
17434'
17435export as_nl
17436# Printing a long string crashes Solaris 7 /usr/bin/printf.
17437as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17438as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17439as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17440# Prefer a ksh shell builtin over an external printf program on Solaris,
17441# but without wasting forks for bash or zsh.
17442if test -z "$BASH_VERSION$ZSH_VERSION" \
17443 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17444 as_echo='print -r --'
17445 as_echo_n='print -rn --'
17446elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17447 as_echo='printf %s\n'
17448 as_echo_n='printf %s'
17449else
17450 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17451 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17452 as_echo_n='/usr/ucb/echo -n'
17453 else
17454 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17455 as_echo_n_body='eval
17456 arg=$1;
17457 case $arg in #(
17458 *"$as_nl"*)
17459 expr "X$arg" : "X\\(.*\\)$as_nl";
17460 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17461 esac;
17462 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17463 '
17464 export as_echo_n_body
17465 as_echo_n='sh -c $as_echo_n_body as_echo'
17466 fi
17467 export as_echo_body
17468 as_echo='sh -c $as_echo_body as_echo'
17469fi
17470
17471# The user is always right.
17472if test "${PATH_SEPARATOR+set}" != set; then
17473 PATH_SEPARATOR=:
17474 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17475 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17476 PATH_SEPARATOR=';'
17477 }
17478fi
17479
17480
17481# IFS
17482# We need space, tab and new line, in precisely that order. Quoting is
17483# there to prevent editors from complaining about space-tab.
17484# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17485# splitting by setting IFS to empty value.)
17486IFS=" "" $as_nl"
17487
17488# Find who we are. Look in the path if we contain no directory separator.
22e05272 17489as_myself=
f35db108
WM
17490case $0 in #((
17491 *[\\/]* ) as_myself=$0 ;;
17492 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17493for as_dir in $PATH
17494do
17495 IFS=$as_save_IFS
17496 test -z "$as_dir" && as_dir=.
17497 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17498 done
17499IFS=$as_save_IFS
17500
17501 ;;
17502esac
17503# We did not find ourselves, most probably we were run as `sh COMMAND'
17504# in which case we are not to be found in the path.
17505if test "x$as_myself" = x; then
17506 as_myself=$0
17507fi
17508if test ! -f "$as_myself"; then
17509 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17510 exit 1
17511fi
17512
17513# Unset variables that we do not need and which cause bugs (e.g. in
17514# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17515# suppresses any "Segmentation fault" message there. '((' could
17516# trigger a bug in pdksh 5.2.14.
17517for as_var in BASH_ENV ENV MAIL MAILPATH
17518do eval test x\${$as_var+set} = xset \
17519 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17520done
17521PS1='$ '
17522PS2='> '
17523PS4='+ '
17524
17525# NLS nuisances.
17526LC_ALL=C
17527export LC_ALL
17528LANGUAGE=C
17529export LANGUAGE
17530
17531# CDPATH.
17532(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17533
17534
22e05272
JM
17535# as_fn_error STATUS ERROR [LINENO LOG_FD]
17536# ----------------------------------------
f35db108
WM
17537# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17538# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 17539# script with STATUS, using 1 if that was 0.
f35db108
WM
17540as_fn_error ()
17541{
22e05272
JM
17542 as_status=$1; test $as_status -eq 0 && as_status=1
17543 if test "$4"; then
17544 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17545 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
f35db108 17546 fi
22e05272 17547 $as_echo "$as_me: error: $2" >&2
f35db108
WM
17548 as_fn_exit $as_status
17549} # as_fn_error
17550
17551
17552# as_fn_set_status STATUS
17553# -----------------------
17554# Set $? to STATUS, without forking.
17555as_fn_set_status ()
17556{
17557 return $1
17558} # as_fn_set_status
17559
17560# as_fn_exit STATUS
17561# -----------------
17562# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17563as_fn_exit ()
17564{
17565 set +e
17566 as_fn_set_status $1
17567 exit $1
17568} # as_fn_exit
17569
17570# as_fn_unset VAR
17571# ---------------
17572# Portably unset VAR.
17573as_fn_unset ()
17574{
17575 { eval $1=; unset $1;}
17576}
17577as_unset=as_fn_unset
17578# as_fn_append VAR VALUE
17579# ----------------------
17580# Append the text in VALUE to the end of the definition contained in VAR. Take
17581# advantage of any shell optimizations that allow amortized linear growth over
17582# repeated appends, instead of the typical quadratic growth present in naive
17583# implementations.
17584if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17585 eval 'as_fn_append ()
17586 {
17587 eval $1+=\$2
17588 }'
17589else
17590 as_fn_append ()
17591 {
17592 eval $1=\$$1\$2
17593 }
17594fi # as_fn_append
17595
17596# as_fn_arith ARG...
17597# ------------------
17598# Perform arithmetic evaluation on the ARGs, and store the result in the
17599# global $as_val. Take advantage of shells that can avoid forks. The arguments
17600# must be portable across $(()) and expr.
17601if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17602 eval 'as_fn_arith ()
17603 {
17604 as_val=$(( $* ))
17605 }'
17606else
17607 as_fn_arith ()
17608 {
17609 as_val=`expr "$@" || test $? -eq 1`
17610 }
17611fi # as_fn_arith
17612
17613
17614if expr a : '\(a\)' >/dev/null 2>&1 &&
17615 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17616 as_expr=expr
17617else
17618 as_expr=false
17619fi
17620
17621if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17622 as_basename=basename
17623else
17624 as_basename=false
17625fi
17626
17627if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17628 as_dirname=dirname
17629else
17630 as_dirname=false
17631fi
17632
17633as_me=`$as_basename -- "$0" ||
17634$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17635 X"$0" : 'X\(//\)$' \| \
17636 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17637$as_echo X/"$0" |
17638 sed '/^.*\/\([^/][^/]*\)\/*$/{
17639 s//\1/
17640 q
17641 }
17642 /^X\/\(\/\/\)$/{
17643 s//\1/
17644 q
17645 }
17646 /^X\/\(\/\).*/{
17647 s//\1/
17648 q
17649 }
17650 s/.*/./; q'`
17651
17652# Avoid depending upon Character Ranges.
17653as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17654as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17655as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17656as_cr_digits='0123456789'
17657as_cr_alnum=$as_cr_Letters$as_cr_digits
17658
17659ECHO_C= ECHO_N= ECHO_T=
17660case `echo -n x` in #(((((
17661-n*)
17662 case `echo 'xy\c'` in
17663 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17664 xy) ECHO_C='\c';;
17665 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17666 ECHO_T=' ';;
17667 esac;;
17668*)
17669 ECHO_N='-n';;
17670esac
17671
17672rm -f conf$$ conf$$.exe conf$$.file
17673if test -d conf$$.dir; then
17674 rm -f conf$$.dir/conf$$.file
17675else
17676 rm -f conf$$.dir
17677 mkdir conf$$.dir 2>/dev/null
17678fi
17679if (echo >conf$$.file) 2>/dev/null; then
17680 if ln -s conf$$.file conf$$ 2>/dev/null; then
17681 as_ln_s='ln -s'
17682 # ... but there are two gotchas:
17683 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17684 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 17685 # In both cases, we have to default to `cp -pR'.
f35db108 17686 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 17687 as_ln_s='cp -pR'
f35db108
WM
17688 elif ln conf$$.file conf$$ 2>/dev/null; then
17689 as_ln_s=ln
17690 else
22e05272 17691 as_ln_s='cp -pR'
f35db108
WM
17692 fi
17693else
22e05272 17694 as_ln_s='cp -pR'
f35db108
WM
17695fi
17696rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17697rmdir conf$$.dir 2>/dev/null
17698
17699
17700# as_fn_mkdir_p
17701# -------------
17702# Create "$as_dir" as a directory, including parents if necessary.
17703as_fn_mkdir_p ()
17704{
17705
17706 case $as_dir in #(
17707 -*) as_dir=./$as_dir;;
17708 esac
17709 test -d "$as_dir" || eval $as_mkdir_p || {
17710 as_dirs=
17711 while :; do
17712 case $as_dir in #(
17713 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17714 *) as_qdir=$as_dir;;
17715 esac
17716 as_dirs="'$as_qdir' $as_dirs"
17717 as_dir=`$as_dirname -- "$as_dir" ||
17718$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17719 X"$as_dir" : 'X\(//\)[^/]' \| \
17720 X"$as_dir" : 'X\(//\)$' \| \
17721 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17722$as_echo X"$as_dir" |
17723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17724 s//\1/
17725 q
17726 }
17727 /^X\(\/\/\)[^/].*/{
17728 s//\1/
17729 q
17730 }
17731 /^X\(\/\/\)$/{
17732 s//\1/
17733 q
17734 }
17735 /^X\(\/\).*/{
17736 s//\1/
17737 q
17738 }
17739 s/.*/./; q'`
17740 test -d "$as_dir" && break
17741 done
17742 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 17743 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
f35db108
WM
17744
17745
17746} # as_fn_mkdir_p
17747if mkdir -p . 2>/dev/null; then
17748 as_mkdir_p='mkdir -p "$as_dir"'
17749else
17750 test -d ./-p && rmdir ./-p
17751 as_mkdir_p=false
17752fi
17753
22e05272
JM
17754
17755# as_fn_executable_p FILE
17756# -----------------------
17757# Test if FILE is an executable regular file.
17758as_fn_executable_p ()
17759{
17760 test -f "$1" && test -x "$1"
17761} # as_fn_executable_p
17762as_test_x='test -x'
17763as_executable_p=as_fn_executable_p
f35db108
WM
17764
17765# Sed expression to map a string onto a valid CPP name.
17766as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17767
17768# Sed expression to map a string onto a valid variable name.
17769as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17770
17771
17772exec 6>&1
17773## ----------------------------------- ##
17774## Main body of $CONFIG_STATUS script. ##
17775## ----------------------------------- ##
17776_ASEOF
17777test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17778
17779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17780# Save the log message, to keep $0 and so on meaningful, and to
17781# report actual input values of CONFIG_FILES etc. instead of their
17782# values after options handling.
17783ac_log="
17784This file was extended by package-unused $as_me version-unused, which was
22e05272 17785generated by GNU Autoconf 2.69. Invocation command line was
f35db108
WM
17786
17787 CONFIG_FILES = $CONFIG_FILES
17788 CONFIG_HEADERS = $CONFIG_HEADERS
17789 CONFIG_LINKS = $CONFIG_LINKS
17790 CONFIG_COMMANDS = $CONFIG_COMMANDS
17791 $ $0 $@
17792
17793on `(hostname || uname -n) 2>/dev/null | sed 1q`
17794"
17795
17796_ACEOF
17797
17798case $ac_config_files in *"
17799"*) set x $ac_config_files; shift; ac_config_files=$*;;
17800esac
17801
c915a581
JJ
17802case $ac_config_headers in *"
17803"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17804esac
f35db108
WM
17805
17806
17807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17808# Files that config.status was made for.
17809config_files="$ac_config_files"
c915a581 17810config_headers="$ac_config_headers"
f35db108
WM
17811config_commands="$ac_config_commands"
17812
17813_ACEOF
17814
17815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17816ac_cs_usage="\
17817\`$as_me' instantiates files and other configuration actions
17818from templates according to the current configuration. Unless the files
17819and actions are specified as TAGs, all are instantiated by default.
17820
17821Usage: $0 [OPTION]... [TAG]...
17822
17823 -h, --help print this help, then exit
17824 -V, --version print version number and configuration settings, then exit
22e05272 17825 --config print configuration, then exit
f35db108
WM
17826 -q, --quiet, --silent
17827 do not print progress messages
17828 -d, --debug don't remove temporary files
17829 --recheck update $as_me by reconfiguring in the same conditions
17830 --file=FILE[:TEMPLATE]
17831 instantiate the configuration file FILE
c915a581
JJ
17832 --header=FILE[:TEMPLATE]
17833 instantiate the configuration header FILE
f35db108
WM
17834
17835Configuration files:
17836$config_files
17837
c915a581
JJ
17838Configuration headers:
17839$config_headers
17840
f35db108
WM
17841Configuration commands:
17842$config_commands
17843
17844Report bugs to <libsanitizer>."
17845
17846_ACEOF
17847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 17848ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
f35db108
WM
17849ac_cs_version="\\
17850package-unused config.status version-unused
22e05272
JM
17851configured by $0, generated by GNU Autoconf 2.69,
17852 with options \\"\$ac_cs_config\\"
f35db108 17853
22e05272 17854Copyright (C) 2012 Free Software Foundation, Inc.
f35db108
WM
17855This config.status script is free software; the Free Software Foundation
17856gives unlimited permission to copy, distribute and modify it."
17857
17858ac_pwd='$ac_pwd'
17859srcdir='$srcdir'
17860INSTALL='$INSTALL'
17861MKDIR_P='$MKDIR_P'
17862AWK='$AWK'
17863test -n "\$AWK" || AWK=awk
17864_ACEOF
17865
17866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17867# The default lists apply if the user does not specify any file.
17868ac_need_defaults=:
17869while test $# != 0
17870do
17871 case $1 in
22e05272 17872 --*=?*)
f35db108
WM
17873 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17874 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17875 ac_shift=:
17876 ;;
22e05272
JM
17877 --*=)
17878 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17879 ac_optarg=
17880 ac_shift=:
17881 ;;
f35db108
WM
17882 *)
17883 ac_option=$1
17884 ac_optarg=$2
17885 ac_shift=shift
17886 ;;
17887 esac
17888
17889 case $ac_option in
17890 # Handling of the options.
17891 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17892 ac_cs_recheck=: ;;
17893 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17894 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
17895 --config | --confi | --conf | --con | --co | --c )
17896 $as_echo "$ac_cs_config"; exit ;;
f35db108
WM
17897 --debug | --debu | --deb | --de | --d | -d )
17898 debug=: ;;
17899 --file | --fil | --fi | --f )
17900 $ac_shift
17901 case $ac_optarg in
17902 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 17903 '') as_fn_error $? "missing file argument" ;;
f35db108
WM
17904 esac
17905 as_fn_append CONFIG_FILES " '$ac_optarg'"
17906 ac_need_defaults=false;;
c915a581
JJ
17907 --header | --heade | --head | --hea )
17908 $ac_shift
17909 case $ac_optarg in
17910 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17911 esac
17912 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17913 ac_need_defaults=false;;
17914 --he | --h)
17915 # Conflict between --help and --header
22e05272 17916 as_fn_error $? "ambiguous option: \`$1'
c915a581
JJ
17917Try \`$0 --help' for more information.";;
17918 --help | --hel | -h )
f35db108
WM
17919 $as_echo "$ac_cs_usage"; exit ;;
17920 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17921 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17922 ac_cs_silent=: ;;
17923
17924 # This is an error.
22e05272 17925 -*) as_fn_error $? "unrecognized option: \`$1'
f35db108
WM
17926Try \`$0 --help' for more information." ;;
17927
17928 *) as_fn_append ac_config_targets " $1"
17929 ac_need_defaults=false ;;
17930
17931 esac
17932 shift
17933done
17934
17935ac_configure_extra_args=
17936
17937if $ac_cs_silent; then
17938 exec 6>/dev/null
17939 ac_configure_extra_args="$ac_configure_extra_args --silent"
17940fi
17941
17942_ACEOF
17943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17944if \$ac_cs_recheck; then
22e05272 17945 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
f35db108
WM
17946 shift
17947 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17948 CONFIG_SHELL='$SHELL'
17949 export CONFIG_SHELL
17950 exec "\$@"
17951fi
17952
17953_ACEOF
17954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17955exec 5>>config.log
17956{
17957 echo
17958 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17959## Running $as_me. ##
17960_ASBOX
17961 $as_echo "$ac_log"
17962} >&5
17963
17964_ACEOF
17965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17966#
17967# INIT-COMMANDS
17968#
2a6346c4
L
17969
17970srcdir="$srcdir"
17971host="$host"
17972target="$target"
17973with_multisubdir="$with_multisubdir"
17974with_multisrctop="$with_multisrctop"
17975with_target_subdir="$with_target_subdir"
17976ac_configure_args="${multilib_arg} ${ac_configure_args}"
17977multi_basedir="$multi_basedir"
17978CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17979CC="$CC"
17980CXX="$CXX"
17981GFORTRAN="$GFORTRAN"
22e05272 17982GDC="$GDC"
8bc1fac7 17983AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
f35db108
WM
17984
17985
17986# The HP-UX ksh and POSIX shell print the target directory to stdout
17987# if CDPATH is set.
17988(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17989
17990sed_quote_subst='$sed_quote_subst'
17991double_quote_subst='$double_quote_subst'
17992delay_variable_subst='$delay_variable_subst'
17993macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17994macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17995enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17996enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17997pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17998enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17999SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18000ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
f35db108
WM
18001host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18002host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18003host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18004build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18005build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18006build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18007SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18008Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18009GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18010EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18011FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18012LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18013NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18014LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18015max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18016ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18017exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18018lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18019lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18020lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
f35db108
WM
18021reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18022reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18023OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18024deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18025file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
f35db108
WM
18026AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18027AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
f35db108
WM
18028STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18029RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18030old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18031old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18032old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18033lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18034CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18035CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18036compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18037GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18038lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18039lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18040lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18041lt_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
18042objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18043MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18044lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
f35db108 18045lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
a2479b3d 18046lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
f35db108
WM
18047lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18048lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18049need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
f35db108
WM
18050DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18051NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18052LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18053OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18054OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18055libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18056shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18057extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18058archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18059enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18060export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18061whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18062compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18063old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18064old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18065archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18066archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18067module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18068module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18069with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18070allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18071no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18072hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
a2479b3d 18073hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
f35db108
WM
18074hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18075hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18076hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18077hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18078hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18079hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18080inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18081link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
a2479b3d 18082fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
f35db108
WM
18083always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18084export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18085exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18086include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18087prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
f35db108
WM
18088file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18089variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18090need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18091need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18092version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18093runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18094shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18095shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18096libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18097library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18098soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18099install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18100postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18101postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18102finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18103finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18104hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18105sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18106sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18107hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18108enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18109enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18110enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18111old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18112striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18113compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18114predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18115postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18116predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18117postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18118compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18119LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18120reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18121reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18122old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18123compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18124GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18125lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
f35db108 18126lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
a2479b3d 18127lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
18128lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18129lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18130archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18131enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18132export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18133whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18134compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18135old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18136old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18137archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18138archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18139module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18140module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18141with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18142allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18143no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18144hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
a2479b3d 18145hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
18146hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18147hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18148hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18149hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18150hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18151hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18152inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18153link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
a2479b3d 18154fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
18155always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18156export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18157exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18158include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18159prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
18160file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18161hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18162compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18163predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18164postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18165predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18166postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18167compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18168
18169LTCC='$LTCC'
18170LTCFLAGS='$LTCFLAGS'
18171compiler='$compiler_DEFAULT'
18172
18173# A function that is used when there is no print builtin or printf.
18174func_fallback_echo ()
18175{
18176 eval 'cat <<_LTECHO_EOF
18177\$1
18178_LTECHO_EOF'
18179}
18180
18181# Quote evaled strings.
18182for var in SHELL \
18183ECHO \
f35db108
WM
18184SED \
18185GREP \
18186EGREP \
18187FGREP \
18188LD \
18189NM \
18190LN_S \
18191lt_SP2NL \
18192lt_NL2SP \
18193reload_flag \
18194OBJDUMP \
18195deplibs_check_method \
18196file_magic_cmd \
f35db108
WM
18197AR \
18198AR_FLAGS \
f35db108
WM
18199STRIP \
18200RANLIB \
18201CC \
18202CFLAGS \
18203compiler \
18204lt_cv_sys_global_symbol_pipe \
18205lt_cv_sys_global_symbol_to_cdecl \
18206lt_cv_sys_global_symbol_to_c_name_address \
18207lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
f35db108 18208lt_prog_compiler_no_builtin_flag \
f35db108 18209lt_prog_compiler_wl \
a2479b3d 18210lt_prog_compiler_pic \
f35db108
WM
18211lt_prog_compiler_static \
18212lt_cv_prog_compiler_c_o \
18213need_locks \
f35db108
WM
18214DSYMUTIL \
18215NMEDIT \
18216LIPO \
18217OTOOL \
18218OTOOL64 \
18219shrext_cmds \
18220export_dynamic_flag_spec \
18221whole_archive_flag_spec \
18222compiler_needs_object \
18223with_gnu_ld \
18224allow_undefined_flag \
18225no_undefined_flag \
18226hardcode_libdir_flag_spec \
a2479b3d 18227hardcode_libdir_flag_spec_ld \
f35db108 18228hardcode_libdir_separator \
a2479b3d 18229fix_srcfile_path \
f35db108
WM
18230exclude_expsyms \
18231include_expsyms \
18232file_list_spec \
18233variables_saved_for_relink \
18234libname_spec \
18235library_names_spec \
18236soname_spec \
18237install_override_mode \
18238finish_eval \
18239old_striplib \
18240striplib \
18241compiler_lib_search_dirs \
18242predep_objects \
18243postdep_objects \
18244predeps \
18245postdeps \
18246compiler_lib_search_path \
18247LD_CXX \
18248reload_flag_CXX \
18249compiler_CXX \
18250lt_prog_compiler_no_builtin_flag_CXX \
f35db108 18251lt_prog_compiler_wl_CXX \
a2479b3d 18252lt_prog_compiler_pic_CXX \
f35db108
WM
18253lt_prog_compiler_static_CXX \
18254lt_cv_prog_compiler_c_o_CXX \
18255export_dynamic_flag_spec_CXX \
18256whole_archive_flag_spec_CXX \
18257compiler_needs_object_CXX \
18258with_gnu_ld_CXX \
18259allow_undefined_flag_CXX \
18260no_undefined_flag_CXX \
18261hardcode_libdir_flag_spec_CXX \
a2479b3d 18262hardcode_libdir_flag_spec_ld_CXX \
f35db108 18263hardcode_libdir_separator_CXX \
a2479b3d 18264fix_srcfile_path_CXX \
f35db108
WM
18265exclude_expsyms_CXX \
18266include_expsyms_CXX \
18267file_list_spec_CXX \
18268compiler_lib_search_dirs_CXX \
18269predep_objects_CXX \
18270postdep_objects_CXX \
18271predeps_CXX \
18272postdeps_CXX \
18273compiler_lib_search_path_CXX; do
18274 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18275 *[\\\\\\\`\\"\\\$]*)
18276 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18277 ;;
18278 *)
18279 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18280 ;;
18281 esac
18282done
18283
18284# Double-quote double-evaled strings.
18285for var in reload_cmds \
18286old_postinstall_cmds \
18287old_postuninstall_cmds \
18288old_archive_cmds \
18289extract_expsyms_cmds \
18290old_archive_from_new_cmds \
18291old_archive_from_expsyms_cmds \
18292archive_cmds \
18293archive_expsym_cmds \
18294module_cmds \
18295module_expsym_cmds \
18296export_symbols_cmds \
18297prelink_cmds \
f35db108
WM
18298postinstall_cmds \
18299postuninstall_cmds \
18300finish_cmds \
18301sys_lib_search_path_spec \
18302sys_lib_dlsearch_path_spec \
18303reload_cmds_CXX \
18304old_archive_cmds_CXX \
18305old_archive_from_new_cmds_CXX \
18306old_archive_from_expsyms_cmds_CXX \
18307archive_cmds_CXX \
18308archive_expsym_cmds_CXX \
18309module_cmds_CXX \
18310module_expsym_cmds_CXX \
18311export_symbols_cmds_CXX \
a2479b3d 18312prelink_cmds_CXX; do
f35db108
WM
18313 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18314 *[\\\\\\\`\\"\\\$]*)
18315 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18316 ;;
18317 *)
18318 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18319 ;;
18320 esac
18321done
18322
18323ac_aux_dir='$ac_aux_dir'
18324xsi_shell='$xsi_shell'
18325lt_shell_append='$lt_shell_append'
18326
18327# See if we are running on zsh, and set the options which allow our
18328# commands through without removal of \ escapes INIT.
18329if test -n "\${ZSH_VERSION+set}" ; then
18330 setopt NO_GLOB_SUBST
18331fi
18332
18333
18334 PACKAGE='$PACKAGE'
18335 VERSION='$VERSION'
18336 TIMESTAMP='$TIMESTAMP'
18337 RM='$RM'
18338 ofile='$ofile'
18339
18340
18341
18342
18343
18344
c915a581
JJ
18345GCC="$GCC"
18346CC="$CC"
18347acx_cv_header_stdint="$acx_cv_header_stdint"
18348acx_cv_type_int8_t="$acx_cv_type_int8_t"
18349acx_cv_type_int16_t="$acx_cv_type_int16_t"
18350acx_cv_type_int32_t="$acx_cv_type_int32_t"
18351acx_cv_type_int64_t="$acx_cv_type_int64_t"
18352acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18353ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18354ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18355ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18356ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18357ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18358ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18359ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18360ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18361
18362
f35db108
WM
18363_ACEOF
18364
18365cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18366
18367# Handling of arguments.
18368for ac_config_target in $ac_config_targets
18369do
18370 case $ac_config_target in
c915a581 18371 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
94213c10 18372 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
f35db108 18373 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
c915a581 18374 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
f35db108 18375 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35814b03 18376 "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
c915a581
JJ
18377 "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
18378 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
f35db108
WM
18379 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
18380 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
c915a581 18381 "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;;
ef1b3fda 18382 "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
f35db108 18383 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
de5a5fa1 18384 "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
cd0be65c 18385 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
8a769f81 18386 "hwasan/Makefile") CONFIG_FILES="$CONFIG_FILES hwasan/Makefile" ;;
f35db108 18387
22e05272 18388 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
f35db108
WM
18389 esac
18390done
18391
18392
18393# If the user did not use the arguments to specify the items to instantiate,
18394# then the envvar interface is used. Set only those that are not.
18395# We use the long form for the default assignment because of an extremely
18396# bizarre bug on SunOS 4.1.3.
18397if $ac_need_defaults; then
18398 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
c915a581 18399 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
f35db108
WM
18400 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18401fi
18402
18403# Have a temporary directory for convenience. Make it in the build tree
18404# simply because there is no reason against having it here, and in addition,
18405# creating and moving files from /tmp can sometimes cause problems.
18406# Hook for its removal unless debugging.
18407# Note that there is a small window in which the directory will not be cleaned:
18408# after its creation but before its name has been assigned to `$tmp'.
18409$debug ||
18410{
22e05272 18411 tmp= ac_tmp=
f35db108 18412 trap 'exit_status=$?
22e05272
JM
18413 : "${ac_tmp:=$tmp}"
18414 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
f35db108
WM
18415' 0
18416 trap 'as_fn_exit 1' 1 2 13 15
18417}
18418# Create a (secure) tmp directory for tmp files.
18419
18420{
18421 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 18422 test -d "$tmp"
f35db108
WM
18423} ||
18424{
18425 tmp=./conf$$-$RANDOM
18426 (umask 077 && mkdir "$tmp")
22e05272
JM
18427} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18428ac_tmp=$tmp
f35db108
WM
18429
18430# Set up the scripts for CONFIG_FILES section.
18431# No need to generate them if there are no CONFIG_FILES.
18432# This happens for instance with `./config.status config.h'.
18433if test -n "$CONFIG_FILES"; then
18434
18435
18436ac_cr=`echo X | tr X '\015'`
18437# On cygwin, bash can eat \r inside `` if the user requested igncr.
18438# But we know of no other shell where ac_cr would be empty at this
18439# point, so we can use a bashism as a fallback.
18440if test "x$ac_cr" = x; then
18441 eval ac_cr=\$\'\\r\'
18442fi
18443ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18444if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 18445 ac_cs_awk_cr='\\r'
f35db108
WM
18446else
18447 ac_cs_awk_cr=$ac_cr
18448fi
18449
22e05272 18450echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
f35db108
WM
18451_ACEOF
18452
18453
18454{
18455 echo "cat >conf$$subs.awk <<_ACEOF" &&
18456 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18457 echo "_ACEOF"
18458} >conf$$subs.sh ||
22e05272
JM
18459 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18460ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
f35db108
WM
18461ac_delim='%!_!# '
18462for ac_last_try in false false false false false :; do
18463 . ./conf$$subs.sh ||
22e05272 18464 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
f35db108
WM
18465
18466 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18467 if test $ac_delim_n = $ac_delim_num; then
18468 break
18469 elif $ac_last_try; then
22e05272 18470 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
f35db108
WM
18471 else
18472 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18473 fi
18474done
18475rm -f conf$$subs.sh
18476
18477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 18478cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
f35db108
WM
18479_ACEOF
18480sed -n '
18481h
18482s/^/S["/; s/!.*/"]=/
18483p
18484g
18485s/^[^!]*!//
18486:repl
18487t repl
18488s/'"$ac_delim"'$//
18489t delim
18490:nl
18491h
22e05272 18492s/\(.\{148\}\)..*/\1/
f35db108
WM
18493t more1
18494s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18495p
18496n
18497b repl
18498:more1
18499s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18500p
18501g
18502s/.\{148\}//
18503t nl
18504:delim
18505h
22e05272 18506s/\(.\{148\}\)..*/\1/
f35db108
WM
18507t more2
18508s/["\\]/\\&/g; s/^/"/; s/$/"/
18509p
18510b
18511:more2
18512s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18513p
18514g
18515s/.\{148\}//
18516t delim
18517' <conf$$subs.awk | sed '
18518/^[^""]/{
18519 N
18520 s/\n//
18521}
18522' >>$CONFIG_STATUS || ac_write_fail=1
18523rm -f conf$$subs.awk
18524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18525_ACAWK
22e05272 18526cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
f35db108
WM
18527 for (key in S) S_is_set[key] = 1
18528 FS = "\a"
18529
18530}
18531{
18532 line = $ 0
18533 nfields = split(line, field, "@")
18534 substed = 0
18535 len = length(field[1])
18536 for (i = 2; i < nfields; i++) {
18537 key = field[i]
18538 keylen = length(key)
18539 if (S_is_set[key]) {
18540 value = S[key]
18541 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18542 len += length(value) + length(field[++i])
18543 substed = 1
18544 } else
18545 len += 1 + keylen
18546 }
18547
18548 print line
18549}
18550
18551_ACAWK
18552_ACEOF
18553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18554if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18555 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18556else
18557 cat
22e05272
JM
18558fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18559 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
f35db108
WM
18560_ACEOF
18561
22e05272
JM
18562# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18563# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
f35db108
WM
18564# trailing colons and then remove the whole line if VPATH becomes empty
18565# (actually we leave an empty line to preserve line numbers).
18566if test "x$srcdir" = x.; then
22e05272
JM
18567 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18568h
18569s///
18570s/^/:/
18571s/[ ]*$/:/
18572s/:\$(srcdir):/:/g
18573s/:\${srcdir}:/:/g
18574s/:@srcdir@:/:/g
18575s/^:*//
f35db108 18576s/:*$//
22e05272
JM
18577x
18578s/\(=[ ]*\).*/\1/
18579G
18580s/\n//
f35db108
WM
18581s/^[^=]*=[ ]*$//
18582}'
18583fi
18584
18585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18586fi # test -n "$CONFIG_FILES"
18587
c915a581
JJ
18588# Set up the scripts for CONFIG_HEADERS section.
18589# No need to generate them if there are no CONFIG_HEADERS.
18590# This happens for instance with `./config.status Makefile'.
18591if test -n "$CONFIG_HEADERS"; then
22e05272 18592cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
c915a581
JJ
18593BEGIN {
18594_ACEOF
18595
18596# Transform confdefs.h into an awk script `defines.awk', embedded as
18597# here-document in config.status, that substitutes the proper values into
18598# config.h.in to produce config.h.
18599
18600# Create a delimiter string that does not exist in confdefs.h, to ease
18601# handling of long lines.
18602ac_delim='%!_!# '
18603for ac_last_try in false false :; do
22e05272
JM
18604 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18605 if test -z "$ac_tt"; then
c915a581
JJ
18606 break
18607 elif $ac_last_try; then
22e05272 18608 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
c915a581
JJ
18609 else
18610 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18611 fi
18612done
18613
18614# For the awk script, D is an array of macro values keyed by name,
18615# likewise P contains macro parameters if any. Preserve backslash
18616# newline sequences.
18617
18618ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18619sed -n '
18620s/.\{148\}/&'"$ac_delim"'/g
18621t rset
18622:rset
18623s/^[ ]*#[ ]*define[ ][ ]*/ /
18624t def
18625d
18626:def
18627s/\\$//
18628t bsnl
18629s/["\\]/\\&/g
18630s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18631D["\1"]=" \3"/p
18632s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18633d
18634:bsnl
18635s/["\\]/\\&/g
18636s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18637D["\1"]=" \3\\\\\\n"\\/p
18638t cont
18639s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18640t cont
18641d
18642:cont
18643n
18644s/.\{148\}/&'"$ac_delim"'/g
18645t clear
18646:clear
18647s/\\$//
18648t bsnlc
18649s/["\\]/\\&/g; s/^/"/; s/$/"/p
18650d
18651:bsnlc
18652s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18653b cont
18654' <confdefs.h | sed '
18655s/'"$ac_delim"'/"\\\
18656"/g' >>$CONFIG_STATUS || ac_write_fail=1
18657
18658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18659 for (key in D) D_is_set[key] = 1
18660 FS = "\a"
18661}
18662/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18663 line = \$ 0
18664 split(line, arg, " ")
18665 if (arg[1] == "#") {
18666 defundef = arg[2]
18667 mac1 = arg[3]
18668 } else {
18669 defundef = substr(arg[1], 2)
18670 mac1 = arg[2]
18671 }
18672 split(mac1, mac2, "(") #)
18673 macro = mac2[1]
18674 prefix = substr(line, 1, index(line, defundef) - 1)
18675 if (D_is_set[macro]) {
18676 # Preserve the white space surrounding the "#".
18677 print prefix "define", macro P[macro] D[macro]
18678 next
18679 } else {
18680 # Replace #undef with comments. This is necessary, for example,
18681 # in the case of _POSIX_SOURCE, which is predefined and required
18682 # on some systems where configure will not decide to define it.
18683 if (defundef == "undef") {
18684 print "/*", prefix defundef, macro, "*/"
18685 next
18686 }
18687 }
18688}
18689{ print }
18690_ACAWK
18691_ACEOF
18692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 18693 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
c915a581
JJ
18694fi # test -n "$CONFIG_HEADERS"
18695
f35db108 18696
c915a581 18697eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
f35db108
WM
18698shift
18699for ac_tag
18700do
18701 case $ac_tag in
18702 :[FHLC]) ac_mode=$ac_tag; continue;;
18703 esac
18704 case $ac_mode$ac_tag in
18705 :[FHL]*:*);;
22e05272 18706 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
f35db108
WM
18707 :[FH]-) ac_tag=-:-;;
18708 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18709 esac
18710 ac_save_IFS=$IFS
18711 IFS=:
18712 set x $ac_tag
18713 IFS=$ac_save_IFS
18714 shift
18715 ac_file=$1
18716 shift
18717
18718 case $ac_mode in
18719 :L) ac_source=$1;;
18720 :[FH])
18721 ac_file_inputs=
18722 for ac_f
18723 do
18724 case $ac_f in
22e05272 18725 -) ac_f="$ac_tmp/stdin";;
f35db108
WM
18726 *) # Look for the file first in the build tree, then in the source tree
18727 # (if the path is not absolute). The absolute path cannot be DOS-style,
18728 # because $ac_f cannot contain `:'.
18729 test -f "$ac_f" ||
18730 case $ac_f in
18731 [\\/$]*) false;;
18732 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18733 esac ||
22e05272 18734 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
f35db108
WM
18735 esac
18736 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18737 as_fn_append ac_file_inputs " '$ac_f'"
18738 done
18739
18740 # Let's still pretend it is `configure' which instantiates (i.e., don't
18741 # use $as_me), people would be surprised to read:
18742 # /* config.h. Generated by config.status. */
18743 configure_input='Generated from '`
18744 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18745 `' by configure.'
18746 if test x"$ac_file" != x-; then
18747 configure_input="$ac_file. $configure_input"
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18749$as_echo "$as_me: creating $ac_file" >&6;}
18750 fi
18751 # Neutralize special characters interpreted by sed in replacement strings.
18752 case $configure_input in #(
18753 *\&* | *\|* | *\\* )
18754 ac_sed_conf_input=`$as_echo "$configure_input" |
18755 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18756 *) ac_sed_conf_input=$configure_input;;
18757 esac
18758
18759 case $ac_tag in
22e05272
JM
18760 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18761 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
f35db108
WM
18762 esac
18763 ;;
18764 esac
18765
18766 ac_dir=`$as_dirname -- "$ac_file" ||
18767$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18768 X"$ac_file" : 'X\(//\)[^/]' \| \
18769 X"$ac_file" : 'X\(//\)$' \| \
18770 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18771$as_echo X"$ac_file" |
18772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18773 s//\1/
18774 q
18775 }
18776 /^X\(\/\/\)[^/].*/{
18777 s//\1/
18778 q
18779 }
18780 /^X\(\/\/\)$/{
18781 s//\1/
18782 q
18783 }
18784 /^X\(\/\).*/{
18785 s//\1/
18786 q
18787 }
18788 s/.*/./; q'`
18789 as_dir="$ac_dir"; as_fn_mkdir_p
18790 ac_builddir=.
18791
18792case "$ac_dir" in
18793.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18794*)
18795 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18796 # A ".." for each directory in $ac_dir_suffix.
18797 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18798 case $ac_top_builddir_sub in
18799 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18800 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18801 esac ;;
18802esac
18803ac_abs_top_builddir=$ac_pwd
18804ac_abs_builddir=$ac_pwd$ac_dir_suffix
18805# for backward compatibility:
18806ac_top_builddir=$ac_top_build_prefix
18807
18808case $srcdir in
18809 .) # We are building in place.
18810 ac_srcdir=.
18811 ac_top_srcdir=$ac_top_builddir_sub
18812 ac_abs_top_srcdir=$ac_pwd ;;
18813 [\\/]* | ?:[\\/]* ) # Absolute name.
18814 ac_srcdir=$srcdir$ac_dir_suffix;
18815 ac_top_srcdir=$srcdir
18816 ac_abs_top_srcdir=$srcdir ;;
18817 *) # Relative name.
18818 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18819 ac_top_srcdir=$ac_top_build_prefix$srcdir
18820 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18821esac
18822ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18823
18824
18825 case $ac_mode in
18826 :F)
18827 #
18828 # CONFIG_FILE
18829 #
18830
18831 case $INSTALL in
18832 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18833 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18834 esac
18835 ac_MKDIR_P=$MKDIR_P
18836 case $MKDIR_P in
18837 [\\/$]* | ?:[\\/]* ) ;;
18838 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18839 esac
18840_ACEOF
18841
18842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18843# If the template does not know about datarootdir, expand it.
18844# FIXME: This hack should be removed a few years after 2.60.
18845ac_datarootdir_hack=; ac_datarootdir_seen=
18846ac_sed_dataroot='
18847/datarootdir/ {
18848 p
18849 q
18850}
18851/@datadir@/p
18852/@docdir@/p
18853/@infodir@/p
18854/@localedir@/p
18855/@mandir@/p'
18856case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18857*datarootdir*) ac_datarootdir_seen=yes;;
18858*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18860$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18861_ACEOF
18862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18863 ac_datarootdir_hack='
18864 s&@datadir@&$datadir&g
18865 s&@docdir@&$docdir&g
18866 s&@infodir@&$infodir&g
18867 s&@localedir@&$localedir&g
18868 s&@mandir@&$mandir&g
18869 s&\\\${datarootdir}&$datarootdir&g' ;;
18870esac
18871_ACEOF
18872
18873# Neutralize VPATH when `$srcdir' = `.'.
18874# Shell code in configure.ac might set extrasub.
18875# FIXME: do we really want to maintain this feature?
18876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18877ac_sed_extra="$ac_vpsub
18878$extrasub
18879_ACEOF
18880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18881:t
18882/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18883s|@configure_input@|$ac_sed_conf_input|;t t
18884s&@top_builddir@&$ac_top_builddir_sub&;t t
18885s&@top_build_prefix@&$ac_top_build_prefix&;t t
18886s&@srcdir@&$ac_srcdir&;t t
18887s&@abs_srcdir@&$ac_abs_srcdir&;t t
18888s&@top_srcdir@&$ac_top_srcdir&;t t
18889s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18890s&@builddir@&$ac_builddir&;t t
18891s&@abs_builddir@&$ac_abs_builddir&;t t
18892s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18893s&@INSTALL@&$ac_INSTALL&;t t
18894s&@MKDIR_P@&$ac_MKDIR_P&;t t
18895$ac_datarootdir_hack
18896"
22e05272
JM
18897eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18898 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
f35db108
WM
18899
18900test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
18901 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18902 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18903 "$ac_tmp/out"`; test -z "$ac_out"; } &&
f35db108 18904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 18905which seems to be undefined. Please make sure it is defined" >&5
f35db108 18906$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 18907which seems to be undefined. Please make sure it is defined" >&2;}
f35db108 18908
22e05272 18909 rm -f "$ac_tmp/stdin"
f35db108 18910 case $ac_file in
22e05272
JM
18911 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18912 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
f35db108 18913 esac \
22e05272 18914 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
f35db108 18915 ;;
c915a581
JJ
18916 :H)
18917 #
18918 # CONFIG_HEADER
18919 #
18920 if test x"$ac_file" != x-; then
18921 {
18922 $as_echo "/* $configure_input */" \
22e05272
JM
18923 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18924 } >"$ac_tmp/config.h" \
18925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18926 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
c915a581
JJ
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18928$as_echo "$as_me: $ac_file is unchanged" >&6;}
18929 else
18930 rm -f "$ac_file"
22e05272
JM
18931 mv "$ac_tmp/config.h" "$ac_file" \
18932 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
c915a581
JJ
18933 fi
18934 else
18935 $as_echo "/* $configure_input */" \
22e05272
JM
18936 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18937 || as_fn_error $? "could not create -" "$LINENO" 5
c915a581
JJ
18938 fi
18939# Compute "$ac_file"'s index in $config_headers.
18940_am_arg="$ac_file"
18941_am_stamp_count=1
18942for _am_header in $config_headers :; do
18943 case $_am_header in
18944 $_am_arg | $_am_arg:* )
18945 break ;;
18946 * )
18947 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18948 esac
18949done
18950echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18951$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18952 X"$_am_arg" : 'X\(//\)[^/]' \| \
18953 X"$_am_arg" : 'X\(//\)$' \| \
18954 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18955$as_echo X"$_am_arg" |
18956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18957 s//\1/
18958 q
18959 }
18960 /^X\(\/\/\)[^/].*/{
18961 s//\1/
18962 q
18963 }
18964 /^X\(\/\/\)$/{
18965 s//\1/
18966 q
18967 }
18968 /^X\(\/\).*/{
18969 s//\1/
18970 q
18971 }
18972 s/.*/./; q'`/stamp-h$_am_stamp_count
18973 ;;
f35db108
WM
18974
18975 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18976$as_echo "$as_me: executing $ac_file commands" >&6;}
18977 ;;
18978 esac
18979
18980
18981 case $ac_file$ac_mode in
94213c10
MK
18982 "default-1":C)
18983# Only add multilib support code if we just rebuilt the top-level
18984# Makefile.
18985case " $CONFIG_FILES " in
18986 *" Makefile "*)
18987 ac_file=Makefile . ${multi_basedir}/config-ml.in
18988 ;;
18989esac ;;
f35db108 18990 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 18991 # Older Autoconf quotes --file arguments for eval, but not when files
f35db108
WM
18992 # are listed without --file. Let's play safe and only enable the eval
18993 # if we detect the quoting.
8bc1fac7
IS
18994 case $CONFIG_FILES in
18995 *\'*) eval set x "$CONFIG_FILES" ;;
18996 *) set x $CONFIG_FILES ;;
18997 esac
f35db108 18998 shift
8bc1fac7 18999 for mf
f35db108
WM
19000 do
19001 # Strip MF so we end up with the name of the file.
8bc1fac7
IS
19002 mf=`echo "$mf" | sed -e 's/:.*$//'`
19003 # Check whether this is an Automake generated Makefile or not.
19004 # We used to match only the files named 'Makefile.in', but
19005 # some people rename them; so instead we look at the file content.
19006 # Grep'ing the first line is not enough: some people post-process
19007 # each Makefile.in and add a new line on top of each file to say so.
19008 # Grep'ing the whole file is not good either: AIX grep has a line
f35db108 19009 # limit of 2048, but all sed's we know have understand at least 4000.
8bc1fac7
IS
19010 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19011 dirpart=`$as_dirname -- "$mf" ||
19012$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19013 X"$mf" : 'X\(//\)[^/]' \| \
19014 X"$mf" : 'X\(//\)$' \| \
19015 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19016$as_echo X"$mf" |
f35db108
WM
19017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19018 s//\1/
19019 q
19020 }
19021 /^X\(\/\/\)[^/].*/{
19022 s//\1/
19023 q
19024 }
19025 /^X\(\/\/\)$/{
19026 s//\1/
19027 q
19028 }
19029 /^X\(\/\).*/{
19030 s//\1/
19031 q
19032 }
19033 s/.*/./; q'`
8bc1fac7
IS
19034 else
19035 continue
19036 fi
19037 # Extract the definition of DEPDIR, am__include, and am__quote
19038 # from the Makefile without running 'make'.
19039 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19040 test -z "$DEPDIR" && continue
19041 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19042 test -z "$am__include" && continue
19043 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19044 # Find all dependency output files, they are included files with
19045 # $(DEPDIR) in their names. We invoke sed twice because it is the
19046 # simplest approach to changing $(DEPDIR) to its actual value in the
19047 # expansion.
19048 for file in `sed -n "
19049 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19050 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19051 # Make sure the directory exists.
19052 test -f "$dirpart/$file" && continue
19053 fdir=`$as_dirname -- "$file" ||
19054$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19055 X"$file" : 'X\(//\)[^/]' \| \
19056 X"$file" : 'X\(//\)$' \| \
19057 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19058$as_echo X"$file" |
19059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
f35db108
WM
19060 s//\1/
19061 q
19062 }
8bc1fac7 19063 /^X\(\/\/\)[^/].*/{
f35db108
WM
19064 s//\1/
19065 q
19066 }
8bc1fac7
IS
19067 /^X\(\/\/\)$/{
19068 s//\1/
19069 q
19070 }
19071 /^X\(\/\).*/{
f35db108
WM
19072 s//\1/
19073 q
19074 }
19075 s/.*/./; q'`
8bc1fac7
IS
19076 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19077 # echo "creating $dirpart/$file"
19078 echo '# dummy' > "$dirpart/$file"
19079 done
f35db108
WM
19080 done
19081}
19082 ;;
19083 "libtool":C)
19084
19085 # See if we are running on zsh, and set the options which allow our
19086 # commands through without removal of \ escapes.
19087 if test -n "${ZSH_VERSION+set}" ; then
19088 setopt NO_GLOB_SUBST
19089 fi
19090
19091 cfgfile="${ofile}T"
19092 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19093 $RM "$cfgfile"
19094
19095 cat <<_LT_EOF >> "$cfgfile"
19096#! $SHELL
19097
19098# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19099# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19100# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19101# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19102#
19103# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
a2479b3d 19104# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
f35db108
WM
19105# Written by Gordon Matzigkeit, 1996
19106#
19107# This file is part of GNU Libtool.
19108#
19109# GNU Libtool is free software; you can redistribute it and/or
19110# modify it under the terms of the GNU General Public License as
19111# published by the Free Software Foundation; either version 2 of
19112# the License, or (at your option) any later version.
19113#
19114# As a special exception to the GNU General Public License,
19115# if you distribute this file as part of a program or library that
19116# is built using GNU Libtool, you may include this file under the
19117# same distribution terms that you use for the rest of that program.
19118#
19119# GNU Libtool is distributed in the hope that it will be useful,
19120# but WITHOUT ANY WARRANTY; without even the implied warranty of
19121# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19122# GNU General Public License for more details.
19123#
19124# You should have received a copy of the GNU General Public License
19125# along with GNU Libtool; see the file COPYING. If not, a copy
19126# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19127# obtained by writing to the Free Software Foundation, Inc.,
19128# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19129
19130
19131# The names of the tagged configurations supported by this script.
19132available_tags="CXX "
19133
19134# ### BEGIN LIBTOOL CONFIG
19135
19136# Which release of libtool.m4 was used?
19137macro_version=$macro_version
19138macro_revision=$macro_revision
19139
19140# Whether or not to build shared libraries.
19141build_libtool_libs=$enable_shared
19142
19143# Whether or not to build static libraries.
19144build_old_libs=$enable_static
19145
19146# What type of objects to build.
19147pic_mode=$pic_mode
19148
19149# Whether or not to optimize for fast installation.
19150fast_install=$enable_fast_install
19151
19152# Shell to use when invoking shell scripts.
19153SHELL=$lt_SHELL
19154
19155# An echo program that protects backslashes.
19156ECHO=$lt_ECHO
19157
f35db108
WM
19158# The host system.
19159host_alias=$host_alias
19160host=$host
19161host_os=$host_os
19162
19163# The build system.
19164build_alias=$build_alias
19165build=$build
19166build_os=$build_os
19167
19168# A sed program that does not truncate output.
19169SED=$lt_SED
19170
19171# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19172Xsed="\$SED -e 1s/^X//"
19173
19174# A grep program that handles long lines.
19175GREP=$lt_GREP
19176
19177# An ERE matcher.
19178EGREP=$lt_EGREP
19179
19180# A literal string matcher.
19181FGREP=$lt_FGREP
19182
19183# A BSD- or MS-compatible name lister.
19184NM=$lt_NM
19185
19186# Whether we need soft or hard links.
19187LN_S=$lt_LN_S
19188
19189# What is the maximum length of a command?
19190max_cmd_len=$max_cmd_len
19191
19192# Object file suffix (normally "o").
19193objext=$ac_objext
19194
19195# Executable file suffix (normally "").
19196exeext=$exeext
19197
19198# whether the shell understands "unset".
19199lt_unset=$lt_unset
19200
19201# turn spaces into newlines.
19202SP2NL=$lt_lt_SP2NL
19203
19204# turn newlines into spaces.
19205NL2SP=$lt_lt_NL2SP
19206
f35db108
WM
19207# An object symbol dumper.
19208OBJDUMP=$lt_OBJDUMP
19209
19210# Method to check whether dependent libraries are shared objects.
19211deplibs_check_method=$lt_deplibs_check_method
19212
a2479b3d 19213# Command to use when deplibs_check_method == "file_magic".
f35db108
WM
19214file_magic_cmd=$lt_file_magic_cmd
19215
f35db108
WM
19216# The archiver.
19217AR=$lt_AR
f35db108
WM
19218AR_FLAGS=$lt_AR_FLAGS
19219
f35db108
WM
19220# A symbol stripping program.
19221STRIP=$lt_STRIP
19222
19223# Commands used to install an old-style archive.
19224RANLIB=$lt_RANLIB
19225old_postinstall_cmds=$lt_old_postinstall_cmds
19226old_postuninstall_cmds=$lt_old_postuninstall_cmds
19227
19228# Whether to use a lock for old archive extraction.
19229lock_old_archive_extraction=$lock_old_archive_extraction
19230
19231# A C compiler.
19232LTCC=$lt_CC
19233
19234# LTCC compiler flags.
19235LTCFLAGS=$lt_CFLAGS
19236
19237# Take the output of nm and produce a listing of raw symbols and C names.
19238global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19239
19240# Transform the output of nm in a proper C declaration.
19241global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19242
19243# Transform the output of nm in a C name address pair.
19244global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19245
19246# Transform the output of nm in a C name address pair when lib prefix is needed.
19247global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19248
f35db108
WM
19249# The name of the directory that contains temporary libtool files.
19250objdir=$objdir
19251
19252# Used to examine libraries when file_magic_cmd begins with "file".
19253MAGIC_CMD=$MAGIC_CMD
19254
19255# Must we lock files when doing compilation?
19256need_locks=$lt_need_locks
19257
f35db108
WM
19258# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19259DSYMUTIL=$lt_DSYMUTIL
19260
19261# Tool to change global to local symbols on Mac OS X.
19262NMEDIT=$lt_NMEDIT
19263
19264# Tool to manipulate fat objects and archives on Mac OS X.
19265LIPO=$lt_LIPO
19266
19267# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19268OTOOL=$lt_OTOOL
19269
19270# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19271OTOOL64=$lt_OTOOL64
19272
19273# Old archive suffix (normally "a").
19274libext=$libext
19275
19276# Shared library suffix (normally ".so").
19277shrext_cmds=$lt_shrext_cmds
19278
19279# The commands to extract the exported symbol list from a shared archive.
19280extract_expsyms_cmds=$lt_extract_expsyms_cmds
19281
19282# Variables whose values should be saved in libtool wrapper scripts and
19283# restored at link time.
19284variables_saved_for_relink=$lt_variables_saved_for_relink
19285
19286# Do we need the "lib" prefix for modules?
19287need_lib_prefix=$need_lib_prefix
19288
19289# Do we need a version for libraries?
19290need_version=$need_version
19291
19292# Library versioning type.
19293version_type=$version_type
19294
19295# Shared library runtime path variable.
19296runpath_var=$runpath_var
19297
19298# Shared library path variable.
19299shlibpath_var=$shlibpath_var
19300
19301# Is shlibpath searched before the hard-coded library search path?
19302shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19303
19304# Format of library name prefix.
19305libname_spec=$lt_libname_spec
19306
19307# List of archive names. First name is the real one, the rest are links.
19308# The last name is the one that the linker finds with -lNAME
19309library_names_spec=$lt_library_names_spec
19310
19311# The coded name of the library, if different from the real name.
19312soname_spec=$lt_soname_spec
19313
19314# Permission mode override for installation of shared libraries.
19315install_override_mode=$lt_install_override_mode
19316
19317# Command to use after installation of a shared archive.
19318postinstall_cmds=$lt_postinstall_cmds
19319
19320# Command to use after uninstallation of a shared archive.
19321postuninstall_cmds=$lt_postuninstall_cmds
19322
19323# Commands used to finish a libtool library installation in a directory.
19324finish_cmds=$lt_finish_cmds
19325
19326# As "finish_cmds", except a single script fragment to be evaled but
19327# not shown.
19328finish_eval=$lt_finish_eval
19329
19330# Whether we should hardcode library paths into libraries.
19331hardcode_into_libs=$hardcode_into_libs
19332
19333# Compile-time system search path for libraries.
19334sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19335
19336# Run-time system search path for libraries.
19337sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19338
19339# Whether dlopen is supported.
19340dlopen_support=$enable_dlopen
19341
19342# Whether dlopen of programs is supported.
19343dlopen_self=$enable_dlopen_self
19344
19345# Whether dlopen of statically linked programs is supported.
19346dlopen_self_static=$enable_dlopen_self_static
19347
19348# Commands to strip libraries.
19349old_striplib=$lt_old_striplib
19350striplib=$lt_striplib
19351
19352
19353# The linker used to build libraries.
19354LD=$lt_LD
19355
19356# How to create reloadable object files.
19357reload_flag=$lt_reload_flag
19358reload_cmds=$lt_reload_cmds
19359
19360# Commands used to build an old-style archive.
19361old_archive_cmds=$lt_old_archive_cmds
19362
19363# A language specific compiler.
19364CC=$lt_compiler
19365
19366# Is the compiler the GNU compiler?
19367with_gcc=$GCC
19368
19369# Compiler flag to turn off builtin functions.
19370no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19371
f35db108
WM
19372# How to pass a linker flag through the compiler.
19373wl=$lt_lt_prog_compiler_wl
19374
a2479b3d
L
19375# Additional compiler flags for building library objects.
19376pic_flag=$lt_lt_prog_compiler_pic
19377
f35db108
WM
19378# Compiler flag to prevent dynamic linking.
19379link_static_flag=$lt_lt_prog_compiler_static
19380
19381# Does compiler simultaneously support -c and -o options?
19382compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19383
19384# Whether or not to add -lc for building shared libraries.
19385build_libtool_need_lc=$archive_cmds_need_lc
19386
19387# Whether or not to disallow shared libs when runtime libs are static.
19388allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19389
19390# Compiler flag to allow reflexive dlopens.
19391export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19392
19393# Compiler flag to generate shared objects directly from archives.
19394whole_archive_flag_spec=$lt_whole_archive_flag_spec
19395
19396# Whether the compiler copes with passing no objects directly.
19397compiler_needs_object=$lt_compiler_needs_object
19398
19399# Create an old-style archive from a shared archive.
19400old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19401
19402# Create a temporary old-style archive to link instead of a shared archive.
19403old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19404
19405# Commands used to build a shared archive.
19406archive_cmds=$lt_archive_cmds
19407archive_expsym_cmds=$lt_archive_expsym_cmds
19408
19409# Commands used to build a loadable module if different from building
19410# a shared archive.
19411module_cmds=$lt_module_cmds
19412module_expsym_cmds=$lt_module_expsym_cmds
19413
19414# Whether we are building with GNU ld or not.
19415with_gnu_ld=$lt_with_gnu_ld
19416
19417# Flag that allows shared libraries with undefined symbols to be built.
19418allow_undefined_flag=$lt_allow_undefined_flag
19419
19420# Flag that enforces no undefined symbols.
19421no_undefined_flag=$lt_no_undefined_flag
19422
19423# Flag to hardcode \$libdir into a binary during linking.
19424# This must work even if \$libdir does not exist
19425hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19426
a2479b3d
L
19427# If ld is used when linking, flag to hardcode \$libdir into a binary
19428# during linking. This must work even if \$libdir does not exist.
19429hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19430
f35db108
WM
19431# Whether we need a single "-rpath" flag with a separated argument.
19432hardcode_libdir_separator=$lt_hardcode_libdir_separator
19433
19434# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19435# DIR into the resulting binary.
19436hardcode_direct=$hardcode_direct
19437
19438# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19439# DIR into the resulting binary and the resulting library dependency is
19440# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19441# library is relocated.
19442hardcode_direct_absolute=$hardcode_direct_absolute
19443
19444# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19445# into the resulting binary.
19446hardcode_minus_L=$hardcode_minus_L
19447
19448# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19449# into the resulting binary.
19450hardcode_shlibpath_var=$hardcode_shlibpath_var
19451
19452# Set to "yes" if building a shared library automatically hardcodes DIR
19453# into the library and all subsequent libraries and executables linked
19454# against it.
19455hardcode_automatic=$hardcode_automatic
19456
19457# Set to yes if linker adds runtime paths of dependent libraries
19458# to runtime path list.
19459inherit_rpath=$inherit_rpath
19460
19461# Whether libtool must link a program against all its dependency libraries.
19462link_all_deplibs=$link_all_deplibs
19463
a2479b3d
L
19464# Fix the shell variable \$srcfile for the compiler.
19465fix_srcfile_path=$lt_fix_srcfile_path
19466
f35db108
WM
19467# Set to "yes" if exported symbols are required.
19468always_export_symbols=$always_export_symbols
19469
19470# The commands to list exported symbols.
19471export_symbols_cmds=$lt_export_symbols_cmds
19472
19473# Symbols that should not be listed in the preloaded symbols.
19474exclude_expsyms=$lt_exclude_expsyms
19475
19476# Symbols that must always be exported.
19477include_expsyms=$lt_include_expsyms
19478
19479# Commands necessary for linking programs (against libraries) with templates.
19480prelink_cmds=$lt_prelink_cmds
19481
f35db108
WM
19482# Specify filename containing input files.
19483file_list_spec=$lt_file_list_spec
19484
19485# How to hardcode a shared library path into an executable.
19486hardcode_action=$hardcode_action
19487
19488# The directories searched by this compiler when creating a shared library.
19489compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19490
19491# Dependencies to place before and after the objects being linked to
19492# create a shared library.
19493predep_objects=$lt_predep_objects
19494postdep_objects=$lt_postdep_objects
19495predeps=$lt_predeps
19496postdeps=$lt_postdeps
19497
19498# The library search path used internally by the compiler when linking
19499# a shared library.
19500compiler_lib_search_path=$lt_compiler_lib_search_path
19501
19502# ### END LIBTOOL CONFIG
19503
19504_LT_EOF
19505
19506 case $host_os in
19507 aix3*)
19508 cat <<\_LT_EOF >> "$cfgfile"
19509# AIX sometimes has problems with the GCC collect2 program. For some
19510# reason, if we set the COLLECT_NAMES environment variable, the problems
19511# vanish in a puff of smoke.
19512if test "X${COLLECT_NAMES+set}" != Xset; then
19513 COLLECT_NAMES=
19514 export COLLECT_NAMES
19515fi
19516_LT_EOF
19517 ;;
19518 esac
19519
19520
19521ltmain="$ac_aux_dir/ltmain.sh"
19522
19523
19524 # We use sed instead of cat because bash on DJGPP gets confused if
19525 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19526 # text mode, it properly converts lines to CR/LF. This bash problem
19527 # is reportedly fixed, but why not run on old versions too?
a2479b3d
L
19528 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19529 || (rm -f "$cfgfile"; exit 1)
19530
19531 case $xsi_shell in
19532 yes)
19533 cat << \_LT_EOF >> "$cfgfile"
19534
19535# func_dirname file append nondir_replacement
19536# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19537# otherwise set result to NONDIR_REPLACEMENT.
19538func_dirname ()
19539{
19540 case ${1} in
19541 */*) func_dirname_result="${1%/*}${2}" ;;
19542 * ) func_dirname_result="${3}" ;;
19543 esac
19544}
19545
19546# func_basename file
19547func_basename ()
19548{
19549 func_basename_result="${1##*/}"
19550}
19551
19552# func_dirname_and_basename file append nondir_replacement
19553# perform func_basename and func_dirname in a single function
19554# call:
19555# dirname: Compute the dirname of FILE. If nonempty,
19556# add APPEND to the result, otherwise set result
19557# to NONDIR_REPLACEMENT.
19558# value returned in "$func_dirname_result"
19559# basename: Compute filename of FILE.
19560# value retuned in "$func_basename_result"
19561# Implementation must be kept synchronized with func_dirname
19562# and func_basename. For efficiency, we do not delegate to
19563# those functions but instead duplicate the functionality here.
19564func_dirname_and_basename ()
19565{
19566 case ${1} in
19567 */*) func_dirname_result="${1%/*}${2}" ;;
19568 * ) func_dirname_result="${3}" ;;
19569 esac
19570 func_basename_result="${1##*/}"
19571}
19572
19573# func_stripname prefix suffix name
19574# strip PREFIX and SUFFIX off of NAME.
19575# PREFIX and SUFFIX must not contain globbing or regex special
19576# characters, hashes, percent signs, but SUFFIX may contain a leading
19577# dot (in which case that matches only a dot).
19578func_stripname ()
19579{
19580 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19581 # positional parameters, so assign one to ordinary parameter first.
19582 func_stripname_result=${3}
19583 func_stripname_result=${func_stripname_result#"${1}"}
19584 func_stripname_result=${func_stripname_result%"${2}"}
19585}
19586
19587# func_opt_split
19588func_opt_split ()
19589{
19590 func_opt_split_opt=${1%%=*}
19591 func_opt_split_arg=${1#*=}
19592}
19593
19594# func_lo2o object
19595func_lo2o ()
19596{
19597 case ${1} in
19598 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19599 *) func_lo2o_result=${1} ;;
19600 esac
19601}
19602
19603# func_xform libobj-or-source
19604func_xform ()
19605{
19606 func_xform_result=${1%.*}.lo
19607}
19608
19609# func_arith arithmetic-term...
19610func_arith ()
19611{
19612 func_arith_result=$(( $* ))
19613}
19614
19615# func_len string
19616# STRING may not start with a hyphen.
19617func_len ()
19618{
19619 func_len_result=${#1}
19620}
19621
19622_LT_EOF
19623 ;;
19624 *) # Bourne compatible functions.
19625 cat << \_LT_EOF >> "$cfgfile"
19626
19627# func_dirname file append nondir_replacement
19628# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19629# otherwise set result to NONDIR_REPLACEMENT.
19630func_dirname ()
19631{
19632 # Extract subdirectory from the argument.
19633 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19634 if test "X$func_dirname_result" = "X${1}"; then
19635 func_dirname_result="${3}"
19636 else
19637 func_dirname_result="$func_dirname_result${2}"
19638 fi
19639}
19640
19641# func_basename file
19642func_basename ()
19643{
19644 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19645}
19646
19647
19648# func_stripname prefix suffix name
19649# strip PREFIX and SUFFIX off of NAME.
19650# PREFIX and SUFFIX must not contain globbing or regex special
19651# characters, hashes, percent signs, but SUFFIX may contain a leading
19652# dot (in which case that matches only a dot).
19653# func_strip_suffix prefix name
19654func_stripname ()
19655{
19656 case ${2} in
19657 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19658 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19659 esac
19660}
19661
19662# sed scripts:
19663my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19664my_sed_long_arg='1s/^-[^=]*=//'
19665
19666# func_opt_split
19667func_opt_split ()
19668{
19669 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19670 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19671}
19672
19673# func_lo2o object
19674func_lo2o ()
19675{
19676 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19677}
19678
19679# func_xform libobj-or-source
19680func_xform ()
19681{
19682 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19683}
19684
19685# func_arith arithmetic-term...
19686func_arith ()
19687{
19688 func_arith_result=`expr "$@"`
19689}
19690
19691# func_len string
19692# STRING may not start with a hyphen.
19693func_len ()
19694{
19695 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19696}
19697
19698_LT_EOF
19699esac
19700
19701case $lt_shell_append in
19702 yes)
19703 cat << \_LT_EOF >> "$cfgfile"
19704
19705# func_append var value
19706# Append VALUE to the end of shell variable VAR.
19707func_append ()
19708{
19709 eval "$1+=\$2"
19710}
19711_LT_EOF
19712 ;;
19713 *)
19714 cat << \_LT_EOF >> "$cfgfile"
19715
19716# func_append var value
19717# Append VALUE to the end of shell variable VAR.
19718func_append ()
19719{
19720 eval "$1=\$$1\$2"
19721}
19722
19723_LT_EOF
19724 ;;
19725 esac
19726
19727
19728 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19729 || (rm -f "$cfgfile"; exit 1)
19730
19731 mv -f "$cfgfile" "$ofile" ||
f35db108
WM
19732 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19733 chmod +x "$ofile"
19734
19735
19736 cat <<_LT_EOF >> "$ofile"
19737
19738# ### BEGIN LIBTOOL TAG CONFIG: CXX
19739
19740# The linker used to build libraries.
19741LD=$lt_LD_CXX
19742
19743# How to create reloadable object files.
19744reload_flag=$lt_reload_flag_CXX
19745reload_cmds=$lt_reload_cmds_CXX
19746
19747# Commands used to build an old-style archive.
19748old_archive_cmds=$lt_old_archive_cmds_CXX
19749
19750# A language specific compiler.
19751CC=$lt_compiler_CXX
19752
19753# Is the compiler the GNU compiler?
19754with_gcc=$GCC_CXX
19755
19756# Compiler flag to turn off builtin functions.
19757no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19758
f35db108
WM
19759# How to pass a linker flag through the compiler.
19760wl=$lt_lt_prog_compiler_wl_CXX
19761
a2479b3d
L
19762# Additional compiler flags for building library objects.
19763pic_flag=$lt_lt_prog_compiler_pic_CXX
19764
f35db108
WM
19765# Compiler flag to prevent dynamic linking.
19766link_static_flag=$lt_lt_prog_compiler_static_CXX
19767
19768# Does compiler simultaneously support -c and -o options?
19769compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19770
19771# Whether or not to add -lc for building shared libraries.
19772build_libtool_need_lc=$archive_cmds_need_lc_CXX
19773
19774# Whether or not to disallow shared libs when runtime libs are static.
19775allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19776
19777# Compiler flag to allow reflexive dlopens.
19778export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19779
19780# Compiler flag to generate shared objects directly from archives.
19781whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19782
19783# Whether the compiler copes with passing no objects directly.
19784compiler_needs_object=$lt_compiler_needs_object_CXX
19785
19786# Create an old-style archive from a shared archive.
19787old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19788
19789# Create a temporary old-style archive to link instead of a shared archive.
19790old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19791
19792# Commands used to build a shared archive.
19793archive_cmds=$lt_archive_cmds_CXX
19794archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19795
19796# Commands used to build a loadable module if different from building
19797# a shared archive.
19798module_cmds=$lt_module_cmds_CXX
19799module_expsym_cmds=$lt_module_expsym_cmds_CXX
19800
19801# Whether we are building with GNU ld or not.
19802with_gnu_ld=$lt_with_gnu_ld_CXX
19803
19804# Flag that allows shared libraries with undefined symbols to be built.
19805allow_undefined_flag=$lt_allow_undefined_flag_CXX
19806
19807# Flag that enforces no undefined symbols.
19808no_undefined_flag=$lt_no_undefined_flag_CXX
19809
19810# Flag to hardcode \$libdir into a binary during linking.
19811# This must work even if \$libdir does not exist
19812hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19813
a2479b3d
L
19814# If ld is used when linking, flag to hardcode \$libdir into a binary
19815# during linking. This must work even if \$libdir does not exist.
19816hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19817
f35db108
WM
19818# Whether we need a single "-rpath" flag with a separated argument.
19819hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19820
19821# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19822# DIR into the resulting binary.
19823hardcode_direct=$hardcode_direct_CXX
19824
19825# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19826# DIR into the resulting binary and the resulting library dependency is
19827# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19828# library is relocated.
19829hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19830
19831# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19832# into the resulting binary.
19833hardcode_minus_L=$hardcode_minus_L_CXX
19834
19835# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19836# into the resulting binary.
19837hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19838
19839# Set to "yes" if building a shared library automatically hardcodes DIR
19840# into the library and all subsequent libraries and executables linked
19841# against it.
19842hardcode_automatic=$hardcode_automatic_CXX
19843
19844# Set to yes if linker adds runtime paths of dependent libraries
19845# to runtime path list.
19846inherit_rpath=$inherit_rpath_CXX
19847
19848# Whether libtool must link a program against all its dependency libraries.
19849link_all_deplibs=$link_all_deplibs_CXX
19850
a2479b3d
L
19851# Fix the shell variable \$srcfile for the compiler.
19852fix_srcfile_path=$lt_fix_srcfile_path_CXX
19853
f35db108
WM
19854# Set to "yes" if exported symbols are required.
19855always_export_symbols=$always_export_symbols_CXX
19856
19857# The commands to list exported symbols.
19858export_symbols_cmds=$lt_export_symbols_cmds_CXX
19859
19860# Symbols that should not be listed in the preloaded symbols.
19861exclude_expsyms=$lt_exclude_expsyms_CXX
19862
19863# Symbols that must always be exported.
19864include_expsyms=$lt_include_expsyms_CXX
19865
19866# Commands necessary for linking programs (against libraries) with templates.
19867prelink_cmds=$lt_prelink_cmds_CXX
19868
f35db108
WM
19869# Specify filename containing input files.
19870file_list_spec=$lt_file_list_spec_CXX
19871
19872# How to hardcode a shared library path into an executable.
19873hardcode_action=$hardcode_action_CXX
19874
19875# The directories searched by this compiler when creating a shared library.
19876compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19877
19878# Dependencies to place before and after the objects being linked to
19879# create a shared library.
19880predep_objects=$lt_predep_objects_CXX
19881postdep_objects=$lt_postdep_objects_CXX
19882predeps=$lt_predeps_CXX
19883postdeps=$lt_postdeps_CXX
19884
19885# The library search path used internally by the compiler when linking
19886# a shared library.
19887compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19888
19889# ### END LIBTOOL TAG CONFIG: CXX
19890_LT_EOF
19891
c915a581
JJ
19892 ;;
19893 "gstdint.h":C)
19894if test "$GCC" = yes; then
19895 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19896else
19897 echo "/* generated for $CC */" > tmp-stdint.h
19898fi
19899
19900sed 's/^ *//' >> tmp-stdint.h <<EOF
19901
19902 #ifndef GCC_GENERATED_STDINT_H
19903 #define GCC_GENERATED_STDINT_H 1
19904
19905 #include <sys/types.h>
19906EOF
19907
19908if test "$acx_cv_header_stdint" != stdint.h; then
19909 echo "#include <stddef.h>" >> tmp-stdint.h
19910fi
19911if test "$acx_cv_header_stdint" != stddef.h; then
19912 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19913fi
19914
19915sed 's/^ *//' >> tmp-stdint.h <<EOF
19916 /* glibc uses these symbols as guards to prevent redefinitions. */
19917 #ifdef __int8_t_defined
19918 #define _INT8_T
19919 #define _INT16_T
19920 #define _INT32_T
19921 #endif
19922 #ifdef __uint32_t_defined
19923 #define _UINT32_T
19924 #endif
19925
19926EOF
19927
19928# ----------------- done header, emit basic int types -------------
19929if test "$acx_cv_header_stdint" = stddef.h; then
19930 sed 's/^ *//' >> tmp-stdint.h <<EOF
19931
19932 #ifndef _UINT8_T
19933 #define _UINT8_T
19934 #ifndef __uint8_t_defined
19935 #define __uint8_t_defined
19936 #ifndef uint8_t
19937 typedef unsigned $acx_cv_type_int8_t uint8_t;
19938 #endif
19939 #endif
19940 #endif
19941
19942 #ifndef _UINT16_T
19943 #define _UINT16_T
19944 #ifndef __uint16_t_defined
19945 #define __uint16_t_defined
19946 #ifndef uint16_t
19947 typedef unsigned $acx_cv_type_int16_t uint16_t;
19948 #endif
19949 #endif
19950 #endif
19951
19952 #ifndef _UINT32_T
19953 #define _UINT32_T
19954 #ifndef __uint32_t_defined
19955 #define __uint32_t_defined
19956 #ifndef uint32_t
19957 typedef unsigned $acx_cv_type_int32_t uint32_t;
19958 #endif
19959 #endif
19960 #endif
19961
19962 #ifndef _INT8_T
19963 #define _INT8_T
19964 #ifndef __int8_t_defined
19965 #define __int8_t_defined
19966 #ifndef int8_t
19967 typedef $acx_cv_type_int8_t int8_t;
19968 #endif
19969 #endif
19970 #endif
19971
19972 #ifndef _INT16_T
19973 #define _INT16_T
19974 #ifndef __int16_t_defined
19975 #define __int16_t_defined
19976 #ifndef int16_t
19977 typedef $acx_cv_type_int16_t int16_t;
19978 #endif
19979 #endif
19980 #endif
19981
19982 #ifndef _INT32_T
19983 #define _INT32_T
19984 #ifndef __int32_t_defined
19985 #define __int32_t_defined
19986 #ifndef int32_t
19987 typedef $acx_cv_type_int32_t int32_t;
19988 #endif
19989 #endif
19990 #endif
19991EOF
19992elif test "$ac_cv_type_u_int32_t" = yes; then
19993 sed 's/^ *//' >> tmp-stdint.h <<EOF
19994
19995 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19996 #ifndef _INT8_T
19997 #define _INT8_T
19998 #endif
19999 #ifndef _INT16_T
20000 #define _INT16_T
20001 #endif
20002 #ifndef _INT32_T
20003 #define _INT32_T
20004 #endif
20005
20006 #ifndef _UINT8_T
20007 #define _UINT8_T
20008 #ifndef __uint8_t_defined
20009 #define __uint8_t_defined
20010 #ifndef uint8_t
20011 typedef u_int8_t uint8_t;
20012 #endif
20013 #endif
20014 #endif
20015
20016 #ifndef _UINT16_T
20017 #define _UINT16_T
20018 #ifndef __uint16_t_defined
20019 #define __uint16_t_defined
20020 #ifndef uint16_t
20021 typedef u_int16_t uint16_t;
20022 #endif
20023 #endif
20024 #endif
20025
20026 #ifndef _UINT32_T
20027 #define _UINT32_T
20028 #ifndef __uint32_t_defined
20029 #define __uint32_t_defined
20030 #ifndef uint32_t
20031 typedef u_int32_t uint32_t;
20032 #endif
20033 #endif
20034 #endif
20035EOF
20036else
20037 sed 's/^ *//' >> tmp-stdint.h <<EOF
20038
20039 /* Some systems have guard macros to prevent redefinitions, define them. */
20040 #ifndef _INT8_T
20041 #define _INT8_T
20042 #endif
20043 #ifndef _INT16_T
20044 #define _INT16_T
20045 #endif
20046 #ifndef _INT32_T
20047 #define _INT32_T
20048 #endif
20049 #ifndef _UINT8_T
20050 #define _UINT8_T
20051 #endif
20052 #ifndef _UINT16_T
20053 #define _UINT16_T
20054 #endif
20055 #ifndef _UINT32_T
20056 #define _UINT32_T
20057 #endif
20058EOF
20059fi
20060
20061# ------------- done basic int types, emit int64_t types ------------
20062if test "$ac_cv_type_uint64_t" = yes; then
20063 sed 's/^ *//' >> tmp-stdint.h <<EOF
20064
20065 /* system headers have good uint64_t and int64_t */
20066 #ifndef _INT64_T
20067 #define _INT64_T
20068 #endif
20069 #ifndef _UINT64_T
20070 #define _UINT64_T
20071 #endif
20072EOF
20073elif test "$ac_cv_type_u_int64_t" = yes; then
20074 sed 's/^ *//' >> tmp-stdint.h <<EOF
20075
20076 /* system headers have an u_int64_t (and int64_t) */
20077 #ifndef _INT64_T
20078 #define _INT64_T
20079 #endif
20080 #ifndef _UINT64_T
20081 #define _UINT64_T
20082 #ifndef __uint64_t_defined
20083 #define __uint64_t_defined
20084 #ifndef uint64_t
20085 typedef u_int64_t uint64_t;
20086 #endif
20087 #endif
20088 #endif
20089EOF
20090elif test -n "$acx_cv_type_int64_t"; then
20091 sed 's/^ *//' >> tmp-stdint.h <<EOF
20092
20093 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20094 #ifndef _INT64_T
20095 #define _INT64_T
20096 #ifndef int64_t
20097 typedef $acx_cv_type_int64_t int64_t;
20098 #endif
20099 #endif
20100 #ifndef _UINT64_T
20101 #define _UINT64_T
20102 #ifndef __uint64_t_defined
20103 #define __uint64_t_defined
20104 #ifndef uint64_t
20105 typedef unsigned $acx_cv_type_int64_t uint64_t;
20106 #endif
20107 #endif
20108 #endif
20109EOF
20110else
20111 sed 's/^ *//' >> tmp-stdint.h <<EOF
20112
20113 /* some common heuristics for int64_t, using compiler-specific tests */
20114 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20115 #ifndef _INT64_T
20116 #define _INT64_T
20117 #ifndef __int64_t_defined
20118 #ifndef int64_t
20119 typedef long long int64_t;
20120 #endif
20121 #endif
20122 #endif
20123 #ifndef _UINT64_T
20124 #define _UINT64_T
20125 #ifndef uint64_t
20126 typedef unsigned long long uint64_t;
20127 #endif
20128 #endif
20129
20130 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20131 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20132 does not implement __extension__. But that compiler doesn't define
20133 __GNUC_MINOR__. */
20134 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20135 # define __extension__
20136 # endif
20137
20138 # ifndef _INT64_T
20139 # define _INT64_T
20140 # ifndef int64_t
20141 __extension__ typedef long long int64_t;
20142 # endif
20143 # endif
20144 # ifndef _UINT64_T
20145 # define _UINT64_T
20146 # ifndef uint64_t
20147 __extension__ typedef unsigned long long uint64_t;
20148 # endif
20149 # endif
20150
20151 #elif !defined __STRICT_ANSI__
20152 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20153
20154 # ifndef _INT64_T
20155 # define _INT64_T
20156 # ifndef int64_t
20157 typedef __int64 int64_t;
20158 # endif
20159 # endif
20160 # ifndef _UINT64_T
20161 # define _UINT64_T
20162 # ifndef uint64_t
20163 typedef unsigned __int64 uint64_t;
20164 # endif
20165 # endif
20166 # endif /* compiler */
20167
20168 #endif /* ANSI version */
20169EOF
20170fi
20171
20172# ------------- done int64_t types, emit intptr types ------------
20173if test "$ac_cv_type_uintptr_t" != yes; then
20174 sed 's/^ *//' >> tmp-stdint.h <<EOF
20175
20176 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20177 #ifndef __uintptr_t_defined
20178 #ifndef uintptr_t
20179 typedef u$acx_cv_type_intptr_t uintptr_t;
20180 #endif
20181 #endif
20182 #ifndef __intptr_t_defined
20183 #ifndef intptr_t
20184 typedef $acx_cv_type_intptr_t intptr_t;
20185 #endif
20186 #endif
20187EOF
20188fi
20189
20190# ------------- done intptr types, emit int_least types ------------
20191if test "$ac_cv_type_int_least32_t" != yes; then
20192 sed 's/^ *//' >> tmp-stdint.h <<EOF
20193
20194 /* Define int_least types */
20195 typedef int8_t int_least8_t;
20196 typedef int16_t int_least16_t;
20197 typedef int32_t int_least32_t;
20198 #ifdef _INT64_T
20199 typedef int64_t int_least64_t;
20200 #endif
20201
20202 typedef uint8_t uint_least8_t;
20203 typedef uint16_t uint_least16_t;
20204 typedef uint32_t uint_least32_t;
20205 #ifdef _UINT64_T
20206 typedef uint64_t uint_least64_t;
20207 #endif
20208EOF
20209fi
20210
20211# ------------- done intptr types, emit int_fast types ------------
20212if test "$ac_cv_type_int_fast32_t" != yes; then
20213 sed 's/^ *//' >> tmp-stdint.h <<EOF
20214
20215 /* Define int_fast types. short is often slow */
20216 typedef int8_t int_fast8_t;
20217 typedef int int_fast16_t;
20218 typedef int32_t int_fast32_t;
20219 #ifdef _INT64_T
20220 typedef int64_t int_fast64_t;
20221 #endif
20222
20223 typedef uint8_t uint_fast8_t;
20224 typedef unsigned int uint_fast16_t;
20225 typedef uint32_t uint_fast32_t;
20226 #ifdef _UINT64_T
20227 typedef uint64_t uint_fast64_t;
20228 #endif
20229EOF
20230fi
20231
20232if test "$ac_cv_type_uintmax_t" != yes; then
20233 sed 's/^ *//' >> tmp-stdint.h <<EOF
20234
20235 /* Define intmax based on what we found */
20236 #ifndef intmax_t
20237 #ifdef _INT64_T
20238 typedef int64_t intmax_t;
20239 #else
20240 typedef long intmax_t;
20241 #endif
20242 #endif
20243 #ifndef uintmax_t
20244 #ifdef _UINT64_T
20245 typedef uint64_t uintmax_t;
20246 #else
20247 typedef unsigned long uintmax_t;
20248 #endif
20249 #endif
20250EOF
20251fi
20252
20253sed 's/^ *//' >> tmp-stdint.h <<EOF
20254
20255 #endif /* GCC_GENERATED_STDINT_H */
20256EOF
20257
20258if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20259 rm -f tmp-stdint.h
20260else
20261 mv -f tmp-stdint.h gstdint.h
20262fi
20263
f35db108
WM
20264 ;;
20265 "interception/Makefile":F) cat > vpsed$$ << \_EOF
20266s!`test -f '$<' || echo '$(srcdir)/'`!!
20267_EOF
20268 sed -f vpsed$$ $ac_file > tmp$$
20269 mv tmp$$ $ac_file
20270 rm vpsed$$
20271 echo 'MULTISUBDIR =' >> $ac_file
f64bcb29
L
20272 ml_norecursion=yes
20273 . ${multi_basedir}/config-ml.in
20274 { ml_norecursion=; unset ml_norecursion;}
f35db108
WM
20275 ;;
20276 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
20277s!`test -f '$<' || echo '$(srcdir)/'`!!
c915a581
JJ
20278_EOF
20279 sed -f vpsed$$ $ac_file > tmp$$
20280 mv tmp$$ $ac_file
20281 rm vpsed$$
20282 echo 'MULTISUBDIR =' >> $ac_file
20283 ml_norecursion=yes
20284 . ${multi_basedir}/config-ml.in
20285 { ml_norecursion=; unset ml_norecursion;}
20286 ;;
20287 "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
20288s!`test -f '$<' || echo '$(srcdir)/'`!!
ef1b3fda
KS
20289_EOF
20290 sed -f vpsed$$ $ac_file > tmp$$
20291 mv tmp$$ $ac_file
20292 rm vpsed$$
20293 echo 'MULTISUBDIR =' >> $ac_file
20294 ml_norecursion=yes
20295 . ${multi_basedir}/config-ml.in
20296 { ml_norecursion=; unset ml_norecursion;}
20297 ;;
20298 "lsan/Makefile":F) cat > vpsed$$ << \_EOF
20299s!`test -f '$<' || echo '$(srcdir)/'`!!
f35db108
WM
20300_EOF
20301 sed -f vpsed$$ $ac_file > tmp$$
20302 mv tmp$$ $ac_file
20303 rm vpsed$$
20304 echo 'MULTISUBDIR =' >> $ac_file
f64bcb29
L
20305 ml_norecursion=yes
20306 . ${multi_basedir}/config-ml.in
20307 { ml_norecursion=; unset ml_norecursion;}
f35db108
WM
20308 ;;
20309 "asan/Makefile":F) cat > vpsed$$ << \_EOF
20310s!`test -f '$<' || echo '$(srcdir)/'`!!
edb07cb9
MM
20311_EOF
20312 sed -f vpsed$$ $ac_file > tmp$$
20313 mv tmp$$ $ac_file
20314 rm vpsed$$
20315 echo 'MULTISUBDIR =' >> $ac_file
20316 ml_norecursion=yes
20317 . ${multi_basedir}/config-ml.in
20318 { ml_norecursion=; unset ml_norecursion;}
20319 ;;
8a769f81 20320 "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
edb07cb9 20321s!`test -f '$<' || echo '$(srcdir)/'`!!
de5a5fa1
MP
20322_EOF
20323 sed -f vpsed$$ $ac_file > tmp$$
20324 mv tmp$$ $ac_file
20325 rm vpsed$$
20326 echo 'MULTISUBDIR =' >> $ac_file
20327 ml_norecursion=yes
20328 . ${multi_basedir}/config-ml.in
20329 { ml_norecursion=; unset ml_norecursion;}
20330 ;;
8a769f81 20331 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
de5a5fa1 20332s!`test -f '$<' || echo '$(srcdir)/'`!!
f35db108 20333_EOF
8a769f81
MM
20334 sed -f vpsed$$ $ac_file > tmp$$
20335 mv tmp$$ $ac_file
20336 rm vpsed$$
20337 echo 'MULTISUBDIR =' >> $ac_file
20338 ml_norecursion=yes
20339 . ${multi_basedir}/config-ml.in
20340 { ml_norecursion=; unset ml_norecursion;}
f35db108 20341 ;;
8a769f81 20342 "hwasan/Makefile":F) cat > vpsed$$ << \_EOF
cd0be65c
WM
20343s!`test -f '$<' || echo '$(srcdir)/'`!!
20344_EOF
20345 sed -f vpsed$$ $ac_file > tmp$$
20346 mv tmp$$ $ac_file
20347 rm vpsed$$
20348 echo 'MULTISUBDIR =' >> $ac_file
20349 ml_norecursion=yes
20350 . ${multi_basedir}/config-ml.in
20351 { ml_norecursion=; unset ml_norecursion;}
20352 ;;
f35db108
WM
20353
20354 esac
20355done # for ac_tag
20356
20357
20358as_fn_exit 0
20359_ACEOF
20360ac_clean_files=$ac_clean_files_save
20361
20362test $ac_write_fail = 0 ||
22e05272 20363 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
f35db108
WM
20364
20365
20366# configure is writing to config.log, and then calls config.status.
20367# config.status does its own redirection, appending to config.log.
20368# Unfortunately, on DOS this fails, as config.log is still kept open
20369# by configure, so config.status won't be able to write to it; its
20370# output is simply discarded. So we exec the FD to /dev/null,
20371# effectively closing config.log, so it can be properly (re)opened and
20372# appended to by config.status. When coming back to configure, we
20373# need to make the FD available again.
20374if test "$no_create" != yes; then
20375 ac_cs_success=:
20376 ac_config_status_args=
20377 test "$silent" = yes &&
20378 ac_config_status_args="$ac_config_status_args --quiet"
20379 exec 5>/dev/null
20380 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20381 exec 5>>config.log
20382 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20383 # would make configure fail if this is the last instruction.
22e05272 20384 $ac_cs_success || as_fn_exit 1
f35db108
WM
20385fi
20386if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20388$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20389fi
20390