]> git.ipfire.org Git - thirdparty/gcc.git/blame - libbacktrace/configure
Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856).
[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
640OBJCOPY
8da872d9
ILT
641HAVE_COMPRESSED_DEBUG_FALSE
642HAVE_COMPRESSED_DEBUG_TRUE
643HAVE_ZLIB_FALSE
644HAVE_ZLIB_TRUE
d1609a23
ILT
645HAVE_PTHREAD_FALSE
646HAVE_PTHREAD_TRUE
647PTHREAD_CFLAGS
8398c1df 648CLOCK_GETTIME_LINK
eff02e4f
ILT
649BACKTRACE_USES_MALLOC
650ALLOC_FILE
651VIEW_FILE
e24afc10 652BACKTRACE_SUPPORTS_DATA
eff02e4f
ILT
653BACKTRACE_SUPPORTED
654FORMAT_FILE
655BACKTRACE_SUPPORTS_THREADS
656PIC_FLAG
657WARN_FLAGS
56195009 658EXTRA_FLAGS
eff02e4f 659BACKTRACE_FILE
eff02e4f
ILT
660OTOOL64
661OTOOL
662LIPO
663NMEDIT
664DSYMUTIL
665AR
666OBJDUMP
667LN_S
668NM
669ac_ct_DUMPBIN
670DUMPBIN
671LD
672FGREP
eff02e4f
ILT
673SED
674LIBTOOL
675RANLIB
d4c059d5
ILT
676MAINT
677MAINTAINER_MODE_FALSE
678MAINTAINER_MODE_TRUE
22e05272
JM
679AM_BACKSLASH
680AM_DEFAULT_VERBOSITY
681AM_DEFAULT_V
682AM_V
eff02e4f
ILT
683am__untar
684am__tar
685AMTAR
686am__leading_dot
687SET_MAKE
688AWK
689mkdir_p
690MKDIR_P
691INSTALL_STRIP_PROGRAM
692STRIP
693install_sh
694MAKEINFO
695AUTOHEADER
696AUTOMAKE
697AUTOCONF
698ACLOCAL
699VERSION
700PACKAGE
701CYGPATH_W
702am__isrc
703INSTALL_DATA
704INSTALL_SCRIPT
705INSTALL_PROGRAM
706libtool_VERSION
d4c059d5
ILT
707EGREP
708GREP
709CPP
710OBJEXT
711EXEEXT
712ac_ct_CC
713CPPFLAGS
714LDFLAGS
715CFLAGS
716CC
eff02e4f
ILT
717target_os
718target_vendor
719target_cpu
720target
721host_os
722host_vendor
723host_cpu
724host
725build_os
726build_vendor
727build_cpu
728build
405a6b1c 729multi_basedir
eff02e4f
ILT
730target_alias
731host_alias
732build_alias
733LIBS
734ECHO_T
735ECHO_N
736ECHO_C
737DEFS
738mandir
739localedir
740libdir
741psdir
742pdfdir
743dvidir
744htmldir
745infodir
746docdir
747oldincludedir
748includedir
749localstatedir
750sharedstatedir
751sysconfdir
752datadir
753datarootdir
754libexecdir
755sbindir
756bindir
757program_transform_name
758prefix
759exec_prefix
760PACKAGE_URL
761PACKAGE_BUGREPORT
762PACKAGE_STRING
763PACKAGE_VERSION
764PACKAGE_TARNAME
765PACKAGE_NAME
766PATH_SEPARATOR
767SHELL'
768ac_subst_files=''
769ac_user_opts='
770enable_option_checking
405a6b1c 771enable_multilib
22e05272 772enable_silent_rules
eff02e4f
ILT
773enable_maintainer_mode
774with_target_subdir
eff02e4f
ILT
775enable_shared
776enable_static
777with_pic
778enable_fast_install
779with_gnu_ld
780enable_libtool_lock
e91a2ddc 781enable_largefile
44685d37 782enable_cet
eff02e4f 783with_system_libunwind
459260ec 784enable_host_shared
eff02e4f
ILT
785'
786 ac_precious_vars='build_alias
787host_alias
788target_alias
d4c059d5
ILT
789CC
790CFLAGS
791LDFLAGS
792LIBS
793CPPFLAGS
9283471b
ILT
794CPP
795OBJCOPY'
eff02e4f
ILT
796
797
798# Initialize some variables set by options.
799ac_init_help=
800ac_init_version=false
801ac_unrecognized_opts=
802ac_unrecognized_sep=
803# The variables have the same names as the options, with
804# dashes changed to underlines.
805cache_file=/dev/null
806exec_prefix=NONE
807no_create=
808no_recursion=
809prefix=NONE
810program_prefix=NONE
811program_suffix=NONE
812program_transform_name=s,x,x,
813silent=
814site=
815srcdir=
816verbose=
817x_includes=NONE
818x_libraries=NONE
819
820# Installation directory options.
821# These are left unexpanded so users can "make install exec_prefix=/foo"
822# and all the variables that are supposed to be based on exec_prefix
823# by default will actually change.
824# Use braces instead of parens because sh, perl, etc. also accept them.
825# (The list follows the same order as the GNU Coding Standards.)
826bindir='${exec_prefix}/bin'
827sbindir='${exec_prefix}/sbin'
828libexecdir='${exec_prefix}/libexec'
829datarootdir='${prefix}/share'
830datadir='${datarootdir}'
831sysconfdir='${prefix}/etc'
832sharedstatedir='${prefix}/com'
833localstatedir='${prefix}/var'
834includedir='${prefix}/include'
835oldincludedir='/usr/include'
836docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837infodir='${datarootdir}/info'
838htmldir='${docdir}'
839dvidir='${docdir}'
840pdfdir='${docdir}'
841psdir='${docdir}'
842libdir='${exec_prefix}/lib'
843localedir='${datarootdir}/locale'
844mandir='${datarootdir}/man'
845
846ac_prev=
847ac_dashdash=
848for ac_option
849do
850 # If the previous option needs an argument, assign it.
851 if test -n "$ac_prev"; then
852 eval $ac_prev=\$ac_option
853 ac_prev=
854 continue
855 fi
856
857 case $ac_option in
22e05272
JM
858 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859 *=) ac_optarg= ;;
860 *) ac_optarg=yes ;;
eff02e4f
ILT
861 esac
862
863 # Accept the important Cygnus configure options, so we can diagnose typos.
864
865 case $ac_dashdash$ac_option in
866 --)
867 ac_dashdash=yes ;;
868
869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
870 ac_prev=bindir ;;
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872 bindir=$ac_optarg ;;
873
874 -build | --build | --buil | --bui | --bu)
875 ac_prev=build_alias ;;
876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877 build_alias=$ac_optarg ;;
878
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884 cache_file=$ac_optarg ;;
885
886 --config-cache | -C)
887 cache_file=config.cache ;;
888
889 -datadir | --datadir | --datadi | --datad)
890 ac_prev=datadir ;;
891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
892 datadir=$ac_optarg ;;
893
894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
900
901 -disable-* | --disable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 905 as_fn_error $? "invalid feature name: $ac_useropt"
eff02e4f
ILT
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910"enable_$ac_useropt"
911"*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=no ;;
916
917 -docdir | --docdir | --docdi | --doc | --do)
918 ac_prev=docdir ;;
919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920 docdir=$ac_optarg ;;
921
922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923 ac_prev=dvidir ;;
924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925 dvidir=$ac_optarg ;;
926
927 -enable-* | --enable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 931 as_fn_error $? "invalid feature name: $ac_useropt"
eff02e4f
ILT
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936"enable_$ac_useropt"
937"*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=\$ac_optarg ;;
942
943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945 | --exec | --exe | --ex)
946 ac_prev=exec_prefix ;;
947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949 | --exec=* | --exe=* | --ex=*)
950 exec_prefix=$ac_optarg ;;
951
952 -gas | --gas | --ga | --g)
953 # Obsolete; use --with-gas.
954 with_gas=yes ;;
955
956 -help | --help | --hel | --he | -h)
957 ac_init_help=long ;;
958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959 ac_init_help=recursive ;;
960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961 ac_init_help=short ;;
962
963 -host | --host | --hos | --ho)
964 ac_prev=host_alias ;;
965 -host=* | --host=* | --hos=* | --ho=*)
966 host_alias=$ac_optarg ;;
967
968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969 ac_prev=htmldir ;;
970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971 | --ht=*)
972 htmldir=$ac_optarg ;;
973
974 -includedir | --includedir | --includedi | --included | --include \
975 | --includ | --inclu | --incl | --inc)
976 ac_prev=includedir ;;
977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978 | --includ=* | --inclu=* | --incl=* | --inc=*)
979 includedir=$ac_optarg ;;
980
981 -infodir | --infodir | --infodi | --infod | --info | --inf)
982 ac_prev=infodir ;;
983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984 infodir=$ac_optarg ;;
985
986 -libdir | --libdir | --libdi | --libd)
987 ac_prev=libdir ;;
988 -libdir=* | --libdir=* | --libdi=* | --libd=*)
989 libdir=$ac_optarg ;;
990
991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992 | --libexe | --libex | --libe)
993 ac_prev=libexecdir ;;
994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995 | --libexe=* | --libex=* | --libe=*)
996 libexecdir=$ac_optarg ;;
997
998 -localedir | --localedir | --localedi | --localed | --locale)
999 ac_prev=localedir ;;
1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001 localedir=$ac_optarg ;;
1002
1003 -localstatedir | --localstatedir | --localstatedi | --localstated \
1004 | --localstate | --localstat | --localsta | --localst | --locals)
1005 ac_prev=localstatedir ;;
1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008 localstatedir=$ac_optarg ;;
1009
1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011 ac_prev=mandir ;;
1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013 mandir=$ac_optarg ;;
1014
1015 -nfp | --nfp | --nf)
1016 # Obsolete; use --without-fp.
1017 with_fp=no ;;
1018
1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020 | --no-cr | --no-c | -n)
1021 no_create=yes ;;
1022
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025 no_recursion=yes ;;
1026
1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029 | --oldin | --oldi | --old | --ol | --o)
1030 ac_prev=oldincludedir ;;
1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034 oldincludedir=$ac_optarg ;;
1035
1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037 ac_prev=prefix ;;
1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039 prefix=$ac_optarg ;;
1040
1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042 | --program-pre | --program-pr | --program-p)
1043 ac_prev=program_prefix ;;
1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046 program_prefix=$ac_optarg ;;
1047
1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049 | --program-suf | --program-su | --program-s)
1050 ac_prev=program_suffix ;;
1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053 program_suffix=$ac_optarg ;;
1054
1055 -program-transform-name | --program-transform-name \
1056 | --program-transform-nam | --program-transform-na \
1057 | --program-transform-n | --program-transform- \
1058 | --program-transform | --program-transfor \
1059 | --program-transfo | --program-transf \
1060 | --program-trans | --program-tran \
1061 | --progr-tra | --program-tr | --program-t)
1062 ac_prev=program_transform_name ;;
1063 -program-transform-name=* | --program-transform-name=* \
1064 | --program-transform-nam=* | --program-transform-na=* \
1065 | --program-transform-n=* | --program-transform-=* \
1066 | --program-transform=* | --program-transfor=* \
1067 | --program-transfo=* | --program-transf=* \
1068 | --program-trans=* | --program-tran=* \
1069 | --progr-tra=* | --program-tr=* | --program-t=*)
1070 program_transform_name=$ac_optarg ;;
1071
1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073 ac_prev=pdfdir ;;
1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075 pdfdir=$ac_optarg ;;
1076
1077 -psdir | --psdir | --psdi | --psd | --ps)
1078 ac_prev=psdir ;;
1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080 psdir=$ac_optarg ;;
1081
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1084 silent=yes ;;
1085
1086 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087 ac_prev=sbindir ;;
1088 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089 | --sbi=* | --sb=*)
1090 sbindir=$ac_optarg ;;
1091
1092 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094 | --sharedst | --shareds | --shared | --share | --shar \
1095 | --sha | --sh)
1096 ac_prev=sharedstatedir ;;
1097 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100 | --sha=* | --sh=*)
1101 sharedstatedir=$ac_optarg ;;
1102
1103 -site | --site | --sit)
1104 ac_prev=site ;;
1105 -site=* | --site=* | --sit=*)
1106 site=$ac_optarg ;;
1107
1108 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109 ac_prev=srcdir ;;
1110 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111 srcdir=$ac_optarg ;;
1112
1113 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114 | --syscon | --sysco | --sysc | --sys | --sy)
1115 ac_prev=sysconfdir ;;
1116 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118 sysconfdir=$ac_optarg ;;
1119
1120 -target | --target | --targe | --targ | --tar | --ta | --t)
1121 ac_prev=target_alias ;;
1122 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123 target_alias=$ac_optarg ;;
1124
1125 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126 verbose=yes ;;
1127
1128 -version | --version | --versio | --versi | --vers | -V)
1129 ac_init_version=: ;;
1130
1131 -with-* | --with-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1135 as_fn_error $? "invalid package name: $ac_useropt"
eff02e4f
ILT
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140"with_$ac_useropt"
1141"*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=\$ac_optarg ;;
1146
1147 -without-* | --without-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1151 as_fn_error $? "invalid package name: $ac_useropt"
eff02e4f
ILT
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156"with_$ac_useropt"
1157"*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=no ;;
1162
1163 --x)
1164 # Obsolete; use --with-x.
1165 with_x=yes ;;
1166
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1173
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1180
22e05272
JM
1181 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1182Try \`$0 --help' for more information"
eff02e4f
ILT
1183 ;;
1184
1185 *=*)
1186 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187 # Reject names that are not valid shell variable names.
1188 case $ac_envvar in #(
1189 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1190 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
eff02e4f
ILT
1191 esac
1192 eval $ac_envvar=\$ac_optarg
1193 export $ac_envvar ;;
1194
1195 *)
1196 # FIXME: should be removed in autoconf 3.0.
1197 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1200 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
eff02e4f
ILT
1201 ;;
1202
1203 esac
1204done
1205
1206if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1208 as_fn_error $? "missing argument to $ac_option"
eff02e4f
ILT
1209fi
1210
1211if test -n "$ac_unrecognized_opts"; then
1212 case $enable_option_checking in
1213 no) ;;
22e05272 1214 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
eff02e4f
ILT
1215 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216 esac
1217fi
1218
1219# Check all directory arguments for consistency.
1220for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir
1224do
1225 eval ac_val=\$$ac_var
1226 # Remove trailing slashes.
1227 case $ac_val in
1228 */ )
1229 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1230 eval $ac_var=\$ac_val;;
1231 esac
1232 # Be sure to have absolute directory names.
1233 case $ac_val in
1234 [\\/$]* | ?:[\\/]* ) continue;;
1235 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1236 esac
22e05272 1237 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
eff02e4f
ILT
1238done
1239
1240# There might be people who depend on the old broken behavior: `$host'
1241# used to hold the argument of --host etc.
1242# FIXME: To remove some day.
1243build=$build_alias
1244host=$host_alias
1245target=$target_alias
1246
1247# FIXME: To remove some day.
1248if test "x$host_alias" != x; then
1249 if test "x$build_alias" = x; then
1250 cross_compiling=maybe
eff02e4f
ILT
1251 elif test "x$build_alias" != "x$host_alias"; then
1252 cross_compiling=yes
1253 fi
1254fi
1255
1256ac_tool_prefix=
1257test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258
1259test "$silent" = yes && exec 6>/dev/null
1260
1261
1262ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263ac_ls_di=`ls -di .` &&
1264ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1265 as_fn_error $? "working directory cannot be determined"
eff02e4f 1266test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1267 as_fn_error $? "pwd does not report name of working directory"
eff02e4f
ILT
1268
1269
1270# Find the source files, if location was not specified.
1271if test -z "$srcdir"; then
1272 ac_srcdir_defaulted=yes
1273 # Try the directory containing this script, then the parent directory.
1274 ac_confdir=`$as_dirname -- "$as_myself" ||
1275$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276 X"$as_myself" : 'X\(//\)[^/]' \| \
1277 X"$as_myself" : 'X\(//\)$' \| \
1278 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279$as_echo X"$as_myself" |
1280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)[^/].*/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)$/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\).*/{
1293 s//\1/
1294 q
1295 }
1296 s/.*/./; q'`
1297 srcdir=$ac_confdir
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 srcdir=..
1300 fi
1301else
1302 ac_srcdir_defaulted=no
1303fi
1304if test ! -r "$srcdir/$ac_unique_file"; then
1305 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1306 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
eff02e4f
ILT
1307fi
1308ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309ac_abs_confdir=`(
22e05272 1310 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
eff02e4f
ILT
1311 pwd)`
1312# When building in place, set srcdir=.
1313if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 srcdir=.
1315fi
1316# Remove unnecessary trailing slashes from srcdir.
1317# Double slashes in file names in object file debugging info
1318# mess up M-x gdb in Emacs.
1319case $srcdir in
1320*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321esac
1322for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327done
1328
1329#
1330# Report the --help message.
1331#
1332if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1335 cat <<_ACEOF
1336\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1337
1338Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341VAR=VALUE. See below for descriptions of some of the useful variables.
1342
1343Defaults for the options are specified in brackets.
1344
1345Configuration:
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
22e05272 1350 -q, --quiet, --silent do not print \`checking ...' messages
eff02e4f
ILT
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355
1356Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 [$ac_default_prefix]
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 [PREFIX]
1361
1362By default, \`make install' will install all the files in
1363\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365for instance \`--prefix=\$HOME'.
1366
1367For better control, use the options below.
1368
1369Fine tuning of the installation directories:
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
1389_ACEOF
1390
1391 cat <<\_ACEOF
1392
1393Program names:
1394 --program-prefix=PREFIX prepend PREFIX to installed program names
1395 --program-suffix=SUFFIX append SUFFIX to installed program names
1396 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1397
1398System types:
1399 --build=BUILD configure for building on BUILD [guessed]
1400 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1401 --target=TARGET configure for building compilers for TARGET [HOST]
1402_ACEOF
1403fi
1404
1405if test -n "$ac_init_help"; then
1406 case $ac_init_help in
1407 short | recursive ) echo "Configuration of package-unused version-unused:";;
1408 esac
1409 cat <<\_ACEOF
1410
1411Optional Features:
1412 --disable-option-checking ignore unrecognized --enable/--with options
1413 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1414 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
405a6b1c 1415 --enable-multilib build many library versions (default)
22e05272
JM
1416 --enable-silent-rules less verbose build output (undo: "make V=1")
1417 --disable-silent-rules verbose build output (undo: "make V=0")
1418 --enable-maintainer-mode
1419 enable make rules and dependencies not useful (and
1420 sometimes confusing) to the casual installer
7e5c7547 1421 --enable-shared[=PKGS] build shared libraries [default=yes]
eff02e4f
ILT
1422 --enable-static[=PKGS] build static libraries [default=yes]
1423 --enable-fast-install[=PKGS]
1424 optimize for fast installation [default=yes]
1425 --disable-libtool-lock avoid locking (might break parallel builds)
e91a2ddc 1426 --disable-largefile omit support for large files
a0e1df88 1427 --enable-cet enable Intel CET in target libraries [default=no]
459260ec 1428 --enable-host-shared build host code as shared libraries
eff02e4f
ILT
1429
1430Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1434 --with-pic try to use only PIC/non-PIC objects [default=use
1435 both]
1436 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1437 --with-system-libunwind use installed libunwind
1438
1439Some influential environment variables:
1440 CC C compiler command
1441 CFLAGS C compiler flags
1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1443 nonstandard directory <lib dir>
1444 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1445 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
eff02e4f
ILT
1446 you have headers in a nonstandard directory <include dir>
1447 CPP C preprocessor
9283471b 1448 OBJCOPY location of objcopy
eff02e4f
ILT
1449
1450Use these variables to override the choices made by `configure' or to help
1451it to find libraries and programs with nonstandard names/locations.
1452
1453Report bugs to the package provider.
1454_ACEOF
1455ac_status=$?
1456fi
1457
1458if test "$ac_init_help" = "recursive"; then
1459 # If there are subdirs, report their specific --help.
1460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461 test -d "$ac_dir" ||
1462 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463 continue
1464 ac_builddir=.
1465
1466case "$ac_dir" in
1467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468*)
1469 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 esac ;;
1476esac
1477ac_abs_top_builddir=$ac_pwd
1478ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479# for backward compatibility:
1480ac_top_builddir=$ac_top_build_prefix
1481
1482case $srcdir in
1483 .) # We are building in place.
1484 ac_srcdir=.
1485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
1488 ac_srcdir=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1491 *) # Relative name.
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495esac
1496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure" --help=recursive
1506 else
1507 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508 fi || ac_status=$?
1509 cd "$ac_pwd" || { ac_status=$?; break; }
1510 done
1511fi
1512
1513test -n "$ac_init_help" && exit $ac_status
1514if $ac_init_version; then
1515 cat <<\_ACEOF
1516package-unused configure version-unused
22e05272 1517generated by GNU Autoconf 2.69
eff02e4f 1518
22e05272 1519Copyright (C) 2012 Free Software Foundation, Inc.
eff02e4f
ILT
1520This configure script is free software; the Free Software Foundation
1521gives unlimited permission to copy, distribute and modify it.
1522_ACEOF
1523 exit
1524fi
1525
1526## ------------------------ ##
1527## Autoconf initialization. ##
1528## ------------------------ ##
1529
1530# ac_fn_c_try_compile LINENO
1531# --------------------------
1532# Try to compile conftest.$ac_ext, and return whether this succeeded.
1533ac_fn_c_try_compile ()
1534{
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 rm -f conftest.$ac_objext
1537 if { { ac_try="$ac_compile"
1538case "(($ac_try" in
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1541esac
1542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543$as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_compile") 2>conftest.err
1545 ac_status=$?
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1550 fi
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } && {
1553 test -z "$ac_c_werror_flag" ||
1554 test ! -s conftest.err
1555 } && test -s conftest.$ac_objext; then :
1556 ac_retval=0
1557else
1558 $as_echo "$as_me: failed program was:" >&5
1559sed 's/^/| /' conftest.$ac_ext >&5
1560
1561 ac_retval=1
1562fi
22e05272
JM
1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564 as_fn_set_status $ac_retval
eff02e4f
ILT
1565
1566} # ac_fn_c_try_compile
1567
d4c059d5
ILT
1568# ac_fn_c_try_cpp LINENO
1569# ----------------------
1570# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1571ac_fn_c_try_cpp ()
eff02e4f
ILT
1572{
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d4c059d5 1574 if { { ac_try="$ac_cpp conftest.$ac_ext"
eff02e4f
ILT
1575case "(($ac_try" in
1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1578esac
1579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580$as_echo "$ac_try_echo"; } >&5
d4c059d5 1581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
eff02e4f
ILT
1582 ac_status=$?
1583 if test -s conftest.err; then
1584 grep -v '^ *+' conftest.err >conftest.er1
1585 cat conftest.er1 >&5
1586 mv -f conftest.er1 conftest.err
1587 fi
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1589 test $ac_status = 0; } > conftest.i && {
d4c059d5 1590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
eff02e4f 1591 test ! -s conftest.err
eff02e4f
ILT
1592 }; then :
1593 ac_retval=0
1594else
1595 $as_echo "$as_me: failed program was:" >&5
1596sed 's/^/| /' conftest.$ac_ext >&5
1597
d4c059d5 1598 ac_retval=1
eff02e4f 1599fi
22e05272
JM
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 as_fn_set_status $ac_retval
eff02e4f 1602
d4c059d5 1603} # ac_fn_c_try_cpp
eff02e4f 1604
d4c059d5 1605# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
eff02e4f 1606# -------------------------------------------------------
d4c059d5
ILT
1607# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1608# the include files in INCLUDES and setting the cache variable VAR
1609# accordingly.
1610ac_fn_c_check_header_mongrel ()
eff02e4f
ILT
1611{
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1613 if eval \${$3+:} false; then :
eff02e4f
ILT
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615$as_echo_n "checking for $2... " >&6; }
22e05272 1616if eval \${$3+:} false; then :
eff02e4f 1617 $as_echo_n "(cached) " >&6
d4c059d5
ILT
1618fi
1619eval ac_res=\$$3
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621$as_echo "$ac_res" >&6; }
eff02e4f 1622else
d4c059d5
ILT
1623 # Is the header compilable?
1624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1625$as_echo_n "checking $2 usability... " >&6; }
1626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eff02e4f
ILT
1627/* end confdefs.h. */
1628$4
1629#include <$2>
1630_ACEOF
1631if ac_fn_c_try_compile "$LINENO"; then :
d4c059d5 1632 ac_header_compiler=yes
eff02e4f 1633else
d4c059d5 1634 ac_header_compiler=no
eff02e4f
ILT
1635fi
1636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d4c059d5
ILT
1637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1638$as_echo "$ac_header_compiler" >&6; }
eff02e4f 1639
d4c059d5
ILT
1640# Is the header present?
1641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1642$as_echo_n "checking $2 presence... " >&6; }
1643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644/* end confdefs.h. */
1645#include <$2>
1646_ACEOF
1647if ac_fn_c_try_cpp "$LINENO"; then :
1648 ac_header_preproc=yes
1649else
1650 ac_header_preproc=no
1651fi
22e05272 1652rm -f conftest.err conftest.i conftest.$ac_ext
d4c059d5
ILT
1653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1654$as_echo "$ac_header_preproc" >&6; }
eff02e4f 1655
d4c059d5
ILT
1656# So? What about this header?
1657case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1658 yes:no: )
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1660$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1662$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1663 ;;
1664 no:yes:* )
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1666$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1668$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1670$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1672$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1674$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1675 ;;
eff02e4f 1676esac
d4c059d5
ILT
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678$as_echo_n "checking for $2... " >&6; }
22e05272 1679if eval \${$3+:} false; then :
d4c059d5 1680 $as_echo_n "(cached) " >&6
eff02e4f 1681else
d4c059d5
ILT
1682 eval "$3=\$ac_header_compiler"
1683fi
1684eval ac_res=\$$3
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686$as_echo "$ac_res" >&6; }
eff02e4f 1687fi
22e05272 1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
eff02e4f 1689
d4c059d5 1690} # ac_fn_c_check_header_mongrel
eff02e4f
ILT
1691
1692# ac_fn_c_try_run LINENO
1693# ----------------------
1694# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1695# that executables *can* be run.
1696ac_fn_c_try_run ()
1697{
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 if { { ac_try="$ac_link"
1700case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_link") 2>&5
1707 ac_status=$?
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1710 { { case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_try") 2>&5
1717 ac_status=$?
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; }; }; then :
1720 ac_retval=0
1721else
1722 $as_echo "$as_me: program exited with status $ac_status" >&5
1723 $as_echo "$as_me: failed program was:" >&5
1724sed 's/^/| /' conftest.$ac_ext >&5
1725
1726 ac_retval=$ac_status
1727fi
1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
eff02e4f
ILT
1731
1732} # ac_fn_c_try_run
1733
d4c059d5
ILT
1734# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1735# -------------------------------------------------------
1736# Tests whether HEADER exists and can be compiled using the include files in
1737# INCLUDES, setting the cache variable VAR accordingly.
1738ac_fn_c_check_header_compile ()
1739{
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742$as_echo_n "checking for $2... " >&6; }
22e05272 1743if eval \${$3+:} false; then :
d4c059d5
ILT
1744 $as_echo_n "(cached) " >&6
1745else
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h. */
1748$4
1749#include <$2>
1750_ACEOF
1751if ac_fn_c_try_compile "$LINENO"; then :
1752 eval "$3=yes"
1753else
1754 eval "$3=no"
1755fi
1756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757fi
1758eval ac_res=\$$3
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760$as_echo "$ac_res" >&6; }
22e05272 1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d4c059d5
ILT
1762
1763} # ac_fn_c_check_header_compile
1764
1765# ac_fn_c_try_link LINENO
1766# -----------------------
1767# Try to link conftest.$ac_ext, and return whether this succeeded.
1768ac_fn_c_try_link ()
1769{
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 rm -f conftest.$ac_objext conftest$ac_exeext
1772 if { { ac_try="$ac_link"
1773case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776esac
1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778$as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_link") 2>conftest.err
1780 ac_status=$?
1781 if test -s conftest.err; then
1782 grep -v '^ *+' conftest.err >conftest.er1
1783 cat conftest.er1 >&5
1784 mv -f conftest.er1 conftest.err
1785 fi
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && {
1788 test -z "$ac_c_werror_flag" ||
1789 test ! -s conftest.err
1790 } && test -s conftest$ac_exeext && {
1791 test "$cross_compiling" = yes ||
22e05272 1792 test -x conftest$ac_exeext
d4c059d5
ILT
1793 }; then :
1794 ac_retval=0
1795else
1796 $as_echo "$as_me: failed program was:" >&5
1797sed 's/^/| /' conftest.$ac_ext >&5
1798
1799 ac_retval=1
1800fi
1801 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1802 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1803 # interfere with the next link command; also delete a directory that is
1804 # left behind by Apple's compiler. We do this before executing the actions.
1805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 as_fn_set_status $ac_retval
d4c059d5
ILT
1808
1809} # ac_fn_c_try_link
1810
eff02e4f
ILT
1811# ac_fn_c_check_func LINENO FUNC VAR
1812# ----------------------------------
1813# Tests whether FUNC exists, setting the cache variable VAR accordingly
1814ac_fn_c_check_func ()
1815{
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818$as_echo_n "checking for $2... " >&6; }
22e05272 1819if eval \${$3+:} false; then :
eff02e4f
ILT
1820 $as_echo_n "(cached) " >&6
1821else
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h. */
1824/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1826#define $2 innocuous_$2
1827
1828/* System header to define __stub macros and hopefully few prototypes,
1829 which can conflict with char $2 (); below.
1830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1831 <limits.h> exists even on freestanding compilers. */
1832
1833#ifdef __STDC__
1834# include <limits.h>
1835#else
1836# include <assert.h>
1837#endif
1838
1839#undef $2
1840
1841/* Override any GCC internal prototype to avoid an error.
1842 Use char because int might match the return type of a GCC
1843 builtin and then its argument prototype would still apply. */
1844#ifdef __cplusplus
1845extern "C"
1846#endif
1847char $2 ();
1848/* The GNU C library defines this for functions which it implements
1849 to always fail with ENOSYS. Some functions are actually named
1850 something starting with __ and the normal name is an alias. */
1851#if defined __stub_$2 || defined __stub___$2
1852choke me
1853#endif
1854
1855int
1856main ()
1857{
1858return $2 ();
1859 ;
1860 return 0;
1861}
1862_ACEOF
1863if ac_fn_c_try_link "$LINENO"; then :
1864 eval "$3=yes"
1865else
1866 eval "$3=no"
1867fi
1868rm -f core conftest.err conftest.$ac_objext \
1869 conftest$ac_exeext conftest.$ac_ext
1870fi
1871eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873$as_echo "$ac_res" >&6; }
22e05272 1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
eff02e4f
ILT
1875
1876} # ac_fn_c_check_func
1877
76850556
RO
1878# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1879# -------------------------------------------
1880# Tests whether TYPE exists after having included INCLUDES, setting cache
1881# variable VAR accordingly.
1882ac_fn_c_check_type ()
1883{
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886$as_echo_n "checking for $2... " >&6; }
22e05272 1887if eval \${$3+:} false; then :
76850556
RO
1888 $as_echo_n "(cached) " >&6
1889else
1890 eval "$3=no"
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h. */
1893$4
1894int
1895main ()
1896{
1897if (sizeof ($2))
1898 return 0;
1899 ;
1900 return 0;
1901}
1902_ACEOF
1903if ac_fn_c_try_compile "$LINENO"; then :
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905/* end confdefs.h. */
1906$4
1907int
1908main ()
1909{
1910if (sizeof (($2)))
1911 return 0;
1912 ;
1913 return 0;
1914}
1915_ACEOF
1916if ac_fn_c_try_compile "$LINENO"; then :
1917
1918else
1919 eval "$3=yes"
1920fi
1921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922fi
1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924fi
1925eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927$as_echo "$ac_res" >&6; }
22e05272 1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
76850556
RO
1929
1930} # ac_fn_c_check_type
1931
1932# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1933# --------------------------------------------
1934# Tries to find the compile-time value of EXPR in a program that includes
1935# INCLUDES, setting VAR accordingly. Returns whether the value could be
1936# computed
1937ac_fn_c_compute_int ()
1938{
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 if test "$cross_compiling" = yes; then
1941 # Depending upon the size, compute the lo and hi bounds.
1942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h. */
1944$4
1945int
1946main ()
1947{
1948static int test_array [1 - 2 * !(($2) >= 0)];
22e05272
JM
1949test_array [0] = 0;
1950return test_array [0];
76850556
RO
1951
1952 ;
1953 return 0;
1954}
1955_ACEOF
1956if ac_fn_c_try_compile "$LINENO"; then :
1957 ac_lo=0 ac_mid=0
1958 while :; do
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h. */
1961$4
1962int
1963main ()
1964{
1965static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
1966test_array [0] = 0;
1967return test_array [0];
76850556
RO
1968
1969 ;
1970 return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_compile "$LINENO"; then :
1974 ac_hi=$ac_mid; break
1975else
1976 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1977 if test $ac_lo -le $ac_mid; then
1978 ac_lo= ac_hi=
1979 break
1980 fi
1981 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1982fi
1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 done
1985else
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987/* end confdefs.h. */
1988$4
1989int
1990main ()
1991{
1992static int test_array [1 - 2 * !(($2) < 0)];
22e05272
JM
1993test_array [0] = 0;
1994return test_array [0];
76850556
RO
1995
1996 ;
1997 return 0;
1998}
1999_ACEOF
2000if ac_fn_c_try_compile "$LINENO"; then :
2001 ac_hi=-1 ac_mid=-1
2002 while :; do
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004/* end confdefs.h. */
2005$4
2006int
2007main ()
2008{
2009static int test_array [1 - 2 * !(($2) >= $ac_mid)];
22e05272
JM
2010test_array [0] = 0;
2011return test_array [0];
76850556
RO
2012
2013 ;
2014 return 0;
2015}
2016_ACEOF
2017if ac_fn_c_try_compile "$LINENO"; then :
2018 ac_lo=$ac_mid; break
2019else
2020 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2021 if test $ac_mid -le $ac_hi; then
2022 ac_lo= ac_hi=
2023 break
2024 fi
2025 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2026fi
2027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 done
2029else
2030 ac_lo= ac_hi=
2031fi
2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033fi
2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035# Binary search between lo and hi bounds.
2036while test "x$ac_lo" != "x$ac_hi"; do
2037 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h. */
2040$4
2041int
2042main ()
2043{
2044static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2045test_array [0] = 0;
2046return test_array [0];
76850556
RO
2047
2048 ;
2049 return 0;
2050}
2051_ACEOF
2052if ac_fn_c_try_compile "$LINENO"; then :
2053 ac_hi=$ac_mid
2054else
2055 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2056fi
2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058done
2059case $ac_lo in #((
2060?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2061'') ac_retval=1 ;;
2062esac
2063 else
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h. */
2066$4
2067static long int longval () { return $2; }
2068static unsigned long int ulongval () { return $2; }
2069#include <stdio.h>
2070#include <stdlib.h>
2071int
2072main ()
2073{
2074
2075 FILE *f = fopen ("conftest.val", "w");
2076 if (! f)
2077 return 1;
2078 if (($2) < 0)
2079 {
2080 long int i = longval ();
2081 if (i != ($2))
2082 return 1;
2083 fprintf (f, "%ld", i);
2084 }
2085 else
2086 {
2087 unsigned long int i = ulongval ();
2088 if (i != ($2))
2089 return 1;
2090 fprintf (f, "%lu", i);
2091 }
2092 /* Do not output a trailing newline, as this causes \r\n confusion
2093 on some platforms. */
2094 return ferror (f) || fclose (f) != 0;
2095
2096 ;
2097 return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_run "$LINENO"; then :
2101 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2102else
2103 ac_retval=1
2104fi
2105rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2106 conftest.$ac_objext conftest.beam conftest.$ac_ext
2107rm -f conftest.val
2108
2109 fi
22e05272
JM
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111 as_fn_set_status $ac_retval
76850556
RO
2112
2113} # ac_fn_c_compute_int
2114
22e05272
JM
2115# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2116# ---------------------------------------------
2117# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2118# accordingly.
772a71a9
ILT
2119ac_fn_c_check_decl ()
2120{
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 as_decl_name=`echo $2|sed 's/ *(.*//'`
2123 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2125$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
22e05272 2126if eval \${$3+:} false; then :
772a71a9
ILT
2127 $as_echo_n "(cached) " >&6
2128else
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130/* end confdefs.h. */
2131$4
2132int
2133main ()
2134{
2135#ifndef $as_decl_name
2136#ifdef __cplusplus
2137 (void) $as_decl_use;
2138#else
2139 (void) $as_decl_name;
2140#endif
2141#endif
2142
2143 ;
2144 return 0;
2145}
2146_ACEOF
2147if ac_fn_c_try_compile "$LINENO"; then :
2148 eval "$3=yes"
2149else
2150 eval "$3=no"
2151fi
2152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153fi
2154eval ac_res=\$$3
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156$as_echo "$ac_res" >&6; }
22e05272 2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
772a71a9
ILT
2158
2159} # ac_fn_c_check_decl
eff02e4f
ILT
2160cat >config.log <<_ACEOF
2161This file contains any messages produced by compilers while
2162running configure, to aid debugging if configure makes a mistake.
2163
2164It was created by package-unused $as_me version-unused, which was
22e05272 2165generated by GNU Autoconf 2.69. Invocation command line was
eff02e4f
ILT
2166
2167 $ $0 $@
2168
2169_ACEOF
2170exec 5>>config.log
2171{
2172cat <<_ASUNAME
2173## --------- ##
2174## Platform. ##
2175## --------- ##
2176
2177hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2178uname -m = `(uname -m) 2>/dev/null || echo unknown`
2179uname -r = `(uname -r) 2>/dev/null || echo unknown`
2180uname -s = `(uname -s) 2>/dev/null || echo unknown`
2181uname -v = `(uname -v) 2>/dev/null || echo unknown`
2182
2183/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2184/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2185
2186/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2187/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2188/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2189/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2190/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2191/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2192/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2193
2194_ASUNAME
2195
2196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197for as_dir in $PATH
2198do
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
2201 $as_echo "PATH: $as_dir"
2202 done
2203IFS=$as_save_IFS
2204
2205} >&5
2206
2207cat >&5 <<_ACEOF
2208
2209
2210## ----------- ##
2211## Core tests. ##
2212## ----------- ##
2213
2214_ACEOF
2215
2216
2217# Keep a trace of the command line.
2218# Strip out --no-create and --no-recursion so they do not pile up.
2219# Strip out --silent because we don't want to record it for future runs.
2220# Also quote any args containing shell meta-characters.
2221# Make two passes to allow for proper duplicate-argument suppression.
2222ac_configure_args=
2223ac_configure_args0=
2224ac_configure_args1=
2225ac_must_keep_next=false
2226for ac_pass in 1 2
2227do
2228 for ac_arg
2229 do
2230 case $ac_arg in
2231 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2233 | -silent | --silent | --silen | --sile | --sil)
2234 continue ;;
2235 *\'*)
2236 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2237 esac
2238 case $ac_pass in
2239 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2240 2)
2241 as_fn_append ac_configure_args1 " '$ac_arg'"
2242 if test $ac_must_keep_next = true; then
2243 ac_must_keep_next=false # Got value, back to normal.
2244 else
2245 case $ac_arg in
2246 *=* | --config-cache | -C | -disable-* | --disable-* \
2247 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2248 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2249 | -with-* | --with-* | -without-* | --without-* | --x)
2250 case "$ac_configure_args0 " in
2251 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2252 esac
2253 ;;
2254 -* ) ac_must_keep_next=true ;;
2255 esac
2256 fi
2257 as_fn_append ac_configure_args " '$ac_arg'"
2258 ;;
2259 esac
2260 done
2261done
2262{ ac_configure_args0=; unset ac_configure_args0;}
2263{ ac_configure_args1=; unset ac_configure_args1;}
2264
2265# When interrupted or exit'd, cleanup temporary files, and complete
2266# config.log. We remove comments because anyway the quotes in there
2267# would cause problems or look ugly.
2268# WARNING: Use '\'' to represent an apostrophe within the trap.
2269# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2270trap 'exit_status=$?
2271 # Save into config.log some information that might help in debugging.
2272 {
2273 echo
2274
22e05272 2275 $as_echo "## ---------------- ##
eff02e4f 2276## Cache variables. ##
22e05272 2277## ---------------- ##"
eff02e4f
ILT
2278 echo
2279 # The following way of writing the cache mishandles newlines in values,
2280(
2281 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2282 eval ac_val=\$$ac_var
2283 case $ac_val in #(
2284 *${as_nl}*)
2285 case $ac_var in #(
2286 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2287$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2288 esac
2289 case $ac_var in #(
2290 _ | IFS | as_nl) ;; #(
2291 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2292 *) { eval $ac_var=; unset $ac_var;} ;;
2293 esac ;;
2294 esac
2295 done
2296 (set) 2>&1 |
2297 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2298 *${as_nl}ac_space=\ *)
2299 sed -n \
2300 "s/'\''/'\''\\\\'\'''\''/g;
2301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2302 ;; #(
2303 *)
2304 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2305 ;;
2306 esac |
2307 sort
2308)
2309 echo
2310
22e05272 2311 $as_echo "## ----------------- ##
eff02e4f 2312## Output variables. ##
22e05272 2313## ----------------- ##"
eff02e4f
ILT
2314 echo
2315 for ac_var in $ac_subst_vars
2316 do
2317 eval ac_val=\$$ac_var
2318 case $ac_val in
2319 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2320 esac
2321 $as_echo "$ac_var='\''$ac_val'\''"
2322 done | sort
2323 echo
2324
2325 if test -n "$ac_subst_files"; then
22e05272 2326 $as_echo "## ------------------- ##
eff02e4f 2327## File substitutions. ##
22e05272 2328## ------------------- ##"
eff02e4f
ILT
2329 echo
2330 for ac_var in $ac_subst_files
2331 do
2332 eval ac_val=\$$ac_var
2333 case $ac_val in
2334 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335 esac
2336 $as_echo "$ac_var='\''$ac_val'\''"
2337 done | sort
2338 echo
2339 fi
2340
2341 if test -s confdefs.h; then
22e05272 2342 $as_echo "## ----------- ##
eff02e4f 2343## confdefs.h. ##
22e05272 2344## ----------- ##"
eff02e4f
ILT
2345 echo
2346 cat confdefs.h
2347 echo
2348 fi
2349 test "$ac_signal" != 0 &&
2350 $as_echo "$as_me: caught signal $ac_signal"
2351 $as_echo "$as_me: exit $exit_status"
2352 } >&5
2353 rm -f core *.core core.conftest.* &&
2354 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2355 exit $exit_status
2356' 0
2357for ac_signal in 1 2 13 15; do
2358 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2359done
2360ac_signal=0
2361
2362# confdefs.h avoids OS command line length limits that DEFS can exceed.
2363rm -f -r conftest* confdefs.h
2364
2365$as_echo "/* confdefs.h */" > confdefs.h
2366
2367# Predefined preprocessor variables.
2368
2369cat >>confdefs.h <<_ACEOF
2370#define PACKAGE_NAME "$PACKAGE_NAME"
2371_ACEOF
2372
2373cat >>confdefs.h <<_ACEOF
2374#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2375_ACEOF
2376
2377cat >>confdefs.h <<_ACEOF
2378#define PACKAGE_VERSION "$PACKAGE_VERSION"
2379_ACEOF
2380
2381cat >>confdefs.h <<_ACEOF
2382#define PACKAGE_STRING "$PACKAGE_STRING"
2383_ACEOF
2384
2385cat >>confdefs.h <<_ACEOF
2386#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2387_ACEOF
2388
2389cat >>confdefs.h <<_ACEOF
2390#define PACKAGE_URL "$PACKAGE_URL"
2391_ACEOF
2392
2393
2394# Let the site file select an alternate cache file if it wants to.
2395# Prefer an explicitly selected file to automatically selected ones.
2396ac_site_file1=NONE
2397ac_site_file2=NONE
2398if test -n "$CONFIG_SITE"; then
22e05272
JM
2399 # We do not want a PATH search for config.site.
2400 case $CONFIG_SITE in #((
2401 -*) ac_site_file1=./$CONFIG_SITE;;
2402 */*) ac_site_file1=$CONFIG_SITE;;
2403 *) ac_site_file1=./$CONFIG_SITE;;
2404 esac
eff02e4f
ILT
2405elif test "x$prefix" != xNONE; then
2406 ac_site_file1=$prefix/share/config.site
2407 ac_site_file2=$prefix/etc/config.site
2408else
2409 ac_site_file1=$ac_default_prefix/share/config.site
2410 ac_site_file2=$ac_default_prefix/etc/config.site
2411fi
2412for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2413do
2414 test "x$ac_site_file" = xNONE && continue
22e05272 2415 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
eff02e4f
ILT
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2417$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2418 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2419 . "$ac_site_file" \
2420 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2422as_fn_error $? "failed to load site script $ac_site_file
2423See \`config.log' for more details" "$LINENO" 5; }
eff02e4f
ILT
2424 fi
2425done
2426
2427if test -r "$cache_file"; then
22e05272
JM
2428 # Some versions of bash will fail to source /dev/null (special files
2429 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2430 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
eff02e4f
ILT
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2432$as_echo "$as_me: loading cache $cache_file" >&6;}
2433 case $cache_file in
2434 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2435 *) . "./$cache_file";;
2436 esac
2437 fi
2438else
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2440$as_echo "$as_me: creating cache $cache_file" >&6;}
2441 >$cache_file
2442fi
2443
2444# Check that the precious variables saved in the cache have kept the same
2445# value.
2446ac_cache_corrupted=false
2447for ac_var in $ac_precious_vars; do
2448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2449 eval ac_new_set=\$ac_env_${ac_var}_set
2450 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2451 eval ac_new_val=\$ac_env_${ac_var}_value
2452 case $ac_old_set,$ac_new_set in
2453 set,)
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2455$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2456 ac_cache_corrupted=: ;;
2457 ,set)
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2459$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2460 ac_cache_corrupted=: ;;
2461 ,);;
2462 *)
2463 if test "x$ac_old_val" != "x$ac_new_val"; then
2464 # differences in whitespace do not lead to failure.
2465 ac_old_val_w=`echo x $ac_old_val`
2466 ac_new_val_w=`echo x $ac_new_val`
2467 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2469$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2470 ac_cache_corrupted=:
2471 else
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2473$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2474 eval $ac_var=\$ac_old_val
2475 fi
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2477$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2479$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2480 fi;;
2481 esac
2482 # Pass precious variables to config.status.
2483 if test "$ac_new_set" = set; then
2484 case $ac_new_val in
2485 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2486 *) ac_arg=$ac_var=$ac_new_val ;;
2487 esac
2488 case " $ac_configure_args " in
2489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2490 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2491 esac
2492 fi
2493done
2494if $ac_cache_corrupted; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2498$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2499 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
eff02e4f
ILT
2500fi
2501## -------------------- ##
2502## Main body of script. ##
2503## -------------------- ##
2504
2505ac_ext=c
2506ac_cpp='$CPP $CPPFLAGS'
2507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510
2511
2512
2513
2514
2515
2516ac_config_headers="$ac_config_headers config.h"
2517
2518
405a6b1c
MK
2519if test -n "${with_target_subdir}"; then
2520 # Default to --enable-multilib
2521# Check whether --enable-multilib was given.
2522if test "${enable_multilib+set}" = set; then :
2523 enableval=$enable_multilib; case "$enableval" in
2524 yes) multilib=yes ;;
2525 no) multilib=no ;;
22e05272 2526 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
405a6b1c
MK
2527 esac
2528else
2529 multilib=yes
2530fi
2531
2532
2533# We may get other options which we leave undocumented:
2534# --with-target-subdir, --with-multisrctop, --with-multisubdir
2535# See config-ml.in if you want the gory details.
2536
2537if test "$srcdir" = "."; then
2538 if test "$with_target_subdir" != "."; then
2539 multi_basedir="$srcdir/$with_multisrctop../.."
2540 else
2541 multi_basedir="$srcdir/$with_multisrctop.."
2542 fi
2543else
2544 multi_basedir="$srcdir/.."
2545fi
2546
2547
2548# Even if the default multilib is not a cross compilation,
2549# it may be that some of the other multilibs are.
2550if test $cross_compiling = no && test $multilib = yes \
2551 && test "x${with_multisubdir}" != x ; then
2552 cross_compiling=maybe
2553fi
2554
2555ac_config_commands="$ac_config_commands default-1"
2556
2557fi
2558
eff02e4f
ILT
2559ac_aux_dir=
2560for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2561 if test -f "$ac_dir/install-sh"; then
2562 ac_aux_dir=$ac_dir
2563 ac_install_sh="$ac_aux_dir/install-sh -c"
2564 break
2565 elif test -f "$ac_dir/install.sh"; then
2566 ac_aux_dir=$ac_dir
2567 ac_install_sh="$ac_aux_dir/install.sh -c"
2568 break
2569 elif test -f "$ac_dir/shtool"; then
2570 ac_aux_dir=$ac_dir
2571 ac_install_sh="$ac_aux_dir/shtool install -c"
2572 break
2573 fi
eff02e4f
ILT
2574done
2575if test -z "$ac_aux_dir"; then
22e05272 2576 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
eff02e4f
ILT
2577fi
2578
2579# These three variables are undocumented and unsupported,
2580# and are intended to be withdrawn in a future Autoconf release.
2581# They can cause serious problems if a builder's source tree is in a directory
2582# whose full name contains unusual characters.
2583ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2584ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2585ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2586
2587
2588# Make sure we can run config.sub.
2589$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2590 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
eff02e4f
ILT
2591
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2593$as_echo_n "checking build system type... " >&6; }
22e05272 2594if ${ac_cv_build+:} false; then :
eff02e4f
ILT
2595 $as_echo_n "(cached) " >&6
2596else
2597 ac_build_alias=$build_alias
2598test "x$ac_build_alias" = x &&
2599 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2600test "x$ac_build_alias" = x &&
22e05272 2601 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
eff02e4f 2602ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2603 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
eff02e4f
ILT
2604
2605fi
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2607$as_echo "$ac_cv_build" >&6; }
2608case $ac_cv_build in
2609*-*-*) ;;
22e05272 2610*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
eff02e4f
ILT
2611esac
2612build=$ac_cv_build
2613ac_save_IFS=$IFS; IFS='-'
2614set x $ac_cv_build
2615shift
2616build_cpu=$1
2617build_vendor=$2
2618shift; shift
2619# Remember, the first character of IFS is used to create $*,
2620# except with old shells:
2621build_os=$*
2622IFS=$ac_save_IFS
2623case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2624
2625
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2627$as_echo_n "checking host system type... " >&6; }
22e05272 2628if ${ac_cv_host+:} false; then :
eff02e4f
ILT
2629 $as_echo_n "(cached) " >&6
2630else
2631 if test "x$host_alias" = x; then
2632 ac_cv_host=$ac_cv_build
2633else
2634 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2635 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
eff02e4f
ILT
2636fi
2637
2638fi
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2640$as_echo "$ac_cv_host" >&6; }
2641case $ac_cv_host in
2642*-*-*) ;;
22e05272 2643*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
eff02e4f
ILT
2644esac
2645host=$ac_cv_host
2646ac_save_IFS=$IFS; IFS='-'
2647set x $ac_cv_host
2648shift
2649host_cpu=$1
2650host_vendor=$2
2651shift; shift
2652# Remember, the first character of IFS is used to create $*,
2653# except with old shells:
2654host_os=$*
2655IFS=$ac_save_IFS
2656case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2657
2658
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2660$as_echo_n "checking target system type... " >&6; }
22e05272 2661if ${ac_cv_target+:} false; then :
eff02e4f
ILT
2662 $as_echo_n "(cached) " >&6
2663else
2664 if test "x$target_alias" = x; then
2665 ac_cv_target=$ac_cv_host
2666else
2667 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2668 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
eff02e4f
ILT
2669fi
2670
2671fi
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2673$as_echo "$ac_cv_target" >&6; }
2674case $ac_cv_target in
2675*-*-*) ;;
22e05272 2676*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
eff02e4f
ILT
2677esac
2678target=$ac_cv_target
2679ac_save_IFS=$IFS; IFS='-'
2680set x $ac_cv_target
2681shift
2682target_cpu=$1
2683target_vendor=$2
2684shift; shift
2685# Remember, the first character of IFS is used to create $*,
2686# except with old shells:
2687target_os=$*
2688IFS=$ac_save_IFS
2689case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2690
2691
2692# The aliases save the names the user supplied, while $host etc.
2693# will get canonicalized.
2694test -n "$target_alias" &&
2695 test "$program_prefix$program_suffix$program_transform_name" = \
2696 NONENONEs,x,x, &&
2697 program_prefix=${target_alias}-
2698
2699target_alias=${target_alias-$host_alias}
2700
22e05272
JM
2701# Expand $ac_aux_dir to an absolute path.
2702am_aux_dir=`cd "$ac_aux_dir" && pwd`
2703
d4c059d5
ILT
2704ac_ext=c
2705ac_cpp='$CPP $CPPFLAGS'
2706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709if test -n "$ac_tool_prefix"; then
2710 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2711set dummy ${ac_tool_prefix}gcc; ac_word=$2
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2714if ${ac_cv_prog_CC+:} false; then :
d4c059d5
ILT
2715 $as_echo_n "(cached) " >&6
2716else
2717 if test -n "$CC"; then
2718 ac_cv_prog_CC="$CC" # Let the user override the test.
2719else
2720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721for as_dir in $PATH
2722do
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
2727 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2730 fi
2731done
2732 done
2733IFS=$as_save_IFS
eff02e4f 2734
d4c059d5
ILT
2735fi
2736fi
2737CC=$ac_cv_prog_CC
2738if test -n "$CC"; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2740$as_echo "$CC" >&6; }
2741else
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743$as_echo "no" >&6; }
2744fi
eff02e4f 2745
eff02e4f 2746
d4c059d5
ILT
2747fi
2748if test -z "$ac_cv_prog_CC"; then
2749 ac_ct_CC=$CC
2750 # Extract the first word of "gcc", so it can be a program name with args.
2751set dummy gcc; ac_word=$2
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2754if ${ac_cv_prog_ac_ct_CC+:} false; then :
eff02e4f
ILT
2755 $as_echo_n "(cached) " >&6
2756else
d4c059d5
ILT
2757 if test -n "$ac_ct_CC"; then
2758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2759else
2760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
eff02e4f
ILT
2761for as_dir in $PATH
2762do
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
d4c059d5 2765 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
2767 ac_cv_prog_ac_ct_CC="gcc"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2770 fi
2771done
eff02e4f
ILT
2772 done
2773IFS=$as_save_IFS
2774
eff02e4f 2775fi
d4c059d5
ILT
2776fi
2777ac_ct_CC=$ac_cv_prog_ac_ct_CC
2778if test -n "$ac_ct_CC"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2780$as_echo "$ac_ct_CC" >&6; }
2781else
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783$as_echo "no" >&6; }
2784fi
2785
2786 if test "x$ac_ct_CC" = x; then
2787 CC=""
eff02e4f 2788 else
d4c059d5
ILT
2789 case $cross_compiling:$ac_tool_warned in
2790yes:)
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2793ac_tool_warned=yes ;;
2794esac
2795 CC=$ac_ct_CC
eff02e4f 2796 fi
d4c059d5
ILT
2797else
2798 CC="$ac_cv_prog_CC"
eff02e4f 2799fi
eff02e4f 2800
d4c059d5
ILT
2801if test -z "$CC"; then
2802 if test -n "$ac_tool_prefix"; then
2803 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2804set dummy ${ac_tool_prefix}cc; ac_word=$2
eff02e4f
ILT
2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2807if ${ac_cv_prog_CC+:} false; then :
eff02e4f
ILT
2808 $as_echo_n "(cached) " >&6
2809else
d4c059d5
ILT
2810 if test -n "$CC"; then
2811 ac_cv_prog_CC="$CC" # Let the user override the test.
eff02e4f
ILT
2812else
2813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814for as_dir in $PATH
2815do
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 2820 ac_cv_prog_CC="${ac_tool_prefix}cc"
eff02e4f
ILT
2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2823 fi
2824done
2825 done
2826IFS=$as_save_IFS
2827
2828fi
2829fi
d4c059d5
ILT
2830CC=$ac_cv_prog_CC
2831if test -n "$CC"; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2833$as_echo "$CC" >&6; }
eff02e4f
ILT
2834else
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836$as_echo "no" >&6; }
2837fi
2838
2839
d4c059d5 2840 fi
eff02e4f 2841fi
d4c059d5
ILT
2842if test -z "$CC"; then
2843 # Extract the first word of "cc", so it can be a program name with args.
2844set dummy cc; ac_word=$2
eff02e4f
ILT
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2847if ${ac_cv_prog_CC+:} false; then :
eff02e4f
ILT
2848 $as_echo_n "(cached) " >&6
2849else
d4c059d5
ILT
2850 if test -n "$CC"; then
2851 ac_cv_prog_CC="$CC" # Let the user override the test.
eff02e4f 2852else
d4c059d5 2853 ac_prog_rejected=no
eff02e4f
ILT
2854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855for as_dir in $PATH
2856do
2857 IFS=$as_save_IFS
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
2861 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2862 ac_prog_rejected=yes
2863 continue
2864 fi
2865 ac_cv_prog_CC="cc"
eff02e4f
ILT
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 break 2
2868 fi
2869done
2870 done
2871IFS=$as_save_IFS
2872
d4c059d5
ILT
2873if test $ac_prog_rejected = yes; then
2874 # We found a bogon in the path, so make sure we never use it.
2875 set dummy $ac_cv_prog_CC
2876 shift
2877 if test $# != 0; then
2878 # We chose a different compiler from the bogus one.
2879 # However, it has the same basename, so the bogon will be chosen
2880 # first if we set CC to just the basename; use the full file name.
2881 shift
2882 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2883 fi
eff02e4f
ILT
2884fi
2885fi
d4c059d5
ILT
2886fi
2887CC=$ac_cv_prog_CC
2888if test -n "$CC"; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2890$as_echo "$CC" >&6; }
eff02e4f
ILT
2891else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893$as_echo "no" >&6; }
2894fi
2895
eff02e4f
ILT
2896
2897fi
d4c059d5
ILT
2898if test -z "$CC"; then
2899 if test -n "$ac_tool_prefix"; then
2900 for ac_prog in cl.exe
2901 do
2902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2903set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2906if ${ac_cv_prog_CC+:} false; then :
eff02e4f
ILT
2907 $as_echo_n "(cached) " >&6
2908else
d4c059d5
ILT
2909 if test -n "$CC"; then
2910 ac_cv_prog_CC="$CC" # Let the user override the test.
2911else
2912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913for as_dir in $PATH
eff02e4f
ILT
2914do
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
d4c059d5 2917 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
2919 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2922 fi
2923done
eff02e4f
ILT
2924 done
2925IFS=$as_save_IFS
2926
2927fi
eff02e4f 2928fi
d4c059d5
ILT
2929CC=$ac_cv_prog_CC
2930if test -n "$CC"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2932$as_echo "$CC" >&6; }
2933else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935$as_echo "no" >&6; }
2936fi
eff02e4f 2937
eff02e4f 2938
d4c059d5
ILT
2939 test -n "$CC" && break
2940 done
2941fi
2942if test -z "$CC"; then
2943 ac_ct_CC=$CC
2944 for ac_prog in cl.exe
eff02e4f
ILT
2945do
2946 # Extract the first word of "$ac_prog", so it can be a program name with args.
2947set dummy $ac_prog; ac_word=$2
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2950if ${ac_cv_prog_ac_ct_CC+:} false; then :
eff02e4f
ILT
2951 $as_echo_n "(cached) " >&6
2952else
d4c059d5
ILT
2953 if test -n "$ac_ct_CC"; then
2954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
eff02e4f
ILT
2955else
2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957for as_dir in $PATH
2958do
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 2963 ac_cv_prog_ac_ct_CC="$ac_prog"
eff02e4f
ILT
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2966 fi
2967done
2968 done
2969IFS=$as_save_IFS
2970
2971fi
2972fi
d4c059d5
ILT
2973ac_ct_CC=$ac_cv_prog_ac_ct_CC
2974if test -n "$ac_ct_CC"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2976$as_echo "$ac_ct_CC" >&6; }
eff02e4f
ILT
2977else
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979$as_echo "no" >&6; }
2980fi
2981
2982
d4c059d5 2983 test -n "$ac_ct_CC" && break
eff02e4f
ILT
2984done
2985
d4c059d5
ILT
2986 if test "x$ac_ct_CC" = x; then
2987 CC=""
2988 else
2989 case $cross_compiling:$ac_tool_warned in
2990yes:)
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2993ac_tool_warned=yes ;;
eff02e4f 2994esac
d4c059d5 2995 CC=$ac_ct_CC
eff02e4f
ILT
2996 fi
2997fi
2998
eff02e4f
ILT
2999fi
3000
3001
d4c059d5
ILT
3002test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3003$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3004as_fn_error $? "no acceptable C compiler found in \$PATH
3005See \`config.log' for more details" "$LINENO" 5; }
eff02e4f 3006
d4c059d5
ILT
3007# Provide some information about the compiler.
3008$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3009set X $ac_compile
3010ac_compiler=$2
3011for ac_option in --version -v -V -qversion; do
3012 { { ac_try="$ac_compiler $ac_option >&5"
3013case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016esac
3017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3018$as_echo "$ac_try_echo"; } >&5
3019 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3020 ac_status=$?
3021 if test -s conftest.err; then
3022 sed '10a\
3023... rest of stderr output deleted ...
3024 10q' conftest.err >conftest.er1
3025 cat conftest.er1 >&5
d4c059d5 3026 fi
22e05272 3027 rm -f conftest.er1 conftest.err
d4c059d5
ILT
3028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029 test $ac_status = 0; }
3030done
eff02e4f 3031
d4c059d5
ILT
3032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3033/* end confdefs.h. */
eff02e4f 3034
d4c059d5
ILT
3035int
3036main ()
3037{
eff02e4f 3038
d4c059d5
ILT
3039 ;
3040 return 0;
3041}
3042_ACEOF
3043ac_clean_files_save=$ac_clean_files
22e05272 3044ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d4c059d5
ILT
3045# Try to create an executable without -o first, disregard a.out.
3046# It will help us diagnose broken compilers, and finding out an intuition
3047# of exeext.
22e05272
JM
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3049$as_echo_n "checking whether the C compiler works... " >&6; }
d4c059d5 3050ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
eff02e4f 3051
d4c059d5
ILT
3052# The possible output files:
3053ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
eff02e4f 3054
d4c059d5
ILT
3055ac_rmfiles=
3056for ac_file in $ac_files
3057do
3058 case $ac_file in
3059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3060 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3061 esac
3062done
3063rm -f $ac_rmfiles
eff02e4f 3064
d4c059d5
ILT
3065if { { ac_try="$ac_link_default"
3066case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069esac
3070eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071$as_echo "$ac_try_echo"; } >&5
3072 (eval "$ac_link_default") 2>&5
3073 ac_status=$?
3074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075 test $ac_status = 0; }; then :
3076 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3077# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3078# in a Makefile. We should not override ac_cv_exeext if it was cached,
3079# so that the user can short-circuit this test for compilers unknown to
3080# Autoconf.
3081for ac_file in $ac_files ''
3082do
3083 test -f "$ac_file" || continue
3084 case $ac_file in
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3086 ;;
3087 [ab].out )
3088 # We found the default executable, but exeext='' is most
3089 # certainly right.
3090 break;;
3091 *.* )
3092 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3093 then :; else
3094 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3095 fi
3096 # We set ac_cv_exeext here because the later test for it is not
3097 # safe: cross compilers may not add the suffix if given an `-o'
3098 # argument, so we may need to know it at that point already.
3099 # Even if this section looks crufty: it has the advantage of
3100 # actually working.
3101 break;;
3102 * )
3103 break;;
3104 esac
3105done
3106test "$ac_cv_exeext" = no && ac_cv_exeext=
eff02e4f 3107
eff02e4f 3108else
d4c059d5 3109 ac_file=''
eff02e4f 3110fi
d4c059d5 3111if test -z "$ac_file"; then :
22e05272
JM
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113$as_echo "no" >&6; }
3114$as_echo "$as_me: failed program was:" >&5
d4c059d5 3115sed 's/^/| /' conftest.$ac_ext >&5
eff02e4f 3116
d4c059d5
ILT
3117{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3119as_fn_error 77 "C compiler cannot create executables
3120See \`config.log' for more details" "$LINENO" 5; }
3121else
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3123$as_echo "yes" >&6; }
eff02e4f 3124fi
22e05272
JM
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3126$as_echo_n "checking for C compiler default output file name... " >&6; }
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3128$as_echo "$ac_file" >&6; }
d4c059d5 3129ac_exeext=$ac_cv_exeext
eff02e4f 3130
22e05272 3131rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d4c059d5 3132ac_clean_files=$ac_clean_files_save
d4c059d5
ILT
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3134$as_echo_n "checking for suffix of executables... " >&6; }
3135if { { ac_try="$ac_link"
3136case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139esac
3140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141$as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_link") 2>&5
3143 ac_status=$?
3144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145 test $ac_status = 0; }; then :
3146 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3147# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3148# work properly (i.e., refer to `conftest.exe'), while it won't with
3149# `rm'.
3150for ac_file in conftest.exe conftest conftest.*; do
3151 test -f "$ac_file" || continue
3152 case $ac_file in
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3154 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3155 break;;
3156 * ) break;;
3157 esac
3158done
eff02e4f 3159else
d4c059d5
ILT
3160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3162as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3163See \`config.log' for more details" "$LINENO" 5; }
eff02e4f 3164fi
22e05272 3165rm -f conftest conftest$ac_cv_exeext
d4c059d5
ILT
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3167$as_echo "$ac_cv_exeext" >&6; }
eff02e4f 3168
d4c059d5
ILT
3169rm -f conftest.$ac_ext
3170EXEEXT=$ac_cv_exeext
3171ac_exeext=$EXEEXT
22e05272
JM
3172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173/* end confdefs.h. */
3174#include <stdio.h>
3175int
3176main ()
3177{
3178FILE *f = fopen ("conftest.out", "w");
3179 return ferror (f) || fclose (f) != 0;
3180
3181 ;
3182 return 0;
3183}
3184_ACEOF
3185ac_clean_files="$ac_clean_files conftest.out"
3186# Check that the compiler produces executables we can run. If not, either
3187# the compiler is broken, or we cross compile.
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3189$as_echo_n "checking whether we are cross compiling... " >&6; }
3190if test "$cross_compiling" != yes; then
3191 { { ac_try="$ac_link"
3192case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195esac
3196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197$as_echo "$ac_try_echo"; } >&5
3198 (eval "$ac_link") 2>&5
3199 ac_status=$?
3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }
3202 if { ac_try='./conftest$ac_cv_exeext'
3203 { { case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206esac
3207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208$as_echo "$ac_try_echo"; } >&5
3209 (eval "$ac_try") 2>&5
3210 ac_status=$?
3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }; }; then
3213 cross_compiling=no
3214 else
3215 if test "$cross_compiling" = maybe; then
3216 cross_compiling=yes
3217 else
3218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220as_fn_error $? "cannot run C compiled programs.
3221If you meant to cross compile, use \`--host'.
3222See \`config.log' for more details" "$LINENO" 5; }
3223 fi
3224 fi
3225fi
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3227$as_echo "$cross_compiling" >&6; }
3228
3229rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3230ac_clean_files=$ac_clean_files_save
d4c059d5
ILT
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3232$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3233if ${ac_cv_objext+:} false; then :
eff02e4f
ILT
3234 $as_echo_n "(cached) " >&6
3235else
d4c059d5
ILT
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237/* end confdefs.h. */
eff02e4f 3238
d4c059d5
ILT
3239int
3240main ()
3241{
eff02e4f 3242
d4c059d5
ILT
3243 ;
3244 return 0;
3245}
3246_ACEOF
3247rm -f conftest.o conftest.obj
3248if { { ac_try="$ac_compile"
3249case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
eff02e4f 3252esac
d4c059d5
ILT
3253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254$as_echo "$ac_try_echo"; } >&5
3255 (eval "$ac_compile") 2>&5
3256 ac_status=$?
3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258 test $ac_status = 0; }; then :
3259 for ac_file in conftest.o conftest.obj conftest.*; do
3260 test -f "$ac_file" || continue;
3261 case $ac_file in
3262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3263 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3264 break;;
3265 esac
3266done
eff02e4f 3267else
d4c059d5
ILT
3268 $as_echo "$as_me: failed program was:" >&5
3269sed 's/^/| /' conftest.$ac_ext >&5
eff02e4f 3270
d4c059d5
ILT
3271{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3273as_fn_error $? "cannot compute suffix of object files: cannot compile
3274See \`config.log' for more details" "$LINENO" 5; }
d4c059d5
ILT
3275fi
3276rm -f conftest.$ac_cv_objext conftest.$ac_ext
3277fi
3278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3279$as_echo "$ac_cv_objext" >&6; }
3280OBJEXT=$ac_cv_objext
3281ac_objext=$OBJEXT
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3283$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3284if ${ac_cv_c_compiler_gnu+:} false; then :
eff02e4f
ILT
3285 $as_echo_n "(cached) " >&6
3286else
d4c059d5
ILT
3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288/* end confdefs.h. */
eff02e4f 3289
d4c059d5
ILT
3290int
3291main ()
3292{
3293#ifndef __GNUC__
3294 choke me
3295#endif
3296
3297 ;
3298 return 0;
3299}
3300_ACEOF
3301if ac_fn_c_try_compile "$LINENO"; then :
3302 ac_compiler_gnu=yes
eff02e4f 3303else
d4c059d5 3304 ac_compiler_gnu=no
eff02e4f 3305fi
d4c059d5
ILT
3306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307ac_cv_c_compiler_gnu=$ac_compiler_gnu
eff02e4f 3308
eff02e4f 3309fi
d4c059d5
ILT
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3311$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3312if test $ac_compiler_gnu = yes; then
3313 GCC=yes
eff02e4f 3314else
d4c059d5
ILT
3315 GCC=
3316fi
3317ac_test_CFLAGS=${CFLAGS+set}
3318ac_save_CFLAGS=$CFLAGS
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3320$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3321if ${ac_cv_prog_cc_g+:} false; then :
d4c059d5 3322 $as_echo_n "(cached) " >&6
eff02e4f 3323else
d4c059d5
ILT
3324 ac_save_c_werror_flag=$ac_c_werror_flag
3325 ac_c_werror_flag=yes
3326 ac_cv_prog_cc_g=no
3327 CFLAGS="-g"
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329/* end confdefs.h. */
eff02e4f 3330
d4c059d5
ILT
3331int
3332main ()
3333{
3334
3335 ;
3336 return 0;
3337}
3338_ACEOF
3339if ac_fn_c_try_compile "$LINENO"; then :
3340 ac_cv_prog_cc_g=yes
eff02e4f 3341else
d4c059d5
ILT
3342 CFLAGS=""
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344/* end confdefs.h. */
eff02e4f 3345
d4c059d5
ILT
3346int
3347main ()
3348{
3349
3350 ;
3351 return 0;
3352}
3353_ACEOF
3354if ac_fn_c_try_compile "$LINENO"; then :
eff02e4f 3355
eff02e4f 3356else
d4c059d5
ILT
3357 ac_c_werror_flag=$ac_save_c_werror_flag
3358 CFLAGS="-g"
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360/* end confdefs.h. */
3361
3362int
3363main ()
3364{
eff02e4f 3365
d4c059d5
ILT
3366 ;
3367 return 0;
3368}
3369_ACEOF
3370if ac_fn_c_try_compile "$LINENO"; then :
3371 ac_cv_prog_cc_g=yes
eff02e4f 3372fi
d4c059d5 3373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
eff02e4f 3374fi
d4c059d5 3375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
eff02e4f 3376fi
d4c059d5
ILT
3377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3378 ac_c_werror_flag=$ac_save_c_werror_flag
eff02e4f 3379fi
d4c059d5
ILT
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3381$as_echo "$ac_cv_prog_cc_g" >&6; }
3382if test "$ac_test_CFLAGS" = set; then
3383 CFLAGS=$ac_save_CFLAGS
3384elif test $ac_cv_prog_cc_g = yes; then
3385 if test "$GCC" = yes; then
3386 CFLAGS="-g -O2"
3387 else
3388 CFLAGS="-g"
3389 fi
eff02e4f 3390else
d4c059d5
ILT
3391 if test "$GCC" = yes; then
3392 CFLAGS="-O2"
3393 else
3394 CFLAGS=
eff02e4f 3395 fi
eff02e4f 3396fi
d4c059d5
ILT
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3398$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3399if ${ac_cv_prog_cc_c89+:} false; then :
d4c059d5 3400 $as_echo_n "(cached) " >&6
eff02e4f 3401else
d4c059d5
ILT
3402 ac_cv_prog_cc_c89=no
3403ac_save_CC=$CC
3404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405/* end confdefs.h. */
3406#include <stdarg.h>
3407#include <stdio.h>
22e05272 3408struct stat;
d4c059d5
ILT
3409/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3410struct buf { int x; };
3411FILE * (*rcsopen) (struct buf *, struct stat *, int);
3412static char *e (p, i)
3413 char **p;
3414 int i;
3415{
3416 return p[i];
3417}
3418static char *f (char * (*g) (char **, int), char **p, ...)
3419{
3420 char *s;
3421 va_list v;
3422 va_start (v,p);
3423 s = g (p, va_arg (v,int));
3424 va_end (v);
3425 return s;
3426}
eff02e4f 3427
d4c059d5
ILT
3428/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3429 function prototypes and stuff, but not '\xHH' hex character constants.
3430 These don't provoke an error unfortunately, instead are silently treated
3431 as 'x'. The following induces an error, until -std is added to get
3432 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3433 array size at least. It's necessary to write '\x00'==0 to get something
3434 that's true only with -std. */
3435int osf4_cc_array ['\x00' == 0 ? 1 : -1];
eff02e4f 3436
d4c059d5
ILT
3437/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3438 inside strings and character constants. */
3439#define FOO(x) 'x'
3440int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
eff02e4f 3441
d4c059d5
ILT
3442int test (int i, double x);
3443struct s1 {int (*f) (int a);};
3444struct s2 {int (*f) (double a);};
3445int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3446int argc;
3447char **argv;
3448int
3449main ()
3450{
3451return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3452 ;
3453 return 0;
3454}
3455_ACEOF
3456for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3457 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3458do
3459 CC="$ac_save_CC $ac_arg"
3460 if ac_fn_c_try_compile "$LINENO"; then :
3461 ac_cv_prog_cc_c89=$ac_arg
eff02e4f 3462fi
d4c059d5
ILT
3463rm -f core conftest.err conftest.$ac_objext
3464 test "x$ac_cv_prog_cc_c89" != "xno" && break
3465done
3466rm -f conftest.$ac_ext
3467CC=$ac_save_CC
eff02e4f
ILT
3468
3469fi
d4c059d5
ILT
3470# AC_CACHE_VAL
3471case "x$ac_cv_prog_cc_c89" in
3472 x)
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3474$as_echo "none needed" >&6; } ;;
3475 xno)
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3477$as_echo "unsupported" >&6; } ;;
3478 *)
3479 CC="$CC $ac_cv_prog_cc_c89"
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3481$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
eff02e4f 3482esac
d4c059d5 3483if test "x$ac_cv_prog_cc_c89" != xno; then :
eff02e4f 3484
d4c059d5 3485fi
eff02e4f 3486
d4c059d5
ILT
3487ac_ext=c
3488ac_cpp='$CPP $CPPFLAGS'
3489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491ac_compiler_gnu=$ac_cv_c_compiler_gnu
eff02e4f 3492
22e05272
JM
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
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3499$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3500if ${am_cv_prog_cc_c_o+:} false; then :
3501 $as_echo_n "(cached) " >&6
3502else
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504/* end confdefs.h. */
3505
3506int
3507main ()
3508{
3509
3510 ;
3511 return 0;
3512}
3513_ACEOF
3514 # Make sure it works both with $CC and with simple cc.
3515 # Following AC_PROG_CC_C_O, we do the test twice because some
3516 # compilers refuse to overwrite an existing .o file with -o,
3517 # though they will create one.
3518 am_cv_prog_cc_c_o=yes
3519 for am_i in 1 2; do
3520 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3521 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } \
3525 && test -f conftest2.$ac_objext; then
3526 : OK
3527 else
3528 am_cv_prog_cc_c_o=no
3529 break
3530 fi
3531 done
3532 rm -f core conftest*
3533 unset am_i
3534fi
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3536$as_echo "$am_cv_prog_cc_c_o" >&6; }
3537if test "$am_cv_prog_cc_c_o" != yes; then
3538 # Losing compiler, so override with the script.
3539 # FIXME: It is wrong to rewrite CC.
3540 # But if we don't then we get into trouble of one sort or another.
3541 # A longer-term fix would be to have automake use am__CC in this case,
3542 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3543 CC="$am_aux_dir/compile $CC"
3544fi
3545ac_ext=c
3546ac_cpp='$CPP $CPPFLAGS'
3547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550
3551
d4c059d5
ILT
3552
3553ac_ext=c
3554ac_cpp='$CPP $CPPFLAGS'
3555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3559$as_echo_n "checking how to run the C preprocessor... " >&6; }
3560# On Suns, sometimes $CPP names a directory.
3561if test -n "$CPP" && test -d "$CPP"; then
3562 CPP=
3563fi
3564if test -z "$CPP"; then
22e05272 3565 if ${ac_cv_prog_CPP+:} false; then :
d4c059d5
ILT
3566 $as_echo_n "(cached) " >&6
3567else
3568 # Double quotes because CPP needs to be expanded
3569 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3570 do
3571 ac_preproc_ok=false
3572for ac_c_preproc_warn_flag in '' yes
3573do
3574 # Use a header file that comes with gcc, so configuring glibc
3575 # with a fresh cross-compiler works.
3576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3577 # <limits.h> exists even on freestanding compilers.
3578 # On the NeXT, cc -E runs the code through the compiler's parser,
3579 # not just through cpp. "Syntax error" is here to catch this case.
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h. */
3582#ifdef __STDC__
3583# include <limits.h>
3584#else
3585# include <assert.h>
3586#endif
3587 Syntax error
eff02e4f 3588_ACEOF
d4c059d5 3589if ac_fn_c_try_cpp "$LINENO"; then :
eff02e4f 3590
d4c059d5
ILT
3591else
3592 # Broken: fails on valid input.
3593continue
3594fi
22e05272 3595rm -f conftest.err conftest.i conftest.$ac_ext
d4c059d5
ILT
3596
3597 # OK, works on sane cases. Now check whether nonexistent headers
3598 # can be detected and how.
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600/* end confdefs.h. */
3601#include <ac_nonexistent.h>
3602_ACEOF
3603if ac_fn_c_try_cpp "$LINENO"; then :
3604 # Broken: success on invalid input.
3605continue
3606else
3607 # Passes both tests.
3608ac_preproc_ok=:
3609break
3610fi
22e05272 3611rm -f conftest.err conftest.i conftest.$ac_ext
eff02e4f 3612
eff02e4f 3613done
d4c059d5 3614# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3615rm -f conftest.i conftest.err conftest.$ac_ext
d4c059d5
ILT
3616if $ac_preproc_ok; then :
3617 break
3618fi
eff02e4f 3619
d4c059d5
ILT
3620 done
3621 ac_cv_prog_CPP=$CPP
3622
3623fi
3624 CPP=$ac_cv_prog_CPP
3625else
3626 ac_cv_prog_CPP=$CPP
3627fi
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3629$as_echo "$CPP" >&6; }
3630ac_preproc_ok=false
3631for ac_c_preproc_warn_flag in '' yes
eff02e4f 3632do
d4c059d5
ILT
3633 # Use a header file that comes with gcc, so configuring glibc
3634 # with a fresh cross-compiler works.
3635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3636 # <limits.h> exists even on freestanding compilers.
3637 # On the NeXT, cc -E runs the code through the compiler's parser,
3638 # not just through cpp. "Syntax error" is here to catch this case.
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640/* end confdefs.h. */
3641#ifdef __STDC__
3642# include <limits.h>
3643#else
3644# include <assert.h>
3645#endif
3646 Syntax error
3647_ACEOF
3648if ac_fn_c_try_cpp "$LINENO"; then :
eff02e4f
ILT
3649
3650else
d4c059d5
ILT
3651 # Broken: fails on valid input.
3652continue
eff02e4f 3653fi
22e05272 3654rm -f conftest.err conftest.i conftest.$ac_ext
eff02e4f 3655
d4c059d5
ILT
3656 # OK, works on sane cases. Now check whether nonexistent headers
3657 # can be detected and how.
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659/* end confdefs.h. */
3660#include <ac_nonexistent.h>
3661_ACEOF
3662if ac_fn_c_try_cpp "$LINENO"; then :
3663 # Broken: success on invalid input.
3664continue
3665else
3666 # Passes both tests.
3667ac_preproc_ok=:
3668break
3669fi
22e05272 3670rm -f conftest.err conftest.i conftest.$ac_ext
d4c059d5
ILT
3671
3672done
3673# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3674rm -f conftest.i conftest.err conftest.$ac_ext
d4c059d5
ILT
3675if $ac_preproc_ok; then :
3676
3677else
3678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
eff02e4f 3679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3680as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3681See \`config.log' for more details" "$LINENO" 5; }
eff02e4f 3682fi
eff02e4f 3683
d4c059d5
ILT
3684ac_ext=c
3685ac_cpp='$CPP $CPPFLAGS'
3686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688ac_compiler_gnu=$ac_cv_c_compiler_gnu
3689
3690
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3692$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 3693if ${ac_cv_path_GREP+:} false; then :
d4c059d5
ILT
3694 $as_echo_n "(cached) " >&6
3695else
3696 if test -z "$GREP"; then
3697 ac_path_GREP_found=false
3698 # Loop through the user's path and test for each of PROGNAME-LIST
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3701do
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_prog in grep ggrep; do
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3707 as_fn_executable_p "$ac_path_GREP" || continue
d4c059d5
ILT
3708# Check for GNU ac_path_GREP and select it if it is found.
3709 # Check for GNU $ac_path_GREP
3710case `"$ac_path_GREP" --version 2>&1` in
3711*GNU*)
3712 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3713*)
3714 ac_count=0
3715 $as_echo_n 0123456789 >"conftest.in"
3716 while :
3717 do
3718 cat "conftest.in" "conftest.in" >"conftest.tmp"
3719 mv "conftest.tmp" "conftest.in"
3720 cp "conftest.in" "conftest.nl"
3721 $as_echo 'GREP' >> "conftest.nl"
3722 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3724 as_fn_arith $ac_count + 1 && ac_count=$as_val
3725 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3726 # Best one so far, save it but keep looking for a better one
3727 ac_cv_path_GREP="$ac_path_GREP"
3728 ac_path_GREP_max=$ac_count
eff02e4f 3729 fi
d4c059d5
ILT
3730 # 10*(2^10) chars as input seems more than enough
3731 test $ac_count -gt 10 && break
3732 done
3733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3734esac
3735
3736 $ac_path_GREP_found && break 3
3737 done
3738 done
3739 done
3740IFS=$as_save_IFS
3741 if test -z "$ac_cv_path_GREP"; then
22e05272 3742 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
eff02e4f 3743 fi
d4c059d5
ILT
3744else
3745 ac_cv_path_GREP=$GREP
eff02e4f 3746fi
eff02e4f 3747
d4c059d5
ILT
3748fi
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3750$as_echo "$ac_cv_path_GREP" >&6; }
3751 GREP="$ac_cv_path_GREP"
eff02e4f 3752
d4c059d5
ILT
3753
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3755$as_echo_n "checking for egrep... " >&6; }
22e05272 3756if ${ac_cv_path_EGREP+:} false; then :
d4c059d5
ILT
3757 $as_echo_n "(cached) " >&6
3758else
3759 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3760 then ac_cv_path_EGREP="$GREP -E"
3761 else
3762 if test -z "$EGREP"; then
3763 ac_path_EGREP_found=false
3764 # Loop through the user's path and test for each of PROGNAME-LIST
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3767do
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_prog in egrep; do
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3773 as_fn_executable_p "$ac_path_EGREP" || continue
d4c059d5
ILT
3774# Check for GNU ac_path_EGREP and select it if it is found.
3775 # Check for GNU $ac_path_EGREP
3776case `"$ac_path_EGREP" --version 2>&1` in
3777*GNU*)
3778 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3779*)
3780 ac_count=0
3781 $as_echo_n 0123456789 >"conftest.in"
3782 while :
3783 do
3784 cat "conftest.in" "conftest.in" >"conftest.tmp"
3785 mv "conftest.tmp" "conftest.in"
3786 cp "conftest.in" "conftest.nl"
3787 $as_echo 'EGREP' >> "conftest.nl"
3788 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3790 as_fn_arith $ac_count + 1 && ac_count=$as_val
3791 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3792 # Best one so far, save it but keep looking for a better one
3793 ac_cv_path_EGREP="$ac_path_EGREP"
3794 ac_path_EGREP_max=$ac_count
3795 fi
3796 # 10*(2^10) chars as input seems more than enough
3797 test $ac_count -gt 10 && break
3798 done
3799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
eff02e4f 3800esac
d4c059d5
ILT
3801
3802 $ac_path_EGREP_found && break 3
3803 done
3804 done
3805 done
3806IFS=$as_save_IFS
3807 if test -z "$ac_cv_path_EGREP"; then
22e05272 3808 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
d4c059d5 3809 fi
eff02e4f 3810else
d4c059d5
ILT
3811 ac_cv_path_EGREP=$EGREP
3812fi
3813
3814 fi
3815fi
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3817$as_echo "$ac_cv_path_EGREP" >&6; }
3818 EGREP="$ac_cv_path_EGREP"
3819
3820
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3822$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 3823if ${ac_cv_header_stdc+:} false; then :
d4c059d5
ILT
3824 $as_echo_n "(cached) " >&6
3825else
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827/* end confdefs.h. */
3828#include <stdlib.h>
3829#include <stdarg.h>
3830#include <string.h>
3831#include <float.h>
3832
3833int
3834main ()
3835{
3836
3837 ;
3838 return 0;
3839}
3840_ACEOF
3841if ac_fn_c_try_compile "$LINENO"; then :
3842 ac_cv_header_stdc=yes
3843else
3844 ac_cv_header_stdc=no
3845fi
3846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847
3848if test $ac_cv_header_stdc = yes; then
3849 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851/* end confdefs.h. */
3852#include <string.h>
3853
3854_ACEOF
3855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3856 $EGREP "memchr" >/dev/null 2>&1; then :
3857
3858else
3859 ac_cv_header_stdc=no
3860fi
3861rm -f conftest*
3862
3863fi
3864
3865if test $ac_cv_header_stdc = yes; then
3866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868/* end confdefs.h. */
3869#include <stdlib.h>
3870
3871_ACEOF
3872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3873 $EGREP "free" >/dev/null 2>&1; then :
3874
3875else
3876 ac_cv_header_stdc=no
3877fi
3878rm -f conftest*
3879
3880fi
3881
3882if test $ac_cv_header_stdc = yes; then
3883 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3884 if test "$cross_compiling" = yes; then :
3885 :
3886else
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888/* end confdefs.h. */
3889#include <ctype.h>
3890#include <stdlib.h>
3891#if ((' ' & 0x0FF) == 0x020)
3892# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3893# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3894#else
3895# define ISLOWER(c) \
3896 (('a' <= (c) && (c) <= 'i') \
3897 || ('j' <= (c) && (c) <= 'r') \
3898 || ('s' <= (c) && (c) <= 'z'))
3899# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3900#endif
3901
3902#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3903int
3904main ()
3905{
3906 int i;
3907 for (i = 0; i < 256; i++)
3908 if (XOR (islower (i), ISLOWER (i))
3909 || toupper (i) != TOUPPER (i))
3910 return 2;
3911 return 0;
3912}
3913_ACEOF
3914if ac_fn_c_try_run "$LINENO"; then :
3915
3916else
3917 ac_cv_header_stdc=no
3918fi
3919rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3920 conftest.$ac_objext conftest.beam conftest.$ac_ext
3921fi
3922
3923fi
3924fi
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3926$as_echo "$ac_cv_header_stdc" >&6; }
3927if test $ac_cv_header_stdc = yes; then
3928
3929$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3930
3931fi
3932
3933# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3934for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3935 inttypes.h stdint.h unistd.h
3936do :
3937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3938ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3939"
22e05272 3940if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d4c059d5
ILT
3941 cat >>confdefs.h <<_ACEOF
3942#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3943_ACEOF
3944
3945fi
3946
3947done
3948
3949
3950
3951 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
22e05272 3952if test "x$ac_cv_header_minix_config_h" = xyes; then :
d4c059d5
ILT
3953 MINIX=yes
3954else
3955 MINIX=
3956fi
3957
3958
3959 if test "$MINIX" = yes; then
3960
3961$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3962
3963
3964$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3965
3966
3967$as_echo "#define _MINIX 1" >>confdefs.h
3968
3969 fi
3970
3971
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3973$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
22e05272 3974if ${ac_cv_safe_to_define___extensions__+:} false; then :
d4c059d5
ILT
3975 $as_echo_n "(cached) " >&6
3976else
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978/* end confdefs.h. */
3979
22e05272
JM
3980# define __EXTENSIONS__ 1
3981 $ac_includes_default
d4c059d5
ILT
3982int
3983main ()
3984{
3985
3986 ;
3987 return 0;
3988}
3989_ACEOF
3990if ac_fn_c_try_compile "$LINENO"; then :
3991 ac_cv_safe_to_define___extensions__=yes
3992else
3993 ac_cv_safe_to_define___extensions__=no
3994fi
3995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996fi
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3998$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3999 test $ac_cv_safe_to_define___extensions__ = yes &&
4000 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4001
4002 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4003
4004 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4005
4006 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4007
4008 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4009
4010
4011
4012libtool_VERSION=1:0:0
4013
4014
af710874
ILT
4015# 1.11.1: Require that version of automake.
4016# foreign: Don't require README, INSTALL, NEWS, etc.
4017# no-define: Don't define PACKAGE and VERSION.
4018# no-dependencies: Don't generate automatic dependencies.
4019# (because it breaks when using bootstrap-lean, since some of the
4020# headers are gone at "make install" time).
4021# -Wall: Issue all automake warnings.
4022# -Wno-portability: Don't warn about constructs supported by GNU make.
4023# (because GCC requires GNU make anyhow).
22e05272 4024am__api_version='1.15'
d4c059d5
ILT
4025
4026# Find a good install program. We prefer a C program (faster),
4027# so one script is as good as another. But avoid the broken or
4028# incompatible versions:
4029# SysV /etc/install, /usr/sbin/install
4030# SunOS /usr/etc/install
4031# IRIX /sbin/install
4032# AIX /bin/install
4033# AmigaOS /C/install, which installs bootblocks on floppy discs
4034# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4035# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4036# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4037# OS/2's system install, which has a completely different semantic
4038# ./install, which can be erroneously created by make from ./install.sh.
4039# Reject install programs that cannot install multiple files.
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4041$as_echo_n "checking for a BSD-compatible install... " >&6; }
4042if test -z "$INSTALL"; then
22e05272 4043if ${ac_cv_path_install+:} false; then :
d4c059d5
ILT
4044 $as_echo_n "(cached) " >&6
4045else
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047for as_dir in $PATH
4048do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 # Account for people who put trailing slashes in PATH elements.
4052case $as_dir/ in #((
4053 ./ | .// | /[cC]/* | \
4054 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4055 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4056 /usr/ucb/* ) ;;
4057 *)
4058 # OSF1 and SCO ODT 3.0 have their own names for install.
4059 # Don't use installbsd from OSF since it installs stuff as root
4060 # by default.
4061 for ac_prog in ginstall scoinst install; do
4062 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4063 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d4c059d5
ILT
4064 if test $ac_prog = install &&
4065 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4066 # AIX install. It has an incompatible calling convention.
4067 :
4068 elif test $ac_prog = install &&
4069 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4070 # program-specific install script used by HP pwplus--don't use.
4071 :
4072 else
4073 rm -rf conftest.one conftest.two conftest.dir
4074 echo one > conftest.one
4075 echo two > conftest.two
4076 mkdir conftest.dir
4077 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4078 test -s conftest.one && test -s conftest.two &&
4079 test -s conftest.dir/conftest.one &&
4080 test -s conftest.dir/conftest.two
4081 then
4082 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4083 break 3
4084 fi
4085 fi
4086 fi
4087 done
4088 done
4089 ;;
4090esac
4091
4092 done
4093IFS=$as_save_IFS
4094
4095rm -rf conftest.one conftest.two conftest.dir
4096
4097fi
4098 if test "${ac_cv_path_install+set}" = set; then
4099 INSTALL=$ac_cv_path_install
4100 else
4101 # As a last resort, use the slow shell script. Don't cache a
4102 # value for INSTALL within a source directory, because that will
4103 # break other packages using the cache if that directory is
4104 # removed, or if the value is a relative name.
4105 INSTALL=$ac_install_sh
4106 fi
4107fi
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4109$as_echo "$INSTALL" >&6; }
4110
4111# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4112# It thinks the first close brace ends the variable substitution.
4113test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4114
4115test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4116
4117test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4118
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4120$as_echo_n "checking whether build environment is sane... " >&6; }
d4c059d5
ILT
4121# Reject unsafe characters in $srcdir or the absolute working directory
4122# name. Accept space and tab only in the latter.
4123am_lf='
4124'
4125case `pwd` in
4126 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 4127 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
d4c059d5
ILT
4128esac
4129case $srcdir in
4130 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 4131 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
d4c059d5
ILT
4132esac
4133
22e05272 4134# Do 'set' in a subshell so we don't clobber the current shell's
d4c059d5
ILT
4135# arguments. Must try -L first in case configure is actually a
4136# symlink; some systems play weird games with the mod time of symlinks
4137# (eg FreeBSD returns the mod time of the symlink's containing
4138# directory).
4139if (
22e05272
JM
4140 am_has_slept=no
4141 for am_try in 1 2; do
4142 echo "timestamp, slept: $am_has_slept" > conftest.file
4143 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4144 if test "$*" = "X"; then
4145 # -L didn't work.
4146 set X `ls -t "$srcdir/configure" conftest.file`
4147 fi
4148 if test "$*" != "X $srcdir/configure conftest.file" \
4149 && test "$*" != "X conftest.file $srcdir/configure"; then
4150
4151 # If neither matched, then we have a broken ls. This can happen
4152 # if, for instance, CONFIG_SHELL is bash and it inherits a
4153 # broken ls alias from the environment. This has actually
4154 # happened. Such a system could not be considered "sane".
4155 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4156 alias in your environment" "$LINENO" 5
4157 fi
4158 if test "$2" = conftest.file || test $am_try -eq 2; then
4159 break
4160 fi
4161 # Just in case.
4162 sleep 1
4163 am_has_slept=yes
4164 done
d4c059d5
ILT
4165 test "$2" = conftest.file
4166 )
4167then
4168 # Ok.
4169 :
4170else
22e05272 4171 as_fn_error $? "newly created file is older than distributed files!
d4c059d5
ILT
4172Check your system clock" "$LINENO" 5
4173fi
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4175$as_echo "yes" >&6; }
22e05272
JM
4176# If we didn't sleep, we still need to ensure time stamps of config.status and
4177# generated files are strictly newer.
4178am_sleep_pid=
4179if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4180 ( sleep 1 ) &
4181 am_sleep_pid=$!
4182fi
4183
4184rm -f conftest.file
4185
d4c059d5
ILT
4186test "$program_prefix" != NONE &&
4187 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4188# Use a double $ so make ignores it.
4189test "$program_suffix" != NONE &&
4190 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4191# Double any \ or $.
4192# By default was `s,x,x', remove it if useless.
4193ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4194program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4195
d4c059d5
ILT
4196if test x"${MISSING+set}" != xset; then
4197 case $am_aux_dir in
4198 *\ * | *\ *)
4199 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4200 *)
4201 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4202 esac
4203fi
4204# Use eval to expand $SHELL
22e05272
JM
4205if eval "$MISSING --is-lightweight"; then
4206 am_missing_run="$MISSING "
d4c059d5
ILT
4207else
4208 am_missing_run=
22e05272
JM
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4210$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
d4c059d5
ILT
4211fi
4212
22e05272 4213if test x"${install_sh+set}" != xset; then
d4c059d5
ILT
4214 case $am_aux_dir in
4215 *\ * | *\ *)
4216 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4217 *)
4218 install_sh="\${SHELL} $am_aux_dir/install-sh"
4219 esac
4220fi
4221
22e05272
JM
4222# Installed binaries are usually stripped using 'strip' when the user
4223# run "make install-strip". However 'strip' might not be the right
d4c059d5 4224# tool to use in cross-compilation environments, therefore Automake
22e05272 4225# will honor the 'STRIP' environment variable to overrule this program.
d4c059d5
ILT
4226if test "$cross_compiling" != no; then
4227 if test -n "$ac_tool_prefix"; then
4228 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4229set dummy ${ac_tool_prefix}strip; ac_word=$2
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4232if ${ac_cv_prog_STRIP+:} false; then :
d4c059d5
ILT
4233 $as_echo_n "(cached) " >&6
4234else
4235 if test -n "$STRIP"; then
4236 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4237else
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4245 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 break 2
4248 fi
4249done
4250 done
4251IFS=$as_save_IFS
4252
4253fi
4254fi
4255STRIP=$ac_cv_prog_STRIP
4256if test -n "$STRIP"; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4258$as_echo "$STRIP" >&6; }
4259else
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261$as_echo "no" >&6; }
4262fi
4263
4264
4265fi
4266if test -z "$ac_cv_prog_STRIP"; then
4267 ac_ct_STRIP=$STRIP
4268 # Extract the first word of "strip", so it can be a program name with args.
4269set dummy strip; ac_word=$2
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4272if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d4c059d5
ILT
4273 $as_echo_n "(cached) " >&6
4274else
4275 if test -n "$ac_ct_STRIP"; then
4276 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4277else
4278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH
4280do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4285 ac_cv_prog_ac_ct_STRIP="strip"
4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4288 fi
4289done
4290 done
4291IFS=$as_save_IFS
4292
4293fi
4294fi
4295ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4296if test -n "$ac_ct_STRIP"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4298$as_echo "$ac_ct_STRIP" >&6; }
4299else
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301$as_echo "no" >&6; }
4302fi
4303
4304 if test "x$ac_ct_STRIP" = x; then
4305 STRIP=":"
4306 else
4307 case $cross_compiling:$ac_tool_warned in
4308yes:)
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4311ac_tool_warned=yes ;;
4312esac
4313 STRIP=$ac_ct_STRIP
4314 fi
4315else
4316 STRIP="$ac_cv_prog_STRIP"
4317fi
4318
4319fi
4320INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4321
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4323$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4324if test -z "$MKDIR_P"; then
22e05272 4325 if ${ac_cv_path_mkdir+:} false; then :
d4c059d5
ILT
4326 $as_echo_n "(cached) " >&6
4327else
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4330do
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_prog in mkdir gmkdir; do
4334 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4335 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
d4c059d5
ILT
4336 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4337 'mkdir (GNU coreutils) '* | \
4338 'mkdir (coreutils) '* | \
4339 'mkdir (fileutils) '4.1*)
4340 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4341 break 3;;
4342 esac
4343 done
4344 done
4345 done
4346IFS=$as_save_IFS
4347
4348fi
4349
22e05272 4350 test -d ./--version && rmdir ./--version
d4c059d5
ILT
4351 if test "${ac_cv_path_mkdir+set}" = set; then
4352 MKDIR_P="$ac_cv_path_mkdir -p"
4353 else
4354 # As a last resort, use the slow shell script. Don't cache a
4355 # value for MKDIR_P within a source directory, because that will
4356 # break other packages using the cache if that directory is
4357 # removed, or if the value is a relative name.
d4c059d5
ILT
4358 MKDIR_P="$ac_install_sh -d"
4359 fi
4360fi
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4362$as_echo "$MKDIR_P" >&6; }
4363
d4c059d5
ILT
4364for ac_prog in gawk mawk nawk awk
4365do
4366 # Extract the first word of "$ac_prog", so it can be a program name with args.
4367set dummy $ac_prog; ac_word=$2
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4370if ${ac_cv_prog_AWK+:} false; then :
d4c059d5
ILT
4371 $as_echo_n "(cached) " >&6
4372else
4373 if test -n "$AWK"; then
4374 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4375else
4376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377for as_dir in $PATH
4378do
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4383 ac_cv_prog_AWK="$ac_prog"
4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4386 fi
4387done
4388 done
4389IFS=$as_save_IFS
4390
4391fi
4392fi
4393AWK=$ac_cv_prog_AWK
4394if test -n "$AWK"; then
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4396$as_echo "$AWK" >&6; }
4397else
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399$as_echo "no" >&6; }
4400fi
4401
4402
4403 test -n "$AWK" && break
4404done
4405
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4407$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4408set x ${MAKE-make}
4409ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 4410if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
d4c059d5
ILT
4411 $as_echo_n "(cached) " >&6
4412else
4413 cat >conftest.make <<\_ACEOF
4414SHELL = /bin/sh
4415all:
4416 @echo '@@@%%%=$(MAKE)=@@@%%%'
4417_ACEOF
22e05272 4418# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
d4c059d5
ILT
4419case `${MAKE-make} -f conftest.make 2>/dev/null` in
4420 *@@@%%%=?*=@@@%%%*)
4421 eval ac_cv_prog_make_${ac_make}_set=yes;;
4422 *)
4423 eval ac_cv_prog_make_${ac_make}_set=no;;
4424esac
4425rm -f conftest.make
4426fi
4427if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4429$as_echo "yes" >&6; }
4430 SET_MAKE=
4431else
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433$as_echo "no" >&6; }
4434 SET_MAKE="MAKE=${MAKE-make}"
4435fi
4436
4437rm -rf .tst 2>/dev/null
4438mkdir .tst 2>/dev/null
4439if test -d .tst; then
4440 am__leading_dot=.
4441else
4442 am__leading_dot=_
4443fi
4444rmdir .tst 2>/dev/null
4445
22e05272
JM
4446# Check whether --enable-silent-rules was given.
4447if test "${enable_silent_rules+set}" = set; then :
4448 enableval=$enable_silent_rules;
4449fi
4450
4451case $enable_silent_rules in # (((
4452 yes) AM_DEFAULT_VERBOSITY=0;;
4453 no) AM_DEFAULT_VERBOSITY=1;;
4454 *) AM_DEFAULT_VERBOSITY=1;;
4455esac
4456am_make=${MAKE-make}
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4458$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4459if ${am_cv_make_support_nested_variables+:} false; then :
4460 $as_echo_n "(cached) " >&6
4461else
4462 if $as_echo 'TRUE=$(BAR$(V))
4463BAR0=false
4464BAR1=true
4465V=1
4466am__doit:
4467 @$(TRUE)
4468.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4469 am_cv_make_support_nested_variables=yes
4470else
4471 am_cv_make_support_nested_variables=no
4472fi
4473fi
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4475$as_echo "$am_cv_make_support_nested_variables" >&6; }
4476if test $am_cv_make_support_nested_variables = yes; then
4477 AM_V='$(V)'
4478 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4479else
4480 AM_V=$AM_DEFAULT_VERBOSITY
4481 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4482fi
4483AM_BACKSLASH='\'
4484
d4c059d5
ILT
4485if test "`cd $srcdir && pwd`" != "`pwd`"; then
4486 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4487 # is not polluted with repeated "-I."
4488 am__isrc=' -I$(srcdir)'
4489 # test to see if srcdir already configured
4490 if test -f $srcdir/config.status; then
22e05272 4491 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
d4c059d5
ILT
4492 fi
4493fi
4494
4495# test whether we have cygpath
4496if test -z "$CYGPATH_W"; then
4497 if (cygpath --version) >/dev/null 2>/dev/null; then
4498 CYGPATH_W='cygpath -w'
4499 else
4500 CYGPATH_W=echo
4501 fi
4502fi
4503
4504
4505# Define the identity of the package.
4506 PACKAGE='libbacktrace'
4507 VERSION='version-unused'
4508
4509
4510# Some tools Automake needs.
4511
4512ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4513
4514
4515AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4516
4517
4518AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4519
4520
4521AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4522
4523
4524MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4525
22e05272
JM
4526# For better backward compatibility. To be removed once Automake 1.9.x
4527# dies out for good. For more background, see:
4528# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4529# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4530mkdir_p='$(MKDIR_P)'
4531
4532# We need awk for the "check" target (and possibly the TAP driver). The
4533# system "awk" is bad on some platforms.
df96c0f7
MH
4534# Always define AMTAR for backward compatibility. Yes, it's still used
4535# in the wild :-( We should find a proper way to deprecate it ...
4536AMTAR='$${TAR-tar}'
d4c059d5 4537
22e05272
JM
4538
4539# We'll loop over all known methods to create a tar archive until one works.
4540_am_tools='gnutar pax cpio none'
4541
df96c0f7 4542am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d4c059d5
ILT
4543
4544
4545
4546
d4c059d5
ILT
4547
4548
22e05272
JM
4549# POSIX will say in a future version that running "rm -f" with no argument
4550# is OK; and we want to be able to make that assumption in our Makefile
4551# recipes. So use an aggressive probe to check that the usage we want is
4552# actually supported "in the wild" to an acceptable degree.
4553# See automake bug#10828.
4554# To make any issue more visible, cause the running configure to be aborted
4555# by default if the 'rm' program in use doesn't match our expectations; the
4556# user can still override this though.
4557if rm -f && rm -fr && rm -rf; then : OK; else
4558 cat >&2 <<'END'
4559Oops!
4560
4561Your 'rm' program seems unable to run without file operands specified
4562on the command line, even when the '-f' option is present. This is contrary
4563to the behaviour of most rm programs out there, and not conforming with
4564the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4565
4566Please tell bug-automake@gnu.org about your system, including the value
4567of your $PATH and any error possibly output before this message. This
4568can help us improve future automake versions.
4569
4570END
4571 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4572 echo 'Configuration will proceed anyway, since you have set the' >&2
4573 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4574 echo >&2
4575 else
4576 cat >&2 <<'END'
4577Aborting the configuration process, to ensure you take notice of the issue.
4578
4579You can download and install GNU coreutils to get an 'rm' implementation
4580that behaves properly: <http://www.gnu.org/software/coreutils/>.
4581
4582If you want to complete the configuration process using your problematic
4583'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4584to "yes", and re-run configure.
4585
4586END
4587 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4588 fi
4589fi
4590
4591
d4c059d5
ILT
4592
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4594$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4595 # Check whether --enable-maintainer-mode was given.
4596if test "${enable_maintainer_mode+set}" = set; then :
4597 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4598else
4599 USE_MAINTAINER_MODE=no
4600fi
4601
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4603$as_echo "$USE_MAINTAINER_MODE" >&6; }
4604 if test $USE_MAINTAINER_MODE = yes; then
4605 MAINTAINER_MODE_TRUE=
4606 MAINTAINER_MODE_FALSE='#'
4607else
4608 MAINTAINER_MODE_TRUE='#'
4609 MAINTAINER_MODE_FALSE=
4610fi
4611
4612 MAINT=$MAINTAINER_MODE_TRUE
4613
4614
4615
4616
4617# Check whether --with-target-subdir was given.
4618if test "${with_target_subdir+set}" = set; then :
4619 withval=$with_target_subdir;
eff02e4f 4620fi
eff02e4f 4621
eff02e4f 4622
d4c059d5
ILT
4623# We must force CC to /not/ be precious variables; otherwise
4624# the wrong, non-multilib-adjusted value will be used in multilibs.
4625# As a side effect, we have to subst CFLAGS ourselves.
eff02e4f 4626
d4c059d5
ILT
4627
4628ac_ext=c
4629ac_cpp='$CPP $CPPFLAGS'
4630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632ac_compiler_gnu=$ac_cv_c_compiler_gnu
4633if test -n "$ac_tool_prefix"; then
4634 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4635set dummy ${ac_tool_prefix}gcc; ac_word=$2
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4638if ${ac_cv_prog_CC+:} false; then :
d4c059d5 4639 $as_echo_n "(cached) " >&6
eff02e4f 4640else
d4c059d5
ILT
4641 if test -n "$CC"; then
4642 ac_cv_prog_CC="$CC" # Let the user override the test.
4643else
4644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645for as_dir in $PATH
4646do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4651 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
4655done
4656 done
4657IFS=$as_save_IFS
eff02e4f 4658
eff02e4f 4659fi
eff02e4f 4660fi
d4c059d5
ILT
4661CC=$ac_cv_prog_CC
4662if test -n "$CC"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4664$as_echo "$CC" >&6; }
eff02e4f 4665else
d4c059d5
ILT
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667$as_echo "no" >&6; }
4668fi
eff02e4f 4669
eff02e4f 4670
eff02e4f 4671fi
d4c059d5
ILT
4672if test -z "$ac_cv_prog_CC"; then
4673 ac_ct_CC=$CC
4674 # Extract the first word of "gcc", so it can be a program name with args.
4675set dummy gcc; ac_word=$2
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4678if ${ac_cv_prog_ac_ct_CC+:} false; then :
d4c059d5
ILT
4679 $as_echo_n "(cached) " >&6
4680else
4681 if test -n "$ac_ct_CC"; then
4682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4683else
4684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685for as_dir in $PATH
4686do
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4691 ac_cv_prog_ac_ct_CC="gcc"
4692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4694 fi
4695done
4696 done
4697IFS=$as_save_IFS
eff02e4f
ILT
4698
4699fi
eff02e4f 4700fi
d4c059d5
ILT
4701ac_ct_CC=$ac_cv_prog_ac_ct_CC
4702if test -n "$ac_ct_CC"; then
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4704$as_echo "$ac_ct_CC" >&6; }
eff02e4f 4705else
d4c059d5
ILT
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707$as_echo "no" >&6; }
4708fi
eff02e4f 4709
d4c059d5
ILT
4710 if test "x$ac_ct_CC" = x; then
4711 CC=""
4712 else
4713 case $cross_compiling:$ac_tool_warned in
4714yes:)
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4717ac_tool_warned=yes ;;
4718esac
4719 CC=$ac_ct_CC
4720 fi
4721else
4722 CC="$ac_cv_prog_CC"
4723fi
eff02e4f 4724
d4c059d5
ILT
4725if test -z "$CC"; then
4726 if test -n "$ac_tool_prefix"; then
4727 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4728set dummy ${ac_tool_prefix}cc; ac_word=$2
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4731if ${ac_cv_prog_CC+:} false; then :
d4c059d5 4732 $as_echo_n "(cached) " >&6
eff02e4f 4733else
d4c059d5
ILT
4734 if test -n "$CC"; then
4735 ac_cv_prog_CC="$CC" # Let the user override the test.
4736else
4737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4744 ac_cv_prog_CC="${ac_tool_prefix}cc"
4745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 break 2
4747 fi
4748done
4749 done
4750IFS=$as_save_IFS
eff02e4f 4751
d4c059d5
ILT
4752fi
4753fi
4754CC=$ac_cv_prog_CC
4755if test -n "$CC"; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4757$as_echo "$CC" >&6; }
4758else
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760$as_echo "no" >&6; }
4761fi
eff02e4f 4762
eff02e4f 4763
d4c059d5
ILT
4764 fi
4765fi
4766if test -z "$CC"; then
4767 # Extract the first word of "cc", so it can be a program name with args.
4768set dummy cc; ac_word=$2
4769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4771if ${ac_cv_prog_CC+:} false; then :
d4c059d5 4772 $as_echo_n "(cached) " >&6
eff02e4f 4773else
d4c059d5
ILT
4774 if test -n "$CC"; then
4775 ac_cv_prog_CC="$CC" # Let the user override the test.
4776else
4777 ac_prog_rejected=no
4778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779for as_dir in $PATH
4780do
4781 IFS=$as_save_IFS
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4785 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4786 ac_prog_rejected=yes
4787 continue
4788 fi
4789 ac_cv_prog_CC="cc"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4792 fi
4793done
4794 done
4795IFS=$as_save_IFS
eff02e4f 4796
d4c059d5
ILT
4797if test $ac_prog_rejected = yes; then
4798 # We found a bogon in the path, so make sure we never use it.
4799 set dummy $ac_cv_prog_CC
4800 shift
4801 if test $# != 0; then
4802 # We chose a different compiler from the bogus one.
4803 # However, it has the same basename, so the bogon will be chosen
4804 # first if we set CC to just the basename; use the full file name.
4805 shift
4806 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4807 fi
eff02e4f 4808fi
eff02e4f 4809fi
eff02e4f 4810fi
d4c059d5
ILT
4811CC=$ac_cv_prog_CC
4812if test -n "$CC"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4814$as_echo "$CC" >&6; }
eff02e4f 4815else
d4c059d5
ILT
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817$as_echo "no" >&6; }
eff02e4f 4818fi
d4c059d5
ILT
4819
4820
4821fi
4822if test -z "$CC"; then
4823 if test -n "$ac_tool_prefix"; then
4824 for ac_prog in cl.exe
4825 do
4826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4827set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4830if ${ac_cv_prog_CC+:} false; then :
eff02e4f
ILT
4831 $as_echo_n "(cached) " >&6
4832else
d4c059d5
ILT
4833 if test -n "$CC"; then
4834 ac_cv_prog_CC="$CC" # Let the user override the test.
4835else
4836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837for as_dir in $PATH
4838do
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4843 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 break 2
4846 fi
4847done
4848 done
4849IFS=$as_save_IFS
eff02e4f 4850
d4c059d5
ILT
4851fi
4852fi
4853CC=$ac_cv_prog_CC
4854if test -n "$CC"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4856$as_echo "$CC" >&6; }
4857else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859$as_echo "no" >&6; }
4860fi
eff02e4f 4861
eff02e4f 4862
d4c059d5
ILT
4863 test -n "$CC" && break
4864 done
eff02e4f 4865fi
d4c059d5
ILT
4866if test -z "$CC"; then
4867 ac_ct_CC=$CC
4868 for ac_prog in cl.exe
4869do
4870 # Extract the first word of "$ac_prog", so it can be a program name with args.
4871set dummy $ac_prog; ac_word=$2
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4874if ${ac_cv_prog_ac_ct_CC+:} false; then :
d4c059d5
ILT
4875 $as_echo_n "(cached) " >&6
4876else
4877 if test -n "$ac_ct_CC"; then
4878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4879else
4880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in $PATH
4882do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4887 ac_cv_prog_ac_ct_CC="$ac_prog"
4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4890 fi
eff02e4f 4891done
d4c059d5
ILT
4892 done
4893IFS=$as_save_IFS
eff02e4f
ILT
4894
4895fi
d4c059d5
ILT
4896fi
4897ac_ct_CC=$ac_cv_prog_ac_ct_CC
4898if test -n "$ac_ct_CC"; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4900$as_echo "$ac_ct_CC" >&6; }
4901else
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903$as_echo "no" >&6; }
eff02e4f
ILT
4904fi
4905
eff02e4f 4906
d4c059d5
ILT
4907 test -n "$ac_ct_CC" && break
4908done
eff02e4f 4909
d4c059d5
ILT
4910 if test "x$ac_ct_CC" = x; then
4911 CC=""
4912 else
4913 case $cross_compiling:$ac_tool_warned in
4914yes:)
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4917ac_tool_warned=yes ;;
eff02e4f 4918esac
d4c059d5
ILT
4919 CC=$ac_ct_CC
4920 fi
eff02e4f
ILT
4921fi
4922
d4c059d5 4923fi
eff02e4f 4924
eff02e4f 4925
d4c059d5
ILT
4926test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4928as_fn_error $? "no acceptable C compiler found in \$PATH
4929See \`config.log' for more details" "$LINENO" 5; }
d4c059d5
ILT
4930
4931# Provide some information about the compiler.
4932$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4933set X $ac_compile
4934ac_compiler=$2
4935for ac_option in --version -v -V -qversion; do
4936 { { ac_try="$ac_compiler $ac_option >&5"
4937case "(($ac_try" in
4938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939 *) ac_try_echo=$ac_try;;
4940esac
4941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4942$as_echo "$ac_try_echo"; } >&5
4943 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4944 ac_status=$?
4945 if test -s conftest.err; then
4946 sed '10a\
4947... rest of stderr output deleted ...
4948 10q' conftest.err >conftest.er1
4949 cat conftest.er1 >&5
d4c059d5 4950 fi
22e05272 4951 rm -f conftest.er1 conftest.err
d4c059d5
ILT
4952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4953 test $ac_status = 0; }
4954done
4955
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4957$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4958if ${ac_cv_c_compiler_gnu+:} false; then :
d4c059d5
ILT
4959 $as_echo_n "(cached) " >&6
4960else
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962/* end confdefs.h. */
4963
4964int
4965main ()
4966{
4967#ifndef __GNUC__
4968 choke me
4969#endif
4970
4971 ;
4972 return 0;
4973}
4974_ACEOF
4975if ac_fn_c_try_compile "$LINENO"; then :
4976 ac_compiler_gnu=yes
4977else
4978 ac_compiler_gnu=no
eff02e4f 4979fi
d4c059d5
ILT
4980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981ac_cv_c_compiler_gnu=$ac_compiler_gnu
eff02e4f 4982
eff02e4f 4983fi
d4c059d5
ILT
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4985$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4986if test $ac_compiler_gnu = yes; then
4987 GCC=yes
eff02e4f 4988else
d4c059d5 4989 GCC=
eff02e4f 4990fi
d4c059d5
ILT
4991ac_test_CFLAGS=${CFLAGS+set}
4992ac_save_CFLAGS=$CFLAGS
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4994$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4995if ${ac_cv_prog_cc_g+:} false; then :
d4c059d5
ILT
4996 $as_echo_n "(cached) " >&6
4997else
4998 ac_save_c_werror_flag=$ac_c_werror_flag
4999 ac_c_werror_flag=yes
5000 ac_cv_prog_cc_g=no
5001 CFLAGS="-g"
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003/* end confdefs.h. */
eff02e4f 5004
d4c059d5
ILT
5005int
5006main ()
5007{
eff02e4f 5008
d4c059d5
ILT
5009 ;
5010 return 0;
5011}
5012_ACEOF
5013if ac_fn_c_try_compile "$LINENO"; then :
5014 ac_cv_prog_cc_g=yes
eff02e4f 5015else
d4c059d5
ILT
5016 CFLAGS=""
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018/* end confdefs.h. */
eff02e4f 5019
d4c059d5
ILT
5020int
5021main ()
5022{
eff02e4f 5023
d4c059d5
ILT
5024 ;
5025 return 0;
5026}
5027_ACEOF
5028if ac_fn_c_try_compile "$LINENO"; then :
eff02e4f 5029
d4c059d5
ILT
5030else
5031 ac_c_werror_flag=$ac_save_c_werror_flag
5032 CFLAGS="-g"
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034/* end confdefs.h. */
eff02e4f 5035
d4c059d5
ILT
5036int
5037main ()
5038{
5039
5040 ;
5041 return 0;
5042}
5043_ACEOF
5044if ac_fn_c_try_compile "$LINENO"; then :
5045 ac_cv_prog_cc_g=yes
5046fi
5047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048fi
5049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050fi
5051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 ac_c_werror_flag=$ac_save_c_werror_flag
5053fi
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5055$as_echo "$ac_cv_prog_cc_g" >&6; }
5056if test "$ac_test_CFLAGS" = set; then
5057 CFLAGS=$ac_save_CFLAGS
5058elif test $ac_cv_prog_cc_g = yes; then
5059 if test "$GCC" = yes; then
5060 CFLAGS="-g -O2"
5061 else
5062 CFLAGS="-g"
5063 fi
eff02e4f 5064else
d4c059d5
ILT
5065 if test "$GCC" = yes; then
5066 CFLAGS="-O2"
5067 else
5068 CFLAGS=
5069 fi
5070fi
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5072$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 5073if ${ac_cv_prog_cc_c89+:} false; then :
d4c059d5
ILT
5074 $as_echo_n "(cached) " >&6
5075else
5076 ac_cv_prog_cc_c89=no
5077ac_save_CC=$CC
5078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079/* end confdefs.h. */
5080#include <stdarg.h>
5081#include <stdio.h>
22e05272 5082struct stat;
d4c059d5
ILT
5083/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5084struct buf { int x; };
5085FILE * (*rcsopen) (struct buf *, struct stat *, int);
5086static char *e (p, i)
5087 char **p;
5088 int i;
5089{
5090 return p[i];
5091}
5092static char *f (char * (*g) (char **, int), char **p, ...)
5093{
5094 char *s;
5095 va_list v;
5096 va_start (v,p);
5097 s = g (p, va_arg (v,int));
5098 va_end (v);
5099 return s;
5100}
5101
5102/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5103 function prototypes and stuff, but not '\xHH' hex character constants.
5104 These don't provoke an error unfortunately, instead are silently treated
5105 as 'x'. The following induces an error, until -std is added to get
5106 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5107 array size at least. It's necessary to write '\x00'==0 to get something
5108 that's true only with -std. */
5109int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5110
5111/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5112 inside strings and character constants. */
5113#define FOO(x) 'x'
5114int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5115
5116int test (int i, double x);
5117struct s1 {int (*f) (int a);};
5118struct s2 {int (*f) (double a);};
5119int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5120int argc;
5121char **argv;
5122int
5123main ()
5124{
5125return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5126 ;
5127 return 0;
5128}
5129_ACEOF
5130for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5131 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5132do
5133 CC="$ac_save_CC $ac_arg"
5134 if ac_fn_c_try_compile "$LINENO"; then :
5135 ac_cv_prog_cc_c89=$ac_arg
eff02e4f 5136fi
d4c059d5
ILT
5137rm -f core conftest.err conftest.$ac_objext
5138 test "x$ac_cv_prog_cc_c89" != "xno" && break
5139done
5140rm -f conftest.$ac_ext
5141CC=$ac_save_CC
eff02e4f
ILT
5142
5143fi
d4c059d5
ILT
5144# AC_CACHE_VAL
5145case "x$ac_cv_prog_cc_c89" in
5146 x)
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5148$as_echo "none needed" >&6; } ;;
5149 xno)
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5151$as_echo "unsupported" >&6; } ;;
5152 *)
5153 CC="$CC $ac_cv_prog_cc_c89"
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5155$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5156esac
5157if test "x$ac_cv_prog_cc_c89" != xno; then :
eff02e4f 5158
eff02e4f
ILT
5159fi
5160
d4c059d5
ILT
5161ac_ext=c
5162ac_cpp='$CPP $CPPFLAGS'
5163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165ac_compiler_gnu=$ac_cv_c_compiler_gnu
eff02e4f 5166
22e05272
JM
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
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5173$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5174if ${am_cv_prog_cc_c_o+:} false; then :
5175 $as_echo_n "(cached) " >&6
5176else
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178/* end confdefs.h. */
5179
5180int
5181main ()
5182{
5183
5184 ;
5185 return 0;
5186}
5187_ACEOF
5188 # Make sure it works both with $CC and with simple cc.
5189 # Following AC_PROG_CC_C_O, we do the test twice because some
5190 # compilers refuse to overwrite an existing .o file with -o,
5191 # though they will create one.
5192 am_cv_prog_cc_c_o=yes
5193 for am_i in 1 2; do
5194 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5195 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } \
5199 && test -f conftest2.$ac_objext; then
5200 : OK
5201 else
5202 am_cv_prog_cc_c_o=no
5203 break
5204 fi
5205 done
5206 rm -f core conftest*
5207 unset am_i
5208fi
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5210$as_echo "$am_cv_prog_cc_c_o" >&6; }
5211if test "$am_cv_prog_cc_c_o" != yes; then
5212 # Losing compiler, so override with the script.
5213 # FIXME: It is wrong to rewrite CC.
5214 # But if we don't then we get into trouble of one sort or another.
5215 # A longer-term fix would be to have automake use am__CC in this case,
5216 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5217 CC="$am_aux_dir/compile $CC"
5218fi
5219ac_ext=c
5220ac_cpp='$CPP $CPPFLAGS'
5221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223ac_compiler_gnu=$ac_cv_c_compiler_gnu
5224
5225
eff02e4f
ILT
5226
5227
5228
5229
5230if test -n "$ac_tool_prefix"; then
5231 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5232set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5235if ${ac_cv_prog_RANLIB+:} false; then :
eff02e4f
ILT
5236 $as_echo_n "(cached) " >&6
5237else
5238 if test -n "$RANLIB"; then
5239 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5240else
5241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH
5243do
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5248 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 break 2
5251 fi
5252done
5253 done
5254IFS=$as_save_IFS
5255
5256fi
5257fi
5258RANLIB=$ac_cv_prog_RANLIB
5259if test -n "$RANLIB"; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5261$as_echo "$RANLIB" >&6; }
5262else
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264$as_echo "no" >&6; }
5265fi
5266
5267
5268fi
5269if test -z "$ac_cv_prog_RANLIB"; then
5270 ac_ct_RANLIB=$RANLIB
5271 # Extract the first word of "ranlib", so it can be a program name with args.
5272set dummy ranlib; ac_word=$2
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5275if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
eff02e4f
ILT
5276 $as_echo_n "(cached) " >&6
5277else
5278 if test -n "$ac_ct_RANLIB"; then
5279 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5280else
5281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282for as_dir in $PATH
5283do
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5288 ac_cv_prog_ac_ct_RANLIB="ranlib"
5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 break 2
5291 fi
5292done
5293 done
5294IFS=$as_save_IFS
5295
5296fi
5297fi
5298ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5299if test -n "$ac_ct_RANLIB"; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5301$as_echo "$ac_ct_RANLIB" >&6; }
5302else
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304$as_echo "no" >&6; }
5305fi
5306
5307 if test "x$ac_ct_RANLIB" = x; then
5308 RANLIB=":"
5309 else
5310 case $cross_compiling:$ac_tool_warned in
5311yes:)
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5314ac_tool_warned=yes ;;
5315esac
5316 RANLIB=$ac_ct_RANLIB
5317 fi
5318else
5319 RANLIB="$ac_cv_prog_RANLIB"
5320fi
5321
5322
5323for ac_prog in gawk mawk nawk awk
5324do
5325 # Extract the first word of "$ac_prog", so it can be a program name with args.
5326set dummy $ac_prog; ac_word=$2
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5329if ${ac_cv_prog_AWK+:} false; then :
eff02e4f
ILT
5330 $as_echo_n "(cached) " >&6
5331else
5332 if test -n "$AWK"; then
5333 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5334else
5335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336for as_dir in $PATH
5337do
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5342 ac_cv_prog_AWK="$ac_prog"
5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 break 2
5345 fi
5346done
5347 done
5348IFS=$as_save_IFS
5349
5350fi
5351fi
5352AWK=$ac_cv_prog_AWK
5353if test -n "$AWK"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5355$as_echo "$AWK" >&6; }
5356else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358$as_echo "no" >&6; }
5359fi
5360
5361
5362 test -n "$AWK" && break
5363done
5364
5365case "$AWK" in
22e05272 5366"") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
eff02e4f
ILT
5367esac
5368
5369case `pwd` in
5370 *\ * | *\ *)
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5372$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5373esac
5374
5375
5376
5377macro_version='2.2.7a'
5378macro_revision='1.3134'
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392ltmain="$ac_aux_dir/ltmain.sh"
5393
5394# Backslashify metacharacters that are still active within
5395# double-quoted strings.
5396sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5397
5398# Same as above, but do not quote variable references.
5399double_quote_subst='s/\(["`\\]\)/\\\1/g'
5400
5401# Sed substitution to delay expansion of an escaped shell variable in a
5402# double_quote_subst'ed string.
5403delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5404
5405# Sed substitution to delay expansion of an escaped single quote.
5406delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5407
5408# Sed substitution to avoid accidental globbing in evaled expressions
5409no_glob_subst='s/\*/\\\*/g'
5410
5411ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5412ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5413ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5414
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5416$as_echo_n "checking how to print strings... " >&6; }
5417# Test print first, because it will be a builtin if present.
5418if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5419 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5420 ECHO='print -r --'
5421elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5422 ECHO='printf %s\n'
5423else
5424 # Use this function as a fallback that always works.
5425 func_fallback_echo ()
5426 {
5427 eval 'cat <<_LTECHO_EOF
5428$1
5429_LTECHO_EOF'
5430 }
5431 ECHO='func_fallback_echo'
5432fi
5433
5434# func_echo_all arg...
5435# Invoke $ECHO with all args, space-separated.
5436func_echo_all ()
5437{
5438 $ECHO ""
5439}
5440
5441case "$ECHO" in
5442 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5443$as_echo "printf" >&6; } ;;
5444 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5445$as_echo "print -r" >&6; } ;;
5446 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5447$as_echo "cat" >&6; } ;;
5448esac
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
d4c059d5 5464$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 5465if ${ac_cv_path_SED+:} false; then :
eff02e4f
ILT
5466 $as_echo_n "(cached) " >&6
5467else
d4c059d5
ILT
5468 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5469 for ac_i in 1 2 3 4 5 6 7; do
5470 ac_script="$ac_script$as_nl$ac_script"
5471 done
5472 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5473 { ac_script=; unset ac_script;}
5474 if test -z "$SED"; then
5475 ac_path_SED_found=false
eff02e4f
ILT
5476 # Loop through the user's path and test for each of PROGNAME-LIST
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d4c059d5 5478for as_dir in $PATH
eff02e4f
ILT
5479do
5480 IFS=$as_save_IFS
5481 test -z "$as_dir" && as_dir=.
d4c059d5 5482 for ac_prog in sed gsed; do
eff02e4f 5483 for ac_exec_ext in '' $ac_executable_extensions; do
d4c059d5 5484 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5485 as_fn_executable_p "$ac_path_SED" || continue
d4c059d5
ILT
5486# Check for GNU ac_path_SED and select it if it is found.
5487 # Check for GNU $ac_path_SED
5488case `"$ac_path_SED" --version 2>&1` in
eff02e4f 5489*GNU*)
d4c059d5 5490 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
eff02e4f
ILT
5491*)
5492 ac_count=0
5493 $as_echo_n 0123456789 >"conftest.in"
5494 while :
5495 do
5496 cat "conftest.in" "conftest.in" >"conftest.tmp"
5497 mv "conftest.tmp" "conftest.in"
5498 cp "conftest.in" "conftest.nl"
d4c059d5
ILT
5499 $as_echo '' >> "conftest.nl"
5500 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
eff02e4f
ILT
5501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5502 as_fn_arith $ac_count + 1 && ac_count=$as_val
d4c059d5 5503 if test $ac_count -gt ${ac_path_SED_max-0}; then
eff02e4f 5504 # Best one so far, save it but keep looking for a better one
d4c059d5
ILT
5505 ac_cv_path_SED="$ac_path_SED"
5506 ac_path_SED_max=$ac_count
eff02e4f
ILT
5507 fi
5508 # 10*(2^10) chars as input seems more than enough
5509 test $ac_count -gt 10 && break
5510 done
5511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5512esac
5513
d4c059d5 5514 $ac_path_SED_found && break 3
eff02e4f
ILT
5515 done
5516 done
5517 done
5518IFS=$as_save_IFS
d4c059d5 5519 if test -z "$ac_cv_path_SED"; then
22e05272 5520 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
eff02e4f
ILT
5521 fi
5522else
d4c059d5 5523 ac_cv_path_SED=$SED
eff02e4f
ILT
5524fi
5525
eff02e4f 5526fi
d4c059d5
ILT
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5528$as_echo "$ac_cv_path_SED" >&6; }
5529 SED="$ac_cv_path_SED"
5530 rm -f conftest.sed
5531
5532test -z "$SED" && SED=sed
5533Xsed="$SED -e 1s/^X//"
5534
5535
5536
5537
5538
5539
5540
5541
5542
eff02e4f
ILT
5543
5544
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5546$as_echo_n "checking for fgrep... " >&6; }
22e05272 5547if ${ac_cv_path_FGREP+:} false; then :
eff02e4f
ILT
5548 $as_echo_n "(cached) " >&6
5549else
5550 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5551 then ac_cv_path_FGREP="$GREP -F"
5552 else
5553 if test -z "$FGREP"; then
5554 ac_path_FGREP_found=false
5555 # Loop through the user's path and test for each of PROGNAME-LIST
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5558do
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_prog in fgrep; do
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5564 as_fn_executable_p "$ac_path_FGREP" || continue
eff02e4f
ILT
5565# Check for GNU ac_path_FGREP and select it if it is found.
5566 # Check for GNU $ac_path_FGREP
5567case `"$ac_path_FGREP" --version 2>&1` in
5568*GNU*)
5569 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5570*)
5571 ac_count=0
5572 $as_echo_n 0123456789 >"conftest.in"
5573 while :
5574 do
5575 cat "conftest.in" "conftest.in" >"conftest.tmp"
5576 mv "conftest.tmp" "conftest.in"
5577 cp "conftest.in" "conftest.nl"
5578 $as_echo 'FGREP' >> "conftest.nl"
5579 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5581 as_fn_arith $ac_count + 1 && ac_count=$as_val
5582 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5583 # Best one so far, save it but keep looking for a better one
5584 ac_cv_path_FGREP="$ac_path_FGREP"
5585 ac_path_FGREP_max=$ac_count
5586 fi
5587 # 10*(2^10) chars as input seems more than enough
5588 test $ac_count -gt 10 && break
5589 done
5590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5591esac
5592
5593 $ac_path_FGREP_found && break 3
5594 done
5595 done
5596 done
5597IFS=$as_save_IFS
5598 if test -z "$ac_cv_path_FGREP"; then
22e05272 5599 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
eff02e4f
ILT
5600 fi
5601else
5602 ac_cv_path_FGREP=$FGREP
5603fi
5604
5605 fi
5606fi
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5608$as_echo "$ac_cv_path_FGREP" >&6; }
5609 FGREP="$ac_cv_path_FGREP"
5610
5611
5612test -z "$GREP" && GREP=grep
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632# Check whether --with-gnu-ld was given.
5633if test "${with_gnu_ld+set}" = set; then :
5634 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5635else
5636 with_gnu_ld=no
5637fi
5638
5639ac_prog=ld
5640if test "$GCC" = yes; then
5641 # Check if gcc -print-prog-name=ld gives a path.
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5643$as_echo_n "checking for ld used by $CC... " >&6; }
5644 case $host in
5645 *-*-mingw*)
5646 # gcc leaves a trailing carriage return which upsets mingw
5647 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5648 *)
5649 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5650 esac
5651 case $ac_prog in
5652 # Accept absolute paths.
5653 [\\/]* | ?:[\\/]*)
5654 re_direlt='/[^/][^/]*/\.\./'
5655 # Canonicalize the pathname of ld
5656 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5657 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5658 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5659 done
5660 test -z "$LD" && LD="$ac_prog"
5661 ;;
5662 "")
5663 # If it fails, then pretend we aren't using GCC.
5664 ac_prog=ld
5665 ;;
5666 *)
5667 # If it is relative, then search for the first ld in PATH.
5668 with_gnu_ld=unknown
5669 ;;
5670 esac
5671elif test "$with_gnu_ld" = yes; then
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5673$as_echo_n "checking for GNU ld... " >&6; }
5674else
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5676$as_echo_n "checking for non-GNU ld... " >&6; }
5677fi
22e05272 5678if ${lt_cv_path_LD+:} false; then :
eff02e4f
ILT
5679 $as_echo_n "(cached) " >&6
5680else
5681 if test -z "$LD"; then
5682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5683 for ac_dir in $PATH; do
5684 IFS="$lt_save_ifs"
5685 test -z "$ac_dir" && ac_dir=.
5686 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5687 lt_cv_path_LD="$ac_dir/$ac_prog"
5688 # Check to see if the program is GNU ld. I'd rather use --version,
5689 # but apparently some variants of GNU ld only accept -v.
5690 # Break only if it was the GNU/non-GNU ld that we prefer.
5691 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5692 *GNU* | *'with BFD'*)
5693 test "$with_gnu_ld" != no && break
5694 ;;
5695 *)
5696 test "$with_gnu_ld" != yes && break
5697 ;;
5698 esac
5699 fi
5700 done
5701 IFS="$lt_save_ifs"
5702else
5703 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5704fi
5705fi
5706
5707LD="$lt_cv_path_LD"
5708if test -n "$LD"; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5710$as_echo "$LD" >&6; }
5711else
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713$as_echo "no" >&6; }
5714fi
22e05272 5715test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
eff02e4f
ILT
5716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5717$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 5718if ${lt_cv_prog_gnu_ld+:} false; then :
eff02e4f
ILT
5719 $as_echo_n "(cached) " >&6
5720else
5721 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5722case `$LD -v 2>&1 </dev/null` in
5723*GNU* | *'with BFD'*)
5724 lt_cv_prog_gnu_ld=yes
5725 ;;
5726*)
5727 lt_cv_prog_gnu_ld=no
5728 ;;
5729esac
5730fi
5731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5732$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5733with_gnu_ld=$lt_cv_prog_gnu_ld
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5744$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 5745if ${lt_cv_path_NM+:} false; then :
eff02e4f
ILT
5746 $as_echo_n "(cached) " >&6
5747else
5748 if test -n "$NM"; then
5749 # Let the user override the test.
5750 lt_cv_path_NM="$NM"
5751else
5752 lt_nm_to_check="${ac_tool_prefix}nm"
5753 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5754 lt_nm_to_check="$lt_nm_to_check nm"
5755 fi
5756 for lt_tmp_nm in $lt_nm_to_check; do
5757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5758 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5759 IFS="$lt_save_ifs"
5760 test -z "$ac_dir" && ac_dir=.
5761 tmp_nm="$ac_dir/$lt_tmp_nm"
5762 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5763 # Check to see if the nm accepts a BSD-compat flag.
5764 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5765 # nm: unknown option "B" ignored
5766 # Tru64's nm complains that /dev/null is an invalid object file
5767 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5768 */dev/null* | *'Invalid file or object type'*)
5769 lt_cv_path_NM="$tmp_nm -B"
5770 break
5771 ;;
5772 *)
5773 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5774 */dev/null*)
5775 lt_cv_path_NM="$tmp_nm -p"
5776 break
5777 ;;
5778 *)
5779 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5780 continue # so that we can try to find one that supports BSD flags
5781 ;;
5782 esac
5783 ;;
5784 esac
5785 fi
5786 done
5787 IFS="$lt_save_ifs"
5788 done
5789 : ${lt_cv_path_NM=no}
5790fi
5791fi
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5793$as_echo "$lt_cv_path_NM" >&6; }
5794if test "$lt_cv_path_NM" != "no"; then
5795 NM="$lt_cv_path_NM"
5796else
5797 # Didn't find any BSD compatible name lister, look for dumpbin.
5798 if test -n "$DUMPBIN"; then :
5799 # Let the user override the test.
5800 else
5801 if test -n "$ac_tool_prefix"; then
5802 for ac_prog in dumpbin "link -dump"
5803 do
5804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5805set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5808if ${ac_cv_prog_DUMPBIN+:} false; then :
eff02e4f
ILT
5809 $as_echo_n "(cached) " >&6
5810else
5811 if test -n "$DUMPBIN"; then
5812 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5813else
5814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH
5816do
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5821 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 break 2
5824 fi
5825done
5826 done
5827IFS=$as_save_IFS
5828
5829fi
5830fi
5831DUMPBIN=$ac_cv_prog_DUMPBIN
5832if test -n "$DUMPBIN"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5834$as_echo "$DUMPBIN" >&6; }
5835else
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837$as_echo "no" >&6; }
5838fi
5839
5840
5841 test -n "$DUMPBIN" && break
5842 done
5843fi
5844if test -z "$DUMPBIN"; then
5845 ac_ct_DUMPBIN=$DUMPBIN
5846 for ac_prog in dumpbin "link -dump"
5847do
5848 # Extract the first word of "$ac_prog", so it can be a program name with args.
5849set dummy $ac_prog; ac_word=$2
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5852if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
eff02e4f
ILT
5853 $as_echo_n "(cached) " >&6
5854else
5855 if test -n "$ac_ct_DUMPBIN"; then
5856 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5857else
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5865 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 2
5868 fi
5869done
5870 done
5871IFS=$as_save_IFS
5872
5873fi
5874fi
5875ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5876if test -n "$ac_ct_DUMPBIN"; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5878$as_echo "$ac_ct_DUMPBIN" >&6; }
5879else
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881$as_echo "no" >&6; }
5882fi
5883
5884
5885 test -n "$ac_ct_DUMPBIN" && break
5886done
5887
5888 if test "x$ac_ct_DUMPBIN" = x; then
5889 DUMPBIN=":"
5890 else
5891 case $cross_compiling:$ac_tool_warned in
5892yes:)
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5895ac_tool_warned=yes ;;
5896esac
5897 DUMPBIN=$ac_ct_DUMPBIN
5898 fi
5899fi
5900
5901 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5902 *COFF*)
5903 DUMPBIN="$DUMPBIN -symbols"
5904 ;;
5905 *)
5906 DUMPBIN=:
5907 ;;
5908 esac
5909 fi
5910
5911 if test "$DUMPBIN" != ":"; then
5912 NM="$DUMPBIN"
5913 fi
5914fi
5915test -z "$NM" && NM=nm
5916
5917
5918
5919
5920
5921
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5923$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 5924if ${lt_cv_nm_interface+:} false; then :
eff02e4f
ILT
5925 $as_echo_n "(cached) " >&6
5926else
5927 lt_cv_nm_interface="BSD nm"
5928 echo "int some_variable = 0;" > conftest.$ac_ext
5929 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5930 (eval "$ac_compile" 2>conftest.err)
5931 cat conftest.err >&5
5932 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5933 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5934 cat conftest.err >&5
5935 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5936 cat conftest.out >&5
5937 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5938 lt_cv_nm_interface="MS dumpbin"
5939 fi
5940 rm -f conftest*
5941fi
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5943$as_echo "$lt_cv_nm_interface" >&6; }
5944
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5946$as_echo_n "checking whether ln -s works... " >&6; }
5947LN_S=$as_ln_s
5948if test "$LN_S" = "ln -s"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5950$as_echo "yes" >&6; }
5951else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5953$as_echo "no, using $LN_S" >&6; }
5954fi
5955
5956# find the maximum length of command line arguments
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5958$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 5959if ${lt_cv_sys_max_cmd_len+:} false; then :
eff02e4f
ILT
5960 $as_echo_n "(cached) " >&6
5961else
5962 i=0
5963 teststring="ABCD"
5964
5965 case $build_os in
5966 msdosdjgpp*)
5967 # On DJGPP, this test can blow up pretty badly due to problems in libc
5968 # (any single argument exceeding 2000 bytes causes a buffer overrun
5969 # during glob expansion). Even if it were fixed, the result of this
5970 # check would be larger than it should be.
5971 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5972 ;;
5973
5974 gnu*)
5975 # Under GNU Hurd, this test is not required because there is
5976 # no limit to the length of command line arguments.
5977 # Libtool will interpret -1 as no limit whatsoever
5978 lt_cv_sys_max_cmd_len=-1;
5979 ;;
5980
5981 cygwin* | mingw* | cegcc*)
5982 # On Win9x/ME, this test blows up -- it succeeds, but takes
5983 # about 5 minutes as the teststring grows exponentially.
5984 # Worse, since 9x/ME are not pre-emptively multitasking,
5985 # you end up with a "frozen" computer, even though with patience
5986 # the test eventually succeeds (with a max line length of 256k).
5987 # Instead, let's just punt: use the minimum linelength reported by
5988 # all of the supported platforms: 8192 (on NT/2K/XP).
5989 lt_cv_sys_max_cmd_len=8192;
5990 ;;
5991
5992 mint*)
5993 # On MiNT this can take a long time and run out of memory.
5994 lt_cv_sys_max_cmd_len=8192;
5995 ;;
5996
5997 amigaos*)
5998 # On AmigaOS with pdksh, this test takes hours, literally.
5999 # So we just punt and use a minimum line length of 8192.
6000 lt_cv_sys_max_cmd_len=8192;
6001 ;;
6002
6003 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6004 # This has been around since 386BSD, at least. Likely further.
6005 if test -x /sbin/sysctl; then
6006 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6007 elif test -x /usr/sbin/sysctl; then
6008 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6009 else
6010 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6011 fi
6012 # And add a safety zone
6013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6015 ;;
6016
6017 interix*)
6018 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6019 lt_cv_sys_max_cmd_len=196608
6020 ;;
6021
6022 osf*)
6023 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6024 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6025 # nice to cause kernel panics so lets avoid the loop below.
6026 # First set a reasonable default.
6027 lt_cv_sys_max_cmd_len=16384
6028 #
6029 if test -x /sbin/sysconfig; then
6030 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6031 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6032 esac
6033 fi
6034 ;;
6035 sco3.2v5*)
6036 lt_cv_sys_max_cmd_len=102400
6037 ;;
6038 sysv5* | sco5v6* | sysv4.2uw2*)
6039 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6040 if test -n "$kargmax"; then
6041 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6042 else
6043 lt_cv_sys_max_cmd_len=32768
6044 fi
6045 ;;
6046 *)
6047 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6048 if test -n "$lt_cv_sys_max_cmd_len"; then
6049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6051 else
6052 # Make teststring a little bigger before we do anything with it.
6053 # a 1K string should be a reasonable start.
6054 for i in 1 2 3 4 5 6 7 8 ; do
6055 teststring=$teststring$teststring
6056 done
6057 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6058 # If test is not a shell built-in, we'll probably end up computing a
6059 # maximum length that is only half of the actual maximum length, but
6060 # we can't tell.
6061 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6062 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6063 test $i != 17 # 1/2 MB should be enough
6064 do
6065 i=`expr $i + 1`
6066 teststring=$teststring$teststring
6067 done
6068 # Only check the string length outside the loop.
6069 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6070 teststring=
6071 # Add a significant safety factor because C++ compilers can tack on
6072 # massive amounts of additional arguments before passing them to the
6073 # linker. It appears as though 1/2 is a usable value.
6074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6075 fi
6076 ;;
6077 esac
6078
6079fi
6080
6081if test -n $lt_cv_sys_max_cmd_len ; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6083$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6084else
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6086$as_echo "none" >&6; }
6087fi
6088max_cmd_len=$lt_cv_sys_max_cmd_len
6089
6090
6091
6092
6093
6094
6095: ${CP="cp -f"}
6096: ${MV="mv -f"}
6097: ${RM="rm -f"}
6098
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6100$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6101# Try some XSI features
6102xsi_shell=no
6103( _lt_dummy="a/b/c"
6104 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6105 = c,a/b,, \
6106 && eval 'test $(( 1 + 1 )) -eq 2 \
6107 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6108 && xsi_shell=yes
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6110$as_echo "$xsi_shell" >&6; }
6111
6112
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6114$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6115lt_shell_append=no
6116( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6117 >/dev/null 2>&1 \
6118 && lt_shell_append=yes
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6120$as_echo "$lt_shell_append" >&6; }
6121
6122
6123if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6124 lt_unset=unset
6125else
6126 lt_unset=false
6127fi
6128
6129
6130
6131
6132
6133# test EBCDIC or ASCII
6134case `echo X|tr X '\101'` in
6135 A) # ASCII based system
6136 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6137 lt_SP2NL='tr \040 \012'
6138 lt_NL2SP='tr \015\012 \040\040'
6139 ;;
6140 *) # EBCDIC based system
6141 lt_SP2NL='tr \100 \n'
6142 lt_NL2SP='tr \r\n \100\100'
6143 ;;
6144esac
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6155$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 6156if ${lt_cv_ld_reload_flag+:} false; then :
eff02e4f
ILT
6157 $as_echo_n "(cached) " >&6
6158else
6159 lt_cv_ld_reload_flag='-r'
6160fi
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6162$as_echo "$lt_cv_ld_reload_flag" >&6; }
6163reload_flag=$lt_cv_ld_reload_flag
6164case $reload_flag in
6165"" | " "*) ;;
6166*) reload_flag=" $reload_flag" ;;
6167esac
6168reload_cmds='$LD$reload_flag -o $output$reload_objs'
6169case $host_os in
6170 darwin*)
6171 if test "$GCC" = yes; then
6172 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6173 else
6174 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6175 fi
6176 ;;
6177esac
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187if test -n "$ac_tool_prefix"; then
6188 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6189set dummy ${ac_tool_prefix}objdump; ac_word=$2
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6192if ${ac_cv_prog_OBJDUMP+:} false; then :
eff02e4f
ILT
6193 $as_echo_n "(cached) " >&6
6194else
6195 if test -n "$OBJDUMP"; then
6196 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6197else
6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6205 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6208 fi
6209done
6210 done
6211IFS=$as_save_IFS
6212
6213fi
6214fi
6215OBJDUMP=$ac_cv_prog_OBJDUMP
6216if test -n "$OBJDUMP"; then
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6218$as_echo "$OBJDUMP" >&6; }
6219else
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221$as_echo "no" >&6; }
6222fi
6223
6224
6225fi
6226if test -z "$ac_cv_prog_OBJDUMP"; then
6227 ac_ct_OBJDUMP=$OBJDUMP
6228 # Extract the first word of "objdump", so it can be a program name with args.
6229set dummy objdump; ac_word=$2
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6232if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
eff02e4f
ILT
6233 $as_echo_n "(cached) " >&6
6234else
6235 if test -n "$ac_ct_OBJDUMP"; then
6236 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6237else
6238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239for as_dir in $PATH
6240do
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6245 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 break 2
6248 fi
6249done
6250 done
6251IFS=$as_save_IFS
6252
6253fi
6254fi
6255ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6256if test -n "$ac_ct_OBJDUMP"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6258$as_echo "$ac_ct_OBJDUMP" >&6; }
6259else
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261$as_echo "no" >&6; }
6262fi
6263
6264 if test "x$ac_ct_OBJDUMP" = x; then
6265 OBJDUMP="false"
6266 else
6267 case $cross_compiling:$ac_tool_warned in
6268yes:)
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6271ac_tool_warned=yes ;;
6272esac
6273 OBJDUMP=$ac_ct_OBJDUMP
6274 fi
6275else
6276 OBJDUMP="$ac_cv_prog_OBJDUMP"
6277fi
6278
6279test -z "$OBJDUMP" && OBJDUMP=objdump
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6290$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 6291if ${lt_cv_deplibs_check_method+:} false; then :
eff02e4f
ILT
6292 $as_echo_n "(cached) " >&6
6293else
6294 lt_cv_file_magic_cmd='$MAGIC_CMD'
6295lt_cv_file_magic_test_file=
6296lt_cv_deplibs_check_method='unknown'
6297# Need to set the preceding variable on all platforms that support
6298# interlibrary dependencies.
6299# 'none' -- dependencies not supported.
6300# `unknown' -- same as none, but documents that we really don't know.
6301# 'pass_all' -- all dependencies passed with no checks.
6302# 'test_compile' -- check by making test program.
6303# 'file_magic [[regex]]' -- check by looking for files in library path
6304# which responds to the $file_magic_cmd with a given extended regex.
6305# If you have `file' or equivalent on your system and you're not sure
6306# whether `pass_all' will *always* work, you probably want this one.
6307
6308case $host_os in
6309aix[4-9]*)
6310 lt_cv_deplibs_check_method=pass_all
6311 ;;
6312
6313beos*)
6314 lt_cv_deplibs_check_method=pass_all
6315 ;;
6316
6317bsdi[45]*)
6318 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6319 lt_cv_file_magic_cmd='/usr/bin/file -L'
6320 lt_cv_file_magic_test_file=/shlib/libc.so
6321 ;;
6322
6323cygwin*)
6324 # func_win32_libid is a shell function defined in ltmain.sh
6325 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6326 lt_cv_file_magic_cmd='func_win32_libid'
6327 ;;
6328
6329mingw* | pw32*)
6330 # Base MSYS/MinGW do not provide the 'file' command needed by
6331 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6332 # unless we find 'file', for example because we are cross-compiling.
6333 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6334 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6335 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6336 lt_cv_file_magic_cmd='func_win32_libid'
6337 else
6338 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6339 lt_cv_file_magic_cmd='$OBJDUMP -f'
6340 fi
6341 ;;
6342
6343cegcc*)
6344 # use the weaker test based on 'objdump'. See mingw*.
6345 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6346 lt_cv_file_magic_cmd='$OBJDUMP -f'
6347 ;;
6348
6349darwin* | rhapsody*)
6350 lt_cv_deplibs_check_method=pass_all
6351 ;;
6352
6353freebsd* | dragonfly*)
6354 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6355 case $host_cpu in
6356 i*86 )
6357 # Not sure whether the presence of OpenBSD here was a mistake.
6358 # Let's accept both of them until this is cleared up.
6359 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6360 lt_cv_file_magic_cmd=/usr/bin/file
6361 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6362 ;;
6363 esac
6364 else
6365 lt_cv_deplibs_check_method=pass_all
6366 fi
6367 ;;
6368
6369gnu*)
6370 lt_cv_deplibs_check_method=pass_all
6371 ;;
6372
6373haiku*)
6374 lt_cv_deplibs_check_method=pass_all
6375 ;;
6376
6377hpux10.20* | hpux11*)
6378 lt_cv_file_magic_cmd=/usr/bin/file
6379 case $host_cpu in
6380 ia64*)
6381 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6382 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6383 ;;
6384 hppa*64*)
6385 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]'
6386 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6387 ;;
6388 *)
6389 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6390 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6391 ;;
6392 esac
6393 ;;
6394
6395interix[3-9]*)
6396 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6398 ;;
6399
6400irix5* | irix6* | nonstopux*)
6401 case $LD in
6402 *-32|*"-32 ") libmagic=32-bit;;
6403 *-n32|*"-n32 ") libmagic=N32;;
6404 *-64|*"-64 ") libmagic=64-bit;;
6405 *) libmagic=never-match;;
6406 esac
6407 lt_cv_deplibs_check_method=pass_all
6408 ;;
6409
6410# This must be Linux ELF.
6411linux* | k*bsd*-gnu | kopensolaris*-gnu)
6412 lt_cv_deplibs_check_method=pass_all
6413 ;;
6414
6415netbsd*)
6416 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6418 else
6419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6420 fi
6421 ;;
6422
6423newos6*)
6424 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6425 lt_cv_file_magic_cmd=/usr/bin/file
6426 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6427 ;;
6428
6429*nto* | *qnx*)
6430 lt_cv_deplibs_check_method=pass_all
6431 ;;
6432
6433openbsd*)
6434 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6435 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6436 else
6437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6438 fi
6439 ;;
6440
6441osf3* | osf4* | osf5*)
6442 lt_cv_deplibs_check_method=pass_all
6443 ;;
6444
6445rdos*)
6446 lt_cv_deplibs_check_method=pass_all
6447 ;;
6448
6449solaris*)
6450 lt_cv_deplibs_check_method=pass_all
6451 ;;
6452
6453sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6454 lt_cv_deplibs_check_method=pass_all
6455 ;;
6456
6457sysv4 | sysv4.3*)
6458 case $host_vendor in
6459 motorola)
6460 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]'
6461 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6462 ;;
6463 ncr)
6464 lt_cv_deplibs_check_method=pass_all
6465 ;;
6466 sequent)
6467 lt_cv_file_magic_cmd='/bin/file'
6468 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6469 ;;
6470 sni)
6471 lt_cv_file_magic_cmd='/bin/file'
6472 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6473 lt_cv_file_magic_test_file=/lib/libc.so
6474 ;;
6475 siemens)
6476 lt_cv_deplibs_check_method=pass_all
6477 ;;
6478 pc)
6479 lt_cv_deplibs_check_method=pass_all
6480 ;;
6481 esac
6482 ;;
6483
6484tpf*)
6485 lt_cv_deplibs_check_method=pass_all
6486 ;;
6487esac
6488
6489fi
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6491$as_echo "$lt_cv_deplibs_check_method" >&6; }
6492file_magic_cmd=$lt_cv_file_magic_cmd
6493deplibs_check_method=$lt_cv_deplibs_check_method
6494test -z "$deplibs_check_method" && deplibs_check_method=unknown
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507if test -n "$ac_tool_prefix"; then
6508 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6509set dummy ${ac_tool_prefix}ar; ac_word=$2
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6512if ${ac_cv_prog_AR+:} false; then :
eff02e4f
ILT
6513 $as_echo_n "(cached) " >&6
6514else
6515 if test -n "$AR"; then
6516 ac_cv_prog_AR="$AR" # Let the user override the test.
6517else
6518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519for as_dir in $PATH
6520do
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6525 ac_cv_prog_AR="${ac_tool_prefix}ar"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 break 2
6528 fi
6529done
6530 done
6531IFS=$as_save_IFS
6532
6533fi
6534fi
6535AR=$ac_cv_prog_AR
6536if test -n "$AR"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6538$as_echo "$AR" >&6; }
6539else
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541$as_echo "no" >&6; }
6542fi
6543
6544
6545fi
6546if test -z "$ac_cv_prog_AR"; then
6547 ac_ct_AR=$AR
6548 # Extract the first word of "ar", so it can be a program name with args.
6549set dummy ar; ac_word=$2
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6551$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6552if ${ac_cv_prog_ac_ct_AR+:} false; then :
eff02e4f
ILT
6553 $as_echo_n "(cached) " >&6
6554else
6555 if test -n "$ac_ct_AR"; then
6556 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6557else
6558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559for as_dir in $PATH
6560do
6561 IFS=$as_save_IFS
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6565 ac_cv_prog_ac_ct_AR="ar"
6566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 break 2
6568 fi
6569done
6570 done
6571IFS=$as_save_IFS
6572
6573fi
6574fi
6575ac_ct_AR=$ac_cv_prog_ac_ct_AR
6576if test -n "$ac_ct_AR"; then
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6578$as_echo "$ac_ct_AR" >&6; }
6579else
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581$as_echo "no" >&6; }
6582fi
6583
6584 if test "x$ac_ct_AR" = x; then
6585 AR="false"
6586 else
6587 case $cross_compiling:$ac_tool_warned in
6588yes:)
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6591ac_tool_warned=yes ;;
6592esac
6593 AR=$ac_ct_AR
6594 fi
6595else
6596 AR="$ac_cv_prog_AR"
6597fi
6598
6599test -z "$AR" && AR=ar
6600test -z "$AR_FLAGS" && AR_FLAGS=cru
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612if test -n "$ac_tool_prefix"; then
6613 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6614set dummy ${ac_tool_prefix}strip; ac_word=$2
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6617if ${ac_cv_prog_STRIP+:} false; then :
eff02e4f
ILT
6618 $as_echo_n "(cached) " >&6
6619else
6620 if test -n "$STRIP"; then
6621 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6622else
6623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624for as_dir in $PATH
6625do
6626 IFS=$as_save_IFS
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6630 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 break 2
6633 fi
6634done
6635 done
6636IFS=$as_save_IFS
6637
6638fi
6639fi
6640STRIP=$ac_cv_prog_STRIP
6641if test -n "$STRIP"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6643$as_echo "$STRIP" >&6; }
6644else
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646$as_echo "no" >&6; }
6647fi
6648
6649
6650fi
6651if test -z "$ac_cv_prog_STRIP"; then
6652 ac_ct_STRIP=$STRIP
6653 # Extract the first word of "strip", so it can be a program name with args.
6654set dummy strip; ac_word=$2
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6657if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
eff02e4f
ILT
6658 $as_echo_n "(cached) " >&6
6659else
6660 if test -n "$ac_ct_STRIP"; then
6661 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6662else
6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664for as_dir in $PATH
6665do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6670 ac_cv_prog_ac_ct_STRIP="strip"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674done
6675 done
6676IFS=$as_save_IFS
6677
6678fi
6679fi
6680ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6681if test -n "$ac_ct_STRIP"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6683$as_echo "$ac_ct_STRIP" >&6; }
6684else
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686$as_echo "no" >&6; }
6687fi
6688
6689 if test "x$ac_ct_STRIP" = x; then
6690 STRIP=":"
6691 else
6692 case $cross_compiling:$ac_tool_warned in
6693yes:)
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6696ac_tool_warned=yes ;;
6697esac
6698 STRIP=$ac_ct_STRIP
6699 fi
6700else
6701 STRIP="$ac_cv_prog_STRIP"
6702fi
6703
6704test -z "$STRIP" && STRIP=:
6705
6706
6707
6708
6709
6710
6711if test -n "$ac_tool_prefix"; then
6712 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6713set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6716if ${ac_cv_prog_RANLIB+:} false; then :
eff02e4f
ILT
6717 $as_echo_n "(cached) " >&6
6718else
6719 if test -n "$RANLIB"; then
6720 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6721else
6722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723for as_dir in $PATH
6724do
6725 IFS=$as_save_IFS
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6729 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 break 2
6732 fi
6733done
6734 done
6735IFS=$as_save_IFS
6736
6737fi
6738fi
6739RANLIB=$ac_cv_prog_RANLIB
6740if test -n "$RANLIB"; then
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6742$as_echo "$RANLIB" >&6; }
6743else
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745$as_echo "no" >&6; }
6746fi
6747
6748
6749fi
6750if test -z "$ac_cv_prog_RANLIB"; then
6751 ac_ct_RANLIB=$RANLIB
6752 # Extract the first word of "ranlib", so it can be a program name with args.
6753set dummy ranlib; ac_word=$2
6754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6756if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
eff02e4f
ILT
6757 $as_echo_n "(cached) " >&6
6758else
6759 if test -n "$ac_ct_RANLIB"; then
6760 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6761else
6762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763for as_dir in $PATH
6764do
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6769 ac_cv_prog_ac_ct_RANLIB="ranlib"
6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773done
6774 done
6775IFS=$as_save_IFS
6776
6777fi
6778fi
6779ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6780if test -n "$ac_ct_RANLIB"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6782$as_echo "$ac_ct_RANLIB" >&6; }
6783else
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785$as_echo "no" >&6; }
6786fi
6787
6788 if test "x$ac_ct_RANLIB" = x; then
6789 RANLIB=":"
6790 else
6791 case $cross_compiling:$ac_tool_warned in
6792yes:)
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6795ac_tool_warned=yes ;;
6796esac
6797 RANLIB=$ac_ct_RANLIB
6798 fi
6799else
6800 RANLIB="$ac_cv_prog_RANLIB"
6801fi
6802
6803test -z "$RANLIB" && RANLIB=:
6804
6805
6806
6807
6808
6809
6810# Determine commands to create old-style static archives.
6811old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6812old_postinstall_cmds='chmod 644 $oldlib'
6813old_postuninstall_cmds=
6814
6815if test -n "$RANLIB"; then
6816 case $host_os in
6817 openbsd*)
6818 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6819 ;;
6820 *)
6821 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6822 ;;
6823 esac
6824 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6825fi
6826
6827case $host_os in
6828 darwin*)
6829 lock_old_archive_extraction=yes ;;
6830 *)
6831 lock_old_archive_extraction=no ;;
6832esac
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872# If no C compiler was specified, use CC.
6873LTCC=${LTCC-"$CC"}
6874
6875# If no C compiler flags were specified, use CFLAGS.
6876LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6877
6878# Allow CC to be a program name with arguments.
6879compiler=$CC
6880
6881
6882# Check for command to grab the raw symbol name followed by C symbol from nm.
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6884$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 6885if ${lt_cv_sys_global_symbol_pipe+:} false; then :
eff02e4f
ILT
6886 $as_echo_n "(cached) " >&6
6887else
6888
6889# These are sane defaults that work on at least a few old systems.
6890# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6891
6892# Character class describing NM global symbol codes.
6893symcode='[BCDEGRST]'
6894
6895# Regexp to match symbols that can be accessed directly from C.
6896sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6897
6898# Define system-specific variables.
6899case $host_os in
6900aix*)
6901 symcode='[BCDT]'
6902 ;;
6903cygwin* | mingw* | pw32* | cegcc*)
6904 symcode='[ABCDGISTW]'
6905 ;;
6906hpux*)
6907 if test "$host_cpu" = ia64; then
6908 symcode='[ABCDEGRST]'
6909 fi
6910 ;;
6911irix* | nonstopux*)
6912 symcode='[BCDEGRST]'
6913 ;;
6914osf*)
6915 symcode='[BCDEGQRST]'
6916 ;;
6917solaris*)
6918 symcode='[BDRT]'
6919 ;;
6920sco3.2v5*)
6921 symcode='[DT]'
6922 ;;
6923sysv4.2uw2*)
6924 symcode='[DT]'
6925 ;;
6926sysv5* | sco5v6* | unixware* | OpenUNIX*)
6927 symcode='[ABDT]'
6928 ;;
6929sysv4)
6930 symcode='[DFNSTU]'
6931 ;;
6932esac
6933
6934# If we're using GNU nm, then use its standard symbol codes.
6935case `$NM -V 2>&1` in
6936*GNU* | *'with BFD'*)
6937 symcode='[ABCDGIRSTW]' ;;
6938esac
6939
6940# Transform an extracted symbol line into a proper C declaration.
6941# Some systems (esp. on ia64) link data and code symbols differently,
6942# so use this general approach.
6943lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6944
6945# Transform an extracted symbol line into symbol name and symbol address
6946lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6947lt_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'"
6948
6949# Handle CRLF in mingw tool chain
6950opt_cr=
6951case $build_os in
6952mingw*)
6953 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6954 ;;
6955esac
6956
6957# Try without a prefix underscore, then with it.
6958for ac_symprfx in "" "_"; do
6959
6960 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6961 symxfrm="\\1 $ac_symprfx\\2 \\2"
6962
6963 # Write the raw and C identifiers.
6964 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6965 # Fake it for dumpbin and say T for any non-static function
6966 # and D for any global variable.
6967 # Also find C++ and __fastcall symbols from MSVC++,
6968 # which start with @ or ?.
6969 lt_cv_sys_global_symbol_pipe="$AWK '"\
6970" {last_section=section; section=\$ 3};"\
6971" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6972" \$ 0!~/External *\|/{next};"\
6973" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6974" {if(hide[section]) next};"\
6975" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6976" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6977" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6978" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6979" ' prfx=^$ac_symprfx"
6980 else
6981 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6982 fi
6983
6984 # Check to see that the pipe works correctly.
6985 pipe_works=no
6986
6987 rm -f conftest*
6988 cat > conftest.$ac_ext <<_LT_EOF
6989#ifdef __cplusplus
6990extern "C" {
6991#endif
6992char nm_test_var;
6993void nm_test_func(void);
6994void nm_test_func(void){}
6995#ifdef __cplusplus
6996}
6997#endif
6998int main(){nm_test_var='a';nm_test_func();return(0);}
6999_LT_EOF
7000
7001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7002 (eval $ac_compile) 2>&5
7003 ac_status=$?
7004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7005 test $ac_status = 0; }; then
7006 # Now try to grab the symbols.
7007 nlist=conftest.nm
7008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7009 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7010 ac_status=$?
7011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7012 test $ac_status = 0; } && test -s "$nlist"; then
7013 # Try sorting and uniquifying the output.
7014 if sort "$nlist" | uniq > "$nlist"T; then
7015 mv -f "$nlist"T "$nlist"
7016 else
7017 rm -f "$nlist"T
7018 fi
7019
7020 # Make sure that we snagged all the symbols we need.
7021 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7022 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7023 cat <<_LT_EOF > conftest.$ac_ext
7024#ifdef __cplusplus
7025extern "C" {
7026#endif
7027
7028_LT_EOF
7029 # Now generate the symbol file.
7030 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7031
7032 cat <<_LT_EOF >> conftest.$ac_ext
7033
7034/* The mapping between symbol names and symbols. */
7035const struct {
7036 const char *name;
7037 void *address;
7038}
7039lt__PROGRAM__LTX_preloaded_symbols[] =
7040{
7041 { "@PROGRAM@", (void *) 0 },
7042_LT_EOF
7043 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7044 cat <<\_LT_EOF >> conftest.$ac_ext
7045 {0, (void *) 0}
7046};
7047
7048/* This works around a problem in FreeBSD linker */
7049#ifdef FREEBSD_WORKAROUND
7050static const void *lt_preloaded_setup() {
7051 return lt__PROGRAM__LTX_preloaded_symbols;
7052}
7053#endif
7054
7055#ifdef __cplusplus
7056}
7057#endif
7058_LT_EOF
7059 # Now try linking the two files.
7060 mv conftest.$ac_objext conftstm.$ac_objext
7061 lt_save_LIBS="$LIBS"
7062 lt_save_CFLAGS="$CFLAGS"
7063 LIBS="conftstm.$ac_objext"
7064 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7066 (eval $ac_link) 2>&5
7067 ac_status=$?
7068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7069 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7070 pipe_works=yes
7071 fi
7072 LIBS="$lt_save_LIBS"
7073 CFLAGS="$lt_save_CFLAGS"
7074 else
7075 echo "cannot find nm_test_func in $nlist" >&5
7076 fi
7077 else
7078 echo "cannot find nm_test_var in $nlist" >&5
7079 fi
7080 else
7081 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7082 fi
7083 else
7084 echo "$progname: failed program was:" >&5
7085 cat conftest.$ac_ext >&5
7086 fi
7087 rm -rf conftest* conftst*
7088
7089 # Do not use the global_symbol_pipe unless it works.
7090 if test "$pipe_works" = yes; then
7091 break
7092 else
7093 lt_cv_sys_global_symbol_pipe=
7094 fi
7095done
7096
7097fi
7098
7099if test -z "$lt_cv_sys_global_symbol_pipe"; then
7100 lt_cv_sys_global_symbol_to_cdecl=
7101fi
7102if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7104$as_echo "failed" >&6; }
7105else
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7107$as_echo "ok" >&6; }
7108fi
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
eff02e4f
ILT
7129
7130
7131# Check whether --enable-libtool-lock was given.
7132if test "${enable_libtool_lock+set}" = set; then :
7133 enableval=$enable_libtool_lock;
7134fi
7135
7136test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7137
7138# Some flags need to be propagated to the compiler or linker for good
7139# libtool support.
7140case $host in
7141ia64-*-hpux*)
7142 # Find out which ABI we are using.
7143 echo 'int i;' > conftest.$ac_ext
7144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7145 (eval $ac_compile) 2>&5
7146 ac_status=$?
7147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7148 test $ac_status = 0; }; then
7149 case `/usr/bin/file conftest.$ac_objext` in
7150 *ELF-32*)
7151 HPUX_IA64_MODE="32"
7152 ;;
7153 *ELF-64*)
7154 HPUX_IA64_MODE="64"
7155 ;;
7156 esac
7157 fi
7158 rm -rf conftest*
7159 ;;
7160*-*-irix6*)
7161 # Find out which ABI we are using.
7162 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7164 (eval $ac_compile) 2>&5
7165 ac_status=$?
7166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7167 test $ac_status = 0; }; then
7168 if test "$lt_cv_prog_gnu_ld" = yes; then
7169 case `/usr/bin/file conftest.$ac_objext` in
7170 *32-bit*)
7171 LD="${LD-ld} -melf32bsmip"
7172 ;;
7173 *N32*)
7174 LD="${LD-ld} -melf32bmipn32"
7175 ;;
7176 *64-bit*)
7177 LD="${LD-ld} -melf64bmip"
7178 ;;
7179 esac
7180 else
7181 case `/usr/bin/file conftest.$ac_objext` in
7182 *32-bit*)
7183 LD="${LD-ld} -32"
7184 ;;
7185 *N32*)
7186 LD="${LD-ld} -n32"
7187 ;;
7188 *64-bit*)
7189 LD="${LD-ld} -64"
7190 ;;
7191 esac
7192 fi
7193 fi
7194 rm -rf conftest*
7195 ;;
7196
3cbe17f7 7197x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
eff02e4f
ILT
7198s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7199 # Find out which ABI we are using.
7200 echo 'int i;' > conftest.$ac_ext
7201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7202 (eval $ac_compile) 2>&5
7203 ac_status=$?
7204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7205 test $ac_status = 0; }; then
7206 case `/usr/bin/file conftest.o` in
7207 *32-bit*)
7208 case $host in
7209 x86_64-*kfreebsd*-gnu)
7210 LD="${LD-ld} -m elf_i386_fbsd"
7211 ;;
7212 x86_64-*linux*)
7213 case `/usr/bin/file conftest.o` in
7214 *x86-64*)
7215 LD="${LD-ld} -m elf32_x86_64"
7216 ;;
7217 *)
7218 LD="${LD-ld} -m elf_i386"
7219 ;;
7220 esac
7221 ;;
3cbe17f7
AM
7222 powerpc64le-*linux*)
7223 LD="${LD-ld} -m elf32lppclinux"
7224 ;;
7225 powerpc64-*linux*)
eff02e4f
ILT
7226 LD="${LD-ld} -m elf32ppclinux"
7227 ;;
7228 s390x-*linux*)
7229 LD="${LD-ld} -m elf_s390"
7230 ;;
7231 sparc64-*linux*)
7232 LD="${LD-ld} -m elf32_sparc"
7233 ;;
7234 esac
7235 ;;
7236 *64-bit*)
7237 case $host in
7238 x86_64-*kfreebsd*-gnu)
7239 LD="${LD-ld} -m elf_x86_64_fbsd"
7240 ;;
7241 x86_64-*linux*)
7242 LD="${LD-ld} -m elf_x86_64"
7243 ;;
3cbe17f7
AM
7244 powerpcle-*linux*)
7245 LD="${LD-ld} -m elf64lppc"
7246 ;;
7247 powerpc-*linux*)
eff02e4f
ILT
7248 LD="${LD-ld} -m elf64ppc"
7249 ;;
7250 s390*-*linux*|s390*-*tpf*)
7251 LD="${LD-ld} -m elf64_s390"
7252 ;;
7253 sparc*-*linux*)
7254 LD="${LD-ld} -m elf64_sparc"
7255 ;;
7256 esac
7257 ;;
7258 esac
7259 fi
7260 rm -rf conftest*
7261 ;;
7262
7263*-*-sco3.2v5*)
7264 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7265 SAVE_CFLAGS="$CFLAGS"
7266 CFLAGS="$CFLAGS -belf"
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7268$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 7269if ${lt_cv_cc_needs_belf+:} false; then :
eff02e4f
ILT
7270 $as_echo_n "(cached) " >&6
7271else
7272 ac_ext=c
7273ac_cpp='$CPP $CPPFLAGS'
7274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7276ac_compiler_gnu=$ac_cv_c_compiler_gnu
7277
7278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279/* end confdefs.h. */
7280
7281int
7282main ()
7283{
7284
7285 ;
7286 return 0;
7287}
7288_ACEOF
7289if ac_fn_c_try_link "$LINENO"; then :
7290 lt_cv_cc_needs_belf=yes
7291else
7292 lt_cv_cc_needs_belf=no
7293fi
7294rm -f core conftest.err conftest.$ac_objext \
7295 conftest$ac_exeext conftest.$ac_ext
7296 ac_ext=c
7297ac_cpp='$CPP $CPPFLAGS'
7298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7300ac_compiler_gnu=$ac_cv_c_compiler_gnu
7301
7302fi
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7304$as_echo "$lt_cv_cc_needs_belf" >&6; }
7305 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7306 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7307 CFLAGS="$SAVE_CFLAGS"
7308 fi
7309 ;;
7310sparc*-*solaris*)
7311 # Find out which ABI we are using.
7312 echo 'int i;' > conftest.$ac_ext
7313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7314 (eval $ac_compile) 2>&5
7315 ac_status=$?
7316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7317 test $ac_status = 0; }; then
7318 case `/usr/bin/file conftest.o` in
7319 *64-bit*)
7320 case $lt_cv_prog_gnu_ld in
7321 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7322 *)
7323 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7324 LD="${LD-ld} -64"
7325 fi
7326 ;;
7327 esac
7328 ;;
7329 esac
7330 fi
7331 rm -rf conftest*
7332 ;;
7333esac
7334
7335need_locks="$enable_libtool_lock"
7336
7337
7338 case $host_os in
7339 rhapsody* | darwin*)
7340 if test -n "$ac_tool_prefix"; then
7341 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7342set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7345if ${ac_cv_prog_DSYMUTIL+:} false; then :
eff02e4f
ILT
7346 $as_echo_n "(cached) " >&6
7347else
7348 if test -n "$DSYMUTIL"; then
7349 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7350else
7351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352for as_dir in $PATH
7353do
7354 IFS=$as_save_IFS
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
7358 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 break 2
7361 fi
7362done
7363 done
7364IFS=$as_save_IFS
7365
7366fi
7367fi
7368DSYMUTIL=$ac_cv_prog_DSYMUTIL
7369if test -n "$DSYMUTIL"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7371$as_echo "$DSYMUTIL" >&6; }
7372else
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374$as_echo "no" >&6; }
7375fi
7376
7377
7378fi
7379if test -z "$ac_cv_prog_DSYMUTIL"; then
7380 ac_ct_DSYMUTIL=$DSYMUTIL
7381 # Extract the first word of "dsymutil", so it can be a program name with args.
7382set dummy dsymutil; ac_word=$2
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7385if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
eff02e4f
ILT
7386 $as_echo_n "(cached) " >&6
7387else
d4c059d5
ILT
7388 if test -n "$ac_ct_DSYMUTIL"; then
7389 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
eff02e4f
ILT
7390else
7391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392for as_dir in $PATH
7393do
7394 IFS=$as_save_IFS
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 7398 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
eff02e4f
ILT
7399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 break 2
7401 fi
7402done
7403 done
7404IFS=$as_save_IFS
7405
7406fi
7407fi
d4c059d5
ILT
7408ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7409if test -n "$ac_ct_DSYMUTIL"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7411$as_echo "$ac_ct_DSYMUTIL" >&6; }
eff02e4f
ILT
7412else
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414$as_echo "no" >&6; }
7415fi
7416
d4c059d5
ILT
7417 if test "x$ac_ct_DSYMUTIL" = x; then
7418 DSYMUTIL=":"
eff02e4f
ILT
7419 else
7420 case $cross_compiling:$ac_tool_warned in
7421yes:)
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7424ac_tool_warned=yes ;;
7425esac
d4c059d5 7426 DSYMUTIL=$ac_ct_DSYMUTIL
eff02e4f
ILT
7427 fi
7428else
d4c059d5 7429 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
eff02e4f
ILT
7430fi
7431
7432 if test -n "$ac_tool_prefix"; then
d4c059d5
ILT
7433 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7434set dummy ${ac_tool_prefix}nmedit; ac_word=$2
eff02e4f
ILT
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_NMEDIT+:} false; then :
eff02e4f
ILT
7438 $as_echo_n "(cached) " >&6
7439else
d4c059d5
ILT
7440 if test -n "$NMEDIT"; then
7441 ac_cv_prog_NMEDIT="$NMEDIT" # 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_NMEDIT="${ac_tool_prefix}nmedit"
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
7460NMEDIT=$ac_cv_prog_NMEDIT
7461if test -n "$NMEDIT"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7463$as_echo "$NMEDIT" >&6; }
eff02e4f
ILT
7464else
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466$as_echo "no" >&6; }
7467fi
7468
7469
7470fi
d4c059d5
ILT
7471if test -z "$ac_cv_prog_NMEDIT"; then
7472 ac_ct_NMEDIT=$NMEDIT
7473 # Extract the first word of "nmedit", so it can be a program name with args.
7474set dummy nmedit; ac_word=$2
eff02e4f
ILT
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7477if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
eff02e4f
ILT
7478 $as_echo_n "(cached) " >&6
7479else
d4c059d5
ILT
7480 if test -n "$ac_ct_NMEDIT"; then
7481 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
eff02e4f
ILT
7482else
7483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484for as_dir in $PATH
7485do
7486 IFS=$as_save_IFS
7487 test -z "$as_dir" && as_dir=.
7488 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 7490 ac_cv_prog_ac_ct_NMEDIT="nmedit"
eff02e4f
ILT
7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 break 2
7493 fi
7494done
7495 done
7496IFS=$as_save_IFS
7497
7498fi
7499fi
d4c059d5
ILT
7500ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7501if test -n "$ac_ct_NMEDIT"; then
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7503$as_echo "$ac_ct_NMEDIT" >&6; }
eff02e4f
ILT
7504else
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506$as_echo "no" >&6; }
7507fi
7508
d4c059d5
ILT
7509 if test "x$ac_ct_NMEDIT" = x; then
7510 NMEDIT=":"
eff02e4f
ILT
7511 else
7512 case $cross_compiling:$ac_tool_warned in
7513yes:)
7514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7516ac_tool_warned=yes ;;
7517esac
d4c059d5 7518 NMEDIT=$ac_ct_NMEDIT
eff02e4f
ILT
7519 fi
7520else
d4c059d5 7521 NMEDIT="$ac_cv_prog_NMEDIT"
eff02e4f
ILT
7522fi
7523
7524 if test -n "$ac_tool_prefix"; then
d4c059d5
ILT
7525 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7526set dummy ${ac_tool_prefix}lipo; 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_LIPO+:} false; then :
eff02e4f
ILT
7530 $as_echo_n "(cached) " >&6
7531else
d4c059d5
ILT
7532 if test -n "$LIPO"; then
7533 ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo"
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
7552LIPO=$ac_cv_prog_LIPO
7553if test -n "$LIPO"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7555$as_echo "$LIPO" >&6; }
eff02e4f
ILT
7556else
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558$as_echo "no" >&6; }
7559fi
7560
7561
7562fi
d4c059d5
ILT
7563if test -z "$ac_cv_prog_LIPO"; then
7564 ac_ct_LIPO=$LIPO
7565 # Extract the first word of "lipo", so it can be a program name with args.
7566set dummy lipo; ac_word=$2
eff02e4f
ILT
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7569if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
eff02e4f
ILT
7570 $as_echo_n "(cached) " >&6
7571else
d4c059d5
ILT
7572 if test -n "$ac_ct_LIPO"; then
7573 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
eff02e4f
ILT
7574else
7575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576for as_dir in $PATH
7577do
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 7582 ac_cv_prog_ac_ct_LIPO="lipo"
eff02e4f
ILT
7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 break 2
7585 fi
7586done
7587 done
7588IFS=$as_save_IFS
7589
7590fi
7591fi
d4c059d5
ILT
7592ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7593if test -n "$ac_ct_LIPO"; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7595$as_echo "$ac_ct_LIPO" >&6; }
eff02e4f
ILT
7596else
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598$as_echo "no" >&6; }
7599fi
7600
d4c059d5
ILT
7601 if test "x$ac_ct_LIPO" = x; then
7602 LIPO=":"
eff02e4f
ILT
7603 else
7604 case $cross_compiling:$ac_tool_warned in
7605yes:)
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7608ac_tool_warned=yes ;;
7609esac
d4c059d5 7610 LIPO=$ac_ct_LIPO
eff02e4f
ILT
7611 fi
7612else
d4c059d5 7613 LIPO="$ac_cv_prog_LIPO"
eff02e4f
ILT
7614fi
7615
d4c059d5
ILT
7616 if test -n "$ac_tool_prefix"; then
7617 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7618set dummy ${ac_tool_prefix}otool; ac_word=$2
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_OTOOL+:} false; then :
eff02e4f
ILT
7622 $as_echo_n "(cached) " >&6
7623else
d4c059d5
ILT
7624 if test -n "$OTOOL"; then
7625 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
eff02e4f 7626else
d4c059d5
ILT
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
ILT
7634 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
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
eff02e4f 7641
eff02e4f 7642fi
eff02e4f 7643fi
d4c059d5
ILT
7644OTOOL=$ac_cv_prog_OTOOL
7645if test -n "$OTOOL"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7647$as_echo "$OTOOL" >&6; }
7648else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650$as_echo "no" >&6; }
eff02e4f 7651fi
eff02e4f 7652
d4c059d5 7653
eff02e4f 7654fi
d4c059d5
ILT
7655if test -z "$ac_cv_prog_OTOOL"; then
7656 ac_ct_OTOOL=$OTOOL
7657 # Extract the first word of "otool", so it can be a program name with args.
7658set dummy otool; ac_word=$2
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7661if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
eff02e4f
ILT
7662 $as_echo_n "(cached) " >&6
7663else
d4c059d5
ILT
7664 if test -n "$ac_ct_OTOOL"; then
7665 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7666else
7667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
eff02e4f 7669do
d4c059d5
ILT
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
7674 ac_cv_prog_ac_ct_OTOOL="otool"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7677 fi
7678done
7679 done
7680IFS=$as_save_IFS
eff02e4f 7681
d4c059d5
ILT
7682fi
7683fi
7684ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7685if test -n "$ac_ct_OTOOL"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7687$as_echo "$ac_ct_OTOOL" >&6; }
eff02e4f 7688else
d4c059d5
ILT
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690$as_echo "no" >&6; }
eff02e4f 7691fi
eff02e4f 7692
d4c059d5
ILT
7693 if test "x$ac_ct_OTOOL" = x; then
7694 OTOOL=":"
7695 else
7696 case $cross_compiling:$ac_tool_warned in
7697yes:)
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700ac_tool_warned=yes ;;
7701esac
7702 OTOOL=$ac_ct_OTOOL
7703 fi
eff02e4f 7704else
d4c059d5 7705 OTOOL="$ac_cv_prog_OTOOL"
eff02e4f 7706fi
eff02e4f 7707
d4c059d5
ILT
7708 if test -n "$ac_tool_prefix"; then
7709 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7710set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+:} false; then :
d4c059d5
ILT
7714 $as_echo_n "(cached) " >&6
7715else
7716 if test -n "$OTOOL64"; then
7717 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7718else
7719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720for as_dir in $PATH
7721do
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_OTOOL64="${ac_tool_prefix}otool64"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 break 2
7729 fi
eff02e4f 7730done
d4c059d5
ILT
7731 done
7732IFS=$as_save_IFS
7733
7734fi
7735fi
7736OTOOL64=$ac_cv_prog_OTOOL64
7737if test -n "$OTOOL64"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7739$as_echo "$OTOOL64" >&6; }
7740else
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742$as_echo "no" >&6; }
eff02e4f
ILT
7743fi
7744
eff02e4f
ILT
7745
7746fi
d4c059d5
ILT
7747if test -z "$ac_cv_prog_OTOOL64"; then
7748 ac_ct_OTOOL64=$OTOOL64
7749 # Extract the first word of "otool64", so it can be a program name with args.
7750set dummy otool64; ac_word=$2
7751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7753if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
d4c059d5 7754 $as_echo_n "(cached) " >&6
eff02e4f 7755else
d4c059d5
ILT
7756 if test -n "$ac_ct_OTOOL64"; then
7757 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7758else
7759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760for as_dir in $PATH
eff02e4f 7761do
d4c059d5
ILT
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
7766 ac_cv_prog_ac_ct_OTOOL64="otool64"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 break 2
7769 fi
7770done
7771 done
7772IFS=$as_save_IFS
eff02e4f 7773
d4c059d5
ILT
7774fi
7775fi
7776ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7777if test -n "$ac_ct_OTOOL64"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7779$as_echo "$ac_ct_OTOOL64" >&6; }
eff02e4f 7780else
d4c059d5
ILT
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782$as_echo "no" >&6; }
eff02e4f 7783fi
eff02e4f 7784
d4c059d5
ILT
7785 if test "x$ac_ct_OTOOL64" = x; then
7786 OTOOL64=":"
7787 else
7788 case $cross_compiling:$ac_tool_warned in
7789yes:)
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7792ac_tool_warned=yes ;;
7793esac
7794 OTOOL64=$ac_ct_OTOOL64
7795 fi
eff02e4f 7796else
d4c059d5 7797 OTOOL64="$ac_cv_prog_OTOOL64"
eff02e4f 7798fi
eff02e4f 7799
eff02e4f 7800
eff02e4f 7801
eff02e4f
ILT
7802
7803
eff02e4f 7804
eff02e4f 7805
eff02e4f 7806
eff02e4f 7807
eff02e4f 7808
eff02e4f 7809
eff02e4f 7810
eff02e4f 7811
eff02e4f 7812
eff02e4f 7813
eff02e4f 7814
d4c059d5
ILT
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7827$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 7828if ${lt_cv_apple_cc_single_mod+:} false; then :
d4c059d5 7829 $as_echo_n "(cached) " >&6
eff02e4f 7830else
d4c059d5
ILT
7831 lt_cv_apple_cc_single_mod=no
7832 if test -z "${LT_MULTI_MODULE}"; then
7833 # By default we will add the -single_module flag. You can override
7834 # by either setting the environment variable LT_MULTI_MODULE
7835 # non-empty at configure time, or by adding -multi_module to the
7836 # link flags.
7837 rm -rf libconftest.dylib*
7838 echo "int foo(void){return 1;}" > conftest.c
7839 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7840-dynamiclib -Wl,-single_module conftest.c" >&5
7841 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7842 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7843 _lt_result=$?
7844 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7845 lt_cv_apple_cc_single_mod=yes
7846 else
7847 cat conftest.err >&5
7848 fi
7849 rm -rf libconftest.dylib*
7850 rm -f conftest.*
7851 fi
7852fi
7853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7854$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7856$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 7857if ${lt_cv_ld_exported_symbols_list+:} false; then :
d4c059d5
ILT
7858 $as_echo_n "(cached) " >&6
7859else
7860 lt_cv_ld_exported_symbols_list=no
7861 save_LDFLAGS=$LDFLAGS
7862 echo "_main" > conftest.sym
7863 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eff02e4f 7865/* end confdefs.h. */
eff02e4f 7866
eff02e4f
ILT
7867int
7868main ()
7869{
d4c059d5
ILT
7870
7871 ;
eff02e4f
ILT
7872 return 0;
7873}
7874_ACEOF
d4c059d5
ILT
7875if ac_fn_c_try_link "$LINENO"; then :
7876 lt_cv_ld_exported_symbols_list=yes
eff02e4f 7877else
d4c059d5 7878 lt_cv_ld_exported_symbols_list=no
eff02e4f 7879fi
d4c059d5
ILT
7880rm -f core conftest.err conftest.$ac_objext \
7881 conftest$ac_exeext conftest.$ac_ext
7882 LDFLAGS="$save_LDFLAGS"
eff02e4f
ILT
7883
7884fi
d4c059d5
ILT
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7886$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7888$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 7889if ${lt_cv_ld_force_load+:} false; then :
d4c059d5
ILT
7890 $as_echo_n "(cached) " >&6
7891else
7892 lt_cv_ld_force_load=no
7893 cat > conftest.c << _LT_EOF
7894int forced_loaded() { return 2;}
7895_LT_EOF
7896 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7897 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7898 echo "$AR cru libconftest.a conftest.o" >&5
7899 $AR cru libconftest.a conftest.o 2>&5
7900 cat > conftest.c << _LT_EOF
7901int main() { return 0;}
7902_LT_EOF
7903 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7904 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7905 _lt_result=$?
7906 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7907 lt_cv_ld_force_load=yes
7908 else
7909 cat conftest.err >&5
7910 fi
7911 rm -f conftest.err libconftest.a conftest conftest.c
7912 rm -rf conftest.dSYM
eff02e4f
ILT
7913
7914fi
d4c059d5
ILT
7915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7916$as_echo "$lt_cv_ld_force_load" >&6; }
7917 case $host_os in
7918 rhapsody* | darwin1.[012])
7919 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7920 darwin1.*)
7921 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7922 darwin*) # darwin 5.x on
7923 # if running on 10.5 or later, the deployment target defaults
7924 # to the OS version, if on x86, and 10.4, the deployment
7925 # target defaults to 10.4. Don't you love it?
7926 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7927 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7928 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 7929 10.[012][,.]*)
d4c059d5
ILT
7930 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7931 10.*)
7932 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7933 esac
7934 ;;
7935 esac
7936 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7937 _lt_dar_single_mod='$single_module'
7938 fi
7939 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7940 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7941 else
7942 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7943 fi
7944 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7945 _lt_dsymutil='~$DSYMUTIL $lib || :'
7946 else
7947 _lt_dsymutil=
7948 fi
7949 ;;
7950 esac
eff02e4f
ILT
7951
7952for ac_header in dlfcn.h
7953do :
7954 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7955"
22e05272 7956if test "x$ac_cv_header_dlfcn_h" = xyes; then :
eff02e4f
ILT
7957 cat >>confdefs.h <<_ACEOF
7958#define HAVE_DLFCN_H 1
7959_ACEOF
7960
7961fi
7962
7963done
7964
7965
7966
7967
7968
7969# Set options
7e5c7547
UW
7970
7971
7972
7973 enable_dlopen=no
7974
7975
7976 enable_win32_dll=no
7977
7978
7979 # Check whether --enable-shared was given.
eff02e4f
ILT
7980if test "${enable_shared+set}" = set; then :
7981 enableval=$enable_shared; p=${PACKAGE-default}
7982 case $enableval in
7983 yes) enable_shared=yes ;;
7984 no) enable_shared=no ;;
7985 *)
7986 enable_shared=no
7987 # Look at the argument we got. We use all the common list separators.
7988 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7989 for pkg in $enableval; do
7990 IFS="$lt_save_ifs"
7991 if test "X$pkg" = "X$p"; then
7992 enable_shared=yes
7993 fi
7994 done
7995 IFS="$lt_save_ifs"
7996 ;;
7997 esac
7998else
7e5c7547 7999 enable_shared=yes
eff02e4f
ILT
8000fi
8001
8002
8003
8004
8005
8006
8007
8008
8009
eff02e4f
ILT
8010 # Check whether --enable-static was given.
8011if test "${enable_static+set}" = set; then :
8012 enableval=$enable_static; p=${PACKAGE-default}
8013 case $enableval in
8014 yes) enable_static=yes ;;
8015 no) enable_static=no ;;
8016 *)
8017 enable_static=no
8018 # Look at the argument we got. We use all the common list separators.
8019 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8020 for pkg in $enableval; do
8021 IFS="$lt_save_ifs"
8022 if test "X$pkg" = "X$p"; then
8023 enable_static=yes
8024 fi
8025 done
8026 IFS="$lt_save_ifs"
8027 ;;
8028 esac
8029else
8030 enable_static=yes
8031fi
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042# Check whether --with-pic was given.
8043if test "${with_pic+set}" = set; then :
8044 withval=$with_pic; pic_mode="$withval"
8045else
8046 pic_mode=default
8047fi
8048
8049
8050test -z "$pic_mode" && pic_mode=default
8051
8052
8053
8054
8055
8056
8057
8058 # Check whether --enable-fast-install was given.
8059if test "${enable_fast_install+set}" = set; then :
8060 enableval=$enable_fast_install; p=${PACKAGE-default}
8061 case $enableval in
8062 yes) enable_fast_install=yes ;;
8063 no) enable_fast_install=no ;;
8064 *)
8065 enable_fast_install=no
8066 # Look at the argument we got. We use all the common list separators.
8067 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8068 for pkg in $enableval; do
8069 IFS="$lt_save_ifs"
8070 if test "X$pkg" = "X$p"; then
8071 enable_fast_install=yes
8072 fi
8073 done
8074 IFS="$lt_save_ifs"
8075 ;;
8076 esac
8077else
8078 enable_fast_install=yes
8079fi
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091# This can be used to rebuild libtool when needed
8092LIBTOOL_DEPS="$ltmain"
8093
8094# Always use our own libtool.
8095LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122test -z "$LN_S" && LN_S="ln -s"
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137if test -n "${ZSH_VERSION+set}" ; then
8138 setopt NO_GLOB_SUBST
8139fi
8140
8141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8142$as_echo_n "checking for objdir... " >&6; }
22e05272 8143if ${lt_cv_objdir+:} false; then :
eff02e4f
ILT
8144 $as_echo_n "(cached) " >&6
8145else
8146 rm -f .libs 2>/dev/null
8147mkdir .libs 2>/dev/null
8148if test -d .libs; then
8149 lt_cv_objdir=.libs
8150else
8151 # MS-DOS does not allow filenames that begin with a dot.
8152 lt_cv_objdir=_libs
8153fi
8154rmdir .libs 2>/dev/null
8155fi
8156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8157$as_echo "$lt_cv_objdir" >&6; }
8158objdir=$lt_cv_objdir
8159
8160
8161
8162
8163
8164cat >>confdefs.h <<_ACEOF
8165#define LT_OBJDIR "$lt_cv_objdir/"
8166_ACEOF
8167
8168
8169
8170
8171case $host_os in
8172aix3*)
8173 # AIX sometimes has problems with the GCC collect2 program. For some
8174 # reason, if we set the COLLECT_NAMES environment variable, the problems
8175 # vanish in a puff of smoke.
8176 if test "X${COLLECT_NAMES+set}" != Xset; then
8177 COLLECT_NAMES=
8178 export COLLECT_NAMES
8179 fi
8180 ;;
8181esac
8182
8183# Global variables:
8184ofile=libtool
8185can_build_shared=yes
8186
8187# All known linkers require a `.a' archive for static linking (except MSVC,
8188# which needs '.lib').
8189libext=a
8190
8191with_gnu_ld="$lt_cv_prog_gnu_ld"
8192
8193old_CC="$CC"
8194old_CFLAGS="$CFLAGS"
8195
8196# Set sane defaults for various variables
8197test -z "$CC" && CC=cc
8198test -z "$LTCC" && LTCC=$CC
8199test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8200test -z "$LD" && LD=ld
8201test -z "$ac_objext" && ac_objext=o
8202
8203for cc_temp in $compiler""; do
8204 case $cc_temp in
8205 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8206 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8207 \-*) ;;
8208 *) break;;
8209 esac
8210done
8211cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8212
8213
8214# Only perform the check for file, if the check method requires it
8215test -z "$MAGIC_CMD" && MAGIC_CMD=file
8216case $deplibs_check_method in
8217file_magic*)
8218 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8220$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8221if ${lt_cv_path_MAGIC_CMD+:} false; then :
eff02e4f
ILT
8222 $as_echo_n "(cached) " >&6
8223else
8224 case $MAGIC_CMD in
8225[\\/*] | ?:[\\/]*)
8226 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8227 ;;
8228*)
8229 lt_save_MAGIC_CMD="$MAGIC_CMD"
8230 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8231 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8232 for ac_dir in $ac_dummy; do
8233 IFS="$lt_save_ifs"
8234 test -z "$ac_dir" && ac_dir=.
8235 if test -f $ac_dir/${ac_tool_prefix}file; then
8236 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8237 if test -n "$file_magic_test_file"; then
8238 case $deplibs_check_method in
8239 "file_magic "*)
8240 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8242 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8243 $EGREP "$file_magic_regex" > /dev/null; then
8244 :
8245 else
8246 cat <<_LT_EOF 1>&2
8247
8248*** Warning: the command libtool uses to detect shared libraries,
8249*** $file_magic_cmd, produces output that libtool cannot recognize.
8250*** The result is that libtool may fail to recognize shared libraries
8251*** as such. This will affect the creation of libtool libraries that
8252*** depend on shared libraries, but programs linked with such libtool
8253*** libraries will work regardless of this problem. Nevertheless, you
8254*** may want to report the problem to your system manager and/or to
8255*** bug-libtool@gnu.org
8256
8257_LT_EOF
8258 fi ;;
8259 esac
8260 fi
8261 break
8262 fi
8263 done
8264 IFS="$lt_save_ifs"
8265 MAGIC_CMD="$lt_save_MAGIC_CMD"
8266 ;;
8267esac
8268fi
8269
8270MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8271if test -n "$MAGIC_CMD"; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8273$as_echo "$MAGIC_CMD" >&6; }
8274else
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276$as_echo "no" >&6; }
8277fi
8278
8279
8280
8281
8282
8283if test -z "$lt_cv_path_MAGIC_CMD"; then
8284 if test -n "$ac_tool_prefix"; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8286$as_echo_n "checking for file... " >&6; }
22e05272 8287if ${lt_cv_path_MAGIC_CMD+:} false; then :
eff02e4f
ILT
8288 $as_echo_n "(cached) " >&6
8289else
8290 case $MAGIC_CMD in
8291[\\/*] | ?:[\\/]*)
8292 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8293 ;;
8294*)
8295 lt_save_MAGIC_CMD="$MAGIC_CMD"
8296 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8297 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8298 for ac_dir in $ac_dummy; do
8299 IFS="$lt_save_ifs"
8300 test -z "$ac_dir" && ac_dir=.
8301 if test -f $ac_dir/file; then
8302 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8303 if test -n "$file_magic_test_file"; then
8304 case $deplibs_check_method in
8305 "file_magic "*)
8306 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8307 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8308 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8309 $EGREP "$file_magic_regex" > /dev/null; then
8310 :
8311 else
8312 cat <<_LT_EOF 1>&2
8313
8314*** Warning: the command libtool uses to detect shared libraries,
8315*** $file_magic_cmd, produces output that libtool cannot recognize.
8316*** The result is that libtool may fail to recognize shared libraries
8317*** as such. This will affect the creation of libtool libraries that
8318*** depend on shared libraries, but programs linked with such libtool
8319*** libraries will work regardless of this problem. Nevertheless, you
8320*** may want to report the problem to your system manager and/or to
8321*** bug-libtool@gnu.org
8322
8323_LT_EOF
8324 fi ;;
8325 esac
8326 fi
8327 break
8328 fi
8329 done
8330 IFS="$lt_save_ifs"
8331 MAGIC_CMD="$lt_save_MAGIC_CMD"
8332 ;;
8333esac
8334fi
8335
8336MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8337if test -n "$MAGIC_CMD"; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8339$as_echo "$MAGIC_CMD" >&6; }
8340else
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342$as_echo "no" >&6; }
8343fi
8344
8345
8346 else
8347 MAGIC_CMD=:
8348 fi
8349fi
8350
8351 fi
8352 ;;
8353esac
8354
8355# Use C for the default configuration in the libtool script
8356
8357lt_save_CC="$CC"
8358ac_ext=c
8359ac_cpp='$CPP $CPPFLAGS'
8360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8362ac_compiler_gnu=$ac_cv_c_compiler_gnu
8363
8364
8365# Source file extension for C test sources.
8366ac_ext=c
8367
8368# Object file extension for compiled C test sources.
8369objext=o
8370objext=$objext
8371
8372# Code to be used in simple compile tests
8373lt_simple_compile_test_code="int some_variable = 0;"
8374
8375# Code to be used in simple link tests
8376lt_simple_link_test_code='int main(){return(0);}'
8377
8378
8379
8380
8381
8382
8383
8384# If no C compiler was specified, use CC.
8385LTCC=${LTCC-"$CC"}
8386
8387# If no C compiler flags were specified, use CFLAGS.
8388LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8389
8390# Allow CC to be a program name with arguments.
8391compiler=$CC
8392
8393# Save the default compiler, since it gets overwritten when the other
8394# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8395compiler_DEFAULT=$CC
8396
8397# save warnings/boilerplate of simple test code
8398ac_outfile=conftest.$ac_objext
8399echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8400eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8401_lt_compiler_boilerplate=`cat conftest.err`
8402$RM conftest*
8403
8404ac_outfile=conftest.$ac_objext
8405echo "$lt_simple_link_test_code" >conftest.$ac_ext
8406eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8407_lt_linker_boilerplate=`cat conftest.err`
8408$RM -r conftest*
8409
8410
8411## CAVEAT EMPTOR:
8412## There is no encapsulation within the following macros, do not change
8413## the running order or otherwise move them around unless you know exactly
8414## what you are doing...
8415if test -n "$compiler"; then
8416
8417lt_prog_compiler_no_builtin_flag=
8418
8419if test "$GCC" = yes; then
8420 case $cc_basename in
8421 nvcc*)
8422 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8423 *)
8424 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8425 esac
8426
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8428$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 8429if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
eff02e4f
ILT
8430 $as_echo_n "(cached) " >&6
8431else
8432 lt_cv_prog_compiler_rtti_exceptions=no
8433 ac_outfile=conftest.$ac_objext
8434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8435 lt_compiler_flag="-fno-rtti -fno-exceptions"
8436 # Insert the option either (1) after the last *FLAGS variable, or
8437 # (2) before a word containing "conftest.", or (3) at the end.
8438 # Note that $ac_compile itself does not contain backslashes and begins
8439 # with a dollar sign (not a hyphen), so the echo should work correctly.
8440 # The option is referenced via a variable to avoid confusing sed.
8441 lt_compile=`echo "$ac_compile" | $SED \
8442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8444 -e 's:$: $lt_compiler_flag:'`
8445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8446 (eval "$lt_compile" 2>conftest.err)
8447 ac_status=$?
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 if (exit $ac_status) && test -s "$ac_outfile"; then
8451 # The compiler can only warn and ignore the option if not recognized
8452 # So say no if there are warnings other than the usual output.
8453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8456 lt_cv_prog_compiler_rtti_exceptions=yes
8457 fi
8458 fi
8459 $RM conftest*
8460
8461fi
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8463$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8464
8465if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8466 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8467else
8468 :
8469fi
8470
8471fi
8472
8473
8474
8475
8476
8477
8478 lt_prog_compiler_wl=
8479lt_prog_compiler_pic=
8480lt_prog_compiler_static=
8481
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8483$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8484
8485 if test "$GCC" = yes; then
8486 lt_prog_compiler_wl='-Wl,'
8487 lt_prog_compiler_static='-static'
8488
8489 case $host_os in
8490 aix*)
8491 # All AIX code is PIC.
8492 if test "$host_cpu" = ia64; then
8493 # AIX 5 now supports IA64 processor
8494 lt_prog_compiler_static='-Bstatic'
8495 fi
772a71a9 8496 lt_prog_compiler_pic='-fPIC'
eff02e4f
ILT
8497 ;;
8498
8499 amigaos*)
8500 case $host_cpu in
8501 powerpc)
8502 # see comment about AmigaOS4 .so support
8503 lt_prog_compiler_pic='-fPIC'
8504 ;;
8505 m68k)
8506 # FIXME: we need at least 68020 code to build shared libraries, but
8507 # adding the `-m68020' flag to GCC prevents building anything better,
8508 # like `-m68040'.
8509 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8510 ;;
8511 esac
8512 ;;
8513
8514 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8515 # PIC is the default for these OSes.
8516 ;;
8517
8518 mingw* | cygwin* | pw32* | os2* | cegcc*)
8519 # This hack is so that the source file can tell whether it is being
8520 # built for inclusion in a dll (and should export symbols for example).
8521 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8522 # (--disable-auto-import) libraries
8523 lt_prog_compiler_pic='-DDLL_EXPORT'
8524 ;;
8525
8526 darwin* | rhapsody*)
8527 # PIC is the default on this platform
8528 # Common symbols not allowed in MH_DYLIB files
8529 lt_prog_compiler_pic='-fno-common'
8530 ;;
8531
8532 haiku*)
8533 # PIC is the default for Haiku.
8534 # The "-static" flag exists, but is broken.
8535 lt_prog_compiler_static=
8536 ;;
8537
8538 hpux*)
8539 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8540 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8541 # sets the default TLS model and affects inlining.
8542 case $host_cpu in
8543 hppa*64*)
8544 # +Z the default
8545 ;;
8546 *)
8547 lt_prog_compiler_pic='-fPIC'
8548 ;;
8549 esac
8550 ;;
8551
8552 interix[3-9]*)
8553 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8554 # Instead, we relocate shared libraries at runtime.
8555 ;;
8556
8557 msdosdjgpp*)
8558 # Just because we use GCC doesn't mean we suddenly get shared libraries
8559 # on systems that don't support them.
8560 lt_prog_compiler_can_build_shared=no
8561 enable_shared=no
8562 ;;
8563
8564 *nto* | *qnx*)
8565 # QNX uses GNU C++, but need to define -shared option too, otherwise
8566 # it will coredump.
8567 lt_prog_compiler_pic='-fPIC -shared'
8568 ;;
8569
8570 sysv4*MP*)
8571 if test -d /usr/nec; then
8572 lt_prog_compiler_pic=-Kconform_pic
8573 fi
8574 ;;
8575
8576 *)
8577 lt_prog_compiler_pic='-fPIC'
8578 ;;
8579 esac
8580
8581 case $cc_basename in
8582 nvcc*) # Cuda Compiler Driver 2.2
8583 lt_prog_compiler_wl='-Xlinker '
8584 lt_prog_compiler_pic='-Xcompiler -fPIC'
8585 ;;
8586 esac
8587 else
8588 # PORTME Check for flag to pass linker flags through the system compiler.
8589 case $host_os in
8590 aix*)
8591 lt_prog_compiler_wl='-Wl,'
8592 if test "$host_cpu" = ia64; then
8593 # AIX 5 now supports IA64 processor
8594 lt_prog_compiler_static='-Bstatic'
8595 else
8596 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8597 fi
8598 ;;
8599
8600 mingw* | cygwin* | pw32* | os2* | cegcc*)
8601 # This hack is so that the source file can tell whether it is being
8602 # built for inclusion in a dll (and should export symbols for example).
8603 lt_prog_compiler_pic='-DDLL_EXPORT'
8604 ;;
8605
8606 hpux9* | hpux10* | hpux11*)
8607 lt_prog_compiler_wl='-Wl,'
8608 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8609 # not for PA HP-UX.
8610 case $host_cpu in
8611 hppa*64*|ia64*)
8612 # +Z the default
8613 ;;
8614 *)
8615 lt_prog_compiler_pic='+Z'
8616 ;;
8617 esac
8618 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8619 lt_prog_compiler_static='${wl}-a ${wl}archive'
8620 ;;
8621
8622 irix5* | irix6* | nonstopux*)
8623 lt_prog_compiler_wl='-Wl,'
8624 # PIC (with -KPIC) is the default.
8625 lt_prog_compiler_static='-non_shared'
8626 ;;
8627
8628 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8629 case $cc_basename in
8630 # old Intel for x86_64 which still supported -KPIC.
8631 ecc*)
8632 lt_prog_compiler_wl='-Wl,'
8633 lt_prog_compiler_pic='-KPIC'
8634 lt_prog_compiler_static='-static'
8635 ;;
8636 # icc used to be incompatible with GCC.
8637 # ICC 10 doesn't accept -KPIC any more.
8638 icc* | ifort*)
8639 lt_prog_compiler_wl='-Wl,'
8640 lt_prog_compiler_pic='-fPIC'
8641 lt_prog_compiler_static='-static'
8642 ;;
8643 # Lahey Fortran 8.1.
8644 lf95*)
8645 lt_prog_compiler_wl='-Wl,'
8646 lt_prog_compiler_pic='--shared'
8647 lt_prog_compiler_static='--static'
8648 ;;
8649 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8650 # Portland Group compilers (*not* the Pentium gcc compiler,
8651 # which looks to be a dead project)
8652 lt_prog_compiler_wl='-Wl,'
8653 lt_prog_compiler_pic='-fpic'
8654 lt_prog_compiler_static='-Bstatic'
8655 ;;
8656 ccc*)
8657 lt_prog_compiler_wl='-Wl,'
8658 # All Alpha code is PIC.
8659 lt_prog_compiler_static='-non_shared'
8660 ;;
8661 xl* | bgxl* | bgf* | mpixl*)
8662 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8663 lt_prog_compiler_wl='-Wl,'
8664 lt_prog_compiler_pic='-qpic'
8665 lt_prog_compiler_static='-qstaticlink'
8666 ;;
8667 *)
8668 case `$CC -V 2>&1 | sed 5q` in
8669 *Sun\ F* | *Sun*Fortran*)
8670 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8671 lt_prog_compiler_pic='-KPIC'
8672 lt_prog_compiler_static='-Bstatic'
8673 lt_prog_compiler_wl=''
8674 ;;
8675 *Sun\ C*)
8676 # Sun C 5.9
8677 lt_prog_compiler_pic='-KPIC'
8678 lt_prog_compiler_static='-Bstatic'
8679 lt_prog_compiler_wl='-Wl,'
8680 ;;
8681 esac
8682 ;;
8683 esac
8684 ;;
8685
8686 newsos6)
8687 lt_prog_compiler_pic='-KPIC'
8688 lt_prog_compiler_static='-Bstatic'
8689 ;;
8690
8691 *nto* | *qnx*)
8692 # QNX uses GNU C++, but need to define -shared option too, otherwise
8693 # it will coredump.
8694 lt_prog_compiler_pic='-fPIC -shared'
8695 ;;
8696
8697 osf3* | osf4* | osf5*)
8698 lt_prog_compiler_wl='-Wl,'
8699 # All OSF/1 code is PIC.
8700 lt_prog_compiler_static='-non_shared'
8701 ;;
8702
8703 rdos*)
8704 lt_prog_compiler_static='-non_shared'
8705 ;;
8706
8707 solaris*)
8708 lt_prog_compiler_pic='-KPIC'
8709 lt_prog_compiler_static='-Bstatic'
8710 case $cc_basename in
8711 f77* | f90* | f95*)
8712 lt_prog_compiler_wl='-Qoption ld ';;
8713 *)
8714 lt_prog_compiler_wl='-Wl,';;
8715 esac
8716 ;;
8717
8718 sunos4*)
8719 lt_prog_compiler_wl='-Qoption ld '
8720 lt_prog_compiler_pic='-PIC'
8721 lt_prog_compiler_static='-Bstatic'
8722 ;;
8723
8724 sysv4 | sysv4.2uw2* | sysv4.3*)
8725 lt_prog_compiler_wl='-Wl,'
8726 lt_prog_compiler_pic='-KPIC'
8727 lt_prog_compiler_static='-Bstatic'
8728 ;;
8729
8730 sysv4*MP*)
8731 if test -d /usr/nec ;then
8732 lt_prog_compiler_pic='-Kconform_pic'
8733 lt_prog_compiler_static='-Bstatic'
8734 fi
8735 ;;
8736
8737 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8738 lt_prog_compiler_wl='-Wl,'
8739 lt_prog_compiler_pic='-KPIC'
8740 lt_prog_compiler_static='-Bstatic'
8741 ;;
8742
8743 unicos*)
8744 lt_prog_compiler_wl='-Wl,'
8745 lt_prog_compiler_can_build_shared=no
8746 ;;
8747
8748 uts4*)
8749 lt_prog_compiler_pic='-pic'
8750 lt_prog_compiler_static='-Bstatic'
8751 ;;
8752
8753 *)
8754 lt_prog_compiler_can_build_shared=no
8755 ;;
8756 esac
8757 fi
8758
8759case $host_os in
8760 # For platforms which do not support PIC, -DPIC is meaningless:
8761 *djgpp*)
8762 lt_prog_compiler_pic=
8763 ;;
8764 *)
8765 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8766 ;;
8767esac
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8769$as_echo "$lt_prog_compiler_pic" >&6; }
8770
8771
8772
8773
8774
8775
8776#
8777# Check to make sure the PIC flag actually works.
8778#
8779if test -n "$lt_prog_compiler_pic"; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8781$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 8782if ${lt_cv_prog_compiler_pic_works+:} false; then :
eff02e4f
ILT
8783 $as_echo_n "(cached) " >&6
8784else
8785 lt_cv_prog_compiler_pic_works=no
8786 ac_outfile=conftest.$ac_objext
8787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8788 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8789 # Insert the option either (1) after the last *FLAGS variable, or
8790 # (2) before a word containing "conftest.", or (3) at the end.
8791 # Note that $ac_compile itself does not contain backslashes and begins
8792 # with a dollar sign (not a hyphen), so the echo should work correctly.
8793 # The option is referenced via a variable to avoid confusing sed.
8794 lt_compile=`echo "$ac_compile" | $SED \
8795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8797 -e 's:$: $lt_compiler_flag:'`
8798 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8799 (eval "$lt_compile" 2>conftest.err)
8800 ac_status=$?
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 if (exit $ac_status) && test -s "$ac_outfile"; then
8804 # The compiler can only warn and ignore the option if not recognized
8805 # So say no if there are warnings other than the usual output.
8806 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8808 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8809 lt_cv_prog_compiler_pic_works=yes
8810 fi
8811 fi
8812 $RM conftest*
8813
8814fi
8815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8816$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8817
8818if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8819 case $lt_prog_compiler_pic in
8820 "" | " "*) ;;
8821 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8822 esac
8823else
8824 lt_prog_compiler_pic=
8825 lt_prog_compiler_can_build_shared=no
8826fi
8827
8828fi
8829
8830
8831
8832
8833
8834
8835#
8836# Check to make sure the static flag actually works.
8837#
8838wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8840$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 8841if ${lt_cv_prog_compiler_static_works+:} false; then :
eff02e4f
ILT
8842 $as_echo_n "(cached) " >&6
8843else
8844 lt_cv_prog_compiler_static_works=no
8845 save_LDFLAGS="$LDFLAGS"
8846 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8847 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8848 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8849 # The linker can only warn and ignore the option if not recognized
8850 # So say no if there are warnings
8851 if test -s conftest.err; then
8852 # Append any errors to the config.log.
8853 cat conftest.err 1>&5
8854 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8855 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8856 if diff conftest.exp conftest.er2 >/dev/null; then
8857 lt_cv_prog_compiler_static_works=yes
8858 fi
8859 else
8860 lt_cv_prog_compiler_static_works=yes
8861 fi
8862 fi
8863 $RM -r conftest*
8864 LDFLAGS="$save_LDFLAGS"
8865
8866fi
8867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8868$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8869
8870if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8871 :
8872else
8873 lt_prog_compiler_static=
8874fi
8875
8876
8877
8878
8879
8880
8881
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8883$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8884if ${lt_cv_prog_compiler_c_o+:} false; then :
eff02e4f
ILT
8885 $as_echo_n "(cached) " >&6
8886else
8887 lt_cv_prog_compiler_c_o=no
8888 $RM -r conftest 2>/dev/null
8889 mkdir conftest
8890 cd conftest
8891 mkdir out
8892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8893
8894 lt_compiler_flag="-o out/conftest2.$ac_objext"
8895 # Insert the option either (1) after the last *FLAGS variable, or
8896 # (2) before a word containing "conftest.", or (3) at the end.
8897 # Note that $ac_compile itself does not contain backslashes and begins
8898 # with a dollar sign (not a hyphen), so the echo should work correctly.
8899 lt_compile=`echo "$ac_compile" | $SED \
8900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8902 -e 's:$: $lt_compiler_flag:'`
8903 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8904 (eval "$lt_compile" 2>out/conftest.err)
8905 ac_status=$?
8906 cat out/conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8909 then
8910 # The compiler can only warn and ignore the option if not recognized
8911 # So say no if there are warnings
8912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8913 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8914 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8915 lt_cv_prog_compiler_c_o=yes
8916 fi
8917 fi
8918 chmod u+w . 2>&5
8919 $RM conftest*
8920 # SGI C++ compiler will create directory out/ii_files/ for
8921 # template instantiation
8922 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8923 $RM out/* && rmdir out
8924 cd ..
8925 $RM -r conftest
8926 $RM conftest*
8927
8928fi
8929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8930$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8931
8932
8933
8934
8935
8936
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8938$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8939if ${lt_cv_prog_compiler_c_o+:} false; then :
eff02e4f
ILT
8940 $as_echo_n "(cached) " >&6
8941else
8942 lt_cv_prog_compiler_c_o=no
8943 $RM -r conftest 2>/dev/null
8944 mkdir conftest
8945 cd conftest
8946 mkdir out
8947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8948
8949 lt_compiler_flag="-o out/conftest2.$ac_objext"
8950 # Insert the option either (1) after the last *FLAGS variable, or
8951 # (2) before a word containing "conftest.", or (3) at the end.
8952 # Note that $ac_compile itself does not contain backslashes and begins
8953 # with a dollar sign (not a hyphen), so the echo should work correctly.
8954 lt_compile=`echo "$ac_compile" | $SED \
8955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8957 -e 's:$: $lt_compiler_flag:'`
8958 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8959 (eval "$lt_compile" 2>out/conftest.err)
8960 ac_status=$?
8961 cat out/conftest.err >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8964 then
8965 # The compiler can only warn and ignore the option if not recognized
8966 # So say no if there are warnings
8967 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8968 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8969 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8970 lt_cv_prog_compiler_c_o=yes
8971 fi
8972 fi
8973 chmod u+w . 2>&5
8974 $RM conftest*
8975 # SGI C++ compiler will create directory out/ii_files/ for
8976 # template instantiation
8977 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8978 $RM out/* && rmdir out
8979 cd ..
8980 $RM -r conftest
8981 $RM conftest*
8982
8983fi
8984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8985$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8986
8987
8988
8989
8990hard_links="nottested"
8991if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8992 # do not overwrite the value of need_locks provided by the user
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8994$as_echo_n "checking if we can lock with hard links... " >&6; }
8995 hard_links=yes
8996 $RM conftest*
8997 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8998 touch conftest.a
8999 ln conftest.a conftest.b 2>&5 || hard_links=no
9000 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9002$as_echo "$hard_links" >&6; }
9003 if test "$hard_links" = no; then
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9005$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9006 need_locks=warn
9007 fi
9008else
9009 need_locks=no
9010fi
9011
9012
9013
9014
9015
9016
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9018$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9019
9020 runpath_var=
9021 allow_undefined_flag=
9022 always_export_symbols=no
9023 archive_cmds=
9024 archive_expsym_cmds=
9025 compiler_needs_object=no
9026 enable_shared_with_static_runtimes=no
9027 export_dynamic_flag_spec=
9028 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9029 hardcode_automatic=no
9030 hardcode_direct=no
9031 hardcode_direct_absolute=no
9032 hardcode_libdir_flag_spec=
9033 hardcode_libdir_flag_spec_ld=
9034 hardcode_libdir_separator=
9035 hardcode_minus_L=no
9036 hardcode_shlibpath_var=unsupported
9037 inherit_rpath=no
9038 link_all_deplibs=unknown
9039 module_cmds=
9040 module_expsym_cmds=
9041 old_archive_from_new_cmds=
9042 old_archive_from_expsyms_cmds=
9043 thread_safe_flag_spec=
9044 whole_archive_flag_spec=
9045 # include_expsyms should be a list of space-separated symbols to be *always*
9046 # included in the symbol list
9047 include_expsyms=
9048 # exclude_expsyms can be an extended regexp of symbols to exclude
9049 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9050 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9051 # as well as any symbol that contains `d'.
9052 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9053 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9054 # platforms (ab)use it in PIC code, but their linkers get confused if
9055 # the symbol is explicitly referenced. Since portable code cannot
9056 # rely on this symbol name, it's probably fine to never include it in
9057 # preloaded symbol tables.
9058 # Exclude shared library initialization/finalization symbols.
9059 extract_expsyms_cmds=
9060
9061 case $host_os in
9062 cygwin* | mingw* | pw32* | cegcc*)
9063 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9064 # When not using gcc, we currently assume that we are using
9065 # Microsoft Visual C++.
9066 if test "$GCC" != yes; then
9067 with_gnu_ld=no
9068 fi
9069 ;;
9070 interix*)
9071 # we just hope/assume this is gcc and not c89 (= MSVC++)
9072 with_gnu_ld=yes
9073 ;;
9074 openbsd*)
9075 with_gnu_ld=no
9076 ;;
9077 esac
9078
9079 ld_shlibs=yes
9080
9081 # On some targets, GNU ld is compatible enough with the native linker
9082 # that we're better off using the native interface for both.
9083 lt_use_gnu_ld_interface=no
9084 if test "$with_gnu_ld" = yes; then
9085 case $host_os in
9086 aix*)
9087 # The AIX port of GNU ld has always aspired to compatibility
9088 # with the native linker. However, as the warning in the GNU ld
9089 # block says, versions before 2.19.5* couldn't really create working
9090 # shared libraries, regardless of the interface used.
9091 case `$LD -v 2>&1` in
9092 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9093 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9094 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9095 *)
9096 lt_use_gnu_ld_interface=yes
9097 ;;
9098 esac
9099 ;;
9100 *)
9101 lt_use_gnu_ld_interface=yes
9102 ;;
9103 esac
9104 fi
9105
9106 if test "$lt_use_gnu_ld_interface" = yes; then
9107 # If archive_cmds runs LD, not CC, wlarc should be empty
9108 wlarc='${wl}'
9109
9110 # Set some defaults for GNU ld with shared library support. These
9111 # are reset later if shared libraries are not supported. Putting them
9112 # here allows them to be overridden if necessary.
9113 runpath_var=LD_RUN_PATH
9114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9115 export_dynamic_flag_spec='${wl}--export-dynamic'
9116 # ancient GNU ld didn't support --whole-archive et. al.
9117 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9118 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9119 else
9120 whole_archive_flag_spec=
9121 fi
9122 supports_anon_versioning=no
9123 case `$LD -v 2>&1` in
9124 *GNU\ gold*) supports_anon_versioning=yes ;;
9125 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9126 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9127 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9128 *\ 2.11.*) ;; # other 2.11 versions
9129 *) supports_anon_versioning=yes ;;
9130 esac
9131
9132 # See if GNU ld supports shared libraries.
9133 case $host_os in
9134 aix[3-9]*)
9135 # On AIX/PPC, the GNU linker is very broken
9136 if test "$host_cpu" != ia64; then
9137 ld_shlibs=no
9138 cat <<_LT_EOF 1>&2
9139
9140*** Warning: the GNU linker, at least up to release 2.19, is reported
9141*** to be unable to reliably create shared libraries on AIX.
9142*** Therefore, libtool is disabling shared libraries support. If you
9143*** really care for shared libraries, you may want to install binutils
9144*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9145*** You will then need to restart the configuration process.
9146
9147_LT_EOF
9148 fi
9149 ;;
9150
9151 amigaos*)
9152 case $host_cpu in
9153 powerpc)
9154 # see comment about AmigaOS4 .so support
9155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9156 archive_expsym_cmds=''
9157 ;;
9158 m68k)
9159 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)'
9160 hardcode_libdir_flag_spec='-L$libdir'
9161 hardcode_minus_L=yes
9162 ;;
9163 esac
9164 ;;
9165
9166 beos*)
9167 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9168 allow_undefined_flag=unsupported
9169 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9170 # support --undefined. This deserves some investigation. FIXME
9171 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9172 else
9173 ld_shlibs=no
9174 fi
9175 ;;
9176
9177 cygwin* | mingw* | pw32* | cegcc*)
9178 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9179 # as there is no search path for DLLs.
9180 hardcode_libdir_flag_spec='-L$libdir'
9181 export_dynamic_flag_spec='${wl}--export-all-symbols'
9182 allow_undefined_flag=unsupported
9183 always_export_symbols=no
9184 enable_shared_with_static_runtimes=yes
9185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9186
9187 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9189 # If the export-symbols file already is a .def file (1st line
9190 # is EXPORTS), use it as is; otherwise, prepend...
9191 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9192 cp $export_symbols $output_objdir/$soname.def;
9193 else
9194 echo EXPORTS > $output_objdir/$soname.def;
9195 cat $export_symbols >> $output_objdir/$soname.def;
9196 fi~
9197 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9198 else
9199 ld_shlibs=no
9200 fi
9201 ;;
9202
9203 haiku*)
9204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9205 link_all_deplibs=yes
9206 ;;
9207
9208 interix[3-9]*)
9209 hardcode_direct=no
9210 hardcode_shlibpath_var=no
9211 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9212 export_dynamic_flag_spec='${wl}-E'
9213 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9214 # Instead, shared libraries are loaded at an image base (0x10000000 by
9215 # default) and relocated if they conflict, which is a slow very memory
9216 # consuming and fragmenting process. To avoid this, we pick a random,
9217 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9218 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9219 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9220 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'
9221 ;;
9222
9223 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9224 tmp_diet=no
9225 if test "$host_os" = linux-dietlibc; then
9226 case $cc_basename in
9227 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9228 esac
9229 fi
9230 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9231 && test "$tmp_diet" = no
9232 then
a699d672 9233 tmp_addflag=' $pic_flag'
eff02e4f
ILT
9234 tmp_sharedflag='-shared'
9235 case $cc_basename,$host_cpu in
9236 pgcc*) # Portland Group C compiler
9237 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'
9238 tmp_addflag=' $pic_flag'
9239 ;;
9240 pgf77* | pgf90* | pgf95* | pgfortran*)
9241 # Portland Group f77 and f90 compilers
9242 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'
9243 tmp_addflag=' $pic_flag -Mnomain' ;;
9244 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9245 tmp_addflag=' -i_dynamic' ;;
9246 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9247 tmp_addflag=' -i_dynamic -nofor_main' ;;
9248 ifc* | ifort*) # Intel Fortran compiler
9249 tmp_addflag=' -nofor_main' ;;
9250 lf95*) # Lahey Fortran 8.1
9251 whole_archive_flag_spec=
9252 tmp_sharedflag='--shared' ;;
9253 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9254 tmp_sharedflag='-qmkshrobj'
9255 tmp_addflag= ;;
9256 nvcc*) # Cuda Compiler Driver 2.2
9257 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'
9258 compiler_needs_object=yes
9259 ;;
9260 esac
9261 case `$CC -V 2>&1 | sed 5q` in
9262 *Sun\ C*) # Sun C 5.9
9263 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'
9264 compiler_needs_object=yes
9265 tmp_sharedflag='-G' ;;
9266 *Sun\ F*) # Sun Fortran 8.3
9267 tmp_sharedflag='-G' ;;
9268 esac
9269 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9270
9271 if test "x$supports_anon_versioning" = xyes; then
9272 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9273 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9274 echo "local: *; };" >> $output_objdir/$libname.ver~
9275 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9276 fi
9277
9278 case $cc_basename in
9279 xlf* | bgf* | bgxlf* | mpixlf*)
9280 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9281 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9282 hardcode_libdir_flag_spec=
9283 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9284 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9285 if test "x$supports_anon_versioning" = xyes; then
9286 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9287 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9288 echo "local: *; };" >> $output_objdir/$libname.ver~
9289 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9290 fi
9291 ;;
9292 esac
9293 else
9294 ld_shlibs=no
9295 fi
9296 ;;
9297
9298 netbsd*)
9299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9300 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9301 wlarc=
9302 else
9303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9304 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9305 fi
9306 ;;
9307
9308 solaris*)
9309 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9310 ld_shlibs=no
9311 cat <<_LT_EOF 1>&2
9312
9313*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9314*** create shared libraries on Solaris systems. Therefore, libtool
9315*** is disabling shared libraries support. We urge you to upgrade GNU
9316*** binutils to release 2.9.1 or newer. Another option is to modify
9317*** your PATH or compiler configuration so that the native linker is
9318*** used, and then restart.
9319
9320_LT_EOF
9321 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9323 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9324 else
9325 ld_shlibs=no
9326 fi
9327 ;;
9328
9329 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9330 case `$LD -v 2>&1` in
9331 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9332 ld_shlibs=no
9333 cat <<_LT_EOF 1>&2
9334
9335*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9336*** reliably create shared libraries on SCO systems. Therefore, libtool
9337*** is disabling shared libraries support. We urge you to upgrade GNU
9338*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9339*** your PATH or compiler configuration so that the native linker is
9340*** used, and then restart.
9341
9342_LT_EOF
9343 ;;
9344 *)
9345 # For security reasons, it is highly recommended that you always
9346 # use absolute paths for naming shared libraries, and exclude the
9347 # DT_RUNPATH tag from executables and libraries. But doing so
9348 # requires that you compile everything twice, which is a pain.
9349 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9350 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9353 else
9354 ld_shlibs=no
9355 fi
9356 ;;
9357 esac
9358 ;;
9359
9360 sunos4*)
9361 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9362 wlarc=
9363 hardcode_direct=yes
9364 hardcode_shlibpath_var=no
9365 ;;
9366
9367 *)
9368 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9370 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9371 else
9372 ld_shlibs=no
9373 fi
9374 ;;
9375 esac
9376
9377 if test "$ld_shlibs" = no; then
9378 runpath_var=
9379 hardcode_libdir_flag_spec=
9380 export_dynamic_flag_spec=
9381 whole_archive_flag_spec=
9382 fi
9383 else
9384 # PORTME fill in a description of your system's linker (not GNU ld)
9385 case $host_os in
9386 aix3*)
9387 allow_undefined_flag=unsupported
9388 always_export_symbols=yes
9389 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'
9390 # Note: this linker hardcodes the directories in LIBPATH if there
9391 # are no directories specified by -L.
9392 hardcode_minus_L=yes
9393 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9394 # Neither direct hardcoding nor static linking is supported with a
9395 # broken collect2.
9396 hardcode_direct=unsupported
9397 fi
9398 ;;
9399
9400 aix[4-9]*)
9401 if test "$host_cpu" = ia64; then
9402 # On IA64, the linker does run time linking by default, so we don't
9403 # have to do anything special.
9404 aix_use_runtimelinking=no
9405 exp_sym_flag='-Bexport'
9406 no_entry_flag=""
9407 else
9408 # If we're using GNU nm, then we don't want the "-C" option.
9409 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9410 # Also, AIX nm treats weak defined symbols like other global
9411 # defined symbols, whereas GNU nm marks them as "W".
9412 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9413 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'
9414 else
2f401a8f 9415 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
9416 fi
9417 aix_use_runtimelinking=no
9418
9419 # Test if we are trying to use run time linking or normal
9420 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9421 # need to do runtime linking.
9422 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9423 for ld_flag in $LDFLAGS; do
9424 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9425 aix_use_runtimelinking=yes
9426 break
9427 fi
9428 done
9429 ;;
9430 esac
9431
9432 exp_sym_flag='-bexport'
9433 no_entry_flag='-bnoentry'
9434 fi
9435
9436 # When large executables or shared objects are built, AIX ld can
9437 # have problems creating the table of contents. If linking a library
9438 # or program results in "error TOC overflow" add -mminimal-toc to
9439 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9440 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9441
9442 archive_cmds=''
9443 hardcode_direct=yes
9444 hardcode_direct_absolute=yes
9445 hardcode_libdir_separator=':'
9446 link_all_deplibs=yes
9447 file_list_spec='${wl}-f,'
9448
9449 if test "$GCC" = yes; then
9450 case $host_os in aix4.[012]|aix4.[012].*)
9451 # We only want to do this on AIX 4.2 and lower, the check
9452 # below for broken collect2 doesn't work under 4.3+
9453 collect2name=`${CC} -print-prog-name=collect2`
9454 if test -f "$collect2name" &&
9455 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9456 then
9457 # We have reworked collect2
9458 :
9459 else
9460 # We have old collect2
9461 hardcode_direct=unsupported
9462 # It fails to find uninstalled libraries when the uninstalled
9463 # path is not listed in the libpath. Setting hardcode_minus_L
9464 # to unsupported forces relinking
9465 hardcode_minus_L=yes
9466 hardcode_libdir_flag_spec='-L$libdir'
9467 hardcode_libdir_separator=
9468 fi
9469 ;;
9470 esac
9471 shared_flag='-shared'
9472 if test "$aix_use_runtimelinking" = yes; then
9473 shared_flag="$shared_flag "'${wl}-G'
9474 fi
9475 else
9476 # not using gcc
9477 if test "$host_cpu" = ia64; then
9478 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9479 # chokes on -Wl,-G. The following line is correct:
9480 shared_flag='-G'
9481 else
9482 if test "$aix_use_runtimelinking" = yes; then
9483 shared_flag='${wl}-G'
9484 else
9485 shared_flag='${wl}-bM:SRE'
9486 fi
9487 fi
9488 fi
9489
9490 export_dynamic_flag_spec='${wl}-bexpall'
9491 # It seems that -bexpall does not export symbols beginning with
9492 # underscore (_), so it is better to generate a list of symbols to export.
9493 always_export_symbols=yes
9494 if test "$aix_use_runtimelinking" = yes; then
9495 # Warning - without using the other runtime loading flags (-brtl),
9496 # -berok will link without error, but may produce a broken library.
9497 allow_undefined_flag='-berok'
9498 # Determine the default libpath from the value encoded in an
9499 # empty executable.
9500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501/* end confdefs.h. */
9502
9503int
9504main ()
9505{
9506
9507 ;
9508 return 0;
9509}
9510_ACEOF
9511if ac_fn_c_try_link "$LINENO"; then :
9512
9513lt_aix_libpath_sed='
9514 /Import File Strings/,/^$/ {
9515 /^0/ {
9516 s/^0 *\(.*\)$/\1/
9517 p
9518 }
9519 }'
9520aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9521# Check for a 64-bit object if we didn't find anything.
9522if test -z "$aix_libpath"; then
9523 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9524fi
9525fi
9526rm -f core conftest.err conftest.$ac_objext \
9527 conftest$ac_exeext conftest.$ac_ext
9528if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9529
9530 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9531 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"
9532 else
9533 if test "$host_cpu" = ia64; then
9534 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9535 allow_undefined_flag="-z nodefs"
9536 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"
9537 else
9538 # Determine the default libpath from the value encoded in an
9539 # empty executable.
9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541/* end confdefs.h. */
9542
9543int
9544main ()
9545{
9546
9547 ;
9548 return 0;
9549}
9550_ACEOF
9551if ac_fn_c_try_link "$LINENO"; then :
9552
9553lt_aix_libpath_sed='
9554 /Import File Strings/,/^$/ {
9555 /^0/ {
9556 s/^0 *\(.*\)$/\1/
9557 p
9558 }
9559 }'
9560aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9561# Check for a 64-bit object if we didn't find anything.
9562if test -z "$aix_libpath"; then
9563 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9564fi
9565fi
9566rm -f core conftest.err conftest.$ac_objext \
9567 conftest$ac_exeext conftest.$ac_ext
9568if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9569
9570 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9571 # Warning - without using the other run time loading flags,
9572 # -berok will link without error, but may produce a broken library.
9573 no_undefined_flag=' ${wl}-bernotok'
9574 allow_undefined_flag=' ${wl}-berok'
9575 if test "$with_gnu_ld" = yes; then
9576 # We only use this code for GNU lds that support --whole-archive.
9577 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9578 else
9579 # Exported symbols can be pulled into shared objects from archives
9580 whole_archive_flag_spec='$convenience'
9581 fi
9582 archive_cmds_need_lc=yes
9583 # This is similar to how AIX traditionally builds its shared libraries.
9584 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'
9585 fi
9586 fi
9587 ;;
9588
9589 amigaos*)
9590 case $host_cpu in
9591 powerpc)
9592 # see comment about AmigaOS4 .so support
9593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9594 archive_expsym_cmds=''
9595 ;;
9596 m68k)
9597 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)'
9598 hardcode_libdir_flag_spec='-L$libdir'
9599 hardcode_minus_L=yes
9600 ;;
9601 esac
9602 ;;
9603
9604 bsdi[45]*)
9605 export_dynamic_flag_spec=-rdynamic
9606 ;;
9607
9608 cygwin* | mingw* | pw32* | cegcc*)
9609 # When not using gcc, we currently assume that we are using
9610 # Microsoft Visual C++.
9611 # hardcode_libdir_flag_spec is actually meaningless, as there is
9612 # no search path for DLLs.
9613 hardcode_libdir_flag_spec=' '
9614 allow_undefined_flag=unsupported
9615 # Tell ltmain to make .lib files, not .a files.
9616 libext=lib
9617 # Tell ltmain to make .dll files, not .so files.
9618 shrext_cmds=".dll"
9619 # FIXME: Setting linknames here is a bad hack.
9620 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9621 # The linker will automatically build a .lib file if we build a DLL.
9622 old_archive_from_new_cmds='true'
9623 # FIXME: Should let the user specify the lib program.
9624 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9625 fix_srcfile_path='`cygpath -w "$srcfile"`'
9626 enable_shared_with_static_runtimes=yes
9627 ;;
9628
9629 darwin* | rhapsody*)
9630
9631
9632 archive_cmds_need_lc=no
9633 hardcode_direct=no
9634 hardcode_automatic=yes
9635 hardcode_shlibpath_var=unsupported
9636 if test "$lt_cv_ld_force_load" = "yes"; then
9637 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\"`'
9638 else
9639 whole_archive_flag_spec=''
9640 fi
9641 link_all_deplibs=yes
9642 allow_undefined_flag="$_lt_dar_allow_undefined"
9643 case $cc_basename in
9644 ifort*) _lt_dar_can_shared=yes ;;
9645 *) _lt_dar_can_shared=$GCC ;;
9646 esac
9647 if test "$_lt_dar_can_shared" = "yes"; then
9648 output_verbose_link_cmd=func_echo_all
9649 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9650 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9651 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}"
9652 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}"
9653
9654 else
9655 ld_shlibs=no
9656 fi
9657
9658 ;;
9659
9660 dgux*)
9661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9662 hardcode_libdir_flag_spec='-L$libdir'
9663 hardcode_shlibpath_var=no
9664 ;;
9665
9666 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9667 # support. Future versions do this automatically, but an explicit c++rt0.o
9668 # does not break anything, and helps significantly (at the cost of a little
9669 # extra space).
9670 freebsd2.2*)
9671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9672 hardcode_libdir_flag_spec='-R$libdir'
9673 hardcode_direct=yes
9674 hardcode_shlibpath_var=no
9675 ;;
9676
9677 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9678 freebsd2.*)
9679 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9680 hardcode_direct=yes
9681 hardcode_minus_L=yes
9682 hardcode_shlibpath_var=no
9683 ;;
9684
9685 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9686 freebsd* | dragonfly*)
9687 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9688 hardcode_libdir_flag_spec='-R$libdir'
9689 hardcode_direct=yes
9690 hardcode_shlibpath_var=no
9691 ;;
9692
9693 hpux9*)
9694 if test "$GCC" = yes; then
9695 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'
9696 else
9697 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'
9698 fi
9699 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9700 hardcode_libdir_separator=:
9701 hardcode_direct=yes
9702
9703 # hardcode_minus_L: Not really in the search PATH,
9704 # but as the default location of the library.
9705 hardcode_minus_L=yes
9706 export_dynamic_flag_spec='${wl}-E'
9707 ;;
9708
9709 hpux10*)
9710 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9711 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9712 else
9713 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9714 fi
9715 if test "$with_gnu_ld" = no; then
9716 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9717 hardcode_libdir_flag_spec_ld='+b $libdir'
9718 hardcode_libdir_separator=:
9719 hardcode_direct=yes
9720 hardcode_direct_absolute=yes
9721 export_dynamic_flag_spec='${wl}-E'
9722 # hardcode_minus_L: Not really in the search PATH,
9723 # but as the default location of the library.
9724 hardcode_minus_L=yes
9725 fi
9726 ;;
9727
9728 hpux11*)
9729 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9730 case $host_cpu in
9731 hppa*64*)
9732 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9733 ;;
9734 ia64*)
9735 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9736 ;;
9737 *)
9738 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9739 ;;
9740 esac
9741 else
9742 case $host_cpu in
9743 hppa*64*)
9744 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9745 ;;
9746 ia64*)
9747 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9748 ;;
9749 *)
9750
9751 # Older versions of the 11.00 compiler do not understand -b yet
9752 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9754$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 9755if ${lt_cv_prog_compiler__b+:} false; then :
eff02e4f
ILT
9756 $as_echo_n "(cached) " >&6
9757else
9758 lt_cv_prog_compiler__b=no
9759 save_LDFLAGS="$LDFLAGS"
9760 LDFLAGS="$LDFLAGS -b"
9761 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9762 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9763 # The linker can only warn and ignore the option if not recognized
9764 # So say no if there are warnings
9765 if test -s conftest.err; then
9766 # Append any errors to the config.log.
9767 cat conftest.err 1>&5
9768 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9769 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9770 if diff conftest.exp conftest.er2 >/dev/null; then
9771 lt_cv_prog_compiler__b=yes
9772 fi
9773 else
9774 lt_cv_prog_compiler__b=yes
9775 fi
9776 fi
9777 $RM -r conftest*
9778 LDFLAGS="$save_LDFLAGS"
9779
9780fi
9781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9782$as_echo "$lt_cv_prog_compiler__b" >&6; }
9783
9784if test x"$lt_cv_prog_compiler__b" = xyes; then
9785 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9786else
9787 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9788fi
9789
9790 ;;
9791 esac
9792 fi
9793 if test "$with_gnu_ld" = no; then
9794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9795 hardcode_libdir_separator=:
9796
9797 case $host_cpu in
9798 hppa*64*|ia64*)
9799 hardcode_direct=no
9800 hardcode_shlibpath_var=no
9801 ;;
9802 *)
9803 hardcode_direct=yes
9804 hardcode_direct_absolute=yes
9805 export_dynamic_flag_spec='${wl}-E'
9806
9807 # hardcode_minus_L: Not really in the search PATH,
9808 # but as the default location of the library.
9809 hardcode_minus_L=yes
9810 ;;
9811 esac
9812 fi
9813 ;;
9814
9815 irix5* | irix6* | nonstopux*)
9816 if test "$GCC" = yes; then
9817 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'
9818 # Try to use the -exported_symbol ld option, if it does not
9819 # work, assume that -exports_file does not work either and
9820 # implicitly export all symbols.
9821 save_LDFLAGS="$LDFLAGS"
9822 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824/* end confdefs.h. */
9825int foo(void) {}
9826_ACEOF
9827if ac_fn_c_try_link "$LINENO"; then :
9828 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'
9829
9830fi
9831rm -f core conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext conftest.$ac_ext
9833 LDFLAGS="$save_LDFLAGS"
9834 else
9835 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'
9836 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'
9837 fi
9838 archive_cmds_need_lc='no'
9839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9840 hardcode_libdir_separator=:
9841 inherit_rpath=yes
9842 link_all_deplibs=yes
9843 ;;
9844
9845 netbsd*)
9846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9848 else
9849 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9850 fi
9851 hardcode_libdir_flag_spec='-R$libdir'
9852 hardcode_direct=yes
9853 hardcode_shlibpath_var=no
9854 ;;
9855
9856 newsos6)
9857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9858 hardcode_direct=yes
9859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9860 hardcode_libdir_separator=:
9861 hardcode_shlibpath_var=no
9862 ;;
9863
9864 *nto* | *qnx*)
9865 ;;
9866
9867 openbsd*)
9868 if test -f /usr/libexec/ld.so; then
9869 hardcode_direct=yes
9870 hardcode_shlibpath_var=no
9871 hardcode_direct_absolute=yes
9872 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9873 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9874 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9876 export_dynamic_flag_spec='${wl}-E'
9877 else
9878 case $host_os in
9879 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9880 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9881 hardcode_libdir_flag_spec='-R$libdir'
9882 ;;
9883 *)
9884 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9885 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9886 ;;
9887 esac
9888 fi
9889 else
9890 ld_shlibs=no
9891 fi
9892 ;;
9893
9894 os2*)
9895 hardcode_libdir_flag_spec='-L$libdir'
9896 hardcode_minus_L=yes
9897 allow_undefined_flag=unsupported
9898 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'
9899 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9900 ;;
9901
9902 osf3*)
9903 if test "$GCC" = yes; then
9904 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9905 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'
9906 else
9907 allow_undefined_flag=' -expect_unresolved \*'
9908 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'
9909 fi
9910 archive_cmds_need_lc='no'
9911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9912 hardcode_libdir_separator=:
9913 ;;
9914
9915 osf4* | osf5*) # as osf3* with the addition of -msym flag
9916 if test "$GCC" = yes; then
9917 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9918 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'
9919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9920 else
9921 allow_undefined_flag=' -expect_unresolved \*'
9922 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'
9923 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~
9924 $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'
9925
9926 # Both c and cxx compiler support -rpath directly
9927 hardcode_libdir_flag_spec='-rpath $libdir'
9928 fi
9929 archive_cmds_need_lc='no'
9930 hardcode_libdir_separator=:
9931 ;;
9932
9933 solaris*)
9934 no_undefined_flag=' -z defs'
9935 if test "$GCC" = yes; then
9936 wlarc='${wl}'
9937 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9939 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9940 else
9941 case `$CC -V 2>&1` in
9942 *"Compilers 5.0"*)
9943 wlarc=''
9944 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9946 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9947 ;;
9948 *)
9949 wlarc='${wl}'
9950 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9951 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9952 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9953 ;;
9954 esac
9955 fi
9956 hardcode_libdir_flag_spec='-R$libdir'
9957 hardcode_shlibpath_var=no
9958 case $host_os in
9959 solaris2.[0-5] | solaris2.[0-5].*) ;;
9960 *)
9961 # The compiler driver will combine and reorder linker options,
9962 # but understands `-z linker_flag'. GCC discards it without `$wl',
9963 # but is careful enough not to reorder.
9964 # Supported since Solaris 2.6 (maybe 2.5.1?)
9965 if test "$GCC" = yes; then
9966 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9967 else
9968 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9969 fi
9970 ;;
9971 esac
9972 link_all_deplibs=yes
9973 ;;
9974
9975 sunos4*)
9976 if test "x$host_vendor" = xsequent; then
9977 # Use $CC to link under sequent, because it throws in some extra .o
9978 # files that make .init and .fini sections work.
9979 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9980 else
9981 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9982 fi
9983 hardcode_libdir_flag_spec='-L$libdir'
9984 hardcode_direct=yes
9985 hardcode_minus_L=yes
9986 hardcode_shlibpath_var=no
9987 ;;
9988
9989 sysv4)
9990 case $host_vendor in
9991 sni)
9992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9993 hardcode_direct=yes # is this really true???
9994 ;;
9995 siemens)
9996 ## LD is ld it makes a PLAMLIB
9997 ## CC just makes a GrossModule.
9998 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9999 reload_cmds='$CC -r -o $output$reload_objs'
10000 hardcode_direct=no
10001 ;;
10002 motorola)
10003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10004 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10005 ;;
10006 esac
10007 runpath_var='LD_RUN_PATH'
10008 hardcode_shlibpath_var=no
10009 ;;
10010
10011 sysv4.3*)
10012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10013 hardcode_shlibpath_var=no
10014 export_dynamic_flag_spec='-Bexport'
10015 ;;
10016
10017 sysv4*MP*)
10018 if test -d /usr/nec; then
10019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10020 hardcode_shlibpath_var=no
10021 runpath_var=LD_RUN_PATH
10022 hardcode_runpath_var=yes
10023 ld_shlibs=yes
10024 fi
10025 ;;
10026
10027 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10028 no_undefined_flag='${wl}-z,text'
10029 archive_cmds_need_lc=no
10030 hardcode_shlibpath_var=no
10031 runpath_var='LD_RUN_PATH'
10032
10033 if test "$GCC" = yes; then
10034 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10035 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10036 else
10037 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10038 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10039 fi
10040 ;;
10041
10042 sysv5* | sco3.2v5* | sco5v6*)
10043 # Note: We can NOT use -z defs as we might desire, because we do not
10044 # link with -lc, and that would cause any symbols used from libc to
10045 # always be unresolved, which means just about no library would
10046 # ever link correctly. If we're not using GNU ld we use -z text
10047 # though, which does catch some bad symbols but isn't as heavy-handed
10048 # as -z defs.
10049 no_undefined_flag='${wl}-z,text'
10050 allow_undefined_flag='${wl}-z,nodefs'
10051 archive_cmds_need_lc=no
10052 hardcode_shlibpath_var=no
10053 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10054 hardcode_libdir_separator=':'
10055 link_all_deplibs=yes
10056 export_dynamic_flag_spec='${wl}-Bexport'
10057 runpath_var='LD_RUN_PATH'
10058
10059 if test "$GCC" = yes; then
10060 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10061 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10062 else
10063 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10064 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10065 fi
10066 ;;
10067
10068 uts4*)
10069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10070 hardcode_libdir_flag_spec='-L$libdir'
10071 hardcode_shlibpath_var=no
10072 ;;
10073
10074 *)
10075 ld_shlibs=no
10076 ;;
10077 esac
10078
10079 if test x$host_vendor = xsni; then
10080 case $host in
10081 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10082 export_dynamic_flag_spec='${wl}-Blargedynsym'
10083 ;;
10084 esac
10085 fi
10086 fi
10087
10088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10089$as_echo "$ld_shlibs" >&6; }
10090test "$ld_shlibs" = no && can_build_shared=no
10091
10092with_gnu_ld=$with_gnu_ld
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108#
10109# Do we need to explicitly link libc?
10110#
10111case "x$archive_cmds_need_lc" in
10112x|xyes)
10113 # Assume -lc should be added
10114 archive_cmds_need_lc=yes
10115
10116 if test "$enable_shared" = yes && test "$GCC" = yes; then
10117 case $archive_cmds in
10118 *'~'*)
10119 # FIXME: we may have to deal with multi-command sequences.
10120 ;;
10121 '$CC '*)
10122 # Test whether the compiler implicitly links with -lc since on some
10123 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10124 # to ld, don't add -lc before -lgcc.
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10126$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10127if ${lt_cv_archive_cmds_need_lc+:} false; then :
eff02e4f
ILT
10128 $as_echo_n "(cached) " >&6
10129else
10130 $RM conftest*
10131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10132
10133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10134 (eval $ac_compile) 2>&5
10135 ac_status=$?
10136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10137 test $ac_status = 0; } 2>conftest.err; then
10138 soname=conftest
10139 lib=conftest
10140 libobjs=conftest.$ac_objext
10141 deplibs=
10142 wl=$lt_prog_compiler_wl
10143 pic_flag=$lt_prog_compiler_pic
10144 compiler_flags=-v
10145 linker_flags=-v
10146 verstring=
10147 output_objdir=.
10148 libname=conftest
10149 lt_save_allow_undefined_flag=$allow_undefined_flag
10150 allow_undefined_flag=
10151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10152 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10153 ac_status=$?
10154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10155 test $ac_status = 0; }
10156 then
10157 lt_cv_archive_cmds_need_lc=no
10158 else
10159 lt_cv_archive_cmds_need_lc=yes
10160 fi
10161 allow_undefined_flag=$lt_save_allow_undefined_flag
10162 else
10163 cat conftest.err 1>&5
10164 fi
10165 $RM conftest*
10166
10167fi
10168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10169$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10170 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10171 ;;
10172 esac
10173 fi
10174 ;;
10175esac
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10334$as_echo_n "checking dynamic linker characteristics... " >&6; }
10335
10336if test "$GCC" = yes; then
10337 case $host_os in
10338 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10339 *) lt_awk_arg="/^libraries:/" ;;
10340 esac
10341 case $host_os in
10342 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10343 *) lt_sed_strip_eq="s,=/,/,g" ;;
10344 esac
10345 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10346 case $lt_search_path_spec in
10347 *\;*)
10348 # if the path contains ";" then we assume it to be the separator
10349 # otherwise default to the standard path separator (i.e. ":") - it is
10350 # assumed that no part of a normal pathname contains ";" but that should
10351 # okay in the real world where ";" in dirpaths is itself problematic.
10352 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10353 ;;
10354 *)
10355 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10356 ;;
10357 esac
10358 # Ok, now we have the path, separated by spaces, we can step through it
10359 # and add multilib dir if necessary.
10360 lt_tmp_lt_search_path_spec=
10361 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10362 for lt_sys_path in $lt_search_path_spec; do
10363 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10364 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10365 else
10366 test -d "$lt_sys_path" && \
10367 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10368 fi
10369 done
10370 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10371BEGIN {RS=" "; FS="/|\n";} {
10372 lt_foo="";
10373 lt_count=0;
10374 for (lt_i = NF; lt_i > 0; lt_i--) {
10375 if ($lt_i != "" && $lt_i != ".") {
10376 if ($lt_i == "..") {
10377 lt_count++;
10378 } else {
10379 if (lt_count == 0) {
10380 lt_foo="/" $lt_i lt_foo;
10381 } else {
10382 lt_count--;
10383 }
10384 }
10385 }
10386 }
10387 if (lt_foo != "") { lt_freq[lt_foo]++; }
10388 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10389}'`
10390 # AWK program above erroneously prepends '/' to C:/dos/paths
10391 # for these hosts.
10392 case $host_os in
10393 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10394 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10395 esac
10396 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10397else
10398 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10399fi
10400library_names_spec=
10401libname_spec='lib$name'
10402soname_spec=
10403shrext_cmds=".so"
10404postinstall_cmds=
10405postuninstall_cmds=
10406finish_cmds=
10407finish_eval=
10408shlibpath_var=
10409shlibpath_overrides_runpath=unknown
10410version_type=none
10411dynamic_linker="$host_os ld.so"
10412sys_lib_dlsearch_path_spec="/lib /usr/lib"
10413need_lib_prefix=unknown
10414hardcode_into_libs=no
10415
10416# when you set need_version to no, make sure it does not cause -set_version
10417# flags to be left without arguments
10418need_version=unknown
10419
10420case $host_os in
10421aix3*)
10422 version_type=linux
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10424 shlibpath_var=LIBPATH
10425
10426 # AIX 3 has no versioning support, so we append a major version to the name.
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 ;;
10429
10430aix[4-9]*)
10431 version_type=linux
10432 need_lib_prefix=no
10433 need_version=no
10434 hardcode_into_libs=yes
10435 if test "$host_cpu" = ia64; then
10436 # AIX 5 supports IA64
10437 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10438 shlibpath_var=LD_LIBRARY_PATH
10439 else
10440 # With GCC up to 2.95.x, collect2 would create an import file
10441 # for dependence libraries. The import file would start with
10442 # the line `#! .'. This would cause the generated library to
10443 # depend on `.', always an invalid library. This was fixed in
10444 # development snapshots of GCC prior to 3.0.
10445 case $host_os in
10446 aix4 | aix4.[01] | aix4.[01].*)
10447 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10448 echo ' yes '
10449 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10450 :
10451 else
10452 can_build_shared=no
10453 fi
10454 ;;
10455 esac
10456 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10457 # soname into executable. Probably we can add versioning support to
10458 # collect2, so additional links can be useful in future.
10459 if test "$aix_use_runtimelinking" = yes; then
10460 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10461 # instead of lib<name>.a to let people know that these are not
10462 # typical AIX shared libraries.
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 else
10465 # We preserve .a as extension for shared libraries through AIX4.2
10466 # and later when we are not doing run time linking.
10467 library_names_spec='${libname}${release}.a $libname.a'
10468 soname_spec='${libname}${release}${shared_ext}$major'
10469 fi
10470 shlibpath_var=LIBPATH
10471 fi
10472 ;;
10473
10474amigaos*)
10475 case $host_cpu in
10476 powerpc)
10477 # Since July 2007 AmigaOS4 officially supports .so libraries.
10478 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10480 ;;
10481 m68k)
10482 library_names_spec='$libname.ixlibrary $libname.a'
10483 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10484 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'
10485 ;;
10486 esac
10487 ;;
10488
10489beos*)
10490 library_names_spec='${libname}${shared_ext}'
10491 dynamic_linker="$host_os ld.so"
10492 shlibpath_var=LIBRARY_PATH
10493 ;;
10494
10495bsdi[45]*)
10496 version_type=linux
10497 need_version=no
10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10499 soname_spec='${libname}${release}${shared_ext}$major'
10500 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10501 shlibpath_var=LD_LIBRARY_PATH
10502 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10503 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10504 # the default ld.so.conf also contains /usr/contrib/lib and
10505 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10506 # libtool to hard-code these into programs
10507 ;;
10508
10509cygwin* | mingw* | pw32* | cegcc*)
10510 version_type=windows
10511 shrext_cmds=".dll"
10512 need_version=no
10513 need_lib_prefix=no
10514
10515 case $GCC,$host_os in
10516 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10517 library_names_spec='$libname.dll.a'
10518 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10519 postinstall_cmds='base_file=`basename \${file}`~
10520 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10521 dldir=$destdir/`dirname \$dlpath`~
10522 test -d \$dldir || mkdir -p \$dldir~
10523 $install_prog $dir/$dlname \$dldir/$dlname~
10524 chmod a+x \$dldir/$dlname~
10525 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10526 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10527 fi'
10528 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10529 dlpath=$dir/\$dldll~
10530 $RM \$dlpath'
10531 shlibpath_overrides_runpath=yes
10532
10533 case $host_os in
10534 cygwin*)
10535 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10536 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10537
10538 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10539 ;;
10540 mingw* | cegcc*)
10541 # MinGW DLLs use traditional 'lib' prefix
10542 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10543 ;;
10544 pw32*)
10545 # pw32 DLLs use 'pw' prefix rather than 'lib'
10546 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10547 ;;
10548 esac
10549 ;;
10550
10551 *)
10552 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10553 ;;
10554 esac
10555 dynamic_linker='Win32 ld.exe'
10556 # FIXME: first we should search . and the directory the executable is in
10557 shlibpath_var=PATH
10558 ;;
10559
10560darwin* | rhapsody*)
10561 dynamic_linker="$host_os dyld"
10562 version_type=darwin
10563 need_lib_prefix=no
10564 need_version=no
10565 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10566 soname_spec='${libname}${release}${major}$shared_ext'
10567 shlibpath_overrides_runpath=yes
10568 shlibpath_var=DYLD_LIBRARY_PATH
10569 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10570
10571 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10572 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10573 ;;
10574
10575dgux*)
10576 version_type=linux
10577 need_lib_prefix=no
10578 need_version=no
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10580 soname_spec='${libname}${release}${shared_ext}$major'
10581 shlibpath_var=LD_LIBRARY_PATH
10582 ;;
10583
10584freebsd* | dragonfly*)
10585 # DragonFly does not have aout. When/if they implement a new
10586 # versioning mechanism, adjust this.
10587 if test -x /usr/bin/objformat; then
10588 objformat=`/usr/bin/objformat`
10589 else
10590 case $host_os in
10591 freebsd[23].*) objformat=aout ;;
10592 *) objformat=elf ;;
10593 esac
10594 fi
10595 version_type=freebsd-$objformat
10596 case $version_type in
10597 freebsd-elf*)
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10599 need_version=no
10600 need_lib_prefix=no
10601 ;;
10602 freebsd-*)
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10604 need_version=yes
10605 ;;
10606 esac
10607 shlibpath_var=LD_LIBRARY_PATH
10608 case $host_os in
10609 freebsd2.*)
10610 shlibpath_overrides_runpath=yes
10611 ;;
10612 freebsd3.[01]* | freebsdelf3.[01]*)
10613 shlibpath_overrides_runpath=yes
10614 hardcode_into_libs=yes
10615 ;;
10616 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10617 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10618 shlibpath_overrides_runpath=no
10619 hardcode_into_libs=yes
10620 ;;
10621 *) # from 4.6 on, and DragonFly
10622 shlibpath_overrides_runpath=yes
10623 hardcode_into_libs=yes
10624 ;;
10625 esac
10626 ;;
10627
10628gnu*)
10629 version_type=linux
10630 need_lib_prefix=no
10631 need_version=no
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 hardcode_into_libs=yes
10636 ;;
10637
10638haiku*)
10639 version_type=linux
10640 need_lib_prefix=no
10641 need_version=no
10642 dynamic_linker="$host_os runtime_loader"
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10644 soname_spec='${libname}${release}${shared_ext}$major'
10645 shlibpath_var=LIBRARY_PATH
10646 shlibpath_overrides_runpath=yes
10647 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10648 hardcode_into_libs=yes
10649 ;;
10650
10651hpux9* | hpux10* | hpux11*)
10652 # Give a soname corresponding to the major version so that dld.sl refuses to
10653 # link against other versions.
10654 version_type=sunos
10655 need_lib_prefix=no
10656 need_version=no
10657 case $host_cpu in
10658 ia64*)
10659 shrext_cmds='.so'
10660 hardcode_into_libs=yes
10661 dynamic_linker="$host_os dld.so"
10662 shlibpath_var=LD_LIBRARY_PATH
10663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665 soname_spec='${libname}${release}${shared_ext}$major'
10666 if test "X$HPUX_IA64_MODE" = X32; then
10667 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10668 else
10669 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10670 fi
10671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10672 ;;
10673 hppa*64*)
10674 shrext_cmds='.sl'
10675 hardcode_into_libs=yes
10676 dynamic_linker="$host_os dld.sl"
10677 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680 soname_spec='${libname}${release}${shared_ext}$major'
10681 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10682 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10683 ;;
10684 *)
10685 shrext_cmds='.sl'
10686 dynamic_linker="$host_os dld.sl"
10687 shlibpath_var=SHLIB_PATH
10688 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 ;;
10692 esac
10693 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10694 postinstall_cmds='chmod 555 $lib'
10695 # or fails outright, so override atomically:
10696 install_override_mode=555
10697 ;;
10698
10699interix[3-9]*)
10700 version_type=linux
10701 need_lib_prefix=no
10702 need_version=no
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10704 soname_spec='${libname}${release}${shared_ext}$major'
10705 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10706 shlibpath_var=LD_LIBRARY_PATH
10707 shlibpath_overrides_runpath=no
10708 hardcode_into_libs=yes
10709 ;;
10710
10711irix5* | irix6* | nonstopux*)
10712 case $host_os in
10713 nonstopux*) version_type=nonstopux ;;
10714 *)
10715 if test "$lt_cv_prog_gnu_ld" = yes; then
10716 version_type=linux
10717 else
10718 version_type=irix
10719 fi ;;
10720 esac
10721 need_lib_prefix=no
10722 need_version=no
10723 soname_spec='${libname}${release}${shared_ext}$major'
10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10725 case $host_os in
10726 irix5* | nonstopux*)
10727 libsuff= shlibsuff=
10728 ;;
10729 *)
10730 case $LD in # libtool.m4 will add one of these switches to LD
10731 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10732 libsuff= shlibsuff= libmagic=32-bit;;
10733 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10734 libsuff=32 shlibsuff=N32 libmagic=N32;;
10735 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10736 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10737 *) libsuff= shlibsuff= libmagic=never-match;;
10738 esac
10739 ;;
10740 esac
10741 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10742 shlibpath_overrides_runpath=no
10743 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10744 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10745 hardcode_into_libs=yes
10746 ;;
10747
10748# No shared lib support for Linux oldld, aout, or coff.
10749linux*oldld* | linux*aout* | linux*coff*)
10750 dynamic_linker=no
10751 ;;
10752
10753# This must be Linux ELF.
10754linux* | k*bsd*-gnu | kopensolaris*-gnu)
10755 version_type=linux
10756 need_lib_prefix=no
10757 need_version=no
10758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10759 soname_spec='${libname}${release}${shared_ext}$major'
10760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10761 shlibpath_var=LD_LIBRARY_PATH
10762 shlibpath_overrides_runpath=no
10763
10764 # Some binutils ld are patched to set DT_RUNPATH
22e05272 10765 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
eff02e4f
ILT
10766 $as_echo_n "(cached) " >&6
10767else
10768 lt_cv_shlibpath_overrides_runpath=no
10769 save_LDFLAGS=$LDFLAGS
10770 save_libdir=$libdir
10771 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10772 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774/* end confdefs.h. */
10775
10776int
10777main ()
10778{
10779
10780 ;
10781 return 0;
10782}
10783_ACEOF
10784if ac_fn_c_try_link "$LINENO"; then :
10785 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10786 lt_cv_shlibpath_overrides_runpath=yes
10787fi
10788fi
10789rm -f core conftest.err conftest.$ac_objext \
10790 conftest$ac_exeext conftest.$ac_ext
10791 LDFLAGS=$save_LDFLAGS
10792 libdir=$save_libdir
10793
10794fi
10795
10796 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10797
10798 # This implies no fast_install, which is unacceptable.
10799 # Some rework will be needed to allow for fast_install
10800 # before this can be enabled.
10801 hardcode_into_libs=yes
10802
10803 # Append ld.so.conf contents to the search path
10804 if test -f /etc/ld.so.conf; then
10805 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' ' '`
10806 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10807 fi
10808
10809 # We used to test for /lib/ld.so.1 and disable shared libraries on
10810 # powerpc, because MkLinux only supported shared libraries with the
10811 # GNU dynamic linker. Since this was broken with cross compilers,
10812 # most powerpc-linux boxes support dynamic linking these days and
10813 # people can always --disable-shared, the test was removed, and we
10814 # assume the GNU/Linux dynamic linker is in use.
10815 dynamic_linker='GNU/Linux ld.so'
10816 ;;
10817
10818netbsd*)
10819 version_type=sunos
10820 need_lib_prefix=no
10821 need_version=no
10822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10825 dynamic_linker='NetBSD (a.out) ld.so'
10826 else
10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10828 soname_spec='${libname}${release}${shared_ext}$major'
10829 dynamic_linker='NetBSD ld.elf_so'
10830 fi
10831 shlibpath_var=LD_LIBRARY_PATH
10832 shlibpath_overrides_runpath=yes
10833 hardcode_into_libs=yes
10834 ;;
10835
10836newsos6)
10837 version_type=linux
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10839 shlibpath_var=LD_LIBRARY_PATH
10840 shlibpath_overrides_runpath=yes
10841 ;;
10842
10843*nto* | *qnx*)
10844 version_type=qnx
10845 need_lib_prefix=no
10846 need_version=no
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10848 soname_spec='${libname}${release}${shared_ext}$major'
10849 shlibpath_var=LD_LIBRARY_PATH
10850 shlibpath_overrides_runpath=no
10851 hardcode_into_libs=yes
10852 dynamic_linker='ldqnx.so'
10853 ;;
10854
10855openbsd*)
10856 version_type=sunos
10857 sys_lib_dlsearch_path_spec="/usr/lib"
10858 need_lib_prefix=no
10859 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10860 case $host_os in
10861 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10862 *) need_version=no ;;
10863 esac
10864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10866 shlibpath_var=LD_LIBRARY_PATH
10867 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10868 case $host_os in
10869 openbsd2.[89] | openbsd2.[89].*)
10870 shlibpath_overrides_runpath=no
10871 ;;
10872 *)
10873 shlibpath_overrides_runpath=yes
10874 ;;
10875 esac
10876 else
10877 shlibpath_overrides_runpath=yes
10878 fi
10879 ;;
10880
10881os2*)
10882 libname_spec='$name'
10883 shrext_cmds=".dll"
10884 need_lib_prefix=no
10885 library_names_spec='$libname${shared_ext} $libname.a'
10886 dynamic_linker='OS/2 ld.exe'
10887 shlibpath_var=LIBPATH
10888 ;;
10889
10890osf3* | osf4* | osf5*)
10891 version_type=osf
10892 need_lib_prefix=no
10893 need_version=no
10894 soname_spec='${libname}${release}${shared_ext}$major'
10895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10898 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10899 ;;
10900
10901rdos*)
10902 dynamic_linker=no
10903 ;;
10904
10905solaris*)
10906 version_type=linux
10907 need_lib_prefix=no
10908 need_version=no
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10910 soname_spec='${libname}${release}${shared_ext}$major'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 shlibpath_overrides_runpath=yes
10913 hardcode_into_libs=yes
10914 # ldd complains unless libraries are executable
10915 postinstall_cmds='chmod +x $lib'
10916 ;;
10917
10918sunos4*)
10919 version_type=sunos
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10921 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10922 shlibpath_var=LD_LIBRARY_PATH
10923 shlibpath_overrides_runpath=yes
10924 if test "$with_gnu_ld" = yes; then
10925 need_lib_prefix=no
10926 fi
10927 need_version=yes
10928 ;;
10929
10930sysv4 | sysv4.3*)
10931 version_type=linux
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10933 soname_spec='${libname}${release}${shared_ext}$major'
10934 shlibpath_var=LD_LIBRARY_PATH
10935 case $host_vendor in
10936 sni)
10937 shlibpath_overrides_runpath=no
10938 need_lib_prefix=no
10939 runpath_var=LD_RUN_PATH
10940 ;;
10941 siemens)
10942 need_lib_prefix=no
10943 ;;
10944 motorola)
10945 need_lib_prefix=no
10946 need_version=no
10947 shlibpath_overrides_runpath=no
10948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10949 ;;
10950 esac
10951 ;;
10952
10953sysv4*MP*)
10954 if test -d /usr/nec ;then
10955 version_type=linux
10956 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10957 soname_spec='$libname${shared_ext}.$major'
10958 shlibpath_var=LD_LIBRARY_PATH
10959 fi
10960 ;;
10961
10962sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10963 version_type=freebsd-elf
10964 need_lib_prefix=no
10965 need_version=no
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $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 if test "$with_gnu_ld" = yes; then
10972 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10973 else
10974 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10975 case $host_os in
10976 sco3.2v5*)
10977 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10978 ;;
10979 esac
10980 fi
10981 sys_lib_dlsearch_path_spec='/usr/lib'
10982 ;;
10983
10984tpf*)
10985 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10986 version_type=linux
10987 need_lib_prefix=no
10988 need_version=no
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990 shlibpath_var=LD_LIBRARY_PATH
10991 shlibpath_overrides_runpath=no
10992 hardcode_into_libs=yes
10993 ;;
10994
10995uts4*)
10996 version_type=linux
10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998 soname_spec='${libname}${release}${shared_ext}$major'
10999 shlibpath_var=LD_LIBRARY_PATH
11000 ;;
11001
11002*)
11003 dynamic_linker=no
11004 ;;
11005esac
11006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11007$as_echo "$dynamic_linker" >&6; }
11008test "$dynamic_linker" = no && can_build_shared=no
11009
11010variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11011if test "$GCC" = yes; then
11012 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11013fi
11014
11015if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11016 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11017fi
11018if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11019 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11020fi
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11114$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11115hardcode_action=
11116if test -n "$hardcode_libdir_flag_spec" ||
11117 test -n "$runpath_var" ||
11118 test "X$hardcode_automatic" = "Xyes" ; then
11119
11120 # We can hardcode non-existent directories.
11121 if test "$hardcode_direct" != no &&
11122 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11123 # have to relink, otherwise we might link with an installed library
11124 # when we should be linking with a yet-to-be-installed one
11125 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11126 test "$hardcode_minus_L" != no; then
11127 # Linking always hardcodes the temporary library directory.
11128 hardcode_action=relink
11129 else
11130 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11131 hardcode_action=immediate
11132 fi
11133else
11134 # We cannot hardcode anything, or else we can only hardcode existing
11135 # directories.
11136 hardcode_action=unsupported
11137fi
11138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11139$as_echo "$hardcode_action" >&6; }
11140
11141if test "$hardcode_action" = relink ||
11142 test "$inherit_rpath" = yes; then
11143 # Fast installation is not supported
11144 enable_fast_install=no
11145elif test "$shlibpath_overrides_runpath" = yes ||
11146 test "$enable_shared" = no; then
11147 # Fast installation is not necessary
11148 enable_fast_install=needless
11149fi
11150
11151
11152
11153
11154
11155
11156 if test "x$enable_dlopen" != xyes; then
11157 enable_dlopen=unknown
11158 enable_dlopen_self=unknown
11159 enable_dlopen_self_static=unknown
11160else
11161 lt_cv_dlopen=no
11162 lt_cv_dlopen_libs=
11163
11164 case $host_os in
11165 beos*)
11166 lt_cv_dlopen="load_add_on"
11167 lt_cv_dlopen_libs=
11168 lt_cv_dlopen_self=yes
11169 ;;
11170
11171 mingw* | pw32* | cegcc*)
11172 lt_cv_dlopen="LoadLibrary"
11173 lt_cv_dlopen_libs=
11174 ;;
11175
11176 cygwin*)
11177 lt_cv_dlopen="dlopen"
11178 lt_cv_dlopen_libs=
11179 ;;
11180
11181 darwin*)
11182 # if libdl is installed we need to link against it
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11184$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11185if ${ac_cv_lib_dl_dlopen+:} false; then :
eff02e4f
ILT
11186 $as_echo_n "(cached) " >&6
11187else
11188 ac_check_lib_save_LIBS=$LIBS
11189LIBS="-ldl $LIBS"
11190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11191/* end confdefs.h. */
11192
11193/* Override any GCC internal prototype to avoid an error.
11194 Use char because int might match the return type of a GCC
11195 builtin and then its argument prototype would still apply. */
11196#ifdef __cplusplus
11197extern "C"
11198#endif
11199char dlopen ();
11200int
11201main ()
11202{
11203return dlopen ();
11204 ;
11205 return 0;
11206}
11207_ACEOF
11208if ac_fn_c_try_link "$LINENO"; then :
11209 ac_cv_lib_dl_dlopen=yes
11210else
11211 ac_cv_lib_dl_dlopen=no
11212fi
11213rm -f core conftest.err conftest.$ac_objext \
11214 conftest$ac_exeext conftest.$ac_ext
11215LIBS=$ac_check_lib_save_LIBS
11216fi
11217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11218$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11219if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
eff02e4f
ILT
11220 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11221else
11222
11223 lt_cv_dlopen="dyld"
11224 lt_cv_dlopen_libs=
11225 lt_cv_dlopen_self=yes
11226
11227fi
11228
11229 ;;
11230
11231 *)
11232 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11233if test "x$ac_cv_func_shl_load" = xyes; then :
eff02e4f
ILT
11234 lt_cv_dlopen="shl_load"
11235else
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11237$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11238if ${ac_cv_lib_dld_shl_load+:} false; then :
eff02e4f
ILT
11239 $as_echo_n "(cached) " >&6
11240else
11241 ac_check_lib_save_LIBS=$LIBS
11242LIBS="-ldld $LIBS"
11243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244/* end confdefs.h. */
11245
11246/* Override any GCC internal prototype to avoid an error.
11247 Use char because int might match the return type of a GCC
11248 builtin and then its argument prototype would still apply. */
11249#ifdef __cplusplus
11250extern "C"
11251#endif
11252char shl_load ();
11253int
11254main ()
11255{
11256return shl_load ();
11257 ;
11258 return 0;
11259}
11260_ACEOF
11261if ac_fn_c_try_link "$LINENO"; then :
11262 ac_cv_lib_dld_shl_load=yes
11263else
11264 ac_cv_lib_dld_shl_load=no
11265fi
11266rm -f core conftest.err conftest.$ac_objext \
11267 conftest$ac_exeext conftest.$ac_ext
11268LIBS=$ac_check_lib_save_LIBS
11269fi
11270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11271$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11272if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
eff02e4f
ILT
11273 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11274else
11275 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11276if test "x$ac_cv_func_dlopen" = xyes; then :
eff02e4f
ILT
11277 lt_cv_dlopen="dlopen"
11278else
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11280$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11281if ${ac_cv_lib_dl_dlopen+:} false; then :
eff02e4f
ILT
11282 $as_echo_n "(cached) " >&6
11283else
11284 ac_check_lib_save_LIBS=$LIBS
11285LIBS="-ldl $LIBS"
11286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287/* end confdefs.h. */
11288
11289/* Override any GCC internal prototype to avoid an error.
11290 Use char because int might match the return type of a GCC
11291 builtin and then its argument prototype would still apply. */
11292#ifdef __cplusplus
11293extern "C"
11294#endif
11295char dlopen ();
11296int
11297main ()
11298{
11299return dlopen ();
11300 ;
11301 return 0;
11302}
11303_ACEOF
11304if ac_fn_c_try_link "$LINENO"; then :
11305 ac_cv_lib_dl_dlopen=yes
11306else
11307 ac_cv_lib_dl_dlopen=no
11308fi
11309rm -f core conftest.err conftest.$ac_objext \
11310 conftest$ac_exeext conftest.$ac_ext
11311LIBS=$ac_check_lib_save_LIBS
11312fi
11313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11314$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11315if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
eff02e4f
ILT
11316 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11317else
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11319$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 11320if ${ac_cv_lib_svld_dlopen+:} false; then :
eff02e4f
ILT
11321 $as_echo_n "(cached) " >&6
11322else
11323 ac_check_lib_save_LIBS=$LIBS
11324LIBS="-lsvld $LIBS"
11325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11326/* end confdefs.h. */
11327
11328/* Override any GCC internal prototype to avoid an error.
11329 Use char because int might match the return type of a GCC
11330 builtin and then its argument prototype would still apply. */
11331#ifdef __cplusplus
11332extern "C"
11333#endif
11334char dlopen ();
11335int
11336main ()
11337{
11338return dlopen ();
11339 ;
11340 return 0;
11341}
11342_ACEOF
11343if ac_fn_c_try_link "$LINENO"; then :
11344 ac_cv_lib_svld_dlopen=yes
11345else
11346 ac_cv_lib_svld_dlopen=no
11347fi
11348rm -f core conftest.err conftest.$ac_objext \
11349 conftest$ac_exeext conftest.$ac_ext
11350LIBS=$ac_check_lib_save_LIBS
11351fi
11352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11353$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 11354if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
eff02e4f
ILT
11355 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11356else
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11358$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 11359if ${ac_cv_lib_dld_dld_link+:} false; then :
eff02e4f
ILT
11360 $as_echo_n "(cached) " >&6
11361else
11362 ac_check_lib_save_LIBS=$LIBS
11363LIBS="-ldld $LIBS"
11364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365/* end confdefs.h. */
11366
11367/* Override any GCC internal prototype to avoid an error.
11368 Use char because int might match the return type of a GCC
11369 builtin and then its argument prototype would still apply. */
11370#ifdef __cplusplus
11371extern "C"
11372#endif
11373char dld_link ();
11374int
11375main ()
11376{
11377return dld_link ();
11378 ;
11379 return 0;
11380}
11381_ACEOF
11382if ac_fn_c_try_link "$LINENO"; then :
11383 ac_cv_lib_dld_dld_link=yes
11384else
11385 ac_cv_lib_dld_dld_link=no
11386fi
11387rm -f core conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11389LIBS=$ac_check_lib_save_LIBS
11390fi
11391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11392$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 11393if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
eff02e4f
ILT
11394 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11395fi
11396
11397
11398fi
11399
11400
11401fi
11402
11403
11404fi
11405
11406
11407fi
11408
11409
11410fi
11411
11412 ;;
11413 esac
11414
11415 if test "x$lt_cv_dlopen" != xno; then
11416 enable_dlopen=yes
11417 else
11418 enable_dlopen=no
11419 fi
11420
11421 case $lt_cv_dlopen in
11422 dlopen)
11423 save_CPPFLAGS="$CPPFLAGS"
11424 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11425
11426 save_LDFLAGS="$LDFLAGS"
11427 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11428
11429 save_LIBS="$LIBS"
11430 LIBS="$lt_cv_dlopen_libs $LIBS"
11431
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11433$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 11434if ${lt_cv_dlopen_self+:} false; then :
eff02e4f
ILT
11435 $as_echo_n "(cached) " >&6
11436else
11437 if test "$cross_compiling" = yes; then :
11438 lt_cv_dlopen_self=cross
11439else
11440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11441 lt_status=$lt_dlunknown
11442 cat > conftest.$ac_ext <<_LT_EOF
22e05272 11443#line 11443 "configure"
eff02e4f
ILT
11444#include "confdefs.h"
11445
11446#if HAVE_DLFCN_H
11447#include <dlfcn.h>
11448#endif
11449
11450#include <stdio.h>
11451
11452#ifdef RTLD_GLOBAL
11453# define LT_DLGLOBAL RTLD_GLOBAL
11454#else
11455# ifdef DL_GLOBAL
11456# define LT_DLGLOBAL DL_GLOBAL
11457# else
11458# define LT_DLGLOBAL 0
11459# endif
11460#endif
11461
11462/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11463 find out it does not work in some platform. */
11464#ifndef LT_DLLAZY_OR_NOW
11465# ifdef RTLD_LAZY
11466# define LT_DLLAZY_OR_NOW RTLD_LAZY
11467# else
11468# ifdef DL_LAZY
11469# define LT_DLLAZY_OR_NOW DL_LAZY
11470# else
11471# ifdef RTLD_NOW
11472# define LT_DLLAZY_OR_NOW RTLD_NOW
11473# else
11474# ifdef DL_NOW
11475# define LT_DLLAZY_OR_NOW DL_NOW
11476# else
11477# define LT_DLLAZY_OR_NOW 0
11478# endif
11479# endif
11480# endif
11481# endif
11482#endif
11483
11484/* When -fvisbility=hidden is used, assume the code has been annotated
11485 correspondingly for the symbols needed. */
11486#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11487void fnord () __attribute__((visibility("default")));
11488#endif
11489
11490void fnord () { int i=42; }
11491int main ()
11492{
11493 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11494 int status = $lt_dlunknown;
11495
11496 if (self)
11497 {
11498 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11499 else
11500 {
11501 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11502 else puts (dlerror ());
11503 }
11504 /* dlclose (self); */
11505 }
11506 else
11507 puts (dlerror ());
11508
11509 return status;
11510}
11511_LT_EOF
11512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11513 (eval $ac_link) 2>&5
11514 ac_status=$?
11515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11516 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11517 (./conftest; exit; ) >&5 2>/dev/null
11518 lt_status=$?
11519 case x$lt_status in
11520 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11521 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11522 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11523 esac
11524 else :
11525 # compilation failed
11526 lt_cv_dlopen_self=no
11527 fi
11528fi
11529rm -fr conftest*
11530
11531
11532fi
11533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11534$as_echo "$lt_cv_dlopen_self" >&6; }
11535
11536 if test "x$lt_cv_dlopen_self" = xyes; then
11537 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11539$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 11540if ${lt_cv_dlopen_self_static+:} false; then :
eff02e4f
ILT
11541 $as_echo_n "(cached) " >&6
11542else
11543 if test "$cross_compiling" = yes; then :
11544 lt_cv_dlopen_self_static=cross
11545else
11546 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11547 lt_status=$lt_dlunknown
11548 cat > conftest.$ac_ext <<_LT_EOF
22e05272 11549#line 11549 "configure"
eff02e4f
ILT
11550#include "confdefs.h"
11551
11552#if HAVE_DLFCN_H
11553#include <dlfcn.h>
11554#endif
11555
11556#include <stdio.h>
11557
11558#ifdef RTLD_GLOBAL
11559# define LT_DLGLOBAL RTLD_GLOBAL
11560#else
11561# ifdef DL_GLOBAL
11562# define LT_DLGLOBAL DL_GLOBAL
11563# else
11564# define LT_DLGLOBAL 0
11565# endif
11566#endif
11567
11568/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11569 find out it does not work in some platform. */
11570#ifndef LT_DLLAZY_OR_NOW
11571# ifdef RTLD_LAZY
11572# define LT_DLLAZY_OR_NOW RTLD_LAZY
11573# else
11574# ifdef DL_LAZY
11575# define LT_DLLAZY_OR_NOW DL_LAZY
11576# else
11577# ifdef RTLD_NOW
11578# define LT_DLLAZY_OR_NOW RTLD_NOW
11579# else
11580# ifdef DL_NOW
11581# define LT_DLLAZY_OR_NOW DL_NOW
11582# else
11583# define LT_DLLAZY_OR_NOW 0
11584# endif
11585# endif
11586# endif
11587# endif
11588#endif
11589
11590/* When -fvisbility=hidden is used, assume the code has been annotated
11591 correspondingly for the symbols needed. */
11592#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11593void fnord () __attribute__((visibility("default")));
11594#endif
11595
11596void fnord () { int i=42; }
11597int main ()
11598{
11599 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11600 int status = $lt_dlunknown;
11601
11602 if (self)
11603 {
11604 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11605 else
11606 {
11607 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11608 else puts (dlerror ());
11609 }
11610 /* dlclose (self); */
11611 }
11612 else
11613 puts (dlerror ());
11614
11615 return status;
11616}
11617_LT_EOF
11618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11619 (eval $ac_link) 2>&5
11620 ac_status=$?
11621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11622 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11623 (./conftest; exit; ) >&5 2>/dev/null
11624 lt_status=$?
11625 case x$lt_status in
11626 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11627 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11628 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11629 esac
11630 else :
11631 # compilation failed
11632 lt_cv_dlopen_self_static=no
11633 fi
11634fi
11635rm -fr conftest*
11636
11637
11638fi
11639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11640$as_echo "$lt_cv_dlopen_self_static" >&6; }
11641 fi
11642
11643 CPPFLAGS="$save_CPPFLAGS"
11644 LDFLAGS="$save_LDFLAGS"
11645 LIBS="$save_LIBS"
11646 ;;
11647 esac
11648
11649 case $lt_cv_dlopen_self in
11650 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11651 *) enable_dlopen_self=unknown ;;
11652 esac
11653
11654 case $lt_cv_dlopen_self_static in
11655 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11656 *) enable_dlopen_self_static=unknown ;;
11657 esac
11658fi
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676striplib=
11677old_striplib=
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11679$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11680if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11681 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11682 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11684$as_echo "yes" >&6; }
11685else
11686# FIXME - insert some real tests, host_os isn't really good enough
11687 case $host_os in
11688 darwin*)
11689 if test -n "$STRIP" ; then
11690 striplib="$STRIP -x"
11691 old_striplib="$STRIP -S"
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11693$as_echo "yes" >&6; }
11694 else
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696$as_echo "no" >&6; }
11697 fi
11698 ;;
11699 *)
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701$as_echo "no" >&6; }
11702 ;;
11703 esac
11704fi
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717 # Report which library types will actually be built
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11719$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11721$as_echo "$can_build_shared" >&6; }
11722
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11724$as_echo_n "checking whether to build shared libraries... " >&6; }
11725 test "$can_build_shared" = "no" && enable_shared=no
11726
11727 # On AIX, shared libraries and static libraries use the same namespace, and
11728 # are all built from PIC.
11729 case $host_os in
11730 aix3*)
11731 test "$enable_shared" = yes && enable_static=no
11732 if test -n "$RANLIB"; then
11733 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11734 postinstall_cmds='$RANLIB $lib'
11735 fi
11736 ;;
11737
11738 aix[4-9]*)
11739 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11740 test "$enable_shared" = yes && enable_static=no
11741 fi
11742 ;;
11743 esac
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11745$as_echo "$enable_shared" >&6; }
11746
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11748$as_echo_n "checking whether to build static libraries... " >&6; }
11749 # Make sure either enable_shared or enable_static is yes.
11750 test "$enable_shared" = yes || enable_static=yes
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11752$as_echo "$enable_static" >&6; }
11753
11754
11755
11756
11757fi
11758ac_ext=c
11759ac_cpp='$CPP $CPPFLAGS'
11760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11762ac_compiler_gnu=$ac_cv_c_compiler_gnu
11763
11764CC="$lt_save_CC"
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778 ac_config_commands="$ac_config_commands libtool"
11779
11780
11781
11782
11783# Only expand once:
11784
11785
11786
11787
e91a2ddc
RB
11788# Check whether --enable-largefile was given.
11789if test "${enable_largefile+set}" = set; then :
11790 enableval=$enable_largefile;
11791fi
11792
11793if test "$enable_largefile" != no; then
11794
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11796$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
22e05272 11797if ${ac_cv_sys_largefile_CC+:} false; then :
e91a2ddc
RB
11798 $as_echo_n "(cached) " >&6
11799else
11800 ac_cv_sys_largefile_CC=no
11801 if test "$GCC" != yes; then
11802 ac_save_CC=$CC
11803 while :; do
11804 # IRIX 6.2 and later do not support large files by default,
11805 # so use the C compiler's -n32 option if that helps.
11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807/* end confdefs.h. */
11808#include <sys/types.h>
11809 /* Check that off_t can represent 2**63 - 1 correctly.
11810 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11811 since some C++ compilers masquerading as C compilers
11812 incorrectly reject 9223372036854775807. */
11813#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11814 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11815 && LARGE_OFF_T % 2147483647 == 1)
11816 ? 1 : -1];
11817int
11818main ()
11819{
11820
11821 ;
11822 return 0;
11823}
11824_ACEOF
11825 if ac_fn_c_try_compile "$LINENO"; then :
11826 break
11827fi
11828rm -f core conftest.err conftest.$ac_objext
11829 CC="$CC -n32"
11830 if ac_fn_c_try_compile "$LINENO"; then :
11831 ac_cv_sys_largefile_CC=' -n32'; break
11832fi
11833rm -f core conftest.err conftest.$ac_objext
11834 break
11835 done
11836 CC=$ac_save_CC
11837 rm -f conftest.$ac_ext
11838 fi
11839fi
11840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11841$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11842 if test "$ac_cv_sys_largefile_CC" != no; then
11843 CC=$CC$ac_cv_sys_largefile_CC
11844 fi
11845
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11847$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
22e05272 11848if ${ac_cv_sys_file_offset_bits+:} false; then :
e91a2ddc
RB
11849 $as_echo_n "(cached) " >&6
11850else
11851 while :; do
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853/* end confdefs.h. */
11854#include <sys/types.h>
11855 /* Check that off_t can represent 2**63 - 1 correctly.
11856 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11857 since some C++ compilers masquerading as C compilers
11858 incorrectly reject 9223372036854775807. */
11859#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11861 && LARGE_OFF_T % 2147483647 == 1)
11862 ? 1 : -1];
11863int
11864main ()
11865{
11866
11867 ;
11868 return 0;
11869}
11870_ACEOF
11871if ac_fn_c_try_compile "$LINENO"; then :
11872 ac_cv_sys_file_offset_bits=no; break
11873fi
11874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876/* end confdefs.h. */
11877#define _FILE_OFFSET_BITS 64
11878#include <sys/types.h>
11879 /* Check that off_t can represent 2**63 - 1 correctly.
11880 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11881 since some C++ compilers masquerading as C compilers
11882 incorrectly reject 9223372036854775807. */
11883#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11884 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11885 && LARGE_OFF_T % 2147483647 == 1)
11886 ? 1 : -1];
11887int
11888main ()
11889{
11890
11891 ;
11892 return 0;
11893}
11894_ACEOF
11895if ac_fn_c_try_compile "$LINENO"; then :
11896 ac_cv_sys_file_offset_bits=64; break
11897fi
11898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899 ac_cv_sys_file_offset_bits=unknown
11900 break
11901done
11902fi
11903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11904$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11905case $ac_cv_sys_file_offset_bits in #(
11906 no | unknown) ;;
11907 *)
11908cat >>confdefs.h <<_ACEOF
11909#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11910_ACEOF
11911;;
11912esac
11913rm -rf conftest*
11914 if test $ac_cv_sys_file_offset_bits = unknown; then
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11916$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
22e05272 11917if ${ac_cv_sys_large_files+:} false; then :
e91a2ddc
RB
11918 $as_echo_n "(cached) " >&6
11919else
11920 while :; do
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922/* end confdefs.h. */
11923#include <sys/types.h>
11924 /* Check that off_t can represent 2**63 - 1 correctly.
11925 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11926 since some C++ compilers masquerading as C compilers
11927 incorrectly reject 9223372036854775807. */
11928#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11930 && LARGE_OFF_T % 2147483647 == 1)
11931 ? 1 : -1];
11932int
11933main ()
11934{
11935
11936 ;
11937 return 0;
11938}
11939_ACEOF
11940if ac_fn_c_try_compile "$LINENO"; then :
11941 ac_cv_sys_large_files=no; break
11942fi
11943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945/* end confdefs.h. */
11946#define _LARGE_FILES 1
11947#include <sys/types.h>
11948 /* Check that off_t can represent 2**63 - 1 correctly.
11949 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11950 since some C++ compilers masquerading as C compilers
11951 incorrectly reject 9223372036854775807. */
11952#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11953 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11954 && LARGE_OFF_T % 2147483647 == 1)
11955 ? 1 : -1];
11956int
11957main ()
11958{
11959
11960 ;
11961 return 0;
11962}
11963_ACEOF
11964if ac_fn_c_try_compile "$LINENO"; then :
11965 ac_cv_sys_large_files=1; break
11966fi
11967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11968 ac_cv_sys_large_files=unknown
11969 break
11970done
11971fi
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11973$as_echo "$ac_cv_sys_large_files" >&6; }
11974case $ac_cv_sys_large_files in #(
11975 no | unknown) ;;
11976 *)
11977cat >>confdefs.h <<_ACEOF
11978#define _LARGE_FILES $ac_cv_sys_large_files
11979_ACEOF
11980;;
11981esac
11982rm -rf conftest*
11983 fi
22e05272
JM
11984
11985
e91a2ddc
RB
11986fi
11987
11988
eff02e4f
ILT
11989backtrace_supported=yes
11990
11991if test -n "${with_target_subdir}"; then
11992 # We are compiling a GCC library. We can assume that the unwind
11993 # library exists.
eff02e4f
ILT
11994 BACKTRACE_FILE="backtrace.lo simple.lo"
11995else
11996 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
22e05272 11997if test "x$ac_cv_header_unwind_h" = xyes; then :
eff02e4f 11998 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
22e05272 11999if test "x$ac_cv_func__Unwind_Backtrace" = xyes; then :
eff02e4f
ILT
12000 BACKTRACE_FILE="backtrace.lo simple.lo"
12001else
12002 BACKTRACE_FILE="nounwind.lo"
12003 backtrace_supported=no
12004fi
12005
12006else
12007 BACKTRACE_FILE="nounwind.lo"
12008 backtrace_supported=no
12009fi
12010
12011
12012fi
12013
12014
56195009 12015EXTRA_FLAGS=
32061319 12016if test -n "${with_target_subdir}"; then
36a58fb3 12017 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
32061319
ILT
12018else
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
12020$as_echo_n "checking for -funwind-tables option... " >&6; }
22e05272 12021if ${libbacktrace_cv_c_unwind_tables+:} false; then :
32061319
ILT
12022 $as_echo_n "(cached) " >&6
12023else
12024 CFLAGS_hold="$CFLAGS"
12025 CFLAGS="$CFLAGS -funwind-tables"
12026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027/* end confdefs.h. */
12028static int f() { return 0; }
12029int
12030main ()
12031{
12032return f();
12033 ;
12034 return 0;
12035}
12036_ACEOF
12037if ac_fn_c_try_compile "$LINENO"; then :
12038 libbacktrace_cv_c_unwind_tables=yes
12039else
12040 libbacktrace_cv_c_unwind_tables=no
12041fi
12042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043 CFLAGS="$CFLAGS_hold"
12044fi
12045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
12046$as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
36a58fb3
JJ
12047 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
12048 EXTRA_FLAGS=-funwind-tables
12049 fi
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
12051$as_echo_n "checking for -frandom-seed=string option... " >&6; }
22e05272 12052if ${libbacktrace_cv_c_random_seed_string+:} false; then :
36a58fb3
JJ
12053 $as_echo_n "(cached) " >&6
12054else
12055 CFLAGS_hold="$CFLAGS"
12056 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058/* end confdefs.h. */
12059
12060int
12061main ()
12062{
12063return 0;
12064 ;
12065 return 0;
12066}
12067_ACEOF
12068if ac_fn_c_try_compile "$LINENO"; then :
12069 libbacktrace_cv_c_random_seed_string=yes
12070else
12071 libbacktrace_cv_c_random_seed_string=no
12072fi
12073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12074 CFLAGS="$CFLAGS_hold"
12075fi
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
12077$as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
12078 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
12079 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
12080 fi
56195009
UB
12081fi
12082
44685d37
IT
12083if test -n "${with_target_subdir}"; then
12084 # Add CET specific flags is Intel CET is enabled.
12085 # Check whether --enable-cet was given.
12086if test "${enable_cet+set}" = set; then :
12087 enableval=$enable_cet;
12088 case "$enableval" in
a0e1df88 12089 yes|no|auto) ;;
22e05272 12090 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
44685d37
IT
12091 esac
12092
12093else
a0e1df88 12094 enable_cet=no
44685d37
IT
12095fi
12096
12097
14e335ed
IT
12098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12099$as_echo_n "checking for CET support... " >&6; }
12100
44685d37
IT
12101case "$host" in
12102 i[34567]86-*-linux* | x86_64-*-linux*)
12103 case "$enable_cet" in
a0e1df88 12104 auto)
14e335ed
IT
12105 # Check if target supports multi-byte NOPs
12106 # and if assembler supports CET insn.
44685d37
IT
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108/* end confdefs.h. */
12109
12110int
12111main ()
12112{
14e335ed
IT
12113
12114#if !defined(__SSE2__)
12115#error target does not support multi-byte NOPs
12116#else
44685d37 12117asm ("setssbsy");
14e335ed
IT
12118#endif
12119
44685d37
IT
12120 ;
12121 return 0;
12122}
12123_ACEOF
12124if ac_fn_c_try_compile "$LINENO"; then :
12125 enable_cet=yes
12126else
12127 enable_cet=no
12128fi
12129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12130 ;;
12131 yes)
12132 # Check if assembler supports CET.
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134/* end confdefs.h. */
12135
12136int
12137main ()
12138{
12139asm ("setssbsy");
12140 ;
12141 return 0;
12142}
12143_ACEOF
12144if ac_fn_c_try_compile "$LINENO"; then :
12145
12146else
22e05272 12147 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
44685d37
IT
12148fi
12149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12150 ;;
12151 esac
12152 ;;
12153 *)
12154 enable_cet=no
12155 ;;
12156esac
12157if test x$enable_cet = xyes; then
7b47ecf2 12158 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12160$as_echo "yes" >&6; }
12161else
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163$as_echo "no" >&6; }
44685d37
IT
12164fi
12165
12166 EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS"
12167fi
12168
56195009 12169
1b533361
UW
12170ac_ext=c
12171ac_cpp='$CPP $CPPFLAGS'
12172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12174ac_compiler_gnu=$ac_cv_c_compiler_gnu
12175
eff02e4f
ILT
12176WARN_FLAGS=
12177save_CFLAGS="$CFLAGS"
12178for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
12179 -Wmissing-prototypes -Wold-style-definition \
12180 -Wmissing-format-attribute -Wcast-qual; do
12181 # Do the check with the no- prefix removed since gcc silently
12182 # accepts any -Wno-* option on purpose
12183 case $real_option in
12184 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12185 *) option=$real_option ;;
12186 esac
12187 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12188
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12190$as_echo_n "checking whether $CC supports $option... " >&6; }
22e05272 12191if eval \${$as_acx_Woption+:} false; then :
eff02e4f
ILT
12192 $as_echo_n "(cached) " >&6
12193else
12194 CFLAGS="$option"
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196/* end confdefs.h. */
12197
12198int
12199main ()
12200{
12201
12202 ;
12203 return 0;
12204}
12205_ACEOF
12206if ac_fn_c_try_compile "$LINENO"; then :
12207 eval "$as_acx_Woption=yes"
12208else
12209 eval "$as_acx_Woption=no"
12210fi
12211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12212
12213fi
12214eval ac_res=\$$as_acx_Woption
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12216$as_echo "$ac_res" >&6; }
12217 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12218 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
12219fi
12220 done
12221CFLAGS="$save_CFLAGS"
1b533361
UW
12222ac_ext=c
12223ac_cpp='$CPP $CPPFLAGS'
12224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12226ac_compiler_gnu=$ac_cv_c_compiler_gnu
12227
eff02e4f
ILT
12228
12229
73c3ed27 12230if test -n "${with_target_subdir}"; then
eff02e4f
ILT
12231 WARN_FLAGS="$WARN_FLAGS -Werror"
12232fi
12233
12234
12235
64b89453 12236if test -n "${with_target_subdir}"; then
eff02e4f
ILT
12237
12238
12239# Check whether --with-system-libunwind was given.
12240if test "${with_system_libunwind+set}" = set; then :
12241 withval=$with_system_libunwind;
12242fi
12243
12244 # If system-libunwind was not specifically set, pick a default setting.
12245 if test x$with_system_libunwind = x; then
12246 case ${target} in
12247 ia64-*-hpux*) with_system_libunwind=yes ;;
12248 *) with_system_libunwind=no ;;
12249 esac
12250 fi
12251 # Based on system-libunwind and target, do we have ipinfo?
12252 if test x$with_system_libunwind = xyes; then
12253 case ${target} in
12254 ia64-*-*) have_unwind_getipinfo=no ;;
12255 *) have_unwind_getipinfo=yes ;;
12256 esac
12257 else
12258 # Darwin before version 9 does not have _Unwind_GetIPInfo.
12259
12260 case ${target} in
12261 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12262 *) have_unwind_getipinfo=yes ;;
12263 esac
12264
12265 fi
12266
12267 if test x$have_unwind_getipinfo = xyes; then
12268
12269$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12270
12271 fi
12272
64b89453 12273else
385710cf
JH
12274 ac_save_CFFLAGS="$CFLAGS"
12275 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
12277$as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279/* end confdefs.h. */
12280#include "unwind.h"
12281 struct _Unwind_Context *context;
12282 int ip_before_insn = 0;
12283int
12284main ()
12285{
12286return _Unwind_GetIPInfo (context, &ip_before_insn);
12287 ;
12288 return 0;
12289}
12290_ACEOF
63fefb4b 12291if ac_fn_c_try_link "$LINENO"; then :
64b89453
ILT
12292 have_unwind_getipinfo=yes
12293else
12294 have_unwind_getipinfo=no
12295fi
63fefb4b
MDM
12296rm -f core conftest.err conftest.$ac_objext \
12297 conftest$ac_exeext conftest.$ac_ext
385710cf
JH
12298 CFLAGS="$ac_save_CFLAGS"
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
12300$as_echo "$have_unwind_getipinfo" >&6; }
64b89453
ILT
12301 if test "$have_unwind_getipinfo" = "yes"; then
12302
12303$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12304
12305 fi
12306fi
eff02e4f 12307
7e5c7547 12308# Enable --enable-host-shared.
459260ec
DM
12309# Check whether --enable-host-shared was given.
12310if test "${enable_host_shared+set}" = set; then :
12311 enableval=$enable_host_shared; PIC_FLAG=-fPIC
7e5c7547
UW
12312else
12313 PIC_FLAG=
459260ec
DM
12314fi
12315
eff02e4f
ILT
12316
12317
12318# Test for __sync support.
12319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
12320$as_echo_n "checking __sync extensions... " >&6; }
22e05272 12321if ${libbacktrace_cv_sys_sync+:} false; then :
eff02e4f
ILT
12322 $as_echo_n "(cached) " >&6
12323else
12324 if test -n "${with_target_subdir}"; then
2f401a8f
JDA
12325 case "${host}" in
12326 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
12327 *) libbacktrace_cv_sys_sync=yes ;;
12328 esac
eff02e4f
ILT
12329 else
12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331/* end confdefs.h. */
12332int i;
12333int
12334main ()
12335{
12336__sync_bool_compare_and_swap (&i, i, i);
12337 __sync_lock_test_and_set (&i, 1);
12338 __sync_lock_release (&i);
12339 ;
12340 return 0;
12341}
12342_ACEOF
12343if ac_fn_c_try_link "$LINENO"; then :
12344 libbacktrace_cv_sys_sync=yes
12345else
12346 libbacktrace_cv_sys_sync=no
12347fi
12348rm -f core conftest.err conftest.$ac_objext \
12349 conftest$ac_exeext conftest.$ac_ext
12350 fi
12351fi
12352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
12353$as_echo "$libbacktrace_cv_sys_sync" >&6; }
12354BACKTRACE_SUPPORTS_THREADS=0
12355if test "$libbacktrace_cv_sys_sync" = "yes"; then
12356 BACKTRACE_SUPPORTS_THREADS=1
12357
12358$as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
12359
12360fi
12361
12362
49579c7e
ILT
12363# Test for __atomic support.
12364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
12365$as_echo_n "checking __atomic extensions... " >&6; }
22e05272 12366if ${libbacktrace_cv_sys_atomic+:} false; then :
49579c7e
ILT
12367 $as_echo_n "(cached) " >&6
12368else
12369 if test -n "${with_target_subdir}"; then
12370 libbacktrace_cv_sys_atomic=yes
12371 else
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373/* end confdefs.h. */
12374int i;
12375int
12376main ()
12377{
12378__atomic_load_n (&i, __ATOMIC_ACQUIRE);
12379 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
12380 ;
12381 return 0;
12382}
12383_ACEOF
12384if ac_fn_c_try_link "$LINENO"; then :
12385 libbacktrace_cv_sys_atomic=yes
12386else
12387 libbacktrace_cv_sys_atomic=no
12388fi
12389rm -f core conftest.err conftest.$ac_objext \
12390 conftest$ac_exeext conftest.$ac_ext
12391 fi
12392fi
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12394$as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12395if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12396
12397$as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12398
12399fi
12400
eff02e4f
ILT
12401# The library needs to be able to read the executable itself. Compile
12402# a file to determine the executable format. The awk script
12403# filetype.awk prints out the file type.
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12405$as_echo_n "checking output filetype... " >&6; }
22e05272 12406if ${libbacktrace_cv_sys_filetype+:} false; then :
eff02e4f
ILT
12407 $as_echo_n "(cached) " >&6
12408else
12409 filetype=
12410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411/* end confdefs.h. */
12412int i;
12413int
12414main ()
12415{
12416int j;
12417 ;
12418 return 0;
12419}
12420_ACEOF
12421if ac_fn_c_try_compile "$LINENO"; then :
12422 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12423else
12424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12426as_fn_error $? "compiler failed
12427See \`config.log' for more details" "$LINENO" 5; }
eff02e4f
ILT
12428fi
12429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12430libbacktrace_cv_sys_filetype=$filetype
12431fi
12432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12433$as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12434
12435# Match the file type to decide what files to compile.
12436FORMAT_FILE=
e24afc10 12437backtrace_supports_data=yes
eff02e4f
ILT
12438case "$libbacktrace_cv_sys_filetype" in
12439elf*) FORMAT_FILE="elf.lo" ;;
e24afc10
TG
12440pecoff) FORMAT_FILE="pecoff.lo"
12441 backtrace_supports_data=no
12442 ;;
7e2a8417
TR
12443xcoff*) FORMAT_FILE="xcoff.lo"
12444 backtrace_supports_data=no
12445 ;;
eff02e4f
ILT
12446*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12447$as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12448 FORMAT_FILE="unknown.lo"
12449 backtrace_supported=no
12450 ;;
12451esac
12452
12453
12454# ELF defines.
12455elfsize=
12456case "$libbacktrace_cv_sys_filetype" in
12457elf32) elfsize=32 ;;
12458elf64) elfsize=64 ;;
e24afc10 12459*) elfsize=unused
eff02e4f
ILT
12460esac
12461
12462cat >>confdefs.h <<_ACEOF
12463#define BACKTRACE_ELF_SIZE $elfsize
12464_ACEOF
12465
12466
7e2a8417
TR
12467# XCOFF defines.
12468xcoffsize=
12469case "$libbacktrace_cv_sys_filetype" in
12470xcoff32) xcoffsize=32 ;;
12471xcoff64) xcoffsize=64 ;;
12472*) xcoffsize=unused
12473esac
12474
12475cat >>confdefs.h <<_ACEOF
12476#define BACKTRACE_XCOFF_SIZE $xcoffsize
12477_ACEOF
12478
12479
eff02e4f
ILT
12480BACKTRACE_SUPPORTED=0
12481if test "$backtrace_supported" = "yes"; then
12482 BACKTRACE_SUPPORTED=1
12483fi
12484
12485
e24afc10
TG
12486BACKTRACE_SUPPORTS_DATA=0
12487if test "$backtrace_supports_data" = "yes"; then
12488 BACKTRACE_SUPPORTS_DATA=1
12489fi
12490
12491
76850556
RO
12492
12493
12494inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12495
12496acx_cv_header_stdint=stddef.h
12497acx_cv_header_stdint_kind="(already complete)"
12498for i in stdint.h $inttype_headers; do
12499 unset ac_cv_type_uintptr_t
12500 unset ac_cv_type_uintmax_t
12501 unset ac_cv_type_int_least32_t
12502 unset ac_cv_type_int_fast32_t
12503 unset ac_cv_type_uint64_t
12504 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12505 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12506#include <$i>
12507"
22e05272 12508if test "x$ac_cv_type_uintmax_t" = xyes; then :
76850556
RO
12509 acx_cv_header_stdint=$i
12510else
12511 continue
12512fi
12513
12514 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12515#include <$i>
12516"
22e05272 12517if test "x$ac_cv_type_uintptr_t" = xyes; then :
76850556
RO
12518
12519else
12520 acx_cv_header_stdint_kind="(mostly complete)"
12521fi
12522
12523 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12524#include <$i>
12525"
22e05272 12526if test "x$ac_cv_type_int_least32_t" = xyes; then :
76850556
RO
12527
12528else
12529 acx_cv_header_stdint_kind="(mostly complete)"
12530fi
12531
12532 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12533#include <$i>
12534"
22e05272 12535if test "x$ac_cv_type_int_fast32_t" = xyes; then :
76850556
RO
12536
12537else
12538 acx_cv_header_stdint_kind="(mostly complete)"
12539fi
12540
12541 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12542#include <$i>
12543"
22e05272 12544if test "x$ac_cv_type_uint64_t" = xyes; then :
76850556
RO
12545
12546else
12547 acx_cv_header_stdint_kind="(lacks uint64_t)"
12548fi
12549
12550 break
12551done
12552if test "$acx_cv_header_stdint" = stddef.h; then
12553 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12554 for i in stdint.h $inttype_headers; do
12555 unset ac_cv_type_uintptr_t
12556 unset ac_cv_type_uint32_t
12557 unset ac_cv_type_uint64_t
12558 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12559 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12560#include <$i>
12561"
22e05272 12562if test "x$ac_cv_type_uint32_t" = xyes; then :
76850556
RO
12563 acx_cv_header_stdint=$i
12564else
12565 continue
12566fi
12567
12568 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12569#include <$i>
12570"
22e05272 12571if test "x$ac_cv_type_uint64_t" = xyes; then :
76850556
RO
12572
12573fi
12574
12575 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12576#include <$i>
12577"
22e05272 12578if test "x$ac_cv_type_uintptr_t" = xyes; then :
76850556
RO
12579
12580fi
12581
12582 break
12583 done
12584fi
12585if test "$acx_cv_header_stdint" = stddef.h; then
12586 acx_cv_header_stdint_kind="(u_intXX_t style)"
12587 for i in sys/types.h $inttype_headers; do
12588 unset ac_cv_type_u_int32_t
12589 unset ac_cv_type_u_int64_t
12590 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12591 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12592#include <$i>
12593"
22e05272 12594if test "x$ac_cv_type_u_int32_t" = xyes; then :
76850556
RO
12595 acx_cv_header_stdint=$i
12596else
12597 continue
12598fi
12599
12600 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12601#include <$i>
12602"
22e05272 12603if test "x$ac_cv_type_u_int64_t" = xyes; then :
76850556
RO
12604
12605fi
12606
12607 break
12608 done
12609fi
12610if test "$acx_cv_header_stdint" = stddef.h; then
12611 acx_cv_header_stdint_kind="(using manual detection)"
12612fi
12613
12614test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12615test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12616test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12617test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12618test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12619
12620# ----------------- Summarize what we found so far
12621
12622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12623$as_echo_n "checking what to include in gstdint.h... " >&6; }
12624
12625case `$as_basename -- gstdint.h ||
12626$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12627 Xgstdint.h : 'X\(//\)$' \| \
12628 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12629$as_echo X/gstdint.h |
12630 sed '/^.*\/\([^/][^/]*\)\/*$/{
12631 s//\1/
12632 q
12633 }
12634 /^X\/\(\/\/\)$/{
12635 s//\1/
12636 q
12637 }
12638 /^X\/\(\/\).*/{
12639 s//\1/
12640 q
12641 }
12642 s/.*/./; q'` in
12643 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12644$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12645 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12646$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12647 *) ;;
12648esac
12649
12650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12651$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12652
12653# ----------------- done included file, check C basic types --------
12654
12655# Lacking an uintptr_t? Test size of void *
12656case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12657 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12658# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12659# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12660# This bug is HP SR number 8606223364.
12661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12662$as_echo_n "checking size of void *... " >&6; }
22e05272 12663if ${ac_cv_sizeof_void_p+:} false; then :
76850556
RO
12664 $as_echo_n "(cached) " >&6
12665else
12666 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12667
12668else
12669 if test "$ac_cv_type_void_p" = yes; then
12670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12672as_fn_error 77 "cannot compute sizeof (void *)
12673See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
12674 else
12675 ac_cv_sizeof_void_p=0
12676 fi
12677fi
12678
12679fi
12680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12681$as_echo "$ac_cv_sizeof_void_p" >&6; }
12682
12683
12684
12685cat >>confdefs.h <<_ACEOF
12686#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12687_ACEOF
12688
12689 ;;
12690esac
12691
12692# Lacking an uint64_t? Test size of long
12693case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12694 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12695# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12696# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12697# This bug is HP SR number 8606223364.
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12699$as_echo_n "checking size of long... " >&6; }
22e05272 12700if ${ac_cv_sizeof_long+:} false; then :
76850556
RO
12701 $as_echo_n "(cached) " >&6
12702else
12703 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12704
12705else
12706 if test "$ac_cv_type_long" = yes; then
12707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12709as_fn_error 77 "cannot compute sizeof (long)
12710See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
12711 else
12712 ac_cv_sizeof_long=0
12713 fi
12714fi
12715
12716fi
12717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12718$as_echo "$ac_cv_sizeof_long" >&6; }
12719
12720
12721
12722cat >>confdefs.h <<_ACEOF
12723#define SIZEOF_LONG $ac_cv_sizeof_long
12724_ACEOF
12725
12726 ;;
12727esac
12728
12729if test $acx_cv_header_stdint = stddef.h; then
12730 # Lacking a good header? Test size of everything and deduce all types.
12731 # The cast to long int works around a bug in the HP C Compiler
12732# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12733# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12734# This bug is HP SR number 8606223364.
12735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12736$as_echo_n "checking size of int... " >&6; }
22e05272 12737if ${ac_cv_sizeof_int+:} false; then :
76850556
RO
12738 $as_echo_n "(cached) " >&6
12739else
12740 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12741
12742else
12743 if test "$ac_cv_type_int" = yes; then
12744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12746as_fn_error 77 "cannot compute sizeof (int)
12747See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
12748 else
12749 ac_cv_sizeof_int=0
12750 fi
12751fi
12752
12753fi
12754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12755$as_echo "$ac_cv_sizeof_int" >&6; }
12756
12757
12758
12759cat >>confdefs.h <<_ACEOF
12760#define SIZEOF_INT $ac_cv_sizeof_int
12761_ACEOF
12762
12763
12764 # The cast to long int works around a bug in the HP C Compiler
12765# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12766# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12767# This bug is HP SR number 8606223364.
12768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12769$as_echo_n "checking size of short... " >&6; }
22e05272 12770if ${ac_cv_sizeof_short+:} false; then :
76850556
RO
12771 $as_echo_n "(cached) " >&6
12772else
12773 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12774
12775else
12776 if test "$ac_cv_type_short" = yes; then
12777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12779as_fn_error 77 "cannot compute sizeof (short)
12780See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
12781 else
12782 ac_cv_sizeof_short=0
12783 fi
12784fi
12785
12786fi
12787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12788$as_echo "$ac_cv_sizeof_short" >&6; }
12789
12790
12791
12792cat >>confdefs.h <<_ACEOF
12793#define SIZEOF_SHORT $ac_cv_sizeof_short
12794_ACEOF
12795
12796
12797 # The cast to long int works around a bug in the HP C Compiler
12798# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12799# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12800# This bug is HP SR number 8606223364.
12801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12802$as_echo_n "checking size of char... " >&6; }
22e05272 12803if ${ac_cv_sizeof_char+:} false; then :
76850556
RO
12804 $as_echo_n "(cached) " >&6
12805else
12806 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12807
12808else
12809 if test "$ac_cv_type_char" = yes; then
12810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12812as_fn_error 77 "cannot compute sizeof (char)
12813See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
12814 else
12815 ac_cv_sizeof_char=0
12816 fi
12817fi
12818
12819fi
12820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12821$as_echo "$ac_cv_sizeof_char" >&6; }
12822
12823
12824
12825cat >>confdefs.h <<_ACEOF
12826#define SIZEOF_CHAR $ac_cv_sizeof_char
12827_ACEOF
12828
12829
12830
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12832$as_echo_n "checking for type equivalent to int8_t... " >&6; }
12833 case "$ac_cv_sizeof_char" in
12834 1) acx_cv_type_int8_t=char ;;
22e05272 12835 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
76850556
RO
12836 esac
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12838$as_echo "$acx_cv_type_int8_t" >&6; }
12839
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12841$as_echo_n "checking for type equivalent to int16_t... " >&6; }
12842 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12843 2:*) acx_cv_type_int16_t=int ;;
12844 *:2) acx_cv_type_int16_t=short ;;
22e05272 12845 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
76850556
RO
12846 esac
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12848$as_echo "$acx_cv_type_int16_t" >&6; }
12849
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12851$as_echo_n "checking for type equivalent to int32_t... " >&6; }
12852 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12853 4:*) acx_cv_type_int32_t=int ;;
12854 *:4) acx_cv_type_int32_t=long ;;
22e05272 12855 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
76850556
RO
12856 esac
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12858$as_echo "$acx_cv_type_int32_t" >&6; }
12859fi
12860
12861# These tests are here to make the output prettier
12862
12863if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12864 case "$ac_cv_sizeof_long" in
12865 8) acx_cv_type_int64_t=long ;;
12866 esac
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12868$as_echo_n "checking for type equivalent to int64_t... " >&6; }
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12870$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12871fi
12872
12873# Now we can use the above types
12874
12875if test "$ac_cv_type_uintptr_t" != yes; then
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12877$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12878 case $ac_cv_sizeof_void_p in
12879 2) acx_cv_type_intptr_t=int16_t ;;
12880 4) acx_cv_type_intptr_t=int32_t ;;
12881 8) acx_cv_type_intptr_t=int64_t ;;
22e05272 12882 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
76850556
RO
12883 esac
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12885$as_echo "$acx_cv_type_intptr_t" >&6; }
12886fi
12887
12888# ----------------- done all checks, emit header -------------
12889ac_config_commands="$ac_config_commands gstdint.h"
12890
12891
12892
12893
eff02e4f
ILT
12894for ac_header in sys/mman.h
12895do :
12896 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
22e05272 12897if test "x$ac_cv_header_sys_mman_h" = xyes; then :
eff02e4f
ILT
12898 cat >>confdefs.h <<_ACEOF
12899#define HAVE_SYS_MMAN_H 1
12900_ACEOF
12901
12902fi
12903
12904done
12905
12906if test "$ac_cv_header_sys_mman_h" = "no"; then
12907 have_mmap=no
12908else
12909 if test -n "${with_target_subdir}"; then
12910 # When built as a GCC target library, we can't do a link test. We
12911 # simply assume that if we have mman.h, we have mmap.
12912 have_mmap=yes
1b533361 12913 case "${host}" in
5b4bbc7d 12914 spu-*-*|*-*-msdosdjgpp)
1b533361
UW
12915 # The SPU does not have mmap, but it has a sys/mman.h header file
12916 # containing "mmap_eaddr" and the mmap flags, confusing the test.
5b4bbc7d 12917 # DJGPP also has sys/man.h, but no mmap
1b533361
UW
12918 have_mmap=no ;;
12919 esac
eff02e4f
ILT
12920 else
12921 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22e05272 12922if test "x$ac_cv_func_mmap" = xyes; then :
eff02e4f
ILT
12923 have_mmap=yes
12924else
12925 have_mmap=no
12926fi
12927
12928 fi
12929fi
12930if test "$have_mmap" = "no"; then
12931 VIEW_FILE=read.lo
12932 ALLOC_FILE=alloc.lo
12933else
12934 VIEW_FILE=mmapio.lo
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936/* end confdefs.h. */
12937
12938#include <sys/mman.h>
12939#if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
12940 #error no MAP_ANONYMOUS
12941#endif
12942
12943_ACEOF
12944if ac_fn_c_try_cpp "$LINENO"; then :
12945 ALLOC_FILE=mmap.lo
12946else
12947 ALLOC_FILE=alloc.lo
12948fi
22e05272 12949rm -f conftest.err conftest.i conftest.$ac_ext
eff02e4f
ILT
12950fi
12951
12952
12953
12954BACKTRACE_USES_MALLOC=0
12955if test "$ALLOC_FILE" = "alloc.lo"; then
12956 BACKTRACE_USES_MALLOC=1
12957fi
12958
12959
e561a992
ILT
12960# Check for dl_iterate_phdr.
12961for ac_header in link.h
12962do :
12963 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
22e05272 12964if test "x$ac_cv_header_link_h" = xyes; then :
e561a992
ILT
12965 cat >>confdefs.h <<_ACEOF
12966#define HAVE_LINK_H 1
12967_ACEOF
12968
12969fi
12970
12971done
12972
12973if test "$ac_cv_header_link_h" = "no"; then
12974 have_dl_iterate_phdr=no
12975else
12976 if test -n "${with_target_subdir}"; then
12977 # When built as a GCC target library, we can't do a link test.
12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979/* end confdefs.h. */
12980#include <link.h>
12981
12982_ACEOF
12983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12984 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
12985 have_dl_iterate_phdr=yes
12986else
12987 have_dl_iterate_phdr=no
12988fi
12989rm -f conftest*
12990
5551b12c
ILT
12991 case "${host}" in
12992 *-*-solaris2.10*)
12993 # Avoid dl_iterate_phdr on Solaris 10, where it is in the
12994 # header file but is only in -ldl.
12995 have_dl_iterate_phdr=no ;;
12996 esac
e561a992
ILT
12997 else
12998 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
22e05272 12999if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then :
e561a992
ILT
13000 have_dl_iterate_phdr=yes
13001else
13002 have_dl_iterate_phdr=no
13003fi
13004
13005 fi
13006fi
13007if test "$have_dl_iterate_phdr" = "yes"; then
13008
13009$as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
13010
13011fi
13012
7e2a8417
TR
13013# Check for loadquery.
13014for ac_header in sys/ldr.h
13015do :
13016 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
22e05272 13017if test "x$ac_cv_header_sys_ldr_h" = xyes; then :
7e2a8417
TR
13018 cat >>confdefs.h <<_ACEOF
13019#define HAVE_SYS_LDR_H 1
13020_ACEOF
13021
13022fi
13023
13024done
13025
13026if test "$ac_cv_header_sys_ldr_h" = "no"; then
13027 have_loadquery=no
13028else
13029 if test -n "${with_target_subdir}"; then
13030 # When built as a GCC target library, we can't do a link test.
13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032/* end confdefs.h. */
13033#include <sys/ldr.h>
13034
13035_ACEOF
13036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13037 $EGREP "loadquery" >/dev/null 2>&1; then :
13038 have_loadquery=yes
13039else
13040 have_loadquery=no
13041fi
13042rm -f conftest*
13043
13044 else
13045 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
22e05272 13046if test "x$ac_cv_func_loadquery" = xyes; then :
7e2a8417
TR
13047 have_loadquery=yes
13048else
13049 have_loadquery=no
13050fi
13051
13052 fi
13053fi
13054if test "$have_loadquery" = "yes"; then
13055
13056$as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
13057
13058fi
13059
3319ef17
ILT
13060# Check for the fcntl function.
13061if test -n "${with_target_subdir}"; then
13062 case "${host}" in
13063 *-*-mingw*) have_fcntl=no ;;
8f5027bf 13064 spu-*-*) have_fcntl=no ;;
3319ef17
ILT
13065 *) have_fcntl=yes ;;
13066 esac
13067else
13068 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
22e05272 13069if test "x$ac_cv_func_fcntl" = xyes; then :
3319ef17
ILT
13070 have_fcntl=yes
13071else
13072 have_fcntl=no
13073fi
13074
13075fi
13076if test "$have_fcntl" = "yes"; then
13077
13078$as_echo "#define HAVE_FCNTL 1" >>confdefs.h
13079
13080fi
13081
772a71a9 13082ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
22e05272 13083if test "x$ac_cv_have_decl_strnlen" = xyes; then :
772a71a9
ILT
13084 ac_have_decl=1
13085else
13086 ac_have_decl=0
13087fi
13088
13089cat >>confdefs.h <<_ACEOF
13090#define HAVE_DECL_STRNLEN $ac_have_decl
13091_ACEOF
13092
8c2ea6b2
ILT
13093for ac_func in lstat readlink
13094do :
13095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13096ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 13097if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8c2ea6b2
ILT
13098 cat >>confdefs.h <<_ACEOF
13099#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13100_ACEOF
13101
13102fi
13103done
13104
772a71a9 13105
33521509
ILT
13106# Check for getexecname function.
13107if test -n "${with_target_subdir}"; then
13108 case "${host}" in
13109 *-*-solaris2*) have_getexecname=yes ;;
13110 *) have_getexecname=no ;;
13111 esac
13112else
13113 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
22e05272 13114if test "x$ac_cv_func_getexecname" = xyes; then :
33521509
ILT
13115 have_getexecname=yes
13116else
13117 have_getexecname=no
13118fi
13119
13120fi
13121if test "$have_getexecname" = "yes"; then
13122
13123$as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
13124
13125fi
13126
dbc31f20
TS
13127# Check for the clock_gettime function.
13128for ac_func in clock_gettime
13129do :
13130 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
22e05272 13131if test "x$ac_cv_func_clock_gettime" = xyes; then :
dbc31f20
TS
13132 cat >>confdefs.h <<_ACEOF
13133#define HAVE_CLOCK_GETTIME 1
13134_ACEOF
13135
13136fi
13137done
13138
dd954c67
TS
13139clock_gettime_link=
13140# At least for glibc, clock_gettime is in librt. But don't
13141# pull that in if it still doesn't give us the function we want. This
13142# test is copied from libgomp, and modified to not link in -lrt as
13143# we're using this for test timing only.
13144if test "$ac_cv_func_clock_gettime" = no; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13146$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22e05272 13147if ${ac_cv_lib_rt_clock_gettime+:} false; then :
dd954c67
TS
13148 $as_echo_n "(cached) " >&6
13149else
13150 ac_check_lib_save_LIBS=$LIBS
13151LIBS="-lrt $LIBS"
13152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153/* end confdefs.h. */
13154
13155/* Override any GCC internal prototype to avoid an error.
13156 Use char because int might match the return type of a GCC
13157 builtin and then its argument prototype would still apply. */
13158#ifdef __cplusplus
13159extern "C"
13160#endif
13161char clock_gettime ();
13162int
13163main ()
13164{
13165return clock_gettime ();
13166 ;
13167 return 0;
13168}
13169_ACEOF
13170if ac_fn_c_try_link "$LINENO"; then :
13171 ac_cv_lib_rt_clock_gettime=yes
13172else
13173 ac_cv_lib_rt_clock_gettime=no
13174fi
13175rm -f core conftest.err conftest.$ac_objext \
13176 conftest$ac_exeext conftest.$ac_ext
13177LIBS=$ac_check_lib_save_LIBS
13178fi
13179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13180$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22e05272 13181if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
8398c1df 13182 CLOCK_GETTIME_LINK=-lrt
dd954c67
TS
13183
13184$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13185
13186fi
13187
13188fi
13189
dbc31f20 13190
d1609a23
ILT
13191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13192$as_echo_n "checking whether -pthread is supported... " >&6; }
22e05272 13193if ${libgo_cv_lib_pthread+:} false; then :
d1609a23
ILT
13194 $as_echo_n "(cached) " >&6
13195else
13196 CFLAGS_hold=$CFLAGS
13197CFLAGS="$CFLAGS -pthread"
13198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199/* end confdefs.h. */
13200int i;
13201_ACEOF
13202if ac_fn_c_try_compile "$LINENO"; then :
13203 libgo_cv_lib_pthread=yes
13204else
13205 libgo_cv_lib_pthread=no
13206fi
13207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13208CFLAGS=$CFLAGS_hold
13209fi
13210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13211$as_echo "$libgo_cv_lib_pthread" >&6; }
13212PTHREAD_CFLAGS=
13213if test "$libgo_cv_lib_pthread" = yes; then
13214 PTHREAD_CFLAGS=-pthread
13215fi
13216
13217
13218 if test "$libgo_cv_lib_pthread" = yes; then
13219 HAVE_PTHREAD_TRUE=
13220 HAVE_PTHREAD_FALSE='#'
13221else
13222 HAVE_PTHREAD_TRUE='#'
13223 HAVE_PTHREAD_FALSE=
13224fi
13225
13226
8da872d9
ILT
13227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
13228$as_echo_n "checking for compress in -lz... " >&6; }
22e05272 13229if ${ac_cv_lib_z_compress+:} false; then :
8da872d9
ILT
13230 $as_echo_n "(cached) " >&6
13231else
13232 ac_check_lib_save_LIBS=$LIBS
13233LIBS="-lz $LIBS"
13234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13235/* end confdefs.h. */
13236
13237/* Override any GCC internal prototype to avoid an error.
13238 Use char because int might match the return type of a GCC
13239 builtin and then its argument prototype would still apply. */
13240#ifdef __cplusplus
13241extern "C"
13242#endif
13243char compress ();
13244int
13245main ()
13246{
13247return compress ();
13248 ;
13249 return 0;
13250}
13251_ACEOF
13252if ac_fn_c_try_link "$LINENO"; then :
13253 ac_cv_lib_z_compress=yes
13254else
13255 ac_cv_lib_z_compress=no
13256fi
13257rm -f core conftest.err conftest.$ac_objext \
13258 conftest$ac_exeext conftest.$ac_ext
13259LIBS=$ac_check_lib_save_LIBS
13260fi
13261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
13262$as_echo "$ac_cv_lib_z_compress" >&6; }
22e05272 13263if test "x$ac_cv_lib_z_compress" = xyes; then :
8da872d9
ILT
13264
13265$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13266
13267fi
2206fb89 13268
8da872d9
ILT
13269 if test "$ac_cv_lib_z_compress" = yes; then
13270 HAVE_ZLIB_TRUE=
13271 HAVE_ZLIB_FALSE='#'
13272else
13273 HAVE_ZLIB_TRUE='#'
13274 HAVE_ZLIB_FALSE=
13275fi
13276
13277
13278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5
13279$as_echo_n "checking whether --compress-debug-sections is supported... " >&6; }
22e05272 13280if ${libgo_cv_ld_compress+:} false; then :
8da872d9
ILT
13281 $as_echo_n "(cached) " >&6
13282else
13283 LDFLAGS_hold=$LDFLAGS
13284LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
13285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286/* end confdefs.h. */
13287
13288int
13289main ()
13290{
13291
13292 ;
13293 return 0;
13294}
13295_ACEOF
13296if ac_fn_c_try_link "$LINENO"; then :
13297 libgo_cv_ld_compress=yes
13298else
13299 libgo_cv_ld_compress=no
13300fi
13301rm -f core conftest.err conftest.$ac_objext \
13302 conftest$ac_exeext conftest.$ac_ext
13303LDFLAGS=$LDFLAGS_hold
13304fi
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5
13306$as_echo "$libgo_cv_ld_compress" >&6; }
13307 if test "$libgo_cv_ld_compress" = yes; then
13308 HAVE_COMPRESSED_DEBUG_TRUE=
13309 HAVE_COMPRESSED_DEBUG_FALSE='#'
13310else
13311 HAVE_COMPRESSED_DEBUG_TRUE='#'
13312 HAVE_COMPRESSED_DEBUG_FALSE=
13313fi
13314
13315
9283471b
ILT
13316
13317# Extract the first word of "objcopy", so it can be a program name with args.
13318set dummy objcopy; ac_word=$2
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13320$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13321if ${ac_cv_prog_OBJCOPY+:} false; then :
9283471b
ILT
13322 $as_echo_n "(cached) " >&6
13323else
13324 if test -n "$OBJCOPY"; then
13325 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13326else
13327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13328for as_dir in $PATH
13329do
13330 IFS=$as_save_IFS
13331 test -z "$as_dir" && as_dir=.
13332 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9283471b
ILT
13334 ac_cv_prog_OBJCOPY="objcopy"
13335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13336 break 2
13337 fi
13338done
13339 done
13340IFS=$as_save_IFS
13341
13342fi
13343fi
13344OBJCOPY=$ac_cv_prog_OBJCOPY
13345if test -n "$OBJCOPY"; then
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13347$as_echo "$OBJCOPY" >&6; }
13348else
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350$as_echo "no" >&6; }
13351fi
13352
13353
13354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
13355$as_echo_n "checking whether objcopy supports debuglink... " >&6; }
22e05272 13356if ${libbacktrace_cv_objcopy_debuglink+:} false; then :
9283471b
ILT
13357 $as_echo_n "(cached) " >&6
13358else
13359 if test -n "${with_target_subdir}"; then
13360 libbacktrace_cv_objcopy_debuglink=no
13361elif ${OBJCOPY} --add-gnu-debuglink=x /bin/ls /tmp/ls$$; then
13362 rm -f /tmp/ls$$
13363 libbacktrace_cv_objcopy_debuglink=yes
13364else
13365 libbacktrace_cv_objcopy_debuglink=no
13366fi
13367fi
13368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
13369$as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
13370 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
13371 HAVE_OBJCOPY_DEBUGLINK_TRUE=
13372 HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
13373else
13374 HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
13375 HAVE_OBJCOPY_DEBUGLINK_FALSE=
13376fi
13377
13378
eff02e4f
ILT
13379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
13380$as_echo_n "checking whether tests can run... " >&6; }
22e05272 13381if ${libbacktrace_cv_sys_native+:} false; then :
eff02e4f
ILT
13382 $as_echo_n "(cached) " >&6
13383else
13384 if test "$cross_compiling" = yes; then :
13385 libbacktrace_cv_sys_native=no
13386else
13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388/* end confdefs.h. */
13389
13390int
13391main ()
13392{
13393return 0;
13394 ;
13395 return 0;
13396}
13397_ACEOF
13398if ac_fn_c_try_run "$LINENO"; then :
13399 libbacktrace_cv_sys_native=yes
13400else
13401 libbacktrace_cv_sys_native=no
13402fi
13403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13404 conftest.$ac_objext conftest.beam conftest.$ac_ext
13405fi
13406
13407fi
13408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
13409$as_echo "$libbacktrace_cv_sys_native" >&6; }
13410 if test "$libbacktrace_cv_sys_native" = "yes"; then
13411 NATIVE_TRUE=
13412 NATIVE_FALSE='#'
13413else
13414 NATIVE_TRUE='#'
13415 NATIVE_FALSE=
13416fi
13417
13418
13419if test "${multilib}" = "yes"; then
13420 multilib_arg="--enable-multilib"
13421else
13422 multilib_arg=
13423fi
13424
13425ac_config_files="$ac_config_files Makefile backtrace-supported.h"
13426
13427
13428# We need multilib support, but only if configuring for the target.
13429ac_config_commands="$ac_config_commands default"
13430
13431
13432cat >confcache <<\_ACEOF
13433# This file is a shell script that caches the results of configure
13434# tests run on this system so they can be shared between configure
13435# scripts and configure runs, see configure's option --config-cache.
13436# It is not useful on other systems. If it contains results you don't
13437# want to keep, you may remove or edit it.
13438#
13439# config.status only pays attention to the cache file if you give it
13440# the --recheck option to rerun configure.
13441#
13442# `ac_cv_env_foo' variables (set or unset) will be overridden when
13443# loading this file, other *unset* `ac_cv_foo' will be assigned the
13444# following values.
13445
13446_ACEOF
13447
13448# The following way of writing the cache mishandles newlines in values,
13449# but we know of no workaround that is simple, portable, and efficient.
13450# So, we kill variables containing newlines.
13451# Ultrix sh set writes to stderr and can't be redirected directly,
13452# and sets the high bit in the cache file unless we assign to the vars.
13453(
13454 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13455 eval ac_val=\$$ac_var
13456 case $ac_val in #(
13457 *${as_nl}*)
13458 case $ac_var in #(
13459 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13460$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13461 esac
13462 case $ac_var in #(
13463 _ | IFS | as_nl) ;; #(
13464 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13465 *) { eval $ac_var=; unset $ac_var;} ;;
13466 esac ;;
13467 esac
13468 done
13469
13470 (set) 2>&1 |
13471 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13472 *${as_nl}ac_space=\ *)
13473 # `set' does not quote correctly, so add quotes: double-quote
13474 # substitution turns \\\\ into \\, and sed turns \\ into \.
13475 sed -n \
13476 "s/'/'\\\\''/g;
13477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13478 ;; #(
13479 *)
13480 # `set' quotes correctly as required by POSIX, so do not add quotes.
13481 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13482 ;;
13483 esac |
13484 sort
13485) |
13486 sed '
13487 /^ac_cv_env_/b end
13488 t clear
13489 :clear
13490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13491 t end
13492 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13493 :end' >>confcache
13494if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13495 if test -w "$cache_file"; then
22e05272 13496 if test "x$cache_file" != "x/dev/null"; then
eff02e4f
ILT
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13498$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
13499 if test ! -f "$cache_file" || test -h "$cache_file"; then
13500 cat confcache >"$cache_file"
13501 else
13502 case $cache_file in #(
13503 */* | ?:*)
13504 mv -f confcache "$cache_file"$$ &&
13505 mv -f "$cache_file"$$ "$cache_file" ;; #(
13506 *)
13507 mv -f confcache "$cache_file" ;;
13508 esac
13509 fi
13510 fi
eff02e4f
ILT
13511 else
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13513$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13514 fi
13515fi
13516rm -f confcache
13517
13518test "x$prefix" = xNONE && prefix=$ac_default_prefix
13519# Let make expand exec_prefix.
13520test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13521
13522DEFS=-DHAVE_CONFIG_H
13523
13524ac_libobjs=
13525ac_ltlibobjs=
22e05272 13526U=
eff02e4f
ILT
13527for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13528 # 1. Remove the extension, and $U if already installed.
13529 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13530 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13531 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13532 # will be set to the directory where LIBOBJS objects are built.
13533 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13534 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13535done
13536LIBOBJS=$ac_libobjs
13537
13538LTLIBOBJS=$ac_ltlibobjs
13539
13540
22e05272
JM
13541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13542$as_echo_n "checking that generated files are newer than configure... " >&6; }
13543 if test -n "$am_sleep_pid"; then
13544 # Hide warnings about reused PIDs.
13545 wait $am_sleep_pid 2>/dev/null
13546 fi
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13548$as_echo "done" >&6; }
eff02e4f
ILT
13549 if test -n "$EXEEXT"; then
13550 am__EXEEXT_TRUE=
13551 am__EXEEXT_FALSE='#'
13552else
13553 am__EXEEXT_TRUE='#'
13554 am__EXEEXT_FALSE=
13555fi
13556
13557if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 13558 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
eff02e4f
ILT
13559Usually this means the macro was only invoked conditionally." "$LINENO" 5
13560fi
d1609a23 13561if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
22e05272 13562 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
d1609a23
ILT
13563Usually this means the macro was only invoked conditionally." "$LINENO" 5
13564fi
8da872d9 13565if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
22e05272 13566 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
8da872d9
ILT
13567Usually this means the macro was only invoked conditionally." "$LINENO" 5
13568fi
13569if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then
22e05272 13570 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined.
8da872d9
ILT
13571Usually this means the macro was only invoked conditionally." "$LINENO" 5
13572fi
9283471b 13573if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
22e05272 13574 as_fn_error $? "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
9283471b
ILT
13575Usually this means the macro was only invoked conditionally." "$LINENO" 5
13576fi
eff02e4f 13577if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
22e05272 13578 as_fn_error $? "conditional \"NATIVE\" was never defined.
eff02e4f
ILT
13579Usually this means the macro was only invoked conditionally." "$LINENO" 5
13580fi
13581
22e05272 13582: "${CONFIG_STATUS=./config.status}"
eff02e4f
ILT
13583ac_write_fail=0
13584ac_clean_files_save=$ac_clean_files
13585ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13586{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13587$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13588as_write_fail=0
13589cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13590#! $SHELL
13591# Generated by $as_me.
13592# Run this file to recreate the current configuration.
13593# Compiler output produced by configure, useful for debugging
13594# configure, is in config.log if it exists.
13595
13596debug=false
13597ac_cs_recheck=false
13598ac_cs_silent=false
13599
13600SHELL=\${CONFIG_SHELL-$SHELL}
13601export SHELL
13602_ASEOF
13603cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13604## -------------------- ##
13605## M4sh Initialization. ##
13606## -------------------- ##
13607
13608# Be more Bourne compatible
13609DUALCASE=1; export DUALCASE # for MKS sh
13610if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13611 emulate sh
13612 NULLCMD=:
13613 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13614 # is contrary to our usage. Disable this feature.
13615 alias -g '${1+"$@"}'='"$@"'
13616 setopt NO_GLOB_SUBST
13617else
13618 case `(set -o) 2>/dev/null` in #(
13619 *posix*) :
13620 set -o posix ;; #(
13621 *) :
13622 ;;
13623esac
13624fi
13625
13626
13627as_nl='
13628'
13629export as_nl
13630# Printing a long string crashes Solaris 7 /usr/bin/printf.
13631as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13632as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13633as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13634# Prefer a ksh shell builtin over an external printf program on Solaris,
13635# but without wasting forks for bash or zsh.
13636if test -z "$BASH_VERSION$ZSH_VERSION" \
13637 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13638 as_echo='print -r --'
13639 as_echo_n='print -rn --'
13640elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13641 as_echo='printf %s\n'
13642 as_echo_n='printf %s'
13643else
13644 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13645 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13646 as_echo_n='/usr/ucb/echo -n'
13647 else
13648 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13649 as_echo_n_body='eval
13650 arg=$1;
13651 case $arg in #(
13652 *"$as_nl"*)
13653 expr "X$arg" : "X\\(.*\\)$as_nl";
13654 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13655 esac;
13656 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13657 '
13658 export as_echo_n_body
13659 as_echo_n='sh -c $as_echo_n_body as_echo'
13660 fi
13661 export as_echo_body
13662 as_echo='sh -c $as_echo_body as_echo'
13663fi
13664
13665# The user is always right.
13666if test "${PATH_SEPARATOR+set}" != set; then
13667 PATH_SEPARATOR=:
13668 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13669 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13670 PATH_SEPARATOR=';'
13671 }
13672fi
13673
13674
13675# IFS
13676# We need space, tab and new line, in precisely that order. Quoting is
13677# there to prevent editors from complaining about space-tab.
13678# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13679# splitting by setting IFS to empty value.)
13680IFS=" "" $as_nl"
13681
13682# Find who we are. Look in the path if we contain no directory separator.
22e05272 13683as_myself=
eff02e4f
ILT
13684case $0 in #((
13685 *[\\/]* ) as_myself=$0 ;;
13686 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13687for as_dir in $PATH
13688do
13689 IFS=$as_save_IFS
13690 test -z "$as_dir" && as_dir=.
13691 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13692 done
13693IFS=$as_save_IFS
13694
13695 ;;
13696esac
13697# We did not find ourselves, most probably we were run as `sh COMMAND'
13698# in which case we are not to be found in the path.
13699if test "x$as_myself" = x; then
13700 as_myself=$0
13701fi
13702if test ! -f "$as_myself"; then
13703 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13704 exit 1
13705fi
13706
13707# Unset variables that we do not need and which cause bugs (e.g. in
13708# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13709# suppresses any "Segmentation fault" message there. '((' could
13710# trigger a bug in pdksh 5.2.14.
13711for as_var in BASH_ENV ENV MAIL MAILPATH
13712do eval test x\${$as_var+set} = xset \
13713 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13714done
13715PS1='$ '
13716PS2='> '
13717PS4='+ '
13718
13719# NLS nuisances.
13720LC_ALL=C
13721export LC_ALL
13722LANGUAGE=C
13723export LANGUAGE
13724
13725# CDPATH.
13726(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13727
13728
22e05272
JM
13729# as_fn_error STATUS ERROR [LINENO LOG_FD]
13730# ----------------------------------------
eff02e4f
ILT
13731# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13732# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 13733# script with STATUS, using 1 if that was 0.
eff02e4f
ILT
13734as_fn_error ()
13735{
22e05272
JM
13736 as_status=$1; test $as_status -eq 0 && as_status=1
13737 if test "$4"; then
13738 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13739 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
eff02e4f 13740 fi
22e05272 13741 $as_echo "$as_me: error: $2" >&2
eff02e4f
ILT
13742 as_fn_exit $as_status
13743} # as_fn_error
13744
13745
13746# as_fn_set_status STATUS
13747# -----------------------
13748# Set $? to STATUS, without forking.
13749as_fn_set_status ()
13750{
13751 return $1
13752} # as_fn_set_status
13753
13754# as_fn_exit STATUS
13755# -----------------
13756# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13757as_fn_exit ()
13758{
13759 set +e
13760 as_fn_set_status $1
13761 exit $1
13762} # as_fn_exit
13763
13764# as_fn_unset VAR
13765# ---------------
13766# Portably unset VAR.
13767as_fn_unset ()
13768{
13769 { eval $1=; unset $1;}
13770}
13771as_unset=as_fn_unset
13772# as_fn_append VAR VALUE
13773# ----------------------
13774# Append the text in VALUE to the end of the definition contained in VAR. Take
13775# advantage of any shell optimizations that allow amortized linear growth over
13776# repeated appends, instead of the typical quadratic growth present in naive
13777# implementations.
13778if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13779 eval 'as_fn_append ()
13780 {
13781 eval $1+=\$2
13782 }'
13783else
13784 as_fn_append ()
13785 {
13786 eval $1=\$$1\$2
13787 }
13788fi # as_fn_append
13789
13790# as_fn_arith ARG...
13791# ------------------
13792# Perform arithmetic evaluation on the ARGs, and store the result in the
13793# global $as_val. Take advantage of shells that can avoid forks. The arguments
13794# must be portable across $(()) and expr.
13795if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13796 eval 'as_fn_arith ()
13797 {
13798 as_val=$(( $* ))
13799 }'
13800else
13801 as_fn_arith ()
13802 {
13803 as_val=`expr "$@" || test $? -eq 1`
13804 }
13805fi # as_fn_arith
13806
13807
13808if expr a : '\(a\)' >/dev/null 2>&1 &&
13809 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13810 as_expr=expr
13811else
13812 as_expr=false
13813fi
13814
13815if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13816 as_basename=basename
13817else
13818 as_basename=false
13819fi
13820
13821if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13822 as_dirname=dirname
13823else
13824 as_dirname=false
13825fi
13826
13827as_me=`$as_basename -- "$0" ||
13828$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13829 X"$0" : 'X\(//\)$' \| \
13830 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13831$as_echo X/"$0" |
13832 sed '/^.*\/\([^/][^/]*\)\/*$/{
13833 s//\1/
13834 q
13835 }
13836 /^X\/\(\/\/\)$/{
13837 s//\1/
13838 q
13839 }
13840 /^X\/\(\/\).*/{
13841 s//\1/
13842 q
13843 }
13844 s/.*/./; q'`
13845
13846# Avoid depending upon Character Ranges.
13847as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13848as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13849as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13850as_cr_digits='0123456789'
13851as_cr_alnum=$as_cr_Letters$as_cr_digits
13852
13853ECHO_C= ECHO_N= ECHO_T=
13854case `echo -n x` in #(((((
13855-n*)
13856 case `echo 'xy\c'` in
13857 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13858 xy) ECHO_C='\c';;
13859 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13860 ECHO_T=' ';;
13861 esac;;
13862*)
13863 ECHO_N='-n';;
13864esac
13865
13866rm -f conf$$ conf$$.exe conf$$.file
13867if test -d conf$$.dir; then
13868 rm -f conf$$.dir/conf$$.file
13869else
13870 rm -f conf$$.dir
13871 mkdir conf$$.dir 2>/dev/null
13872fi
13873if (echo >conf$$.file) 2>/dev/null; then
13874 if ln -s conf$$.file conf$$ 2>/dev/null; then
13875 as_ln_s='ln -s'
13876 # ... but there are two gotchas:
13877 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13878 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 13879 # In both cases, we have to default to `cp -pR'.
eff02e4f 13880 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 13881 as_ln_s='cp -pR'
eff02e4f
ILT
13882 elif ln conf$$.file conf$$ 2>/dev/null; then
13883 as_ln_s=ln
13884 else
22e05272 13885 as_ln_s='cp -pR'
eff02e4f
ILT
13886 fi
13887else
22e05272 13888 as_ln_s='cp -pR'
eff02e4f
ILT
13889fi
13890rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13891rmdir conf$$.dir 2>/dev/null
13892
13893
13894# as_fn_mkdir_p
13895# -------------
13896# Create "$as_dir" as a directory, including parents if necessary.
13897as_fn_mkdir_p ()
13898{
13899
13900 case $as_dir in #(
13901 -*) as_dir=./$as_dir;;
13902 esac
13903 test -d "$as_dir" || eval $as_mkdir_p || {
13904 as_dirs=
13905 while :; do
13906 case $as_dir in #(
13907 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13908 *) as_qdir=$as_dir;;
13909 esac
13910 as_dirs="'$as_qdir' $as_dirs"
13911 as_dir=`$as_dirname -- "$as_dir" ||
13912$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13913 X"$as_dir" : 'X\(//\)[^/]' \| \
13914 X"$as_dir" : 'X\(//\)$' \| \
13915 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13916$as_echo X"$as_dir" |
13917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13918 s//\1/
13919 q
13920 }
13921 /^X\(\/\/\)[^/].*/{
13922 s//\1/
13923 q
13924 }
13925 /^X\(\/\/\)$/{
13926 s//\1/
13927 q
13928 }
13929 /^X\(\/\).*/{
13930 s//\1/
13931 q
13932 }
13933 s/.*/./; q'`
13934 test -d "$as_dir" && break
13935 done
13936 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 13937 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
eff02e4f
ILT
13938
13939
13940} # as_fn_mkdir_p
13941if mkdir -p . 2>/dev/null; then
13942 as_mkdir_p='mkdir -p "$as_dir"'
13943else
13944 test -d ./-p && rmdir ./-p
13945 as_mkdir_p=false
13946fi
13947
22e05272
JM
13948
13949# as_fn_executable_p FILE
13950# -----------------------
13951# Test if FILE is an executable regular file.
13952as_fn_executable_p ()
13953{
13954 test -f "$1" && test -x "$1"
13955} # as_fn_executable_p
13956as_test_x='test -x'
13957as_executable_p=as_fn_executable_p
eff02e4f
ILT
13958
13959# Sed expression to map a string onto a valid CPP name.
13960as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13961
13962# Sed expression to map a string onto a valid variable name.
13963as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13964
13965
13966exec 6>&1
13967## ----------------------------------- ##
13968## Main body of $CONFIG_STATUS script. ##
13969## ----------------------------------- ##
13970_ASEOF
13971test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13972
13973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13974# Save the log message, to keep $0 and so on meaningful, and to
13975# report actual input values of CONFIG_FILES etc. instead of their
13976# values after options handling.
13977ac_log="
13978This file was extended by package-unused $as_me version-unused, which was
22e05272 13979generated by GNU Autoconf 2.69. Invocation command line was
eff02e4f
ILT
13980
13981 CONFIG_FILES = $CONFIG_FILES
13982 CONFIG_HEADERS = $CONFIG_HEADERS
13983 CONFIG_LINKS = $CONFIG_LINKS
13984 CONFIG_COMMANDS = $CONFIG_COMMANDS
13985 $ $0 $@
13986
13987on `(hostname || uname -n) 2>/dev/null | sed 1q`
13988"
13989
13990_ACEOF
13991
13992case $ac_config_files in *"
13993"*) set x $ac_config_files; shift; ac_config_files=$*;;
13994esac
13995
13996case $ac_config_headers in *"
13997"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13998esac
13999
14000
14001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14002# Files that config.status was made for.
14003config_files="$ac_config_files"
14004config_headers="$ac_config_headers"
14005config_commands="$ac_config_commands"
14006
14007_ACEOF
14008
14009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14010ac_cs_usage="\
14011\`$as_me' instantiates files and other configuration actions
14012from templates according to the current configuration. Unless the files
14013and actions are specified as TAGs, all are instantiated by default.
14014
14015Usage: $0 [OPTION]... [TAG]...
14016
14017 -h, --help print this help, then exit
14018 -V, --version print version number and configuration settings, then exit
22e05272 14019 --config print configuration, then exit
eff02e4f
ILT
14020 -q, --quiet, --silent
14021 do not print progress messages
14022 -d, --debug don't remove temporary files
14023 --recheck update $as_me by reconfiguring in the same conditions
14024 --file=FILE[:TEMPLATE]
14025 instantiate the configuration file FILE
14026 --header=FILE[:TEMPLATE]
14027 instantiate the configuration header FILE
14028
14029Configuration files:
14030$config_files
14031
14032Configuration headers:
14033$config_headers
14034
14035Configuration commands:
14036$config_commands
14037
14038Report bugs to the package provider."
14039
14040_ACEOF
14041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 14042ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
eff02e4f
ILT
14043ac_cs_version="\\
14044package-unused config.status version-unused
22e05272
JM
14045configured by $0, generated by GNU Autoconf 2.69,
14046 with options \\"\$ac_cs_config\\"
eff02e4f 14047
22e05272 14048Copyright (C) 2012 Free Software Foundation, Inc.
eff02e4f
ILT
14049This config.status script is free software; the Free Software Foundation
14050gives unlimited permission to copy, distribute and modify it."
14051
14052ac_pwd='$ac_pwd'
14053srcdir='$srcdir'
14054INSTALL='$INSTALL'
14055MKDIR_P='$MKDIR_P'
14056AWK='$AWK'
14057test -n "\$AWK" || AWK=awk
14058_ACEOF
14059
14060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14061# The default lists apply if the user does not specify any file.
14062ac_need_defaults=:
14063while test $# != 0
14064do
14065 case $1 in
22e05272 14066 --*=?*)
eff02e4f
ILT
14067 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14068 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14069 ac_shift=:
14070 ;;
22e05272
JM
14071 --*=)
14072 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14073 ac_optarg=
14074 ac_shift=:
14075 ;;
eff02e4f
ILT
14076 *)
14077 ac_option=$1
14078 ac_optarg=$2
14079 ac_shift=shift
14080 ;;
14081 esac
14082
14083 case $ac_option in
14084 # Handling of the options.
14085 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14086 ac_cs_recheck=: ;;
14087 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14088 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
14089 --config | --confi | --conf | --con | --co | --c )
14090 $as_echo "$ac_cs_config"; exit ;;
eff02e4f
ILT
14091 --debug | --debu | --deb | --de | --d | -d )
14092 debug=: ;;
14093 --file | --fil | --fi | --f )
14094 $ac_shift
14095 case $ac_optarg in
14096 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 14097 '') as_fn_error $? "missing file argument" ;;
eff02e4f
ILT
14098 esac
14099 as_fn_append CONFIG_FILES " '$ac_optarg'"
14100 ac_need_defaults=false;;
14101 --header | --heade | --head | --hea )
14102 $ac_shift
14103 case $ac_optarg in
14104 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14105 esac
14106 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14107 ac_need_defaults=false;;
14108 --he | --h)
14109 # Conflict between --help and --header
22e05272 14110 as_fn_error $? "ambiguous option: \`$1'
eff02e4f
ILT
14111Try \`$0 --help' for more information.";;
14112 --help | --hel | -h )
14113 $as_echo "$ac_cs_usage"; exit ;;
14114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14115 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14116 ac_cs_silent=: ;;
14117
14118 # This is an error.
22e05272 14119 -*) as_fn_error $? "unrecognized option: \`$1'
eff02e4f
ILT
14120Try \`$0 --help' for more information." ;;
14121
14122 *) as_fn_append ac_config_targets " $1"
14123 ac_need_defaults=false ;;
14124
14125 esac
14126 shift
14127done
14128
14129ac_configure_extra_args=
14130
14131if $ac_cs_silent; then
14132 exec 6>/dev/null
14133 ac_configure_extra_args="$ac_configure_extra_args --silent"
14134fi
14135
14136_ACEOF
14137cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14138if \$ac_cs_recheck; then
22e05272 14139 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
eff02e4f
ILT
14140 shift
14141 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14142 CONFIG_SHELL='$SHELL'
14143 export CONFIG_SHELL
14144 exec "\$@"
14145fi
14146
14147_ACEOF
14148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14149exec 5>>config.log
14150{
14151 echo
14152 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14153## Running $as_me. ##
14154_ASBOX
14155 $as_echo "$ac_log"
14156} >&5
14157
14158_ACEOF
14159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14160#
14161# INIT-COMMANDS
14162#
eff02e4f 14163
405a6b1c
MK
14164srcdir="$srcdir"
14165host="$host"
14166target="$target"
14167with_multisubdir="$with_multisubdir"
14168with_multisrctop="$with_multisrctop"
14169with_target_subdir="$with_target_subdir"
14170ac_configure_args="${multilib_arg} ${ac_configure_args}"
14171multi_basedir="$multi_basedir"
14172CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14173CC="$CC"
14174CXX="$CXX"
14175GFORTRAN="$GFORTRAN"
22e05272 14176GDC="$GDC"
405a6b1c 14177
eff02e4f
ILT
14178
14179# The HP-UX ksh and POSIX shell print the target directory to stdout
14180# if CDPATH is set.
14181(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14182
14183sed_quote_subst='$sed_quote_subst'
14184double_quote_subst='$double_quote_subst'
14185delay_variable_subst='$delay_variable_subst'
14186macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14187macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14188enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14189enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14190pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14191enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14192SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14193ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14194host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14195host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14196host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14197build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14198build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14199build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14200SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14201Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14202GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14203EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14204FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14205LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14206NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14207LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14208max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14209ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14210exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14211lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14212lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14213lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14214reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14215reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14216OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14217deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14218file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14219AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14220AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14221STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14222RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14223old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14224old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14225old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14226lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14227CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14228CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14229compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14230GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14231lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14232lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14233lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14234lt_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"`'
14235objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14236MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14237lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14238lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14239lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14240lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14241lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14242need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14243DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14244NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14245LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14246OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14247OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14248libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14249shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14250extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14251archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14252enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14253export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14254whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14255compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14256old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14257old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14258archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14259archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14260module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14261module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14262with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14263allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14264no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14265hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14266hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14267hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14268hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14269hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14270hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14271hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14272hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14273inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14274link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14275fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14276always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14277export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14278exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14279include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14280prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14281file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14282variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14283need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14284need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14285version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14286runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14287shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14288shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14289libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14290library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14291soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14292install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14293postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14294postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14295finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14296finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14297hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14298sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14299sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14300hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14301enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14302enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14303enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14304old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14305striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14306
14307LTCC='$LTCC'
14308LTCFLAGS='$LTCFLAGS'
14309compiler='$compiler_DEFAULT'
14310
14311# A function that is used when there is no print builtin or printf.
14312func_fallback_echo ()
14313{
14314 eval 'cat <<_LTECHO_EOF
14315\$1
14316_LTECHO_EOF'
14317}
14318
14319# Quote evaled strings.
14320for var in SHELL \
14321ECHO \
14322SED \
14323GREP \
14324EGREP \
14325FGREP \
14326LD \
14327NM \
14328LN_S \
14329lt_SP2NL \
14330lt_NL2SP \
14331reload_flag \
14332OBJDUMP \
14333deplibs_check_method \
14334file_magic_cmd \
14335AR \
14336AR_FLAGS \
14337STRIP \
14338RANLIB \
14339CC \
14340CFLAGS \
14341compiler \
14342lt_cv_sys_global_symbol_pipe \
14343lt_cv_sys_global_symbol_to_cdecl \
14344lt_cv_sys_global_symbol_to_c_name_address \
14345lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14346lt_prog_compiler_no_builtin_flag \
14347lt_prog_compiler_wl \
14348lt_prog_compiler_pic \
14349lt_prog_compiler_static \
14350lt_cv_prog_compiler_c_o \
14351need_locks \
14352DSYMUTIL \
14353NMEDIT \
14354LIPO \
14355OTOOL \
14356OTOOL64 \
14357shrext_cmds \
14358export_dynamic_flag_spec \
14359whole_archive_flag_spec \
14360compiler_needs_object \
14361with_gnu_ld \
14362allow_undefined_flag \
14363no_undefined_flag \
14364hardcode_libdir_flag_spec \
14365hardcode_libdir_flag_spec_ld \
14366hardcode_libdir_separator \
14367fix_srcfile_path \
14368exclude_expsyms \
14369include_expsyms \
14370file_list_spec \
14371variables_saved_for_relink \
14372libname_spec \
14373library_names_spec \
14374soname_spec \
14375install_override_mode \
14376finish_eval \
14377old_striplib \
14378striplib; do
14379 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14380 *[\\\\\\\`\\"\\\$]*)
14381 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14382 ;;
14383 *)
14384 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14385 ;;
14386 esac
14387done
14388
14389# Double-quote double-evaled strings.
14390for var in reload_cmds \
14391old_postinstall_cmds \
14392old_postuninstall_cmds \
14393old_archive_cmds \
14394extract_expsyms_cmds \
14395old_archive_from_new_cmds \
14396old_archive_from_expsyms_cmds \
14397archive_cmds \
14398archive_expsym_cmds \
14399module_cmds \
14400module_expsym_cmds \
14401export_symbols_cmds \
14402prelink_cmds \
14403postinstall_cmds \
14404postuninstall_cmds \
14405finish_cmds \
14406sys_lib_search_path_spec \
14407sys_lib_dlsearch_path_spec; do
14408 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14409 *[\\\\\\\`\\"\\\$]*)
14410 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14411 ;;
14412 *)
14413 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14414 ;;
14415 esac
14416done
14417
14418ac_aux_dir='$ac_aux_dir'
14419xsi_shell='$xsi_shell'
14420lt_shell_append='$lt_shell_append'
14421
14422# See if we are running on zsh, and set the options which allow our
14423# commands through without removal of \ escapes INIT.
14424if test -n "\${ZSH_VERSION+set}" ; then
14425 setopt NO_GLOB_SUBST
14426fi
14427
14428
14429 PACKAGE='$PACKAGE'
14430 VERSION='$VERSION'
14431 TIMESTAMP='$TIMESTAMP'
14432 RM='$RM'
14433 ofile='$ofile'
14434
14435
14436
14437
76850556
RO
14438GCC="$GCC"
14439CC="$CC"
14440acx_cv_header_stdint="$acx_cv_header_stdint"
14441acx_cv_type_int8_t="$acx_cv_type_int8_t"
14442acx_cv_type_int16_t="$acx_cv_type_int16_t"
14443acx_cv_type_int32_t="$acx_cv_type_int32_t"
14444acx_cv_type_int64_t="$acx_cv_type_int64_t"
14445acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
14446ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
14447ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
14448ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
14449ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
14450ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
14451ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
14452ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
14453ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
14454
14455
eff02e4f
ILT
14456# Variables needed in config.status (file generation) which aren't already
14457# passed by autoconf.
14458SUBDIRS="$SUBDIRS"
14459
14460
14461_ACEOF
14462
14463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14464
14465# Handling of arguments.
14466for ac_config_target in $ac_config_targets
14467do
14468 case $ac_config_target in
14469 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
eff02e4f 14470 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
405a6b1c 14471 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
76850556 14472 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
eff02e4f
ILT
14473 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14474 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
14475 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14476
22e05272 14477 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
eff02e4f
ILT
14478 esac
14479done
14480
14481
14482# If the user did not use the arguments to specify the items to instantiate,
14483# then the envvar interface is used. Set only those that are not.
14484# We use the long form for the default assignment because of an extremely
14485# bizarre bug on SunOS 4.1.3.
14486if $ac_need_defaults; then
14487 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14488 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14489 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14490fi
14491
14492# Have a temporary directory for convenience. Make it in the build tree
14493# simply because there is no reason against having it here, and in addition,
14494# creating and moving files from /tmp can sometimes cause problems.
14495# Hook for its removal unless debugging.
14496# Note that there is a small window in which the directory will not be cleaned:
14497# after its creation but before its name has been assigned to `$tmp'.
14498$debug ||
14499{
22e05272 14500 tmp= ac_tmp=
eff02e4f 14501 trap 'exit_status=$?
22e05272
JM
14502 : "${ac_tmp:=$tmp}"
14503 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
eff02e4f
ILT
14504' 0
14505 trap 'as_fn_exit 1' 1 2 13 15
14506}
14507# Create a (secure) tmp directory for tmp files.
14508
14509{
14510 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 14511 test -d "$tmp"
eff02e4f
ILT
14512} ||
14513{
14514 tmp=./conf$$-$RANDOM
14515 (umask 077 && mkdir "$tmp")
22e05272
JM
14516} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14517ac_tmp=$tmp
eff02e4f
ILT
14518
14519# Set up the scripts for CONFIG_FILES section.
14520# No need to generate them if there are no CONFIG_FILES.
14521# This happens for instance with `./config.status config.h'.
14522if test -n "$CONFIG_FILES"; then
14523
14524
14525ac_cr=`echo X | tr X '\015'`
14526# On cygwin, bash can eat \r inside `` if the user requested igncr.
14527# But we know of no other shell where ac_cr would be empty at this
14528# point, so we can use a bashism as a fallback.
14529if test "x$ac_cr" = x; then
14530 eval ac_cr=\$\'\\r\'
14531fi
14532ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14533if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 14534 ac_cs_awk_cr='\\r'
eff02e4f
ILT
14535else
14536 ac_cs_awk_cr=$ac_cr
14537fi
14538
22e05272 14539echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
eff02e4f
ILT
14540_ACEOF
14541
14542
14543{
14544 echo "cat >conf$$subs.awk <<_ACEOF" &&
14545 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14546 echo "_ACEOF"
14547} >conf$$subs.sh ||
22e05272
JM
14548 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14549ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
eff02e4f
ILT
14550ac_delim='%!_!# '
14551for ac_last_try in false false false false false :; do
14552 . ./conf$$subs.sh ||
22e05272 14553 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
eff02e4f
ILT
14554
14555 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14556 if test $ac_delim_n = $ac_delim_num; then
14557 break
14558 elif $ac_last_try; then
22e05272 14559 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
eff02e4f
ILT
14560 else
14561 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14562 fi
14563done
14564rm -f conf$$subs.sh
14565
14566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 14567cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
eff02e4f
ILT
14568_ACEOF
14569sed -n '
14570h
14571s/^/S["/; s/!.*/"]=/
14572p
14573g
14574s/^[^!]*!//
14575:repl
14576t repl
14577s/'"$ac_delim"'$//
14578t delim
14579:nl
14580h
22e05272 14581s/\(.\{148\}\)..*/\1/
eff02e4f
ILT
14582t more1
14583s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14584p
14585n
14586b repl
14587:more1
14588s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14589p
14590g
14591s/.\{148\}//
14592t nl
14593:delim
14594h
22e05272 14595s/\(.\{148\}\)..*/\1/
eff02e4f
ILT
14596t more2
14597s/["\\]/\\&/g; s/^/"/; s/$/"/
14598p
14599b
14600:more2
14601s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14602p
14603g
14604s/.\{148\}//
14605t delim
14606' <conf$$subs.awk | sed '
14607/^[^""]/{
14608 N
14609 s/\n//
14610}
14611' >>$CONFIG_STATUS || ac_write_fail=1
14612rm -f conf$$subs.awk
14613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14614_ACAWK
22e05272 14615cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
eff02e4f
ILT
14616 for (key in S) S_is_set[key] = 1
14617 FS = "\a"
14618
14619}
14620{
14621 line = $ 0
14622 nfields = split(line, field, "@")
14623 substed = 0
14624 len = length(field[1])
14625 for (i = 2; i < nfields; i++) {
14626 key = field[i]
14627 keylen = length(key)
14628 if (S_is_set[key]) {
14629 value = S[key]
14630 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14631 len += length(value) + length(field[++i])
14632 substed = 1
14633 } else
14634 len += 1 + keylen
14635 }
14636
14637 print line
14638}
14639
14640_ACAWK
14641_ACEOF
14642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14643if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14644 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14645else
14646 cat
22e05272
JM
14647fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14648 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
eff02e4f
ILT
14649_ACEOF
14650
22e05272
JM
14651# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14652# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
eff02e4f
ILT
14653# trailing colons and then remove the whole line if VPATH becomes empty
14654# (actually we leave an empty line to preserve line numbers).
14655if test "x$srcdir" = x.; then
22e05272
JM
14656 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14657h
14658s///
14659s/^/:/
14660s/[ ]*$/:/
14661s/:\$(srcdir):/:/g
14662s/:\${srcdir}:/:/g
14663s/:@srcdir@:/:/g
14664s/^:*//
eff02e4f 14665s/:*$//
22e05272
JM
14666x
14667s/\(=[ ]*\).*/\1/
14668G
14669s/\n//
eff02e4f
ILT
14670s/^[^=]*=[ ]*$//
14671}'
14672fi
14673
14674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14675fi # test -n "$CONFIG_FILES"
14676
14677# Set up the scripts for CONFIG_HEADERS section.
14678# No need to generate them if there are no CONFIG_HEADERS.
14679# This happens for instance with `./config.status Makefile'.
14680if test -n "$CONFIG_HEADERS"; then
22e05272 14681cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
eff02e4f
ILT
14682BEGIN {
14683_ACEOF
14684
14685# Transform confdefs.h into an awk script `defines.awk', embedded as
14686# here-document in config.status, that substitutes the proper values into
14687# config.h.in to produce config.h.
14688
14689# Create a delimiter string that does not exist in confdefs.h, to ease
14690# handling of long lines.
14691ac_delim='%!_!# '
14692for ac_last_try in false false :; do
22e05272
JM
14693 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14694 if test -z "$ac_tt"; then
eff02e4f
ILT
14695 break
14696 elif $ac_last_try; then
22e05272 14697 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
eff02e4f
ILT
14698 else
14699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14700 fi
14701done
14702
14703# For the awk script, D is an array of macro values keyed by name,
14704# likewise P contains macro parameters if any. Preserve backslash
14705# newline sequences.
14706
14707ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14708sed -n '
14709s/.\{148\}/&'"$ac_delim"'/g
14710t rset
14711:rset
14712s/^[ ]*#[ ]*define[ ][ ]*/ /
14713t def
14714d
14715:def
14716s/\\$//
14717t bsnl
14718s/["\\]/\\&/g
14719s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14720D["\1"]=" \3"/p
14721s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14722d
14723:bsnl
14724s/["\\]/\\&/g
14725s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14726D["\1"]=" \3\\\\\\n"\\/p
14727t cont
14728s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14729t cont
14730d
14731:cont
14732n
14733s/.\{148\}/&'"$ac_delim"'/g
14734t clear
14735:clear
14736s/\\$//
14737t bsnlc
14738s/["\\]/\\&/g; s/^/"/; s/$/"/p
14739d
14740:bsnlc
14741s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14742b cont
14743' <confdefs.h | sed '
14744s/'"$ac_delim"'/"\\\
14745"/g' >>$CONFIG_STATUS || ac_write_fail=1
14746
14747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14748 for (key in D) D_is_set[key] = 1
14749 FS = "\a"
14750}
14751/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14752 line = \$ 0
14753 split(line, arg, " ")
14754 if (arg[1] == "#") {
14755 defundef = arg[2]
14756 mac1 = arg[3]
14757 } else {
14758 defundef = substr(arg[1], 2)
14759 mac1 = arg[2]
14760 }
14761 split(mac1, mac2, "(") #)
14762 macro = mac2[1]
14763 prefix = substr(line, 1, index(line, defundef) - 1)
14764 if (D_is_set[macro]) {
14765 # Preserve the white space surrounding the "#".
14766 print prefix "define", macro P[macro] D[macro]
14767 next
14768 } else {
14769 # Replace #undef with comments. This is necessary, for example,
14770 # in the case of _POSIX_SOURCE, which is predefined and required
14771 # on some systems where configure will not decide to define it.
14772 if (defundef == "undef") {
14773 print "/*", prefix defundef, macro, "*/"
14774 next
14775 }
14776 }
14777}
14778{ print }
14779_ACAWK
14780_ACEOF
14781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 14782 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
eff02e4f
ILT
14783fi # test -n "$CONFIG_HEADERS"
14784
14785
14786eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14787shift
14788for ac_tag
14789do
14790 case $ac_tag in
14791 :[FHLC]) ac_mode=$ac_tag; continue;;
14792 esac
14793 case $ac_mode$ac_tag in
14794 :[FHL]*:*);;
22e05272 14795 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
eff02e4f
ILT
14796 :[FH]-) ac_tag=-:-;;
14797 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14798 esac
14799 ac_save_IFS=$IFS
14800 IFS=:
14801 set x $ac_tag
14802 IFS=$ac_save_IFS
14803 shift
14804 ac_file=$1
14805 shift
14806
14807 case $ac_mode in
14808 :L) ac_source=$1;;
14809 :[FH])
14810 ac_file_inputs=
14811 for ac_f
14812 do
14813 case $ac_f in
22e05272 14814 -) ac_f="$ac_tmp/stdin";;
eff02e4f
ILT
14815 *) # Look for the file first in the build tree, then in the source tree
14816 # (if the path is not absolute). The absolute path cannot be DOS-style,
14817 # because $ac_f cannot contain `:'.
14818 test -f "$ac_f" ||
14819 case $ac_f in
14820 [\\/$]*) false;;
14821 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14822 esac ||
22e05272 14823 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
eff02e4f
ILT
14824 esac
14825 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14826 as_fn_append ac_file_inputs " '$ac_f'"
14827 done
14828
14829 # Let's still pretend it is `configure' which instantiates (i.e., don't
14830 # use $as_me), people would be surprised to read:
14831 # /* config.h. Generated by config.status. */
14832 configure_input='Generated from '`
14833 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14834 `' by configure.'
14835 if test x"$ac_file" != x-; then
14836 configure_input="$ac_file. $configure_input"
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14838$as_echo "$as_me: creating $ac_file" >&6;}
14839 fi
14840 # Neutralize special characters interpreted by sed in replacement strings.
14841 case $configure_input in #(
14842 *\&* | *\|* | *\\* )
14843 ac_sed_conf_input=`$as_echo "$configure_input" |
14844 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14845 *) ac_sed_conf_input=$configure_input;;
14846 esac
14847
14848 case $ac_tag in
22e05272
JM
14849 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14850 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
eff02e4f
ILT
14851 esac
14852 ;;
14853 esac
14854
14855 ac_dir=`$as_dirname -- "$ac_file" ||
14856$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14857 X"$ac_file" : 'X\(//\)[^/]' \| \
14858 X"$ac_file" : 'X\(//\)$' \| \
14859 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14860$as_echo X"$ac_file" |
14861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14862 s//\1/
14863 q
14864 }
14865 /^X\(\/\/\)[^/].*/{
14866 s//\1/
14867 q
14868 }
14869 /^X\(\/\/\)$/{
14870 s//\1/
14871 q
14872 }
14873 /^X\(\/\).*/{
14874 s//\1/
14875 q
14876 }
14877 s/.*/./; q'`
14878 as_dir="$ac_dir"; as_fn_mkdir_p
14879 ac_builddir=.
14880
14881case "$ac_dir" in
14882.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14883*)
14884 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14885 # A ".." for each directory in $ac_dir_suffix.
14886 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14887 case $ac_top_builddir_sub in
14888 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14889 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14890 esac ;;
14891esac
14892ac_abs_top_builddir=$ac_pwd
14893ac_abs_builddir=$ac_pwd$ac_dir_suffix
14894# for backward compatibility:
14895ac_top_builddir=$ac_top_build_prefix
14896
14897case $srcdir in
14898 .) # We are building in place.
14899 ac_srcdir=.
14900 ac_top_srcdir=$ac_top_builddir_sub
14901 ac_abs_top_srcdir=$ac_pwd ;;
14902 [\\/]* | ?:[\\/]* ) # Absolute name.
14903 ac_srcdir=$srcdir$ac_dir_suffix;
14904 ac_top_srcdir=$srcdir
14905 ac_abs_top_srcdir=$srcdir ;;
14906 *) # Relative name.
14907 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14908 ac_top_srcdir=$ac_top_build_prefix$srcdir
14909 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14910esac
14911ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14912
14913
14914 case $ac_mode in
14915 :F)
14916 #
14917 # CONFIG_FILE
14918 #
14919
14920 case $INSTALL in
14921 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14922 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14923 esac
14924 ac_MKDIR_P=$MKDIR_P
14925 case $MKDIR_P in
14926 [\\/$]* | ?:[\\/]* ) ;;
14927 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14928 esac
14929_ACEOF
14930
14931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14932# If the template does not know about datarootdir, expand it.
14933# FIXME: This hack should be removed a few years after 2.60.
14934ac_datarootdir_hack=; ac_datarootdir_seen=
14935ac_sed_dataroot='
14936/datarootdir/ {
14937 p
14938 q
14939}
14940/@datadir@/p
14941/@docdir@/p
14942/@infodir@/p
14943/@localedir@/p
14944/@mandir@/p'
14945case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14946*datarootdir*) ac_datarootdir_seen=yes;;
14947*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14949$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14950_ACEOF
14951cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14952 ac_datarootdir_hack='
14953 s&@datadir@&$datadir&g
14954 s&@docdir@&$docdir&g
14955 s&@infodir@&$infodir&g
14956 s&@localedir@&$localedir&g
14957 s&@mandir@&$mandir&g
14958 s&\\\${datarootdir}&$datarootdir&g' ;;
14959esac
14960_ACEOF
14961
14962# Neutralize VPATH when `$srcdir' = `.'.
14963# Shell code in configure.ac might set extrasub.
14964# FIXME: do we really want to maintain this feature?
14965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14966ac_sed_extra="$ac_vpsub
14967$extrasub
14968_ACEOF
14969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14970:t
14971/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14972s|@configure_input@|$ac_sed_conf_input|;t t
14973s&@top_builddir@&$ac_top_builddir_sub&;t t
14974s&@top_build_prefix@&$ac_top_build_prefix&;t t
14975s&@srcdir@&$ac_srcdir&;t t
14976s&@abs_srcdir@&$ac_abs_srcdir&;t t
14977s&@top_srcdir@&$ac_top_srcdir&;t t
14978s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14979s&@builddir@&$ac_builddir&;t t
14980s&@abs_builddir@&$ac_abs_builddir&;t t
14981s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14982s&@INSTALL@&$ac_INSTALL&;t t
14983s&@MKDIR_P@&$ac_MKDIR_P&;t t
14984$ac_datarootdir_hack
14985"
22e05272
JM
14986eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14987 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
eff02e4f
ILT
14988
14989test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
14990 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14991 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14992 "$ac_tmp/out"`; test -z "$ac_out"; } &&
eff02e4f 14993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 14994which seems to be undefined. Please make sure it is defined" >&5
eff02e4f 14995$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 14996which seems to be undefined. Please make sure it is defined" >&2;}
eff02e4f 14997
22e05272 14998 rm -f "$ac_tmp/stdin"
eff02e4f 14999 case $ac_file in
22e05272
JM
15000 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15001 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
eff02e4f 15002 esac \
22e05272 15003 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
eff02e4f
ILT
15004 ;;
15005 :H)
15006 #
15007 # CONFIG_HEADER
15008 #
15009 if test x"$ac_file" != x-; then
15010 {
15011 $as_echo "/* $configure_input */" \
22e05272
JM
15012 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15013 } >"$ac_tmp/config.h" \
15014 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15015 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
eff02e4f
ILT
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15017$as_echo "$as_me: $ac_file is unchanged" >&6;}
15018 else
15019 rm -f "$ac_file"
22e05272
JM
15020 mv "$ac_tmp/config.h" "$ac_file" \
15021 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
eff02e4f
ILT
15022 fi
15023 else
15024 $as_echo "/* $configure_input */" \
22e05272
JM
15025 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15026 || as_fn_error $? "could not create -" "$LINENO" 5
eff02e4f
ILT
15027 fi
15028# Compute "$ac_file"'s index in $config_headers.
15029_am_arg="$ac_file"
15030_am_stamp_count=1
15031for _am_header in $config_headers :; do
15032 case $_am_header in
15033 $_am_arg | $_am_arg:* )
15034 break ;;
15035 * )
15036 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15037 esac
15038done
15039echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15040$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15041 X"$_am_arg" : 'X\(//\)[^/]' \| \
15042 X"$_am_arg" : 'X\(//\)$' \| \
15043 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15044$as_echo X"$_am_arg" |
15045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15046 s//\1/
15047 q
15048 }
15049 /^X\(\/\/\)[^/].*/{
15050 s//\1/
15051 q
15052 }
15053 /^X\(\/\/\)$/{
15054 s//\1/
15055 q
15056 }
15057 /^X\(\/\).*/{
15058 s//\1/
15059 q
15060 }
15061 s/.*/./; q'`/stamp-h$_am_stamp_count
15062 ;;
15063
15064 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15065$as_echo "$as_me: executing $ac_file commands" >&6;}
15066 ;;
15067 esac
15068
15069
15070 case $ac_file$ac_mode in
405a6b1c
MK
15071 "default-1":C)
15072# Only add multilib support code if we just rebuilt the top-level
15073# Makefile.
15074case " $CONFIG_FILES " in
15075 *" Makefile "*)
15076 ac_file=Makefile . ${multi_basedir}/config-ml.in
15077 ;;
15078esac ;;
eff02e4f
ILT
15079 "libtool":C)
15080
15081 # See if we are running on zsh, and set the options which allow our
15082 # commands through without removal of \ escapes.
15083 if test -n "${ZSH_VERSION+set}" ; then
15084 setopt NO_GLOB_SUBST
15085 fi
15086
15087 cfgfile="${ofile}T"
15088 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15089 $RM "$cfgfile"
15090
15091 cat <<_LT_EOF >> "$cfgfile"
15092#! $SHELL
15093
15094# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15095# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15096# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15097# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15098#
15099# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15100# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15101# Written by Gordon Matzigkeit, 1996
15102#
15103# This file is part of GNU Libtool.
15104#
15105# GNU Libtool is free software; you can redistribute it and/or
15106# modify it under the terms of the GNU General Public License as
15107# published by the Free Software Foundation; either version 2 of
15108# the License, or (at your option) any later version.
15109#
15110# As a special exception to the GNU General Public License,
15111# if you distribute this file as part of a program or library that
15112# is built using GNU Libtool, you may include this file under the
15113# same distribution terms that you use for the rest of that program.
15114#
15115# GNU Libtool is distributed in the hope that it will be useful,
15116# but WITHOUT ANY WARRANTY; without even the implied warranty of
15117# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15118# GNU General Public License for more details.
15119#
15120# You should have received a copy of the GNU General Public License
15121# along with GNU Libtool; see the file COPYING. If not, a copy
15122# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15123# obtained by writing to the Free Software Foundation, Inc.,
15124# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15125
15126
15127# The names of the tagged configurations supported by this script.
15128available_tags=""
15129
15130# ### BEGIN LIBTOOL CONFIG
15131
15132# Which release of libtool.m4 was used?
15133macro_version=$macro_version
15134macro_revision=$macro_revision
15135
15136# Whether or not to build shared libraries.
15137build_libtool_libs=$enable_shared
15138
15139# Whether or not to build static libraries.
15140build_old_libs=$enable_static
15141
15142# What type of objects to build.
15143pic_mode=$pic_mode
15144
15145# Whether or not to optimize for fast installation.
15146fast_install=$enable_fast_install
15147
15148# Shell to use when invoking shell scripts.
15149SHELL=$lt_SHELL
15150
15151# An echo program that protects backslashes.
15152ECHO=$lt_ECHO
15153
15154# The host system.
15155host_alias=$host_alias
15156host=$host
15157host_os=$host_os
15158
15159# The build system.
15160build_alias=$build_alias
15161build=$build
15162build_os=$build_os
15163
15164# A sed program that does not truncate output.
15165SED=$lt_SED
15166
15167# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15168Xsed="\$SED -e 1s/^X//"
15169
15170# A grep program that handles long lines.
15171GREP=$lt_GREP
15172
15173# An ERE matcher.
15174EGREP=$lt_EGREP
15175
15176# A literal string matcher.
15177FGREP=$lt_FGREP
15178
15179# A BSD- or MS-compatible name lister.
15180NM=$lt_NM
15181
15182# Whether we need soft or hard links.
15183LN_S=$lt_LN_S
15184
15185# What is the maximum length of a command?
15186max_cmd_len=$max_cmd_len
15187
15188# Object file suffix (normally "o").
15189objext=$ac_objext
15190
15191# Executable file suffix (normally "").
15192exeext=$exeext
15193
15194# whether the shell understands "unset".
15195lt_unset=$lt_unset
15196
15197# turn spaces into newlines.
15198SP2NL=$lt_lt_SP2NL
15199
15200# turn newlines into spaces.
15201NL2SP=$lt_lt_NL2SP
15202
15203# An object symbol dumper.
15204OBJDUMP=$lt_OBJDUMP
15205
15206# Method to check whether dependent libraries are shared objects.
15207deplibs_check_method=$lt_deplibs_check_method
15208
15209# Command to use when deplibs_check_method == "file_magic".
15210file_magic_cmd=$lt_file_magic_cmd
15211
15212# The archiver.
15213AR=$lt_AR
15214AR_FLAGS=$lt_AR_FLAGS
15215
15216# A symbol stripping program.
15217STRIP=$lt_STRIP
15218
15219# Commands used to install an old-style archive.
15220RANLIB=$lt_RANLIB
15221old_postinstall_cmds=$lt_old_postinstall_cmds
15222old_postuninstall_cmds=$lt_old_postuninstall_cmds
15223
15224# Whether to use a lock for old archive extraction.
15225lock_old_archive_extraction=$lock_old_archive_extraction
15226
15227# A C compiler.
15228LTCC=$lt_CC
15229
15230# LTCC compiler flags.
15231LTCFLAGS=$lt_CFLAGS
15232
15233# Take the output of nm and produce a listing of raw symbols and C names.
15234global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15235
15236# Transform the output of nm in a proper C declaration.
15237global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15238
15239# Transform the output of nm in a C name address pair.
15240global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15241
15242# Transform the output of nm in a C name address pair when lib prefix is needed.
15243global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15244
15245# The name of the directory that contains temporary libtool files.
15246objdir=$objdir
15247
15248# Used to examine libraries when file_magic_cmd begins with "file".
15249MAGIC_CMD=$MAGIC_CMD
15250
15251# Must we lock files when doing compilation?
15252need_locks=$lt_need_locks
15253
15254# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15255DSYMUTIL=$lt_DSYMUTIL
15256
15257# Tool to change global to local symbols on Mac OS X.
15258NMEDIT=$lt_NMEDIT
15259
15260# Tool to manipulate fat objects and archives on Mac OS X.
15261LIPO=$lt_LIPO
15262
15263# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15264OTOOL=$lt_OTOOL
15265
15266# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15267OTOOL64=$lt_OTOOL64
15268
15269# Old archive suffix (normally "a").
15270libext=$libext
15271
15272# Shared library suffix (normally ".so").
15273shrext_cmds=$lt_shrext_cmds
15274
15275# The commands to extract the exported symbol list from a shared archive.
15276extract_expsyms_cmds=$lt_extract_expsyms_cmds
15277
15278# Variables whose values should be saved in libtool wrapper scripts and
15279# restored at link time.
15280variables_saved_for_relink=$lt_variables_saved_for_relink
15281
15282# Do we need the "lib" prefix for modules?
15283need_lib_prefix=$need_lib_prefix
15284
15285# Do we need a version for libraries?
15286need_version=$need_version
15287
15288# Library versioning type.
15289version_type=$version_type
15290
15291# Shared library runtime path variable.
15292runpath_var=$runpath_var
15293
15294# Shared library path variable.
15295shlibpath_var=$shlibpath_var
15296
15297# Is shlibpath searched before the hard-coded library search path?
15298shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15299
15300# Format of library name prefix.
15301libname_spec=$lt_libname_spec
15302
15303# List of archive names. First name is the real one, the rest are links.
15304# The last name is the one that the linker finds with -lNAME
15305library_names_spec=$lt_library_names_spec
15306
15307# The coded name of the library, if different from the real name.
15308soname_spec=$lt_soname_spec
15309
15310# Permission mode override for installation of shared libraries.
15311install_override_mode=$lt_install_override_mode
15312
15313# Command to use after installation of a shared archive.
15314postinstall_cmds=$lt_postinstall_cmds
15315
15316# Command to use after uninstallation of a shared archive.
15317postuninstall_cmds=$lt_postuninstall_cmds
15318
15319# Commands used to finish a libtool library installation in a directory.
15320finish_cmds=$lt_finish_cmds
15321
15322# As "finish_cmds", except a single script fragment to be evaled but
15323# not shown.
15324finish_eval=$lt_finish_eval
15325
15326# Whether we should hardcode library paths into libraries.
15327hardcode_into_libs=$hardcode_into_libs
15328
15329# Compile-time system search path for libraries.
15330sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15331
15332# Run-time system search path for libraries.
15333sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15334
15335# Whether dlopen is supported.
15336dlopen_support=$enable_dlopen
15337
15338# Whether dlopen of programs is supported.
15339dlopen_self=$enable_dlopen_self
15340
15341# Whether dlopen of statically linked programs is supported.
15342dlopen_self_static=$enable_dlopen_self_static
15343
15344# Commands to strip libraries.
15345old_striplib=$lt_old_striplib
15346striplib=$lt_striplib
15347
15348
15349# The linker used to build libraries.
15350LD=$lt_LD
15351
15352# How to create reloadable object files.
15353reload_flag=$lt_reload_flag
15354reload_cmds=$lt_reload_cmds
15355
15356# Commands used to build an old-style archive.
15357old_archive_cmds=$lt_old_archive_cmds
15358
15359# A language specific compiler.
15360CC=$lt_compiler
15361
15362# Is the compiler the GNU compiler?
15363with_gcc=$GCC
15364
15365# Compiler flag to turn off builtin functions.
15366no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15367
15368# How to pass a linker flag through the compiler.
15369wl=$lt_lt_prog_compiler_wl
15370
15371# Additional compiler flags for building library objects.
15372pic_flag=$lt_lt_prog_compiler_pic
15373
15374# Compiler flag to prevent dynamic linking.
15375link_static_flag=$lt_lt_prog_compiler_static
15376
15377# Does compiler simultaneously support -c and -o options?
15378compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15379
15380# Whether or not to add -lc for building shared libraries.
15381build_libtool_need_lc=$archive_cmds_need_lc
15382
15383# Whether or not to disallow shared libs when runtime libs are static.
15384allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15385
15386# Compiler flag to allow reflexive dlopens.
15387export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15388
15389# Compiler flag to generate shared objects directly from archives.
15390whole_archive_flag_spec=$lt_whole_archive_flag_spec
15391
15392# Whether the compiler copes with passing no objects directly.
15393compiler_needs_object=$lt_compiler_needs_object
15394
15395# Create an old-style archive from a shared archive.
15396old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15397
15398# Create a temporary old-style archive to link instead of a shared archive.
15399old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15400
15401# Commands used to build a shared archive.
15402archive_cmds=$lt_archive_cmds
15403archive_expsym_cmds=$lt_archive_expsym_cmds
15404
15405# Commands used to build a loadable module if different from building
15406# a shared archive.
15407module_cmds=$lt_module_cmds
15408module_expsym_cmds=$lt_module_expsym_cmds
15409
15410# Whether we are building with GNU ld or not.
15411with_gnu_ld=$lt_with_gnu_ld
15412
15413# Flag that allows shared libraries with undefined symbols to be built.
15414allow_undefined_flag=$lt_allow_undefined_flag
15415
15416# Flag that enforces no undefined symbols.
15417no_undefined_flag=$lt_no_undefined_flag
15418
15419# Flag to hardcode \$libdir into a binary during linking.
15420# This must work even if \$libdir does not exist
15421hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15422
15423# If ld is used when linking, flag to hardcode \$libdir into a binary
15424# during linking. This must work even if \$libdir does not exist.
15425hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15426
15427# Whether we need a single "-rpath" flag with a separated argument.
15428hardcode_libdir_separator=$lt_hardcode_libdir_separator
15429
15430# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15431# DIR into the resulting binary.
15432hardcode_direct=$hardcode_direct
15433
15434# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15435# DIR into the resulting binary and the resulting library dependency is
15436# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15437# library is relocated.
15438hardcode_direct_absolute=$hardcode_direct_absolute
15439
15440# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15441# into the resulting binary.
15442hardcode_minus_L=$hardcode_minus_L
15443
15444# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15445# into the resulting binary.
15446hardcode_shlibpath_var=$hardcode_shlibpath_var
15447
15448# Set to "yes" if building a shared library automatically hardcodes DIR
15449# into the library and all subsequent libraries and executables linked
15450# against it.
15451hardcode_automatic=$hardcode_automatic
15452
15453# Set to yes if linker adds runtime paths of dependent libraries
15454# to runtime path list.
15455inherit_rpath=$inherit_rpath
15456
15457# Whether libtool must link a program against all its dependency libraries.
15458link_all_deplibs=$link_all_deplibs
15459
15460# Fix the shell variable \$srcfile for the compiler.
15461fix_srcfile_path=$lt_fix_srcfile_path
15462
15463# Set to "yes" if exported symbols are required.
15464always_export_symbols=$always_export_symbols
15465
15466# The commands to list exported symbols.
15467export_symbols_cmds=$lt_export_symbols_cmds
15468
15469# Symbols that should not be listed in the preloaded symbols.
15470exclude_expsyms=$lt_exclude_expsyms
15471
15472# Symbols that must always be exported.
15473include_expsyms=$lt_include_expsyms
15474
15475# Commands necessary for linking programs (against libraries) with templates.
15476prelink_cmds=$lt_prelink_cmds
15477
15478# Specify filename containing input files.
15479file_list_spec=$lt_file_list_spec
15480
15481# How to hardcode a shared library path into an executable.
15482hardcode_action=$hardcode_action
15483
15484# ### END LIBTOOL CONFIG
15485
15486_LT_EOF
15487
15488 case $host_os in
15489 aix3*)
15490 cat <<\_LT_EOF >> "$cfgfile"
15491# AIX sometimes has problems with the GCC collect2 program. For some
15492# reason, if we set the COLLECT_NAMES environment variable, the problems
15493# vanish in a puff of smoke.
15494if test "X${COLLECT_NAMES+set}" != Xset; then
15495 COLLECT_NAMES=
15496 export COLLECT_NAMES
15497fi
15498_LT_EOF
15499 ;;
15500 esac
15501
15502
15503ltmain="$ac_aux_dir/ltmain.sh"
15504
15505
15506 # We use sed instead of cat because bash on DJGPP gets confused if
15507 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15508 # text mode, it properly converts lines to CR/LF. This bash problem
15509 # is reportedly fixed, but why not run on old versions too?
15510 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15511 || (rm -f "$cfgfile"; exit 1)
15512
15513 case $xsi_shell in
15514 yes)
15515 cat << \_LT_EOF >> "$cfgfile"
15516
15517# func_dirname file append nondir_replacement
15518# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15519# otherwise set result to NONDIR_REPLACEMENT.
15520func_dirname ()
15521{
15522 case ${1} in
15523 */*) func_dirname_result="${1%/*}${2}" ;;
15524 * ) func_dirname_result="${3}" ;;
15525 esac
15526}
15527
15528# func_basename file
15529func_basename ()
15530{
15531 func_basename_result="${1##*/}"
15532}
15533
15534# func_dirname_and_basename file append nondir_replacement
15535# perform func_basename and func_dirname in a single function
15536# call:
15537# dirname: Compute the dirname of FILE. If nonempty,
15538# add APPEND to the result, otherwise set result
15539# to NONDIR_REPLACEMENT.
15540# value returned in "$func_dirname_result"
15541# basename: Compute filename of FILE.
15542# value retuned in "$func_basename_result"
15543# Implementation must be kept synchronized with func_dirname
15544# and func_basename. For efficiency, we do not delegate to
15545# those functions but instead duplicate the functionality here.
15546func_dirname_and_basename ()
15547{
15548 case ${1} in
15549 */*) func_dirname_result="${1%/*}${2}" ;;
15550 * ) func_dirname_result="${3}" ;;
15551 esac
15552 func_basename_result="${1##*/}"
15553}
15554
15555# func_stripname prefix suffix name
15556# strip PREFIX and SUFFIX off of NAME.
15557# PREFIX and SUFFIX must not contain globbing or regex special
15558# characters, hashes, percent signs, but SUFFIX may contain a leading
15559# dot (in which case that matches only a dot).
15560func_stripname ()
15561{
15562 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15563 # positional parameters, so assign one to ordinary parameter first.
15564 func_stripname_result=${3}
15565 func_stripname_result=${func_stripname_result#"${1}"}
15566 func_stripname_result=${func_stripname_result%"${2}"}
15567}
15568
15569# func_opt_split
15570func_opt_split ()
15571{
15572 func_opt_split_opt=${1%%=*}
15573 func_opt_split_arg=${1#*=}
15574}
15575
15576# func_lo2o object
15577func_lo2o ()
15578{
15579 case ${1} in
15580 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15581 *) func_lo2o_result=${1} ;;
15582 esac
15583}
15584
15585# func_xform libobj-or-source
15586func_xform ()
15587{
15588 func_xform_result=${1%.*}.lo
15589}
15590
15591# func_arith arithmetic-term...
15592func_arith ()
15593{
15594 func_arith_result=$(( $* ))
15595}
15596
15597# func_len string
15598# STRING may not start with a hyphen.
15599func_len ()
15600{
15601 func_len_result=${#1}
15602}
15603
15604_LT_EOF
15605 ;;
15606 *) # Bourne compatible functions.
15607 cat << \_LT_EOF >> "$cfgfile"
15608
15609# func_dirname file append nondir_replacement
15610# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15611# otherwise set result to NONDIR_REPLACEMENT.
15612func_dirname ()
15613{
15614 # Extract subdirectory from the argument.
15615 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15616 if test "X$func_dirname_result" = "X${1}"; then
15617 func_dirname_result="${3}"
15618 else
15619 func_dirname_result="$func_dirname_result${2}"
15620 fi
15621}
15622
15623# func_basename file
15624func_basename ()
15625{
15626 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15627}
15628
15629
15630# func_stripname prefix suffix name
15631# strip PREFIX and SUFFIX off of NAME.
15632# PREFIX and SUFFIX must not contain globbing or regex special
15633# characters, hashes, percent signs, but SUFFIX may contain a leading
15634# dot (in which case that matches only a dot).
15635# func_strip_suffix prefix name
15636func_stripname ()
15637{
15638 case ${2} in
15639 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15640 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15641 esac
15642}
15643
15644# sed scripts:
15645my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15646my_sed_long_arg='1s/^-[^=]*=//'
15647
15648# func_opt_split
15649func_opt_split ()
15650{
15651 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15652 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15653}
15654
15655# func_lo2o object
15656func_lo2o ()
15657{
15658 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15659}
15660
15661# func_xform libobj-or-source
15662func_xform ()
15663{
15664 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15665}
15666
15667# func_arith arithmetic-term...
15668func_arith ()
15669{
15670 func_arith_result=`expr "$@"`
15671}
15672
15673# func_len string
15674# STRING may not start with a hyphen.
15675func_len ()
15676{
15677 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15678}
15679
15680_LT_EOF
15681esac
15682
15683case $lt_shell_append in
15684 yes)
15685 cat << \_LT_EOF >> "$cfgfile"
15686
15687# func_append var value
15688# Append VALUE to the end of shell variable VAR.
15689func_append ()
15690{
15691 eval "$1+=\$2"
15692}
15693_LT_EOF
15694 ;;
15695 *)
15696 cat << \_LT_EOF >> "$cfgfile"
15697
15698# func_append var value
15699# Append VALUE to the end of shell variable VAR.
15700func_append ()
15701{
15702 eval "$1=\$$1\$2"
15703}
15704
15705_LT_EOF
15706 ;;
15707 esac
15708
15709
15710 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15711 || (rm -f "$cfgfile"; exit 1)
15712
15713 mv -f "$cfgfile" "$ofile" ||
15714 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15715 chmod +x "$ofile"
15716
15717 ;;
76850556
RO
15718 "gstdint.h":C)
15719if test "$GCC" = yes; then
15720 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
15721else
15722 echo "/* generated for $CC */" > tmp-stdint.h
15723fi
15724
15725sed 's/^ *//' >> tmp-stdint.h <<EOF
15726
15727 #ifndef GCC_GENERATED_STDINT_H
15728 #define GCC_GENERATED_STDINT_H 1
15729
15730 #include <sys/types.h>
15731EOF
15732
15733if test "$acx_cv_header_stdint" != stdint.h; then
15734 echo "#include <stddef.h>" >> tmp-stdint.h
15735fi
15736if test "$acx_cv_header_stdint" != stddef.h; then
15737 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
15738fi
15739
15740sed 's/^ *//' >> tmp-stdint.h <<EOF
15741 /* glibc uses these symbols as guards to prevent redefinitions. */
15742 #ifdef __int8_t_defined
15743 #define _INT8_T
15744 #define _INT16_T
15745 #define _INT32_T
15746 #endif
15747 #ifdef __uint32_t_defined
15748 #define _UINT32_T
15749 #endif
15750
15751EOF
15752
15753# ----------------- done header, emit basic int types -------------
15754if test "$acx_cv_header_stdint" = stddef.h; then
15755 sed 's/^ *//' >> tmp-stdint.h <<EOF
15756
15757 #ifndef _UINT8_T
15758 #define _UINT8_T
15759 #ifndef __uint8_t_defined
15760 #define __uint8_t_defined
15761 #ifndef uint8_t
15762 typedef unsigned $acx_cv_type_int8_t uint8_t;
15763 #endif
15764 #endif
15765 #endif
15766
15767 #ifndef _UINT16_T
15768 #define _UINT16_T
15769 #ifndef __uint16_t_defined
15770 #define __uint16_t_defined
15771 #ifndef uint16_t
15772 typedef unsigned $acx_cv_type_int16_t uint16_t;
15773 #endif
15774 #endif
15775 #endif
15776
15777 #ifndef _UINT32_T
15778 #define _UINT32_T
15779 #ifndef __uint32_t_defined
15780 #define __uint32_t_defined
15781 #ifndef uint32_t
15782 typedef unsigned $acx_cv_type_int32_t uint32_t;
15783 #endif
15784 #endif
15785 #endif
15786
15787 #ifndef _INT8_T
15788 #define _INT8_T
15789 #ifndef __int8_t_defined
15790 #define __int8_t_defined
15791 #ifndef int8_t
15792 typedef $acx_cv_type_int8_t int8_t;
15793 #endif
15794 #endif
15795 #endif
15796
15797 #ifndef _INT16_T
15798 #define _INT16_T
15799 #ifndef __int16_t_defined
15800 #define __int16_t_defined
15801 #ifndef int16_t
15802 typedef $acx_cv_type_int16_t int16_t;
15803 #endif
15804 #endif
15805 #endif
15806
15807 #ifndef _INT32_T
15808 #define _INT32_T
15809 #ifndef __int32_t_defined
15810 #define __int32_t_defined
15811 #ifndef int32_t
15812 typedef $acx_cv_type_int32_t int32_t;
15813 #endif
15814 #endif
15815 #endif
15816EOF
15817elif test "$ac_cv_type_u_int32_t" = yes; then
15818 sed 's/^ *//' >> tmp-stdint.h <<EOF
15819
15820 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
15821 #ifndef _INT8_T
15822 #define _INT8_T
15823 #endif
15824 #ifndef _INT16_T
15825 #define _INT16_T
15826 #endif
15827 #ifndef _INT32_T
15828 #define _INT32_T
15829 #endif
15830
15831 #ifndef _UINT8_T
15832 #define _UINT8_T
15833 #ifndef __uint8_t_defined
15834 #define __uint8_t_defined
15835 #ifndef uint8_t
15836 typedef u_int8_t uint8_t;
15837 #endif
15838 #endif
15839 #endif
15840
15841 #ifndef _UINT16_T
15842 #define _UINT16_T
15843 #ifndef __uint16_t_defined
15844 #define __uint16_t_defined
15845 #ifndef uint16_t
15846 typedef u_int16_t uint16_t;
15847 #endif
15848 #endif
15849 #endif
15850
15851 #ifndef _UINT32_T
15852 #define _UINT32_T
15853 #ifndef __uint32_t_defined
15854 #define __uint32_t_defined
15855 #ifndef uint32_t
15856 typedef u_int32_t uint32_t;
15857 #endif
15858 #endif
15859 #endif
15860EOF
15861else
15862 sed 's/^ *//' >> tmp-stdint.h <<EOF
15863
15864 /* Some systems have guard macros to prevent redefinitions, define them. */
15865 #ifndef _INT8_T
15866 #define _INT8_T
15867 #endif
15868 #ifndef _INT16_T
15869 #define _INT16_T
15870 #endif
15871 #ifndef _INT32_T
15872 #define _INT32_T
15873 #endif
15874 #ifndef _UINT8_T
15875 #define _UINT8_T
15876 #endif
15877 #ifndef _UINT16_T
15878 #define _UINT16_T
15879 #endif
15880 #ifndef _UINT32_T
15881 #define _UINT32_T
15882 #endif
15883EOF
15884fi
15885
15886# ------------- done basic int types, emit int64_t types ------------
15887if test "$ac_cv_type_uint64_t" = yes; then
15888 sed 's/^ *//' >> tmp-stdint.h <<EOF
15889
15890 /* system headers have good uint64_t and int64_t */
15891 #ifndef _INT64_T
15892 #define _INT64_T
15893 #endif
15894 #ifndef _UINT64_T
15895 #define _UINT64_T
15896 #endif
15897EOF
15898elif test "$ac_cv_type_u_int64_t" = yes; then
15899 sed 's/^ *//' >> tmp-stdint.h <<EOF
15900
15901 /* system headers have an u_int64_t (and int64_t) */
15902 #ifndef _INT64_T
15903 #define _INT64_T
15904 #endif
15905 #ifndef _UINT64_T
15906 #define _UINT64_T
15907 #ifndef __uint64_t_defined
15908 #define __uint64_t_defined
15909 #ifndef uint64_t
15910 typedef u_int64_t uint64_t;
15911 #endif
15912 #endif
15913 #endif
15914EOF
15915elif test -n "$acx_cv_type_int64_t"; then
15916 sed 's/^ *//' >> tmp-stdint.h <<EOF
15917
15918 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
15919 #ifndef _INT64_T
15920 #define _INT64_T
15921 #ifndef int64_t
15922 typedef $acx_cv_type_int64_t int64_t;
15923 #endif
15924 #endif
15925 #ifndef _UINT64_T
15926 #define _UINT64_T
15927 #ifndef __uint64_t_defined
15928 #define __uint64_t_defined
15929 #ifndef uint64_t
15930 typedef unsigned $acx_cv_type_int64_t uint64_t;
15931 #endif
15932 #endif
15933 #endif
15934EOF
15935else
15936 sed 's/^ *//' >> tmp-stdint.h <<EOF
15937
15938 /* some common heuristics for int64_t, using compiler-specific tests */
15939 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
15940 #ifndef _INT64_T
15941 #define _INT64_T
15942 #ifndef __int64_t_defined
15943 #ifndef int64_t
15944 typedef long long int64_t;
15945 #endif
15946 #endif
15947 #endif
15948 #ifndef _UINT64_T
15949 #define _UINT64_T
15950 #ifndef uint64_t
15951 typedef unsigned long long uint64_t;
15952 #endif
15953 #endif
15954
15955 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
15956 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
15957 does not implement __extension__. But that compiler doesn't define
15958 __GNUC_MINOR__. */
15959 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
15960 # define __extension__
15961 # endif
15962
15963 # ifndef _INT64_T
15964 # define _INT64_T
15965 # ifndef int64_t
15966 __extension__ typedef long long int64_t;
15967 # endif
15968 # endif
15969 # ifndef _UINT64_T
15970 # define _UINT64_T
15971 # ifndef uint64_t
15972 __extension__ typedef unsigned long long uint64_t;
15973 # endif
15974 # endif
15975
15976 #elif !defined __STRICT_ANSI__
15977 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
15978
15979 # ifndef _INT64_T
15980 # define _INT64_T
15981 # ifndef int64_t
15982 typedef __int64 int64_t;
15983 # endif
15984 # endif
15985 # ifndef _UINT64_T
15986 # define _UINT64_T
15987 # ifndef uint64_t
15988 typedef unsigned __int64 uint64_t;
15989 # endif
15990 # endif
15991 # endif /* compiler */
15992
15993 #endif /* ANSI version */
15994EOF
15995fi
15996
15997# ------------- done int64_t types, emit intptr types ------------
15998if test "$ac_cv_type_uintptr_t" != yes; then
15999 sed 's/^ *//' >> tmp-stdint.h <<EOF
16000
16001 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
16002 #ifndef __uintptr_t_defined
16003 #ifndef uintptr_t
16004 typedef u$acx_cv_type_intptr_t uintptr_t;
16005 #endif
16006 #endif
16007 #ifndef __intptr_t_defined
16008 #ifndef intptr_t
16009 typedef $acx_cv_type_intptr_t intptr_t;
16010 #endif
16011 #endif
16012EOF
16013fi
16014
16015# ------------- done intptr types, emit int_least types ------------
16016if test "$ac_cv_type_int_least32_t" != yes; then
16017 sed 's/^ *//' >> tmp-stdint.h <<EOF
16018
16019 /* Define int_least types */
16020 typedef int8_t int_least8_t;
16021 typedef int16_t int_least16_t;
16022 typedef int32_t int_least32_t;
16023 #ifdef _INT64_T
16024 typedef int64_t int_least64_t;
16025 #endif
16026
16027 typedef uint8_t uint_least8_t;
16028 typedef uint16_t uint_least16_t;
16029 typedef uint32_t uint_least32_t;
16030 #ifdef _UINT64_T
16031 typedef uint64_t uint_least64_t;
16032 #endif
16033EOF
16034fi
16035
16036# ------------- done intptr types, emit int_fast types ------------
16037if test "$ac_cv_type_int_fast32_t" != yes; then
16038 sed 's/^ *//' >> tmp-stdint.h <<EOF
16039
16040 /* Define int_fast types. short is often slow */
16041 typedef int8_t int_fast8_t;
16042 typedef int int_fast16_t;
16043 typedef int32_t int_fast32_t;
16044 #ifdef _INT64_T
16045 typedef int64_t int_fast64_t;
16046 #endif
16047
16048 typedef uint8_t uint_fast8_t;
16049 typedef unsigned int uint_fast16_t;
16050 typedef uint32_t uint_fast32_t;
16051 #ifdef _UINT64_T
16052 typedef uint64_t uint_fast64_t;
16053 #endif
16054EOF
16055fi
16056
16057if test "$ac_cv_type_uintmax_t" != yes; then
16058 sed 's/^ *//' >> tmp-stdint.h <<EOF
16059
16060 /* Define intmax based on what we found */
16061 #ifndef intmax_t
16062 #ifdef _INT64_T
16063 typedef int64_t intmax_t;
16064 #else
16065 typedef long intmax_t;
16066 #endif
16067 #endif
16068 #ifndef uintmax_t
16069 #ifdef _UINT64_T
16070 typedef uint64_t uintmax_t;
16071 #else
16072 typedef unsigned long uintmax_t;
16073 #endif
16074 #endif
16075EOF
16076fi
16077
16078sed 's/^ *//' >> tmp-stdint.h <<EOF
16079
16080 #endif /* GCC_GENERATED_STDINT_H */
16081EOF
16082
16083if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
16084 rm -f tmp-stdint.h
16085else
16086 mv -f tmp-stdint.h gstdint.h
16087fi
16088
16089 ;;
eff02e4f
ILT
16090 "default":C) if test -n "$CONFIG_FILES"; then
16091 if test -n "${with_target_subdir}"; then
16092 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16093 # that multilib installs will end up installed in the correct place.
16094 # The testsuite needs it for multilib-aware ABI baseline files.
16095 # To work around this not being passed down from config-ml.in ->
16096 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16097 # append it here. Only modify Makefiles that have just been created.
16098 #
16099 # Also, get rid of this simulated-VPATH thing that automake does.
16100 cat > vpsed << \_EOF
16101 s!`test -f '$<' || echo '$(srcdir)/'`!!
16102_EOF
16103 for i in $SUBDIRS; do
16104 case $CONFIG_FILES in
16105 *${i}/Makefile*)
16106 #echo "Adding MULTISUBDIR to $i/Makefile"
16107 sed -f vpsed $i/Makefile > tmp
16108 grep '^MULTISUBDIR =' Makefile >> tmp
16109 mv tmp $i/Makefile
16110 ;;
16111 esac
16112 done
16113 rm vpsed
16114 fi
16115 fi
16116 ;;
16117
16118 esac
16119done # for ac_tag
16120
16121
16122as_fn_exit 0
16123_ACEOF
16124ac_clean_files=$ac_clean_files_save
16125
16126test $ac_write_fail = 0 ||
22e05272 16127 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
eff02e4f
ILT
16128
16129
16130# configure is writing to config.log, and then calls config.status.
16131# config.status does its own redirection, appending to config.log.
16132# Unfortunately, on DOS this fails, as config.log is still kept open
16133# by configure, so config.status won't be able to write to it; its
16134# output is simply discarded. So we exec the FD to /dev/null,
16135# effectively closing config.log, so it can be properly (re)opened and
16136# appended to by config.status. When coming back to configure, we
16137# need to make the FD available again.
16138if test "$no_create" != yes; then
16139 ac_cs_success=:
16140 ac_config_status_args=
16141 test "$silent" = yes &&
16142 ac_config_status_args="$ac_config_status_args --quiet"
16143 exec 5>/dev/null
16144 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16145 exec 5>>config.log
16146 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16147 # would make configure fail if this is the last instruction.
22e05272 16148 $ac_cs_success || as_fn_exit 1
eff02e4f
ILT
16149fi
16150if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16152$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16153fi
16154