]> git.ipfire.org Git - thirdparty/gcc.git/blame - libbacktrace/configure
Regenerate `configure' scripts for `uclinuxfdpiceabi' libtool.m4 update
[thirdparty/gcc.git] / libbacktrace / configure
CommitLineData
eff02e4f
ILT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69 for package-unused version-unused.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
eff02e4f 7#
eff02e4f
ILT
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
22e05272 90as_myself=
eff02e4f
ILT
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
eff02e4f
ILT
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
eff02e4f
ILT
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
d4c059d5 199test \$(( 1 + 1 )) = 2 || exit 1
eff02e4f
ILT
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
d4c059d5 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
eff02e4f
ILT
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
eff02e4f
ILT
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
eff02e4f
ILT
364
365
366} # as_fn_mkdir_p
22e05272
JM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
eff02e4f
ILT
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
22e05272
JM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
eff02e4f
ILT
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 415# script with STATUS, using 1 if that was 0.
eff02e4f
ILT
416as_fn_error ()
417{
22e05272
JM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
eff02e4f 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
eff02e4f
ILT
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
22e05272
JM
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
eff02e4f
ILT
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 534 # In both cases, we have to default to `cp -pR'.
eff02e4f 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
eff02e4f
ILT
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
eff02e4f
ILT
541 fi
542else
22e05272 543 as_ln_s='cp -pR'
eff02e4f
ILT
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
22e05272
JM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
eff02e4f
ILT
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
22e05272
JM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
eff02e4f
ILT
569
570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
eff02e4f
ILT
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='package-unused'
589PACKAGE_TARNAME='libbacktrace'
590PACKAGE_VERSION='version-unused'
591PACKAGE_STRING='package-unused version-unused'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="backtrace.h"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636NATIVE_FALSE
637NATIVE_TRUE
9283471b
ILT
638HAVE_OBJCOPY_DEBUGLINK_FALSE
639HAVE_OBJCOPY_DEBUGLINK_TRUE
fddbc193 640READELF
9283471b 641OBJCOPY
8da872d9
ILT
642HAVE_COMPRESSED_DEBUG_FALSE
643HAVE_COMPRESSED_DEBUG_TRUE
644HAVE_ZLIB_FALSE
645HAVE_ZLIB_TRUE
d1609a23
ILT
646HAVE_PTHREAD_FALSE
647HAVE_PTHREAD_TRUE
648PTHREAD_CFLAGS
8398c1df 649CLOCK_GETTIME_LINK
eff02e4f
ILT
650BACKTRACE_USES_MALLOC
651ALLOC_FILE
652VIEW_FILE
e24afc10 653BACKTRACE_SUPPORTS_DATA
eff02e4f 654BACKTRACE_SUPPORTED
fddbc193
TV
655HAVE_ELF_FALSE
656HAVE_ELF_TRUE
eff02e4f
ILT
657FORMAT_FILE
658BACKTRACE_SUPPORTS_THREADS
659PIC_FLAG
660WARN_FLAGS
56195009 661EXTRA_FLAGS
eff02e4f 662BACKTRACE_FILE
eff02e4f
ILT
663OTOOL64
664OTOOL
665LIPO
666NMEDIT
667DSYMUTIL
668AR
669OBJDUMP
670LN_S
671NM
672ac_ct_DUMPBIN
673DUMPBIN
674LD
675FGREP
eff02e4f
ILT
676SED
677LIBTOOL
10f48858
TV
678HAVE_DWZ_FALSE
679HAVE_DWZ_TRUE
680DWZ
eff02e4f 681RANLIB
d4c059d5
ILT
682MAINT
683MAINTAINER_MODE_FALSE
684MAINTAINER_MODE_TRUE
22e05272
JM
685AM_BACKSLASH
686AM_DEFAULT_VERBOSITY
687AM_DEFAULT_V
688AM_V
eff02e4f
ILT
689am__untar
690am__tar
691AMTAR
692am__leading_dot
693SET_MAKE
694AWK
695mkdir_p
696MKDIR_P
697INSTALL_STRIP_PROGRAM
698STRIP
699install_sh
700MAKEINFO
701AUTOHEADER
702AUTOMAKE
703AUTOCONF
704ACLOCAL
705VERSION
706PACKAGE
707CYGPATH_W
708am__isrc
709INSTALL_DATA
710INSTALL_SCRIPT
711INSTALL_PROGRAM
712libtool_VERSION
d4c059d5
ILT
713EGREP
714GREP
715CPP
716OBJEXT
717EXEEXT
718ac_ct_CC
719CPPFLAGS
720LDFLAGS
721CFLAGS
722CC
eff02e4f
ILT
723target_os
724target_vendor
725target_cpu
726target
727host_os
728host_vendor
729host_cpu
730host
731build_os
732build_vendor
733build_cpu
734build
405a6b1c 735multi_basedir
eff02e4f
ILT
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755localstatedir
756sharedstatedir
757sysconfdir
758datadir
759datarootdir
760libexecdir
761sbindir
762bindir
763program_transform_name
764prefix
765exec_prefix
766PACKAGE_URL
767PACKAGE_BUGREPORT
768PACKAGE_STRING
769PACKAGE_VERSION
770PACKAGE_TARNAME
771PACKAGE_NAME
772PATH_SEPARATOR
773SHELL'
774ac_subst_files=''
775ac_user_opts='
776enable_option_checking
405a6b1c 777enable_multilib
22e05272 778enable_silent_rules
eff02e4f
ILT
779enable_maintainer_mode
780with_target_subdir
eff02e4f
ILT
781enable_shared
782enable_static
783with_pic
784enable_fast_install
785with_gnu_ld
786enable_libtool_lock
e91a2ddc 787enable_largefile
44685d37 788enable_cet
eff02e4f 789with_system_libunwind
459260ec 790enable_host_shared
eff02e4f
ILT
791'
792 ac_precious_vars='build_alias
793host_alias
794target_alias
d4c059d5
ILT
795CC
796CFLAGS
797LDFLAGS
798LIBS
799CPPFLAGS
9283471b
ILT
800CPP
801OBJCOPY'
eff02e4f
ILT
802
803
804# Initialize some variables set by options.
805ac_init_help=
806ac_init_version=false
807ac_unrecognized_opts=
808ac_unrecognized_sep=
809# The variables have the same names as the options, with
810# dashes changed to underlines.
811cache_file=/dev/null
812exec_prefix=NONE
813no_create=
814no_recursion=
815prefix=NONE
816program_prefix=NONE
817program_suffix=NONE
818program_transform_name=s,x,x,
819silent=
820site=
821srcdir=
822verbose=
823x_includes=NONE
824x_libraries=NONE
825
826# Installation directory options.
827# These are left unexpanded so users can "make install exec_prefix=/foo"
828# and all the variables that are supposed to be based on exec_prefix
829# by default will actually change.
830# Use braces instead of parens because sh, perl, etc. also accept them.
831# (The list follows the same order as the GNU Coding Standards.)
832bindir='${exec_prefix}/bin'
833sbindir='${exec_prefix}/sbin'
834libexecdir='${exec_prefix}/libexec'
835datarootdir='${prefix}/share'
836datadir='${datarootdir}'
837sysconfdir='${prefix}/etc'
838sharedstatedir='${prefix}/com'
839localstatedir='${prefix}/var'
840includedir='${prefix}/include'
841oldincludedir='/usr/include'
842docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843infodir='${datarootdir}/info'
844htmldir='${docdir}'
845dvidir='${docdir}'
846pdfdir='${docdir}'
847psdir='${docdir}'
848libdir='${exec_prefix}/lib'
849localedir='${datarootdir}/locale'
850mandir='${datarootdir}/man'
851
852ac_prev=
853ac_dashdash=
854for ac_option
855do
856 # If the previous option needs an argument, assign it.
857 if test -n "$ac_prev"; then
858 eval $ac_prev=\$ac_option
859 ac_prev=
860 continue
861 fi
862
863 case $ac_option in
22e05272
JM
864 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865 *=) ac_optarg= ;;
866 *) ac_optarg=yes ;;
eff02e4f
ILT
867 esac
868
869 # Accept the important Cygnus configure options, so we can diagnose typos.
870
871 case $ac_dashdash$ac_option in
872 --)
873 ac_dashdash=yes ;;
874
875 -bindir | --bindir | --bindi | --bind | --bin | --bi)
876 ac_prev=bindir ;;
877 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878 bindir=$ac_optarg ;;
879
880 -build | --build | --buil | --bui | --bu)
881 ac_prev=build_alias ;;
882 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883 build_alias=$ac_optarg ;;
884
885 -cache-file | --cache-file | --cache-fil | --cache-fi \
886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887 ac_prev=cache_file ;;
888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890 cache_file=$ac_optarg ;;
891
892 --config-cache | -C)
893 cache_file=config.cache ;;
894
895 -datadir | --datadir | --datadi | --datad)
896 ac_prev=datadir ;;
897 -datadir=* | --datadir=* | --datadi=* | --datad=*)
898 datadir=$ac_optarg ;;
899
900 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901 | --dataroo | --dataro | --datar)
902 ac_prev=datarootdir ;;
903 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905 datarootdir=$ac_optarg ;;
906
907 -disable-* | --disable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 911 as_fn_error $? "invalid feature name: $ac_useropt"
eff02e4f
ILT
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
915 *"
916"enable_$ac_useropt"
917"*) ;;
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
920 esac
921 eval enable_$ac_useropt=no ;;
922
923 -docdir | --docdir | --docdi | --doc | --do)
924 ac_prev=docdir ;;
925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926 docdir=$ac_optarg ;;
927
928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929 ac_prev=dvidir ;;
930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931 dvidir=$ac_optarg ;;
932
933 -enable-* | --enable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 937 as_fn_error $? "invalid feature name: $ac_useropt"
eff02e4f
ILT
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
941 *"
942"enable_$ac_useropt"
943"*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=\$ac_optarg ;;
948
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
957
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
961
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
968
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
973
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
979
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
986
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
991
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
996
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1003
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1008
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1015
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1020
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1024
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1028
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1032
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1041
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1046
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1053
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1060
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1077
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1082
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1087
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1091
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1097
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1108
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1113
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1118
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1125
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1130
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1133
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1136
1137 -with-* | --with-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1141 as_fn_error $? "invalid package name: $ac_useropt"
eff02e4f
ILT
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146"with_$ac_useropt"
1147"*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=\$ac_optarg ;;
1152
1153 -without-* | --without-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1157 as_fn_error $? "invalid package name: $ac_useropt"
eff02e4f
ILT
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1161 *"
1162"with_$ac_useropt"
1163"*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=no ;;
1168
1169 --x)
1170 # Obsolete; use --with-x.
1171 with_x=yes ;;
1172
1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174 | --x-incl | --x-inc | --x-in | --x-i)
1175 ac_prev=x_includes ;;
1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178 x_includes=$ac_optarg ;;
1179
1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182 ac_prev=x_libraries ;;
1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185 x_libraries=$ac_optarg ;;
1186
22e05272
JM
1187 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1188Try \`$0 --help' for more information"
eff02e4f
ILT
1189 ;;
1190
1191 *=*)
1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 case $ac_envvar in #(
1195 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1196 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
eff02e4f
ILT
1197 esac
1198 eval $ac_envvar=\$ac_optarg
1199 export $ac_envvar ;;
1200
1201 *)
1202 # FIXME: should be removed in autoconf 3.0.
1203 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1206 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
eff02e4f
ILT
1207 ;;
1208
1209 esac
1210done
1211
1212if test -n "$ac_prev"; then
1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1214 as_fn_error $? "missing argument to $ac_option"
eff02e4f
ILT
1215fi
1216
1217if test -n "$ac_unrecognized_opts"; then
1218 case $enable_option_checking in
1219 no) ;;
22e05272 1220 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
eff02e4f
ILT
1221 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222 esac
1223fi
1224
1225# Check all directory arguments for consistency.
1226for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227 datadir sysconfdir sharedstatedir localstatedir includedir \
1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229 libdir localedir mandir
1230do
1231 eval ac_val=\$$ac_var
1232 # Remove trailing slashes.
1233 case $ac_val in
1234 */ )
1235 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236 eval $ac_var=\$ac_val;;
1237 esac
1238 # Be sure to have absolute directory names.
1239 case $ac_val in
1240 [\\/$]* | ?:[\\/]* ) continue;;
1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242 esac
22e05272 1243 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
eff02e4f
ILT
1244done
1245
1246# There might be people who depend on the old broken behavior: `$host'
1247# used to hold the argument of --host etc.
1248# FIXME: To remove some day.
1249build=$build_alias
1250host=$host_alias
1251target=$target_alias
1252
1253# FIXME: To remove some day.
1254if test "x$host_alias" != x; then
1255 if test "x$build_alias" = x; then
1256 cross_compiling=maybe
eff02e4f
ILT
1257 elif test "x$build_alias" != "x$host_alias"; then
1258 cross_compiling=yes
1259 fi
1260fi
1261
1262ac_tool_prefix=
1263test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264
1265test "$silent" = yes && exec 6>/dev/null
1266
1267
1268ac_pwd=`pwd` && test -n "$ac_pwd" &&
1269ac_ls_di=`ls -di .` &&
1270ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1271 as_fn_error $? "working directory cannot be determined"
eff02e4f 1272test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1273 as_fn_error $? "pwd does not report name of working directory"
eff02e4f
ILT
1274
1275
1276# Find the source files, if location was not specified.
1277if test -z "$srcdir"; then
1278 ac_srcdir_defaulted=yes
1279 # Try the directory containing this script, then the parent directory.
1280 ac_confdir=`$as_dirname -- "$as_myself" ||
1281$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282 X"$as_myself" : 'X\(//\)[^/]' \| \
1283 X"$as_myself" : 'X\(//\)$' \| \
1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285$as_echo X"$as_myself" |
1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)[^/].*/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\/\)$/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\).*/{
1299 s//\1/
1300 q
1301 }
1302 s/.*/./; q'`
1303 srcdir=$ac_confdir
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 srcdir=..
1306 fi
1307else
1308 ac_srcdir_defaulted=no
1309fi
1310if test ! -r "$srcdir/$ac_unique_file"; then
1311 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1312 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
eff02e4f
ILT
1313fi
1314ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1315ac_abs_confdir=`(
22e05272 1316 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
eff02e4f
ILT
1317 pwd)`
1318# When building in place, set srcdir=.
1319if test "$ac_abs_confdir" = "$ac_pwd"; then
1320 srcdir=.
1321fi
1322# Remove unnecessary trailing slashes from srcdir.
1323# Double slashes in file names in object file debugging info
1324# mess up M-x gdb in Emacs.
1325case $srcdir in
1326*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327esac
1328for ac_var in $ac_precious_vars; do
1329 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_env_${ac_var}_value=\$${ac_var}
1331 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333done
1334
1335#
1336# Report the --help message.
1337#
1338if test "$ac_init_help" = "long"; then
1339 # Omit some internal or obsolete options to make the list less imposing.
1340 # This message is too long to be a string in the A/UX 3.1 sh.
1341 cat <<_ACEOF
1342\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1343
1344Usage: $0 [OPTION]... [VAR=VALUE]...
1345
1346To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347VAR=VALUE. See below for descriptions of some of the useful variables.
1348
1349Defaults for the options are specified in brackets.
1350
1351Configuration:
1352 -h, --help display this help and exit
1353 --help=short display options specific to this package
1354 --help=recursive display the short help of all the included packages
1355 -V, --version display version information and exit
22e05272 1356 -q, --quiet, --silent do not print \`checking ...' messages
eff02e4f
ILT
1357 --cache-file=FILE cache test results in FILE [disabled]
1358 -C, --config-cache alias for \`--cache-file=config.cache'
1359 -n, --no-create do not create output files
1360 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1361
1362Installation directories:
1363 --prefix=PREFIX install architecture-independent files in PREFIX
1364 [$ac_default_prefix]
1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1366 [PREFIX]
1367
1368By default, \`make install' will install all the files in
1369\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1370an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1371for instance \`--prefix=\$HOME'.
1372
1373For better control, use the options below.
1374
1375Fine tuning of the installation directories:
1376 --bindir=DIR user executables [EPREFIX/bin]
1377 --sbindir=DIR system admin executables [EPREFIX/sbin]
1378 --libexecdir=DIR program executables [EPREFIX/libexec]
1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1382 --libdir=DIR object code libraries [EPREFIX/lib]
1383 --includedir=DIR C header files [PREFIX/include]
1384 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1385 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1386 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1387 --infodir=DIR info documentation [DATAROOTDIR/info]
1388 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1389 --mandir=DIR man documentation [DATAROOTDIR/man]
1390 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1391 --htmldir=DIR html documentation [DOCDIR]
1392 --dvidir=DIR dvi documentation [DOCDIR]
1393 --pdfdir=DIR pdf documentation [DOCDIR]
1394 --psdir=DIR ps documentation [DOCDIR]
1395_ACEOF
1396
1397 cat <<\_ACEOF
1398
1399Program names:
1400 --program-prefix=PREFIX prepend PREFIX to installed program names
1401 --program-suffix=SUFFIX append SUFFIX to installed program names
1402 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1403
1404System types:
1405 --build=BUILD configure for building on BUILD [guessed]
1406 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1407 --target=TARGET configure for building compilers for TARGET [HOST]
1408_ACEOF
1409fi
1410
1411if test -n "$ac_init_help"; then
1412 case $ac_init_help in
1413 short | recursive ) echo "Configuration of package-unused version-unused:";;
1414 esac
1415 cat <<\_ACEOF
1416
1417Optional Features:
1418 --disable-option-checking ignore unrecognized --enable/--with options
1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
405a6b1c 1421 --enable-multilib build many library versions (default)
22e05272
JM
1422 --enable-silent-rules less verbose build output (undo: "make V=1")
1423 --disable-silent-rules verbose build output (undo: "make V=0")
1424 --enable-maintainer-mode
1425 enable make rules and dependencies not useful (and
1426 sometimes confusing) to the casual installer
7e5c7547 1427 --enable-shared[=PKGS] build shared libraries [default=yes]
eff02e4f
ILT
1428 --enable-static[=PKGS] build static libraries [default=yes]
1429 --enable-fast-install[=PKGS]
1430 optimize for fast installation [default=yes]
1431 --disable-libtool-lock avoid locking (might break parallel builds)
e91a2ddc 1432 --disable-largefile omit support for large files
a0e1df88 1433 --enable-cet enable Intel CET in target libraries [default=no]
459260ec 1434 --enable-host-shared build host code as shared libraries
eff02e4f
ILT
1435
1436Optional Packages:
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1440 --with-pic try to use only PIC/non-PIC objects [default=use
1441 both]
1442 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1443 --with-system-libunwind use installed libunwind
1444
1445Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
eff02e4f
ILT
1452 you have headers in a nonstandard directory <include dir>
1453 CPP C preprocessor
9283471b 1454 OBJCOPY location of objcopy
eff02e4f
ILT
1455
1456Use these variables to override the choices made by `configure' or to help
1457it to find libraries and programs with nonstandard names/locations.
1458
1459Report bugs to the package provider.
1460_ACEOF
1461ac_status=$?
1462fi
1463
1464if test "$ac_init_help" = "recursive"; then
1465 # If there are subdirs, report their specific --help.
1466 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467 test -d "$ac_dir" ||
1468 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469 continue
1470 ac_builddir=.
1471
1472case "$ac_dir" in
1473.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474*)
1475 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1476 # A ".." for each directory in $ac_dir_suffix.
1477 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478 case $ac_top_builddir_sub in
1479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481 esac ;;
1482esac
1483ac_abs_top_builddir=$ac_pwd
1484ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485# for backward compatibility:
1486ac_top_builddir=$ac_top_build_prefix
1487
1488case $srcdir in
1489 .) # We are building in place.
1490 ac_srcdir=.
1491 ac_top_srcdir=$ac_top_builddir_sub
1492 ac_abs_top_srcdir=$ac_pwd ;;
1493 [\\/]* | ?:[\\/]* ) # Absolute name.
1494 ac_srcdir=$srcdir$ac_dir_suffix;
1495 ac_top_srcdir=$srcdir
1496 ac_abs_top_srcdir=$srcdir ;;
1497 *) # Relative name.
1498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499 ac_top_srcdir=$ac_top_build_prefix$srcdir
1500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501esac
1502ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503
1504 cd "$ac_dir" || { ac_status=$?; continue; }
1505 # Check for guested configure.
1506 if test -f "$ac_srcdir/configure.gnu"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509 elif test -f "$ac_srcdir/configure"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure" --help=recursive
1512 else
1513 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514 fi || ac_status=$?
1515 cd "$ac_pwd" || { ac_status=$?; break; }
1516 done
1517fi
1518
1519test -n "$ac_init_help" && exit $ac_status
1520if $ac_init_version; then
1521 cat <<\_ACEOF
1522package-unused configure version-unused
22e05272 1523generated by GNU Autoconf 2.69
eff02e4f 1524
22e05272 1525Copyright (C) 2012 Free Software Foundation, Inc.
eff02e4f
ILT
1526This configure script is free software; the Free Software Foundation
1527gives unlimited permission to copy, distribute and modify it.
1528_ACEOF
1529 exit
1530fi
1531
1532## ------------------------ ##
1533## Autoconf initialization. ##
1534## ------------------------ ##
1535
1536# ac_fn_c_try_compile LINENO
1537# --------------------------
1538# Try to compile conftest.$ac_ext, and return whether this succeeded.
1539ac_fn_c_try_compile ()
1540{
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 rm -f conftest.$ac_objext
1543 if { { ac_try="$ac_compile"
1544case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547esac
1548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549$as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_compile") 2>conftest.err
1551 ac_status=$?
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1556 fi
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && {
1559 test -z "$ac_c_werror_flag" ||
1560 test ! -s conftest.err
1561 } && test -s conftest.$ac_objext; then :
1562 ac_retval=0
1563else
1564 $as_echo "$as_me: failed program was:" >&5
1565sed 's/^/| /' conftest.$ac_ext >&5
1566
1567 ac_retval=1
1568fi
22e05272
JM
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570 as_fn_set_status $ac_retval
eff02e4f
ILT
1571
1572} # ac_fn_c_try_compile
1573
d4c059d5
ILT
1574# ac_fn_c_try_cpp LINENO
1575# ----------------------
1576# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1577ac_fn_c_try_cpp ()
eff02e4f
ILT
1578{
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d4c059d5 1580 if { { ac_try="$ac_cpp conftest.$ac_ext"
eff02e4f
ILT
1581case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
d4c059d5 1587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
eff02e4f
ILT
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1595 test $ac_status = 0; } > conftest.i && {
d4c059d5 1596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
eff02e4f 1597 test ! -s conftest.err
eff02e4f
ILT
1598 }; then :
1599 ac_retval=0
1600else
1601 $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
d4c059d5 1604 ac_retval=1
eff02e4f 1605fi
22e05272
JM
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
eff02e4f 1608
d4c059d5 1609} # ac_fn_c_try_cpp
eff02e4f 1610
d4c059d5 1611# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
eff02e4f 1612# -------------------------------------------------------
d4c059d5
ILT
1613# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1614# the include files in INCLUDES and setting the cache variable VAR
1615# accordingly.
1616ac_fn_c_check_header_mongrel ()
eff02e4f
ILT
1617{
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1619 if eval \${$3+:} false; then :
eff02e4f
ILT
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1621$as_echo_n "checking for $2... " >&6; }
22e05272 1622if eval \${$3+:} false; then :
eff02e4f 1623 $as_echo_n "(cached) " >&6
d4c059d5
ILT
1624fi
1625eval ac_res=\$$3
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1627$as_echo "$ac_res" >&6; }
eff02e4f 1628else
d4c059d5
ILT
1629 # Is the header compilable?
1630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1631$as_echo_n "checking $2 usability... " >&6; }
1632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eff02e4f
ILT
1633/* end confdefs.h. */
1634$4
1635#include <$2>
1636_ACEOF
1637if ac_fn_c_try_compile "$LINENO"; then :
d4c059d5 1638 ac_header_compiler=yes
eff02e4f 1639else
d4c059d5 1640 ac_header_compiler=no
eff02e4f
ILT
1641fi
1642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d4c059d5
ILT
1643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1644$as_echo "$ac_header_compiler" >&6; }
eff02e4f 1645
d4c059d5
ILT
1646# Is the header present?
1647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1648$as_echo_n "checking $2 presence... " >&6; }
1649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650/* end confdefs.h. */
1651#include <$2>
1652_ACEOF
1653if ac_fn_c_try_cpp "$LINENO"; then :
1654 ac_header_preproc=yes
1655else
1656 ac_header_preproc=no
1657fi
22e05272 1658rm -f conftest.err conftest.i conftest.$ac_ext
d4c059d5
ILT
1659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1660$as_echo "$ac_header_preproc" >&6; }
eff02e4f 1661
d4c059d5
ILT
1662# So? What about this header?
1663case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1664 yes:no: )
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1666$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1668$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1669 ;;
1670 no:yes:* )
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1672$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1674$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1676$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1678$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1680$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1681 ;;
eff02e4f 1682esac
d4c059d5
ILT
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684$as_echo_n "checking for $2... " >&6; }
22e05272 1685if eval \${$3+:} false; then :
d4c059d5 1686 $as_echo_n "(cached) " >&6
eff02e4f 1687else
d4c059d5
ILT
1688 eval "$3=\$ac_header_compiler"
1689fi
1690eval ac_res=\$$3
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692$as_echo "$ac_res" >&6; }
eff02e4f 1693fi
22e05272 1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
eff02e4f 1695
d4c059d5 1696} # ac_fn_c_check_header_mongrel
eff02e4f
ILT
1697
1698# ac_fn_c_try_run LINENO
1699# ----------------------
1700# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1701# that executables *can* be run.
1702ac_fn_c_try_run ()
1703{
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if { { ac_try="$ac_link"
1706case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_link") 2>&5
1713 ac_status=$?
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1716 { { case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719esac
1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721$as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_try") 2>&5
1723 ac_status=$?
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; }; }; then :
1726 ac_retval=0
1727else
1728 $as_echo "$as_me: program exited with status $ac_status" >&5
1729 $as_echo "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
1731
1732 ac_retval=$ac_status
1733fi
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
eff02e4f
ILT
1737
1738} # ac_fn_c_try_run
1739
d4c059d5
ILT
1740# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1741# -------------------------------------------------------
1742# Tests whether HEADER exists and can be compiled using the include files in
1743# INCLUDES, setting the cache variable VAR accordingly.
1744ac_fn_c_check_header_compile ()
1745{
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748$as_echo_n "checking for $2... " >&6; }
22e05272 1749if eval \${$3+:} false; then :
d4c059d5
ILT
1750 $as_echo_n "(cached) " >&6
1751else
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753/* end confdefs.h. */
1754$4
1755#include <$2>
1756_ACEOF
1757if ac_fn_c_try_compile "$LINENO"; then :
1758 eval "$3=yes"
1759else
1760 eval "$3=no"
1761fi
1762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1763fi
1764eval ac_res=\$$3
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766$as_echo "$ac_res" >&6; }
22e05272 1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d4c059d5
ILT
1768
1769} # ac_fn_c_check_header_compile
1770
1771# ac_fn_c_try_link LINENO
1772# -----------------------
1773# Try to link conftest.$ac_ext, and return whether this succeeded.
1774ac_fn_c_try_link ()
1775{
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext conftest$ac_exeext
1778 if { { ac_try="$ac_link"
1779case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782esac
1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784$as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>conftest.err
1786 ac_status=$?
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1791 fi
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest$ac_exeext && {
1797 test "$cross_compiling" = yes ||
22e05272 1798 test -x conftest$ac_exeext
d4c059d5
ILT
1799 }; then :
1800 ac_retval=0
1801else
1802 $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=1
1806fi
1807 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1808 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1809 # interfere with the next link command; also delete a directory that is
1810 # left behind by Apple's compiler. We do this before executing the actions.
1811 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status $ac_retval
d4c059d5
ILT
1814
1815} # ac_fn_c_try_link
1816
eff02e4f
ILT
1817# ac_fn_c_check_func LINENO FUNC VAR
1818# ----------------------------------
1819# Tests whether FUNC exists, setting the cache variable VAR accordingly
1820ac_fn_c_check_func ()
1821{
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824$as_echo_n "checking for $2... " >&6; }
22e05272 1825if eval \${$3+:} false; then :
eff02e4f
ILT
1826 $as_echo_n "(cached) " >&6
1827else
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h. */
1830/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1832#define $2 innocuous_$2
1833
1834/* System header to define __stub macros and hopefully few prototypes,
1835 which can conflict with char $2 (); below.
1836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1837 <limits.h> exists even on freestanding compilers. */
1838
1839#ifdef __STDC__
1840# include <limits.h>
1841#else
1842# include <assert.h>
1843#endif
1844
1845#undef $2
1846
1847/* Override any GCC internal prototype to avoid an error.
1848 Use char because int might match the return type of a GCC
1849 builtin and then its argument prototype would still apply. */
1850#ifdef __cplusplus
1851extern "C"
1852#endif
1853char $2 ();
1854/* The GNU C library defines this for functions which it implements
1855 to always fail with ENOSYS. Some functions are actually named
1856 something starting with __ and the normal name is an alias. */
1857#if defined __stub_$2 || defined __stub___$2
1858choke me
1859#endif
1860
1861int
1862main ()
1863{
1864return $2 ();
1865 ;
1866 return 0;
1867}
1868_ACEOF
1869if ac_fn_c_try_link "$LINENO"; then :
1870 eval "$3=yes"
1871else
1872 eval "$3=no"
1873fi
1874rm -f core conftest.err conftest.$ac_objext \
1875 conftest$ac_exeext conftest.$ac_ext
1876fi
1877eval ac_res=\$$3
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879$as_echo "$ac_res" >&6; }
22e05272 1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
eff02e4f
ILT
1881
1882} # ac_fn_c_check_func
1883
76850556
RO
1884# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1885# -------------------------------------------
1886# Tests whether TYPE exists after having included INCLUDES, setting cache
1887# variable VAR accordingly.
1888ac_fn_c_check_type ()
1889{
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892$as_echo_n "checking for $2... " >&6; }
22e05272 1893if eval \${$3+:} false; then :
76850556
RO
1894 $as_echo_n "(cached) " >&6
1895else
1896 eval "$3=no"
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898/* end confdefs.h. */
1899$4
1900int
1901main ()
1902{
1903if (sizeof ($2))
1904 return 0;
1905 ;
1906 return 0;
1907}
1908_ACEOF
1909if ac_fn_c_try_compile "$LINENO"; then :
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911/* end confdefs.h. */
1912$4
1913int
1914main ()
1915{
1916if (sizeof (($2)))
1917 return 0;
1918 ;
1919 return 0;
1920}
1921_ACEOF
1922if ac_fn_c_try_compile "$LINENO"; then :
1923
1924else
1925 eval "$3=yes"
1926fi
1927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928fi
1929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930fi
1931eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; }
22e05272 1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
76850556
RO
1935
1936} # ac_fn_c_check_type
1937
1938# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1939# --------------------------------------------
1940# Tries to find the compile-time value of EXPR in a program that includes
1941# INCLUDES, setting VAR accordingly. Returns whether the value could be
1942# computed
1943ac_fn_c_compute_int ()
1944{
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if test "$cross_compiling" = yes; then
1947 # Depending upon the size, compute the lo and hi bounds.
1948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h. */
1950$4
1951int
1952main ()
1953{
1954static int test_array [1 - 2 * !(($2) >= 0)];
22e05272
JM
1955test_array [0] = 0;
1956return test_array [0];
76850556
RO
1957
1958 ;
1959 return 0;
1960}
1961_ACEOF
1962if ac_fn_c_try_compile "$LINENO"; then :
1963 ac_lo=0 ac_mid=0
1964 while :; do
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966/* end confdefs.h. */
1967$4
1968int
1969main ()
1970{
1971static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
1972test_array [0] = 0;
1973return test_array [0];
76850556
RO
1974
1975 ;
1976 return 0;
1977}
1978_ACEOF
1979if ac_fn_c_try_compile "$LINENO"; then :
1980 ac_hi=$ac_mid; break
1981else
1982 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1983 if test $ac_lo -le $ac_mid; then
1984 ac_lo= ac_hi=
1985 break
1986 fi
1987 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1988fi
1989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 done
1991else
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993/* end confdefs.h. */
1994$4
1995int
1996main ()
1997{
1998static int test_array [1 - 2 * !(($2) < 0)];
22e05272
JM
1999test_array [0] = 0;
2000return test_array [0];
76850556
RO
2001
2002 ;
2003 return 0;
2004}
2005_ACEOF
2006if ac_fn_c_try_compile "$LINENO"; then :
2007 ac_hi=-1 ac_mid=-1
2008 while :; do
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010/* end confdefs.h. */
2011$4
2012int
2013main ()
2014{
2015static int test_array [1 - 2 * !(($2) >= $ac_mid)];
22e05272
JM
2016test_array [0] = 0;
2017return test_array [0];
76850556
RO
2018
2019 ;
2020 return 0;
2021}
2022_ACEOF
2023if ac_fn_c_try_compile "$LINENO"; then :
2024 ac_lo=$ac_mid; break
2025else
2026 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2027 if test $ac_mid -le $ac_hi; then
2028 ac_lo= ac_hi=
2029 break
2030 fi
2031 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2032fi
2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 done
2035else
2036 ac_lo= ac_hi=
2037fi
2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039fi
2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041# Binary search between lo and hi bounds.
2042while test "x$ac_lo" != "x$ac_hi"; do
2043 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045/* end confdefs.h. */
2046$4
2047int
2048main ()
2049{
2050static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2051test_array [0] = 0;
2052return test_array [0];
76850556
RO
2053
2054 ;
2055 return 0;
2056}
2057_ACEOF
2058if ac_fn_c_try_compile "$LINENO"; then :
2059 ac_hi=$ac_mid
2060else
2061 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2062fi
2063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064done
2065case $ac_lo in #((
2066?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2067'') ac_retval=1 ;;
2068esac
2069 else
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h. */
2072$4
2073static long int longval () { return $2; }
2074static unsigned long int ulongval () { return $2; }
2075#include <stdio.h>
2076#include <stdlib.h>
2077int
2078main ()
2079{
2080
2081 FILE *f = fopen ("conftest.val", "w");
2082 if (! f)
2083 return 1;
2084 if (($2) < 0)
2085 {
2086 long int i = longval ();
2087 if (i != ($2))
2088 return 1;
2089 fprintf (f, "%ld", i);
2090 }
2091 else
2092 {
2093 unsigned long int i = ulongval ();
2094 if (i != ($2))
2095 return 1;
2096 fprintf (f, "%lu", i);
2097 }
2098 /* Do not output a trailing newline, as this causes \r\n confusion
2099 on some platforms. */
2100 return ferror (f) || fclose (f) != 0;
2101
2102 ;
2103 return 0;
2104}
2105_ACEOF
2106if ac_fn_c_try_run "$LINENO"; then :
2107 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2108else
2109 ac_retval=1
2110fi
2111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2112 conftest.$ac_objext conftest.beam conftest.$ac_ext
2113rm -f conftest.val
2114
2115 fi
22e05272
JM
2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117 as_fn_set_status $ac_retval
76850556
RO
2118
2119} # ac_fn_c_compute_int
2120
22e05272
JM
2121# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2122# ---------------------------------------------
2123# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2124# accordingly.
772a71a9
ILT
2125ac_fn_c_check_decl ()
2126{
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 as_decl_name=`echo $2|sed 's/ *(.*//'`
2129 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2131$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
22e05272 2132if eval \${$3+:} false; then :
772a71a9
ILT
2133 $as_echo_n "(cached) " >&6
2134else
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h. */
2137$4
2138int
2139main ()
2140{
2141#ifndef $as_decl_name
2142#ifdef __cplusplus
2143 (void) $as_decl_use;
2144#else
2145 (void) $as_decl_name;
2146#endif
2147#endif
2148
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153if ac_fn_c_try_compile "$LINENO"; then :
2154 eval "$3=yes"
2155else
2156 eval "$3=no"
2157fi
2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159fi
2160eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162$as_echo "$ac_res" >&6; }
22e05272 2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
772a71a9
ILT
2164
2165} # ac_fn_c_check_decl
eff02e4f
ILT
2166cat >config.log <<_ACEOF
2167This file contains any messages produced by compilers while
2168running configure, to aid debugging if configure makes a mistake.
2169
2170It was created by package-unused $as_me version-unused, which was
22e05272 2171generated by GNU Autoconf 2.69. Invocation command line was
eff02e4f
ILT
2172
2173 $ $0 $@
2174
2175_ACEOF
2176exec 5>>config.log
2177{
2178cat <<_ASUNAME
2179## --------- ##
2180## Platform. ##
2181## --------- ##
2182
2183hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2184uname -m = `(uname -m) 2>/dev/null || echo unknown`
2185uname -r = `(uname -r) 2>/dev/null || echo unknown`
2186uname -s = `(uname -s) 2>/dev/null || echo unknown`
2187uname -v = `(uname -v) 2>/dev/null || echo unknown`
2188
2189/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2190/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2191
2192/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2193/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2194/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2195/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2196/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2197/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2198/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2199
2200_ASUNAME
2201
2202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203for as_dir in $PATH
2204do
2205 IFS=$as_save_IFS
2206 test -z "$as_dir" && as_dir=.
2207 $as_echo "PATH: $as_dir"
2208 done
2209IFS=$as_save_IFS
2210
2211} >&5
2212
2213cat >&5 <<_ACEOF
2214
2215
2216## ----------- ##
2217## Core tests. ##
2218## ----------- ##
2219
2220_ACEOF
2221
2222
2223# Keep a trace of the command line.
2224# Strip out --no-create and --no-recursion so they do not pile up.
2225# Strip out --silent because we don't want to record it for future runs.
2226# Also quote any args containing shell meta-characters.
2227# Make two passes to allow for proper duplicate-argument suppression.
2228ac_configure_args=
2229ac_configure_args0=
2230ac_configure_args1=
2231ac_must_keep_next=false
2232for ac_pass in 1 2
2233do
2234 for ac_arg
2235 do
2236 case $ac_arg in
2237 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2239 | -silent | --silent | --silen | --sile | --sil)
2240 continue ;;
2241 *\'*)
2242 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2243 esac
2244 case $ac_pass in
2245 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2246 2)
2247 as_fn_append ac_configure_args1 " '$ac_arg'"
2248 if test $ac_must_keep_next = true; then
2249 ac_must_keep_next=false # Got value, back to normal.
2250 else
2251 case $ac_arg in
2252 *=* | --config-cache | -C | -disable-* | --disable-* \
2253 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2254 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2255 | -with-* | --with-* | -without-* | --without-* | --x)
2256 case "$ac_configure_args0 " in
2257 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2258 esac
2259 ;;
2260 -* ) ac_must_keep_next=true ;;
2261 esac
2262 fi
2263 as_fn_append ac_configure_args " '$ac_arg'"
2264 ;;
2265 esac
2266 done
2267done
2268{ ac_configure_args0=; unset ac_configure_args0;}
2269{ ac_configure_args1=; unset ac_configure_args1;}
2270
2271# When interrupted or exit'd, cleanup temporary files, and complete
2272# config.log. We remove comments because anyway the quotes in there
2273# would cause problems or look ugly.
2274# WARNING: Use '\'' to represent an apostrophe within the trap.
2275# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2276trap 'exit_status=$?
2277 # Save into config.log some information that might help in debugging.
2278 {
2279 echo
2280
22e05272 2281 $as_echo "## ---------------- ##
eff02e4f 2282## Cache variables. ##
22e05272 2283## ---------------- ##"
eff02e4f
ILT
2284 echo
2285 # The following way of writing the cache mishandles newlines in values,
2286(
2287 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2288 eval ac_val=\$$ac_var
2289 case $ac_val in #(
2290 *${as_nl}*)
2291 case $ac_var in #(
2292 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2293$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2294 esac
2295 case $ac_var in #(
2296 _ | IFS | as_nl) ;; #(
2297 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2298 *) { eval $ac_var=; unset $ac_var;} ;;
2299 esac ;;
2300 esac
2301 done
2302 (set) 2>&1 |
2303 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2304 *${as_nl}ac_space=\ *)
2305 sed -n \
2306 "s/'\''/'\''\\\\'\'''\''/g;
2307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2308 ;; #(
2309 *)
2310 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2311 ;;
2312 esac |
2313 sort
2314)
2315 echo
2316
22e05272 2317 $as_echo "## ----------------- ##
eff02e4f 2318## Output variables. ##
22e05272 2319## ----------------- ##"
eff02e4f
ILT
2320 echo
2321 for ac_var in $ac_subst_vars
2322 do
2323 eval ac_val=\$$ac_var
2324 case $ac_val in
2325 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2326 esac
2327 $as_echo "$ac_var='\''$ac_val'\''"
2328 done | sort
2329 echo
2330
2331 if test -n "$ac_subst_files"; then
22e05272 2332 $as_echo "## ------------------- ##
eff02e4f 2333## File substitutions. ##
22e05272 2334## ------------------- ##"
eff02e4f
ILT
2335 echo
2336 for ac_var in $ac_subst_files
2337 do
2338 eval ac_val=\$$ac_var
2339 case $ac_val in
2340 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2341 esac
2342 $as_echo "$ac_var='\''$ac_val'\''"
2343 done | sort
2344 echo
2345 fi
2346
2347 if test -s confdefs.h; then
22e05272 2348 $as_echo "## ----------- ##
eff02e4f 2349## confdefs.h. ##
22e05272 2350## ----------- ##"
eff02e4f
ILT
2351 echo
2352 cat confdefs.h
2353 echo
2354 fi
2355 test "$ac_signal" != 0 &&
2356 $as_echo "$as_me: caught signal $ac_signal"
2357 $as_echo "$as_me: exit $exit_status"
2358 } >&5
2359 rm -f core *.core core.conftest.* &&
2360 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2361 exit $exit_status
2362' 0
2363for ac_signal in 1 2 13 15; do
2364 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2365done
2366ac_signal=0
2367
2368# confdefs.h avoids OS command line length limits that DEFS can exceed.
2369rm -f -r conftest* confdefs.h
2370
2371$as_echo "/* confdefs.h */" > confdefs.h
2372
2373# Predefined preprocessor variables.
2374
2375cat >>confdefs.h <<_ACEOF
2376#define PACKAGE_NAME "$PACKAGE_NAME"
2377_ACEOF
2378
2379cat >>confdefs.h <<_ACEOF
2380#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2381_ACEOF
2382
2383cat >>confdefs.h <<_ACEOF
2384#define PACKAGE_VERSION "$PACKAGE_VERSION"
2385_ACEOF
2386
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_STRING "$PACKAGE_STRING"
2389_ACEOF
2390
2391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2393_ACEOF
2394
2395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE_URL "$PACKAGE_URL"
2397_ACEOF
2398
2399
2400# Let the site file select an alternate cache file if it wants to.
2401# Prefer an explicitly selected file to automatically selected ones.
2402ac_site_file1=NONE
2403ac_site_file2=NONE
2404if test -n "$CONFIG_SITE"; then
22e05272
JM
2405 # We do not want a PATH search for config.site.
2406 case $CONFIG_SITE in #((
2407 -*) ac_site_file1=./$CONFIG_SITE;;
2408 */*) ac_site_file1=$CONFIG_SITE;;
2409 *) ac_site_file1=./$CONFIG_SITE;;
2410 esac
eff02e4f
ILT
2411elif test "x$prefix" != xNONE; then
2412 ac_site_file1=$prefix/share/config.site
2413 ac_site_file2=$prefix/etc/config.site
2414else
2415 ac_site_file1=$ac_default_prefix/share/config.site
2416 ac_site_file2=$ac_default_prefix/etc/config.site
2417fi
2418for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2419do
2420 test "x$ac_site_file" = xNONE && continue
22e05272 2421 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
eff02e4f
ILT
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2423$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2424 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2425 . "$ac_site_file" \
2426 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2428as_fn_error $? "failed to load site script $ac_site_file
2429See \`config.log' for more details" "$LINENO" 5; }
eff02e4f
ILT
2430 fi
2431done
2432
2433if test -r "$cache_file"; then
22e05272
JM
2434 # Some versions of bash will fail to source /dev/null (special files
2435 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2436 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
eff02e4f
ILT
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2438$as_echo "$as_me: loading cache $cache_file" >&6;}
2439 case $cache_file in
2440 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2441 *) . "./$cache_file";;
2442 esac
2443 fi
2444else
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2446$as_echo "$as_me: creating cache $cache_file" >&6;}
2447 >$cache_file
2448fi
2449
2450# Check that the precious variables saved in the cache have kept the same
2451# value.
2452ac_cache_corrupted=false
2453for ac_var in $ac_precious_vars; do
2454 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2455 eval ac_new_set=\$ac_env_${ac_var}_set
2456 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2457 eval ac_new_val=\$ac_env_${ac_var}_value
2458 case $ac_old_set,$ac_new_set in
2459 set,)
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2461$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2462 ac_cache_corrupted=: ;;
2463 ,set)
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2465$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2466 ac_cache_corrupted=: ;;
2467 ,);;
2468 *)
2469 if test "x$ac_old_val" != "x$ac_new_val"; then
2470 # differences in whitespace do not lead to failure.
2471 ac_old_val_w=`echo x $ac_old_val`
2472 ac_new_val_w=`echo x $ac_new_val`
2473 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2475$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2476 ac_cache_corrupted=:
2477 else
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2479$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2480 eval $ac_var=\$ac_old_val
2481 fi
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2483$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2485$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2486 fi;;
2487 esac
2488 # Pass precious variables to config.status.
2489 if test "$ac_new_set" = set; then
2490 case $ac_new_val in
2491 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2492 *) ac_arg=$ac_var=$ac_new_val ;;
2493 esac
2494 case " $ac_configure_args " in
2495 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2496 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2497 esac
2498 fi
2499done
2500if $ac_cache_corrupted; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2504$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2505 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
eff02e4f
ILT
2506fi
2507## -------------------- ##
2508## Main body of script. ##
2509## -------------------- ##
2510
2511ac_ext=c
2512ac_cpp='$CPP $CPPFLAGS'
2513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2515ac_compiler_gnu=$ac_cv_c_compiler_gnu
2516
2517
2518
2519
2520
2521
2522ac_config_headers="$ac_config_headers config.h"
2523
2524
405a6b1c
MK
2525if test -n "${with_target_subdir}"; then
2526 # Default to --enable-multilib
2527# Check whether --enable-multilib was given.
2528if test "${enable_multilib+set}" = set; then :
2529 enableval=$enable_multilib; case "$enableval" in
2530 yes) multilib=yes ;;
2531 no) multilib=no ;;
22e05272 2532 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
405a6b1c
MK
2533 esac
2534else
2535 multilib=yes
2536fi
2537
2538
2539# We may get other options which we leave undocumented:
2540# --with-target-subdir, --with-multisrctop, --with-multisubdir
2541# See config-ml.in if you want the gory details.
2542
2543if test "$srcdir" = "."; then
2544 if test "$with_target_subdir" != "."; then
2545 multi_basedir="$srcdir/$with_multisrctop../.."
2546 else
2547 multi_basedir="$srcdir/$with_multisrctop.."
2548 fi
2549else
2550 multi_basedir="$srcdir/.."
2551fi
2552
2553
2554# Even if the default multilib is not a cross compilation,
2555# it may be that some of the other multilibs are.
2556if test $cross_compiling = no && test $multilib = yes \
2557 && test "x${with_multisubdir}" != x ; then
2558 cross_compiling=maybe
2559fi
2560
2561ac_config_commands="$ac_config_commands default-1"
2562
2563fi
2564
eff02e4f
ILT
2565ac_aux_dir=
2566for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2567 if test -f "$ac_dir/install-sh"; then
2568 ac_aux_dir=$ac_dir
2569 ac_install_sh="$ac_aux_dir/install-sh -c"
2570 break
2571 elif test -f "$ac_dir/install.sh"; then
2572 ac_aux_dir=$ac_dir
2573 ac_install_sh="$ac_aux_dir/install.sh -c"
2574 break
2575 elif test -f "$ac_dir/shtool"; then
2576 ac_aux_dir=$ac_dir
2577 ac_install_sh="$ac_aux_dir/shtool install -c"
2578 break
2579 fi
eff02e4f
ILT
2580done
2581if test -z "$ac_aux_dir"; then
22e05272 2582 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
eff02e4f
ILT
2583fi
2584
2585# These three variables are undocumented and unsupported,
2586# and are intended to be withdrawn in a future Autoconf release.
2587# They can cause serious problems if a builder's source tree is in a directory
2588# whose full name contains unusual characters.
2589ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2590ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2591ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2592
2593
2594# Make sure we can run config.sub.
2595$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2596 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
eff02e4f
ILT
2597
2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2599$as_echo_n "checking build system type... " >&6; }
22e05272 2600if ${ac_cv_build+:} false; then :
eff02e4f
ILT
2601 $as_echo_n "(cached) " >&6
2602else
2603 ac_build_alias=$build_alias
2604test "x$ac_build_alias" = x &&
2605 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2606test "x$ac_build_alias" = x &&
22e05272 2607 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
eff02e4f 2608ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
eff02e4f
ILT
2610
2611fi
2612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2613$as_echo "$ac_cv_build" >&6; }
2614case $ac_cv_build in
2615*-*-*) ;;
22e05272 2616*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
eff02e4f
ILT
2617esac
2618build=$ac_cv_build
2619ac_save_IFS=$IFS; IFS='-'
2620set x $ac_cv_build
2621shift
2622build_cpu=$1
2623build_vendor=$2
2624shift; shift
2625# Remember, the first character of IFS is used to create $*,
2626# except with old shells:
2627build_os=$*
2628IFS=$ac_save_IFS
2629case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2630
2631
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2633$as_echo_n "checking host system type... " >&6; }
22e05272 2634if ${ac_cv_host+:} false; then :
eff02e4f
ILT
2635 $as_echo_n "(cached) " >&6
2636else
2637 if test "x$host_alias" = x; then
2638 ac_cv_host=$ac_cv_build
2639else
2640 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2641 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
eff02e4f
ILT
2642fi
2643
2644fi
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2646$as_echo "$ac_cv_host" >&6; }
2647case $ac_cv_host in
2648*-*-*) ;;
22e05272 2649*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
eff02e4f
ILT
2650esac
2651host=$ac_cv_host
2652ac_save_IFS=$IFS; IFS='-'
2653set x $ac_cv_host
2654shift
2655host_cpu=$1
2656host_vendor=$2
2657shift; shift
2658# Remember, the first character of IFS is used to create $*,
2659# except with old shells:
2660host_os=$*
2661IFS=$ac_save_IFS
2662case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2663
2664
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2666$as_echo_n "checking target system type... " >&6; }
22e05272 2667if ${ac_cv_target+:} false; then :
eff02e4f
ILT
2668 $as_echo_n "(cached) " >&6
2669else
2670 if test "x$target_alias" = x; then
2671 ac_cv_target=$ac_cv_host
2672else
2673 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2674 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
eff02e4f
ILT
2675fi
2676
2677fi
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2679$as_echo "$ac_cv_target" >&6; }
2680case $ac_cv_target in
2681*-*-*) ;;
22e05272 2682*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
eff02e4f
ILT
2683esac
2684target=$ac_cv_target
2685ac_save_IFS=$IFS; IFS='-'
2686set x $ac_cv_target
2687shift
2688target_cpu=$1
2689target_vendor=$2
2690shift; shift
2691# Remember, the first character of IFS is used to create $*,
2692# except with old shells:
2693target_os=$*
2694IFS=$ac_save_IFS
2695case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2696
2697
2698# The aliases save the names the user supplied, while $host etc.
2699# will get canonicalized.
2700test -n "$target_alias" &&
2701 test "$program_prefix$program_suffix$program_transform_name" = \
2702 NONENONEs,x,x, &&
2703 program_prefix=${target_alias}-
2704
2705target_alias=${target_alias-$host_alias}
2706
22e05272
JM
2707# Expand $ac_aux_dir to an absolute path.
2708am_aux_dir=`cd "$ac_aux_dir" && pwd`
2709
d4c059d5
ILT
2710ac_ext=c
2711ac_cpp='$CPP $CPPFLAGS'
2712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2714ac_compiler_gnu=$ac_cv_c_compiler_gnu
2715if test -n "$ac_tool_prefix"; then
2716 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2717set dummy ${ac_tool_prefix}gcc; ac_word=$2
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2720if ${ac_cv_prog_CC+:} false; then :
d4c059d5
ILT
2721 $as_echo_n "(cached) " >&6
2722else
2723 if test -n "$CC"; then
2724 ac_cv_prog_CC="$CC" # Let the user override the test.
2725else
2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH
2728do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
2733 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737done
2738 done
2739IFS=$as_save_IFS
eff02e4f 2740
d4c059d5
ILT
2741fi
2742fi
2743CC=$ac_cv_prog_CC
2744if test -n "$CC"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2746$as_echo "$CC" >&6; }
2747else
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749$as_echo "no" >&6; }
2750fi
eff02e4f 2751
eff02e4f 2752
d4c059d5
ILT
2753fi
2754if test -z "$ac_cv_prog_CC"; then
2755 ac_ct_CC=$CC
2756 # Extract the first word of "gcc", so it can be a program name with args.
2757set dummy gcc; ac_word=$2
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2760if ${ac_cv_prog_ac_ct_CC+:} false; then :
eff02e4f
ILT
2761 $as_echo_n "(cached) " >&6
2762else
d4c059d5
ILT
2763 if test -n "$ac_ct_CC"; then
2764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2765else
2766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
eff02e4f
ILT
2767for as_dir in $PATH
2768do
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
d4c059d5 2771 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
2773 ac_cv_prog_ac_ct_CC="gcc"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 break 2
2776 fi
2777done
eff02e4f
ILT
2778 done
2779IFS=$as_save_IFS
2780
eff02e4f 2781fi
d4c059d5
ILT
2782fi
2783ac_ct_CC=$ac_cv_prog_ac_ct_CC
2784if test -n "$ac_ct_CC"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2786$as_echo "$ac_ct_CC" >&6; }
2787else
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789$as_echo "no" >&6; }
2790fi
2791
2792 if test "x$ac_ct_CC" = x; then
2793 CC=""
eff02e4f 2794 else
d4c059d5
ILT
2795 case $cross_compiling:$ac_tool_warned in
2796yes:)
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2799ac_tool_warned=yes ;;
2800esac
2801 CC=$ac_ct_CC
eff02e4f 2802 fi
d4c059d5
ILT
2803else
2804 CC="$ac_cv_prog_CC"
eff02e4f 2805fi
eff02e4f 2806
d4c059d5
ILT
2807if test -z "$CC"; then
2808 if test -n "$ac_tool_prefix"; then
2809 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2810set dummy ${ac_tool_prefix}cc; ac_word=$2
eff02e4f
ILT
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2813if ${ac_cv_prog_CC+:} false; then :
eff02e4f
ILT
2814 $as_echo_n "(cached) " >&6
2815else
d4c059d5
ILT
2816 if test -n "$CC"; then
2817 ac_cv_prog_CC="$CC" # Let the user override the test.
eff02e4f
ILT
2818else
2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 2826 ac_cv_prog_CC="${ac_tool_prefix}cc"
eff02e4f
ILT
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830done
2831 done
2832IFS=$as_save_IFS
2833
2834fi
2835fi
d4c059d5
ILT
2836CC=$ac_cv_prog_CC
2837if test -n "$CC"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2839$as_echo "$CC" >&6; }
eff02e4f
ILT
2840else
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842$as_echo "no" >&6; }
2843fi
2844
2845
d4c059d5 2846 fi
eff02e4f 2847fi
d4c059d5
ILT
2848if test -z "$CC"; then
2849 # Extract the first word of "cc", so it can be a program name with args.
2850set dummy cc; ac_word=$2
eff02e4f
ILT
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2853if ${ac_cv_prog_CC+:} false; then :
eff02e4f
ILT
2854 $as_echo_n "(cached) " >&6
2855else
d4c059d5
ILT
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test.
eff02e4f 2858else
d4c059d5 2859 ac_prog_rejected=no
eff02e4f
ILT
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
2867 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2868 ac_prog_rejected=yes
2869 continue
2870 fi
2871 ac_cv_prog_CC="cc"
eff02e4f
ILT
2872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 break 2
2874 fi
2875done
2876 done
2877IFS=$as_save_IFS
2878
d4c059d5
ILT
2879if test $ac_prog_rejected = yes; then
2880 # We found a bogon in the path, so make sure we never use it.
2881 set dummy $ac_cv_prog_CC
2882 shift
2883 if test $# != 0; then
2884 # We chose a different compiler from the bogus one.
2885 # However, it has the same basename, so the bogon will be chosen
2886 # first if we set CC to just the basename; use the full file name.
2887 shift
2888 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2889 fi
eff02e4f
ILT
2890fi
2891fi
d4c059d5
ILT
2892fi
2893CC=$ac_cv_prog_CC
2894if test -n "$CC"; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2896$as_echo "$CC" >&6; }
eff02e4f
ILT
2897else
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899$as_echo "no" >&6; }
2900fi
2901
eff02e4f
ILT
2902
2903fi
d4c059d5
ILT
2904if test -z "$CC"; then
2905 if test -n "$ac_tool_prefix"; then
2906 for ac_prog in cl.exe
2907 do
2908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2912if ${ac_cv_prog_CC+:} false; then :
eff02e4f
ILT
2913 $as_echo_n "(cached) " >&6
2914else
d4c059d5
ILT
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2917else
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
eff02e4f
ILT
2920do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
d4c059d5 2923 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
2925 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929done
eff02e4f
ILT
2930 done
2931IFS=$as_save_IFS
2932
2933fi
eff02e4f 2934fi
d4c059d5
ILT
2935CC=$ac_cv_prog_CC
2936if test -n "$CC"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2938$as_echo "$CC" >&6; }
2939else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941$as_echo "no" >&6; }
2942fi
eff02e4f 2943
eff02e4f 2944
d4c059d5
ILT
2945 test -n "$CC" && break
2946 done
2947fi
2948if test -z "$CC"; then
2949 ac_ct_CC=$CC
2950 for ac_prog in cl.exe
eff02e4f
ILT
2951do
2952 # Extract the first word of "$ac_prog", so it can be a program name with args.
2953set dummy $ac_prog; ac_word=$2
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2956if ${ac_cv_prog_ac_ct_CC+:} false; then :
eff02e4f
ILT
2957 $as_echo_n "(cached) " >&6
2958else
d4c059d5
ILT
2959 if test -n "$ac_ct_CC"; then
2960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
eff02e4f
ILT
2961else
2962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963for as_dir in $PATH
2964do
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 2969 ac_cv_prog_ac_ct_CC="$ac_prog"
eff02e4f
ILT
2970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 break 2
2972 fi
2973done
2974 done
2975IFS=$as_save_IFS
2976
2977fi
2978fi
d4c059d5
ILT
2979ac_ct_CC=$ac_cv_prog_ac_ct_CC
2980if test -n "$ac_ct_CC"; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2982$as_echo "$ac_ct_CC" >&6; }
eff02e4f
ILT
2983else
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985$as_echo "no" >&6; }
2986fi
2987
2988
d4c059d5 2989 test -n "$ac_ct_CC" && break
eff02e4f
ILT
2990done
2991
d4c059d5
ILT
2992 if test "x$ac_ct_CC" = x; then
2993 CC=""
2994 else
2995 case $cross_compiling:$ac_tool_warned in
2996yes:)
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2999ac_tool_warned=yes ;;
eff02e4f 3000esac
d4c059d5 3001 CC=$ac_ct_CC
eff02e4f
ILT
3002 fi
3003fi
3004
eff02e4f
ILT
3005fi
3006
3007
d4c059d5
ILT
3008test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3010as_fn_error $? "no acceptable C compiler found in \$PATH
3011See \`config.log' for more details" "$LINENO" 5; }
eff02e4f 3012
d4c059d5
ILT
3013# Provide some information about the compiler.
3014$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3015set X $ac_compile
3016ac_compiler=$2
3017for ac_option in --version -v -V -qversion; do
3018 { { ac_try="$ac_compiler $ac_option >&5"
3019case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022esac
3023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024$as_echo "$ac_try_echo"; } >&5
3025 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3026 ac_status=$?
3027 if test -s conftest.err; then
3028 sed '10a\
3029... rest of stderr output deleted ...
3030 10q' conftest.err >conftest.er1
3031 cat conftest.er1 >&5
d4c059d5 3032 fi
22e05272 3033 rm -f conftest.er1 conftest.err
d4c059d5
ILT
3034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3035 test $ac_status = 0; }
3036done
eff02e4f 3037
d4c059d5
ILT
3038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039/* end confdefs.h. */
eff02e4f 3040
d4c059d5
ILT
3041int
3042main ()
3043{
eff02e4f 3044
d4c059d5
ILT
3045 ;
3046 return 0;
3047}
3048_ACEOF
3049ac_clean_files_save=$ac_clean_files
22e05272 3050ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d4c059d5
ILT
3051# Try to create an executable without -o first, disregard a.out.
3052# It will help us diagnose broken compilers, and finding out an intuition
3053# of exeext.
22e05272
JM
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3055$as_echo_n "checking whether the C compiler works... " >&6; }
d4c059d5 3056ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
eff02e4f 3057
d4c059d5
ILT
3058# The possible output files:
3059ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
eff02e4f 3060
d4c059d5
ILT
3061ac_rmfiles=
3062for ac_file in $ac_files
3063do
3064 case $ac_file in
3065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3066 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3067 esac
3068done
3069rm -f $ac_rmfiles
eff02e4f 3070
d4c059d5
ILT
3071if { { ac_try="$ac_link_default"
3072case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
3076eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077$as_echo "$ac_try_echo"; } >&5
3078 (eval "$ac_link_default") 2>&5
3079 ac_status=$?
3080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081 test $ac_status = 0; }; then :
3082 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3083# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3084# in a Makefile. We should not override ac_cv_exeext if it was cached,
3085# so that the user can short-circuit this test for compilers unknown to
3086# Autoconf.
3087for ac_file in $ac_files ''
3088do
3089 test -f "$ac_file" || continue
3090 case $ac_file in
3091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3092 ;;
3093 [ab].out )
3094 # We found the default executable, but exeext='' is most
3095 # certainly right.
3096 break;;
3097 *.* )
3098 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3099 then :; else
3100 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3101 fi
3102 # We set ac_cv_exeext here because the later test for it is not
3103 # safe: cross compilers may not add the suffix if given an `-o'
3104 # argument, so we may need to know it at that point already.
3105 # Even if this section looks crufty: it has the advantage of
3106 # actually working.
3107 break;;
3108 * )
3109 break;;
3110 esac
3111done
3112test "$ac_cv_exeext" = no && ac_cv_exeext=
eff02e4f 3113
eff02e4f 3114else
d4c059d5 3115 ac_file=''
eff02e4f 3116fi
d4c059d5 3117if test -z "$ac_file"; then :
22e05272
JM
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119$as_echo "no" >&6; }
3120$as_echo "$as_me: failed program was:" >&5
d4c059d5 3121sed 's/^/| /' conftest.$ac_ext >&5
eff02e4f 3122
d4c059d5
ILT
3123{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3125as_fn_error 77 "C compiler cannot create executables
3126See \`config.log' for more details" "$LINENO" 5; }
3127else
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3129$as_echo "yes" >&6; }
eff02e4f 3130fi
22e05272
JM
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3132$as_echo_n "checking for C compiler default output file name... " >&6; }
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3134$as_echo "$ac_file" >&6; }
d4c059d5 3135ac_exeext=$ac_cv_exeext
eff02e4f 3136
22e05272 3137rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d4c059d5 3138ac_clean_files=$ac_clean_files_save
d4c059d5
ILT
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3140$as_echo_n "checking for suffix of executables... " >&6; }
3141if { { ac_try="$ac_link"
3142case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145esac
3146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147$as_echo "$ac_try_echo"; } >&5
3148 (eval "$ac_link") 2>&5
3149 ac_status=$?
3150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3151 test $ac_status = 0; }; then :
3152 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3153# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3154# work properly (i.e., refer to `conftest.exe'), while it won't with
3155# `rm'.
3156for ac_file in conftest.exe conftest conftest.*; do
3157 test -f "$ac_file" || continue
3158 case $ac_file in
3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3160 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3161 break;;
3162 * ) break;;
3163 esac
3164done
eff02e4f 3165else
d4c059d5
ILT
3166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3168as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3169See \`config.log' for more details" "$LINENO" 5; }
eff02e4f 3170fi
22e05272 3171rm -f conftest conftest$ac_cv_exeext
d4c059d5
ILT
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3173$as_echo "$ac_cv_exeext" >&6; }
eff02e4f 3174
d4c059d5
ILT
3175rm -f conftest.$ac_ext
3176EXEEXT=$ac_cv_exeext
3177ac_exeext=$EXEEXT
22e05272
JM
3178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179/* end confdefs.h. */
3180#include <stdio.h>
3181int
3182main ()
3183{
3184FILE *f = fopen ("conftest.out", "w");
3185 return ferror (f) || fclose (f) != 0;
3186
3187 ;
3188 return 0;
3189}
3190_ACEOF
3191ac_clean_files="$ac_clean_files conftest.out"
3192# Check that the compiler produces executables we can run. If not, either
3193# the compiler is broken, or we cross compile.
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3195$as_echo_n "checking whether we are cross compiling... " >&6; }
3196if test "$cross_compiling" != yes; then
3197 { { ac_try="$ac_link"
3198case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201esac
3202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203$as_echo "$ac_try_echo"; } >&5
3204 (eval "$ac_link") 2>&5
3205 ac_status=$?
3206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207 test $ac_status = 0; }
3208 if { ac_try='./conftest$ac_cv_exeext'
3209 { { case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212esac
3213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214$as_echo "$ac_try_echo"; } >&5
3215 (eval "$ac_try") 2>&5
3216 ac_status=$?
3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218 test $ac_status = 0; }; }; then
3219 cross_compiling=no
3220 else
3221 if test "$cross_compiling" = maybe; then
3222 cross_compiling=yes
3223 else
3224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226as_fn_error $? "cannot run C compiled programs.
3227If you meant to cross compile, use \`--host'.
3228See \`config.log' for more details" "$LINENO" 5; }
3229 fi
3230 fi
3231fi
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3233$as_echo "$cross_compiling" >&6; }
3234
3235rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3236ac_clean_files=$ac_clean_files_save
d4c059d5
ILT
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3238$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3239if ${ac_cv_objext+:} false; then :
eff02e4f
ILT
3240 $as_echo_n "(cached) " >&6
3241else
d4c059d5
ILT
3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243/* end confdefs.h. */
eff02e4f 3244
d4c059d5
ILT
3245int
3246main ()
3247{
eff02e4f 3248
d4c059d5
ILT
3249 ;
3250 return 0;
3251}
3252_ACEOF
3253rm -f conftest.o conftest.obj
3254if { { ac_try="$ac_compile"
3255case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
eff02e4f 3258esac
d4c059d5
ILT
3259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260$as_echo "$ac_try_echo"; } >&5
3261 (eval "$ac_compile") 2>&5
3262 ac_status=$?
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }; then :
3265 for ac_file in conftest.o conftest.obj conftest.*; do
3266 test -f "$ac_file" || continue;
3267 case $ac_file in
3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3269 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3270 break;;
3271 esac
3272done
eff02e4f 3273else
d4c059d5
ILT
3274 $as_echo "$as_me: failed program was:" >&5
3275sed 's/^/| /' conftest.$ac_ext >&5
eff02e4f 3276
d4c059d5
ILT
3277{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3279as_fn_error $? "cannot compute suffix of object files: cannot compile
3280See \`config.log' for more details" "$LINENO" 5; }
d4c059d5
ILT
3281fi
3282rm -f conftest.$ac_cv_objext conftest.$ac_ext
3283fi
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3285$as_echo "$ac_cv_objext" >&6; }
3286OBJEXT=$ac_cv_objext
3287ac_objext=$OBJEXT
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3289$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3290if ${ac_cv_c_compiler_gnu+:} false; then :
eff02e4f
ILT
3291 $as_echo_n "(cached) " >&6
3292else
d4c059d5
ILT
3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294/* end confdefs.h. */
eff02e4f 3295
d4c059d5
ILT
3296int
3297main ()
3298{
3299#ifndef __GNUC__
3300 choke me
3301#endif
3302
3303 ;
3304 return 0;
3305}
3306_ACEOF
3307if ac_fn_c_try_compile "$LINENO"; then :
3308 ac_compiler_gnu=yes
eff02e4f 3309else
d4c059d5 3310 ac_compiler_gnu=no
eff02e4f 3311fi
d4c059d5
ILT
3312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313ac_cv_c_compiler_gnu=$ac_compiler_gnu
eff02e4f 3314
eff02e4f 3315fi
d4c059d5
ILT
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3317$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3318if test $ac_compiler_gnu = yes; then
3319 GCC=yes
eff02e4f 3320else
d4c059d5
ILT
3321 GCC=
3322fi
3323ac_test_CFLAGS=${CFLAGS+set}
3324ac_save_CFLAGS=$CFLAGS
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3326$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3327if ${ac_cv_prog_cc_g+:} false; then :
d4c059d5 3328 $as_echo_n "(cached) " >&6
eff02e4f 3329else
d4c059d5
ILT
3330 ac_save_c_werror_flag=$ac_c_werror_flag
3331 ac_c_werror_flag=yes
3332 ac_cv_prog_cc_g=no
3333 CFLAGS="-g"
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335/* end confdefs.h. */
eff02e4f 3336
d4c059d5
ILT
3337int
3338main ()
3339{
3340
3341 ;
3342 return 0;
3343}
3344_ACEOF
3345if ac_fn_c_try_compile "$LINENO"; then :
3346 ac_cv_prog_cc_g=yes
eff02e4f 3347else
d4c059d5
ILT
3348 CFLAGS=""
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350/* end confdefs.h. */
eff02e4f 3351
d4c059d5
ILT
3352int
3353main ()
3354{
3355
3356 ;
3357 return 0;
3358}
3359_ACEOF
3360if ac_fn_c_try_compile "$LINENO"; then :
eff02e4f 3361
eff02e4f 3362else
d4c059d5
ILT
3363 ac_c_werror_flag=$ac_save_c_werror_flag
3364 CFLAGS="-g"
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366/* end confdefs.h. */
3367
3368int
3369main ()
3370{
eff02e4f 3371
d4c059d5
ILT
3372 ;
3373 return 0;
3374}
3375_ACEOF
3376if ac_fn_c_try_compile "$LINENO"; then :
3377 ac_cv_prog_cc_g=yes
eff02e4f 3378fi
d4c059d5 3379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
eff02e4f 3380fi
d4c059d5 3381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
eff02e4f 3382fi
d4c059d5
ILT
3383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 ac_c_werror_flag=$ac_save_c_werror_flag
eff02e4f 3385fi
d4c059d5
ILT
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3387$as_echo "$ac_cv_prog_cc_g" >&6; }
3388if test "$ac_test_CFLAGS" = set; then
3389 CFLAGS=$ac_save_CFLAGS
3390elif test $ac_cv_prog_cc_g = yes; then
3391 if test "$GCC" = yes; then
3392 CFLAGS="-g -O2"
3393 else
3394 CFLAGS="-g"
3395 fi
eff02e4f 3396else
d4c059d5
ILT
3397 if test "$GCC" = yes; then
3398 CFLAGS="-O2"
3399 else
3400 CFLAGS=
eff02e4f 3401 fi
eff02e4f 3402fi
d4c059d5
ILT
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3404$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3405if ${ac_cv_prog_cc_c89+:} false; then :
d4c059d5 3406 $as_echo_n "(cached) " >&6
eff02e4f 3407else
d4c059d5
ILT
3408 ac_cv_prog_cc_c89=no
3409ac_save_CC=$CC
3410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411/* end confdefs.h. */
3412#include <stdarg.h>
3413#include <stdio.h>
22e05272 3414struct stat;
d4c059d5
ILT
3415/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3416struct buf { int x; };
3417FILE * (*rcsopen) (struct buf *, struct stat *, int);
3418static char *e (p, i)
3419 char **p;
3420 int i;
3421{
3422 return p[i];
3423}
3424static char *f (char * (*g) (char **, int), char **p, ...)
3425{
3426 char *s;
3427 va_list v;
3428 va_start (v,p);
3429 s = g (p, va_arg (v,int));
3430 va_end (v);
3431 return s;
3432}
eff02e4f 3433
d4c059d5
ILT
3434/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3435 function prototypes and stuff, but not '\xHH' hex character constants.
3436 These don't provoke an error unfortunately, instead are silently treated
3437 as 'x'. The following induces an error, until -std is added to get
3438 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3439 array size at least. It's necessary to write '\x00'==0 to get something
3440 that's true only with -std. */
3441int osf4_cc_array ['\x00' == 0 ? 1 : -1];
eff02e4f 3442
d4c059d5
ILT
3443/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3444 inside strings and character constants. */
3445#define FOO(x) 'x'
3446int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
eff02e4f 3447
d4c059d5
ILT
3448int test (int i, double x);
3449struct s1 {int (*f) (int a);};
3450struct s2 {int (*f) (double a);};
3451int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3452int argc;
3453char **argv;
3454int
3455main ()
3456{
3457return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3458 ;
3459 return 0;
3460}
3461_ACEOF
3462for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3463 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3464do
3465 CC="$ac_save_CC $ac_arg"
3466 if ac_fn_c_try_compile "$LINENO"; then :
3467 ac_cv_prog_cc_c89=$ac_arg
eff02e4f 3468fi
d4c059d5
ILT
3469rm -f core conftest.err conftest.$ac_objext
3470 test "x$ac_cv_prog_cc_c89" != "xno" && break
3471done
3472rm -f conftest.$ac_ext
3473CC=$ac_save_CC
eff02e4f
ILT
3474
3475fi
d4c059d5
ILT
3476# AC_CACHE_VAL
3477case "x$ac_cv_prog_cc_c89" in
3478 x)
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3480$as_echo "none needed" >&6; } ;;
3481 xno)
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3483$as_echo "unsupported" >&6; } ;;
3484 *)
3485 CC="$CC $ac_cv_prog_cc_c89"
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3487$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
eff02e4f 3488esac
d4c059d5 3489if test "x$ac_cv_prog_cc_c89" != xno; then :
eff02e4f 3490
d4c059d5 3491fi
eff02e4f 3492
d4c059d5
ILT
3493ac_ext=c
3494ac_cpp='$CPP $CPPFLAGS'
3495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497ac_compiler_gnu=$ac_cv_c_compiler_gnu
eff02e4f 3498
22e05272
JM
3499ac_ext=c
3500ac_cpp='$CPP $CPPFLAGS'
3501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3505$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3506if ${am_cv_prog_cc_c_o+:} false; then :
3507 $as_echo_n "(cached) " >&6
3508else
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510/* end confdefs.h. */
3511
3512int
3513main ()
3514{
3515
3516 ;
3517 return 0;
3518}
3519_ACEOF
3520 # Make sure it works both with $CC and with simple cc.
3521 # Following AC_PROG_CC_C_O, we do the test twice because some
3522 # compilers refuse to overwrite an existing .o file with -o,
3523 # though they will create one.
3524 am_cv_prog_cc_c_o=yes
3525 for am_i in 1 2; do
3526 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3527 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } \
3531 && test -f conftest2.$ac_objext; then
3532 : OK
3533 else
3534 am_cv_prog_cc_c_o=no
3535 break
3536 fi
3537 done
3538 rm -f core conftest*
3539 unset am_i
3540fi
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3542$as_echo "$am_cv_prog_cc_c_o" >&6; }
3543if test "$am_cv_prog_cc_c_o" != yes; then
3544 # Losing compiler, so override with the script.
3545 # FIXME: It is wrong to rewrite CC.
3546 # But if we don't then we get into trouble of one sort or another.
3547 # A longer-term fix would be to have automake use am__CC in this case,
3548 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3549 CC="$am_aux_dir/compile $CC"
3550fi
3551ac_ext=c
3552ac_cpp='$CPP $CPPFLAGS'
3553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3555ac_compiler_gnu=$ac_cv_c_compiler_gnu
3556
3557
d4c059d5
ILT
3558
3559ac_ext=c
3560ac_cpp='$CPP $CPPFLAGS'
3561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3565$as_echo_n "checking how to run the C preprocessor... " >&6; }
3566# On Suns, sometimes $CPP names a directory.
3567if test -n "$CPP" && test -d "$CPP"; then
3568 CPP=
3569fi
3570if test -z "$CPP"; then
22e05272 3571 if ${ac_cv_prog_CPP+:} false; then :
d4c059d5
ILT
3572 $as_echo_n "(cached) " >&6
3573else
3574 # Double quotes because CPP needs to be expanded
3575 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3576 do
3577 ac_preproc_ok=false
3578for ac_c_preproc_warn_flag in '' yes
3579do
3580 # Use a header file that comes with gcc, so configuring glibc
3581 # with a fresh cross-compiler works.
3582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3583 # <limits.h> exists even on freestanding compilers.
3584 # On the NeXT, cc -E runs the code through the compiler's parser,
3585 # not just through cpp. "Syntax error" is here to catch this case.
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587/* end confdefs.h. */
3588#ifdef __STDC__
3589# include <limits.h>
3590#else
3591# include <assert.h>
3592#endif
3593 Syntax error
eff02e4f 3594_ACEOF
d4c059d5 3595if ac_fn_c_try_cpp "$LINENO"; then :
eff02e4f 3596
d4c059d5
ILT
3597else
3598 # Broken: fails on valid input.
3599continue
3600fi
22e05272 3601rm -f conftest.err conftest.i conftest.$ac_ext
d4c059d5
ILT
3602
3603 # OK, works on sane cases. Now check whether nonexistent headers
3604 # can be detected and how.
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606/* end confdefs.h. */
3607#include <ac_nonexistent.h>
3608_ACEOF
3609if ac_fn_c_try_cpp "$LINENO"; then :
3610 # Broken: success on invalid input.
3611continue
3612else
3613 # Passes both tests.
3614ac_preproc_ok=:
3615break
3616fi
22e05272 3617rm -f conftest.err conftest.i conftest.$ac_ext
eff02e4f 3618
eff02e4f 3619done
d4c059d5 3620# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3621rm -f conftest.i conftest.err conftest.$ac_ext
d4c059d5
ILT
3622if $ac_preproc_ok; then :
3623 break
3624fi
eff02e4f 3625
d4c059d5
ILT
3626 done
3627 ac_cv_prog_CPP=$CPP
3628
3629fi
3630 CPP=$ac_cv_prog_CPP
3631else
3632 ac_cv_prog_CPP=$CPP
3633fi
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3635$as_echo "$CPP" >&6; }
3636ac_preproc_ok=false
3637for ac_c_preproc_warn_flag in '' yes
eff02e4f 3638do
d4c059d5
ILT
3639 # Use a header file that comes with gcc, so configuring glibc
3640 # with a fresh cross-compiler works.
3641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3642 # <limits.h> exists even on freestanding compilers.
3643 # On the NeXT, cc -E runs the code through the compiler's parser,
3644 # not just through cpp. "Syntax error" is here to catch this case.
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646/* end confdefs.h. */
3647#ifdef __STDC__
3648# include <limits.h>
3649#else
3650# include <assert.h>
3651#endif
3652 Syntax error
3653_ACEOF
3654if ac_fn_c_try_cpp "$LINENO"; then :
eff02e4f
ILT
3655
3656else
d4c059d5
ILT
3657 # Broken: fails on valid input.
3658continue
eff02e4f 3659fi
22e05272 3660rm -f conftest.err conftest.i conftest.$ac_ext
eff02e4f 3661
d4c059d5
ILT
3662 # OK, works on sane cases. Now check whether nonexistent headers
3663 # can be detected and how.
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665/* end confdefs.h. */
3666#include <ac_nonexistent.h>
3667_ACEOF
3668if ac_fn_c_try_cpp "$LINENO"; then :
3669 # Broken: success on invalid input.
3670continue
3671else
3672 # Passes both tests.
3673ac_preproc_ok=:
3674break
3675fi
22e05272 3676rm -f conftest.err conftest.i conftest.$ac_ext
d4c059d5
ILT
3677
3678done
3679# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3680rm -f conftest.i conftest.err conftest.$ac_ext
d4c059d5
ILT
3681if $ac_preproc_ok; then :
3682
3683else
3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
eff02e4f 3685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3686as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3687See \`config.log' for more details" "$LINENO" 5; }
eff02e4f 3688fi
eff02e4f 3689
d4c059d5
ILT
3690ac_ext=c
3691ac_cpp='$CPP $CPPFLAGS'
3692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695
3696
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3698$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 3699if ${ac_cv_path_GREP+:} false; then :
d4c059d5
ILT
3700 $as_echo_n "(cached) " >&6
3701else
3702 if test -z "$GREP"; then
3703 ac_path_GREP_found=false
3704 # Loop through the user's path and test for each of PROGNAME-LIST
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3707do
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_prog in grep ggrep; do
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3713 as_fn_executable_p "$ac_path_GREP" || continue
d4c059d5
ILT
3714# Check for GNU ac_path_GREP and select it if it is found.
3715 # Check for GNU $ac_path_GREP
3716case `"$ac_path_GREP" --version 2>&1` in
3717*GNU*)
3718 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3719*)
3720 ac_count=0
3721 $as_echo_n 0123456789 >"conftest.in"
3722 while :
3723 do
3724 cat "conftest.in" "conftest.in" >"conftest.tmp"
3725 mv "conftest.tmp" "conftest.in"
3726 cp "conftest.in" "conftest.nl"
3727 $as_echo 'GREP' >> "conftest.nl"
3728 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3729 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3730 as_fn_arith $ac_count + 1 && ac_count=$as_val
3731 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3732 # Best one so far, save it but keep looking for a better one
3733 ac_cv_path_GREP="$ac_path_GREP"
3734 ac_path_GREP_max=$ac_count
eff02e4f 3735 fi
d4c059d5
ILT
3736 # 10*(2^10) chars as input seems more than enough
3737 test $ac_count -gt 10 && break
3738 done
3739 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3740esac
3741
3742 $ac_path_GREP_found && break 3
3743 done
3744 done
3745 done
3746IFS=$as_save_IFS
3747 if test -z "$ac_cv_path_GREP"; then
22e05272 3748 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
eff02e4f 3749 fi
d4c059d5
ILT
3750else
3751 ac_cv_path_GREP=$GREP
eff02e4f 3752fi
eff02e4f 3753
d4c059d5
ILT
3754fi
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3756$as_echo "$ac_cv_path_GREP" >&6; }
3757 GREP="$ac_cv_path_GREP"
eff02e4f 3758
d4c059d5
ILT
3759
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3761$as_echo_n "checking for egrep... " >&6; }
22e05272 3762if ${ac_cv_path_EGREP+:} false; then :
d4c059d5
ILT
3763 $as_echo_n "(cached) " >&6
3764else
3765 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3766 then ac_cv_path_EGREP="$GREP -E"
3767 else
3768 if test -z "$EGREP"; then
3769 ac_path_EGREP_found=false
3770 # Loop through the user's path and test for each of PROGNAME-LIST
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3773do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_prog in egrep; do
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3779 as_fn_executable_p "$ac_path_EGREP" || continue
d4c059d5
ILT
3780# Check for GNU ac_path_EGREP and select it if it is found.
3781 # Check for GNU $ac_path_EGREP
3782case `"$ac_path_EGREP" --version 2>&1` in
3783*GNU*)
3784 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3785*)
3786 ac_count=0
3787 $as_echo_n 0123456789 >"conftest.in"
3788 while :
3789 do
3790 cat "conftest.in" "conftest.in" >"conftest.tmp"
3791 mv "conftest.tmp" "conftest.in"
3792 cp "conftest.in" "conftest.nl"
3793 $as_echo 'EGREP' >> "conftest.nl"
3794 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3796 as_fn_arith $ac_count + 1 && ac_count=$as_val
3797 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3798 # Best one so far, save it but keep looking for a better one
3799 ac_cv_path_EGREP="$ac_path_EGREP"
3800 ac_path_EGREP_max=$ac_count
3801 fi
3802 # 10*(2^10) chars as input seems more than enough
3803 test $ac_count -gt 10 && break
3804 done
3805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
eff02e4f 3806esac
d4c059d5
ILT
3807
3808 $ac_path_EGREP_found && break 3
3809 done
3810 done
3811 done
3812IFS=$as_save_IFS
3813 if test -z "$ac_cv_path_EGREP"; then
22e05272 3814 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
d4c059d5 3815 fi
eff02e4f 3816else
d4c059d5
ILT
3817 ac_cv_path_EGREP=$EGREP
3818fi
3819
3820 fi
3821fi
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3823$as_echo "$ac_cv_path_EGREP" >&6; }
3824 EGREP="$ac_cv_path_EGREP"
3825
3826
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3828$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 3829if ${ac_cv_header_stdc+:} false; then :
d4c059d5
ILT
3830 $as_echo_n "(cached) " >&6
3831else
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833/* end confdefs.h. */
3834#include <stdlib.h>
3835#include <stdarg.h>
3836#include <string.h>
3837#include <float.h>
3838
3839int
3840main ()
3841{
3842
3843 ;
3844 return 0;
3845}
3846_ACEOF
3847if ac_fn_c_try_compile "$LINENO"; then :
3848 ac_cv_header_stdc=yes
3849else
3850 ac_cv_header_stdc=no
3851fi
3852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853
3854if test $ac_cv_header_stdc = yes; then
3855 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857/* end confdefs.h. */
3858#include <string.h>
3859
3860_ACEOF
3861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3862 $EGREP "memchr" >/dev/null 2>&1; then :
3863
3864else
3865 ac_cv_header_stdc=no
3866fi
3867rm -f conftest*
3868
3869fi
3870
3871if test $ac_cv_header_stdc = yes; then
3872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874/* end confdefs.h. */
3875#include <stdlib.h>
3876
3877_ACEOF
3878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3879 $EGREP "free" >/dev/null 2>&1; then :
3880
3881else
3882 ac_cv_header_stdc=no
3883fi
3884rm -f conftest*
3885
3886fi
3887
3888if test $ac_cv_header_stdc = yes; then
3889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3890 if test "$cross_compiling" = yes; then :
3891 :
3892else
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894/* end confdefs.h. */
3895#include <ctype.h>
3896#include <stdlib.h>
3897#if ((' ' & 0x0FF) == 0x020)
3898# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3899# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3900#else
3901# define ISLOWER(c) \
3902 (('a' <= (c) && (c) <= 'i') \
3903 || ('j' <= (c) && (c) <= 'r') \
3904 || ('s' <= (c) && (c) <= 'z'))
3905# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3906#endif
3907
3908#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3909int
3910main ()
3911{
3912 int i;
3913 for (i = 0; i < 256; i++)
3914 if (XOR (islower (i), ISLOWER (i))
3915 || toupper (i) != TOUPPER (i))
3916 return 2;
3917 return 0;
3918}
3919_ACEOF
3920if ac_fn_c_try_run "$LINENO"; then :
3921
3922else
3923 ac_cv_header_stdc=no
3924fi
3925rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3926 conftest.$ac_objext conftest.beam conftest.$ac_ext
3927fi
3928
3929fi
3930fi
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3932$as_echo "$ac_cv_header_stdc" >&6; }
3933if test $ac_cv_header_stdc = yes; then
3934
3935$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3936
3937fi
3938
3939# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3940for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3941 inttypes.h stdint.h unistd.h
3942do :
3943 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3944ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3945"
22e05272 3946if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d4c059d5
ILT
3947 cat >>confdefs.h <<_ACEOF
3948#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3949_ACEOF
3950
3951fi
3952
3953done
3954
3955
3956
3957 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
22e05272 3958if test "x$ac_cv_header_minix_config_h" = xyes; then :
d4c059d5
ILT
3959 MINIX=yes
3960else
3961 MINIX=
3962fi
3963
3964
3965 if test "$MINIX" = yes; then
3966
3967$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3968
3969
3970$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3971
3972
3973$as_echo "#define _MINIX 1" >>confdefs.h
3974
3975 fi
3976
3977
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3979$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
22e05272 3980if ${ac_cv_safe_to_define___extensions__+:} false; then :
d4c059d5
ILT
3981 $as_echo_n "(cached) " >&6
3982else
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984/* end confdefs.h. */
3985
22e05272
JM
3986# define __EXTENSIONS__ 1
3987 $ac_includes_default
d4c059d5
ILT
3988int
3989main ()
3990{
3991
3992 ;
3993 return 0;
3994}
3995_ACEOF
3996if ac_fn_c_try_compile "$LINENO"; then :
3997 ac_cv_safe_to_define___extensions__=yes
3998else
3999 ac_cv_safe_to_define___extensions__=no
4000fi
4001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002fi
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4004$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4005 test $ac_cv_safe_to_define___extensions__ = yes &&
4006 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4007
4008 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4009
4010 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4011
4012 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4013
4014 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4015
4016
4017
4018libtool_VERSION=1:0:0
4019
4020
af710874
ILT
4021# 1.11.1: Require that version of automake.
4022# foreign: Don't require README, INSTALL, NEWS, etc.
4023# no-define: Don't define PACKAGE and VERSION.
4024# no-dependencies: Don't generate automatic dependencies.
4025# (because it breaks when using bootstrap-lean, since some of the
4026# headers are gone at "make install" time).
4027# -Wall: Issue all automake warnings.
4028# -Wno-portability: Don't warn about constructs supported by GNU make.
4029# (because GCC requires GNU make anyhow).
22e05272 4030am__api_version='1.15'
d4c059d5
ILT
4031
4032# Find a good install program. We prefer a C program (faster),
4033# so one script is as good as another. But avoid the broken or
4034# incompatible versions:
4035# SysV /etc/install, /usr/sbin/install
4036# SunOS /usr/etc/install
4037# IRIX /sbin/install
4038# AIX /bin/install
4039# AmigaOS /C/install, which installs bootblocks on floppy discs
4040# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4041# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4042# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4043# OS/2's system install, which has a completely different semantic
4044# ./install, which can be erroneously created by make from ./install.sh.
4045# Reject install programs that cannot install multiple files.
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4047$as_echo_n "checking for a BSD-compatible install... " >&6; }
4048if test -z "$INSTALL"; then
22e05272 4049if ${ac_cv_path_install+:} false; then :
d4c059d5
ILT
4050 $as_echo_n "(cached) " >&6
4051else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053for as_dir in $PATH
4054do
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
4057 # Account for people who put trailing slashes in PATH elements.
4058case $as_dir/ in #((
4059 ./ | .// | /[cC]/* | \
4060 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4061 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4062 /usr/ucb/* ) ;;
4063 *)
4064 # OSF1 and SCO ODT 3.0 have their own names for install.
4065 # Don't use installbsd from OSF since it installs stuff as root
4066 # by default.
4067 for ac_prog in ginstall scoinst install; do
4068 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4069 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d4c059d5
ILT
4070 if test $ac_prog = install &&
4071 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4072 # AIX install. It has an incompatible calling convention.
4073 :
4074 elif test $ac_prog = install &&
4075 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4076 # program-specific install script used by HP pwplus--don't use.
4077 :
4078 else
4079 rm -rf conftest.one conftest.two conftest.dir
4080 echo one > conftest.one
4081 echo two > conftest.two
4082 mkdir conftest.dir
4083 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4084 test -s conftest.one && test -s conftest.two &&
4085 test -s conftest.dir/conftest.one &&
4086 test -s conftest.dir/conftest.two
4087 then
4088 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4089 break 3
4090 fi
4091 fi
4092 fi
4093 done
4094 done
4095 ;;
4096esac
4097
4098 done
4099IFS=$as_save_IFS
4100
4101rm -rf conftest.one conftest.two conftest.dir
4102
4103fi
4104 if test "${ac_cv_path_install+set}" = set; then
4105 INSTALL=$ac_cv_path_install
4106 else
4107 # As a last resort, use the slow shell script. Don't cache a
4108 # value for INSTALL within a source directory, because that will
4109 # break other packages using the cache if that directory is
4110 # removed, or if the value is a relative name.
4111 INSTALL=$ac_install_sh
4112 fi
4113fi
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4115$as_echo "$INSTALL" >&6; }
4116
4117# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4118# It thinks the first close brace ends the variable substitution.
4119test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4120
4121test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4122
4123test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4124
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4126$as_echo_n "checking whether build environment is sane... " >&6; }
d4c059d5
ILT
4127# Reject unsafe characters in $srcdir or the absolute working directory
4128# name. Accept space and tab only in the latter.
4129am_lf='
4130'
4131case `pwd` in
4132 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 4133 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
d4c059d5
ILT
4134esac
4135case $srcdir in
4136 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 4137 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
d4c059d5
ILT
4138esac
4139
22e05272 4140# Do 'set' in a subshell so we don't clobber the current shell's
d4c059d5
ILT
4141# arguments. Must try -L first in case configure is actually a
4142# symlink; some systems play weird games with the mod time of symlinks
4143# (eg FreeBSD returns the mod time of the symlink's containing
4144# directory).
4145if (
22e05272
JM
4146 am_has_slept=no
4147 for am_try in 1 2; do
4148 echo "timestamp, slept: $am_has_slept" > conftest.file
4149 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4150 if test "$*" = "X"; then
4151 # -L didn't work.
4152 set X `ls -t "$srcdir/configure" conftest.file`
4153 fi
4154 if test "$*" != "X $srcdir/configure conftest.file" \
4155 && test "$*" != "X conftest.file $srcdir/configure"; then
4156
4157 # If neither matched, then we have a broken ls. This can happen
4158 # if, for instance, CONFIG_SHELL is bash and it inherits a
4159 # broken ls alias from the environment. This has actually
4160 # happened. Such a system could not be considered "sane".
4161 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4162 alias in your environment" "$LINENO" 5
4163 fi
4164 if test "$2" = conftest.file || test $am_try -eq 2; then
4165 break
4166 fi
4167 # Just in case.
4168 sleep 1
4169 am_has_slept=yes
4170 done
d4c059d5
ILT
4171 test "$2" = conftest.file
4172 )
4173then
4174 # Ok.
4175 :
4176else
22e05272 4177 as_fn_error $? "newly created file is older than distributed files!
d4c059d5
ILT
4178Check your system clock" "$LINENO" 5
4179fi
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4181$as_echo "yes" >&6; }
22e05272
JM
4182# If we didn't sleep, we still need to ensure time stamps of config.status and
4183# generated files are strictly newer.
4184am_sleep_pid=
4185if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4186 ( sleep 1 ) &
4187 am_sleep_pid=$!
4188fi
4189
4190rm -f conftest.file
4191
d4c059d5
ILT
4192test "$program_prefix" != NONE &&
4193 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4194# Use a double $ so make ignores it.
4195test "$program_suffix" != NONE &&
4196 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4197# Double any \ or $.
4198# By default was `s,x,x', remove it if useless.
4199ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4200program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4201
d4c059d5
ILT
4202if test x"${MISSING+set}" != xset; then
4203 case $am_aux_dir in
4204 *\ * | *\ *)
4205 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4206 *)
4207 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4208 esac
4209fi
4210# Use eval to expand $SHELL
22e05272
JM
4211if eval "$MISSING --is-lightweight"; then
4212 am_missing_run="$MISSING "
d4c059d5
ILT
4213else
4214 am_missing_run=
22e05272
JM
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4216$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
d4c059d5
ILT
4217fi
4218
22e05272 4219if test x"${install_sh+set}" != xset; then
d4c059d5
ILT
4220 case $am_aux_dir in
4221 *\ * | *\ *)
4222 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4223 *)
4224 install_sh="\${SHELL} $am_aux_dir/install-sh"
4225 esac
4226fi
4227
22e05272
JM
4228# Installed binaries are usually stripped using 'strip' when the user
4229# run "make install-strip". However 'strip' might not be the right
d4c059d5 4230# tool to use in cross-compilation environments, therefore Automake
22e05272 4231# will honor the 'STRIP' environment variable to overrule this program.
d4c059d5
ILT
4232if test "$cross_compiling" != no; then
4233 if test -n "$ac_tool_prefix"; then
4234 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4235set dummy ${ac_tool_prefix}strip; ac_word=$2
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4238if ${ac_cv_prog_STRIP+:} false; then :
d4c059d5
ILT
4239 $as_echo_n "(cached) " >&6
4240else
4241 if test -n "$STRIP"; then
4242 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4243else
4244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245for as_dir in $PATH
4246do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4251 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4254 fi
4255done
4256 done
4257IFS=$as_save_IFS
4258
4259fi
4260fi
4261STRIP=$ac_cv_prog_STRIP
4262if test -n "$STRIP"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4264$as_echo "$STRIP" >&6; }
4265else
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267$as_echo "no" >&6; }
4268fi
4269
4270
4271fi
4272if test -z "$ac_cv_prog_STRIP"; then
4273 ac_ct_STRIP=$STRIP
4274 # Extract the first word of "strip", so it can be a program name with args.
4275set dummy strip; ac_word=$2
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4278if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d4c059d5
ILT
4279 $as_echo_n "(cached) " >&6
4280else
4281 if test -n "$ac_ct_STRIP"; then
4282 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4283else
4284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285for as_dir in $PATH
4286do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4291 ac_cv_prog_ac_ct_STRIP="strip"
4292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 break 2
4294 fi
4295done
4296 done
4297IFS=$as_save_IFS
4298
4299fi
4300fi
4301ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4302if test -n "$ac_ct_STRIP"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4304$as_echo "$ac_ct_STRIP" >&6; }
4305else
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307$as_echo "no" >&6; }
4308fi
4309
4310 if test "x$ac_ct_STRIP" = x; then
4311 STRIP=":"
4312 else
4313 case $cross_compiling:$ac_tool_warned in
4314yes:)
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317ac_tool_warned=yes ;;
4318esac
4319 STRIP=$ac_ct_STRIP
4320 fi
4321else
4322 STRIP="$ac_cv_prog_STRIP"
4323fi
4324
4325fi
4326INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4327
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4329$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4330if test -z "$MKDIR_P"; then
22e05272 4331 if ${ac_cv_path_mkdir+:} false; then :
d4c059d5
ILT
4332 $as_echo_n "(cached) " >&6
4333else
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4336do
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_prog in mkdir gmkdir; do
4340 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4341 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
d4c059d5
ILT
4342 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4343 'mkdir (GNU coreutils) '* | \
4344 'mkdir (coreutils) '* | \
4345 'mkdir (fileutils) '4.1*)
4346 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4347 break 3;;
4348 esac
4349 done
4350 done
4351 done
4352IFS=$as_save_IFS
4353
4354fi
4355
22e05272 4356 test -d ./--version && rmdir ./--version
d4c059d5
ILT
4357 if test "${ac_cv_path_mkdir+set}" = set; then
4358 MKDIR_P="$ac_cv_path_mkdir -p"
4359 else
4360 # As a last resort, use the slow shell script. Don't cache a
4361 # value for MKDIR_P within a source directory, because that will
4362 # break other packages using the cache if that directory is
4363 # removed, or if the value is a relative name.
d4c059d5
ILT
4364 MKDIR_P="$ac_install_sh -d"
4365 fi
4366fi
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4368$as_echo "$MKDIR_P" >&6; }
4369
d4c059d5
ILT
4370for ac_prog in gawk mawk nawk awk
4371do
4372 # Extract the first word of "$ac_prog", so it can be a program name with args.
4373set dummy $ac_prog; ac_word=$2
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4376if ${ac_cv_prog_AWK+:} false; then :
d4c059d5
ILT
4377 $as_echo_n "(cached) " >&6
4378else
4379 if test -n "$AWK"; then
4380 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4381else
4382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383for as_dir in $PATH
4384do
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4389 ac_cv_prog_AWK="$ac_prog"
4390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4392 fi
4393done
4394 done
4395IFS=$as_save_IFS
4396
4397fi
4398fi
4399AWK=$ac_cv_prog_AWK
4400if test -n "$AWK"; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4402$as_echo "$AWK" >&6; }
4403else
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405$as_echo "no" >&6; }
4406fi
4407
4408
4409 test -n "$AWK" && break
4410done
4411
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4413$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4414set x ${MAKE-make}
4415ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 4416if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
d4c059d5
ILT
4417 $as_echo_n "(cached) " >&6
4418else
4419 cat >conftest.make <<\_ACEOF
4420SHELL = /bin/sh
4421all:
4422 @echo '@@@%%%=$(MAKE)=@@@%%%'
4423_ACEOF
22e05272 4424# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
d4c059d5
ILT
4425case `${MAKE-make} -f conftest.make 2>/dev/null` in
4426 *@@@%%%=?*=@@@%%%*)
4427 eval ac_cv_prog_make_${ac_make}_set=yes;;
4428 *)
4429 eval ac_cv_prog_make_${ac_make}_set=no;;
4430esac
4431rm -f conftest.make
4432fi
4433if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4435$as_echo "yes" >&6; }
4436 SET_MAKE=
4437else
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439$as_echo "no" >&6; }
4440 SET_MAKE="MAKE=${MAKE-make}"
4441fi
4442
4443rm -rf .tst 2>/dev/null
4444mkdir .tst 2>/dev/null
4445if test -d .tst; then
4446 am__leading_dot=.
4447else
4448 am__leading_dot=_
4449fi
4450rmdir .tst 2>/dev/null
4451
22e05272
JM
4452# Check whether --enable-silent-rules was given.
4453if test "${enable_silent_rules+set}" = set; then :
4454 enableval=$enable_silent_rules;
4455fi
4456
4457case $enable_silent_rules in # (((
4458 yes) AM_DEFAULT_VERBOSITY=0;;
4459 no) AM_DEFAULT_VERBOSITY=1;;
4460 *) AM_DEFAULT_VERBOSITY=1;;
4461esac
4462am_make=${MAKE-make}
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4464$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4465if ${am_cv_make_support_nested_variables+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467else
4468 if $as_echo 'TRUE=$(BAR$(V))
4469BAR0=false
4470BAR1=true
4471V=1
4472am__doit:
4473 @$(TRUE)
4474.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4475 am_cv_make_support_nested_variables=yes
4476else
4477 am_cv_make_support_nested_variables=no
4478fi
4479fi
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4481$as_echo "$am_cv_make_support_nested_variables" >&6; }
4482if test $am_cv_make_support_nested_variables = yes; then
4483 AM_V='$(V)'
4484 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4485else
4486 AM_V=$AM_DEFAULT_VERBOSITY
4487 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4488fi
4489AM_BACKSLASH='\'
4490
d4c059d5
ILT
4491if test "`cd $srcdir && pwd`" != "`pwd`"; then
4492 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4493 # is not polluted with repeated "-I."
4494 am__isrc=' -I$(srcdir)'
4495 # test to see if srcdir already configured
4496 if test -f $srcdir/config.status; then
22e05272 4497 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
d4c059d5
ILT
4498 fi
4499fi
4500
4501# test whether we have cygpath
4502if test -z "$CYGPATH_W"; then
4503 if (cygpath --version) >/dev/null 2>/dev/null; then
4504 CYGPATH_W='cygpath -w'
4505 else
4506 CYGPATH_W=echo
4507 fi
4508fi
4509
4510
4511# Define the identity of the package.
4512 PACKAGE='libbacktrace'
4513 VERSION='version-unused'
4514
4515
4516# Some tools Automake needs.
4517
4518ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4519
4520
4521AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4522
4523
4524AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4525
4526
4527AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4528
4529
4530MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4531
22e05272
JM
4532# For better backward compatibility. To be removed once Automake 1.9.x
4533# dies out for good. For more background, see:
4534# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4535# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4536mkdir_p='$(MKDIR_P)'
4537
4538# We need awk for the "check" target (and possibly the TAP driver). The
4539# system "awk" is bad on some platforms.
df96c0f7
MH
4540# Always define AMTAR for backward compatibility. Yes, it's still used
4541# in the wild :-( We should find a proper way to deprecate it ...
4542AMTAR='$${TAR-tar}'
d4c059d5 4543
22e05272
JM
4544
4545# We'll loop over all known methods to create a tar archive until one works.
4546_am_tools='gnutar pax cpio none'
4547
df96c0f7 4548am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d4c059d5
ILT
4549
4550
4551
4552
d4c059d5
ILT
4553
4554
22e05272
JM
4555# POSIX will say in a future version that running "rm -f" with no argument
4556# is OK; and we want to be able to make that assumption in our Makefile
4557# recipes. So use an aggressive probe to check that the usage we want is
4558# actually supported "in the wild" to an acceptable degree.
4559# See automake bug#10828.
4560# To make any issue more visible, cause the running configure to be aborted
4561# by default if the 'rm' program in use doesn't match our expectations; the
4562# user can still override this though.
4563if rm -f && rm -fr && rm -rf; then : OK; else
4564 cat >&2 <<'END'
4565Oops!
4566
4567Your 'rm' program seems unable to run without file operands specified
4568on the command line, even when the '-f' option is present. This is contrary
4569to the behaviour of most rm programs out there, and not conforming with
4570the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4571
4572Please tell bug-automake@gnu.org about your system, including the value
4573of your $PATH and any error possibly output before this message. This
4574can help us improve future automake versions.
4575
4576END
4577 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4578 echo 'Configuration will proceed anyway, since you have set the' >&2
4579 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4580 echo >&2
4581 else
4582 cat >&2 <<'END'
4583Aborting the configuration process, to ensure you take notice of the issue.
4584
4585You can download and install GNU coreutils to get an 'rm' implementation
4586that behaves properly: <http://www.gnu.org/software/coreutils/>.
4587
4588If you want to complete the configuration process using your problematic
4589'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4590to "yes", and re-run configure.
4591
4592END
4593 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4594 fi
4595fi
4596
4597
d4c059d5
ILT
4598
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4600$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4601 # Check whether --enable-maintainer-mode was given.
4602if test "${enable_maintainer_mode+set}" = set; then :
4603 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4604else
4605 USE_MAINTAINER_MODE=no
4606fi
4607
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4609$as_echo "$USE_MAINTAINER_MODE" >&6; }
4610 if test $USE_MAINTAINER_MODE = yes; then
4611 MAINTAINER_MODE_TRUE=
4612 MAINTAINER_MODE_FALSE='#'
4613else
4614 MAINTAINER_MODE_TRUE='#'
4615 MAINTAINER_MODE_FALSE=
4616fi
4617
4618 MAINT=$MAINTAINER_MODE_TRUE
4619
4620
4621
4622
4623# Check whether --with-target-subdir was given.
4624if test "${with_target_subdir+set}" = set; then :
4625 withval=$with_target_subdir;
eff02e4f 4626fi
eff02e4f 4627
eff02e4f 4628
d4c059d5
ILT
4629# We must force CC to /not/ be precious variables; otherwise
4630# the wrong, non-multilib-adjusted value will be used in multilibs.
4631# As a side effect, we have to subst CFLAGS ourselves.
eff02e4f 4632
d4c059d5
ILT
4633
4634ac_ext=c
4635ac_cpp='$CPP $CPPFLAGS'
4636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638ac_compiler_gnu=$ac_cv_c_compiler_gnu
4639if test -n "$ac_tool_prefix"; then
4640 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4641set dummy ${ac_tool_prefix}gcc; ac_word=$2
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4644if ${ac_cv_prog_CC+:} false; then :
d4c059d5 4645 $as_echo_n "(cached) " >&6
eff02e4f 4646else
d4c059d5
ILT
4647 if test -n "$CC"; then
4648 ac_cv_prog_CC="$CC" # Let the user override the test.
4649else
4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH
4652do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4657 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4660 fi
4661done
4662 done
4663IFS=$as_save_IFS
eff02e4f 4664
eff02e4f 4665fi
eff02e4f 4666fi
d4c059d5
ILT
4667CC=$ac_cv_prog_CC
4668if test -n "$CC"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4670$as_echo "$CC" >&6; }
eff02e4f 4671else
d4c059d5
ILT
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673$as_echo "no" >&6; }
4674fi
eff02e4f 4675
eff02e4f 4676
eff02e4f 4677fi
d4c059d5
ILT
4678if test -z "$ac_cv_prog_CC"; then
4679 ac_ct_CC=$CC
4680 # Extract the first word of "gcc", so it can be a program name with args.
4681set dummy gcc; ac_word=$2
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4684if ${ac_cv_prog_ac_ct_CC+:} false; then :
d4c059d5
ILT
4685 $as_echo_n "(cached) " >&6
4686else
4687 if test -n "$ac_ct_CC"; then
4688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4689else
4690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691for as_dir in $PATH
4692do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4697 ac_cv_prog_ac_ct_CC="gcc"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4700 fi
4701done
4702 done
4703IFS=$as_save_IFS
eff02e4f
ILT
4704
4705fi
eff02e4f 4706fi
d4c059d5
ILT
4707ac_ct_CC=$ac_cv_prog_ac_ct_CC
4708if test -n "$ac_ct_CC"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4710$as_echo "$ac_ct_CC" >&6; }
eff02e4f 4711else
d4c059d5
ILT
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713$as_echo "no" >&6; }
4714fi
eff02e4f 4715
d4c059d5
ILT
4716 if test "x$ac_ct_CC" = x; then
4717 CC=""
4718 else
4719 case $cross_compiling:$ac_tool_warned in
4720yes:)
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4723ac_tool_warned=yes ;;
4724esac
4725 CC=$ac_ct_CC
4726 fi
4727else
4728 CC="$ac_cv_prog_CC"
4729fi
eff02e4f 4730
d4c059d5
ILT
4731if test -z "$CC"; then
4732 if test -n "$ac_tool_prefix"; then
4733 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4734set dummy ${ac_tool_prefix}cc; ac_word=$2
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4737if ${ac_cv_prog_CC+:} false; then :
d4c059d5 4738 $as_echo_n "(cached) " >&6
eff02e4f 4739else
d4c059d5
ILT
4740 if test -n "$CC"; then
4741 ac_cv_prog_CC="$CC" # Let the user override the test.
4742else
4743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744for as_dir in $PATH
4745do
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4750 ac_cv_prog_CC="${ac_tool_prefix}cc"
4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 break 2
4753 fi
4754done
4755 done
4756IFS=$as_save_IFS
eff02e4f 4757
d4c059d5
ILT
4758fi
4759fi
4760CC=$ac_cv_prog_CC
4761if test -n "$CC"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4763$as_echo "$CC" >&6; }
4764else
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766$as_echo "no" >&6; }
4767fi
eff02e4f 4768
eff02e4f 4769
d4c059d5
ILT
4770 fi
4771fi
4772if test -z "$CC"; then
4773 # Extract the first word of "cc", so it can be a program name with args.
4774set dummy cc; ac_word=$2
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4777if ${ac_cv_prog_CC+:} false; then :
d4c059d5 4778 $as_echo_n "(cached) " >&6
eff02e4f 4779else
d4c059d5
ILT
4780 if test -n "$CC"; then
4781 ac_cv_prog_CC="$CC" # Let the user override the test.
4782else
4783 ac_prog_rejected=no
4784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785for as_dir in $PATH
4786do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4791 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4792 ac_prog_rejected=yes
4793 continue
4794 fi
4795 ac_cv_prog_CC="cc"
4796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 break 2
4798 fi
4799done
4800 done
4801IFS=$as_save_IFS
eff02e4f 4802
d4c059d5
ILT
4803if test $ac_prog_rejected = yes; then
4804 # We found a bogon in the path, so make sure we never use it.
4805 set dummy $ac_cv_prog_CC
4806 shift
4807 if test $# != 0; then
4808 # We chose a different compiler from the bogus one.
4809 # However, it has the same basename, so the bogon will be chosen
4810 # first if we set CC to just the basename; use the full file name.
4811 shift
4812 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4813 fi
eff02e4f 4814fi
eff02e4f 4815fi
eff02e4f 4816fi
d4c059d5
ILT
4817CC=$ac_cv_prog_CC
4818if test -n "$CC"; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4820$as_echo "$CC" >&6; }
eff02e4f 4821else
d4c059d5
ILT
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823$as_echo "no" >&6; }
eff02e4f 4824fi
d4c059d5
ILT
4825
4826
4827fi
4828if test -z "$CC"; then
4829 if test -n "$ac_tool_prefix"; then
4830 for ac_prog in cl.exe
4831 do
4832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4833set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4835$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4836if ${ac_cv_prog_CC+:} false; then :
eff02e4f
ILT
4837 $as_echo_n "(cached) " >&6
4838else
d4c059d5
ILT
4839 if test -n "$CC"; then
4840 ac_cv_prog_CC="$CC" # Let the user override the test.
4841else
4842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4849 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853done
4854 done
4855IFS=$as_save_IFS
eff02e4f 4856
d4c059d5
ILT
4857fi
4858fi
4859CC=$ac_cv_prog_CC
4860if test -n "$CC"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4862$as_echo "$CC" >&6; }
4863else
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865$as_echo "no" >&6; }
4866fi
eff02e4f 4867
eff02e4f 4868
d4c059d5
ILT
4869 test -n "$CC" && break
4870 done
eff02e4f 4871fi
d4c059d5
ILT
4872if test -z "$CC"; then
4873 ac_ct_CC=$CC
4874 for ac_prog in cl.exe
4875do
4876 # Extract the first word of "$ac_prog", so it can be a program name with args.
4877set dummy $ac_prog; ac_word=$2
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4880if ${ac_cv_prog_ac_ct_CC+:} false; then :
d4c059d5
ILT
4881 $as_echo_n "(cached) " >&6
4882else
4883 if test -n "$ac_ct_CC"; then
4884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4885else
4886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887for as_dir in $PATH
4888do
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4893 ac_cv_prog_ac_ct_CC="$ac_prog"
4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 break 2
4896 fi
eff02e4f 4897done
d4c059d5
ILT
4898 done
4899IFS=$as_save_IFS
eff02e4f
ILT
4900
4901fi
d4c059d5
ILT
4902fi
4903ac_ct_CC=$ac_cv_prog_ac_ct_CC
4904if test -n "$ac_ct_CC"; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4906$as_echo "$ac_ct_CC" >&6; }
4907else
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909$as_echo "no" >&6; }
eff02e4f
ILT
4910fi
4911
eff02e4f 4912
d4c059d5
ILT
4913 test -n "$ac_ct_CC" && break
4914done
eff02e4f 4915
d4c059d5
ILT
4916 if test "x$ac_ct_CC" = x; then
4917 CC=""
4918 else
4919 case $cross_compiling:$ac_tool_warned in
4920yes:)
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4923ac_tool_warned=yes ;;
eff02e4f 4924esac
d4c059d5
ILT
4925 CC=$ac_ct_CC
4926 fi
eff02e4f
ILT
4927fi
4928
d4c059d5 4929fi
eff02e4f 4930
eff02e4f 4931
d4c059d5
ILT
4932test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4934as_fn_error $? "no acceptable C compiler found in \$PATH
4935See \`config.log' for more details" "$LINENO" 5; }
d4c059d5
ILT
4936
4937# Provide some information about the compiler.
4938$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4939set X $ac_compile
4940ac_compiler=$2
4941for ac_option in --version -v -V -qversion; do
4942 { { ac_try="$ac_compiler $ac_option >&5"
4943case "(($ac_try" in
4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4946esac
4947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4948$as_echo "$ac_try_echo"; } >&5
4949 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4950 ac_status=$?
4951 if test -s conftest.err; then
4952 sed '10a\
4953... rest of stderr output deleted ...
4954 10q' conftest.err >conftest.er1
4955 cat conftest.er1 >&5
d4c059d5 4956 fi
22e05272 4957 rm -f conftest.er1 conftest.err
d4c059d5
ILT
4958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4959 test $ac_status = 0; }
4960done
4961
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4963$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4964if ${ac_cv_c_compiler_gnu+:} false; then :
d4c059d5
ILT
4965 $as_echo_n "(cached) " >&6
4966else
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968/* end confdefs.h. */
4969
4970int
4971main ()
4972{
4973#ifndef __GNUC__
4974 choke me
4975#endif
4976
4977 ;
4978 return 0;
4979}
4980_ACEOF
4981if ac_fn_c_try_compile "$LINENO"; then :
4982 ac_compiler_gnu=yes
4983else
4984 ac_compiler_gnu=no
eff02e4f 4985fi
d4c059d5
ILT
4986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987ac_cv_c_compiler_gnu=$ac_compiler_gnu
eff02e4f 4988
eff02e4f 4989fi
d4c059d5
ILT
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4991$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4992if test $ac_compiler_gnu = yes; then
4993 GCC=yes
eff02e4f 4994else
d4c059d5 4995 GCC=
eff02e4f 4996fi
d4c059d5
ILT
4997ac_test_CFLAGS=${CFLAGS+set}
4998ac_save_CFLAGS=$CFLAGS
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5000$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 5001if ${ac_cv_prog_cc_g+:} false; then :
d4c059d5
ILT
5002 $as_echo_n "(cached) " >&6
5003else
5004 ac_save_c_werror_flag=$ac_c_werror_flag
5005 ac_c_werror_flag=yes
5006 ac_cv_prog_cc_g=no
5007 CFLAGS="-g"
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009/* end confdefs.h. */
eff02e4f 5010
d4c059d5
ILT
5011int
5012main ()
5013{
eff02e4f 5014
d4c059d5
ILT
5015 ;
5016 return 0;
5017}
5018_ACEOF
5019if ac_fn_c_try_compile "$LINENO"; then :
5020 ac_cv_prog_cc_g=yes
eff02e4f 5021else
d4c059d5
ILT
5022 CFLAGS=""
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024/* end confdefs.h. */
eff02e4f 5025
d4c059d5
ILT
5026int
5027main ()
5028{
eff02e4f 5029
d4c059d5
ILT
5030 ;
5031 return 0;
5032}
5033_ACEOF
5034if ac_fn_c_try_compile "$LINENO"; then :
eff02e4f 5035
d4c059d5
ILT
5036else
5037 ac_c_werror_flag=$ac_save_c_werror_flag
5038 CFLAGS="-g"
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040/* end confdefs.h. */
eff02e4f 5041
d4c059d5
ILT
5042int
5043main ()
5044{
5045
5046 ;
5047 return 0;
5048}
5049_ACEOF
5050if ac_fn_c_try_compile "$LINENO"; then :
5051 ac_cv_prog_cc_g=yes
5052fi
5053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054fi
5055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056fi
5057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058 ac_c_werror_flag=$ac_save_c_werror_flag
5059fi
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5061$as_echo "$ac_cv_prog_cc_g" >&6; }
5062if test "$ac_test_CFLAGS" = set; then
5063 CFLAGS=$ac_save_CFLAGS
5064elif test $ac_cv_prog_cc_g = yes; then
5065 if test "$GCC" = yes; then
5066 CFLAGS="-g -O2"
5067 else
5068 CFLAGS="-g"
5069 fi
eff02e4f 5070else
d4c059d5
ILT
5071 if test "$GCC" = yes; then
5072 CFLAGS="-O2"
5073 else
5074 CFLAGS=
5075 fi
5076fi
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5078$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 5079if ${ac_cv_prog_cc_c89+:} false; then :
d4c059d5
ILT
5080 $as_echo_n "(cached) " >&6
5081else
5082 ac_cv_prog_cc_c89=no
5083ac_save_CC=$CC
5084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085/* end confdefs.h. */
5086#include <stdarg.h>
5087#include <stdio.h>
22e05272 5088struct stat;
d4c059d5
ILT
5089/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5090struct buf { int x; };
5091FILE * (*rcsopen) (struct buf *, struct stat *, int);
5092static char *e (p, i)
5093 char **p;
5094 int i;
5095{
5096 return p[i];
5097}
5098static char *f (char * (*g) (char **, int), char **p, ...)
5099{
5100 char *s;
5101 va_list v;
5102 va_start (v,p);
5103 s = g (p, va_arg (v,int));
5104 va_end (v);
5105 return s;
5106}
5107
5108/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5109 function prototypes and stuff, but not '\xHH' hex character constants.
5110 These don't provoke an error unfortunately, instead are silently treated
5111 as 'x'. The following induces an error, until -std is added to get
5112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5113 array size at least. It's necessary to write '\x00'==0 to get something
5114 that's true only with -std. */
5115int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5116
5117/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5118 inside strings and character constants. */
5119#define FOO(x) 'x'
5120int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5121
5122int test (int i, double x);
5123struct s1 {int (*f) (int a);};
5124struct s2 {int (*f) (double a);};
5125int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5126int argc;
5127char **argv;
5128int
5129main ()
5130{
5131return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5132 ;
5133 return 0;
5134}
5135_ACEOF
5136for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5138do
5139 CC="$ac_save_CC $ac_arg"
5140 if ac_fn_c_try_compile "$LINENO"; then :
5141 ac_cv_prog_cc_c89=$ac_arg
eff02e4f 5142fi
d4c059d5
ILT
5143rm -f core conftest.err conftest.$ac_objext
5144 test "x$ac_cv_prog_cc_c89" != "xno" && break
5145done
5146rm -f conftest.$ac_ext
5147CC=$ac_save_CC
eff02e4f
ILT
5148
5149fi
d4c059d5
ILT
5150# AC_CACHE_VAL
5151case "x$ac_cv_prog_cc_c89" in
5152 x)
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5154$as_echo "none needed" >&6; } ;;
5155 xno)
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5157$as_echo "unsupported" >&6; } ;;
5158 *)
5159 CC="$CC $ac_cv_prog_cc_c89"
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5161$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5162esac
5163if test "x$ac_cv_prog_cc_c89" != xno; then :
eff02e4f 5164
eff02e4f
ILT
5165fi
5166
d4c059d5
ILT
5167ac_ext=c
5168ac_cpp='$CPP $CPPFLAGS'
5169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171ac_compiler_gnu=$ac_cv_c_compiler_gnu
eff02e4f 5172
22e05272
JM
5173ac_ext=c
5174ac_cpp='$CPP $CPPFLAGS'
5175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5177ac_compiler_gnu=$ac_cv_c_compiler_gnu
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5179$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5180if ${am_cv_prog_cc_c_o+:} false; then :
5181 $as_echo_n "(cached) " >&6
5182else
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184/* end confdefs.h. */
5185
5186int
5187main ()
5188{
5189
5190 ;
5191 return 0;
5192}
5193_ACEOF
5194 # Make sure it works both with $CC and with simple cc.
5195 # Following AC_PROG_CC_C_O, we do the test twice because some
5196 # compilers refuse to overwrite an existing .o file with -o,
5197 # though they will create one.
5198 am_cv_prog_cc_c_o=yes
5199 for am_i in 1 2; do
5200 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5201 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } \
5205 && test -f conftest2.$ac_objext; then
5206 : OK
5207 else
5208 am_cv_prog_cc_c_o=no
5209 break
5210 fi
5211 done
5212 rm -f core conftest*
5213 unset am_i
5214fi
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5216$as_echo "$am_cv_prog_cc_c_o" >&6; }
5217if test "$am_cv_prog_cc_c_o" != yes; then
5218 # Losing compiler, so override with the script.
5219 # FIXME: It is wrong to rewrite CC.
5220 # But if we don't then we get into trouble of one sort or another.
5221 # A longer-term fix would be to have automake use am__CC in this case,
5222 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5223 CC="$am_aux_dir/compile $CC"
5224fi
5225ac_ext=c
5226ac_cpp='$CPP $CPPFLAGS'
5227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5229ac_compiler_gnu=$ac_cv_c_compiler_gnu
5230
5231
eff02e4f
ILT
5232
5233
5234
5235
5236if test -n "$ac_tool_prefix"; then
5237 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5238set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5240$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5241if ${ac_cv_prog_RANLIB+:} false; then :
eff02e4f
ILT
5242 $as_echo_n "(cached) " >&6
5243else
5244 if test -n "$RANLIB"; then
5245 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5246else
5247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248for as_dir in $PATH
5249do
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5254 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 break 2
5257 fi
5258done
5259 done
5260IFS=$as_save_IFS
5261
5262fi
5263fi
5264RANLIB=$ac_cv_prog_RANLIB
5265if test -n "$RANLIB"; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5267$as_echo "$RANLIB" >&6; }
5268else
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270$as_echo "no" >&6; }
5271fi
5272
5273
5274fi
5275if test -z "$ac_cv_prog_RANLIB"; then
5276 ac_ct_RANLIB=$RANLIB
5277 # Extract the first word of "ranlib", so it can be a program name with args.
5278set dummy ranlib; ac_word=$2
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5281if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
eff02e4f
ILT
5282 $as_echo_n "(cached) " >&6
5283else
5284 if test -n "$ac_ct_RANLIB"; then
5285 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5286else
5287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288for as_dir in $PATH
5289do
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5294 ac_cv_prog_ac_ct_RANLIB="ranlib"
5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
5297 fi
5298done
5299 done
5300IFS=$as_save_IFS
5301
5302fi
5303fi
5304ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5305if test -n "$ac_ct_RANLIB"; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5307$as_echo "$ac_ct_RANLIB" >&6; }
5308else
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310$as_echo "no" >&6; }
5311fi
5312
5313 if test "x$ac_ct_RANLIB" = x; then
5314 RANLIB=":"
5315 else
5316 case $cross_compiling:$ac_tool_warned in
5317yes:)
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5320ac_tool_warned=yes ;;
5321esac
5322 RANLIB=$ac_ct_RANLIB
5323 fi
5324else
5325 RANLIB="$ac_cv_prog_RANLIB"
5326fi
5327
5328
5329for ac_prog in gawk mawk nawk awk
5330do
5331 # Extract the first word of "$ac_prog", so it can be a program name with args.
5332set dummy $ac_prog; ac_word=$2
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5335if ${ac_cv_prog_AWK+:} false; then :
eff02e4f
ILT
5336 $as_echo_n "(cached) " >&6
5337else
5338 if test -n "$AWK"; then
5339 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5340else
5341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342for as_dir in $PATH
5343do
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5348 ac_cv_prog_AWK="$ac_prog"
5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 break 2
5351 fi
5352done
5353 done
5354IFS=$as_save_IFS
5355
5356fi
5357fi
5358AWK=$ac_cv_prog_AWK
5359if test -n "$AWK"; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5361$as_echo "$AWK" >&6; }
5362else
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364$as_echo "no" >&6; }
5365fi
5366
5367
5368 test -n "$AWK" && break
5369done
5370
5371case "$AWK" in
22e05272 5372"") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
eff02e4f
ILT
5373esac
5374
10f48858
TV
5375# Extract the first word of "dwz", so it can be a program name with args.
5376set dummy dwz; ac_word=$2
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378$as_echo_n "checking for $ac_word... " >&6; }
5379if ${ac_cv_prog_DWZ+:} false; then :
5380 $as_echo_n "(cached) " >&6
5381else
5382 if test -n "$DWZ"; then
5383 ac_cv_prog_DWZ="$DWZ" # Let the user override the test.
5384else
5385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386for as_dir in $PATH
5387do
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392 ac_cv_prog_DWZ="dwz"
5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 break 2
5395 fi
5396done
5397 done
5398IFS=$as_save_IFS
5399
5400fi
5401fi
5402DWZ=$ac_cv_prog_DWZ
5403if test -n "$DWZ"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DWZ" >&5
5405$as_echo "$DWZ" >&6; }
5406else
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408$as_echo "no" >&6; }
5409fi
5410
5411
5412 if test "$DWZ" != ""; then
5413 HAVE_DWZ_TRUE=
5414 HAVE_DWZ_FALSE='#'
5415else
5416 HAVE_DWZ_TRUE='#'
5417 HAVE_DWZ_FALSE=
5418fi
5419
5420
eff02e4f
ILT
5421case `pwd` in
5422 *\ * | *\ *)
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5424$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5425esac
5426
5427
5428
5429macro_version='2.2.7a'
5430macro_revision='1.3134'
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444ltmain="$ac_aux_dir/ltmain.sh"
5445
5446# Backslashify metacharacters that are still active within
5447# double-quoted strings.
5448sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5449
5450# Same as above, but do not quote variable references.
5451double_quote_subst='s/\(["`\\]\)/\\\1/g'
5452
5453# Sed substitution to delay expansion of an escaped shell variable in a
5454# double_quote_subst'ed string.
5455delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5456
5457# Sed substitution to delay expansion of an escaped single quote.
5458delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5459
5460# Sed substitution to avoid accidental globbing in evaled expressions
5461no_glob_subst='s/\*/\\\*/g'
5462
5463ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5464ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5465ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5466
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5468$as_echo_n "checking how to print strings... " >&6; }
5469# Test print first, because it will be a builtin if present.
5470if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5471 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5472 ECHO='print -r --'
5473elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5474 ECHO='printf %s\n'
5475else
5476 # Use this function as a fallback that always works.
5477 func_fallback_echo ()
5478 {
5479 eval 'cat <<_LTECHO_EOF
5480$1
5481_LTECHO_EOF'
5482 }
5483 ECHO='func_fallback_echo'
5484fi
5485
5486# func_echo_all arg...
5487# Invoke $ECHO with all args, space-separated.
5488func_echo_all ()
5489{
5490 $ECHO ""
5491}
5492
5493case "$ECHO" in
5494 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5495$as_echo "printf" >&6; } ;;
5496 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5497$as_echo "print -r" >&6; } ;;
5498 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5499$as_echo "cat" >&6; } ;;
5500esac
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
d4c059d5 5516$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 5517if ${ac_cv_path_SED+:} false; then :
eff02e4f
ILT
5518 $as_echo_n "(cached) " >&6
5519else
d4c059d5
ILT
5520 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5521 for ac_i in 1 2 3 4 5 6 7; do
5522 ac_script="$ac_script$as_nl$ac_script"
5523 done
5524 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5525 { ac_script=; unset ac_script;}
5526 if test -z "$SED"; then
5527 ac_path_SED_found=false
eff02e4f
ILT
5528 # Loop through the user's path and test for each of PROGNAME-LIST
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d4c059d5 5530for as_dir in $PATH
eff02e4f
ILT
5531do
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
d4c059d5 5534 for ac_prog in sed gsed; do
eff02e4f 5535 for ac_exec_ext in '' $ac_executable_extensions; do
d4c059d5 5536 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5537 as_fn_executable_p "$ac_path_SED" || continue
d4c059d5
ILT
5538# Check for GNU ac_path_SED and select it if it is found.
5539 # Check for GNU $ac_path_SED
5540case `"$ac_path_SED" --version 2>&1` in
eff02e4f 5541*GNU*)
d4c059d5 5542 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
eff02e4f
ILT
5543*)
5544 ac_count=0
5545 $as_echo_n 0123456789 >"conftest.in"
5546 while :
5547 do
5548 cat "conftest.in" "conftest.in" >"conftest.tmp"
5549 mv "conftest.tmp" "conftest.in"
5550 cp "conftest.in" "conftest.nl"
d4c059d5
ILT
5551 $as_echo '' >> "conftest.nl"
5552 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
eff02e4f
ILT
5553 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5554 as_fn_arith $ac_count + 1 && ac_count=$as_val
d4c059d5 5555 if test $ac_count -gt ${ac_path_SED_max-0}; then
eff02e4f 5556 # Best one so far, save it but keep looking for a better one
d4c059d5
ILT
5557 ac_cv_path_SED="$ac_path_SED"
5558 ac_path_SED_max=$ac_count
eff02e4f
ILT
5559 fi
5560 # 10*(2^10) chars as input seems more than enough
5561 test $ac_count -gt 10 && break
5562 done
5563 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5564esac
5565
d4c059d5 5566 $ac_path_SED_found && break 3
eff02e4f
ILT
5567 done
5568 done
5569 done
5570IFS=$as_save_IFS
d4c059d5 5571 if test -z "$ac_cv_path_SED"; then
22e05272 5572 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
eff02e4f
ILT
5573 fi
5574else
d4c059d5 5575 ac_cv_path_SED=$SED
eff02e4f
ILT
5576fi
5577
eff02e4f 5578fi
d4c059d5
ILT
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5580$as_echo "$ac_cv_path_SED" >&6; }
5581 SED="$ac_cv_path_SED"
5582 rm -f conftest.sed
5583
5584test -z "$SED" && SED=sed
5585Xsed="$SED -e 1s/^X//"
5586
5587
5588
5589
5590
5591
5592
5593
5594
eff02e4f
ILT
5595
5596
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5598$as_echo_n "checking for fgrep... " >&6; }
22e05272 5599if ${ac_cv_path_FGREP+:} false; then :
eff02e4f
ILT
5600 $as_echo_n "(cached) " >&6
5601else
5602 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5603 then ac_cv_path_FGREP="$GREP -F"
5604 else
5605 if test -z "$FGREP"; then
5606 ac_path_FGREP_found=false
5607 # Loop through the user's path and test for each of PROGNAME-LIST
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5610do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_prog in fgrep; do
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5616 as_fn_executable_p "$ac_path_FGREP" || continue
eff02e4f
ILT
5617# Check for GNU ac_path_FGREP and select it if it is found.
5618 # Check for GNU $ac_path_FGREP
5619case `"$ac_path_FGREP" --version 2>&1` in
5620*GNU*)
5621 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5622*)
5623 ac_count=0
5624 $as_echo_n 0123456789 >"conftest.in"
5625 while :
5626 do
5627 cat "conftest.in" "conftest.in" >"conftest.tmp"
5628 mv "conftest.tmp" "conftest.in"
5629 cp "conftest.in" "conftest.nl"
5630 $as_echo 'FGREP' >> "conftest.nl"
5631 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5633 as_fn_arith $ac_count + 1 && ac_count=$as_val
5634 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5635 # Best one so far, save it but keep looking for a better one
5636 ac_cv_path_FGREP="$ac_path_FGREP"
5637 ac_path_FGREP_max=$ac_count
5638 fi
5639 # 10*(2^10) chars as input seems more than enough
5640 test $ac_count -gt 10 && break
5641 done
5642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5643esac
5644
5645 $ac_path_FGREP_found && break 3
5646 done
5647 done
5648 done
5649IFS=$as_save_IFS
5650 if test -z "$ac_cv_path_FGREP"; then
22e05272 5651 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
eff02e4f
ILT
5652 fi
5653else
5654 ac_cv_path_FGREP=$FGREP
5655fi
5656
5657 fi
5658fi
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5660$as_echo "$ac_cv_path_FGREP" >&6; }
5661 FGREP="$ac_cv_path_FGREP"
5662
5663
5664test -z "$GREP" && GREP=grep
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684# Check whether --with-gnu-ld was given.
5685if test "${with_gnu_ld+set}" = set; then :
5686 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5687else
5688 with_gnu_ld=no
5689fi
5690
5691ac_prog=ld
5692if test "$GCC" = yes; then
5693 # Check if gcc -print-prog-name=ld gives a path.
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5695$as_echo_n "checking for ld used by $CC... " >&6; }
5696 case $host in
5697 *-*-mingw*)
5698 # gcc leaves a trailing carriage return which upsets mingw
5699 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5700 *)
5701 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5702 esac
5703 case $ac_prog in
5704 # Accept absolute paths.
5705 [\\/]* | ?:[\\/]*)
5706 re_direlt='/[^/][^/]*/\.\./'
5707 # Canonicalize the pathname of ld
5708 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5709 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5710 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5711 done
5712 test -z "$LD" && LD="$ac_prog"
5713 ;;
5714 "")
5715 # If it fails, then pretend we aren't using GCC.
5716 ac_prog=ld
5717 ;;
5718 *)
5719 # If it is relative, then search for the first ld in PATH.
5720 with_gnu_ld=unknown
5721 ;;
5722 esac
5723elif test "$with_gnu_ld" = yes; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5725$as_echo_n "checking for GNU ld... " >&6; }
5726else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5728$as_echo_n "checking for non-GNU ld... " >&6; }
5729fi
22e05272 5730if ${lt_cv_path_LD+:} false; then :
eff02e4f
ILT
5731 $as_echo_n "(cached) " >&6
5732else
5733 if test -z "$LD"; then
5734 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5735 for ac_dir in $PATH; do
5736 IFS="$lt_save_ifs"
5737 test -z "$ac_dir" && ac_dir=.
5738 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5739 lt_cv_path_LD="$ac_dir/$ac_prog"
5740 # Check to see if the program is GNU ld. I'd rather use --version,
5741 # but apparently some variants of GNU ld only accept -v.
5742 # Break only if it was the GNU/non-GNU ld that we prefer.
5743 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5744 *GNU* | *'with BFD'*)
5745 test "$with_gnu_ld" != no && break
5746 ;;
5747 *)
5748 test "$with_gnu_ld" != yes && break
5749 ;;
5750 esac
5751 fi
5752 done
5753 IFS="$lt_save_ifs"
5754else
5755 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5756fi
5757fi
5758
5759LD="$lt_cv_path_LD"
5760if test -n "$LD"; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5762$as_echo "$LD" >&6; }
5763else
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765$as_echo "no" >&6; }
5766fi
22e05272 5767test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
eff02e4f
ILT
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5769$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 5770if ${lt_cv_prog_gnu_ld+:} false; then :
eff02e4f
ILT
5771 $as_echo_n "(cached) " >&6
5772else
5773 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5774case `$LD -v 2>&1 </dev/null` in
5775*GNU* | *'with BFD'*)
5776 lt_cv_prog_gnu_ld=yes
5777 ;;
5778*)
5779 lt_cv_prog_gnu_ld=no
5780 ;;
5781esac
5782fi
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5784$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5785with_gnu_ld=$lt_cv_prog_gnu_ld
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5796$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 5797if ${lt_cv_path_NM+:} false; then :
eff02e4f
ILT
5798 $as_echo_n "(cached) " >&6
5799else
5800 if test -n "$NM"; then
5801 # Let the user override the test.
5802 lt_cv_path_NM="$NM"
5803else
5804 lt_nm_to_check="${ac_tool_prefix}nm"
5805 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5806 lt_nm_to_check="$lt_nm_to_check nm"
5807 fi
5808 for lt_tmp_nm in $lt_nm_to_check; do
5809 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5810 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5811 IFS="$lt_save_ifs"
5812 test -z "$ac_dir" && ac_dir=.
5813 tmp_nm="$ac_dir/$lt_tmp_nm"
5814 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5815 # Check to see if the nm accepts a BSD-compat flag.
5816 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5817 # nm: unknown option "B" ignored
5818 # Tru64's nm complains that /dev/null is an invalid object file
5819 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5820 */dev/null* | *'Invalid file or object type'*)
5821 lt_cv_path_NM="$tmp_nm -B"
5822 break
5823 ;;
5824 *)
5825 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5826 */dev/null*)
5827 lt_cv_path_NM="$tmp_nm -p"
5828 break
5829 ;;
5830 *)
5831 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5832 continue # so that we can try to find one that supports BSD flags
5833 ;;
5834 esac
5835 ;;
5836 esac
5837 fi
5838 done
5839 IFS="$lt_save_ifs"
5840 done
5841 : ${lt_cv_path_NM=no}
5842fi
5843fi
5844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5845$as_echo "$lt_cv_path_NM" >&6; }
5846if test "$lt_cv_path_NM" != "no"; then
5847 NM="$lt_cv_path_NM"
5848else
5849 # Didn't find any BSD compatible name lister, look for dumpbin.
5850 if test -n "$DUMPBIN"; then :
5851 # Let the user override the test.
5852 else
5853 if test -n "$ac_tool_prefix"; then
5854 for ac_prog in dumpbin "link -dump"
5855 do
5856 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5857set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5860if ${ac_cv_prog_DUMPBIN+:} false; then :
eff02e4f
ILT
5861 $as_echo_n "(cached) " >&6
5862else
5863 if test -n "$DUMPBIN"; then
5864 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5865else
5866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867for as_dir in $PATH
5868do
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5873 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 break 2
5876 fi
5877done
5878 done
5879IFS=$as_save_IFS
5880
5881fi
5882fi
5883DUMPBIN=$ac_cv_prog_DUMPBIN
5884if test -n "$DUMPBIN"; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5886$as_echo "$DUMPBIN" >&6; }
5887else
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889$as_echo "no" >&6; }
5890fi
5891
5892
5893 test -n "$DUMPBIN" && break
5894 done
5895fi
5896if test -z "$DUMPBIN"; then
5897 ac_ct_DUMPBIN=$DUMPBIN
5898 for ac_prog in dumpbin "link -dump"
5899do
5900 # Extract the first word of "$ac_prog", so it can be a program name with args.
5901set dummy $ac_prog; ac_word=$2
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5904if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
eff02e4f
ILT
5905 $as_echo_n "(cached) " >&6
5906else
5907 if test -n "$ac_ct_DUMPBIN"; then
5908 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5909else
5910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911for as_dir in $PATH
5912do
5913 IFS=$as_save_IFS
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5917 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 break 2
5920 fi
5921done
5922 done
5923IFS=$as_save_IFS
5924
5925fi
5926fi
5927ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5928if test -n "$ac_ct_DUMPBIN"; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5930$as_echo "$ac_ct_DUMPBIN" >&6; }
5931else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933$as_echo "no" >&6; }
5934fi
5935
5936
5937 test -n "$ac_ct_DUMPBIN" && break
5938done
5939
5940 if test "x$ac_ct_DUMPBIN" = x; then
5941 DUMPBIN=":"
5942 else
5943 case $cross_compiling:$ac_tool_warned in
5944yes:)
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5947ac_tool_warned=yes ;;
5948esac
5949 DUMPBIN=$ac_ct_DUMPBIN
5950 fi
5951fi
5952
5953 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5954 *COFF*)
5955 DUMPBIN="$DUMPBIN -symbols"
5956 ;;
5957 *)
5958 DUMPBIN=:
5959 ;;
5960 esac
5961 fi
5962
5963 if test "$DUMPBIN" != ":"; then
5964 NM="$DUMPBIN"
5965 fi
5966fi
5967test -z "$NM" && NM=nm
5968
5969
5970
5971
5972
5973
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5975$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 5976if ${lt_cv_nm_interface+:} false; then :
eff02e4f
ILT
5977 $as_echo_n "(cached) " >&6
5978else
5979 lt_cv_nm_interface="BSD nm"
5980 echo "int some_variable = 0;" > conftest.$ac_ext
5981 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5982 (eval "$ac_compile" 2>conftest.err)
5983 cat conftest.err >&5
5984 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5985 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5986 cat conftest.err >&5
5987 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5988 cat conftest.out >&5
5989 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5990 lt_cv_nm_interface="MS dumpbin"
5991 fi
5992 rm -f conftest*
5993fi
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5995$as_echo "$lt_cv_nm_interface" >&6; }
5996
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5998$as_echo_n "checking whether ln -s works... " >&6; }
5999LN_S=$as_ln_s
6000if test "$LN_S" = "ln -s"; then
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6002$as_echo "yes" >&6; }
6003else
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6005$as_echo "no, using $LN_S" >&6; }
6006fi
6007
6008# find the maximum length of command line arguments
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6010$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 6011if ${lt_cv_sys_max_cmd_len+:} false; then :
eff02e4f
ILT
6012 $as_echo_n "(cached) " >&6
6013else
6014 i=0
6015 teststring="ABCD"
6016
6017 case $build_os in
6018 msdosdjgpp*)
6019 # On DJGPP, this test can blow up pretty badly due to problems in libc
6020 # (any single argument exceeding 2000 bytes causes a buffer overrun
6021 # during glob expansion). Even if it were fixed, the result of this
6022 # check would be larger than it should be.
6023 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6024 ;;
6025
6026 gnu*)
6027 # Under GNU Hurd, this test is not required because there is
6028 # no limit to the length of command line arguments.
6029 # Libtool will interpret -1 as no limit whatsoever
6030 lt_cv_sys_max_cmd_len=-1;
6031 ;;
6032
6033 cygwin* | mingw* | cegcc*)
6034 # On Win9x/ME, this test blows up -- it succeeds, but takes
6035 # about 5 minutes as the teststring grows exponentially.
6036 # Worse, since 9x/ME are not pre-emptively multitasking,
6037 # you end up with a "frozen" computer, even though with patience
6038 # the test eventually succeeds (with a max line length of 256k).
6039 # Instead, let's just punt: use the minimum linelength reported by
6040 # all of the supported platforms: 8192 (on NT/2K/XP).
6041 lt_cv_sys_max_cmd_len=8192;
6042 ;;
6043
6044 mint*)
6045 # On MiNT this can take a long time and run out of memory.
6046 lt_cv_sys_max_cmd_len=8192;
6047 ;;
6048
6049 amigaos*)
6050 # On AmigaOS with pdksh, this test takes hours, literally.
6051 # So we just punt and use a minimum line length of 8192.
6052 lt_cv_sys_max_cmd_len=8192;
6053 ;;
6054
6055 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6056 # This has been around since 386BSD, at least. Likely further.
6057 if test -x /sbin/sysctl; then
6058 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6059 elif test -x /usr/sbin/sysctl; then
6060 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6061 else
6062 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6063 fi
6064 # And add a safety zone
6065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6067 ;;
6068
6069 interix*)
6070 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6071 lt_cv_sys_max_cmd_len=196608
6072 ;;
6073
6074 osf*)
6075 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6076 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6077 # nice to cause kernel panics so lets avoid the loop below.
6078 # First set a reasonable default.
6079 lt_cv_sys_max_cmd_len=16384
6080 #
6081 if test -x /sbin/sysconfig; then
6082 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6083 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6084 esac
6085 fi
6086 ;;
6087 sco3.2v5*)
6088 lt_cv_sys_max_cmd_len=102400
6089 ;;
6090 sysv5* | sco5v6* | sysv4.2uw2*)
6091 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6092 if test -n "$kargmax"; then
6093 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6094 else
6095 lt_cv_sys_max_cmd_len=32768
6096 fi
6097 ;;
6098 *)
6099 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6100 if test -n "$lt_cv_sys_max_cmd_len"; then
6101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6103 else
6104 # Make teststring a little bigger before we do anything with it.
6105 # a 1K string should be a reasonable start.
6106 for i in 1 2 3 4 5 6 7 8 ; do
6107 teststring=$teststring$teststring
6108 done
6109 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6110 # If test is not a shell built-in, we'll probably end up computing a
6111 # maximum length that is only half of the actual maximum length, but
6112 # we can't tell.
6113 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6114 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6115 test $i != 17 # 1/2 MB should be enough
6116 do
6117 i=`expr $i + 1`
6118 teststring=$teststring$teststring
6119 done
6120 # Only check the string length outside the loop.
6121 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6122 teststring=
6123 # Add a significant safety factor because C++ compilers can tack on
6124 # massive amounts of additional arguments before passing them to the
6125 # linker. It appears as though 1/2 is a usable value.
6126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6127 fi
6128 ;;
6129 esac
6130
6131fi
6132
6133if test -n $lt_cv_sys_max_cmd_len ; then
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6135$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6136else
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6138$as_echo "none" >&6; }
6139fi
6140max_cmd_len=$lt_cv_sys_max_cmd_len
6141
6142
6143
6144
6145
6146
6147: ${CP="cp -f"}
6148: ${MV="mv -f"}
6149: ${RM="rm -f"}
6150
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6152$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6153# Try some XSI features
6154xsi_shell=no
6155( _lt_dummy="a/b/c"
6156 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6157 = c,a/b,, \
6158 && eval 'test $(( 1 + 1 )) -eq 2 \
6159 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6160 && xsi_shell=yes
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6162$as_echo "$xsi_shell" >&6; }
6163
6164
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6166$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6167lt_shell_append=no
6168( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6169 >/dev/null 2>&1 \
6170 && lt_shell_append=yes
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6172$as_echo "$lt_shell_append" >&6; }
6173
6174
6175if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6176 lt_unset=unset
6177else
6178 lt_unset=false
6179fi
6180
6181
6182
6183
6184
6185# test EBCDIC or ASCII
6186case `echo X|tr X '\101'` in
6187 A) # ASCII based system
6188 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6189 lt_SP2NL='tr \040 \012'
6190 lt_NL2SP='tr \015\012 \040\040'
6191 ;;
6192 *) # EBCDIC based system
6193 lt_SP2NL='tr \100 \n'
6194 lt_NL2SP='tr \r\n \100\100'
6195 ;;
6196esac
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6207$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 6208if ${lt_cv_ld_reload_flag+:} false; then :
eff02e4f
ILT
6209 $as_echo_n "(cached) " >&6
6210else
6211 lt_cv_ld_reload_flag='-r'
6212fi
6213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6214$as_echo "$lt_cv_ld_reload_flag" >&6; }
6215reload_flag=$lt_cv_ld_reload_flag
6216case $reload_flag in
6217"" | " "*) ;;
6218*) reload_flag=" $reload_flag" ;;
6219esac
6220reload_cmds='$LD$reload_flag -o $output$reload_objs'
6221case $host_os in
6222 darwin*)
6223 if test "$GCC" = yes; then
6224 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6225 else
6226 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6227 fi
6228 ;;
6229esac
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239if test -n "$ac_tool_prefix"; then
6240 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6241set dummy ${ac_tool_prefix}objdump; ac_word=$2
6242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6244if ${ac_cv_prog_OBJDUMP+:} false; then :
eff02e4f
ILT
6245 $as_echo_n "(cached) " >&6
6246else
6247 if test -n "$OBJDUMP"; then
6248 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6249else
6250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251for as_dir in $PATH
6252do
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6257 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 break 2
6260 fi
6261done
6262 done
6263IFS=$as_save_IFS
6264
6265fi
6266fi
6267OBJDUMP=$ac_cv_prog_OBJDUMP
6268if test -n "$OBJDUMP"; then
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6270$as_echo "$OBJDUMP" >&6; }
6271else
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273$as_echo "no" >&6; }
6274fi
6275
6276
6277fi
6278if test -z "$ac_cv_prog_OBJDUMP"; then
6279 ac_ct_OBJDUMP=$OBJDUMP
6280 # Extract the first word of "objdump", so it can be a program name with args.
6281set dummy objdump; ac_word=$2
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6284if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
eff02e4f
ILT
6285 $as_echo_n "(cached) " >&6
6286else
6287 if test -n "$ac_ct_OBJDUMP"; then
6288 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6297 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6300 fi
6301done
6302 done
6303IFS=$as_save_IFS
6304
6305fi
6306fi
6307ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6308if test -n "$ac_ct_OBJDUMP"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6310$as_echo "$ac_ct_OBJDUMP" >&6; }
6311else
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313$as_echo "no" >&6; }
6314fi
6315
6316 if test "x$ac_ct_OBJDUMP" = x; then
6317 OBJDUMP="false"
6318 else
6319 case $cross_compiling:$ac_tool_warned in
6320yes:)
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6323ac_tool_warned=yes ;;
6324esac
6325 OBJDUMP=$ac_ct_OBJDUMP
6326 fi
6327else
6328 OBJDUMP="$ac_cv_prog_OBJDUMP"
6329fi
6330
6331test -z "$OBJDUMP" && OBJDUMP=objdump
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6342$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 6343if ${lt_cv_deplibs_check_method+:} false; then :
eff02e4f
ILT
6344 $as_echo_n "(cached) " >&6
6345else
6346 lt_cv_file_magic_cmd='$MAGIC_CMD'
6347lt_cv_file_magic_test_file=
6348lt_cv_deplibs_check_method='unknown'
6349# Need to set the preceding variable on all platforms that support
6350# interlibrary dependencies.
6351# 'none' -- dependencies not supported.
6352# `unknown' -- same as none, but documents that we really don't know.
6353# 'pass_all' -- all dependencies passed with no checks.
6354# 'test_compile' -- check by making test program.
6355# 'file_magic [[regex]]' -- check by looking for files in library path
6356# which responds to the $file_magic_cmd with a given extended regex.
6357# If you have `file' or equivalent on your system and you're not sure
6358# whether `pass_all' will *always* work, you probably want this one.
6359
6360case $host_os in
6361aix[4-9]*)
6362 lt_cv_deplibs_check_method=pass_all
6363 ;;
6364
6365beos*)
6366 lt_cv_deplibs_check_method=pass_all
6367 ;;
6368
6369bsdi[45]*)
6370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6371 lt_cv_file_magic_cmd='/usr/bin/file -L'
6372 lt_cv_file_magic_test_file=/shlib/libc.so
6373 ;;
6374
6375cygwin*)
6376 # func_win32_libid is a shell function defined in ltmain.sh
6377 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6378 lt_cv_file_magic_cmd='func_win32_libid'
6379 ;;
6380
6381mingw* | pw32*)
6382 # Base MSYS/MinGW do not provide the 'file' command needed by
6383 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6384 # unless we find 'file', for example because we are cross-compiling.
6385 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6386 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6387 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6388 lt_cv_file_magic_cmd='func_win32_libid'
6389 else
6390 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6391 lt_cv_file_magic_cmd='$OBJDUMP -f'
6392 fi
6393 ;;
6394
6395cegcc*)
6396 # use the weaker test based on 'objdump'. See mingw*.
6397 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6398 lt_cv_file_magic_cmd='$OBJDUMP -f'
6399 ;;
6400
6401darwin* | rhapsody*)
6402 lt_cv_deplibs_check_method=pass_all
6403 ;;
6404
6405freebsd* | dragonfly*)
6406 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6407 case $host_cpu in
6408 i*86 )
6409 # Not sure whether the presence of OpenBSD here was a mistake.
6410 # Let's accept both of them until this is cleared up.
6411 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6412 lt_cv_file_magic_cmd=/usr/bin/file
6413 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6414 ;;
6415 esac
6416 else
6417 lt_cv_deplibs_check_method=pass_all
6418 fi
6419 ;;
6420
6421gnu*)
6422 lt_cv_deplibs_check_method=pass_all
6423 ;;
6424
6425haiku*)
6426 lt_cv_deplibs_check_method=pass_all
6427 ;;
6428
6429hpux10.20* | hpux11*)
6430 lt_cv_file_magic_cmd=/usr/bin/file
6431 case $host_cpu in
6432 ia64*)
6433 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6434 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6435 ;;
6436 hppa*64*)
6437 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]'
6438 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6439 ;;
6440 *)
6441 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6442 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6443 ;;
6444 esac
6445 ;;
6446
6447interix[3-9]*)
6448 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6450 ;;
6451
6452irix5* | irix6* | nonstopux*)
6453 case $LD in
6454 *-32|*"-32 ") libmagic=32-bit;;
6455 *-n32|*"-n32 ") libmagic=N32;;
6456 *-64|*"-64 ") libmagic=64-bit;;
6457 *) libmagic=never-match;;
6458 esac
6459 lt_cv_deplibs_check_method=pass_all
6460 ;;
6461
6462# This must be Linux ELF.
e9085da5 6463linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
eff02e4f
ILT
6464 lt_cv_deplibs_check_method=pass_all
6465 ;;
6466
6467netbsd*)
6468 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6470 else
6471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6472 fi
6473 ;;
6474
6475newos6*)
6476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6477 lt_cv_file_magic_cmd=/usr/bin/file
6478 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6479 ;;
6480
6481*nto* | *qnx*)
6482 lt_cv_deplibs_check_method=pass_all
6483 ;;
6484
6485openbsd*)
6486 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6488 else
6489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6490 fi
6491 ;;
6492
6493osf3* | osf4* | osf5*)
6494 lt_cv_deplibs_check_method=pass_all
6495 ;;
6496
6497rdos*)
6498 lt_cv_deplibs_check_method=pass_all
6499 ;;
6500
6501solaris*)
6502 lt_cv_deplibs_check_method=pass_all
6503 ;;
6504
6505sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6506 lt_cv_deplibs_check_method=pass_all
6507 ;;
6508
6509sysv4 | sysv4.3*)
6510 case $host_vendor in
6511 motorola)
6512 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]'
6513 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6514 ;;
6515 ncr)
6516 lt_cv_deplibs_check_method=pass_all
6517 ;;
6518 sequent)
6519 lt_cv_file_magic_cmd='/bin/file'
6520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6521 ;;
6522 sni)
6523 lt_cv_file_magic_cmd='/bin/file'
6524 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6525 lt_cv_file_magic_test_file=/lib/libc.so
6526 ;;
6527 siemens)
6528 lt_cv_deplibs_check_method=pass_all
6529 ;;
6530 pc)
6531 lt_cv_deplibs_check_method=pass_all
6532 ;;
6533 esac
6534 ;;
6535
6536tpf*)
6537 lt_cv_deplibs_check_method=pass_all
6538 ;;
6539esac
6540
6541fi
6542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6543$as_echo "$lt_cv_deplibs_check_method" >&6; }
6544file_magic_cmd=$lt_cv_file_magic_cmd
6545deplibs_check_method=$lt_cv_deplibs_check_method
6546test -z "$deplibs_check_method" && deplibs_check_method=unknown
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559if test -n "$ac_tool_prefix"; then
6560 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6561set dummy ${ac_tool_prefix}ar; ac_word=$2
6562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6563$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6564if ${ac_cv_prog_AR+:} false; then :
eff02e4f
ILT
6565 $as_echo_n "(cached) " >&6
6566else
6567 if test -n "$AR"; then
6568 ac_cv_prog_AR="$AR" # Let the user override the test.
6569else
6570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571for as_dir in $PATH
6572do
6573 IFS=$as_save_IFS
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6577 ac_cv_prog_AR="${ac_tool_prefix}ar"
6578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 break 2
6580 fi
6581done
6582 done
6583IFS=$as_save_IFS
6584
6585fi
6586fi
6587AR=$ac_cv_prog_AR
6588if test -n "$AR"; then
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6590$as_echo "$AR" >&6; }
6591else
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6593$as_echo "no" >&6; }
6594fi
6595
6596
6597fi
6598if test -z "$ac_cv_prog_AR"; then
6599 ac_ct_AR=$AR
6600 # Extract the first word of "ar", so it can be a program name with args.
6601set dummy ar; ac_word=$2
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6604if ${ac_cv_prog_ac_ct_AR+:} false; then :
eff02e4f
ILT
6605 $as_echo_n "(cached) " >&6
6606else
6607 if test -n "$ac_ct_AR"; then
6608 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6609else
6610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611for as_dir in $PATH
6612do
6613 IFS=$as_save_IFS
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6617 ac_cv_prog_ac_ct_AR="ar"
6618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 break 2
6620 fi
6621done
6622 done
6623IFS=$as_save_IFS
6624
6625fi
6626fi
6627ac_ct_AR=$ac_cv_prog_ac_ct_AR
6628if test -n "$ac_ct_AR"; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6630$as_echo "$ac_ct_AR" >&6; }
6631else
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633$as_echo "no" >&6; }
6634fi
6635
6636 if test "x$ac_ct_AR" = x; then
6637 AR="false"
6638 else
6639 case $cross_compiling:$ac_tool_warned in
6640yes:)
6641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6643ac_tool_warned=yes ;;
6644esac
6645 AR=$ac_ct_AR
6646 fi
6647else
6648 AR="$ac_cv_prog_AR"
6649fi
6650
6651test -z "$AR" && AR=ar
6652test -z "$AR_FLAGS" && AR_FLAGS=cru
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664if test -n "$ac_tool_prefix"; then
6665 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6666set dummy ${ac_tool_prefix}strip; ac_word=$2
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6669if ${ac_cv_prog_STRIP+:} false; then :
eff02e4f
ILT
6670 $as_echo_n "(cached) " >&6
6671else
6672 if test -n "$STRIP"; then
6673 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6674else
6675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676for as_dir in $PATH
6677do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6682 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6685 fi
6686done
6687 done
6688IFS=$as_save_IFS
6689
6690fi
6691fi
6692STRIP=$ac_cv_prog_STRIP
6693if test -n "$STRIP"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6695$as_echo "$STRIP" >&6; }
6696else
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698$as_echo "no" >&6; }
6699fi
6700
6701
6702fi
6703if test -z "$ac_cv_prog_STRIP"; then
6704 ac_ct_STRIP=$STRIP
6705 # Extract the first word of "strip", so it can be a program name with args.
6706set dummy strip; ac_word=$2
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6709if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
eff02e4f
ILT
6710 $as_echo_n "(cached) " >&6
6711else
6712 if test -n "$ac_ct_STRIP"; then
6713 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6714else
6715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716for as_dir in $PATH
6717do
6718 IFS=$as_save_IFS
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6722 ac_cv_prog_ac_ct_STRIP="strip"
6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 break 2
6725 fi
6726done
6727 done
6728IFS=$as_save_IFS
6729
6730fi
6731fi
6732ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6733if test -n "$ac_ct_STRIP"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6735$as_echo "$ac_ct_STRIP" >&6; }
6736else
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738$as_echo "no" >&6; }
6739fi
6740
6741 if test "x$ac_ct_STRIP" = x; then
6742 STRIP=":"
6743 else
6744 case $cross_compiling:$ac_tool_warned in
6745yes:)
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6748ac_tool_warned=yes ;;
6749esac
6750 STRIP=$ac_ct_STRIP
6751 fi
6752else
6753 STRIP="$ac_cv_prog_STRIP"
6754fi
6755
6756test -z "$STRIP" && STRIP=:
6757
6758
6759
6760
6761
6762
6763if test -n "$ac_tool_prefix"; then
6764 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6765set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6768if ${ac_cv_prog_RANLIB+:} false; then :
eff02e4f
ILT
6769 $as_echo_n "(cached) " >&6
6770else
6771 if test -n "$RANLIB"; then
6772 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6773else
6774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775for as_dir in $PATH
6776do
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6781 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6784 fi
6785done
6786 done
6787IFS=$as_save_IFS
6788
6789fi
6790fi
6791RANLIB=$ac_cv_prog_RANLIB
6792if test -n "$RANLIB"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6794$as_echo "$RANLIB" >&6; }
6795else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797$as_echo "no" >&6; }
6798fi
6799
6800
6801fi
6802if test -z "$ac_cv_prog_RANLIB"; then
6803 ac_ct_RANLIB=$RANLIB
6804 # Extract the first word of "ranlib", so it can be a program name with args.
6805set dummy ranlib; ac_word=$2
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6807$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6808if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
eff02e4f
ILT
6809 $as_echo_n "(cached) " >&6
6810else
6811 if test -n "$ac_ct_RANLIB"; then
6812 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6813else
6814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815for as_dir in $PATH
6816do
6817 IFS=$as_save_IFS
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6821 ac_cv_prog_ac_ct_RANLIB="ranlib"
6822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 break 2
6824 fi
6825done
6826 done
6827IFS=$as_save_IFS
6828
6829fi
6830fi
6831ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6832if test -n "$ac_ct_RANLIB"; then
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6834$as_echo "$ac_ct_RANLIB" >&6; }
6835else
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837$as_echo "no" >&6; }
6838fi
6839
6840 if test "x$ac_ct_RANLIB" = x; then
6841 RANLIB=":"
6842 else
6843 case $cross_compiling:$ac_tool_warned in
6844yes:)
6845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6847ac_tool_warned=yes ;;
6848esac
6849 RANLIB=$ac_ct_RANLIB
6850 fi
6851else
6852 RANLIB="$ac_cv_prog_RANLIB"
6853fi
6854
6855test -z "$RANLIB" && RANLIB=:
6856
6857
6858
6859
6860
6861
6862# Determine commands to create old-style static archives.
6863old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6864old_postinstall_cmds='chmod 644 $oldlib'
6865old_postuninstall_cmds=
6866
6867if test -n "$RANLIB"; then
6868 case $host_os in
6869 openbsd*)
6870 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6871 ;;
6872 *)
6873 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6874 ;;
6875 esac
6876 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6877fi
6878
6879case $host_os in
6880 darwin*)
6881 lock_old_archive_extraction=yes ;;
6882 *)
6883 lock_old_archive_extraction=no ;;
6884esac
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924# If no C compiler was specified, use CC.
6925LTCC=${LTCC-"$CC"}
6926
6927# If no C compiler flags were specified, use CFLAGS.
6928LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6929
6930# Allow CC to be a program name with arguments.
6931compiler=$CC
6932
6933
6934# Check for command to grab the raw symbol name followed by C symbol from nm.
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6936$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 6937if ${lt_cv_sys_global_symbol_pipe+:} false; then :
eff02e4f
ILT
6938 $as_echo_n "(cached) " >&6
6939else
6940
6941# These are sane defaults that work on at least a few old systems.
6942# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6943
6944# Character class describing NM global symbol codes.
6945symcode='[BCDEGRST]'
6946
6947# Regexp to match symbols that can be accessed directly from C.
6948sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6949
6950# Define system-specific variables.
6951case $host_os in
6952aix*)
6953 symcode='[BCDT]'
6954 ;;
6955cygwin* | mingw* | pw32* | cegcc*)
6956 symcode='[ABCDGISTW]'
6957 ;;
6958hpux*)
6959 if test "$host_cpu" = ia64; then
6960 symcode='[ABCDEGRST]'
6961 fi
6962 ;;
6963irix* | nonstopux*)
6964 symcode='[BCDEGRST]'
6965 ;;
6966osf*)
6967 symcode='[BCDEGQRST]'
6968 ;;
6969solaris*)
6970 symcode='[BDRT]'
6971 ;;
6972sco3.2v5*)
6973 symcode='[DT]'
6974 ;;
6975sysv4.2uw2*)
6976 symcode='[DT]'
6977 ;;
6978sysv5* | sco5v6* | unixware* | OpenUNIX*)
6979 symcode='[ABDT]'
6980 ;;
6981sysv4)
6982 symcode='[DFNSTU]'
6983 ;;
6984esac
6985
6986# If we're using GNU nm, then use its standard symbol codes.
6987case `$NM -V 2>&1` in
6988*GNU* | *'with BFD'*)
6989 symcode='[ABCDGIRSTW]' ;;
6990esac
6991
6992# Transform an extracted symbol line into a proper C declaration.
6993# Some systems (esp. on ia64) link data and code symbols differently,
6994# so use this general approach.
6995lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6996
6997# Transform an extracted symbol line into symbol name and symbol address
6998lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6999lt_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'"
7000
7001# Handle CRLF in mingw tool chain
7002opt_cr=
7003case $build_os in
7004mingw*)
7005 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7006 ;;
7007esac
7008
7009# Try without a prefix underscore, then with it.
7010for ac_symprfx in "" "_"; do
7011
7012 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7013 symxfrm="\\1 $ac_symprfx\\2 \\2"
7014
7015 # Write the raw and C identifiers.
7016 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7017 # Fake it for dumpbin and say T for any non-static function
7018 # and D for any global variable.
7019 # Also find C++ and __fastcall symbols from MSVC++,
7020 # which start with @ or ?.
7021 lt_cv_sys_global_symbol_pipe="$AWK '"\
7022" {last_section=section; section=\$ 3};"\
7023" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7024" \$ 0!~/External *\|/{next};"\
7025" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7026" {if(hide[section]) next};"\
7027" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7028" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7029" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7030" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7031" ' prfx=^$ac_symprfx"
7032 else
7033 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7034 fi
7035
7036 # Check to see that the pipe works correctly.
7037 pipe_works=no
7038
7039 rm -f conftest*
7040 cat > conftest.$ac_ext <<_LT_EOF
7041#ifdef __cplusplus
7042extern "C" {
7043#endif
7044char nm_test_var;
7045void nm_test_func(void);
7046void nm_test_func(void){}
7047#ifdef __cplusplus
7048}
7049#endif
7050int main(){nm_test_var='a';nm_test_func();return(0);}
7051_LT_EOF
7052
7053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7054 (eval $ac_compile) 2>&5
7055 ac_status=$?
7056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7057 test $ac_status = 0; }; then
7058 # Now try to grab the symbols.
7059 nlist=conftest.nm
7060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7061 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7062 ac_status=$?
7063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7064 test $ac_status = 0; } && test -s "$nlist"; then
7065 # Try sorting and uniquifying the output.
7066 if sort "$nlist" | uniq > "$nlist"T; then
7067 mv -f "$nlist"T "$nlist"
7068 else
7069 rm -f "$nlist"T
7070 fi
7071
7072 # Make sure that we snagged all the symbols we need.
7073 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7074 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7075 cat <<_LT_EOF > conftest.$ac_ext
7076#ifdef __cplusplus
7077extern "C" {
7078#endif
7079
7080_LT_EOF
7081 # Now generate the symbol file.
7082 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7083
7084 cat <<_LT_EOF >> conftest.$ac_ext
7085
7086/* The mapping between symbol names and symbols. */
7087const struct {
7088 const char *name;
7089 void *address;
7090}
7091lt__PROGRAM__LTX_preloaded_symbols[] =
7092{
7093 { "@PROGRAM@", (void *) 0 },
7094_LT_EOF
7095 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7096 cat <<\_LT_EOF >> conftest.$ac_ext
7097 {0, (void *) 0}
7098};
7099
7100/* This works around a problem in FreeBSD linker */
7101#ifdef FREEBSD_WORKAROUND
7102static const void *lt_preloaded_setup() {
7103 return lt__PROGRAM__LTX_preloaded_symbols;
7104}
7105#endif
7106
7107#ifdef __cplusplus
7108}
7109#endif
7110_LT_EOF
7111 # Now try linking the two files.
7112 mv conftest.$ac_objext conftstm.$ac_objext
7113 lt_save_LIBS="$LIBS"
7114 lt_save_CFLAGS="$CFLAGS"
7115 LIBS="conftstm.$ac_objext"
7116 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7118 (eval $ac_link) 2>&5
7119 ac_status=$?
7120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7121 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7122 pipe_works=yes
7123 fi
7124 LIBS="$lt_save_LIBS"
7125 CFLAGS="$lt_save_CFLAGS"
7126 else
7127 echo "cannot find nm_test_func in $nlist" >&5
7128 fi
7129 else
7130 echo "cannot find nm_test_var in $nlist" >&5
7131 fi
7132 else
7133 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7134 fi
7135 else
7136 echo "$progname: failed program was:" >&5
7137 cat conftest.$ac_ext >&5
7138 fi
7139 rm -rf conftest* conftst*
7140
7141 # Do not use the global_symbol_pipe unless it works.
7142 if test "$pipe_works" = yes; then
7143 break
7144 else
7145 lt_cv_sys_global_symbol_pipe=
7146 fi
7147done
7148
7149fi
7150
7151if test -z "$lt_cv_sys_global_symbol_pipe"; then
7152 lt_cv_sys_global_symbol_to_cdecl=
7153fi
7154if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7156$as_echo "failed" >&6; }
7157else
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7159$as_echo "ok" >&6; }
7160fi
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
eff02e4f
ILT
7181
7182
7183# Check whether --enable-libtool-lock was given.
7184if test "${enable_libtool_lock+set}" = set; then :
7185 enableval=$enable_libtool_lock;
7186fi
7187
7188test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7189
7190# Some flags need to be propagated to the compiler or linker for good
7191# libtool support.
7192case $host in
7193ia64-*-hpux*)
7194 # Find out which ABI we are using.
7195 echo 'int i;' > conftest.$ac_ext
7196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7197 (eval $ac_compile) 2>&5
7198 ac_status=$?
7199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7200 test $ac_status = 0; }; then
7201 case `/usr/bin/file conftest.$ac_objext` in
7202 *ELF-32*)
7203 HPUX_IA64_MODE="32"
7204 ;;
7205 *ELF-64*)
7206 HPUX_IA64_MODE="64"
7207 ;;
7208 esac
7209 fi
7210 rm -rf conftest*
7211 ;;
7212*-*-irix6*)
7213 # Find out which ABI we are using.
7214 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7216 (eval $ac_compile) 2>&5
7217 ac_status=$?
7218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7219 test $ac_status = 0; }; then
7220 if test "$lt_cv_prog_gnu_ld" = yes; then
7221 case `/usr/bin/file conftest.$ac_objext` in
7222 *32-bit*)
7223 LD="${LD-ld} -melf32bsmip"
7224 ;;
7225 *N32*)
7226 LD="${LD-ld} -melf32bmipn32"
7227 ;;
7228 *64-bit*)
7229 LD="${LD-ld} -melf64bmip"
7230 ;;
7231 esac
7232 else
7233 case `/usr/bin/file conftest.$ac_objext` in
7234 *32-bit*)
7235 LD="${LD-ld} -32"
7236 ;;
7237 *N32*)
7238 LD="${LD-ld} -n32"
7239 ;;
7240 *64-bit*)
7241 LD="${LD-ld} -64"
7242 ;;
7243 esac
7244 fi
7245 fi
7246 rm -rf conftest*
7247 ;;
7248
3cbe17f7 7249x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
eff02e4f
ILT
7250s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7251 # Find out which ABI we are using.
7252 echo 'int i;' > conftest.$ac_ext
7253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7254 (eval $ac_compile) 2>&5
7255 ac_status=$?
7256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7257 test $ac_status = 0; }; then
7258 case `/usr/bin/file conftest.o` in
7259 *32-bit*)
7260 case $host in
7261 x86_64-*kfreebsd*-gnu)
7262 LD="${LD-ld} -m elf_i386_fbsd"
7263 ;;
7264 x86_64-*linux*)
7265 case `/usr/bin/file conftest.o` in
7266 *x86-64*)
7267 LD="${LD-ld} -m elf32_x86_64"
7268 ;;
7269 *)
7270 LD="${LD-ld} -m elf_i386"
7271 ;;
7272 esac
7273 ;;
3cbe17f7
AM
7274 powerpc64le-*linux*)
7275 LD="${LD-ld} -m elf32lppclinux"
7276 ;;
7277 powerpc64-*linux*)
eff02e4f
ILT
7278 LD="${LD-ld} -m elf32ppclinux"
7279 ;;
7280 s390x-*linux*)
7281 LD="${LD-ld} -m elf_s390"
7282 ;;
7283 sparc64-*linux*)
7284 LD="${LD-ld} -m elf32_sparc"
7285 ;;
7286 esac
7287 ;;
7288 *64-bit*)
7289 case $host in
7290 x86_64-*kfreebsd*-gnu)
7291 LD="${LD-ld} -m elf_x86_64_fbsd"
7292 ;;
7293 x86_64-*linux*)
7294 LD="${LD-ld} -m elf_x86_64"
7295 ;;
3cbe17f7
AM
7296 powerpcle-*linux*)
7297 LD="${LD-ld} -m elf64lppc"
7298 ;;
7299 powerpc-*linux*)
eff02e4f
ILT
7300 LD="${LD-ld} -m elf64ppc"
7301 ;;
7302 s390*-*linux*|s390*-*tpf*)
7303 LD="${LD-ld} -m elf64_s390"
7304 ;;
7305 sparc*-*linux*)
7306 LD="${LD-ld} -m elf64_sparc"
7307 ;;
7308 esac
7309 ;;
7310 esac
7311 fi
7312 rm -rf conftest*
7313 ;;
7314
7315*-*-sco3.2v5*)
7316 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7317 SAVE_CFLAGS="$CFLAGS"
7318 CFLAGS="$CFLAGS -belf"
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7320$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 7321if ${lt_cv_cc_needs_belf+:} false; then :
eff02e4f
ILT
7322 $as_echo_n "(cached) " >&6
7323else
7324 ac_ext=c
7325ac_cpp='$CPP $CPPFLAGS'
7326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7328ac_compiler_gnu=$ac_cv_c_compiler_gnu
7329
7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331/* end confdefs.h. */
7332
7333int
7334main ()
7335{
7336
7337 ;
7338 return 0;
7339}
7340_ACEOF
7341if ac_fn_c_try_link "$LINENO"; then :
7342 lt_cv_cc_needs_belf=yes
7343else
7344 lt_cv_cc_needs_belf=no
7345fi
7346rm -f core conftest.err conftest.$ac_objext \
7347 conftest$ac_exeext conftest.$ac_ext
7348 ac_ext=c
7349ac_cpp='$CPP $CPPFLAGS'
7350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7352ac_compiler_gnu=$ac_cv_c_compiler_gnu
7353
7354fi
7355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7356$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7358 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7359 CFLAGS="$SAVE_CFLAGS"
7360 fi
7361 ;;
7362sparc*-*solaris*)
7363 # Find out which ABI we are using.
7364 echo 'int i;' > conftest.$ac_ext
7365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7366 (eval $ac_compile) 2>&5
7367 ac_status=$?
7368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7369 test $ac_status = 0; }; then
7370 case `/usr/bin/file conftest.o` in
7371 *64-bit*)
7372 case $lt_cv_prog_gnu_ld in
7373 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7374 *)
7375 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7376 LD="${LD-ld} -64"
7377 fi
7378 ;;
7379 esac
7380 ;;
7381 esac
7382 fi
7383 rm -rf conftest*
7384 ;;
7385esac
7386
7387need_locks="$enable_libtool_lock"
7388
7389
7390 case $host_os in
7391 rhapsody* | darwin*)
7392 if test -n "$ac_tool_prefix"; then
7393 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7394set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7397if ${ac_cv_prog_DSYMUTIL+:} false; then :
eff02e4f
ILT
7398 $as_echo_n "(cached) " >&6
7399else
7400 if test -n "$DSYMUTIL"; then
7401 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7402else
7403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404for as_dir in $PATH
7405do
7406 IFS=$as_save_IFS
7407 test -z "$as_dir" && as_dir=.
7408 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
7410 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7412 break 2
7413 fi
7414done
7415 done
7416IFS=$as_save_IFS
7417
7418fi
7419fi
7420DSYMUTIL=$ac_cv_prog_DSYMUTIL
7421if test -n "$DSYMUTIL"; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7423$as_echo "$DSYMUTIL" >&6; }
7424else
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426$as_echo "no" >&6; }
7427fi
7428
7429
7430fi
7431if test -z "$ac_cv_prog_DSYMUTIL"; then
7432 ac_ct_DSYMUTIL=$DSYMUTIL
7433 # Extract the first word of "dsymutil", so it can be a program name with args.
7434set dummy dsymutil; ac_word=$2
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7437if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
eff02e4f
ILT
7438 $as_echo_n "(cached) " >&6
7439else
d4c059d5
ILT
7440 if test -n "$ac_ct_DSYMUTIL"; then
7441 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
eff02e4f
ILT
7442else
7443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444for as_dir in $PATH
7445do
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 7450 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
eff02e4f
ILT
7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 break 2
7453 fi
7454done
7455 done
7456IFS=$as_save_IFS
7457
7458fi
7459fi
d4c059d5
ILT
7460ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7461if test -n "$ac_ct_DSYMUTIL"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7463$as_echo "$ac_ct_DSYMUTIL" >&6; }
eff02e4f
ILT
7464else
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466$as_echo "no" >&6; }
7467fi
7468
d4c059d5
ILT
7469 if test "x$ac_ct_DSYMUTIL" = x; then
7470 DSYMUTIL=":"
eff02e4f
ILT
7471 else
7472 case $cross_compiling:$ac_tool_warned in
7473yes:)
7474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7476ac_tool_warned=yes ;;
7477esac
d4c059d5 7478 DSYMUTIL=$ac_ct_DSYMUTIL
eff02e4f
ILT
7479 fi
7480else
d4c059d5 7481 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
eff02e4f
ILT
7482fi
7483
7484 if test -n "$ac_tool_prefix"; then
d4c059d5
ILT
7485 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7486set dummy ${ac_tool_prefix}nmedit; ac_word=$2
eff02e4f
ILT
7487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7489if ${ac_cv_prog_NMEDIT+:} false; then :
eff02e4f
ILT
7490 $as_echo_n "(cached) " >&6
7491else
d4c059d5
ILT
7492 if test -n "$NMEDIT"; then
7493 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
eff02e4f
ILT
7494else
7495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496for as_dir in $PATH
7497do
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 7502 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
eff02e4f
ILT
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 break 2
7505 fi
7506done
7507 done
7508IFS=$as_save_IFS
7509
7510fi
7511fi
d4c059d5
ILT
7512NMEDIT=$ac_cv_prog_NMEDIT
7513if test -n "$NMEDIT"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7515$as_echo "$NMEDIT" >&6; }
eff02e4f
ILT
7516else
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518$as_echo "no" >&6; }
7519fi
7520
7521
7522fi
d4c059d5
ILT
7523if test -z "$ac_cv_prog_NMEDIT"; then
7524 ac_ct_NMEDIT=$NMEDIT
7525 # Extract the first word of "nmedit", so it can be a program name with args.
7526set dummy nmedit; ac_word=$2
eff02e4f
ILT
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7529if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
eff02e4f
ILT
7530 $as_echo_n "(cached) " >&6
7531else
d4c059d5
ILT
7532 if test -n "$ac_ct_NMEDIT"; then
7533 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
eff02e4f
ILT
7534else
7535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536for as_dir in $PATH
7537do
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 7542 ac_cv_prog_ac_ct_NMEDIT="nmedit"
eff02e4f
ILT
7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7545 fi
7546done
7547 done
7548IFS=$as_save_IFS
7549
7550fi
7551fi
d4c059d5
ILT
7552ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7553if test -n "$ac_ct_NMEDIT"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7555$as_echo "$ac_ct_NMEDIT" >&6; }
eff02e4f
ILT
7556else
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558$as_echo "no" >&6; }
7559fi
7560
d4c059d5
ILT
7561 if test "x$ac_ct_NMEDIT" = x; then
7562 NMEDIT=":"
eff02e4f
ILT
7563 else
7564 case $cross_compiling:$ac_tool_warned in
7565yes:)
7566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7568ac_tool_warned=yes ;;
7569esac
d4c059d5 7570 NMEDIT=$ac_ct_NMEDIT
eff02e4f
ILT
7571 fi
7572else
d4c059d5 7573 NMEDIT="$ac_cv_prog_NMEDIT"
eff02e4f
ILT
7574fi
7575
7576 if test -n "$ac_tool_prefix"; then
d4c059d5
ILT
7577 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7578set dummy ${ac_tool_prefix}lipo; ac_word=$2
eff02e4f
ILT
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7581if ${ac_cv_prog_LIPO+:} false; then :
eff02e4f
ILT
7582 $as_echo_n "(cached) " >&6
7583else
d4c059d5
ILT
7584 if test -n "$LIPO"; then
7585 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
eff02e4f
ILT
7586else
7587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588for as_dir in $PATH
7589do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 7594 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
eff02e4f
ILT
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7597 fi
7598done
7599 done
7600IFS=$as_save_IFS
7601
7602fi
7603fi
d4c059d5
ILT
7604LIPO=$ac_cv_prog_LIPO
7605if test -n "$LIPO"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7607$as_echo "$LIPO" >&6; }
eff02e4f
ILT
7608else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610$as_echo "no" >&6; }
7611fi
7612
7613
7614fi
d4c059d5
ILT
7615if test -z "$ac_cv_prog_LIPO"; then
7616 ac_ct_LIPO=$LIPO
7617 # Extract the first word of "lipo", so it can be a program name with args.
7618set dummy lipo; ac_word=$2
eff02e4f
ILT
7619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7621if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
eff02e4f
ILT
7622 $as_echo_n "(cached) " >&6
7623else
d4c059d5
ILT
7624 if test -n "$ac_ct_LIPO"; then
7625 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
eff02e4f
ILT
7626else
7627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628for as_dir in $PATH
7629do
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 7634 ac_cv_prog_ac_ct_LIPO="lipo"
eff02e4f
ILT
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7637 fi
7638done
7639 done
7640IFS=$as_save_IFS
7641
7642fi
7643fi
d4c059d5
ILT
7644ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7645if test -n "$ac_ct_LIPO"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7647$as_echo "$ac_ct_LIPO" >&6; }
eff02e4f
ILT
7648else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650$as_echo "no" >&6; }
7651fi
7652
d4c059d5
ILT
7653 if test "x$ac_ct_LIPO" = x; then
7654 LIPO=":"
eff02e4f
ILT
7655 else
7656 case $cross_compiling:$ac_tool_warned in
7657yes:)
7658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7660ac_tool_warned=yes ;;
7661esac
d4c059d5 7662 LIPO=$ac_ct_LIPO
eff02e4f
ILT
7663 fi
7664else
d4c059d5 7665 LIPO="$ac_cv_prog_LIPO"
eff02e4f
ILT
7666fi
7667
d4c059d5
ILT
7668 if test -n "$ac_tool_prefix"; then
7669 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7670set dummy ${ac_tool_prefix}otool; ac_word=$2
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7673if ${ac_cv_prog_OTOOL+:} false; then :
eff02e4f
ILT
7674 $as_echo_n "(cached) " >&6
7675else
d4c059d5
ILT
7676 if test -n "$OTOOL"; then
7677 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
eff02e4f 7678else
d4c059d5
ILT
7679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680for as_dir in $PATH
7681do
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
7686 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7689 fi
7690done
7691 done
7692IFS=$as_save_IFS
eff02e4f 7693
eff02e4f 7694fi
eff02e4f 7695fi
d4c059d5
ILT
7696OTOOL=$ac_cv_prog_OTOOL
7697if test -n "$OTOOL"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7699$as_echo "$OTOOL" >&6; }
7700else
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702$as_echo "no" >&6; }
eff02e4f 7703fi
eff02e4f 7704
d4c059d5 7705
eff02e4f 7706fi
d4c059d5
ILT
7707if test -z "$ac_cv_prog_OTOOL"; then
7708 ac_ct_OTOOL=$OTOOL
7709 # Extract the first word of "otool", so it can be a program name with args.
7710set dummy otool; ac_word=$2
7711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7713if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
eff02e4f
ILT
7714 $as_echo_n "(cached) " >&6
7715else
d4c059d5
ILT
7716 if test -n "$ac_ct_OTOOL"; then
7717 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7718else
7719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720for as_dir in $PATH
eff02e4f 7721do
d4c059d5
ILT
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
7726 ac_cv_prog_ac_ct_OTOOL="otool"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 break 2
7729 fi
7730done
7731 done
7732IFS=$as_save_IFS
eff02e4f 7733
d4c059d5
ILT
7734fi
7735fi
7736ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7737if test -n "$ac_ct_OTOOL"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7739$as_echo "$ac_ct_OTOOL" >&6; }
eff02e4f 7740else
d4c059d5
ILT
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742$as_echo "no" >&6; }
eff02e4f 7743fi
eff02e4f 7744
d4c059d5
ILT
7745 if test "x$ac_ct_OTOOL" = x; then
7746 OTOOL=":"
7747 else
7748 case $cross_compiling:$ac_tool_warned in
7749yes:)
7750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7752ac_tool_warned=yes ;;
7753esac
7754 OTOOL=$ac_ct_OTOOL
7755 fi
eff02e4f 7756else
d4c059d5 7757 OTOOL="$ac_cv_prog_OTOOL"
eff02e4f 7758fi
eff02e4f 7759
d4c059d5
ILT
7760 if test -n "$ac_tool_prefix"; then
7761 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7762set dummy ${ac_tool_prefix}otool64; ac_word=$2
7763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7765if ${ac_cv_prog_OTOOL64+:} false; then :
d4c059d5
ILT
7766 $as_echo_n "(cached) " >&6
7767else
7768 if test -n "$OTOOL64"; then
7769 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7770else
7771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772for as_dir in $PATH
7773do
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
7778 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7781 fi
eff02e4f 7782done
d4c059d5
ILT
7783 done
7784IFS=$as_save_IFS
7785
7786fi
7787fi
7788OTOOL64=$ac_cv_prog_OTOOL64
7789if test -n "$OTOOL64"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7791$as_echo "$OTOOL64" >&6; }
7792else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794$as_echo "no" >&6; }
eff02e4f
ILT
7795fi
7796
eff02e4f
ILT
7797
7798fi
d4c059d5
ILT
7799if test -z "$ac_cv_prog_OTOOL64"; then
7800 ac_ct_OTOOL64=$OTOOL64
7801 # Extract the first word of "otool64", so it can be a program name with args.
7802set dummy otool64; ac_word=$2
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7805if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
d4c059d5 7806 $as_echo_n "(cached) " >&6
eff02e4f 7807else
d4c059d5
ILT
7808 if test -n "$ac_ct_OTOOL64"; then
7809 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7810else
7811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812for as_dir in $PATH
eff02e4f 7813do
d4c059d5
ILT
7814 IFS=$as_save_IFS
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
7818 ac_cv_prog_ac_ct_OTOOL64="otool64"
7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 break 2
7821 fi
7822done
7823 done
7824IFS=$as_save_IFS
eff02e4f 7825
d4c059d5
ILT
7826fi
7827fi
7828ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7829if test -n "$ac_ct_OTOOL64"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7831$as_echo "$ac_ct_OTOOL64" >&6; }
eff02e4f 7832else
d4c059d5
ILT
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834$as_echo "no" >&6; }
eff02e4f 7835fi
eff02e4f 7836
d4c059d5
ILT
7837 if test "x$ac_ct_OTOOL64" = x; then
7838 OTOOL64=":"
7839 else
7840 case $cross_compiling:$ac_tool_warned in
7841yes:)
7842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7844ac_tool_warned=yes ;;
7845esac
7846 OTOOL64=$ac_ct_OTOOL64
7847 fi
eff02e4f 7848else
d4c059d5 7849 OTOOL64="$ac_cv_prog_OTOOL64"
eff02e4f 7850fi
eff02e4f 7851
eff02e4f 7852
eff02e4f 7853
eff02e4f
ILT
7854
7855
eff02e4f 7856
eff02e4f 7857
eff02e4f 7858
eff02e4f 7859
eff02e4f 7860
eff02e4f 7861
eff02e4f 7862
eff02e4f 7863
eff02e4f 7864
eff02e4f 7865
eff02e4f 7866
d4c059d5
ILT
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7879$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 7880if ${lt_cv_apple_cc_single_mod+:} false; then :
d4c059d5 7881 $as_echo_n "(cached) " >&6
eff02e4f 7882else
d4c059d5
ILT
7883 lt_cv_apple_cc_single_mod=no
7884 if test -z "${LT_MULTI_MODULE}"; then
7885 # By default we will add the -single_module flag. You can override
7886 # by either setting the environment variable LT_MULTI_MODULE
7887 # non-empty at configure time, or by adding -multi_module to the
7888 # link flags.
7889 rm -rf libconftest.dylib*
7890 echo "int foo(void){return 1;}" > conftest.c
7891 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7892-dynamiclib -Wl,-single_module conftest.c" >&5
7893 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7894 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7895 _lt_result=$?
7896 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7897 lt_cv_apple_cc_single_mod=yes
7898 else
7899 cat conftest.err >&5
7900 fi
7901 rm -rf libconftest.dylib*
7902 rm -f conftest.*
7903 fi
7904fi
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7906$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7908$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 7909if ${lt_cv_ld_exported_symbols_list+:} false; then :
d4c059d5
ILT
7910 $as_echo_n "(cached) " >&6
7911else
7912 lt_cv_ld_exported_symbols_list=no
7913 save_LDFLAGS=$LDFLAGS
7914 echo "_main" > conftest.sym
7915 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eff02e4f 7917/* end confdefs.h. */
eff02e4f 7918
eff02e4f
ILT
7919int
7920main ()
7921{
d4c059d5
ILT
7922
7923 ;
eff02e4f
ILT
7924 return 0;
7925}
7926_ACEOF
d4c059d5
ILT
7927if ac_fn_c_try_link "$LINENO"; then :
7928 lt_cv_ld_exported_symbols_list=yes
eff02e4f 7929else
d4c059d5 7930 lt_cv_ld_exported_symbols_list=no
eff02e4f 7931fi
d4c059d5
ILT
7932rm -f core conftest.err conftest.$ac_objext \
7933 conftest$ac_exeext conftest.$ac_ext
7934 LDFLAGS="$save_LDFLAGS"
eff02e4f
ILT
7935
7936fi
d4c059d5
ILT
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7938$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7940$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 7941if ${lt_cv_ld_force_load+:} false; then :
d4c059d5
ILT
7942 $as_echo_n "(cached) " >&6
7943else
7944 lt_cv_ld_force_load=no
7945 cat > conftest.c << _LT_EOF
7946int forced_loaded() { return 2;}
7947_LT_EOF
7948 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7949 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7950 echo "$AR cru libconftest.a conftest.o" >&5
7951 $AR cru libconftest.a conftest.o 2>&5
7952 cat > conftest.c << _LT_EOF
7953int main() { return 0;}
7954_LT_EOF
7955 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7956 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7957 _lt_result=$?
7958 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7959 lt_cv_ld_force_load=yes
7960 else
7961 cat conftest.err >&5
7962 fi
7963 rm -f conftest.err libconftest.a conftest conftest.c
7964 rm -rf conftest.dSYM
eff02e4f
ILT
7965
7966fi
d4c059d5
ILT
7967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7968$as_echo "$lt_cv_ld_force_load" >&6; }
7969 case $host_os in
7970 rhapsody* | darwin1.[012])
7971 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7972 darwin1.*)
7973 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7974 darwin*) # darwin 5.x on
7975 # if running on 10.5 or later, the deployment target defaults
7976 # to the OS version, if on x86, and 10.4, the deployment
7977 # target defaults to 10.4. Don't you love it?
7978 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7979 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7980 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 7981 10.[012][,.]*)
d4c059d5
ILT
7982 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7983 10.*)
7984 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7985 esac
7986 ;;
7987 esac
7988 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7989 _lt_dar_single_mod='$single_module'
7990 fi
7991 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7992 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7993 else
7994 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7995 fi
7996 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7997 _lt_dsymutil='~$DSYMUTIL $lib || :'
7998 else
7999 _lt_dsymutil=
8000 fi
8001 ;;
8002 esac
eff02e4f
ILT
8003
8004for ac_header in dlfcn.h
8005do :
8006 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8007"
22e05272 8008if test "x$ac_cv_header_dlfcn_h" = xyes; then :
eff02e4f
ILT
8009 cat >>confdefs.h <<_ACEOF
8010#define HAVE_DLFCN_H 1
8011_ACEOF
8012
8013fi
8014
8015done
8016
8017
8018
8019
8020
8021# Set options
7e5c7547
UW
8022
8023
8024
8025 enable_dlopen=no
8026
8027
8028 enable_win32_dll=no
8029
8030
8031 # Check whether --enable-shared was given.
eff02e4f
ILT
8032if test "${enable_shared+set}" = set; then :
8033 enableval=$enable_shared; p=${PACKAGE-default}
8034 case $enableval in
8035 yes) enable_shared=yes ;;
8036 no) enable_shared=no ;;
8037 *)
8038 enable_shared=no
8039 # Look at the argument we got. We use all the common list separators.
8040 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8041 for pkg in $enableval; do
8042 IFS="$lt_save_ifs"
8043 if test "X$pkg" = "X$p"; then
8044 enable_shared=yes
8045 fi
8046 done
8047 IFS="$lt_save_ifs"
8048 ;;
8049 esac
8050else
7e5c7547 8051 enable_shared=yes
eff02e4f
ILT
8052fi
8053
8054
8055
8056
8057
8058
8059
8060
8061
eff02e4f
ILT
8062 # Check whether --enable-static was given.
8063if test "${enable_static+set}" = set; then :
8064 enableval=$enable_static; p=${PACKAGE-default}
8065 case $enableval in
8066 yes) enable_static=yes ;;
8067 no) enable_static=no ;;
8068 *)
8069 enable_static=no
8070 # Look at the argument we got. We use all the common list separators.
8071 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8072 for pkg in $enableval; do
8073 IFS="$lt_save_ifs"
8074 if test "X$pkg" = "X$p"; then
8075 enable_static=yes
8076 fi
8077 done
8078 IFS="$lt_save_ifs"
8079 ;;
8080 esac
8081else
8082 enable_static=yes
8083fi
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094# Check whether --with-pic was given.
8095if test "${with_pic+set}" = set; then :
8096 withval=$with_pic; pic_mode="$withval"
8097else
8098 pic_mode=default
8099fi
8100
8101
8102test -z "$pic_mode" && pic_mode=default
8103
8104
8105
8106
8107
8108
8109
8110 # Check whether --enable-fast-install was given.
8111if test "${enable_fast_install+set}" = set; then :
8112 enableval=$enable_fast_install; p=${PACKAGE-default}
8113 case $enableval in
8114 yes) enable_fast_install=yes ;;
8115 no) enable_fast_install=no ;;
8116 *)
8117 enable_fast_install=no
8118 # Look at the argument we got. We use all the common list separators.
8119 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8120 for pkg in $enableval; do
8121 IFS="$lt_save_ifs"
8122 if test "X$pkg" = "X$p"; then
8123 enable_fast_install=yes
8124 fi
8125 done
8126 IFS="$lt_save_ifs"
8127 ;;
8128 esac
8129else
8130 enable_fast_install=yes
8131fi
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143# This can be used to rebuild libtool when needed
8144LIBTOOL_DEPS="$ltmain"
8145
8146# Always use our own libtool.
8147LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174test -z "$LN_S" && LN_S="ln -s"
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189if test -n "${ZSH_VERSION+set}" ; then
8190 setopt NO_GLOB_SUBST
8191fi
8192
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8194$as_echo_n "checking for objdir... " >&6; }
22e05272 8195if ${lt_cv_objdir+:} false; then :
eff02e4f
ILT
8196 $as_echo_n "(cached) " >&6
8197else
8198 rm -f .libs 2>/dev/null
8199mkdir .libs 2>/dev/null
8200if test -d .libs; then
8201 lt_cv_objdir=.libs
8202else
8203 # MS-DOS does not allow filenames that begin with a dot.
8204 lt_cv_objdir=_libs
8205fi
8206rmdir .libs 2>/dev/null
8207fi
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8209$as_echo "$lt_cv_objdir" >&6; }
8210objdir=$lt_cv_objdir
8211
8212
8213
8214
8215
8216cat >>confdefs.h <<_ACEOF
8217#define LT_OBJDIR "$lt_cv_objdir/"
8218_ACEOF
8219
8220
8221
8222
8223case $host_os in
8224aix3*)
8225 # AIX sometimes has problems with the GCC collect2 program. For some
8226 # reason, if we set the COLLECT_NAMES environment variable, the problems
8227 # vanish in a puff of smoke.
8228 if test "X${COLLECT_NAMES+set}" != Xset; then
8229 COLLECT_NAMES=
8230 export COLLECT_NAMES
8231 fi
8232 ;;
8233esac
8234
8235# Global variables:
8236ofile=libtool
8237can_build_shared=yes
8238
8239# All known linkers require a `.a' archive for static linking (except MSVC,
8240# which needs '.lib').
8241libext=a
8242
8243with_gnu_ld="$lt_cv_prog_gnu_ld"
8244
8245old_CC="$CC"
8246old_CFLAGS="$CFLAGS"
8247
8248# Set sane defaults for various variables
8249test -z "$CC" && CC=cc
8250test -z "$LTCC" && LTCC=$CC
8251test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8252test -z "$LD" && LD=ld
8253test -z "$ac_objext" && ac_objext=o
8254
8255for cc_temp in $compiler""; do
8256 case $cc_temp in
8257 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8258 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8259 \-*) ;;
8260 *) break;;
8261 esac
8262done
8263cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8264
8265
8266# Only perform the check for file, if the check method requires it
8267test -z "$MAGIC_CMD" && MAGIC_CMD=file
8268case $deplibs_check_method in
8269file_magic*)
8270 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8272$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8273if ${lt_cv_path_MAGIC_CMD+:} false; then :
eff02e4f
ILT
8274 $as_echo_n "(cached) " >&6
8275else
8276 case $MAGIC_CMD in
8277[\\/*] | ?:[\\/]*)
8278 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8279 ;;
8280*)
8281 lt_save_MAGIC_CMD="$MAGIC_CMD"
8282 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8283 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8284 for ac_dir in $ac_dummy; do
8285 IFS="$lt_save_ifs"
8286 test -z "$ac_dir" && ac_dir=.
8287 if test -f $ac_dir/${ac_tool_prefix}file; then
8288 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8289 if test -n "$file_magic_test_file"; then
8290 case $deplibs_check_method in
8291 "file_magic "*)
8292 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8293 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8294 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8295 $EGREP "$file_magic_regex" > /dev/null; then
8296 :
8297 else
8298 cat <<_LT_EOF 1>&2
8299
8300*** Warning: the command libtool uses to detect shared libraries,
8301*** $file_magic_cmd, produces output that libtool cannot recognize.
8302*** The result is that libtool may fail to recognize shared libraries
8303*** as such. This will affect the creation of libtool libraries that
8304*** depend on shared libraries, but programs linked with such libtool
8305*** libraries will work regardless of this problem. Nevertheless, you
8306*** may want to report the problem to your system manager and/or to
8307*** bug-libtool@gnu.org
8308
8309_LT_EOF
8310 fi ;;
8311 esac
8312 fi
8313 break
8314 fi
8315 done
8316 IFS="$lt_save_ifs"
8317 MAGIC_CMD="$lt_save_MAGIC_CMD"
8318 ;;
8319esac
8320fi
8321
8322MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8323if test -n "$MAGIC_CMD"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8325$as_echo "$MAGIC_CMD" >&6; }
8326else
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328$as_echo "no" >&6; }
8329fi
8330
8331
8332
8333
8334
8335if test -z "$lt_cv_path_MAGIC_CMD"; then
8336 if test -n "$ac_tool_prefix"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8338$as_echo_n "checking for file... " >&6; }
22e05272 8339if ${lt_cv_path_MAGIC_CMD+:} false; then :
eff02e4f
ILT
8340 $as_echo_n "(cached) " >&6
8341else
8342 case $MAGIC_CMD in
8343[\\/*] | ?:[\\/]*)
8344 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8345 ;;
8346*)
8347 lt_save_MAGIC_CMD="$MAGIC_CMD"
8348 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8349 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8350 for ac_dir in $ac_dummy; do
8351 IFS="$lt_save_ifs"
8352 test -z "$ac_dir" && ac_dir=.
8353 if test -f $ac_dir/file; then
8354 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8355 if test -n "$file_magic_test_file"; then
8356 case $deplibs_check_method in
8357 "file_magic "*)
8358 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8360 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8361 $EGREP "$file_magic_regex" > /dev/null; then
8362 :
8363 else
8364 cat <<_LT_EOF 1>&2
8365
8366*** Warning: the command libtool uses to detect shared libraries,
8367*** $file_magic_cmd, produces output that libtool cannot recognize.
8368*** The result is that libtool may fail to recognize shared libraries
8369*** as such. This will affect the creation of libtool libraries that
8370*** depend on shared libraries, but programs linked with such libtool
8371*** libraries will work regardless of this problem. Nevertheless, you
8372*** may want to report the problem to your system manager and/or to
8373*** bug-libtool@gnu.org
8374
8375_LT_EOF
8376 fi ;;
8377 esac
8378 fi
8379 break
8380 fi
8381 done
8382 IFS="$lt_save_ifs"
8383 MAGIC_CMD="$lt_save_MAGIC_CMD"
8384 ;;
8385esac
8386fi
8387
8388MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8389if test -n "$MAGIC_CMD"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8391$as_echo "$MAGIC_CMD" >&6; }
8392else
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394$as_echo "no" >&6; }
8395fi
8396
8397
8398 else
8399 MAGIC_CMD=:
8400 fi
8401fi
8402
8403 fi
8404 ;;
8405esac
8406
8407# Use C for the default configuration in the libtool script
8408
8409lt_save_CC="$CC"
8410ac_ext=c
8411ac_cpp='$CPP $CPPFLAGS'
8412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8414ac_compiler_gnu=$ac_cv_c_compiler_gnu
8415
8416
8417# Source file extension for C test sources.
8418ac_ext=c
8419
8420# Object file extension for compiled C test sources.
8421objext=o
8422objext=$objext
8423
8424# Code to be used in simple compile tests
8425lt_simple_compile_test_code="int some_variable = 0;"
8426
8427# Code to be used in simple link tests
8428lt_simple_link_test_code='int main(){return(0);}'
8429
8430
8431
8432
8433
8434
8435
8436# If no C compiler was specified, use CC.
8437LTCC=${LTCC-"$CC"}
8438
8439# If no C compiler flags were specified, use CFLAGS.
8440LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8441
8442# Allow CC to be a program name with arguments.
8443compiler=$CC
8444
8445# Save the default compiler, since it gets overwritten when the other
8446# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8447compiler_DEFAULT=$CC
8448
8449# save warnings/boilerplate of simple test code
8450ac_outfile=conftest.$ac_objext
8451echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8452eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8453_lt_compiler_boilerplate=`cat conftest.err`
8454$RM conftest*
8455
8456ac_outfile=conftest.$ac_objext
8457echo "$lt_simple_link_test_code" >conftest.$ac_ext
8458eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8459_lt_linker_boilerplate=`cat conftest.err`
8460$RM -r conftest*
8461
8462
8463## CAVEAT EMPTOR:
8464## There is no encapsulation within the following macros, do not change
8465## the running order or otherwise move them around unless you know exactly
8466## what you are doing...
8467if test -n "$compiler"; then
8468
8469lt_prog_compiler_no_builtin_flag=
8470
8471if test "$GCC" = yes; then
8472 case $cc_basename in
8473 nvcc*)
8474 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8475 *)
8476 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8477 esac
8478
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8480$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 8481if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
eff02e4f
ILT
8482 $as_echo_n "(cached) " >&6
8483else
8484 lt_cv_prog_compiler_rtti_exceptions=no
8485 ac_outfile=conftest.$ac_objext
8486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8487 lt_compiler_flag="-fno-rtti -fno-exceptions"
8488 # Insert the option either (1) after the last *FLAGS variable, or
8489 # (2) before a word containing "conftest.", or (3) at the end.
8490 # Note that $ac_compile itself does not contain backslashes and begins
8491 # with a dollar sign (not a hyphen), so the echo should work correctly.
8492 # The option is referenced via a variable to avoid confusing sed.
8493 lt_compile=`echo "$ac_compile" | $SED \
8494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8496 -e 's:$: $lt_compiler_flag:'`
8497 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8498 (eval "$lt_compile" 2>conftest.err)
8499 ac_status=$?
8500 cat conftest.err >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 if (exit $ac_status) && test -s "$ac_outfile"; then
8503 # The compiler can only warn and ignore the option if not recognized
8504 # So say no if there are warnings other than the usual output.
8505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8507 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8508 lt_cv_prog_compiler_rtti_exceptions=yes
8509 fi
8510 fi
8511 $RM conftest*
8512
8513fi
8514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8515$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8516
8517if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8518 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8519else
8520 :
8521fi
8522
8523fi
8524
8525
8526
8527
8528
8529
8530 lt_prog_compiler_wl=
8531lt_prog_compiler_pic=
8532lt_prog_compiler_static=
8533
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8535$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8536
8537 if test "$GCC" = yes; then
8538 lt_prog_compiler_wl='-Wl,'
8539 lt_prog_compiler_static='-static'
8540
8541 case $host_os in
8542 aix*)
8543 # All AIX code is PIC.
8544 if test "$host_cpu" = ia64; then
8545 # AIX 5 now supports IA64 processor
8546 lt_prog_compiler_static='-Bstatic'
8547 fi
772a71a9 8548 lt_prog_compiler_pic='-fPIC'
eff02e4f
ILT
8549 ;;
8550
8551 amigaos*)
8552 case $host_cpu in
8553 powerpc)
8554 # see comment about AmigaOS4 .so support
8555 lt_prog_compiler_pic='-fPIC'
8556 ;;
8557 m68k)
8558 # FIXME: we need at least 68020 code to build shared libraries, but
8559 # adding the `-m68020' flag to GCC prevents building anything better,
8560 # like `-m68040'.
8561 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8562 ;;
8563 esac
8564 ;;
8565
8566 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8567 # PIC is the default for these OSes.
8568 ;;
8569
8570 mingw* | cygwin* | pw32* | os2* | cegcc*)
8571 # This hack is so that the source file can tell whether it is being
8572 # built for inclusion in a dll (and should export symbols for example).
8573 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8574 # (--disable-auto-import) libraries
8575 lt_prog_compiler_pic='-DDLL_EXPORT'
8576 ;;
8577
8578 darwin* | rhapsody*)
8579 # PIC is the default on this platform
8580 # Common symbols not allowed in MH_DYLIB files
8581 lt_prog_compiler_pic='-fno-common'
8582 ;;
8583
8584 haiku*)
8585 # PIC is the default for Haiku.
8586 # The "-static" flag exists, but is broken.
8587 lt_prog_compiler_static=
8588 ;;
8589
8590 hpux*)
8591 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8592 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8593 # sets the default TLS model and affects inlining.
8594 case $host_cpu in
8595 hppa*64*)
8596 # +Z the default
8597 ;;
8598 *)
8599 lt_prog_compiler_pic='-fPIC'
8600 ;;
8601 esac
8602 ;;
8603
8604 interix[3-9]*)
8605 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8606 # Instead, we relocate shared libraries at runtime.
8607 ;;
8608
8609 msdosdjgpp*)
8610 # Just because we use GCC doesn't mean we suddenly get shared libraries
8611 # on systems that don't support them.
8612 lt_prog_compiler_can_build_shared=no
8613 enable_shared=no
8614 ;;
8615
8616 *nto* | *qnx*)
8617 # QNX uses GNU C++, but need to define -shared option too, otherwise
8618 # it will coredump.
8619 lt_prog_compiler_pic='-fPIC -shared'
8620 ;;
8621
8622 sysv4*MP*)
8623 if test -d /usr/nec; then
8624 lt_prog_compiler_pic=-Kconform_pic
8625 fi
8626 ;;
8627
8628 *)
8629 lt_prog_compiler_pic='-fPIC'
8630 ;;
8631 esac
8632
8633 case $cc_basename in
8634 nvcc*) # Cuda Compiler Driver 2.2
8635 lt_prog_compiler_wl='-Xlinker '
8636 lt_prog_compiler_pic='-Xcompiler -fPIC'
8637 ;;
8638 esac
8639 else
8640 # PORTME Check for flag to pass linker flags through the system compiler.
8641 case $host_os in
8642 aix*)
8643 lt_prog_compiler_wl='-Wl,'
8644 if test "$host_cpu" = ia64; then
8645 # AIX 5 now supports IA64 processor
8646 lt_prog_compiler_static='-Bstatic'
8647 else
8648 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8649 fi
8650 ;;
8651
8652 mingw* | cygwin* | pw32* | os2* | cegcc*)
8653 # This hack is so that the source file can tell whether it is being
8654 # built for inclusion in a dll (and should export symbols for example).
8655 lt_prog_compiler_pic='-DDLL_EXPORT'
8656 ;;
8657
8658 hpux9* | hpux10* | hpux11*)
8659 lt_prog_compiler_wl='-Wl,'
8660 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8661 # not for PA HP-UX.
8662 case $host_cpu in
8663 hppa*64*|ia64*)
8664 # +Z the default
8665 ;;
8666 *)
8667 lt_prog_compiler_pic='+Z'
8668 ;;
8669 esac
8670 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8671 lt_prog_compiler_static='${wl}-a ${wl}archive'
8672 ;;
8673
8674 irix5* | irix6* | nonstopux*)
8675 lt_prog_compiler_wl='-Wl,'
8676 # PIC (with -KPIC) is the default.
8677 lt_prog_compiler_static='-non_shared'
8678 ;;
8679
8680 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8681 case $cc_basename in
8682 # old Intel for x86_64 which still supported -KPIC.
8683 ecc*)
8684 lt_prog_compiler_wl='-Wl,'
8685 lt_prog_compiler_pic='-KPIC'
8686 lt_prog_compiler_static='-static'
8687 ;;
8688 # icc used to be incompatible with GCC.
8689 # ICC 10 doesn't accept -KPIC any more.
8690 icc* | ifort*)
8691 lt_prog_compiler_wl='-Wl,'
8692 lt_prog_compiler_pic='-fPIC'
8693 lt_prog_compiler_static='-static'
8694 ;;
8695 # Lahey Fortran 8.1.
8696 lf95*)
8697 lt_prog_compiler_wl='-Wl,'
8698 lt_prog_compiler_pic='--shared'
8699 lt_prog_compiler_static='--static'
8700 ;;
8701 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8702 # Portland Group compilers (*not* the Pentium gcc compiler,
8703 # which looks to be a dead project)
8704 lt_prog_compiler_wl='-Wl,'
8705 lt_prog_compiler_pic='-fpic'
8706 lt_prog_compiler_static='-Bstatic'
8707 ;;
8708 ccc*)
8709 lt_prog_compiler_wl='-Wl,'
8710 # All Alpha code is PIC.
8711 lt_prog_compiler_static='-non_shared'
8712 ;;
8713 xl* | bgxl* | bgf* | mpixl*)
8714 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8715 lt_prog_compiler_wl='-Wl,'
8716 lt_prog_compiler_pic='-qpic'
8717 lt_prog_compiler_static='-qstaticlink'
8718 ;;
8719 *)
8720 case `$CC -V 2>&1 | sed 5q` in
8721 *Sun\ F* | *Sun*Fortran*)
8722 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8723 lt_prog_compiler_pic='-KPIC'
8724 lt_prog_compiler_static='-Bstatic'
8725 lt_prog_compiler_wl=''
8726 ;;
8727 *Sun\ C*)
8728 # Sun C 5.9
8729 lt_prog_compiler_pic='-KPIC'
8730 lt_prog_compiler_static='-Bstatic'
8731 lt_prog_compiler_wl='-Wl,'
8732 ;;
8733 esac
8734 ;;
8735 esac
8736 ;;
8737
8738 newsos6)
8739 lt_prog_compiler_pic='-KPIC'
8740 lt_prog_compiler_static='-Bstatic'
8741 ;;
8742
8743 *nto* | *qnx*)
8744 # QNX uses GNU C++, but need to define -shared option too, otherwise
8745 # it will coredump.
8746 lt_prog_compiler_pic='-fPIC -shared'
8747 ;;
8748
8749 osf3* | osf4* | osf5*)
8750 lt_prog_compiler_wl='-Wl,'
8751 # All OSF/1 code is PIC.
8752 lt_prog_compiler_static='-non_shared'
8753 ;;
8754
8755 rdos*)
8756 lt_prog_compiler_static='-non_shared'
8757 ;;
8758
8759 solaris*)
8760 lt_prog_compiler_pic='-KPIC'
8761 lt_prog_compiler_static='-Bstatic'
8762 case $cc_basename in
8763 f77* | f90* | f95*)
8764 lt_prog_compiler_wl='-Qoption ld ';;
8765 *)
8766 lt_prog_compiler_wl='-Wl,';;
8767 esac
8768 ;;
8769
8770 sunos4*)
8771 lt_prog_compiler_wl='-Qoption ld '
8772 lt_prog_compiler_pic='-PIC'
8773 lt_prog_compiler_static='-Bstatic'
8774 ;;
8775
8776 sysv4 | sysv4.2uw2* | sysv4.3*)
8777 lt_prog_compiler_wl='-Wl,'
8778 lt_prog_compiler_pic='-KPIC'
8779 lt_prog_compiler_static='-Bstatic'
8780 ;;
8781
8782 sysv4*MP*)
8783 if test -d /usr/nec ;then
8784 lt_prog_compiler_pic='-Kconform_pic'
8785 lt_prog_compiler_static='-Bstatic'
8786 fi
8787 ;;
8788
8789 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8790 lt_prog_compiler_wl='-Wl,'
8791 lt_prog_compiler_pic='-KPIC'
8792 lt_prog_compiler_static='-Bstatic'
8793 ;;
8794
8795 unicos*)
8796 lt_prog_compiler_wl='-Wl,'
8797 lt_prog_compiler_can_build_shared=no
8798 ;;
8799
8800 uts4*)
8801 lt_prog_compiler_pic='-pic'
8802 lt_prog_compiler_static='-Bstatic'
8803 ;;
8804
8805 *)
8806 lt_prog_compiler_can_build_shared=no
8807 ;;
8808 esac
8809 fi
8810
8811case $host_os in
8812 # For platforms which do not support PIC, -DPIC is meaningless:
8813 *djgpp*)
8814 lt_prog_compiler_pic=
8815 ;;
8816 *)
8817 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8818 ;;
8819esac
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8821$as_echo "$lt_prog_compiler_pic" >&6; }
8822
8823
8824
8825
8826
8827
8828#
8829# Check to make sure the PIC flag actually works.
8830#
8831if test -n "$lt_prog_compiler_pic"; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8833$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 8834if ${lt_cv_prog_compiler_pic_works+:} false; then :
eff02e4f
ILT
8835 $as_echo_n "(cached) " >&6
8836else
8837 lt_cv_prog_compiler_pic_works=no
8838 ac_outfile=conftest.$ac_objext
8839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8840 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8841 # Insert the option either (1) after the last *FLAGS variable, or
8842 # (2) before a word containing "conftest.", or (3) at the end.
8843 # Note that $ac_compile itself does not contain backslashes and begins
8844 # with a dollar sign (not a hyphen), so the echo should work correctly.
8845 # The option is referenced via a variable to avoid confusing sed.
8846 lt_compile=`echo "$ac_compile" | $SED \
8847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8849 -e 's:$: $lt_compiler_flag:'`
8850 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8851 (eval "$lt_compile" 2>conftest.err)
8852 ac_status=$?
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 if (exit $ac_status) && test -s "$ac_outfile"; then
8856 # The compiler can only warn and ignore the option if not recognized
8857 # So say no if there are warnings other than the usual output.
8858 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8860 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8861 lt_cv_prog_compiler_pic_works=yes
8862 fi
8863 fi
8864 $RM conftest*
8865
8866fi
8867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8868$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8869
8870if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8871 case $lt_prog_compiler_pic in
8872 "" | " "*) ;;
8873 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8874 esac
8875else
8876 lt_prog_compiler_pic=
8877 lt_prog_compiler_can_build_shared=no
8878fi
8879
8880fi
8881
8882
8883
8884
8885
8886
8887#
8888# Check to make sure the static flag actually works.
8889#
8890wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8892$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 8893if ${lt_cv_prog_compiler_static_works+:} false; then :
eff02e4f
ILT
8894 $as_echo_n "(cached) " >&6
8895else
8896 lt_cv_prog_compiler_static_works=no
8897 save_LDFLAGS="$LDFLAGS"
8898 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8899 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8900 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8901 # The linker can only warn and ignore the option if not recognized
8902 # So say no if there are warnings
8903 if test -s conftest.err; then
8904 # Append any errors to the config.log.
8905 cat conftest.err 1>&5
8906 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8908 if diff conftest.exp conftest.er2 >/dev/null; then
8909 lt_cv_prog_compiler_static_works=yes
8910 fi
8911 else
8912 lt_cv_prog_compiler_static_works=yes
8913 fi
8914 fi
8915 $RM -r conftest*
8916 LDFLAGS="$save_LDFLAGS"
8917
8918fi
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8920$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8921
8922if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8923 :
8924else
8925 lt_prog_compiler_static=
8926fi
8927
8928
8929
8930
8931
8932
8933
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8935$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8936if ${lt_cv_prog_compiler_c_o+:} false; then :
eff02e4f
ILT
8937 $as_echo_n "(cached) " >&6
8938else
8939 lt_cv_prog_compiler_c_o=no
8940 $RM -r conftest 2>/dev/null
8941 mkdir conftest
8942 cd conftest
8943 mkdir out
8944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8945
8946 lt_compiler_flag="-o out/conftest2.$ac_objext"
8947 # Insert the option either (1) after the last *FLAGS variable, or
8948 # (2) before a word containing "conftest.", or (3) at the end.
8949 # Note that $ac_compile itself does not contain backslashes and begins
8950 # with a dollar sign (not a hyphen), so the echo should work correctly.
8951 lt_compile=`echo "$ac_compile" | $SED \
8952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8954 -e 's:$: $lt_compiler_flag:'`
8955 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8956 (eval "$lt_compile" 2>out/conftest.err)
8957 ac_status=$?
8958 cat out/conftest.err >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8961 then
8962 # The compiler can only warn and ignore the option if not recognized
8963 # So say no if there are warnings
8964 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8965 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8966 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8967 lt_cv_prog_compiler_c_o=yes
8968 fi
8969 fi
8970 chmod u+w . 2>&5
8971 $RM conftest*
8972 # SGI C++ compiler will create directory out/ii_files/ for
8973 # template instantiation
8974 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8975 $RM out/* && rmdir out
8976 cd ..
8977 $RM -r conftest
8978 $RM conftest*
8979
8980fi
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8982$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8983
8984
8985
8986
8987
8988
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8990$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8991if ${lt_cv_prog_compiler_c_o+:} false; then :
eff02e4f
ILT
8992 $as_echo_n "(cached) " >&6
8993else
8994 lt_cv_prog_compiler_c_o=no
8995 $RM -r conftest 2>/dev/null
8996 mkdir conftest
8997 cd conftest
8998 mkdir out
8999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9000
9001 lt_compiler_flag="-o out/conftest2.$ac_objext"
9002 # Insert the option either (1) after the last *FLAGS variable, or
9003 # (2) before a word containing "conftest.", or (3) at the end.
9004 # Note that $ac_compile itself does not contain backslashes and begins
9005 # with a dollar sign (not a hyphen), so the echo should work correctly.
9006 lt_compile=`echo "$ac_compile" | $SED \
9007 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9008 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9009 -e 's:$: $lt_compiler_flag:'`
9010 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9011 (eval "$lt_compile" 2>out/conftest.err)
9012 ac_status=$?
9013 cat out/conftest.err >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9016 then
9017 # The compiler can only warn and ignore the option if not recognized
9018 # So say no if there are warnings
9019 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9020 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9021 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9022 lt_cv_prog_compiler_c_o=yes
9023 fi
9024 fi
9025 chmod u+w . 2>&5
9026 $RM conftest*
9027 # SGI C++ compiler will create directory out/ii_files/ for
9028 # template instantiation
9029 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9030 $RM out/* && rmdir out
9031 cd ..
9032 $RM -r conftest
9033 $RM conftest*
9034
9035fi
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9037$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9038
9039
9040
9041
9042hard_links="nottested"
9043if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9044 # do not overwrite the value of need_locks provided by the user
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9046$as_echo_n "checking if we can lock with hard links... " >&6; }
9047 hard_links=yes
9048 $RM conftest*
9049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9050 touch conftest.a
9051 ln conftest.a conftest.b 2>&5 || hard_links=no
9052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9054$as_echo "$hard_links" >&6; }
9055 if test "$hard_links" = no; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9057$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9058 need_locks=warn
9059 fi
9060else
9061 need_locks=no
9062fi
9063
9064
9065
9066
9067
9068
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9070$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9071
9072 runpath_var=
9073 allow_undefined_flag=
9074 always_export_symbols=no
9075 archive_cmds=
9076 archive_expsym_cmds=
9077 compiler_needs_object=no
9078 enable_shared_with_static_runtimes=no
9079 export_dynamic_flag_spec=
9080 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9081 hardcode_automatic=no
9082 hardcode_direct=no
9083 hardcode_direct_absolute=no
9084 hardcode_libdir_flag_spec=
9085 hardcode_libdir_flag_spec_ld=
9086 hardcode_libdir_separator=
9087 hardcode_minus_L=no
9088 hardcode_shlibpath_var=unsupported
9089 inherit_rpath=no
9090 link_all_deplibs=unknown
9091 module_cmds=
9092 module_expsym_cmds=
9093 old_archive_from_new_cmds=
9094 old_archive_from_expsyms_cmds=
9095 thread_safe_flag_spec=
9096 whole_archive_flag_spec=
9097 # include_expsyms should be a list of space-separated symbols to be *always*
9098 # included in the symbol list
9099 include_expsyms=
9100 # exclude_expsyms can be an extended regexp of symbols to exclude
9101 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9102 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9103 # as well as any symbol that contains `d'.
9104 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9105 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9106 # platforms (ab)use it in PIC code, but their linkers get confused if
9107 # the symbol is explicitly referenced. Since portable code cannot
9108 # rely on this symbol name, it's probably fine to never include it in
9109 # preloaded symbol tables.
9110 # Exclude shared library initialization/finalization symbols.
9111 extract_expsyms_cmds=
9112
9113 case $host_os in
9114 cygwin* | mingw* | pw32* | cegcc*)
9115 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9116 # When not using gcc, we currently assume that we are using
9117 # Microsoft Visual C++.
9118 if test "$GCC" != yes; then
9119 with_gnu_ld=no
9120 fi
9121 ;;
9122 interix*)
9123 # we just hope/assume this is gcc and not c89 (= MSVC++)
9124 with_gnu_ld=yes
9125 ;;
9126 openbsd*)
9127 with_gnu_ld=no
9128 ;;
9129 esac
9130
9131 ld_shlibs=yes
9132
9133 # On some targets, GNU ld is compatible enough with the native linker
9134 # that we're better off using the native interface for both.
9135 lt_use_gnu_ld_interface=no
9136 if test "$with_gnu_ld" = yes; then
9137 case $host_os in
9138 aix*)
9139 # The AIX port of GNU ld has always aspired to compatibility
9140 # with the native linker. However, as the warning in the GNU ld
9141 # block says, versions before 2.19.5* couldn't really create working
9142 # shared libraries, regardless of the interface used.
9143 case `$LD -v 2>&1` in
9144 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9145 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9146 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9147 *)
9148 lt_use_gnu_ld_interface=yes
9149 ;;
9150 esac
9151 ;;
9152 *)
9153 lt_use_gnu_ld_interface=yes
9154 ;;
9155 esac
9156 fi
9157
9158 if test "$lt_use_gnu_ld_interface" = yes; then
9159 # If archive_cmds runs LD, not CC, wlarc should be empty
9160 wlarc='${wl}'
9161
9162 # Set some defaults for GNU ld with shared library support. These
9163 # are reset later if shared libraries are not supported. Putting them
9164 # here allows them to be overridden if necessary.
9165 runpath_var=LD_RUN_PATH
9166 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9167 export_dynamic_flag_spec='${wl}--export-dynamic'
9168 # ancient GNU ld didn't support --whole-archive et. al.
9169 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9170 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9171 else
9172 whole_archive_flag_spec=
9173 fi
9174 supports_anon_versioning=no
9175 case `$LD -v 2>&1` in
9176 *GNU\ gold*) supports_anon_versioning=yes ;;
9177 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9178 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9179 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9180 *\ 2.11.*) ;; # other 2.11 versions
9181 *) supports_anon_versioning=yes ;;
9182 esac
9183
9184 # See if GNU ld supports shared libraries.
9185 case $host_os in
9186 aix[3-9]*)
9187 # On AIX/PPC, the GNU linker is very broken
9188 if test "$host_cpu" != ia64; then
9189 ld_shlibs=no
9190 cat <<_LT_EOF 1>&2
9191
9192*** Warning: the GNU linker, at least up to release 2.19, is reported
9193*** to be unable to reliably create shared libraries on AIX.
9194*** Therefore, libtool is disabling shared libraries support. If you
9195*** really care for shared libraries, you may want to install binutils
9196*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9197*** You will then need to restart the configuration process.
9198
9199_LT_EOF
9200 fi
9201 ;;
9202
9203 amigaos*)
9204 case $host_cpu in
9205 powerpc)
9206 # see comment about AmigaOS4 .so support
9207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9208 archive_expsym_cmds=''
9209 ;;
9210 m68k)
9211 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)'
9212 hardcode_libdir_flag_spec='-L$libdir'
9213 hardcode_minus_L=yes
9214 ;;
9215 esac
9216 ;;
9217
9218 beos*)
9219 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9220 allow_undefined_flag=unsupported
9221 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9222 # support --undefined. This deserves some investigation. FIXME
9223 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9224 else
9225 ld_shlibs=no
9226 fi
9227 ;;
9228
9229 cygwin* | mingw* | pw32* | cegcc*)
9230 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9231 # as there is no search path for DLLs.
9232 hardcode_libdir_flag_spec='-L$libdir'
9233 export_dynamic_flag_spec='${wl}--export-all-symbols'
9234 allow_undefined_flag=unsupported
9235 always_export_symbols=no
9236 enable_shared_with_static_runtimes=yes
9237 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9238
9239 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9241 # If the export-symbols file already is a .def file (1st line
9242 # is EXPORTS), use it as is; otherwise, prepend...
9243 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9244 cp $export_symbols $output_objdir/$soname.def;
9245 else
9246 echo EXPORTS > $output_objdir/$soname.def;
9247 cat $export_symbols >> $output_objdir/$soname.def;
9248 fi~
9249 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9250 else
9251 ld_shlibs=no
9252 fi
9253 ;;
9254
9255 haiku*)
9256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9257 link_all_deplibs=yes
9258 ;;
9259
9260 interix[3-9]*)
9261 hardcode_direct=no
9262 hardcode_shlibpath_var=no
9263 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9264 export_dynamic_flag_spec='${wl}-E'
9265 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9266 # Instead, shared libraries are loaded at an image base (0x10000000 by
9267 # default) and relocated if they conflict, which is a slow very memory
9268 # consuming and fragmenting process. To avoid this, we pick a random,
9269 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9270 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9271 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9272 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'
9273 ;;
9274
e9085da5 9275 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
eff02e4f
ILT
9276 tmp_diet=no
9277 if test "$host_os" = linux-dietlibc; then
9278 case $cc_basename in
9279 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9280 esac
9281 fi
9282 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9283 && test "$tmp_diet" = no
9284 then
a699d672 9285 tmp_addflag=' $pic_flag'
eff02e4f
ILT
9286 tmp_sharedflag='-shared'
9287 case $cc_basename,$host_cpu in
9288 pgcc*) # Portland Group C compiler
9289 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'
9290 tmp_addflag=' $pic_flag'
9291 ;;
9292 pgf77* | pgf90* | pgf95* | pgfortran*)
9293 # Portland Group f77 and f90 compilers
9294 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'
9295 tmp_addflag=' $pic_flag -Mnomain' ;;
9296 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9297 tmp_addflag=' -i_dynamic' ;;
9298 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9299 tmp_addflag=' -i_dynamic -nofor_main' ;;
9300 ifc* | ifort*) # Intel Fortran compiler
9301 tmp_addflag=' -nofor_main' ;;
9302 lf95*) # Lahey Fortran 8.1
9303 whole_archive_flag_spec=
9304 tmp_sharedflag='--shared' ;;
9305 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9306 tmp_sharedflag='-qmkshrobj'
9307 tmp_addflag= ;;
9308 nvcc*) # Cuda Compiler Driver 2.2
9309 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'
9310 compiler_needs_object=yes
9311 ;;
9312 esac
9313 case `$CC -V 2>&1 | sed 5q` in
9314 *Sun\ C*) # Sun C 5.9
9315 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'
9316 compiler_needs_object=yes
9317 tmp_sharedflag='-G' ;;
9318 *Sun\ F*) # Sun Fortran 8.3
9319 tmp_sharedflag='-G' ;;
9320 esac
9321 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9322
9323 if test "x$supports_anon_versioning" = xyes; then
9324 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9325 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9326 echo "local: *; };" >> $output_objdir/$libname.ver~
9327 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9328 fi
9329
9330 case $cc_basename in
9331 xlf* | bgf* | bgxlf* | mpixlf*)
9332 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9333 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9334 hardcode_libdir_flag_spec=
9335 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9336 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9337 if test "x$supports_anon_versioning" = xyes; then
9338 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9339 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9340 echo "local: *; };" >> $output_objdir/$libname.ver~
9341 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9342 fi
9343 ;;
9344 esac
9345 else
9346 ld_shlibs=no
9347 fi
9348 ;;
9349
9350 netbsd*)
9351 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9352 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9353 wlarc=
9354 else
9355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9356 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9357 fi
9358 ;;
9359
9360 solaris*)
9361 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9362 ld_shlibs=no
9363 cat <<_LT_EOF 1>&2
9364
9365*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9366*** create shared libraries on Solaris systems. Therefore, libtool
9367*** is disabling shared libraries support. We urge you to upgrade GNU
9368*** binutils to release 2.9.1 or newer. Another option is to modify
9369*** your PATH or compiler configuration so that the native linker is
9370*** used, and then restart.
9371
9372_LT_EOF
9373 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9375 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9376 else
9377 ld_shlibs=no
9378 fi
9379 ;;
9380
9381 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9382 case `$LD -v 2>&1` in
9383 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9384 ld_shlibs=no
9385 cat <<_LT_EOF 1>&2
9386
9387*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9388*** reliably create shared libraries on SCO systems. Therefore, libtool
9389*** is disabling shared libraries support. We urge you to upgrade GNU
9390*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9391*** your PATH or compiler configuration so that the native linker is
9392*** used, and then restart.
9393
9394_LT_EOF
9395 ;;
9396 *)
9397 # For security reasons, it is highly recommended that you always
9398 # use absolute paths for naming shared libraries, and exclude the
9399 # DT_RUNPATH tag from executables and libraries. But doing so
9400 # requires that you compile everything twice, which is a pain.
9401 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9404 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9405 else
9406 ld_shlibs=no
9407 fi
9408 ;;
9409 esac
9410 ;;
9411
9412 sunos4*)
9413 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9414 wlarc=
9415 hardcode_direct=yes
9416 hardcode_shlibpath_var=no
9417 ;;
9418
9419 *)
9420 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9423 else
9424 ld_shlibs=no
9425 fi
9426 ;;
9427 esac
9428
9429 if test "$ld_shlibs" = no; then
9430 runpath_var=
9431 hardcode_libdir_flag_spec=
9432 export_dynamic_flag_spec=
9433 whole_archive_flag_spec=
9434 fi
9435 else
9436 # PORTME fill in a description of your system's linker (not GNU ld)
9437 case $host_os in
9438 aix3*)
9439 allow_undefined_flag=unsupported
9440 always_export_symbols=yes
9441 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'
9442 # Note: this linker hardcodes the directories in LIBPATH if there
9443 # are no directories specified by -L.
9444 hardcode_minus_L=yes
9445 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9446 # Neither direct hardcoding nor static linking is supported with a
9447 # broken collect2.
9448 hardcode_direct=unsupported
9449 fi
9450 ;;
9451
9452 aix[4-9]*)
9453 if test "$host_cpu" = ia64; then
9454 # On IA64, the linker does run time linking by default, so we don't
9455 # have to do anything special.
9456 aix_use_runtimelinking=no
9457 exp_sym_flag='-Bexport'
9458 no_entry_flag=""
9459 else
9460 # If we're using GNU nm, then we don't want the "-C" option.
9461 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9462 # Also, AIX nm treats weak defined symbols like other global
9463 # defined symbols, whereas GNU nm marks them as "W".
9464 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9465 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'
9466 else
2f401a8f 9467 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'
eff02e4f
ILT
9468 fi
9469 aix_use_runtimelinking=no
9470
9471 # Test if we are trying to use run time linking or normal
9472 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9473 # need to do runtime linking.
9474 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9475 for ld_flag in $LDFLAGS; do
9476 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9477 aix_use_runtimelinking=yes
9478 break
9479 fi
9480 done
9481 ;;
9482 esac
9483
9484 exp_sym_flag='-bexport'
9485 no_entry_flag='-bnoentry'
9486 fi
9487
9488 # When large executables or shared objects are built, AIX ld can
9489 # have problems creating the table of contents. If linking a library
9490 # or program results in "error TOC overflow" add -mminimal-toc to
9491 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9492 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9493
9494 archive_cmds=''
9495 hardcode_direct=yes
9496 hardcode_direct_absolute=yes
9497 hardcode_libdir_separator=':'
9498 link_all_deplibs=yes
9499 file_list_spec='${wl}-f,'
9500
9501 if test "$GCC" = yes; then
9502 case $host_os in aix4.[012]|aix4.[012].*)
9503 # We only want to do this on AIX 4.2 and lower, the check
9504 # below for broken collect2 doesn't work under 4.3+
9505 collect2name=`${CC} -print-prog-name=collect2`
9506 if test -f "$collect2name" &&
9507 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9508 then
9509 # We have reworked collect2
9510 :
9511 else
9512 # We have old collect2
9513 hardcode_direct=unsupported
9514 # It fails to find uninstalled libraries when the uninstalled
9515 # path is not listed in the libpath. Setting hardcode_minus_L
9516 # to unsupported forces relinking
9517 hardcode_minus_L=yes
9518 hardcode_libdir_flag_spec='-L$libdir'
9519 hardcode_libdir_separator=
9520 fi
9521 ;;
9522 esac
9523 shared_flag='-shared'
9524 if test "$aix_use_runtimelinking" = yes; then
9525 shared_flag="$shared_flag "'${wl}-G'
9526 fi
9527 else
9528 # not using gcc
9529 if test "$host_cpu" = ia64; then
9530 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9531 # chokes on -Wl,-G. The following line is correct:
9532 shared_flag='-G'
9533 else
9534 if test "$aix_use_runtimelinking" = yes; then
9535 shared_flag='${wl}-G'
9536 else
9537 shared_flag='${wl}-bM:SRE'
9538 fi
9539 fi
9540 fi
9541
9542 export_dynamic_flag_spec='${wl}-bexpall'
9543 # It seems that -bexpall does not export symbols beginning with
9544 # underscore (_), so it is better to generate a list of symbols to export.
9545 always_export_symbols=yes
9546 if test "$aix_use_runtimelinking" = yes; then
9547 # Warning - without using the other runtime loading flags (-brtl),
9548 # -berok will link without error, but may produce a broken library.
9549 allow_undefined_flag='-berok'
9550 # Determine the default libpath from the value encoded in an
9551 # empty executable.
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553/* end confdefs.h. */
9554
9555int
9556main ()
9557{
9558
9559 ;
9560 return 0;
9561}
9562_ACEOF
9563if ac_fn_c_try_link "$LINENO"; then :
9564
9565lt_aix_libpath_sed='
9566 /Import File Strings/,/^$/ {
9567 /^0/ {
9568 s/^0 *\(.*\)$/\1/
9569 p
9570 }
9571 }'
9572aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9573# Check for a 64-bit object if we didn't find anything.
9574if test -z "$aix_libpath"; then
9575 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9576fi
9577fi
9578rm -f core conftest.err conftest.$ac_objext \
9579 conftest$ac_exeext conftest.$ac_ext
9580if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9581
9582 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9583 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"
9584 else
9585 if test "$host_cpu" = ia64; then
9586 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9587 allow_undefined_flag="-z nodefs"
9588 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"
9589 else
9590 # Determine the default libpath from the value encoded in an
9591 # empty executable.
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593/* end confdefs.h. */
9594
9595int
9596main ()
9597{
9598
9599 ;
9600 return 0;
9601}
9602_ACEOF
9603if ac_fn_c_try_link "$LINENO"; then :
9604
9605lt_aix_libpath_sed='
9606 /Import File Strings/,/^$/ {
9607 /^0/ {
9608 s/^0 *\(.*\)$/\1/
9609 p
9610 }
9611 }'
9612aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9613# Check for a 64-bit object if we didn't find anything.
9614if test -z "$aix_libpath"; then
9615 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9616fi
9617fi
9618rm -f core conftest.err conftest.$ac_objext \
9619 conftest$ac_exeext conftest.$ac_ext
9620if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9621
9622 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9623 # Warning - without using the other run time loading flags,
9624 # -berok will link without error, but may produce a broken library.
9625 no_undefined_flag=' ${wl}-bernotok'
9626 allow_undefined_flag=' ${wl}-berok'
9627 if test "$with_gnu_ld" = yes; then
9628 # We only use this code for GNU lds that support --whole-archive.
9629 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9630 else
9631 # Exported symbols can be pulled into shared objects from archives
9632 whole_archive_flag_spec='$convenience'
9633 fi
9634 archive_cmds_need_lc=yes
9635 # This is similar to how AIX traditionally builds its shared libraries.
9636 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'
9637 fi
9638 fi
9639 ;;
9640
9641 amigaos*)
9642 case $host_cpu in
9643 powerpc)
9644 # see comment about AmigaOS4 .so support
9645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9646 archive_expsym_cmds=''
9647 ;;
9648 m68k)
9649 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)'
9650 hardcode_libdir_flag_spec='-L$libdir'
9651 hardcode_minus_L=yes
9652 ;;
9653 esac
9654 ;;
9655
9656 bsdi[45]*)
9657 export_dynamic_flag_spec=-rdynamic
9658 ;;
9659
9660 cygwin* | mingw* | pw32* | cegcc*)
9661 # When not using gcc, we currently assume that we are using
9662 # Microsoft Visual C++.
9663 # hardcode_libdir_flag_spec is actually meaningless, as there is
9664 # no search path for DLLs.
9665 hardcode_libdir_flag_spec=' '
9666 allow_undefined_flag=unsupported
9667 # Tell ltmain to make .lib files, not .a files.
9668 libext=lib
9669 # Tell ltmain to make .dll files, not .so files.
9670 shrext_cmds=".dll"
9671 # FIXME: Setting linknames here is a bad hack.
9672 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9673 # The linker will automatically build a .lib file if we build a DLL.
9674 old_archive_from_new_cmds='true'
9675 # FIXME: Should let the user specify the lib program.
9676 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9677 fix_srcfile_path='`cygpath -w "$srcfile"`'
9678 enable_shared_with_static_runtimes=yes
9679 ;;
9680
9681 darwin* | rhapsody*)
9682
9683
9684 archive_cmds_need_lc=no
9685 hardcode_direct=no
9686 hardcode_automatic=yes
9687 hardcode_shlibpath_var=unsupported
9688 if test "$lt_cv_ld_force_load" = "yes"; then
9689 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\"`'
9690 else
9691 whole_archive_flag_spec=''
9692 fi
9693 link_all_deplibs=yes
9694 allow_undefined_flag="$_lt_dar_allow_undefined"
9695 case $cc_basename in
9696 ifort*) _lt_dar_can_shared=yes ;;
9697 *) _lt_dar_can_shared=$GCC ;;
9698 esac
9699 if test "$_lt_dar_can_shared" = "yes"; then
9700 output_verbose_link_cmd=func_echo_all
9701 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9702 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9703 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9704 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}"
9705
9706 else
9707 ld_shlibs=no
9708 fi
9709
9710 ;;
9711
9712 dgux*)
9713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714 hardcode_libdir_flag_spec='-L$libdir'
9715 hardcode_shlibpath_var=no
9716 ;;
9717
9718 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9719 # support. Future versions do this automatically, but an explicit c++rt0.o
9720 # does not break anything, and helps significantly (at the cost of a little
9721 # extra space).
9722 freebsd2.2*)
9723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9724 hardcode_libdir_flag_spec='-R$libdir'
9725 hardcode_direct=yes
9726 hardcode_shlibpath_var=no
9727 ;;
9728
9729 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9730 freebsd2.*)
9731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9732 hardcode_direct=yes
9733 hardcode_minus_L=yes
9734 hardcode_shlibpath_var=no
9735 ;;
9736
9737 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9738 freebsd* | dragonfly*)
9739 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9740 hardcode_libdir_flag_spec='-R$libdir'
9741 hardcode_direct=yes
9742 hardcode_shlibpath_var=no
9743 ;;
9744
9745 hpux9*)
9746 if test "$GCC" = yes; then
9747 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'
9748 else
9749 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'
9750 fi
9751 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9752 hardcode_libdir_separator=:
9753 hardcode_direct=yes
9754
9755 # hardcode_minus_L: Not really in the search PATH,
9756 # but as the default location of the library.
9757 hardcode_minus_L=yes
9758 export_dynamic_flag_spec='${wl}-E'
9759 ;;
9760
9761 hpux10*)
9762 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9763 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9764 else
9765 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9766 fi
9767 if test "$with_gnu_ld" = no; then
9768 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9769 hardcode_libdir_flag_spec_ld='+b $libdir'
9770 hardcode_libdir_separator=:
9771 hardcode_direct=yes
9772 hardcode_direct_absolute=yes
9773 export_dynamic_flag_spec='${wl}-E'
9774 # hardcode_minus_L: Not really in the search PATH,
9775 # but as the default location of the library.
9776 hardcode_minus_L=yes
9777 fi
9778 ;;
9779
9780 hpux11*)
9781 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9782 case $host_cpu in
9783 hppa*64*)
9784 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9785 ;;
9786 ia64*)
9787 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9788 ;;
9789 *)
9790 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9791 ;;
9792 esac
9793 else
9794 case $host_cpu in
9795 hppa*64*)
9796 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9797 ;;
9798 ia64*)
9799 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9800 ;;
9801 *)
9802
9803 # Older versions of the 11.00 compiler do not understand -b yet
9804 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9806$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 9807if ${lt_cv_prog_compiler__b+:} false; then :
eff02e4f
ILT
9808 $as_echo_n "(cached) " >&6
9809else
9810 lt_cv_prog_compiler__b=no
9811 save_LDFLAGS="$LDFLAGS"
9812 LDFLAGS="$LDFLAGS -b"
9813 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9814 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9815 # The linker can only warn and ignore the option if not recognized
9816 # So say no if there are warnings
9817 if test -s conftest.err; then
9818 # Append any errors to the config.log.
9819 cat conftest.err 1>&5
9820 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9822 if diff conftest.exp conftest.er2 >/dev/null; then
9823 lt_cv_prog_compiler__b=yes
9824 fi
9825 else
9826 lt_cv_prog_compiler__b=yes
9827 fi
9828 fi
9829 $RM -r conftest*
9830 LDFLAGS="$save_LDFLAGS"
9831
9832fi
9833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9834$as_echo "$lt_cv_prog_compiler__b" >&6; }
9835
9836if test x"$lt_cv_prog_compiler__b" = xyes; then
9837 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9838else
9839 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9840fi
9841
9842 ;;
9843 esac
9844 fi
9845 if test "$with_gnu_ld" = no; then
9846 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9847 hardcode_libdir_separator=:
9848
9849 case $host_cpu in
9850 hppa*64*|ia64*)
9851 hardcode_direct=no
9852 hardcode_shlibpath_var=no
9853 ;;
9854 *)
9855 hardcode_direct=yes
9856 hardcode_direct_absolute=yes
9857 export_dynamic_flag_spec='${wl}-E'
9858
9859 # hardcode_minus_L: Not really in the search PATH,
9860 # but as the default location of the library.
9861 hardcode_minus_L=yes
9862 ;;
9863 esac
9864 fi
9865 ;;
9866
9867 irix5* | irix6* | nonstopux*)
9868 if test "$GCC" = yes; then
9869 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'
9870 # Try to use the -exported_symbol ld option, if it does not
9871 # work, assume that -exports_file does not work either and
9872 # implicitly export all symbols.
9873 save_LDFLAGS="$LDFLAGS"
9874 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876/* end confdefs.h. */
9877int foo(void) {}
9878_ACEOF
9879if ac_fn_c_try_link "$LINENO"; then :
9880 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'
9881
9882fi
9883rm -f core conftest.err conftest.$ac_objext \
9884 conftest$ac_exeext conftest.$ac_ext
9885 LDFLAGS="$save_LDFLAGS"
9886 else
9887 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'
9888 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'
9889 fi
9890 archive_cmds_need_lc='no'
9891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9892 hardcode_libdir_separator=:
9893 inherit_rpath=yes
9894 link_all_deplibs=yes
9895 ;;
9896
9897 netbsd*)
9898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9899 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9900 else
9901 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9902 fi
9903 hardcode_libdir_flag_spec='-R$libdir'
9904 hardcode_direct=yes
9905 hardcode_shlibpath_var=no
9906 ;;
9907
9908 newsos6)
9909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9910 hardcode_direct=yes
9911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9912 hardcode_libdir_separator=:
9913 hardcode_shlibpath_var=no
9914 ;;
9915
9916 *nto* | *qnx*)
9917 ;;
9918
9919 openbsd*)
9920 if test -f /usr/libexec/ld.so; then
9921 hardcode_direct=yes
9922 hardcode_shlibpath_var=no
9923 hardcode_direct_absolute=yes
9924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9925 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9926 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9927 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9928 export_dynamic_flag_spec='${wl}-E'
9929 else
9930 case $host_os in
9931 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9932 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9933 hardcode_libdir_flag_spec='-R$libdir'
9934 ;;
9935 *)
9936 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9937 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9938 ;;
9939 esac
9940 fi
9941 else
9942 ld_shlibs=no
9943 fi
9944 ;;
9945
9946 os2*)
9947 hardcode_libdir_flag_spec='-L$libdir'
9948 hardcode_minus_L=yes
9949 allow_undefined_flag=unsupported
9950 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'
9951 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9952 ;;
9953
9954 osf3*)
9955 if test "$GCC" = yes; then
9956 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9957 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'
9958 else
9959 allow_undefined_flag=' -expect_unresolved \*'
9960 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'
9961 fi
9962 archive_cmds_need_lc='no'
9963 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9964 hardcode_libdir_separator=:
9965 ;;
9966
9967 osf4* | osf5*) # as osf3* with the addition of -msym flag
9968 if test "$GCC" = yes; then
9969 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9970 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'
9971 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9972 else
9973 allow_undefined_flag=' -expect_unresolved \*'
9974 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'
9975 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~
9976 $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'
9977
9978 # Both c and cxx compiler support -rpath directly
9979 hardcode_libdir_flag_spec='-rpath $libdir'
9980 fi
9981 archive_cmds_need_lc='no'
9982 hardcode_libdir_separator=:
9983 ;;
9984
9985 solaris*)
9986 no_undefined_flag=' -z defs'
9987 if test "$GCC" = yes; then
9988 wlarc='${wl}'
9989 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9990 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9991 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9992 else
9993 case `$CC -V 2>&1` in
9994 *"Compilers 5.0"*)
9995 wlarc=''
9996 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9997 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9998 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9999 ;;
10000 *)
10001 wlarc='${wl}'
10002 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10003 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10004 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10005 ;;
10006 esac
10007 fi
10008 hardcode_libdir_flag_spec='-R$libdir'
10009 hardcode_shlibpath_var=no
10010 case $host_os in
10011 solaris2.[0-5] | solaris2.[0-5].*) ;;
10012 *)
10013 # The compiler driver will combine and reorder linker options,
10014 # but understands `-z linker_flag'. GCC discards it without `$wl',
10015 # but is careful enough not to reorder.
10016 # Supported since Solaris 2.6 (maybe 2.5.1?)
10017 if test "$GCC" = yes; then
10018 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10019 else
10020 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10021 fi
10022 ;;
10023 esac
10024 link_all_deplibs=yes
10025 ;;
10026
10027 sunos4*)
10028 if test "x$host_vendor" = xsequent; then
10029 # Use $CC to link under sequent, because it throws in some extra .o
10030 # files that make .init and .fini sections work.
10031 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10032 else
10033 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10034 fi
10035 hardcode_libdir_flag_spec='-L$libdir'
10036 hardcode_direct=yes
10037 hardcode_minus_L=yes
10038 hardcode_shlibpath_var=no
10039 ;;
10040
10041 sysv4)
10042 case $host_vendor in
10043 sni)
10044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10045 hardcode_direct=yes # is this really true???
10046 ;;
10047 siemens)
10048 ## LD is ld it makes a PLAMLIB
10049 ## CC just makes a GrossModule.
10050 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10051 reload_cmds='$CC -r -o $output$reload_objs'
10052 hardcode_direct=no
10053 ;;
10054 motorola)
10055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10056 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10057 ;;
10058 esac
10059 runpath_var='LD_RUN_PATH'
10060 hardcode_shlibpath_var=no
10061 ;;
10062
10063 sysv4.3*)
10064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10065 hardcode_shlibpath_var=no
10066 export_dynamic_flag_spec='-Bexport'
10067 ;;
10068
10069 sysv4*MP*)
10070 if test -d /usr/nec; then
10071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10072 hardcode_shlibpath_var=no
10073 runpath_var=LD_RUN_PATH
10074 hardcode_runpath_var=yes
10075 ld_shlibs=yes
10076 fi
10077 ;;
10078
10079 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10080 no_undefined_flag='${wl}-z,text'
10081 archive_cmds_need_lc=no
10082 hardcode_shlibpath_var=no
10083 runpath_var='LD_RUN_PATH'
10084
10085 if test "$GCC" = yes; then
10086 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10087 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10088 else
10089 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 fi
10092 ;;
10093
10094 sysv5* | sco3.2v5* | sco5v6*)
10095 # Note: We can NOT use -z defs as we might desire, because we do not
10096 # link with -lc, and that would cause any symbols used from libc to
10097 # always be unresolved, which means just about no library would
10098 # ever link correctly. If we're not using GNU ld we use -z text
10099 # though, which does catch some bad symbols but isn't as heavy-handed
10100 # as -z defs.
10101 no_undefined_flag='${wl}-z,text'
10102 allow_undefined_flag='${wl}-z,nodefs'
10103 archive_cmds_need_lc=no
10104 hardcode_shlibpath_var=no
10105 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10106 hardcode_libdir_separator=':'
10107 link_all_deplibs=yes
10108 export_dynamic_flag_spec='${wl}-Bexport'
10109 runpath_var='LD_RUN_PATH'
10110
10111 if test "$GCC" = yes; then
10112 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10113 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 else
10115 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 fi
10118 ;;
10119
10120 uts4*)
10121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122 hardcode_libdir_flag_spec='-L$libdir'
10123 hardcode_shlibpath_var=no
10124 ;;
10125
10126 *)
10127 ld_shlibs=no
10128 ;;
10129 esac
10130
10131 if test x$host_vendor = xsni; then
10132 case $host in
10133 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10134 export_dynamic_flag_spec='${wl}-Blargedynsym'
10135 ;;
10136 esac
10137 fi
10138 fi
10139
10140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10141$as_echo "$ld_shlibs" >&6; }
10142test "$ld_shlibs" = no && can_build_shared=no
10143
10144with_gnu_ld=$with_gnu_ld
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160#
10161# Do we need to explicitly link libc?
10162#
10163case "x$archive_cmds_need_lc" in
10164x|xyes)
10165 # Assume -lc should be added
10166 archive_cmds_need_lc=yes
10167
10168 if test "$enable_shared" = yes && test "$GCC" = yes; then
10169 case $archive_cmds in
10170 *'~'*)
10171 # FIXME: we may have to deal with multi-command sequences.
10172 ;;
10173 '$CC '*)
10174 # Test whether the compiler implicitly links with -lc since on some
10175 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10176 # to ld, don't add -lc before -lgcc.
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10178$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10179if ${lt_cv_archive_cmds_need_lc+:} false; then :
eff02e4f
ILT
10180 $as_echo_n "(cached) " >&6
10181else
10182 $RM conftest*
10183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10184
10185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10186 (eval $ac_compile) 2>&5
10187 ac_status=$?
10188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10189 test $ac_status = 0; } 2>conftest.err; then
10190 soname=conftest
10191 lib=conftest
10192 libobjs=conftest.$ac_objext
10193 deplibs=
10194 wl=$lt_prog_compiler_wl
10195 pic_flag=$lt_prog_compiler_pic
10196 compiler_flags=-v
10197 linker_flags=-v
10198 verstring=
10199 output_objdir=.
10200 libname=conftest
10201 lt_save_allow_undefined_flag=$allow_undefined_flag
10202 allow_undefined_flag=
10203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10204 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10205 ac_status=$?
10206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10207 test $ac_status = 0; }
10208 then
10209 lt_cv_archive_cmds_need_lc=no
10210 else
10211 lt_cv_archive_cmds_need_lc=yes
10212 fi
10213 allow_undefined_flag=$lt_save_allow_undefined_flag
10214 else
10215 cat conftest.err 1>&5
10216 fi
10217 $RM conftest*
10218
10219fi
10220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10221$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10222 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10223 ;;
10224 esac
10225 fi
10226 ;;
10227esac
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10386$as_echo_n "checking dynamic linker characteristics... " >&6; }
10387
10388if test "$GCC" = yes; then
10389 case $host_os in
10390 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10391 *) lt_awk_arg="/^libraries:/" ;;
10392 esac
10393 case $host_os in
10394 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10395 *) lt_sed_strip_eq="s,=/,/,g" ;;
10396 esac
10397 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10398 case $lt_search_path_spec in
10399 *\;*)
10400 # if the path contains ";" then we assume it to be the separator
10401 # otherwise default to the standard path separator (i.e. ":") - it is
10402 # assumed that no part of a normal pathname contains ";" but that should
10403 # okay in the real world where ";" in dirpaths is itself problematic.
10404 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10405 ;;
10406 *)
10407 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10408 ;;
10409 esac
10410 # Ok, now we have the path, separated by spaces, we can step through it
10411 # and add multilib dir if necessary.
10412 lt_tmp_lt_search_path_spec=
10413 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10414 for lt_sys_path in $lt_search_path_spec; do
10415 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10416 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10417 else
10418 test -d "$lt_sys_path" && \
10419 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10420 fi
10421 done
10422 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10423BEGIN {RS=" "; FS="/|\n";} {
10424 lt_foo="";
10425 lt_count=0;
10426 for (lt_i = NF; lt_i > 0; lt_i--) {
10427 if ($lt_i != "" && $lt_i != ".") {
10428 if ($lt_i == "..") {
10429 lt_count++;
10430 } else {
10431 if (lt_count == 0) {
10432 lt_foo="/" $lt_i lt_foo;
10433 } else {
10434 lt_count--;
10435 }
10436 }
10437 }
10438 }
10439 if (lt_foo != "") { lt_freq[lt_foo]++; }
10440 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10441}'`
10442 # AWK program above erroneously prepends '/' to C:/dos/paths
10443 # for these hosts.
10444 case $host_os in
10445 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10446 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10447 esac
10448 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10449else
10450 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10451fi
10452library_names_spec=
10453libname_spec='lib$name'
10454soname_spec=
10455shrext_cmds=".so"
10456postinstall_cmds=
10457postuninstall_cmds=
10458finish_cmds=
10459finish_eval=
10460shlibpath_var=
10461shlibpath_overrides_runpath=unknown
10462version_type=none
10463dynamic_linker="$host_os ld.so"
10464sys_lib_dlsearch_path_spec="/lib /usr/lib"
10465need_lib_prefix=unknown
10466hardcode_into_libs=no
10467
10468# when you set need_version to no, make sure it does not cause -set_version
10469# flags to be left without arguments
10470need_version=unknown
10471
10472case $host_os in
10473aix3*)
10474 version_type=linux
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10476 shlibpath_var=LIBPATH
10477
10478 # AIX 3 has no versioning support, so we append a major version to the name.
10479 soname_spec='${libname}${release}${shared_ext}$major'
10480 ;;
10481
10482aix[4-9]*)
10483 version_type=linux
10484 need_lib_prefix=no
10485 need_version=no
10486 hardcode_into_libs=yes
10487 if test "$host_cpu" = ia64; then
10488 # AIX 5 supports IA64
10489 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10490 shlibpath_var=LD_LIBRARY_PATH
10491 else
10492 # With GCC up to 2.95.x, collect2 would create an import file
10493 # for dependence libraries. The import file would start with
10494 # the line `#! .'. This would cause the generated library to
10495 # depend on `.', always an invalid library. This was fixed in
10496 # development snapshots of GCC prior to 3.0.
10497 case $host_os in
10498 aix4 | aix4.[01] | aix4.[01].*)
10499 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10500 echo ' yes '
10501 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10502 :
10503 else
10504 can_build_shared=no
10505 fi
10506 ;;
10507 esac
10508 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10509 # soname into executable. Probably we can add versioning support to
10510 # collect2, so additional links can be useful in future.
10511 if test "$aix_use_runtimelinking" = yes; then
10512 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10513 # instead of lib<name>.a to let people know that these are not
10514 # typical AIX shared libraries.
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516 else
10517 # We preserve .a as extension for shared libraries through AIX4.2
10518 # and later when we are not doing run time linking.
10519 library_names_spec='${libname}${release}.a $libname.a'
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 fi
10522 shlibpath_var=LIBPATH
10523 fi
10524 ;;
10525
10526amigaos*)
10527 case $host_cpu in
10528 powerpc)
10529 # Since July 2007 AmigaOS4 officially supports .so libraries.
10530 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532 ;;
10533 m68k)
10534 library_names_spec='$libname.ixlibrary $libname.a'
10535 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10536 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'
10537 ;;
10538 esac
10539 ;;
10540
10541beos*)
10542 library_names_spec='${libname}${shared_ext}'
10543 dynamic_linker="$host_os ld.so"
10544 shlibpath_var=LIBRARY_PATH
10545 ;;
10546
10547bsdi[45]*)
10548 version_type=linux
10549 need_version=no
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10555 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10556 # the default ld.so.conf also contains /usr/contrib/lib and
10557 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10558 # libtool to hard-code these into programs
10559 ;;
10560
10561cygwin* | mingw* | pw32* | cegcc*)
10562 version_type=windows
10563 shrext_cmds=".dll"
10564 need_version=no
10565 need_lib_prefix=no
10566
10567 case $GCC,$host_os in
10568 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10569 library_names_spec='$libname.dll.a'
10570 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10571 postinstall_cmds='base_file=`basename \${file}`~
10572 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10573 dldir=$destdir/`dirname \$dlpath`~
10574 test -d \$dldir || mkdir -p \$dldir~
10575 $install_prog $dir/$dlname \$dldir/$dlname~
10576 chmod a+x \$dldir/$dlname~
10577 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10578 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10579 fi'
10580 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10581 dlpath=$dir/\$dldll~
10582 $RM \$dlpath'
10583 shlibpath_overrides_runpath=yes
10584
10585 case $host_os in
10586 cygwin*)
10587 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10588 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10589
10590 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10591 ;;
10592 mingw* | cegcc*)
10593 # MinGW DLLs use traditional 'lib' prefix
10594 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10595 ;;
10596 pw32*)
10597 # pw32 DLLs use 'pw' prefix rather than 'lib'
10598 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10599 ;;
10600 esac
10601 ;;
10602
10603 *)
10604 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10605 ;;
10606 esac
10607 dynamic_linker='Win32 ld.exe'
10608 # FIXME: first we should search . and the directory the executable is in
10609 shlibpath_var=PATH
10610 ;;
10611
10612darwin* | rhapsody*)
10613 dynamic_linker="$host_os dyld"
10614 version_type=darwin
10615 need_lib_prefix=no
10616 need_version=no
10617 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10618 soname_spec='${libname}${release}${major}$shared_ext'
10619 shlibpath_overrides_runpath=yes
10620 shlibpath_var=DYLD_LIBRARY_PATH
10621 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10622
10623 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10624 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10625 ;;
10626
10627dgux*)
10628 version_type=linux
10629 need_lib_prefix=no
10630 need_version=no
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 ;;
10635
10636freebsd* | dragonfly*)
10637 # DragonFly does not have aout. When/if they implement a new
10638 # versioning mechanism, adjust this.
10639 if test -x /usr/bin/objformat; then
10640 objformat=`/usr/bin/objformat`
10641 else
10642 case $host_os in
10643 freebsd[23].*) objformat=aout ;;
10644 *) objformat=elf ;;
10645 esac
10646 fi
10647 version_type=freebsd-$objformat
10648 case $version_type in
10649 freebsd-elf*)
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10651 need_version=no
10652 need_lib_prefix=no
10653 ;;
10654 freebsd-*)
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10656 need_version=yes
10657 ;;
10658 esac
10659 shlibpath_var=LD_LIBRARY_PATH
10660 case $host_os in
10661 freebsd2.*)
10662 shlibpath_overrides_runpath=yes
10663 ;;
10664 freebsd3.[01]* | freebsdelf3.[01]*)
10665 shlibpath_overrides_runpath=yes
10666 hardcode_into_libs=yes
10667 ;;
10668 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10669 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10670 shlibpath_overrides_runpath=no
10671 hardcode_into_libs=yes
10672 ;;
10673 *) # from 4.6 on, and DragonFly
10674 shlibpath_overrides_runpath=yes
10675 hardcode_into_libs=yes
10676 ;;
10677 esac
10678 ;;
10679
10680gnu*)
10681 version_type=linux
10682 need_lib_prefix=no
10683 need_version=no
10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10685 soname_spec='${libname}${release}${shared_ext}$major'
10686 shlibpath_var=LD_LIBRARY_PATH
10687 hardcode_into_libs=yes
10688 ;;
10689
10690haiku*)
10691 version_type=linux
10692 need_lib_prefix=no
10693 need_version=no
10694 dynamic_linker="$host_os runtime_loader"
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10696 soname_spec='${libname}${release}${shared_ext}$major'
10697 shlibpath_var=LIBRARY_PATH
10698 shlibpath_overrides_runpath=yes
10699 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10700 hardcode_into_libs=yes
10701 ;;
10702
10703hpux9* | hpux10* | hpux11*)
10704 # Give a soname corresponding to the major version so that dld.sl refuses to
10705 # link against other versions.
10706 version_type=sunos
10707 need_lib_prefix=no
10708 need_version=no
10709 case $host_cpu in
10710 ia64*)
10711 shrext_cmds='.so'
10712 hardcode_into_libs=yes
10713 dynamic_linker="$host_os dld.so"
10714 shlibpath_var=LD_LIBRARY_PATH
10715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717 soname_spec='${libname}${release}${shared_ext}$major'
10718 if test "X$HPUX_IA64_MODE" = X32; then
10719 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10720 else
10721 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10722 fi
10723 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10724 ;;
10725 hppa*64*)
10726 shrext_cmds='.sl'
10727 hardcode_into_libs=yes
10728 dynamic_linker="$host_os dld.sl"
10729 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10730 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732 soname_spec='${libname}${release}${shared_ext}$major'
10733 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10734 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10735 ;;
10736 *)
10737 shrext_cmds='.sl'
10738 dynamic_linker="$host_os dld.sl"
10739 shlibpath_var=SHLIB_PATH
10740 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10742 soname_spec='${libname}${release}${shared_ext}$major'
10743 ;;
10744 esac
10745 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10746 postinstall_cmds='chmod 555 $lib'
10747 # or fails outright, so override atomically:
10748 install_override_mode=555
10749 ;;
10750
10751interix[3-9]*)
10752 version_type=linux
10753 need_lib_prefix=no
10754 need_version=no
10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10756 soname_spec='${libname}${release}${shared_ext}$major'
10757 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10758 shlibpath_var=LD_LIBRARY_PATH
10759 shlibpath_overrides_runpath=no
10760 hardcode_into_libs=yes
10761 ;;
10762
10763irix5* | irix6* | nonstopux*)
10764 case $host_os in
10765 nonstopux*) version_type=nonstopux ;;
10766 *)
10767 if test "$lt_cv_prog_gnu_ld" = yes; then
10768 version_type=linux
10769 else
10770 version_type=irix
10771 fi ;;
10772 esac
10773 need_lib_prefix=no
10774 need_version=no
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10777 case $host_os in
10778 irix5* | nonstopux*)
10779 libsuff= shlibsuff=
10780 ;;
10781 *)
10782 case $LD in # libtool.m4 will add one of these switches to LD
10783 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10784 libsuff= shlibsuff= libmagic=32-bit;;
10785 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10786 libsuff=32 shlibsuff=N32 libmagic=N32;;
10787 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10788 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10789 *) libsuff= shlibsuff= libmagic=never-match;;
10790 esac
10791 ;;
10792 esac
10793 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10794 shlibpath_overrides_runpath=no
10795 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10796 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10797 hardcode_into_libs=yes
10798 ;;
10799
10800# No shared lib support for Linux oldld, aout, or coff.
10801linux*oldld* | linux*aout* | linux*coff*)
10802 dynamic_linker=no
10803 ;;
10804
10805# This must be Linux ELF.
e9085da5
MR
10806
10807# uclinux* changes (here and below) have been submitted to the libtool
10808# project, but have not yet been accepted: they are GCC-local changes
10809# for the time being. (See
10810# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10811linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
eff02e4f
ILT
10812 version_type=linux
10813 need_lib_prefix=no
10814 need_version=no
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10816 soname_spec='${libname}${release}${shared_ext}$major'
10817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10818 shlibpath_var=LD_LIBRARY_PATH
10819 shlibpath_overrides_runpath=no
10820
10821 # Some binutils ld are patched to set DT_RUNPATH
22e05272 10822 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
eff02e4f
ILT
10823 $as_echo_n "(cached) " >&6
10824else
10825 lt_cv_shlibpath_overrides_runpath=no
10826 save_LDFLAGS=$LDFLAGS
10827 save_libdir=$libdir
10828 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10829 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831/* end confdefs.h. */
10832
10833int
10834main ()
10835{
10836
10837 ;
10838 return 0;
10839}
10840_ACEOF
10841if ac_fn_c_try_link "$LINENO"; then :
10842 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10843 lt_cv_shlibpath_overrides_runpath=yes
10844fi
10845fi
10846rm -f core conftest.err conftest.$ac_objext \
10847 conftest$ac_exeext conftest.$ac_ext
10848 LDFLAGS=$save_LDFLAGS
10849 libdir=$save_libdir
10850
10851fi
10852
10853 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10854
10855 # This implies no fast_install, which is unacceptable.
10856 # Some rework will be needed to allow for fast_install
10857 # before this can be enabled.
10858 hardcode_into_libs=yes
10859
10860 # Append ld.so.conf contents to the search path
10861 if test -f /etc/ld.so.conf; then
10862 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' ' '`
10863 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10864 fi
10865
10866 # We used to test for /lib/ld.so.1 and disable shared libraries on
10867 # powerpc, because MkLinux only supported shared libraries with the
10868 # GNU dynamic linker. Since this was broken with cross compilers,
10869 # most powerpc-linux boxes support dynamic linking these days and
10870 # people can always --disable-shared, the test was removed, and we
10871 # assume the GNU/Linux dynamic linker is in use.
10872 dynamic_linker='GNU/Linux ld.so'
10873 ;;
10874
10875netbsd*)
10876 version_type=sunos
10877 need_lib_prefix=no
10878 need_version=no
10879 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10882 dynamic_linker='NetBSD (a.out) ld.so'
10883 else
10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10885 soname_spec='${libname}${release}${shared_ext}$major'
10886 dynamic_linker='NetBSD ld.elf_so'
10887 fi
10888 shlibpath_var=LD_LIBRARY_PATH
10889 shlibpath_overrides_runpath=yes
10890 hardcode_into_libs=yes
10891 ;;
10892
10893newsos6)
10894 version_type=linux
10895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 shlibpath_overrides_runpath=yes
10898 ;;
10899
10900*nto* | *qnx*)
10901 version_type=qnx
10902 need_lib_prefix=no
10903 need_version=no
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905 soname_spec='${libname}${release}${shared_ext}$major'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 shlibpath_overrides_runpath=no
10908 hardcode_into_libs=yes
10909 dynamic_linker='ldqnx.so'
10910 ;;
10911
10912openbsd*)
10913 version_type=sunos
10914 sys_lib_dlsearch_path_spec="/usr/lib"
10915 need_lib_prefix=no
10916 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10917 case $host_os in
10918 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10919 *) need_version=no ;;
10920 esac
10921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10923 shlibpath_var=LD_LIBRARY_PATH
10924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10925 case $host_os in
10926 openbsd2.[89] | openbsd2.[89].*)
10927 shlibpath_overrides_runpath=no
10928 ;;
10929 *)
10930 shlibpath_overrides_runpath=yes
10931 ;;
10932 esac
10933 else
10934 shlibpath_overrides_runpath=yes
10935 fi
10936 ;;
10937
10938os2*)
10939 libname_spec='$name'
10940 shrext_cmds=".dll"
10941 need_lib_prefix=no
10942 library_names_spec='$libname${shared_ext} $libname.a'
10943 dynamic_linker='OS/2 ld.exe'
10944 shlibpath_var=LIBPATH
10945 ;;
10946
10947osf3* | osf4* | osf5*)
10948 version_type=osf
10949 need_lib_prefix=no
10950 need_version=no
10951 soname_spec='${libname}${release}${shared_ext}$major'
10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10953 shlibpath_var=LD_LIBRARY_PATH
10954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10955 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10956 ;;
10957
10958rdos*)
10959 dynamic_linker=no
10960 ;;
10961
10962solaris*)
10963 version_type=linux
10964 need_lib_prefix=no
10965 need_version=no
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967 soname_spec='${libname}${release}${shared_ext}$major'
10968 shlibpath_var=LD_LIBRARY_PATH
10969 shlibpath_overrides_runpath=yes
10970 hardcode_into_libs=yes
10971 # ldd complains unless libraries are executable
10972 postinstall_cmds='chmod +x $lib'
10973 ;;
10974
10975sunos4*)
10976 version_type=sunos
10977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10978 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10979 shlibpath_var=LD_LIBRARY_PATH
10980 shlibpath_overrides_runpath=yes
10981 if test "$with_gnu_ld" = yes; then
10982 need_lib_prefix=no
10983 fi
10984 need_version=yes
10985 ;;
10986
10987sysv4 | sysv4.3*)
10988 version_type=linux
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 case $host_vendor in
10993 sni)
10994 shlibpath_overrides_runpath=no
10995 need_lib_prefix=no
10996 runpath_var=LD_RUN_PATH
10997 ;;
10998 siemens)
10999 need_lib_prefix=no
11000 ;;
11001 motorola)
11002 need_lib_prefix=no
11003 need_version=no
11004 shlibpath_overrides_runpath=no
11005 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11006 ;;
11007 esac
11008 ;;
11009
11010sysv4*MP*)
11011 if test -d /usr/nec ;then
11012 version_type=linux
11013 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11014 soname_spec='$libname${shared_ext}.$major'
11015 shlibpath_var=LD_LIBRARY_PATH
11016 fi
11017 ;;
11018
11019sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11020 version_type=freebsd-elf
11021 need_lib_prefix=no
11022 need_version=no
11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11024 soname_spec='${libname}${release}${shared_ext}$major'
11025 shlibpath_var=LD_LIBRARY_PATH
11026 shlibpath_overrides_runpath=yes
11027 hardcode_into_libs=yes
11028 if test "$with_gnu_ld" = yes; then
11029 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11030 else
11031 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11032 case $host_os in
11033 sco3.2v5*)
11034 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11035 ;;
11036 esac
11037 fi
11038 sys_lib_dlsearch_path_spec='/usr/lib'
11039 ;;
11040
11041tpf*)
11042 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11043 version_type=linux
11044 need_lib_prefix=no
11045 need_version=no
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047 shlibpath_var=LD_LIBRARY_PATH
11048 shlibpath_overrides_runpath=no
11049 hardcode_into_libs=yes
11050 ;;
11051
11052uts4*)
11053 version_type=linux
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 shlibpath_var=LD_LIBRARY_PATH
11057 ;;
11058
11059*)
11060 dynamic_linker=no
11061 ;;
11062esac
11063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11064$as_echo "$dynamic_linker" >&6; }
11065test "$dynamic_linker" = no && can_build_shared=no
11066
11067variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11068if test "$GCC" = yes; then
11069 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11070fi
11071
11072if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11073 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11074fi
11075if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11076 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11077fi
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11171$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11172hardcode_action=
11173if test -n "$hardcode_libdir_flag_spec" ||
11174 test -n "$runpath_var" ||
11175 test "X$hardcode_automatic" = "Xyes" ; then
11176
11177 # We can hardcode non-existent directories.
11178 if test "$hardcode_direct" != no &&
11179 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11180 # have to relink, otherwise we might link with an installed library
11181 # when we should be linking with a yet-to-be-installed one
11182 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11183 test "$hardcode_minus_L" != no; then
11184 # Linking always hardcodes the temporary library directory.
11185 hardcode_action=relink
11186 else
11187 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11188 hardcode_action=immediate
11189 fi
11190else
11191 # We cannot hardcode anything, or else we can only hardcode existing
11192 # directories.
11193 hardcode_action=unsupported
11194fi
11195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11196$as_echo "$hardcode_action" >&6; }
11197
11198if test "$hardcode_action" = relink ||
11199 test "$inherit_rpath" = yes; then
11200 # Fast installation is not supported
11201 enable_fast_install=no
11202elif test "$shlibpath_overrides_runpath" = yes ||
11203 test "$enable_shared" = no; then
11204 # Fast installation is not necessary
11205 enable_fast_install=needless
11206fi
11207
11208
11209
11210
11211
11212
11213 if test "x$enable_dlopen" != xyes; then
11214 enable_dlopen=unknown
11215 enable_dlopen_self=unknown
11216 enable_dlopen_self_static=unknown
11217else
11218 lt_cv_dlopen=no
11219 lt_cv_dlopen_libs=
11220
11221 case $host_os in
11222 beos*)
11223 lt_cv_dlopen="load_add_on"
11224 lt_cv_dlopen_libs=
11225 lt_cv_dlopen_self=yes
11226 ;;
11227
11228 mingw* | pw32* | cegcc*)
11229 lt_cv_dlopen="LoadLibrary"
11230 lt_cv_dlopen_libs=
11231 ;;
11232
11233 cygwin*)
11234 lt_cv_dlopen="dlopen"
11235 lt_cv_dlopen_libs=
11236 ;;
11237
11238 darwin*)
11239 # if libdl is installed we need to link against it
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11241$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11242if ${ac_cv_lib_dl_dlopen+:} false; then :
eff02e4f
ILT
11243 $as_echo_n "(cached) " >&6
11244else
11245 ac_check_lib_save_LIBS=$LIBS
11246LIBS="-ldl $LIBS"
11247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248/* end confdefs.h. */
11249
11250/* Override any GCC internal prototype to avoid an error.
11251 Use char because int might match the return type of a GCC
11252 builtin and then its argument prototype would still apply. */
11253#ifdef __cplusplus
11254extern "C"
11255#endif
11256char dlopen ();
11257int
11258main ()
11259{
11260return dlopen ();
11261 ;
11262 return 0;
11263}
11264_ACEOF
11265if ac_fn_c_try_link "$LINENO"; then :
11266 ac_cv_lib_dl_dlopen=yes
11267else
11268 ac_cv_lib_dl_dlopen=no
11269fi
11270rm -f core conftest.err conftest.$ac_objext \
11271 conftest$ac_exeext conftest.$ac_ext
11272LIBS=$ac_check_lib_save_LIBS
11273fi
11274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11275$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11276if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
eff02e4f
ILT
11277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11278else
11279
11280 lt_cv_dlopen="dyld"
11281 lt_cv_dlopen_libs=
11282 lt_cv_dlopen_self=yes
11283
11284fi
11285
11286 ;;
11287
11288 *)
11289 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11290if test "x$ac_cv_func_shl_load" = xyes; then :
eff02e4f
ILT
11291 lt_cv_dlopen="shl_load"
11292else
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11294$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11295if ${ac_cv_lib_dld_shl_load+:} false; then :
eff02e4f
ILT
11296 $as_echo_n "(cached) " >&6
11297else
11298 ac_check_lib_save_LIBS=$LIBS
11299LIBS="-ldld $LIBS"
11300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301/* end confdefs.h. */
11302
11303/* Override any GCC internal prototype to avoid an error.
11304 Use char because int might match the return type of a GCC
11305 builtin and then its argument prototype would still apply. */
11306#ifdef __cplusplus
11307extern "C"
11308#endif
11309char shl_load ();
11310int
11311main ()
11312{
11313return shl_load ();
11314 ;
11315 return 0;
11316}
11317_ACEOF
11318if ac_fn_c_try_link "$LINENO"; then :
11319 ac_cv_lib_dld_shl_load=yes
11320else
11321 ac_cv_lib_dld_shl_load=no
11322fi
11323rm -f core conftest.err conftest.$ac_objext \
11324 conftest$ac_exeext conftest.$ac_ext
11325LIBS=$ac_check_lib_save_LIBS
11326fi
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11328$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11329if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
eff02e4f
ILT
11330 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11331else
11332 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11333if test "x$ac_cv_func_dlopen" = xyes; then :
eff02e4f
ILT
11334 lt_cv_dlopen="dlopen"
11335else
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11337$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11338if ${ac_cv_lib_dl_dlopen+:} false; then :
eff02e4f
ILT
11339 $as_echo_n "(cached) " >&6
11340else
11341 ac_check_lib_save_LIBS=$LIBS
11342LIBS="-ldl $LIBS"
11343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344/* end confdefs.h. */
11345
11346/* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11349#ifdef __cplusplus
11350extern "C"
11351#endif
11352char dlopen ();
11353int
11354main ()
11355{
11356return dlopen ();
11357 ;
11358 return 0;
11359}
11360_ACEOF
11361if ac_fn_c_try_link "$LINENO"; then :
11362 ac_cv_lib_dl_dlopen=yes
11363else
11364 ac_cv_lib_dl_dlopen=no
11365fi
11366rm -f core conftest.err conftest.$ac_objext \
11367 conftest$ac_exeext conftest.$ac_ext
11368LIBS=$ac_check_lib_save_LIBS
11369fi
11370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11371$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11372if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
eff02e4f
ILT
11373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11374else
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11376$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 11377if ${ac_cv_lib_svld_dlopen+:} false; then :
eff02e4f
ILT
11378 $as_echo_n "(cached) " >&6
11379else
11380 ac_check_lib_save_LIBS=$LIBS
11381LIBS="-lsvld $LIBS"
11382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383/* end confdefs.h. */
11384
11385/* Override any GCC internal prototype to avoid an error.
11386 Use char because int might match the return type of a GCC
11387 builtin and then its argument prototype would still apply. */
11388#ifdef __cplusplus
11389extern "C"
11390#endif
11391char dlopen ();
11392int
11393main ()
11394{
11395return dlopen ();
11396 ;
11397 return 0;
11398}
11399_ACEOF
11400if ac_fn_c_try_link "$LINENO"; then :
11401 ac_cv_lib_svld_dlopen=yes
11402else
11403 ac_cv_lib_svld_dlopen=no
11404fi
11405rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext conftest.$ac_ext
11407LIBS=$ac_check_lib_save_LIBS
11408fi
11409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11410$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 11411if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
eff02e4f
ILT
11412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11413else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11415$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 11416if ${ac_cv_lib_dld_dld_link+:} false; then :
eff02e4f
ILT
11417 $as_echo_n "(cached) " >&6
11418else
11419 ac_check_lib_save_LIBS=$LIBS
11420LIBS="-ldld $LIBS"
11421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422/* end confdefs.h. */
11423
11424/* Override any GCC internal prototype to avoid an error.
11425 Use char because int might match the return type of a GCC
11426 builtin and then its argument prototype would still apply. */
11427#ifdef __cplusplus
11428extern "C"
11429#endif
11430char dld_link ();
11431int
11432main ()
11433{
11434return dld_link ();
11435 ;
11436 return 0;
11437}
11438_ACEOF
11439if ac_fn_c_try_link "$LINENO"; then :
11440 ac_cv_lib_dld_dld_link=yes
11441else
11442 ac_cv_lib_dld_dld_link=no
11443fi
11444rm -f core conftest.err conftest.$ac_objext \
11445 conftest$ac_exeext conftest.$ac_ext
11446LIBS=$ac_check_lib_save_LIBS
11447fi
11448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11449$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 11450if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
eff02e4f
ILT
11451 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11452fi
11453
11454
11455fi
11456
11457
11458fi
11459
11460
11461fi
11462
11463
11464fi
11465
11466
11467fi
11468
11469 ;;
11470 esac
11471
11472 if test "x$lt_cv_dlopen" != xno; then
11473 enable_dlopen=yes
11474 else
11475 enable_dlopen=no
11476 fi
11477
11478 case $lt_cv_dlopen in
11479 dlopen)
11480 save_CPPFLAGS="$CPPFLAGS"
11481 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11482
11483 save_LDFLAGS="$LDFLAGS"
11484 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11485
11486 save_LIBS="$LIBS"
11487 LIBS="$lt_cv_dlopen_libs $LIBS"
11488
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11490$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 11491if ${lt_cv_dlopen_self+:} false; then :
eff02e4f
ILT
11492 $as_echo_n "(cached) " >&6
11493else
11494 if test "$cross_compiling" = yes; then :
11495 lt_cv_dlopen_self=cross
11496else
11497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11498 lt_status=$lt_dlunknown
11499 cat > conftest.$ac_ext <<_LT_EOF
e9085da5 11500#line 11500 "configure"
eff02e4f
ILT
11501#include "confdefs.h"
11502
11503#if HAVE_DLFCN_H
11504#include <dlfcn.h>
11505#endif
11506
11507#include <stdio.h>
11508
11509#ifdef RTLD_GLOBAL
11510# define LT_DLGLOBAL RTLD_GLOBAL
11511#else
11512# ifdef DL_GLOBAL
11513# define LT_DLGLOBAL DL_GLOBAL
11514# else
11515# define LT_DLGLOBAL 0
11516# endif
11517#endif
11518
11519/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11520 find out it does not work in some platform. */
11521#ifndef LT_DLLAZY_OR_NOW
11522# ifdef RTLD_LAZY
11523# define LT_DLLAZY_OR_NOW RTLD_LAZY
11524# else
11525# ifdef DL_LAZY
11526# define LT_DLLAZY_OR_NOW DL_LAZY
11527# else
11528# ifdef RTLD_NOW
11529# define LT_DLLAZY_OR_NOW RTLD_NOW
11530# else
11531# ifdef DL_NOW
11532# define LT_DLLAZY_OR_NOW DL_NOW
11533# else
11534# define LT_DLLAZY_OR_NOW 0
11535# endif
11536# endif
11537# endif
11538# endif
11539#endif
11540
11541/* When -fvisbility=hidden is used, assume the code has been annotated
11542 correspondingly for the symbols needed. */
11543#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11544void fnord () __attribute__((visibility("default")));
11545#endif
11546
11547void fnord () { int i=42; }
11548int main ()
11549{
11550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11551 int status = $lt_dlunknown;
11552
11553 if (self)
11554 {
11555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11556 else
11557 {
11558 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11559 else puts (dlerror ());
11560 }
11561 /* dlclose (self); */
11562 }
11563 else
11564 puts (dlerror ());
11565
11566 return status;
11567}
11568_LT_EOF
11569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11570 (eval $ac_link) 2>&5
11571 ac_status=$?
11572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11573 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11574 (./conftest; exit; ) >&5 2>/dev/null
11575 lt_status=$?
11576 case x$lt_status in
11577 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11578 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11579 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11580 esac
11581 else :
11582 # compilation failed
11583 lt_cv_dlopen_self=no
11584 fi
11585fi
11586rm -fr conftest*
11587
11588
11589fi
11590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11591$as_echo "$lt_cv_dlopen_self" >&6; }
11592
11593 if test "x$lt_cv_dlopen_self" = xyes; then
11594 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11596$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 11597if ${lt_cv_dlopen_self_static+:} false; then :
eff02e4f
ILT
11598 $as_echo_n "(cached) " >&6
11599else
11600 if test "$cross_compiling" = yes; then :
11601 lt_cv_dlopen_self_static=cross
11602else
11603 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11604 lt_status=$lt_dlunknown
11605 cat > conftest.$ac_ext <<_LT_EOF
e9085da5 11606#line 11606 "configure"
eff02e4f
ILT
11607#include "confdefs.h"
11608
11609#if HAVE_DLFCN_H
11610#include <dlfcn.h>
11611#endif
11612
11613#include <stdio.h>
11614
11615#ifdef RTLD_GLOBAL
11616# define LT_DLGLOBAL RTLD_GLOBAL
11617#else
11618# ifdef DL_GLOBAL
11619# define LT_DLGLOBAL DL_GLOBAL
11620# else
11621# define LT_DLGLOBAL 0
11622# endif
11623#endif
11624
11625/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11626 find out it does not work in some platform. */
11627#ifndef LT_DLLAZY_OR_NOW
11628# ifdef RTLD_LAZY
11629# define LT_DLLAZY_OR_NOW RTLD_LAZY
11630# else
11631# ifdef DL_LAZY
11632# define LT_DLLAZY_OR_NOW DL_LAZY
11633# else
11634# ifdef RTLD_NOW
11635# define LT_DLLAZY_OR_NOW RTLD_NOW
11636# else
11637# ifdef DL_NOW
11638# define LT_DLLAZY_OR_NOW DL_NOW
11639# else
11640# define LT_DLLAZY_OR_NOW 0
11641# endif
11642# endif
11643# endif
11644# endif
11645#endif
11646
11647/* When -fvisbility=hidden is used, assume the code has been annotated
11648 correspondingly for the symbols needed. */
11649#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11650void fnord () __attribute__((visibility("default")));
11651#endif
11652
11653void fnord () { int i=42; }
11654int main ()
11655{
11656 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11657 int status = $lt_dlunknown;
11658
11659 if (self)
11660 {
11661 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11662 else
11663 {
11664 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11665 else puts (dlerror ());
11666 }
11667 /* dlclose (self); */
11668 }
11669 else
11670 puts (dlerror ());
11671
11672 return status;
11673}
11674_LT_EOF
11675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11676 (eval $ac_link) 2>&5
11677 ac_status=$?
11678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11679 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11680 (./conftest; exit; ) >&5 2>/dev/null
11681 lt_status=$?
11682 case x$lt_status in
11683 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11684 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11685 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11686 esac
11687 else :
11688 # compilation failed
11689 lt_cv_dlopen_self_static=no
11690 fi
11691fi
11692rm -fr conftest*
11693
11694
11695fi
11696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11697$as_echo "$lt_cv_dlopen_self_static" >&6; }
11698 fi
11699
11700 CPPFLAGS="$save_CPPFLAGS"
11701 LDFLAGS="$save_LDFLAGS"
11702 LIBS="$save_LIBS"
11703 ;;
11704 esac
11705
11706 case $lt_cv_dlopen_self in
11707 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11708 *) enable_dlopen_self=unknown ;;
11709 esac
11710
11711 case $lt_cv_dlopen_self_static in
11712 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11713 *) enable_dlopen_self_static=unknown ;;
11714 esac
11715fi
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733striplib=
11734old_striplib=
11735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11736$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11737if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11738 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11739 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11741$as_echo "yes" >&6; }
11742else
11743# FIXME - insert some real tests, host_os isn't really good enough
11744 case $host_os in
11745 darwin*)
11746 if test -n "$STRIP" ; then
11747 striplib="$STRIP -x"
11748 old_striplib="$STRIP -S"
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11750$as_echo "yes" >&6; }
11751 else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753$as_echo "no" >&6; }
11754 fi
11755 ;;
11756 *)
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758$as_echo "no" >&6; }
11759 ;;
11760 esac
11761fi
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774 # Report which library types will actually be built
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11776$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11778$as_echo "$can_build_shared" >&6; }
11779
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11781$as_echo_n "checking whether to build shared libraries... " >&6; }
11782 test "$can_build_shared" = "no" && enable_shared=no
11783
11784 # On AIX, shared libraries and static libraries use the same namespace, and
11785 # are all built from PIC.
11786 case $host_os in
11787 aix3*)
11788 test "$enable_shared" = yes && enable_static=no
11789 if test -n "$RANLIB"; then
11790 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11791 postinstall_cmds='$RANLIB $lib'
11792 fi
11793 ;;
11794
11795 aix[4-9]*)
11796 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11797 test "$enable_shared" = yes && enable_static=no
11798 fi
11799 ;;
11800 esac
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11802$as_echo "$enable_shared" >&6; }
11803
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11805$as_echo_n "checking whether to build static libraries... " >&6; }
11806 # Make sure either enable_shared or enable_static is yes.
11807 test "$enable_shared" = yes || enable_static=yes
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11809$as_echo "$enable_static" >&6; }
11810
11811
11812
11813
11814fi
11815ac_ext=c
11816ac_cpp='$CPP $CPPFLAGS'
11817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11819ac_compiler_gnu=$ac_cv_c_compiler_gnu
11820
11821CC="$lt_save_CC"
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835 ac_config_commands="$ac_config_commands libtool"
11836
11837
11838
11839
11840# Only expand once:
11841
11842
11843
11844
e91a2ddc
RB
11845# Check whether --enable-largefile was given.
11846if test "${enable_largefile+set}" = set; then :
11847 enableval=$enable_largefile;
11848fi
11849
11850if test "$enable_largefile" != no; then
11851
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11853$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
22e05272 11854if ${ac_cv_sys_largefile_CC+:} false; then :
e91a2ddc
RB
11855 $as_echo_n "(cached) " >&6
11856else
11857 ac_cv_sys_largefile_CC=no
11858 if test "$GCC" != yes; then
11859 ac_save_CC=$CC
11860 while :; do
11861 # IRIX 6.2 and later do not support large files by default,
11862 # so use the C compiler's -n32 option if that helps.
11863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864/* end confdefs.h. */
11865#include <sys/types.h>
11866 /* Check that off_t can represent 2**63 - 1 correctly.
11867 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11868 since some C++ compilers masquerading as C compilers
11869 incorrectly reject 9223372036854775807. */
11870#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11871 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11872 && LARGE_OFF_T % 2147483647 == 1)
11873 ? 1 : -1];
11874int
11875main ()
11876{
11877
11878 ;
11879 return 0;
11880}
11881_ACEOF
11882 if ac_fn_c_try_compile "$LINENO"; then :
11883 break
11884fi
11885rm -f core conftest.err conftest.$ac_objext
11886 CC="$CC -n32"
11887 if ac_fn_c_try_compile "$LINENO"; then :
11888 ac_cv_sys_largefile_CC=' -n32'; break
11889fi
11890rm -f core conftest.err conftest.$ac_objext
11891 break
11892 done
11893 CC=$ac_save_CC
11894 rm -f conftest.$ac_ext
11895 fi
11896fi
11897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11898$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11899 if test "$ac_cv_sys_largefile_CC" != no; then
11900 CC=$CC$ac_cv_sys_largefile_CC
11901 fi
11902
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11904$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
22e05272 11905if ${ac_cv_sys_file_offset_bits+:} false; then :
e91a2ddc
RB
11906 $as_echo_n "(cached) " >&6
11907else
11908 while :; do
11909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910/* end confdefs.h. */
11911#include <sys/types.h>
11912 /* Check that off_t can represent 2**63 - 1 correctly.
11913 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11914 since some C++ compilers masquerading as C compilers
11915 incorrectly reject 9223372036854775807. */
11916#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11917 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11918 && LARGE_OFF_T % 2147483647 == 1)
11919 ? 1 : -1];
11920int
11921main ()
11922{
11923
11924 ;
11925 return 0;
11926}
11927_ACEOF
11928if ac_fn_c_try_compile "$LINENO"; then :
11929 ac_cv_sys_file_offset_bits=no; break
11930fi
11931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933/* end confdefs.h. */
11934#define _FILE_OFFSET_BITS 64
11935#include <sys/types.h>
11936 /* Check that off_t can represent 2**63 - 1 correctly.
11937 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11938 since some C++ compilers masquerading as C compilers
11939 incorrectly reject 9223372036854775807. */
11940#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11941 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11942 && LARGE_OFF_T % 2147483647 == 1)
11943 ? 1 : -1];
11944int
11945main ()
11946{
11947
11948 ;
11949 return 0;
11950}
11951_ACEOF
11952if ac_fn_c_try_compile "$LINENO"; then :
11953 ac_cv_sys_file_offset_bits=64; break
11954fi
11955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956 ac_cv_sys_file_offset_bits=unknown
11957 break
11958done
11959fi
11960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11961$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11962case $ac_cv_sys_file_offset_bits in #(
11963 no | unknown) ;;
11964 *)
11965cat >>confdefs.h <<_ACEOF
11966#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11967_ACEOF
11968;;
11969esac
11970rm -rf conftest*
11971 if test $ac_cv_sys_file_offset_bits = unknown; then
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11973$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
22e05272 11974if ${ac_cv_sys_large_files+:} false; then :
e91a2ddc
RB
11975 $as_echo_n "(cached) " >&6
11976else
11977 while :; do
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979/* end confdefs.h. */
11980#include <sys/types.h>
11981 /* Check that off_t can represent 2**63 - 1 correctly.
11982 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11983 since some C++ compilers masquerading as C compilers
11984 incorrectly reject 9223372036854775807. */
11985#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11986 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11987 && LARGE_OFF_T % 2147483647 == 1)
11988 ? 1 : -1];
11989int
11990main ()
11991{
11992
11993 ;
11994 return 0;
11995}
11996_ACEOF
11997if ac_fn_c_try_compile "$LINENO"; then :
11998 ac_cv_sys_large_files=no; break
11999fi
12000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002/* end confdefs.h. */
12003#define _LARGE_FILES 1
12004#include <sys/types.h>
12005 /* Check that off_t can represent 2**63 - 1 correctly.
12006 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12007 since some C++ compilers masquerading as C compilers
12008 incorrectly reject 9223372036854775807. */
12009#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12010 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12011 && LARGE_OFF_T % 2147483647 == 1)
12012 ? 1 : -1];
12013int
12014main ()
12015{
12016
12017 ;
12018 return 0;
12019}
12020_ACEOF
12021if ac_fn_c_try_compile "$LINENO"; then :
12022 ac_cv_sys_large_files=1; break
12023fi
12024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025 ac_cv_sys_large_files=unknown
12026 break
12027done
12028fi
12029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12030$as_echo "$ac_cv_sys_large_files" >&6; }
12031case $ac_cv_sys_large_files in #(
12032 no | unknown) ;;
12033 *)
12034cat >>confdefs.h <<_ACEOF
12035#define _LARGE_FILES $ac_cv_sys_large_files
12036_ACEOF
12037;;
12038esac
12039rm -rf conftest*
12040 fi
22e05272
JM
12041
12042
e91a2ddc
RB
12043fi
12044
12045
eff02e4f
ILT
12046backtrace_supported=yes
12047
12048if test -n "${with_target_subdir}"; then
12049 # We are compiling a GCC library. We can assume that the unwind
12050 # library exists.
eff02e4f
ILT
12051 BACKTRACE_FILE="backtrace.lo simple.lo"
12052else
12053 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
22e05272 12054if test "x$ac_cv_header_unwind_h" = xyes; then :
eff02e4f 12055 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
22e05272 12056if test "x$ac_cv_func__Unwind_Backtrace" = xyes; then :
eff02e4f
ILT
12057 BACKTRACE_FILE="backtrace.lo simple.lo"
12058else
12059 BACKTRACE_FILE="nounwind.lo"
12060 backtrace_supported=no
12061fi
12062
12063else
12064 BACKTRACE_FILE="nounwind.lo"
12065 backtrace_supported=no
12066fi
12067
12068
12069fi
12070
12071
56195009 12072EXTRA_FLAGS=
32061319 12073if test -n "${with_target_subdir}"; then
36a58fb3 12074 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
32061319
ILT
12075else
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
12077$as_echo_n "checking for -funwind-tables option... " >&6; }
22e05272 12078if ${libbacktrace_cv_c_unwind_tables+:} false; then :
32061319
ILT
12079 $as_echo_n "(cached) " >&6
12080else
12081 CFLAGS_hold="$CFLAGS"
12082 CFLAGS="$CFLAGS -funwind-tables"
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084/* end confdefs.h. */
12085static int f() { return 0; }
12086int
12087main ()
12088{
12089return f();
12090 ;
12091 return 0;
12092}
12093_ACEOF
12094if ac_fn_c_try_compile "$LINENO"; then :
12095 libbacktrace_cv_c_unwind_tables=yes
12096else
12097 libbacktrace_cv_c_unwind_tables=no
12098fi
12099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100 CFLAGS="$CFLAGS_hold"
12101fi
12102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
12103$as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
36a58fb3
JJ
12104 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
12105 EXTRA_FLAGS=-funwind-tables
12106 fi
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
12108$as_echo_n "checking for -frandom-seed=string option... " >&6; }
22e05272 12109if ${libbacktrace_cv_c_random_seed_string+:} false; then :
36a58fb3
JJ
12110 $as_echo_n "(cached) " >&6
12111else
12112 CFLAGS_hold="$CFLAGS"
12113 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115/* end confdefs.h. */
12116
12117int
12118main ()
12119{
12120return 0;
12121 ;
12122 return 0;
12123}
12124_ACEOF
12125if ac_fn_c_try_compile "$LINENO"; then :
12126 libbacktrace_cv_c_random_seed_string=yes
12127else
12128 libbacktrace_cv_c_random_seed_string=no
12129fi
12130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12131 CFLAGS="$CFLAGS_hold"
12132fi
12133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
12134$as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
12135 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
12136 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
12137 fi
56195009
UB
12138fi
12139
44685d37
IT
12140if test -n "${with_target_subdir}"; then
12141 # Add CET specific flags is Intel CET is enabled.
12142 # Check whether --enable-cet was given.
12143if test "${enable_cet+set}" = set; then :
12144 enableval=$enable_cet;
12145 case "$enableval" in
a0e1df88 12146 yes|no|auto) ;;
22e05272 12147 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
44685d37
IT
12148 esac
12149
12150else
a0e1df88 12151 enable_cet=no
44685d37
IT
12152fi
12153
12154
14e335ed
IT
12155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12156$as_echo_n "checking for CET support... " >&6; }
12157
44685d37
IT
12158case "$host" in
12159 i[34567]86-*-linux* | x86_64-*-linux*)
12160 case "$enable_cet" in
a0e1df88 12161 auto)
14e335ed
IT
12162 # Check if target supports multi-byte NOPs
12163 # and if assembler supports CET insn.
44685d37
IT
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165/* end confdefs.h. */
12166
12167int
12168main ()
12169{
14e335ed
IT
12170
12171#if !defined(__SSE2__)
12172#error target does not support multi-byte NOPs
12173#else
44685d37 12174asm ("setssbsy");
14e335ed
IT
12175#endif
12176
44685d37
IT
12177 ;
12178 return 0;
12179}
12180_ACEOF
12181if ac_fn_c_try_compile "$LINENO"; then :
12182 enable_cet=yes
12183else
12184 enable_cet=no
12185fi
12186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12187 ;;
12188 yes)
12189 # Check if assembler supports CET.
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191/* end confdefs.h. */
12192
12193int
12194main ()
12195{
12196asm ("setssbsy");
12197 ;
12198 return 0;
12199}
12200_ACEOF
12201if ac_fn_c_try_compile "$LINENO"; then :
12202
12203else
22e05272 12204 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
44685d37
IT
12205fi
12206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207 ;;
12208 esac
12209 ;;
12210 *)
12211 enable_cet=no
12212 ;;
12213esac
12214if test x$enable_cet = xyes; then
7b47ecf2 12215 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12217$as_echo "yes" >&6; }
12218else
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220$as_echo "no" >&6; }
44685d37
IT
12221fi
12222
12223 EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS"
12224fi
12225
56195009 12226
1b533361
UW
12227ac_ext=c
12228ac_cpp='$CPP $CPPFLAGS'
12229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12231ac_compiler_gnu=$ac_cv_c_compiler_gnu
12232
eff02e4f
ILT
12233WARN_FLAGS=
12234save_CFLAGS="$CFLAGS"
12235for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
12236 -Wmissing-prototypes -Wold-style-definition \
12237 -Wmissing-format-attribute -Wcast-qual; do
12238 # Do the check with the no- prefix removed since gcc silently
12239 # accepts any -Wno-* option on purpose
12240 case $real_option in
12241 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12242 *) option=$real_option ;;
12243 esac
12244 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12245
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12247$as_echo_n "checking whether $CC supports $option... " >&6; }
22e05272 12248if eval \${$as_acx_Woption+:} false; then :
eff02e4f
ILT
12249 $as_echo_n "(cached) " >&6
12250else
12251 CFLAGS="$option"
12252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12253/* end confdefs.h. */
12254
12255int
12256main ()
12257{
12258
12259 ;
12260 return 0;
12261}
12262_ACEOF
12263if ac_fn_c_try_compile "$LINENO"; then :
12264 eval "$as_acx_Woption=yes"
12265else
12266 eval "$as_acx_Woption=no"
12267fi
12268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12269
12270fi
12271eval ac_res=\$$as_acx_Woption
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12273$as_echo "$ac_res" >&6; }
12274 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12275 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
12276fi
12277 done
12278CFLAGS="$save_CFLAGS"
1b533361
UW
12279ac_ext=c
12280ac_cpp='$CPP $CPPFLAGS'
12281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12283ac_compiler_gnu=$ac_cv_c_compiler_gnu
12284
eff02e4f
ILT
12285
12286
73c3ed27 12287if test -n "${with_target_subdir}"; then
eff02e4f
ILT
12288 WARN_FLAGS="$WARN_FLAGS -Werror"
12289fi
12290
12291
12292
64b89453 12293if test -n "${with_target_subdir}"; then
eff02e4f
ILT
12294
12295
12296# Check whether --with-system-libunwind was given.
12297if test "${with_system_libunwind+set}" = set; then :
12298 withval=$with_system_libunwind;
12299fi
12300
12301 # If system-libunwind was not specifically set, pick a default setting.
12302 if test x$with_system_libunwind = x; then
12303 case ${target} in
12304 ia64-*-hpux*) with_system_libunwind=yes ;;
12305 *) with_system_libunwind=no ;;
12306 esac
12307 fi
12308 # Based on system-libunwind and target, do we have ipinfo?
12309 if test x$with_system_libunwind = xyes; then
12310 case ${target} in
12311 ia64-*-*) have_unwind_getipinfo=no ;;
12312 *) have_unwind_getipinfo=yes ;;
12313 esac
12314 else
12315 # Darwin before version 9 does not have _Unwind_GetIPInfo.
12316
12317 case ${target} in
12318 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12319 *) have_unwind_getipinfo=yes ;;
12320 esac
12321
12322 fi
12323
12324 if test x$have_unwind_getipinfo = xyes; then
12325
12326$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12327
12328 fi
12329
64b89453 12330else
385710cf
JH
12331 ac_save_CFFLAGS="$CFLAGS"
12332 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
12334$as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
12335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336/* end confdefs.h. */
12337#include "unwind.h"
12338 struct _Unwind_Context *context;
12339 int ip_before_insn = 0;
12340int
12341main ()
12342{
12343return _Unwind_GetIPInfo (context, &ip_before_insn);
12344 ;
12345 return 0;
12346}
12347_ACEOF
63fefb4b 12348if ac_fn_c_try_link "$LINENO"; then :
64b89453
ILT
12349 have_unwind_getipinfo=yes
12350else
12351 have_unwind_getipinfo=no
12352fi
63fefb4b
MDM
12353rm -f core conftest.err conftest.$ac_objext \
12354 conftest$ac_exeext conftest.$ac_ext
385710cf
JH
12355 CFLAGS="$ac_save_CFLAGS"
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
12357$as_echo "$have_unwind_getipinfo" >&6; }
64b89453
ILT
12358 if test "$have_unwind_getipinfo" = "yes"; then
12359
12360$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12361
12362 fi
12363fi
eff02e4f 12364
7e5c7547 12365# Enable --enable-host-shared.
459260ec
DM
12366# Check whether --enable-host-shared was given.
12367if test "${enable_host_shared+set}" = set; then :
12368 enableval=$enable_host_shared; PIC_FLAG=-fPIC
7e5c7547
UW
12369else
12370 PIC_FLAG=
459260ec
DM
12371fi
12372
eff02e4f
ILT
12373
12374
12375# Test for __sync support.
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
12377$as_echo_n "checking __sync extensions... " >&6; }
22e05272 12378if ${libbacktrace_cv_sys_sync+:} false; then :
eff02e4f
ILT
12379 $as_echo_n "(cached) " >&6
12380else
12381 if test -n "${with_target_subdir}"; then
2f401a8f
JDA
12382 case "${host}" in
12383 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
12384 *) libbacktrace_cv_sys_sync=yes ;;
12385 esac
eff02e4f
ILT
12386 else
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388/* end confdefs.h. */
12389int i;
12390int
12391main ()
12392{
12393__sync_bool_compare_and_swap (&i, i, i);
12394 __sync_lock_test_and_set (&i, 1);
12395 __sync_lock_release (&i);
12396 ;
12397 return 0;
12398}
12399_ACEOF
12400if ac_fn_c_try_link "$LINENO"; then :
12401 libbacktrace_cv_sys_sync=yes
12402else
12403 libbacktrace_cv_sys_sync=no
12404fi
12405rm -f core conftest.err conftest.$ac_objext \
12406 conftest$ac_exeext conftest.$ac_ext
12407 fi
12408fi
12409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
12410$as_echo "$libbacktrace_cv_sys_sync" >&6; }
12411BACKTRACE_SUPPORTS_THREADS=0
12412if test "$libbacktrace_cv_sys_sync" = "yes"; then
12413 BACKTRACE_SUPPORTS_THREADS=1
12414
12415$as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
12416
12417fi
12418
12419
49579c7e
ILT
12420# Test for __atomic support.
12421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
12422$as_echo_n "checking __atomic extensions... " >&6; }
22e05272 12423if ${libbacktrace_cv_sys_atomic+:} false; then :
49579c7e
ILT
12424 $as_echo_n "(cached) " >&6
12425else
12426 if test -n "${with_target_subdir}"; then
12427 libbacktrace_cv_sys_atomic=yes
12428 else
12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430/* end confdefs.h. */
12431int i;
12432int
12433main ()
12434{
12435__atomic_load_n (&i, __ATOMIC_ACQUIRE);
12436 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
12437 ;
12438 return 0;
12439}
12440_ACEOF
12441if ac_fn_c_try_link "$LINENO"; then :
12442 libbacktrace_cv_sys_atomic=yes
12443else
12444 libbacktrace_cv_sys_atomic=no
12445fi
12446rm -f core conftest.err conftest.$ac_objext \
12447 conftest$ac_exeext conftest.$ac_ext
12448 fi
12449fi
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12451$as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12452if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12453
12454$as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12455
12456fi
12457
eff02e4f
ILT
12458# The library needs to be able to read the executable itself. Compile
12459# a file to determine the executable format. The awk script
12460# filetype.awk prints out the file type.
12461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12462$as_echo_n "checking output filetype... " >&6; }
22e05272 12463if ${libbacktrace_cv_sys_filetype+:} false; then :
eff02e4f
ILT
12464 $as_echo_n "(cached) " >&6
12465else
12466 filetype=
12467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468/* end confdefs.h. */
12469int i;
12470int
12471main ()
12472{
12473int j;
12474 ;
12475 return 0;
12476}
12477_ACEOF
12478if ac_fn_c_try_compile "$LINENO"; then :
12479 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12480else
12481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12483as_fn_error $? "compiler failed
12484See \`config.log' for more details" "$LINENO" 5; }
eff02e4f
ILT
12485fi
12486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487libbacktrace_cv_sys_filetype=$filetype
12488fi
12489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12490$as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12491
12492# Match the file type to decide what files to compile.
12493FORMAT_FILE=
e24afc10 12494backtrace_supports_data=yes
eff02e4f
ILT
12495case "$libbacktrace_cv_sys_filetype" in
12496elf*) FORMAT_FILE="elf.lo" ;;
e24afc10
TG
12497pecoff) FORMAT_FILE="pecoff.lo"
12498 backtrace_supports_data=no
12499 ;;
7e2a8417
TR
12500xcoff*) FORMAT_FILE="xcoff.lo"
12501 backtrace_supports_data=no
12502 ;;
eff02e4f
ILT
12503*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12504$as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12505 FORMAT_FILE="unknown.lo"
12506 backtrace_supported=no
12507 ;;
12508esac
12509
12510
12511# ELF defines.
12512elfsize=
12513case "$libbacktrace_cv_sys_filetype" in
12514elf32) elfsize=32 ;;
12515elf64) elfsize=64 ;;
e24afc10 12516*) elfsize=unused
eff02e4f
ILT
12517esac
12518
12519cat >>confdefs.h <<_ACEOF
12520#define BACKTRACE_ELF_SIZE $elfsize
12521_ACEOF
12522
fddbc193
TV
12523 if test "$FORMAT_FILE" = "elf.lo"; then
12524 HAVE_ELF_TRUE=
12525 HAVE_ELF_FALSE='#'
12526else
12527 HAVE_ELF_TRUE='#'
12528 HAVE_ELF_FALSE=
12529fi
12530
eff02e4f 12531
7e2a8417
TR
12532# XCOFF defines.
12533xcoffsize=
12534case "$libbacktrace_cv_sys_filetype" in
12535xcoff32) xcoffsize=32 ;;
12536xcoff64) xcoffsize=64 ;;
12537*) xcoffsize=unused
12538esac
12539
12540cat >>confdefs.h <<_ACEOF
12541#define BACKTRACE_XCOFF_SIZE $xcoffsize
12542_ACEOF
12543
12544
eff02e4f
ILT
12545BACKTRACE_SUPPORTED=0
12546if test "$backtrace_supported" = "yes"; then
12547 BACKTRACE_SUPPORTED=1
12548fi
12549
12550
e24afc10
TG
12551BACKTRACE_SUPPORTS_DATA=0
12552if test "$backtrace_supports_data" = "yes"; then
12553 BACKTRACE_SUPPORTS_DATA=1
12554fi
12555
12556
76850556
RO
12557
12558
12559inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12560
12561acx_cv_header_stdint=stddef.h
12562acx_cv_header_stdint_kind="(already complete)"
12563for i in stdint.h $inttype_headers; do
12564 unset ac_cv_type_uintptr_t
12565 unset ac_cv_type_uintmax_t
12566 unset ac_cv_type_int_least32_t
12567 unset ac_cv_type_int_fast32_t
12568 unset ac_cv_type_uint64_t
12569 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12570 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12571#include <$i>
12572"
22e05272 12573if test "x$ac_cv_type_uintmax_t" = xyes; then :
76850556
RO
12574 acx_cv_header_stdint=$i
12575else
12576 continue
12577fi
12578
12579 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12580#include <$i>
12581"
22e05272 12582if test "x$ac_cv_type_uintptr_t" = xyes; then :
76850556
RO
12583
12584else
12585 acx_cv_header_stdint_kind="(mostly complete)"
12586fi
12587
12588 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12589#include <$i>
12590"
22e05272 12591if test "x$ac_cv_type_int_least32_t" = xyes; then :
76850556
RO
12592
12593else
12594 acx_cv_header_stdint_kind="(mostly complete)"
12595fi
12596
12597 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12598#include <$i>
12599"
22e05272 12600if test "x$ac_cv_type_int_fast32_t" = xyes; then :
76850556
RO
12601
12602else
12603 acx_cv_header_stdint_kind="(mostly complete)"
12604fi
12605
12606 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12607#include <$i>
12608"
22e05272 12609if test "x$ac_cv_type_uint64_t" = xyes; then :
76850556
RO
12610
12611else
12612 acx_cv_header_stdint_kind="(lacks uint64_t)"
12613fi
12614
12615 break
12616done
12617if test "$acx_cv_header_stdint" = stddef.h; then
12618 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12619 for i in stdint.h $inttype_headers; do
12620 unset ac_cv_type_uintptr_t
12621 unset ac_cv_type_uint32_t
12622 unset ac_cv_type_uint64_t
12623 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12624 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12625#include <$i>
12626"
22e05272 12627if test "x$ac_cv_type_uint32_t" = xyes; then :
76850556
RO
12628 acx_cv_header_stdint=$i
12629else
12630 continue
12631fi
12632
12633 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12634#include <$i>
12635"
22e05272 12636if test "x$ac_cv_type_uint64_t" = xyes; then :
76850556
RO
12637
12638fi
12639
12640 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12641#include <$i>
12642"
22e05272 12643if test "x$ac_cv_type_uintptr_t" = xyes; then :
76850556
RO
12644
12645fi
12646
12647 break
12648 done
12649fi
12650if test "$acx_cv_header_stdint" = stddef.h; then
12651 acx_cv_header_stdint_kind="(u_intXX_t style)"
12652 for i in sys/types.h $inttype_headers; do
12653 unset ac_cv_type_u_int32_t
12654 unset ac_cv_type_u_int64_t
12655 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12656 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12657#include <$i>
12658"
22e05272 12659if test "x$ac_cv_type_u_int32_t" = xyes; then :
76850556
RO
12660 acx_cv_header_stdint=$i
12661else
12662 continue
12663fi
12664
12665 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12666#include <$i>
12667"
22e05272 12668if test "x$ac_cv_type_u_int64_t" = xyes; then :
76850556
RO
12669
12670fi
12671
12672 break
12673 done
12674fi
12675if test "$acx_cv_header_stdint" = stddef.h; then
12676 acx_cv_header_stdint_kind="(using manual detection)"
12677fi
12678
12679test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12680test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12681test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12682test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12683test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12684
12685# ----------------- Summarize what we found so far
12686
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12688$as_echo_n "checking what to include in gstdint.h... " >&6; }
12689
12690case `$as_basename -- gstdint.h ||
12691$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12692 Xgstdint.h : 'X\(//\)$' \| \
12693 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12694$as_echo X/gstdint.h |
12695 sed '/^.*\/\([^/][^/]*\)\/*$/{
12696 s//\1/
12697 q
12698 }
12699 /^X\/\(\/\/\)$/{
12700 s//\1/
12701 q
12702 }
12703 /^X\/\(\/\).*/{
12704 s//\1/
12705 q
12706 }
12707 s/.*/./; q'` in
12708 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12709$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12710 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12711$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12712 *) ;;
12713esac
12714
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12716$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12717
12718# ----------------- done included file, check C basic types --------
12719
12720# Lacking an uintptr_t? Test size of void *
12721case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12722 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12723# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12724# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12725# This bug is HP SR number 8606223364.
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12727$as_echo_n "checking size of void *... " >&6; }
22e05272 12728if ${ac_cv_sizeof_void_p+:} false; then :
76850556
RO
12729 $as_echo_n "(cached) " >&6
12730else
12731 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12732
12733else
12734 if test "$ac_cv_type_void_p" = yes; then
12735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12736$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12737as_fn_error 77 "cannot compute sizeof (void *)
12738See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
12739 else
12740 ac_cv_sizeof_void_p=0
12741 fi
12742fi
12743
12744fi
12745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12746$as_echo "$ac_cv_sizeof_void_p" >&6; }
12747
12748
12749
12750cat >>confdefs.h <<_ACEOF
12751#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12752_ACEOF
12753
12754 ;;
12755esac
12756
12757# Lacking an uint64_t? Test size of long
12758case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12759 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12760# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12761# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12762# This bug is HP SR number 8606223364.
12763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12764$as_echo_n "checking size of long... " >&6; }
22e05272 12765if ${ac_cv_sizeof_long+:} false; then :
76850556
RO
12766 $as_echo_n "(cached) " >&6
12767else
12768 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12769
12770else
12771 if test "$ac_cv_type_long" = yes; then
12772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12774as_fn_error 77 "cannot compute sizeof (long)
12775See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
12776 else
12777 ac_cv_sizeof_long=0
12778 fi
12779fi
12780
12781fi
12782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12783$as_echo "$ac_cv_sizeof_long" >&6; }
12784
12785
12786
12787cat >>confdefs.h <<_ACEOF
12788#define SIZEOF_LONG $ac_cv_sizeof_long
12789_ACEOF
12790
12791 ;;
12792esac
12793
12794if test $acx_cv_header_stdint = stddef.h; then
12795 # Lacking a good header? Test size of everything and deduce all types.
12796 # The cast to long int works around a bug in the HP C Compiler
12797# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12798# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12799# This bug is HP SR number 8606223364.
12800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12801$as_echo_n "checking size of int... " >&6; }
22e05272 12802if ${ac_cv_sizeof_int+:} false; then :
76850556
RO
12803 $as_echo_n "(cached) " >&6
12804else
12805 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12806
12807else
12808 if test "$ac_cv_type_int" = yes; then
12809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12811as_fn_error 77 "cannot compute sizeof (int)
12812See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
12813 else
12814 ac_cv_sizeof_int=0
12815 fi
12816fi
12817
12818fi
12819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12820$as_echo "$ac_cv_sizeof_int" >&6; }
12821
12822
12823
12824cat >>confdefs.h <<_ACEOF
12825#define SIZEOF_INT $ac_cv_sizeof_int
12826_ACEOF
12827
12828
12829 # The cast to long int works around a bug in the HP C Compiler
12830# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12831# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12832# This bug is HP SR number 8606223364.
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12834$as_echo_n "checking size of short... " >&6; }
22e05272 12835if ${ac_cv_sizeof_short+:} false; then :
76850556
RO
12836 $as_echo_n "(cached) " >&6
12837else
12838 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12839
12840else
12841 if test "$ac_cv_type_short" = yes; then
12842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12844as_fn_error 77 "cannot compute sizeof (short)
12845See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
12846 else
12847 ac_cv_sizeof_short=0
12848 fi
12849fi
12850
12851fi
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12853$as_echo "$ac_cv_sizeof_short" >&6; }
12854
12855
12856
12857cat >>confdefs.h <<_ACEOF
12858#define SIZEOF_SHORT $ac_cv_sizeof_short
12859_ACEOF
12860
12861
12862 # The cast to long int works around a bug in the HP C Compiler
12863# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12864# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12865# This bug is HP SR number 8606223364.
12866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12867$as_echo_n "checking size of char... " >&6; }
22e05272 12868if ${ac_cv_sizeof_char+:} false; then :
76850556
RO
12869 $as_echo_n "(cached) " >&6
12870else
12871 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12872
12873else
12874 if test "$ac_cv_type_char" = yes; then
12875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12876$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12877as_fn_error 77 "cannot compute sizeof (char)
12878See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
12879 else
12880 ac_cv_sizeof_char=0
12881 fi
12882fi
12883
12884fi
12885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12886$as_echo "$ac_cv_sizeof_char" >&6; }
12887
12888
12889
12890cat >>confdefs.h <<_ACEOF
12891#define SIZEOF_CHAR $ac_cv_sizeof_char
12892_ACEOF
12893
12894
12895
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12897$as_echo_n "checking for type equivalent to int8_t... " >&6; }
12898 case "$ac_cv_sizeof_char" in
12899 1) acx_cv_type_int8_t=char ;;
22e05272 12900 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
76850556
RO
12901 esac
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12903$as_echo "$acx_cv_type_int8_t" >&6; }
12904
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12906$as_echo_n "checking for type equivalent to int16_t... " >&6; }
12907 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12908 2:*) acx_cv_type_int16_t=int ;;
12909 *:2) acx_cv_type_int16_t=short ;;
22e05272 12910 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
76850556
RO
12911 esac
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12913$as_echo "$acx_cv_type_int16_t" >&6; }
12914
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12916$as_echo_n "checking for type equivalent to int32_t... " >&6; }
12917 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12918 4:*) acx_cv_type_int32_t=int ;;
12919 *:4) acx_cv_type_int32_t=long ;;
22e05272 12920 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
76850556
RO
12921 esac
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12923$as_echo "$acx_cv_type_int32_t" >&6; }
12924fi
12925
12926# These tests are here to make the output prettier
12927
12928if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12929 case "$ac_cv_sizeof_long" in
12930 8) acx_cv_type_int64_t=long ;;
12931 esac
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12933$as_echo_n "checking for type equivalent to int64_t... " >&6; }
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12935$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12936fi
12937
12938# Now we can use the above types
12939
12940if test "$ac_cv_type_uintptr_t" != yes; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12942$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12943 case $ac_cv_sizeof_void_p in
12944 2) acx_cv_type_intptr_t=int16_t ;;
12945 4) acx_cv_type_intptr_t=int32_t ;;
12946 8) acx_cv_type_intptr_t=int64_t ;;
22e05272 12947 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
76850556
RO
12948 esac
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12950$as_echo "$acx_cv_type_intptr_t" >&6; }
12951fi
12952
12953# ----------------- done all checks, emit header -------------
12954ac_config_commands="$ac_config_commands gstdint.h"
12955
12956
12957
12958
eff02e4f
ILT
12959for ac_header in sys/mman.h
12960do :
12961 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
22e05272 12962if test "x$ac_cv_header_sys_mman_h" = xyes; then :
eff02e4f
ILT
12963 cat >>confdefs.h <<_ACEOF
12964#define HAVE_SYS_MMAN_H 1
12965_ACEOF
12966
12967fi
12968
12969done
12970
12971if test "$ac_cv_header_sys_mman_h" = "no"; then
12972 have_mmap=no
12973else
12974 if test -n "${with_target_subdir}"; then
12975 # When built as a GCC target library, we can't do a link test. We
12976 # simply assume that if we have mman.h, we have mmap.
12977 have_mmap=yes
1b533361 12978 case "${host}" in
2f2aeda9
UW
12979 *-*-msdosdjgpp)
12980 # DJGPP has sys/man.h, but no mmap
1b533361
UW
12981 have_mmap=no ;;
12982 esac
eff02e4f
ILT
12983 else
12984 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22e05272 12985if test "x$ac_cv_func_mmap" = xyes; then :
eff02e4f
ILT
12986 have_mmap=yes
12987else
12988 have_mmap=no
12989fi
12990
12991 fi
12992fi
12993if test "$have_mmap" = "no"; then
12994 VIEW_FILE=read.lo
12995 ALLOC_FILE=alloc.lo
12996else
12997 VIEW_FILE=mmapio.lo
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999/* end confdefs.h. */
13000
13001#include <sys/mman.h>
13002#if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
13003 #error no MAP_ANONYMOUS
13004#endif
13005
13006_ACEOF
13007if ac_fn_c_try_cpp "$LINENO"; then :
13008 ALLOC_FILE=mmap.lo
13009else
13010 ALLOC_FILE=alloc.lo
13011fi
22e05272 13012rm -f conftest.err conftest.i conftest.$ac_ext
eff02e4f
ILT
13013fi
13014
13015
13016
13017BACKTRACE_USES_MALLOC=0
13018if test "$ALLOC_FILE" = "alloc.lo"; then
13019 BACKTRACE_USES_MALLOC=1
13020fi
13021
13022
e561a992
ILT
13023# Check for dl_iterate_phdr.
13024for ac_header in link.h
13025do :
13026 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
22e05272 13027if test "x$ac_cv_header_link_h" = xyes; then :
e561a992
ILT
13028 cat >>confdefs.h <<_ACEOF
13029#define HAVE_LINK_H 1
13030_ACEOF
13031
13032fi
13033
13034done
13035
13036if test "$ac_cv_header_link_h" = "no"; then
13037 have_dl_iterate_phdr=no
13038else
13039 if test -n "${with_target_subdir}"; then
13040 # When built as a GCC target library, we can't do a link test.
13041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13042/* end confdefs.h. */
13043#include <link.h>
13044
13045_ACEOF
13046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13047 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
13048 have_dl_iterate_phdr=yes
13049else
13050 have_dl_iterate_phdr=no
13051fi
13052rm -f conftest*
13053
13054 else
13055 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
22e05272 13056if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then :
e561a992
ILT
13057 have_dl_iterate_phdr=yes
13058else
13059 have_dl_iterate_phdr=no
13060fi
13061
13062 fi
13063fi
13064if test "$have_dl_iterate_phdr" = "yes"; then
13065
13066$as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
13067
13068fi
13069
7e2a8417
TR
13070# Check for loadquery.
13071for ac_header in sys/ldr.h
13072do :
13073 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
22e05272 13074if test "x$ac_cv_header_sys_ldr_h" = xyes; then :
7e2a8417
TR
13075 cat >>confdefs.h <<_ACEOF
13076#define HAVE_SYS_LDR_H 1
13077_ACEOF
13078
13079fi
13080
13081done
13082
13083if test "$ac_cv_header_sys_ldr_h" = "no"; then
13084 have_loadquery=no
13085else
13086 if test -n "${with_target_subdir}"; then
13087 # When built as a GCC target library, we can't do a link test.
13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089/* end confdefs.h. */
13090#include <sys/ldr.h>
13091
13092_ACEOF
13093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13094 $EGREP "loadquery" >/dev/null 2>&1; then :
13095 have_loadquery=yes
13096else
13097 have_loadquery=no
13098fi
13099rm -f conftest*
13100
13101 else
13102 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
22e05272 13103if test "x$ac_cv_func_loadquery" = xyes; then :
7e2a8417
TR
13104 have_loadquery=yes
13105else
13106 have_loadquery=no
13107fi
13108
13109 fi
13110fi
13111if test "$have_loadquery" = "yes"; then
13112
13113$as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
13114
13115fi
13116
3319ef17
ILT
13117# Check for the fcntl function.
13118if test -n "${with_target_subdir}"; then
13119 case "${host}" in
13120 *-*-mingw*) have_fcntl=no ;;
13121 *) have_fcntl=yes ;;
13122 esac
13123else
13124 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
22e05272 13125if test "x$ac_cv_func_fcntl" = xyes; then :
3319ef17
ILT
13126 have_fcntl=yes
13127else
13128 have_fcntl=no
13129fi
13130
13131fi
13132if test "$have_fcntl" = "yes"; then
13133
13134$as_echo "#define HAVE_FCNTL 1" >>confdefs.h
13135
13136fi
13137
772a71a9 13138ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
22e05272 13139if test "x$ac_cv_have_decl_strnlen" = xyes; then :
772a71a9
ILT
13140 ac_have_decl=1
13141else
13142 ac_have_decl=0
13143fi
13144
13145cat >>confdefs.h <<_ACEOF
13146#define HAVE_DECL_STRNLEN $ac_have_decl
13147_ACEOF
13148
8c2ea6b2
ILT
13149for ac_func in lstat readlink
13150do :
13151 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13152ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 13153if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8c2ea6b2
ILT
13154 cat >>confdefs.h <<_ACEOF
13155#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13156_ACEOF
13157
13158fi
13159done
13160
772a71a9 13161
33521509
ILT
13162# Check for getexecname function.
13163if test -n "${with_target_subdir}"; then
13164 case "${host}" in
13165 *-*-solaris2*) have_getexecname=yes ;;
13166 *) have_getexecname=no ;;
13167 esac
13168else
13169 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
22e05272 13170if test "x$ac_cv_func_getexecname" = xyes; then :
33521509
ILT
13171 have_getexecname=yes
13172else
13173 have_getexecname=no
13174fi
13175
13176fi
13177if test "$have_getexecname" = "yes"; then
13178
13179$as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
13180
13181fi
13182
dbc31f20
TS
13183# Check for the clock_gettime function.
13184for ac_func in clock_gettime
13185do :
13186 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
22e05272 13187if test "x$ac_cv_func_clock_gettime" = xyes; then :
dbc31f20
TS
13188 cat >>confdefs.h <<_ACEOF
13189#define HAVE_CLOCK_GETTIME 1
13190_ACEOF
13191
13192fi
13193done
13194
dd954c67
TS
13195clock_gettime_link=
13196# At least for glibc, clock_gettime is in librt. But don't
13197# pull that in if it still doesn't give us the function we want. This
13198# test is copied from libgomp, and modified to not link in -lrt as
13199# we're using this for test timing only.
13200if test "$ac_cv_func_clock_gettime" = no; then
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13202$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22e05272 13203if ${ac_cv_lib_rt_clock_gettime+:} false; then :
dd954c67
TS
13204 $as_echo_n "(cached) " >&6
13205else
13206 ac_check_lib_save_LIBS=$LIBS
13207LIBS="-lrt $LIBS"
13208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209/* end confdefs.h. */
13210
13211/* Override any GCC internal prototype to avoid an error.
13212 Use char because int might match the return type of a GCC
13213 builtin and then its argument prototype would still apply. */
13214#ifdef __cplusplus
13215extern "C"
13216#endif
13217char clock_gettime ();
13218int
13219main ()
13220{
13221return clock_gettime ();
13222 ;
13223 return 0;
13224}
13225_ACEOF
13226if ac_fn_c_try_link "$LINENO"; then :
13227 ac_cv_lib_rt_clock_gettime=yes
13228else
13229 ac_cv_lib_rt_clock_gettime=no
13230fi
13231rm -f core conftest.err conftest.$ac_objext \
13232 conftest$ac_exeext conftest.$ac_ext
13233LIBS=$ac_check_lib_save_LIBS
13234fi
13235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13236$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22e05272 13237if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
8398c1df 13238 CLOCK_GETTIME_LINK=-lrt
dd954c67
TS
13239
13240$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13241
13242fi
13243
13244fi
13245
dbc31f20 13246
d1609a23
ILT
13247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13248$as_echo_n "checking whether -pthread is supported... " >&6; }
22e05272 13249if ${libgo_cv_lib_pthread+:} false; then :
d1609a23
ILT
13250 $as_echo_n "(cached) " >&6
13251else
13252 CFLAGS_hold=$CFLAGS
13253CFLAGS="$CFLAGS -pthread"
13254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255/* end confdefs.h. */
13256int i;
13257_ACEOF
13258if ac_fn_c_try_compile "$LINENO"; then :
13259 libgo_cv_lib_pthread=yes
13260else
13261 libgo_cv_lib_pthread=no
13262fi
13263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13264CFLAGS=$CFLAGS_hold
13265fi
13266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13267$as_echo "$libgo_cv_lib_pthread" >&6; }
13268PTHREAD_CFLAGS=
13269if test "$libgo_cv_lib_pthread" = yes; then
13270 PTHREAD_CFLAGS=-pthread
13271fi
13272
13273
13274 if test "$libgo_cv_lib_pthread" = yes; then
13275 HAVE_PTHREAD_TRUE=
13276 HAVE_PTHREAD_FALSE='#'
13277else
13278 HAVE_PTHREAD_TRUE='#'
13279 HAVE_PTHREAD_FALSE=
13280fi
13281
13282
8da872d9
ILT
13283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
13284$as_echo_n "checking for compress in -lz... " >&6; }
22e05272 13285if ${ac_cv_lib_z_compress+:} false; then :
8da872d9
ILT
13286 $as_echo_n "(cached) " >&6
13287else
13288 ac_check_lib_save_LIBS=$LIBS
13289LIBS="-lz $LIBS"
13290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291/* end confdefs.h. */
13292
13293/* Override any GCC internal prototype to avoid an error.
13294 Use char because int might match the return type of a GCC
13295 builtin and then its argument prototype would still apply. */
13296#ifdef __cplusplus
13297extern "C"
13298#endif
13299char compress ();
13300int
13301main ()
13302{
13303return compress ();
13304 ;
13305 return 0;
13306}
13307_ACEOF
13308if ac_fn_c_try_link "$LINENO"; then :
13309 ac_cv_lib_z_compress=yes
13310else
13311 ac_cv_lib_z_compress=no
13312fi
13313rm -f core conftest.err conftest.$ac_objext \
13314 conftest$ac_exeext conftest.$ac_ext
13315LIBS=$ac_check_lib_save_LIBS
13316fi
13317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
13318$as_echo "$ac_cv_lib_z_compress" >&6; }
22e05272 13319if test "x$ac_cv_lib_z_compress" = xyes; then :
8da872d9
ILT
13320
13321$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13322
13323fi
2206fb89 13324
8da872d9
ILT
13325 if test "$ac_cv_lib_z_compress" = yes; then
13326 HAVE_ZLIB_TRUE=
13327 HAVE_ZLIB_FALSE='#'
13328else
13329 HAVE_ZLIB_TRUE='#'
13330 HAVE_ZLIB_FALSE=
13331fi
13332
13333
13334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5
13335$as_echo_n "checking whether --compress-debug-sections is supported... " >&6; }
22e05272 13336if ${libgo_cv_ld_compress+:} false; then :
8da872d9
ILT
13337 $as_echo_n "(cached) " >&6
13338else
13339 LDFLAGS_hold=$LDFLAGS
13340LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
13341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342/* end confdefs.h. */
13343
13344int
13345main ()
13346{
13347
13348 ;
13349 return 0;
13350}
13351_ACEOF
13352if ac_fn_c_try_link "$LINENO"; then :
13353 libgo_cv_ld_compress=yes
13354else
13355 libgo_cv_ld_compress=no
13356fi
13357rm -f core conftest.err conftest.$ac_objext \
13358 conftest$ac_exeext conftest.$ac_ext
13359LDFLAGS=$LDFLAGS_hold
13360fi
13361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5
13362$as_echo "$libgo_cv_ld_compress" >&6; }
13363 if test "$libgo_cv_ld_compress" = yes; then
13364 HAVE_COMPRESSED_DEBUG_TRUE=
13365 HAVE_COMPRESSED_DEBUG_FALSE='#'
13366else
13367 HAVE_COMPRESSED_DEBUG_TRUE='#'
13368 HAVE_COMPRESSED_DEBUG_FALSE=
13369fi
13370
13371
9283471b
ILT
13372
13373# Extract the first word of "objcopy", so it can be a program name with args.
13374set dummy objcopy; ac_word=$2
13375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13376$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13377if ${ac_cv_prog_OBJCOPY+:} false; then :
9283471b
ILT
13378 $as_echo_n "(cached) " >&6
13379else
13380 if test -n "$OBJCOPY"; then
13381 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13382else
13383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384for as_dir in $PATH
13385do
13386 IFS=$as_save_IFS
13387 test -z "$as_dir" && as_dir=.
13388 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9283471b
ILT
13390 ac_cv_prog_OBJCOPY="objcopy"
13391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13392 break 2
13393 fi
13394done
13395 done
13396IFS=$as_save_IFS
13397
13398fi
13399fi
13400OBJCOPY=$ac_cv_prog_OBJCOPY
13401if test -n "$OBJCOPY"; then
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13403$as_echo "$OBJCOPY" >&6; }
13404else
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406$as_echo "no" >&6; }
13407fi
13408
13409
fddbc193
TV
13410# Extract the first word of "readelf", so it can be a program name with args.
13411set dummy readelf; ac_word=$2
13412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413$as_echo_n "checking for $ac_word... " >&6; }
13414if ${ac_cv_prog_READELF+:} false; then :
13415 $as_echo_n "(cached) " >&6
13416else
13417 if test -n "$READELF"; then
13418 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13419else
13420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421for as_dir in $PATH
13422do
13423 IFS=$as_save_IFS
13424 test -z "$as_dir" && as_dir=.
13425 for ac_exec_ext in '' $ac_executable_extensions; do
13426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13427 ac_cv_prog_READELF="readelf"
13428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13429 break 2
13430 fi
13431done
13432 done
13433IFS=$as_save_IFS
13434
13435fi
13436fi
13437READELF=$ac_cv_prog_READELF
13438if test -n "$READELF"; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13440$as_echo "$READELF" >&6; }
13441else
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443$as_echo "no" >&6; }
13444fi
13445
13446
9283471b
ILT
13447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
13448$as_echo_n "checking whether objcopy supports debuglink... " >&6; }
22e05272 13449if ${libbacktrace_cv_objcopy_debuglink+:} false; then :
9283471b
ILT
13450 $as_echo_n "(cached) " >&6
13451else
13452 if test -n "${with_target_subdir}"; then
13453 libbacktrace_cv_objcopy_debuglink=no
13454elif ${OBJCOPY} --add-gnu-debuglink=x /bin/ls /tmp/ls$$; then
13455 rm -f /tmp/ls$$
13456 libbacktrace_cv_objcopy_debuglink=yes
13457else
13458 libbacktrace_cv_objcopy_debuglink=no
13459fi
13460fi
13461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
13462$as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
13463 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
13464 HAVE_OBJCOPY_DEBUGLINK_TRUE=
13465 HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
13466else
13467 HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
13468 HAVE_OBJCOPY_DEBUGLINK_FALSE=
13469fi
13470
13471
eff02e4f
ILT
13472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
13473$as_echo_n "checking whether tests can run... " >&6; }
22e05272 13474if ${libbacktrace_cv_sys_native+:} false; then :
eff02e4f
ILT
13475 $as_echo_n "(cached) " >&6
13476else
13477 if test "$cross_compiling" = yes; then :
13478 libbacktrace_cv_sys_native=no
13479else
13480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13481/* end confdefs.h. */
13482
13483int
13484main ()
13485{
13486return 0;
13487 ;
13488 return 0;
13489}
13490_ACEOF
13491if ac_fn_c_try_run "$LINENO"; then :
13492 libbacktrace_cv_sys_native=yes
13493else
13494 libbacktrace_cv_sys_native=no
13495fi
13496rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13497 conftest.$ac_objext conftest.beam conftest.$ac_ext
13498fi
13499
13500fi
13501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
13502$as_echo "$libbacktrace_cv_sys_native" >&6; }
13503 if test "$libbacktrace_cv_sys_native" = "yes"; then
13504 NATIVE_TRUE=
13505 NATIVE_FALSE='#'
13506else
13507 NATIVE_TRUE='#'
13508 NATIVE_FALSE=
13509fi
13510
13511
13512if test "${multilib}" = "yes"; then
13513 multilib_arg="--enable-multilib"
13514else
13515 multilib_arg=
13516fi
13517
13518ac_config_files="$ac_config_files Makefile backtrace-supported.h"
13519
fddbc193
TV
13520ac_config_files="$ac_config_files install-debuginfo-for-buildid.sh"
13521
eff02e4f
ILT
13522
13523# We need multilib support, but only if configuring for the target.
13524ac_config_commands="$ac_config_commands default"
13525
13526
13527cat >confcache <<\_ACEOF
13528# This file is a shell script that caches the results of configure
13529# tests run on this system so they can be shared between configure
13530# scripts and configure runs, see configure's option --config-cache.
13531# It is not useful on other systems. If it contains results you don't
13532# want to keep, you may remove or edit it.
13533#
13534# config.status only pays attention to the cache file if you give it
13535# the --recheck option to rerun configure.
13536#
13537# `ac_cv_env_foo' variables (set or unset) will be overridden when
13538# loading this file, other *unset* `ac_cv_foo' will be assigned the
13539# following values.
13540
13541_ACEOF
13542
13543# The following way of writing the cache mishandles newlines in values,
13544# but we know of no workaround that is simple, portable, and efficient.
13545# So, we kill variables containing newlines.
13546# Ultrix sh set writes to stderr and can't be redirected directly,
13547# and sets the high bit in the cache file unless we assign to the vars.
13548(
13549 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13550 eval ac_val=\$$ac_var
13551 case $ac_val in #(
13552 *${as_nl}*)
13553 case $ac_var in #(
13554 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13555$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13556 esac
13557 case $ac_var in #(
13558 _ | IFS | as_nl) ;; #(
13559 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13560 *) { eval $ac_var=; unset $ac_var;} ;;
13561 esac ;;
13562 esac
13563 done
13564
13565 (set) 2>&1 |
13566 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13567 *${as_nl}ac_space=\ *)
13568 # `set' does not quote correctly, so add quotes: double-quote
13569 # substitution turns \\\\ into \\, and sed turns \\ into \.
13570 sed -n \
13571 "s/'/'\\\\''/g;
13572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13573 ;; #(
13574 *)
13575 # `set' quotes correctly as required by POSIX, so do not add quotes.
13576 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13577 ;;
13578 esac |
13579 sort
13580) |
13581 sed '
13582 /^ac_cv_env_/b end
13583 t clear
13584 :clear
13585 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13586 t end
13587 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13588 :end' >>confcache
13589if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13590 if test -w "$cache_file"; then
22e05272 13591 if test "x$cache_file" != "x/dev/null"; then
eff02e4f
ILT
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13593$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
13594 if test ! -f "$cache_file" || test -h "$cache_file"; then
13595 cat confcache >"$cache_file"
13596 else
13597 case $cache_file in #(
13598 */* | ?:*)
13599 mv -f confcache "$cache_file"$$ &&
13600 mv -f "$cache_file"$$ "$cache_file" ;; #(
13601 *)
13602 mv -f confcache "$cache_file" ;;
13603 esac
13604 fi
13605 fi
eff02e4f
ILT
13606 else
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13608$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13609 fi
13610fi
13611rm -f confcache
13612
13613test "x$prefix" = xNONE && prefix=$ac_default_prefix
13614# Let make expand exec_prefix.
13615test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13616
13617DEFS=-DHAVE_CONFIG_H
13618
13619ac_libobjs=
13620ac_ltlibobjs=
22e05272 13621U=
eff02e4f
ILT
13622for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13623 # 1. Remove the extension, and $U if already installed.
13624 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13625 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13626 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13627 # will be set to the directory where LIBOBJS objects are built.
13628 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13629 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13630done
13631LIBOBJS=$ac_libobjs
13632
13633LTLIBOBJS=$ac_ltlibobjs
13634
13635
22e05272
JM
13636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13637$as_echo_n "checking that generated files are newer than configure... " >&6; }
13638 if test -n "$am_sleep_pid"; then
13639 # Hide warnings about reused PIDs.
13640 wait $am_sleep_pid 2>/dev/null
13641 fi
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13643$as_echo "done" >&6; }
eff02e4f
ILT
13644 if test -n "$EXEEXT"; then
13645 am__EXEEXT_TRUE=
13646 am__EXEEXT_FALSE='#'
13647else
13648 am__EXEEXT_TRUE='#'
13649 am__EXEEXT_FALSE=
13650fi
13651
13652if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 13653 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
eff02e4f
ILT
13654Usually this means the macro was only invoked conditionally." "$LINENO" 5
13655fi
10f48858
TV
13656if test -z "${HAVE_DWZ_TRUE}" && test -z "${HAVE_DWZ_FALSE}"; then
13657 as_fn_error $? "conditional \"HAVE_DWZ\" was never defined.
13658Usually this means the macro was only invoked conditionally." "$LINENO" 5
13659fi
fddbc193
TV
13660if test -z "${HAVE_ELF_TRUE}" && test -z "${HAVE_ELF_FALSE}"; then
13661 as_fn_error $? "conditional \"HAVE_ELF\" was never defined.
13662Usually this means the macro was only invoked conditionally." "$LINENO" 5
13663fi
d1609a23 13664if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
22e05272 13665 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
d1609a23
ILT
13666Usually this means the macro was only invoked conditionally." "$LINENO" 5
13667fi
8da872d9 13668if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
22e05272 13669 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
8da872d9
ILT
13670Usually this means the macro was only invoked conditionally." "$LINENO" 5
13671fi
13672if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then
22e05272 13673 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined.
8da872d9
ILT
13674Usually this means the macro was only invoked conditionally." "$LINENO" 5
13675fi
9283471b 13676if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
22e05272 13677 as_fn_error $? "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
9283471b
ILT
13678Usually this means the macro was only invoked conditionally." "$LINENO" 5
13679fi
eff02e4f 13680if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
22e05272 13681 as_fn_error $? "conditional \"NATIVE\" was never defined.
eff02e4f
ILT
13682Usually this means the macro was only invoked conditionally." "$LINENO" 5
13683fi
13684
22e05272 13685: "${CONFIG_STATUS=./config.status}"
eff02e4f
ILT
13686ac_write_fail=0
13687ac_clean_files_save=$ac_clean_files
13688ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13689{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13690$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13691as_write_fail=0
13692cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13693#! $SHELL
13694# Generated by $as_me.
13695# Run this file to recreate the current configuration.
13696# Compiler output produced by configure, useful for debugging
13697# configure, is in config.log if it exists.
13698
13699debug=false
13700ac_cs_recheck=false
13701ac_cs_silent=false
13702
13703SHELL=\${CONFIG_SHELL-$SHELL}
13704export SHELL
13705_ASEOF
13706cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13707## -------------------- ##
13708## M4sh Initialization. ##
13709## -------------------- ##
13710
13711# Be more Bourne compatible
13712DUALCASE=1; export DUALCASE # for MKS sh
13713if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13714 emulate sh
13715 NULLCMD=:
13716 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13717 # is contrary to our usage. Disable this feature.
13718 alias -g '${1+"$@"}'='"$@"'
13719 setopt NO_GLOB_SUBST
13720else
13721 case `(set -o) 2>/dev/null` in #(
13722 *posix*) :
13723 set -o posix ;; #(
13724 *) :
13725 ;;
13726esac
13727fi
13728
13729
13730as_nl='
13731'
13732export as_nl
13733# Printing a long string crashes Solaris 7 /usr/bin/printf.
13734as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13735as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13736as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13737# Prefer a ksh shell builtin over an external printf program on Solaris,
13738# but without wasting forks for bash or zsh.
13739if test -z "$BASH_VERSION$ZSH_VERSION" \
13740 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13741 as_echo='print -r --'
13742 as_echo_n='print -rn --'
13743elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13744 as_echo='printf %s\n'
13745 as_echo_n='printf %s'
13746else
13747 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13748 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13749 as_echo_n='/usr/ucb/echo -n'
13750 else
13751 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13752 as_echo_n_body='eval
13753 arg=$1;
13754 case $arg in #(
13755 *"$as_nl"*)
13756 expr "X$arg" : "X\\(.*\\)$as_nl";
13757 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13758 esac;
13759 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13760 '
13761 export as_echo_n_body
13762 as_echo_n='sh -c $as_echo_n_body as_echo'
13763 fi
13764 export as_echo_body
13765 as_echo='sh -c $as_echo_body as_echo'
13766fi
13767
13768# The user is always right.
13769if test "${PATH_SEPARATOR+set}" != set; then
13770 PATH_SEPARATOR=:
13771 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13772 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13773 PATH_SEPARATOR=';'
13774 }
13775fi
13776
13777
13778# IFS
13779# We need space, tab and new line, in precisely that order. Quoting is
13780# there to prevent editors from complaining about space-tab.
13781# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13782# splitting by setting IFS to empty value.)
13783IFS=" "" $as_nl"
13784
13785# Find who we are. Look in the path if we contain no directory separator.
22e05272 13786as_myself=
eff02e4f
ILT
13787case $0 in #((
13788 *[\\/]* ) as_myself=$0 ;;
13789 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13790for as_dir in $PATH
13791do
13792 IFS=$as_save_IFS
13793 test -z "$as_dir" && as_dir=.
13794 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13795 done
13796IFS=$as_save_IFS
13797
13798 ;;
13799esac
13800# We did not find ourselves, most probably we were run as `sh COMMAND'
13801# in which case we are not to be found in the path.
13802if test "x$as_myself" = x; then
13803 as_myself=$0
13804fi
13805if test ! -f "$as_myself"; then
13806 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13807 exit 1
13808fi
13809
13810# Unset variables that we do not need and which cause bugs (e.g. in
13811# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13812# suppresses any "Segmentation fault" message there. '((' could
13813# trigger a bug in pdksh 5.2.14.
13814for as_var in BASH_ENV ENV MAIL MAILPATH
13815do eval test x\${$as_var+set} = xset \
13816 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13817done
13818PS1='$ '
13819PS2='> '
13820PS4='+ '
13821
13822# NLS nuisances.
13823LC_ALL=C
13824export LC_ALL
13825LANGUAGE=C
13826export LANGUAGE
13827
13828# CDPATH.
13829(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13830
13831
22e05272
JM
13832# as_fn_error STATUS ERROR [LINENO LOG_FD]
13833# ----------------------------------------
eff02e4f
ILT
13834# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13835# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 13836# script with STATUS, using 1 if that was 0.
eff02e4f
ILT
13837as_fn_error ()
13838{
22e05272
JM
13839 as_status=$1; test $as_status -eq 0 && as_status=1
13840 if test "$4"; then
13841 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13842 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
eff02e4f 13843 fi
22e05272 13844 $as_echo "$as_me: error: $2" >&2
eff02e4f
ILT
13845 as_fn_exit $as_status
13846} # as_fn_error
13847
13848
13849# as_fn_set_status STATUS
13850# -----------------------
13851# Set $? to STATUS, without forking.
13852as_fn_set_status ()
13853{
13854 return $1
13855} # as_fn_set_status
13856
13857# as_fn_exit STATUS
13858# -----------------
13859# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13860as_fn_exit ()
13861{
13862 set +e
13863 as_fn_set_status $1
13864 exit $1
13865} # as_fn_exit
13866
13867# as_fn_unset VAR
13868# ---------------
13869# Portably unset VAR.
13870as_fn_unset ()
13871{
13872 { eval $1=; unset $1;}
13873}
13874as_unset=as_fn_unset
13875# as_fn_append VAR VALUE
13876# ----------------------
13877# Append the text in VALUE to the end of the definition contained in VAR. Take
13878# advantage of any shell optimizations that allow amortized linear growth over
13879# repeated appends, instead of the typical quadratic growth present in naive
13880# implementations.
13881if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13882 eval 'as_fn_append ()
13883 {
13884 eval $1+=\$2
13885 }'
13886else
13887 as_fn_append ()
13888 {
13889 eval $1=\$$1\$2
13890 }
13891fi # as_fn_append
13892
13893# as_fn_arith ARG...
13894# ------------------
13895# Perform arithmetic evaluation on the ARGs, and store the result in the
13896# global $as_val. Take advantage of shells that can avoid forks. The arguments
13897# must be portable across $(()) and expr.
13898if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13899 eval 'as_fn_arith ()
13900 {
13901 as_val=$(( $* ))
13902 }'
13903else
13904 as_fn_arith ()
13905 {
13906 as_val=`expr "$@" || test $? -eq 1`
13907 }
13908fi # as_fn_arith
13909
13910
13911if expr a : '\(a\)' >/dev/null 2>&1 &&
13912 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13913 as_expr=expr
13914else
13915 as_expr=false
13916fi
13917
13918if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13919 as_basename=basename
13920else
13921 as_basename=false
13922fi
13923
13924if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13925 as_dirname=dirname
13926else
13927 as_dirname=false
13928fi
13929
13930as_me=`$as_basename -- "$0" ||
13931$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13932 X"$0" : 'X\(//\)$' \| \
13933 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13934$as_echo X/"$0" |
13935 sed '/^.*\/\([^/][^/]*\)\/*$/{
13936 s//\1/
13937 q
13938 }
13939 /^X\/\(\/\/\)$/{
13940 s//\1/
13941 q
13942 }
13943 /^X\/\(\/\).*/{
13944 s//\1/
13945 q
13946 }
13947 s/.*/./; q'`
13948
13949# Avoid depending upon Character Ranges.
13950as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13951as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13952as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13953as_cr_digits='0123456789'
13954as_cr_alnum=$as_cr_Letters$as_cr_digits
13955
13956ECHO_C= ECHO_N= ECHO_T=
13957case `echo -n x` in #(((((
13958-n*)
13959 case `echo 'xy\c'` in
13960 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13961 xy) ECHO_C='\c';;
13962 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13963 ECHO_T=' ';;
13964 esac;;
13965*)
13966 ECHO_N='-n';;
13967esac
13968
13969rm -f conf$$ conf$$.exe conf$$.file
13970if test -d conf$$.dir; then
13971 rm -f conf$$.dir/conf$$.file
13972else
13973 rm -f conf$$.dir
13974 mkdir conf$$.dir 2>/dev/null
13975fi
13976if (echo >conf$$.file) 2>/dev/null; then
13977 if ln -s conf$$.file conf$$ 2>/dev/null; then
13978 as_ln_s='ln -s'
13979 # ... but there are two gotchas:
13980 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13981 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 13982 # In both cases, we have to default to `cp -pR'.
eff02e4f 13983 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 13984 as_ln_s='cp -pR'
eff02e4f
ILT
13985 elif ln conf$$.file conf$$ 2>/dev/null; then
13986 as_ln_s=ln
13987 else
22e05272 13988 as_ln_s='cp -pR'
eff02e4f
ILT
13989 fi
13990else
22e05272 13991 as_ln_s='cp -pR'
eff02e4f
ILT
13992fi
13993rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13994rmdir conf$$.dir 2>/dev/null
13995
13996
13997# as_fn_mkdir_p
13998# -------------
13999# Create "$as_dir" as a directory, including parents if necessary.
14000as_fn_mkdir_p ()
14001{
14002
14003 case $as_dir in #(
14004 -*) as_dir=./$as_dir;;
14005 esac
14006 test -d "$as_dir" || eval $as_mkdir_p || {
14007 as_dirs=
14008 while :; do
14009 case $as_dir in #(
14010 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14011 *) as_qdir=$as_dir;;
14012 esac
14013 as_dirs="'$as_qdir' $as_dirs"
14014 as_dir=`$as_dirname -- "$as_dir" ||
14015$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14016 X"$as_dir" : 'X\(//\)[^/]' \| \
14017 X"$as_dir" : 'X\(//\)$' \| \
14018 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14019$as_echo X"$as_dir" |
14020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14021 s//\1/
14022 q
14023 }
14024 /^X\(\/\/\)[^/].*/{
14025 s//\1/
14026 q
14027 }
14028 /^X\(\/\/\)$/{
14029 s//\1/
14030 q
14031 }
14032 /^X\(\/\).*/{
14033 s//\1/
14034 q
14035 }
14036 s/.*/./; q'`
14037 test -d "$as_dir" && break
14038 done
14039 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 14040 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
eff02e4f
ILT
14041
14042
14043} # as_fn_mkdir_p
14044if mkdir -p . 2>/dev/null; then
14045 as_mkdir_p='mkdir -p "$as_dir"'
14046else
14047 test -d ./-p && rmdir ./-p
14048 as_mkdir_p=false
14049fi
14050
22e05272
JM
14051
14052# as_fn_executable_p FILE
14053# -----------------------
14054# Test if FILE is an executable regular file.
14055as_fn_executable_p ()
14056{
14057 test -f "$1" && test -x "$1"
14058} # as_fn_executable_p
14059as_test_x='test -x'
14060as_executable_p=as_fn_executable_p
eff02e4f
ILT
14061
14062# Sed expression to map a string onto a valid CPP name.
14063as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14064
14065# Sed expression to map a string onto a valid variable name.
14066as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14067
14068
14069exec 6>&1
14070## ----------------------------------- ##
14071## Main body of $CONFIG_STATUS script. ##
14072## ----------------------------------- ##
14073_ASEOF
14074test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14075
14076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14077# Save the log message, to keep $0 and so on meaningful, and to
14078# report actual input values of CONFIG_FILES etc. instead of their
14079# values after options handling.
14080ac_log="
14081This file was extended by package-unused $as_me version-unused, which was
22e05272 14082generated by GNU Autoconf 2.69. Invocation command line was
eff02e4f
ILT
14083
14084 CONFIG_FILES = $CONFIG_FILES
14085 CONFIG_HEADERS = $CONFIG_HEADERS
14086 CONFIG_LINKS = $CONFIG_LINKS
14087 CONFIG_COMMANDS = $CONFIG_COMMANDS
14088 $ $0 $@
14089
14090on `(hostname || uname -n) 2>/dev/null | sed 1q`
14091"
14092
14093_ACEOF
14094
14095case $ac_config_files in *"
14096"*) set x $ac_config_files; shift; ac_config_files=$*;;
14097esac
14098
14099case $ac_config_headers in *"
14100"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14101esac
14102
14103
14104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14105# Files that config.status was made for.
14106config_files="$ac_config_files"
14107config_headers="$ac_config_headers"
14108config_commands="$ac_config_commands"
14109
14110_ACEOF
14111
14112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14113ac_cs_usage="\
14114\`$as_me' instantiates files and other configuration actions
14115from templates according to the current configuration. Unless the files
14116and actions are specified as TAGs, all are instantiated by default.
14117
14118Usage: $0 [OPTION]... [TAG]...
14119
14120 -h, --help print this help, then exit
14121 -V, --version print version number and configuration settings, then exit
22e05272 14122 --config print configuration, then exit
eff02e4f
ILT
14123 -q, --quiet, --silent
14124 do not print progress messages
14125 -d, --debug don't remove temporary files
14126 --recheck update $as_me by reconfiguring in the same conditions
14127 --file=FILE[:TEMPLATE]
14128 instantiate the configuration file FILE
14129 --header=FILE[:TEMPLATE]
14130 instantiate the configuration header FILE
14131
14132Configuration files:
14133$config_files
14134
14135Configuration headers:
14136$config_headers
14137
14138Configuration commands:
14139$config_commands
14140
14141Report bugs to the package provider."
14142
14143_ACEOF
14144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 14145ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
eff02e4f
ILT
14146ac_cs_version="\\
14147package-unused config.status version-unused
22e05272
JM
14148configured by $0, generated by GNU Autoconf 2.69,
14149 with options \\"\$ac_cs_config\\"
eff02e4f 14150
22e05272 14151Copyright (C) 2012 Free Software Foundation, Inc.
eff02e4f
ILT
14152This config.status script is free software; the Free Software Foundation
14153gives unlimited permission to copy, distribute and modify it."
14154
14155ac_pwd='$ac_pwd'
14156srcdir='$srcdir'
14157INSTALL='$INSTALL'
14158MKDIR_P='$MKDIR_P'
14159AWK='$AWK'
14160test -n "\$AWK" || AWK=awk
14161_ACEOF
14162
14163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14164# The default lists apply if the user does not specify any file.
14165ac_need_defaults=:
14166while test $# != 0
14167do
14168 case $1 in
22e05272 14169 --*=?*)
eff02e4f
ILT
14170 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14171 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14172 ac_shift=:
14173 ;;
22e05272
JM
14174 --*=)
14175 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14176 ac_optarg=
14177 ac_shift=:
14178 ;;
eff02e4f
ILT
14179 *)
14180 ac_option=$1
14181 ac_optarg=$2
14182 ac_shift=shift
14183 ;;
14184 esac
14185
14186 case $ac_option in
14187 # Handling of the options.
14188 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14189 ac_cs_recheck=: ;;
14190 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14191 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
14192 --config | --confi | --conf | --con | --co | --c )
14193 $as_echo "$ac_cs_config"; exit ;;
eff02e4f
ILT
14194 --debug | --debu | --deb | --de | --d | -d )
14195 debug=: ;;
14196 --file | --fil | --fi | --f )
14197 $ac_shift
14198 case $ac_optarg in
14199 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 14200 '') as_fn_error $? "missing file argument" ;;
eff02e4f
ILT
14201 esac
14202 as_fn_append CONFIG_FILES " '$ac_optarg'"
14203 ac_need_defaults=false;;
14204 --header | --heade | --head | --hea )
14205 $ac_shift
14206 case $ac_optarg in
14207 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14208 esac
14209 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14210 ac_need_defaults=false;;
14211 --he | --h)
14212 # Conflict between --help and --header
22e05272 14213 as_fn_error $? "ambiguous option: \`$1'
eff02e4f
ILT
14214Try \`$0 --help' for more information.";;
14215 --help | --hel | -h )
14216 $as_echo "$ac_cs_usage"; exit ;;
14217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14218 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14219 ac_cs_silent=: ;;
14220
14221 # This is an error.
22e05272 14222 -*) as_fn_error $? "unrecognized option: \`$1'
eff02e4f
ILT
14223Try \`$0 --help' for more information." ;;
14224
14225 *) as_fn_append ac_config_targets " $1"
14226 ac_need_defaults=false ;;
14227
14228 esac
14229 shift
14230done
14231
14232ac_configure_extra_args=
14233
14234if $ac_cs_silent; then
14235 exec 6>/dev/null
14236 ac_configure_extra_args="$ac_configure_extra_args --silent"
14237fi
14238
14239_ACEOF
14240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14241if \$ac_cs_recheck; then
22e05272 14242 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
eff02e4f
ILT
14243 shift
14244 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14245 CONFIG_SHELL='$SHELL'
14246 export CONFIG_SHELL
14247 exec "\$@"
14248fi
14249
14250_ACEOF
14251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14252exec 5>>config.log
14253{
14254 echo
14255 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14256## Running $as_me. ##
14257_ASBOX
14258 $as_echo "$ac_log"
14259} >&5
14260
14261_ACEOF
14262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14263#
14264# INIT-COMMANDS
14265#
eff02e4f 14266
405a6b1c
MK
14267srcdir="$srcdir"
14268host="$host"
14269target="$target"
14270with_multisubdir="$with_multisubdir"
14271with_multisrctop="$with_multisrctop"
14272with_target_subdir="$with_target_subdir"
14273ac_configure_args="${multilib_arg} ${ac_configure_args}"
14274multi_basedir="$multi_basedir"
14275CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14276CC="$CC"
14277CXX="$CXX"
14278GFORTRAN="$GFORTRAN"
22e05272 14279GDC="$GDC"
405a6b1c 14280
eff02e4f
ILT
14281
14282# The HP-UX ksh and POSIX shell print the target directory to stdout
14283# if CDPATH is set.
14284(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14285
14286sed_quote_subst='$sed_quote_subst'
14287double_quote_subst='$double_quote_subst'
14288delay_variable_subst='$delay_variable_subst'
14289macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14290macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14291enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14292enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14293pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14294enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14295SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14296ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14297host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14298host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14299host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14300build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14301build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14302build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14303SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14304Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14305GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14306EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14307FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14308LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14309NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14310LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14311max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14312ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14313exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14314lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14315lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14316lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14317reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14318reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14319OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14320deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14321file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14322AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14323AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14324STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14325RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14326old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14327old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14328old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14329lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14330CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14331CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14332compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14333GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14334lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14335lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14336lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14337lt_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"`'
14338objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14339MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14340lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14341lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14342lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14343lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14344lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14345need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14346DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14347NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14348LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14349OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14350OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14351libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14352shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14353extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14354archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14355enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14356export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14357whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14358compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14359old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14360old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14361archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14362archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14363module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14364module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14365with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14366allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14367no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14368hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14369hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14370hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14371hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14372hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14373hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14374hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14375hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14376inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14377link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14378fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14379always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14380export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14381exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14382include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14383prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14384file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14385variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14386need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14387need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14388version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14389runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14390shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14391shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14392libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14393library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14394soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14395install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14396postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14397postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14398finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14399finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14400hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14401sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14402sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14403hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14404enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14405enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14406enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14407old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14408striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14409
14410LTCC='$LTCC'
14411LTCFLAGS='$LTCFLAGS'
14412compiler='$compiler_DEFAULT'
14413
14414# A function that is used when there is no print builtin or printf.
14415func_fallback_echo ()
14416{
14417 eval 'cat <<_LTECHO_EOF
14418\$1
14419_LTECHO_EOF'
14420}
14421
14422# Quote evaled strings.
14423for var in SHELL \
14424ECHO \
14425SED \
14426GREP \
14427EGREP \
14428FGREP \
14429LD \
14430NM \
14431LN_S \
14432lt_SP2NL \
14433lt_NL2SP \
14434reload_flag \
14435OBJDUMP \
14436deplibs_check_method \
14437file_magic_cmd \
14438AR \
14439AR_FLAGS \
14440STRIP \
14441RANLIB \
14442CC \
14443CFLAGS \
14444compiler \
14445lt_cv_sys_global_symbol_pipe \
14446lt_cv_sys_global_symbol_to_cdecl \
14447lt_cv_sys_global_symbol_to_c_name_address \
14448lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14449lt_prog_compiler_no_builtin_flag \
14450lt_prog_compiler_wl \
14451lt_prog_compiler_pic \
14452lt_prog_compiler_static \
14453lt_cv_prog_compiler_c_o \
14454need_locks \
14455DSYMUTIL \
14456NMEDIT \
14457LIPO \
14458OTOOL \
14459OTOOL64 \
14460shrext_cmds \
14461export_dynamic_flag_spec \
14462whole_archive_flag_spec \
14463compiler_needs_object \
14464with_gnu_ld \
14465allow_undefined_flag \
14466no_undefined_flag \
14467hardcode_libdir_flag_spec \
14468hardcode_libdir_flag_spec_ld \
14469hardcode_libdir_separator \
14470fix_srcfile_path \
14471exclude_expsyms \
14472include_expsyms \
14473file_list_spec \
14474variables_saved_for_relink \
14475libname_spec \
14476library_names_spec \
14477soname_spec \
14478install_override_mode \
14479finish_eval \
14480old_striplib \
14481striplib; do
14482 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14483 *[\\\\\\\`\\"\\\$]*)
14484 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14485 ;;
14486 *)
14487 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14488 ;;
14489 esac
14490done
14491
14492# Double-quote double-evaled strings.
14493for var in reload_cmds \
14494old_postinstall_cmds \
14495old_postuninstall_cmds \
14496old_archive_cmds \
14497extract_expsyms_cmds \
14498old_archive_from_new_cmds \
14499old_archive_from_expsyms_cmds \
14500archive_cmds \
14501archive_expsym_cmds \
14502module_cmds \
14503module_expsym_cmds \
14504export_symbols_cmds \
14505prelink_cmds \
14506postinstall_cmds \
14507postuninstall_cmds \
14508finish_cmds \
14509sys_lib_search_path_spec \
14510sys_lib_dlsearch_path_spec; do
14511 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14512 *[\\\\\\\`\\"\\\$]*)
14513 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14514 ;;
14515 *)
14516 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14517 ;;
14518 esac
14519done
14520
14521ac_aux_dir='$ac_aux_dir'
14522xsi_shell='$xsi_shell'
14523lt_shell_append='$lt_shell_append'
14524
14525# See if we are running on zsh, and set the options which allow our
14526# commands through without removal of \ escapes INIT.
14527if test -n "\${ZSH_VERSION+set}" ; then
14528 setopt NO_GLOB_SUBST
14529fi
14530
14531
14532 PACKAGE='$PACKAGE'
14533 VERSION='$VERSION'
14534 TIMESTAMP='$TIMESTAMP'
14535 RM='$RM'
14536 ofile='$ofile'
14537
14538
14539
14540
76850556
RO
14541GCC="$GCC"
14542CC="$CC"
14543acx_cv_header_stdint="$acx_cv_header_stdint"
14544acx_cv_type_int8_t="$acx_cv_type_int8_t"
14545acx_cv_type_int16_t="$acx_cv_type_int16_t"
14546acx_cv_type_int32_t="$acx_cv_type_int32_t"
14547acx_cv_type_int64_t="$acx_cv_type_int64_t"
14548acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
14549ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
14550ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
14551ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
14552ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
14553ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
14554ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
14555ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
14556ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
14557
14558
eff02e4f
ILT
14559# Variables needed in config.status (file generation) which aren't already
14560# passed by autoconf.
14561SUBDIRS="$SUBDIRS"
14562
14563
14564_ACEOF
14565
14566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14567
14568# Handling of arguments.
14569for ac_config_target in $ac_config_targets
14570do
14571 case $ac_config_target in
14572 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
eff02e4f 14573 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
405a6b1c 14574 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
76850556 14575 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
eff02e4f
ILT
14576 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14577 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
fddbc193 14578 "install-debuginfo-for-buildid.sh") CONFIG_FILES="$CONFIG_FILES install-debuginfo-for-buildid.sh" ;;
eff02e4f
ILT
14579 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14580
22e05272 14581 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
eff02e4f
ILT
14582 esac
14583done
14584
14585
14586# If the user did not use the arguments to specify the items to instantiate,
14587# then the envvar interface is used. Set only those that are not.
14588# We use the long form for the default assignment because of an extremely
14589# bizarre bug on SunOS 4.1.3.
14590if $ac_need_defaults; then
14591 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14592 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14593 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14594fi
14595
14596# Have a temporary directory for convenience. Make it in the build tree
14597# simply because there is no reason against having it here, and in addition,
14598# creating and moving files from /tmp can sometimes cause problems.
14599# Hook for its removal unless debugging.
14600# Note that there is a small window in which the directory will not be cleaned:
14601# after its creation but before its name has been assigned to `$tmp'.
14602$debug ||
14603{
22e05272 14604 tmp= ac_tmp=
eff02e4f 14605 trap 'exit_status=$?
22e05272
JM
14606 : "${ac_tmp:=$tmp}"
14607 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
eff02e4f
ILT
14608' 0
14609 trap 'as_fn_exit 1' 1 2 13 15
14610}
14611# Create a (secure) tmp directory for tmp files.
14612
14613{
14614 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 14615 test -d "$tmp"
eff02e4f
ILT
14616} ||
14617{
14618 tmp=./conf$$-$RANDOM
14619 (umask 077 && mkdir "$tmp")
22e05272
JM
14620} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14621ac_tmp=$tmp
eff02e4f
ILT
14622
14623# Set up the scripts for CONFIG_FILES section.
14624# No need to generate them if there are no CONFIG_FILES.
14625# This happens for instance with `./config.status config.h'.
14626if test -n "$CONFIG_FILES"; then
14627
14628
14629ac_cr=`echo X | tr X '\015'`
14630# On cygwin, bash can eat \r inside `` if the user requested igncr.
14631# But we know of no other shell where ac_cr would be empty at this
14632# point, so we can use a bashism as a fallback.
14633if test "x$ac_cr" = x; then
14634 eval ac_cr=\$\'\\r\'
14635fi
14636ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14637if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 14638 ac_cs_awk_cr='\\r'
eff02e4f
ILT
14639else
14640 ac_cs_awk_cr=$ac_cr
14641fi
14642
22e05272 14643echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
eff02e4f
ILT
14644_ACEOF
14645
14646
14647{
14648 echo "cat >conf$$subs.awk <<_ACEOF" &&
14649 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14650 echo "_ACEOF"
14651} >conf$$subs.sh ||
22e05272
JM
14652 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14653ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
eff02e4f
ILT
14654ac_delim='%!_!# '
14655for ac_last_try in false false false false false :; do
14656 . ./conf$$subs.sh ||
22e05272 14657 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
eff02e4f
ILT
14658
14659 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14660 if test $ac_delim_n = $ac_delim_num; then
14661 break
14662 elif $ac_last_try; then
22e05272 14663 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
eff02e4f
ILT
14664 else
14665 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14666 fi
14667done
14668rm -f conf$$subs.sh
14669
14670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 14671cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
eff02e4f
ILT
14672_ACEOF
14673sed -n '
14674h
14675s/^/S["/; s/!.*/"]=/
14676p
14677g
14678s/^[^!]*!//
14679:repl
14680t repl
14681s/'"$ac_delim"'$//
14682t delim
14683:nl
14684h
22e05272 14685s/\(.\{148\}\)..*/\1/
eff02e4f
ILT
14686t more1
14687s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14688p
14689n
14690b repl
14691:more1
14692s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14693p
14694g
14695s/.\{148\}//
14696t nl
14697:delim
14698h
22e05272 14699s/\(.\{148\}\)..*/\1/
eff02e4f
ILT
14700t more2
14701s/["\\]/\\&/g; s/^/"/; s/$/"/
14702p
14703b
14704:more2
14705s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14706p
14707g
14708s/.\{148\}//
14709t delim
14710' <conf$$subs.awk | sed '
14711/^[^""]/{
14712 N
14713 s/\n//
14714}
14715' >>$CONFIG_STATUS || ac_write_fail=1
14716rm -f conf$$subs.awk
14717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14718_ACAWK
22e05272 14719cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
eff02e4f
ILT
14720 for (key in S) S_is_set[key] = 1
14721 FS = "\a"
14722
14723}
14724{
14725 line = $ 0
14726 nfields = split(line, field, "@")
14727 substed = 0
14728 len = length(field[1])
14729 for (i = 2; i < nfields; i++) {
14730 key = field[i]
14731 keylen = length(key)
14732 if (S_is_set[key]) {
14733 value = S[key]
14734 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14735 len += length(value) + length(field[++i])
14736 substed = 1
14737 } else
14738 len += 1 + keylen
14739 }
14740
14741 print line
14742}
14743
14744_ACAWK
14745_ACEOF
14746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14747if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14748 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14749else
14750 cat
22e05272
JM
14751fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14752 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
eff02e4f
ILT
14753_ACEOF
14754
22e05272
JM
14755# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14756# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
eff02e4f
ILT
14757# trailing colons and then remove the whole line if VPATH becomes empty
14758# (actually we leave an empty line to preserve line numbers).
14759if test "x$srcdir" = x.; then
22e05272
JM
14760 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14761h
14762s///
14763s/^/:/
14764s/[ ]*$/:/
14765s/:\$(srcdir):/:/g
14766s/:\${srcdir}:/:/g
14767s/:@srcdir@:/:/g
14768s/^:*//
eff02e4f 14769s/:*$//
22e05272
JM
14770x
14771s/\(=[ ]*\).*/\1/
14772G
14773s/\n//
eff02e4f
ILT
14774s/^[^=]*=[ ]*$//
14775}'
14776fi
14777
14778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14779fi # test -n "$CONFIG_FILES"
14780
14781# Set up the scripts for CONFIG_HEADERS section.
14782# No need to generate them if there are no CONFIG_HEADERS.
14783# This happens for instance with `./config.status Makefile'.
14784if test -n "$CONFIG_HEADERS"; then
22e05272 14785cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
eff02e4f
ILT
14786BEGIN {
14787_ACEOF
14788
14789# Transform confdefs.h into an awk script `defines.awk', embedded as
14790# here-document in config.status, that substitutes the proper values into
14791# config.h.in to produce config.h.
14792
14793# Create a delimiter string that does not exist in confdefs.h, to ease
14794# handling of long lines.
14795ac_delim='%!_!# '
14796for ac_last_try in false false :; do
22e05272
JM
14797 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14798 if test -z "$ac_tt"; then
eff02e4f
ILT
14799 break
14800 elif $ac_last_try; then
22e05272 14801 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
eff02e4f
ILT
14802 else
14803 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14804 fi
14805done
14806
14807# For the awk script, D is an array of macro values keyed by name,
14808# likewise P contains macro parameters if any. Preserve backslash
14809# newline sequences.
14810
14811ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14812sed -n '
14813s/.\{148\}/&'"$ac_delim"'/g
14814t rset
14815:rset
14816s/^[ ]*#[ ]*define[ ][ ]*/ /
14817t def
14818d
14819:def
14820s/\\$//
14821t bsnl
14822s/["\\]/\\&/g
14823s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14824D["\1"]=" \3"/p
14825s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14826d
14827:bsnl
14828s/["\\]/\\&/g
14829s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14830D["\1"]=" \3\\\\\\n"\\/p
14831t cont
14832s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14833t cont
14834d
14835:cont
14836n
14837s/.\{148\}/&'"$ac_delim"'/g
14838t clear
14839:clear
14840s/\\$//
14841t bsnlc
14842s/["\\]/\\&/g; s/^/"/; s/$/"/p
14843d
14844:bsnlc
14845s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14846b cont
14847' <confdefs.h | sed '
14848s/'"$ac_delim"'/"\\\
14849"/g' >>$CONFIG_STATUS || ac_write_fail=1
14850
14851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14852 for (key in D) D_is_set[key] = 1
14853 FS = "\a"
14854}
14855/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14856 line = \$ 0
14857 split(line, arg, " ")
14858 if (arg[1] == "#") {
14859 defundef = arg[2]
14860 mac1 = arg[3]
14861 } else {
14862 defundef = substr(arg[1], 2)
14863 mac1 = arg[2]
14864 }
14865 split(mac1, mac2, "(") #)
14866 macro = mac2[1]
14867 prefix = substr(line, 1, index(line, defundef) - 1)
14868 if (D_is_set[macro]) {
14869 # Preserve the white space surrounding the "#".
14870 print prefix "define", macro P[macro] D[macro]
14871 next
14872 } else {
14873 # Replace #undef with comments. This is necessary, for example,
14874 # in the case of _POSIX_SOURCE, which is predefined and required
14875 # on some systems where configure will not decide to define it.
14876 if (defundef == "undef") {
14877 print "/*", prefix defundef, macro, "*/"
14878 next
14879 }
14880 }
14881}
14882{ print }
14883_ACAWK
14884_ACEOF
14885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 14886 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
eff02e4f
ILT
14887fi # test -n "$CONFIG_HEADERS"
14888
14889
14890eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14891shift
14892for ac_tag
14893do
14894 case $ac_tag in
14895 :[FHLC]) ac_mode=$ac_tag; continue;;
14896 esac
14897 case $ac_mode$ac_tag in
14898 :[FHL]*:*);;
22e05272 14899 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
eff02e4f
ILT
14900 :[FH]-) ac_tag=-:-;;
14901 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14902 esac
14903 ac_save_IFS=$IFS
14904 IFS=:
14905 set x $ac_tag
14906 IFS=$ac_save_IFS
14907 shift
14908 ac_file=$1
14909 shift
14910
14911 case $ac_mode in
14912 :L) ac_source=$1;;
14913 :[FH])
14914 ac_file_inputs=
14915 for ac_f
14916 do
14917 case $ac_f in
22e05272 14918 -) ac_f="$ac_tmp/stdin";;
eff02e4f
ILT
14919 *) # Look for the file first in the build tree, then in the source tree
14920 # (if the path is not absolute). The absolute path cannot be DOS-style,
14921 # because $ac_f cannot contain `:'.
14922 test -f "$ac_f" ||
14923 case $ac_f in
14924 [\\/$]*) false;;
14925 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14926 esac ||
22e05272 14927 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
eff02e4f
ILT
14928 esac
14929 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14930 as_fn_append ac_file_inputs " '$ac_f'"
14931 done
14932
14933 # Let's still pretend it is `configure' which instantiates (i.e., don't
14934 # use $as_me), people would be surprised to read:
14935 # /* config.h. Generated by config.status. */
14936 configure_input='Generated from '`
14937 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14938 `' by configure.'
14939 if test x"$ac_file" != x-; then
14940 configure_input="$ac_file. $configure_input"
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14942$as_echo "$as_me: creating $ac_file" >&6;}
14943 fi
14944 # Neutralize special characters interpreted by sed in replacement strings.
14945 case $configure_input in #(
14946 *\&* | *\|* | *\\* )
14947 ac_sed_conf_input=`$as_echo "$configure_input" |
14948 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14949 *) ac_sed_conf_input=$configure_input;;
14950 esac
14951
14952 case $ac_tag in
22e05272
JM
14953 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14954 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
eff02e4f
ILT
14955 esac
14956 ;;
14957 esac
14958
14959 ac_dir=`$as_dirname -- "$ac_file" ||
14960$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14961 X"$ac_file" : 'X\(//\)[^/]' \| \
14962 X"$ac_file" : 'X\(//\)$' \| \
14963 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14964$as_echo X"$ac_file" |
14965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14966 s//\1/
14967 q
14968 }
14969 /^X\(\/\/\)[^/].*/{
14970 s//\1/
14971 q
14972 }
14973 /^X\(\/\/\)$/{
14974 s//\1/
14975 q
14976 }
14977 /^X\(\/\).*/{
14978 s//\1/
14979 q
14980 }
14981 s/.*/./; q'`
14982 as_dir="$ac_dir"; as_fn_mkdir_p
14983 ac_builddir=.
14984
14985case "$ac_dir" in
14986.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14987*)
14988 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14989 # A ".." for each directory in $ac_dir_suffix.
14990 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14991 case $ac_top_builddir_sub in
14992 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14993 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14994 esac ;;
14995esac
14996ac_abs_top_builddir=$ac_pwd
14997ac_abs_builddir=$ac_pwd$ac_dir_suffix
14998# for backward compatibility:
14999ac_top_builddir=$ac_top_build_prefix
15000
15001case $srcdir in
15002 .) # We are building in place.
15003 ac_srcdir=.
15004 ac_top_srcdir=$ac_top_builddir_sub
15005 ac_abs_top_srcdir=$ac_pwd ;;
15006 [\\/]* | ?:[\\/]* ) # Absolute name.
15007 ac_srcdir=$srcdir$ac_dir_suffix;
15008 ac_top_srcdir=$srcdir
15009 ac_abs_top_srcdir=$srcdir ;;
15010 *) # Relative name.
15011 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15012 ac_top_srcdir=$ac_top_build_prefix$srcdir
15013 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15014esac
15015ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15016
15017
15018 case $ac_mode in
15019 :F)
15020 #
15021 # CONFIG_FILE
15022 #
15023
15024 case $INSTALL in
15025 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15026 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15027 esac
15028 ac_MKDIR_P=$MKDIR_P
15029 case $MKDIR_P in
15030 [\\/$]* | ?:[\\/]* ) ;;
15031 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15032 esac
15033_ACEOF
15034
15035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15036# If the template does not know about datarootdir, expand it.
15037# FIXME: This hack should be removed a few years after 2.60.
15038ac_datarootdir_hack=; ac_datarootdir_seen=
15039ac_sed_dataroot='
15040/datarootdir/ {
15041 p
15042 q
15043}
15044/@datadir@/p
15045/@docdir@/p
15046/@infodir@/p
15047/@localedir@/p
15048/@mandir@/p'
15049case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15050*datarootdir*) ac_datarootdir_seen=yes;;
15051*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15053$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15054_ACEOF
15055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15056 ac_datarootdir_hack='
15057 s&@datadir@&$datadir&g
15058 s&@docdir@&$docdir&g
15059 s&@infodir@&$infodir&g
15060 s&@localedir@&$localedir&g
15061 s&@mandir@&$mandir&g
15062 s&\\\${datarootdir}&$datarootdir&g' ;;
15063esac
15064_ACEOF
15065
15066# Neutralize VPATH when `$srcdir' = `.'.
15067# Shell code in configure.ac might set extrasub.
15068# FIXME: do we really want to maintain this feature?
15069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15070ac_sed_extra="$ac_vpsub
15071$extrasub
15072_ACEOF
15073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15074:t
15075/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15076s|@configure_input@|$ac_sed_conf_input|;t t
15077s&@top_builddir@&$ac_top_builddir_sub&;t t
15078s&@top_build_prefix@&$ac_top_build_prefix&;t t
15079s&@srcdir@&$ac_srcdir&;t t
15080s&@abs_srcdir@&$ac_abs_srcdir&;t t
15081s&@top_srcdir@&$ac_top_srcdir&;t t
15082s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15083s&@builddir@&$ac_builddir&;t t
15084s&@abs_builddir@&$ac_abs_builddir&;t t
15085s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15086s&@INSTALL@&$ac_INSTALL&;t t
15087s&@MKDIR_P@&$ac_MKDIR_P&;t t
15088$ac_datarootdir_hack
15089"
22e05272
JM
15090eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15091 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
eff02e4f
ILT
15092
15093test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
15094 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15095 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15096 "$ac_tmp/out"`; test -z "$ac_out"; } &&
eff02e4f 15097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 15098which seems to be undefined. Please make sure it is defined" >&5
eff02e4f 15099$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 15100which seems to be undefined. Please make sure it is defined" >&2;}
eff02e4f 15101
22e05272 15102 rm -f "$ac_tmp/stdin"
eff02e4f 15103 case $ac_file in
22e05272
JM
15104 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15105 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
eff02e4f 15106 esac \
22e05272 15107 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
eff02e4f
ILT
15108 ;;
15109 :H)
15110 #
15111 # CONFIG_HEADER
15112 #
15113 if test x"$ac_file" != x-; then
15114 {
15115 $as_echo "/* $configure_input */" \
22e05272
JM
15116 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15117 } >"$ac_tmp/config.h" \
15118 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15119 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
eff02e4f
ILT
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15121$as_echo "$as_me: $ac_file is unchanged" >&6;}
15122 else
15123 rm -f "$ac_file"
22e05272
JM
15124 mv "$ac_tmp/config.h" "$ac_file" \
15125 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
eff02e4f
ILT
15126 fi
15127 else
15128 $as_echo "/* $configure_input */" \
22e05272
JM
15129 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15130 || as_fn_error $? "could not create -" "$LINENO" 5
eff02e4f
ILT
15131 fi
15132# Compute "$ac_file"'s index in $config_headers.
15133_am_arg="$ac_file"
15134_am_stamp_count=1
15135for _am_header in $config_headers :; do
15136 case $_am_header in
15137 $_am_arg | $_am_arg:* )
15138 break ;;
15139 * )
15140 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15141 esac
15142done
15143echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15144$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15145 X"$_am_arg" : 'X\(//\)[^/]' \| \
15146 X"$_am_arg" : 'X\(//\)$' \| \
15147 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15148$as_echo X"$_am_arg" |
15149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15150 s//\1/
15151 q
15152 }
15153 /^X\(\/\/\)[^/].*/{
15154 s//\1/
15155 q
15156 }
15157 /^X\(\/\/\)$/{
15158 s//\1/
15159 q
15160 }
15161 /^X\(\/\).*/{
15162 s//\1/
15163 q
15164 }
15165 s/.*/./; q'`/stamp-h$_am_stamp_count
15166 ;;
15167
15168 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15169$as_echo "$as_me: executing $ac_file commands" >&6;}
15170 ;;
15171 esac
15172
15173
15174 case $ac_file$ac_mode in
405a6b1c
MK
15175 "default-1":C)
15176# Only add multilib support code if we just rebuilt the top-level
15177# Makefile.
15178case " $CONFIG_FILES " in
15179 *" Makefile "*)
15180 ac_file=Makefile . ${multi_basedir}/config-ml.in
15181 ;;
15182esac ;;
eff02e4f
ILT
15183 "libtool":C)
15184
15185 # See if we are running on zsh, and set the options which allow our
15186 # commands through without removal of \ escapes.
15187 if test -n "${ZSH_VERSION+set}" ; then
15188 setopt NO_GLOB_SUBST
15189 fi
15190
15191 cfgfile="${ofile}T"
15192 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15193 $RM "$cfgfile"
15194
15195 cat <<_LT_EOF >> "$cfgfile"
15196#! $SHELL
15197
15198# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15199# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15200# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15201# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15202#
15203# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15204# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15205# Written by Gordon Matzigkeit, 1996
15206#
15207# This file is part of GNU Libtool.
15208#
15209# GNU Libtool is free software; you can redistribute it and/or
15210# modify it under the terms of the GNU General Public License as
15211# published by the Free Software Foundation; either version 2 of
15212# the License, or (at your option) any later version.
15213#
15214# As a special exception to the GNU General Public License,
15215# if you distribute this file as part of a program or library that
15216# is built using GNU Libtool, you may include this file under the
15217# same distribution terms that you use for the rest of that program.
15218#
15219# GNU Libtool is distributed in the hope that it will be useful,
15220# but WITHOUT ANY WARRANTY; without even the implied warranty of
15221# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15222# GNU General Public License for more details.
15223#
15224# You should have received a copy of the GNU General Public License
15225# along with GNU Libtool; see the file COPYING. If not, a copy
15226# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15227# obtained by writing to the Free Software Foundation, Inc.,
15228# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15229
15230
15231# The names of the tagged configurations supported by this script.
15232available_tags=""
15233
15234# ### BEGIN LIBTOOL CONFIG
15235
15236# Which release of libtool.m4 was used?
15237macro_version=$macro_version
15238macro_revision=$macro_revision
15239
15240# Whether or not to build shared libraries.
15241build_libtool_libs=$enable_shared
15242
15243# Whether or not to build static libraries.
15244build_old_libs=$enable_static
15245
15246# What type of objects to build.
15247pic_mode=$pic_mode
15248
15249# Whether or not to optimize for fast installation.
15250fast_install=$enable_fast_install
15251
15252# Shell to use when invoking shell scripts.
15253SHELL=$lt_SHELL
15254
15255# An echo program that protects backslashes.
15256ECHO=$lt_ECHO
15257
15258# The host system.
15259host_alias=$host_alias
15260host=$host
15261host_os=$host_os
15262
15263# The build system.
15264build_alias=$build_alias
15265build=$build
15266build_os=$build_os
15267
15268# A sed program that does not truncate output.
15269SED=$lt_SED
15270
15271# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15272Xsed="\$SED -e 1s/^X//"
15273
15274# A grep program that handles long lines.
15275GREP=$lt_GREP
15276
15277# An ERE matcher.
15278EGREP=$lt_EGREP
15279
15280# A literal string matcher.
15281FGREP=$lt_FGREP
15282
15283# A BSD- or MS-compatible name lister.
15284NM=$lt_NM
15285
15286# Whether we need soft or hard links.
15287LN_S=$lt_LN_S
15288
15289# What is the maximum length of a command?
15290max_cmd_len=$max_cmd_len
15291
15292# Object file suffix (normally "o").
15293objext=$ac_objext
15294
15295# Executable file suffix (normally "").
15296exeext=$exeext
15297
15298# whether the shell understands "unset".
15299lt_unset=$lt_unset
15300
15301# turn spaces into newlines.
15302SP2NL=$lt_lt_SP2NL
15303
15304# turn newlines into spaces.
15305NL2SP=$lt_lt_NL2SP
15306
15307# An object symbol dumper.
15308OBJDUMP=$lt_OBJDUMP
15309
15310# Method to check whether dependent libraries are shared objects.
15311deplibs_check_method=$lt_deplibs_check_method
15312
15313# Command to use when deplibs_check_method == "file_magic".
15314file_magic_cmd=$lt_file_magic_cmd
15315
15316# The archiver.
15317AR=$lt_AR
15318AR_FLAGS=$lt_AR_FLAGS
15319
15320# A symbol stripping program.
15321STRIP=$lt_STRIP
15322
15323# Commands used to install an old-style archive.
15324RANLIB=$lt_RANLIB
15325old_postinstall_cmds=$lt_old_postinstall_cmds
15326old_postuninstall_cmds=$lt_old_postuninstall_cmds
15327
15328# Whether to use a lock for old archive extraction.
15329lock_old_archive_extraction=$lock_old_archive_extraction
15330
15331# A C compiler.
15332LTCC=$lt_CC
15333
15334# LTCC compiler flags.
15335LTCFLAGS=$lt_CFLAGS
15336
15337# Take the output of nm and produce a listing of raw symbols and C names.
15338global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15339
15340# Transform the output of nm in a proper C declaration.
15341global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15342
15343# Transform the output of nm in a C name address pair.
15344global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15345
15346# Transform the output of nm in a C name address pair when lib prefix is needed.
15347global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15348
15349# The name of the directory that contains temporary libtool files.
15350objdir=$objdir
15351
15352# Used to examine libraries when file_magic_cmd begins with "file".
15353MAGIC_CMD=$MAGIC_CMD
15354
15355# Must we lock files when doing compilation?
15356need_locks=$lt_need_locks
15357
15358# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15359DSYMUTIL=$lt_DSYMUTIL
15360
15361# Tool to change global to local symbols on Mac OS X.
15362NMEDIT=$lt_NMEDIT
15363
15364# Tool to manipulate fat objects and archives on Mac OS X.
15365LIPO=$lt_LIPO
15366
15367# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15368OTOOL=$lt_OTOOL
15369
15370# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15371OTOOL64=$lt_OTOOL64
15372
15373# Old archive suffix (normally "a").
15374libext=$libext
15375
15376# Shared library suffix (normally ".so").
15377shrext_cmds=$lt_shrext_cmds
15378
15379# The commands to extract the exported symbol list from a shared archive.
15380extract_expsyms_cmds=$lt_extract_expsyms_cmds
15381
15382# Variables whose values should be saved in libtool wrapper scripts and
15383# restored at link time.
15384variables_saved_for_relink=$lt_variables_saved_for_relink
15385
15386# Do we need the "lib" prefix for modules?
15387need_lib_prefix=$need_lib_prefix
15388
15389# Do we need a version for libraries?
15390need_version=$need_version
15391
15392# Library versioning type.
15393version_type=$version_type
15394
15395# Shared library runtime path variable.
15396runpath_var=$runpath_var
15397
15398# Shared library path variable.
15399shlibpath_var=$shlibpath_var
15400
15401# Is shlibpath searched before the hard-coded library search path?
15402shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15403
15404# Format of library name prefix.
15405libname_spec=$lt_libname_spec
15406
15407# List of archive names. First name is the real one, the rest are links.
15408# The last name is the one that the linker finds with -lNAME
15409library_names_spec=$lt_library_names_spec
15410
15411# The coded name of the library, if different from the real name.
15412soname_spec=$lt_soname_spec
15413
15414# Permission mode override for installation of shared libraries.
15415install_override_mode=$lt_install_override_mode
15416
15417# Command to use after installation of a shared archive.
15418postinstall_cmds=$lt_postinstall_cmds
15419
15420# Command to use after uninstallation of a shared archive.
15421postuninstall_cmds=$lt_postuninstall_cmds
15422
15423# Commands used to finish a libtool library installation in a directory.
15424finish_cmds=$lt_finish_cmds
15425
15426# As "finish_cmds", except a single script fragment to be evaled but
15427# not shown.
15428finish_eval=$lt_finish_eval
15429
15430# Whether we should hardcode library paths into libraries.
15431hardcode_into_libs=$hardcode_into_libs
15432
15433# Compile-time system search path for libraries.
15434sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15435
15436# Run-time system search path for libraries.
15437sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15438
15439# Whether dlopen is supported.
15440dlopen_support=$enable_dlopen
15441
15442# Whether dlopen of programs is supported.
15443dlopen_self=$enable_dlopen_self
15444
15445# Whether dlopen of statically linked programs is supported.
15446dlopen_self_static=$enable_dlopen_self_static
15447
15448# Commands to strip libraries.
15449old_striplib=$lt_old_striplib
15450striplib=$lt_striplib
15451
15452
15453# The linker used to build libraries.
15454LD=$lt_LD
15455
15456# How to create reloadable object files.
15457reload_flag=$lt_reload_flag
15458reload_cmds=$lt_reload_cmds
15459
15460# Commands used to build an old-style archive.
15461old_archive_cmds=$lt_old_archive_cmds
15462
15463# A language specific compiler.
15464CC=$lt_compiler
15465
15466# Is the compiler the GNU compiler?
15467with_gcc=$GCC
15468
15469# Compiler flag to turn off builtin functions.
15470no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15471
15472# How to pass a linker flag through the compiler.
15473wl=$lt_lt_prog_compiler_wl
15474
15475# Additional compiler flags for building library objects.
15476pic_flag=$lt_lt_prog_compiler_pic
15477
15478# Compiler flag to prevent dynamic linking.
15479link_static_flag=$lt_lt_prog_compiler_static
15480
15481# Does compiler simultaneously support -c and -o options?
15482compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15483
15484# Whether or not to add -lc for building shared libraries.
15485build_libtool_need_lc=$archive_cmds_need_lc
15486
15487# Whether or not to disallow shared libs when runtime libs are static.
15488allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15489
15490# Compiler flag to allow reflexive dlopens.
15491export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15492
15493# Compiler flag to generate shared objects directly from archives.
15494whole_archive_flag_spec=$lt_whole_archive_flag_spec
15495
15496# Whether the compiler copes with passing no objects directly.
15497compiler_needs_object=$lt_compiler_needs_object
15498
15499# Create an old-style archive from a shared archive.
15500old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15501
15502# Create a temporary old-style archive to link instead of a shared archive.
15503old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15504
15505# Commands used to build a shared archive.
15506archive_cmds=$lt_archive_cmds
15507archive_expsym_cmds=$lt_archive_expsym_cmds
15508
15509# Commands used to build a loadable module if different from building
15510# a shared archive.
15511module_cmds=$lt_module_cmds
15512module_expsym_cmds=$lt_module_expsym_cmds
15513
15514# Whether we are building with GNU ld or not.
15515with_gnu_ld=$lt_with_gnu_ld
15516
15517# Flag that allows shared libraries with undefined symbols to be built.
15518allow_undefined_flag=$lt_allow_undefined_flag
15519
15520# Flag that enforces no undefined symbols.
15521no_undefined_flag=$lt_no_undefined_flag
15522
15523# Flag to hardcode \$libdir into a binary during linking.
15524# This must work even if \$libdir does not exist
15525hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15526
15527# If ld is used when linking, flag to hardcode \$libdir into a binary
15528# during linking. This must work even if \$libdir does not exist.
15529hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15530
15531# Whether we need a single "-rpath" flag with a separated argument.
15532hardcode_libdir_separator=$lt_hardcode_libdir_separator
15533
15534# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15535# DIR into the resulting binary.
15536hardcode_direct=$hardcode_direct
15537
15538# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15539# DIR into the resulting binary and the resulting library dependency is
15540# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15541# library is relocated.
15542hardcode_direct_absolute=$hardcode_direct_absolute
15543
15544# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15545# into the resulting binary.
15546hardcode_minus_L=$hardcode_minus_L
15547
15548# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15549# into the resulting binary.
15550hardcode_shlibpath_var=$hardcode_shlibpath_var
15551
15552# Set to "yes" if building a shared library automatically hardcodes DIR
15553# into the library and all subsequent libraries and executables linked
15554# against it.
15555hardcode_automatic=$hardcode_automatic
15556
15557# Set to yes if linker adds runtime paths of dependent libraries
15558# to runtime path list.
15559inherit_rpath=$inherit_rpath
15560
15561# Whether libtool must link a program against all its dependency libraries.
15562link_all_deplibs=$link_all_deplibs
15563
15564# Fix the shell variable \$srcfile for the compiler.
15565fix_srcfile_path=$lt_fix_srcfile_path
15566
15567# Set to "yes" if exported symbols are required.
15568always_export_symbols=$always_export_symbols
15569
15570# The commands to list exported symbols.
15571export_symbols_cmds=$lt_export_symbols_cmds
15572
15573# Symbols that should not be listed in the preloaded symbols.
15574exclude_expsyms=$lt_exclude_expsyms
15575
15576# Symbols that must always be exported.
15577include_expsyms=$lt_include_expsyms
15578
15579# Commands necessary for linking programs (against libraries) with templates.
15580prelink_cmds=$lt_prelink_cmds
15581
15582# Specify filename containing input files.
15583file_list_spec=$lt_file_list_spec
15584
15585# How to hardcode a shared library path into an executable.
15586hardcode_action=$hardcode_action
15587
15588# ### END LIBTOOL CONFIG
15589
15590_LT_EOF
15591
15592 case $host_os in
15593 aix3*)
15594 cat <<\_LT_EOF >> "$cfgfile"
15595# AIX sometimes has problems with the GCC collect2 program. For some
15596# reason, if we set the COLLECT_NAMES environment variable, the problems
15597# vanish in a puff of smoke.
15598if test "X${COLLECT_NAMES+set}" != Xset; then
15599 COLLECT_NAMES=
15600 export COLLECT_NAMES
15601fi
15602_LT_EOF
15603 ;;
15604 esac
15605
15606
15607ltmain="$ac_aux_dir/ltmain.sh"
15608
15609
15610 # We use sed instead of cat because bash on DJGPP gets confused if
15611 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15612 # text mode, it properly converts lines to CR/LF. This bash problem
15613 # is reportedly fixed, but why not run on old versions too?
15614 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15615 || (rm -f "$cfgfile"; exit 1)
15616
15617 case $xsi_shell in
15618 yes)
15619 cat << \_LT_EOF >> "$cfgfile"
15620
15621# func_dirname file append nondir_replacement
15622# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15623# otherwise set result to NONDIR_REPLACEMENT.
15624func_dirname ()
15625{
15626 case ${1} in
15627 */*) func_dirname_result="${1%/*}${2}" ;;
15628 * ) func_dirname_result="${3}" ;;
15629 esac
15630}
15631
15632# func_basename file
15633func_basename ()
15634{
15635 func_basename_result="${1##*/}"
15636}
15637
15638# func_dirname_and_basename file append nondir_replacement
15639# perform func_basename and func_dirname in a single function
15640# call:
15641# dirname: Compute the dirname of FILE. If nonempty,
15642# add APPEND to the result, otherwise set result
15643# to NONDIR_REPLACEMENT.
15644# value returned in "$func_dirname_result"
15645# basename: Compute filename of FILE.
15646# value retuned in "$func_basename_result"
15647# Implementation must be kept synchronized with func_dirname
15648# and func_basename. For efficiency, we do not delegate to
15649# those functions but instead duplicate the functionality here.
15650func_dirname_and_basename ()
15651{
15652 case ${1} in
15653 */*) func_dirname_result="${1%/*}${2}" ;;
15654 * ) func_dirname_result="${3}" ;;
15655 esac
15656 func_basename_result="${1##*/}"
15657}
15658
15659# func_stripname prefix suffix name
15660# strip PREFIX and SUFFIX off of NAME.
15661# PREFIX and SUFFIX must not contain globbing or regex special
15662# characters, hashes, percent signs, but SUFFIX may contain a leading
15663# dot (in which case that matches only a dot).
15664func_stripname ()
15665{
15666 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15667 # positional parameters, so assign one to ordinary parameter first.
15668 func_stripname_result=${3}
15669 func_stripname_result=${func_stripname_result#"${1}"}
15670 func_stripname_result=${func_stripname_result%"${2}"}
15671}
15672
15673# func_opt_split
15674func_opt_split ()
15675{
15676 func_opt_split_opt=${1%%=*}
15677 func_opt_split_arg=${1#*=}
15678}
15679
15680# func_lo2o object
15681func_lo2o ()
15682{
15683 case ${1} in
15684 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15685 *) func_lo2o_result=${1} ;;
15686 esac
15687}
15688
15689# func_xform libobj-or-source
15690func_xform ()
15691{
15692 func_xform_result=${1%.*}.lo
15693}
15694
15695# func_arith arithmetic-term...
15696func_arith ()
15697{
15698 func_arith_result=$(( $* ))
15699}
15700
15701# func_len string
15702# STRING may not start with a hyphen.
15703func_len ()
15704{
15705 func_len_result=${#1}
15706}
15707
15708_LT_EOF
15709 ;;
15710 *) # Bourne compatible functions.
15711 cat << \_LT_EOF >> "$cfgfile"
15712
15713# func_dirname file append nondir_replacement
15714# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15715# otherwise set result to NONDIR_REPLACEMENT.
15716func_dirname ()
15717{
15718 # Extract subdirectory from the argument.
15719 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15720 if test "X$func_dirname_result" = "X${1}"; then
15721 func_dirname_result="${3}"
15722 else
15723 func_dirname_result="$func_dirname_result${2}"
15724 fi
15725}
15726
15727# func_basename file
15728func_basename ()
15729{
15730 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15731}
15732
15733
15734# func_stripname prefix suffix name
15735# strip PREFIX and SUFFIX off of NAME.
15736# PREFIX and SUFFIX must not contain globbing or regex special
15737# characters, hashes, percent signs, but SUFFIX may contain a leading
15738# dot (in which case that matches only a dot).
15739# func_strip_suffix prefix name
15740func_stripname ()
15741{
15742 case ${2} in
15743 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15744 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15745 esac
15746}
15747
15748# sed scripts:
15749my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15750my_sed_long_arg='1s/^-[^=]*=//'
15751
15752# func_opt_split
15753func_opt_split ()
15754{
15755 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15756 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15757}
15758
15759# func_lo2o object
15760func_lo2o ()
15761{
15762 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15763}
15764
15765# func_xform libobj-or-source
15766func_xform ()
15767{
15768 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15769}
15770
15771# func_arith arithmetic-term...
15772func_arith ()
15773{
15774 func_arith_result=`expr "$@"`
15775}
15776
15777# func_len string
15778# STRING may not start with a hyphen.
15779func_len ()
15780{
15781 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15782}
15783
15784_LT_EOF
15785esac
15786
15787case $lt_shell_append in
15788 yes)
15789 cat << \_LT_EOF >> "$cfgfile"
15790
15791# func_append var value
15792# Append VALUE to the end of shell variable VAR.
15793func_append ()
15794{
15795 eval "$1+=\$2"
15796}
15797_LT_EOF
15798 ;;
15799 *)
15800 cat << \_LT_EOF >> "$cfgfile"
15801
15802# func_append var value
15803# Append VALUE to the end of shell variable VAR.
15804func_append ()
15805{
15806 eval "$1=\$$1\$2"
15807}
15808
15809_LT_EOF
15810 ;;
15811 esac
15812
15813
15814 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15815 || (rm -f "$cfgfile"; exit 1)
15816
15817 mv -f "$cfgfile" "$ofile" ||
15818 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15819 chmod +x "$ofile"
15820
15821 ;;
76850556
RO
15822 "gstdint.h":C)
15823if test "$GCC" = yes; then
15824 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
15825else
15826 echo "/* generated for $CC */" > tmp-stdint.h
15827fi
15828
15829sed 's/^ *//' >> tmp-stdint.h <<EOF
15830
15831 #ifndef GCC_GENERATED_STDINT_H
15832 #define GCC_GENERATED_STDINT_H 1
15833
15834 #include <sys/types.h>
15835EOF
15836
15837if test "$acx_cv_header_stdint" != stdint.h; then
15838 echo "#include <stddef.h>" >> tmp-stdint.h
15839fi
15840if test "$acx_cv_header_stdint" != stddef.h; then
15841 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
15842fi
15843
15844sed 's/^ *//' >> tmp-stdint.h <<EOF
15845 /* glibc uses these symbols as guards to prevent redefinitions. */
15846 #ifdef __int8_t_defined
15847 #define _INT8_T
15848 #define _INT16_T
15849 #define _INT32_T
15850 #endif
15851 #ifdef __uint32_t_defined
15852 #define _UINT32_T
15853 #endif
15854
15855EOF
15856
15857# ----------------- done header, emit basic int types -------------
15858if test "$acx_cv_header_stdint" = stddef.h; then
15859 sed 's/^ *//' >> tmp-stdint.h <<EOF
15860
15861 #ifndef _UINT8_T
15862 #define _UINT8_T
15863 #ifndef __uint8_t_defined
15864 #define __uint8_t_defined
15865 #ifndef uint8_t
15866 typedef unsigned $acx_cv_type_int8_t uint8_t;
15867 #endif
15868 #endif
15869 #endif
15870
15871 #ifndef _UINT16_T
15872 #define _UINT16_T
15873 #ifndef __uint16_t_defined
15874 #define __uint16_t_defined
15875 #ifndef uint16_t
15876 typedef unsigned $acx_cv_type_int16_t uint16_t;
15877 #endif
15878 #endif
15879 #endif
15880
15881 #ifndef _UINT32_T
15882 #define _UINT32_T
15883 #ifndef __uint32_t_defined
15884 #define __uint32_t_defined
15885 #ifndef uint32_t
15886 typedef unsigned $acx_cv_type_int32_t uint32_t;
15887 #endif
15888 #endif
15889 #endif
15890
15891 #ifndef _INT8_T
15892 #define _INT8_T
15893 #ifndef __int8_t_defined
15894 #define __int8_t_defined
15895 #ifndef int8_t
15896 typedef $acx_cv_type_int8_t int8_t;
15897 #endif
15898 #endif
15899 #endif
15900
15901 #ifndef _INT16_T
15902 #define _INT16_T
15903 #ifndef __int16_t_defined
15904 #define __int16_t_defined
15905 #ifndef int16_t
15906 typedef $acx_cv_type_int16_t int16_t;
15907 #endif
15908 #endif
15909 #endif
15910
15911 #ifndef _INT32_T
15912 #define _INT32_T
15913 #ifndef __int32_t_defined
15914 #define __int32_t_defined
15915 #ifndef int32_t
15916 typedef $acx_cv_type_int32_t int32_t;
15917 #endif
15918 #endif
15919 #endif
15920EOF
15921elif test "$ac_cv_type_u_int32_t" = yes; then
15922 sed 's/^ *//' >> tmp-stdint.h <<EOF
15923
15924 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
15925 #ifndef _INT8_T
15926 #define _INT8_T
15927 #endif
15928 #ifndef _INT16_T
15929 #define _INT16_T
15930 #endif
15931 #ifndef _INT32_T
15932 #define _INT32_T
15933 #endif
15934
15935 #ifndef _UINT8_T
15936 #define _UINT8_T
15937 #ifndef __uint8_t_defined
15938 #define __uint8_t_defined
15939 #ifndef uint8_t
15940 typedef u_int8_t uint8_t;
15941 #endif
15942 #endif
15943 #endif
15944
15945 #ifndef _UINT16_T
15946 #define _UINT16_T
15947 #ifndef __uint16_t_defined
15948 #define __uint16_t_defined
15949 #ifndef uint16_t
15950 typedef u_int16_t uint16_t;
15951 #endif
15952 #endif
15953 #endif
15954
15955 #ifndef _UINT32_T
15956 #define _UINT32_T
15957 #ifndef __uint32_t_defined
15958 #define __uint32_t_defined
15959 #ifndef uint32_t
15960 typedef u_int32_t uint32_t;
15961 #endif
15962 #endif
15963 #endif
15964EOF
15965else
15966 sed 's/^ *//' >> tmp-stdint.h <<EOF
15967
15968 /* Some systems have guard macros to prevent redefinitions, define them. */
15969 #ifndef _INT8_T
15970 #define _INT8_T
15971 #endif
15972 #ifndef _INT16_T
15973 #define _INT16_T
15974 #endif
15975 #ifndef _INT32_T
15976 #define _INT32_T
15977 #endif
15978 #ifndef _UINT8_T
15979 #define _UINT8_T
15980 #endif
15981 #ifndef _UINT16_T
15982 #define _UINT16_T
15983 #endif
15984 #ifndef _UINT32_T
15985 #define _UINT32_T
15986 #endif
15987EOF
15988fi
15989
15990# ------------- done basic int types, emit int64_t types ------------
15991if test "$ac_cv_type_uint64_t" = yes; then
15992 sed 's/^ *//' >> tmp-stdint.h <<EOF
15993
15994 /* system headers have good uint64_t and int64_t */
15995 #ifndef _INT64_T
15996 #define _INT64_T
15997 #endif
15998 #ifndef _UINT64_T
15999 #define _UINT64_T
16000 #endif
16001EOF
16002elif test "$ac_cv_type_u_int64_t" = yes; then
16003 sed 's/^ *//' >> tmp-stdint.h <<EOF
16004
16005 /* system headers have an u_int64_t (and int64_t) */
16006 #ifndef _INT64_T
16007 #define _INT64_T
16008 #endif
16009 #ifndef _UINT64_T
16010 #define _UINT64_T
16011 #ifndef __uint64_t_defined
16012 #define __uint64_t_defined
16013 #ifndef uint64_t
16014 typedef u_int64_t uint64_t;
16015 #endif
16016 #endif
16017 #endif
16018EOF
16019elif test -n "$acx_cv_type_int64_t"; then
16020 sed 's/^ *//' >> tmp-stdint.h <<EOF
16021
16022 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
16023 #ifndef _INT64_T
16024 #define _INT64_T
16025 #ifndef int64_t
16026 typedef $acx_cv_type_int64_t int64_t;
16027 #endif
16028 #endif
16029 #ifndef _UINT64_T
16030 #define _UINT64_T
16031 #ifndef __uint64_t_defined
16032 #define __uint64_t_defined
16033 #ifndef uint64_t
16034 typedef unsigned $acx_cv_type_int64_t uint64_t;
16035 #endif
16036 #endif
16037 #endif
16038EOF
16039else
16040 sed 's/^ *//' >> tmp-stdint.h <<EOF
16041
16042 /* some common heuristics for int64_t, using compiler-specific tests */
16043 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
16044 #ifndef _INT64_T
16045 #define _INT64_T
16046 #ifndef __int64_t_defined
16047 #ifndef int64_t
16048 typedef long long int64_t;
16049 #endif
16050 #endif
16051 #endif
16052 #ifndef _UINT64_T
16053 #define _UINT64_T
16054 #ifndef uint64_t
16055 typedef unsigned long long uint64_t;
16056 #endif
16057 #endif
16058
16059 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
16060 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
16061 does not implement __extension__. But that compiler doesn't define
16062 __GNUC_MINOR__. */
16063 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
16064 # define __extension__
16065 # endif
16066
16067 # ifndef _INT64_T
16068 # define _INT64_T
16069 # ifndef int64_t
16070 __extension__ typedef long long int64_t;
16071 # endif
16072 # endif
16073 # ifndef _UINT64_T
16074 # define _UINT64_T
16075 # ifndef uint64_t
16076 __extension__ typedef unsigned long long uint64_t;
16077 # endif
16078 # endif
16079
16080 #elif !defined __STRICT_ANSI__
16081 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
16082
16083 # ifndef _INT64_T
16084 # define _INT64_T
16085 # ifndef int64_t
16086 typedef __int64 int64_t;
16087 # endif
16088 # endif
16089 # ifndef _UINT64_T
16090 # define _UINT64_T
16091 # ifndef uint64_t
16092 typedef unsigned __int64 uint64_t;
16093 # endif
16094 # endif
16095 # endif /* compiler */
16096
16097 #endif /* ANSI version */
16098EOF
16099fi
16100
16101# ------------- done int64_t types, emit intptr types ------------
16102if test "$ac_cv_type_uintptr_t" != yes; then
16103 sed 's/^ *//' >> tmp-stdint.h <<EOF
16104
16105 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
16106 #ifndef __uintptr_t_defined
16107 #ifndef uintptr_t
16108 typedef u$acx_cv_type_intptr_t uintptr_t;
16109 #endif
16110 #endif
16111 #ifndef __intptr_t_defined
16112 #ifndef intptr_t
16113 typedef $acx_cv_type_intptr_t intptr_t;
16114 #endif
16115 #endif
16116EOF
16117fi
16118
16119# ------------- done intptr types, emit int_least types ------------
16120if test "$ac_cv_type_int_least32_t" != yes; then
16121 sed 's/^ *//' >> tmp-stdint.h <<EOF
16122
16123 /* Define int_least types */
16124 typedef int8_t int_least8_t;
16125 typedef int16_t int_least16_t;
16126 typedef int32_t int_least32_t;
16127 #ifdef _INT64_T
16128 typedef int64_t int_least64_t;
16129 #endif
16130
16131 typedef uint8_t uint_least8_t;
16132 typedef uint16_t uint_least16_t;
16133 typedef uint32_t uint_least32_t;
16134 #ifdef _UINT64_T
16135 typedef uint64_t uint_least64_t;
16136 #endif
16137EOF
16138fi
16139
16140# ------------- done intptr types, emit int_fast types ------------
16141if test "$ac_cv_type_int_fast32_t" != yes; then
16142 sed 's/^ *//' >> tmp-stdint.h <<EOF
16143
16144 /* Define int_fast types. short is often slow */
16145 typedef int8_t int_fast8_t;
16146 typedef int int_fast16_t;
16147 typedef int32_t int_fast32_t;
16148 #ifdef _INT64_T
16149 typedef int64_t int_fast64_t;
16150 #endif
16151
16152 typedef uint8_t uint_fast8_t;
16153 typedef unsigned int uint_fast16_t;
16154 typedef uint32_t uint_fast32_t;
16155 #ifdef _UINT64_T
16156 typedef uint64_t uint_fast64_t;
16157 #endif
16158EOF
16159fi
16160
16161if test "$ac_cv_type_uintmax_t" != yes; then
16162 sed 's/^ *//' >> tmp-stdint.h <<EOF
16163
16164 /* Define intmax based on what we found */
16165 #ifndef intmax_t
16166 #ifdef _INT64_T
16167 typedef int64_t intmax_t;
16168 #else
16169 typedef long intmax_t;
16170 #endif
16171 #endif
16172 #ifndef uintmax_t
16173 #ifdef _UINT64_T
16174 typedef uint64_t uintmax_t;
16175 #else
16176 typedef unsigned long uintmax_t;
16177 #endif
16178 #endif
16179EOF
16180fi
16181
16182sed 's/^ *//' >> tmp-stdint.h <<EOF
16183
16184 #endif /* GCC_GENERATED_STDINT_H */
16185EOF
16186
16187if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
16188 rm -f tmp-stdint.h
16189else
16190 mv -f tmp-stdint.h gstdint.h
16191fi
16192
16193 ;;
fddbc193 16194 "install-debuginfo-for-buildid.sh":F) chmod +x install-debuginfo-for-buildid.sh ;;
eff02e4f
ILT
16195 "default":C) if test -n "$CONFIG_FILES"; then
16196 if test -n "${with_target_subdir}"; then
16197 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16198 # that multilib installs will end up installed in the correct place.
16199 # The testsuite needs it for multilib-aware ABI baseline files.
16200 # To work around this not being passed down from config-ml.in ->
16201 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16202 # append it here. Only modify Makefiles that have just been created.
16203 #
16204 # Also, get rid of this simulated-VPATH thing that automake does.
16205 cat > vpsed << \_EOF
16206 s!`test -f '$<' || echo '$(srcdir)/'`!!
16207_EOF
16208 for i in $SUBDIRS; do
16209 case $CONFIG_FILES in
16210 *${i}/Makefile*)
16211 #echo "Adding MULTISUBDIR to $i/Makefile"
16212 sed -f vpsed $i/Makefile > tmp
16213 grep '^MULTISUBDIR =' Makefile >> tmp
16214 mv tmp $i/Makefile
16215 ;;
16216 esac
16217 done
16218 rm vpsed
16219 fi
16220 fi
16221 ;;
16222
16223 esac
16224done # for ac_tag
16225
16226
16227as_fn_exit 0
16228_ACEOF
16229ac_clean_files=$ac_clean_files_save
16230
16231test $ac_write_fail = 0 ||
22e05272 16232 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
eff02e4f
ILT
16233
16234
16235# configure is writing to config.log, and then calls config.status.
16236# config.status does its own redirection, appending to config.log.
16237# Unfortunately, on DOS this fails, as config.log is still kept open
16238# by configure, so config.status won't be able to write to it; its
16239# output is simply discarded. So we exec the FD to /dev/null,
16240# effectively closing config.log, so it can be properly (re)opened and
16241# appended to by config.status. When coming back to configure, we
16242# need to make the FD available again.
16243if test "$no_create" != yes; then
16244 ac_cs_success=:
16245 ac_config_status_args=
16246 test "$silent" = yes &&
16247 ac_config_status_args="$ac_config_status_args --quiet"
16248 exec 5>/dev/null
16249 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16250 exec 5>>config.log
16251 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16252 # would make configure fail if this is the last instruction.
22e05272 16253 $ac_cs_success || as_fn_exit 1
eff02e4f
ILT
16254fi
16255if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16257$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16258fi
16259