]> andersk Git - libyaml.git/blame - configure
debian: Release libyaml 0.2.1-1
[libyaml.git] / configure
CommitLineData
b9668ba4
AK
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
c45550e5 3# Generated by GNU Autoconf 2.69 for yaml 0.2.1.
b9668ba4 4#
c45550e5 5# Report bugs to <https://github.com/yaml/libyaml/issues/new>.
b9668ba4 6#
0fbeb4dc 7#
0044e680 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
0fbeb4dc
AK
9#
10#
b9668ba4
AK
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
0fbeb4dc
AK
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
b9668ba4
AK
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
0fbeb4dc 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b9668ba4
AK
20 emulate sh
21 NULLCMD=:
47dc80f6 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b9668ba4
AK
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
0fbeb4dc
AK
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
b9668ba4 32esac
b9668ba4
AK
33fi
34
35
47dc80f6
AK
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
0fbeb4dc
AK
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47dc80f6
AK
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
b9668ba4 56 else
47dc80f6
AK
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
0fbeb4dc 60 case $arg in #(
47dc80f6
AK
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
b9668ba4 69 fi
47dc80f6
AK
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
b9668ba4
AK
81fi
82
b9668ba4
AK
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
b9668ba4
AK
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
059850b5 92as_myself=
0fbeb4dc 93case $0 in #((
b9668ba4
AK
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
0fbeb4dc
AK
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
b9668ba4
AK
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
47dc80f6 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
0fbeb4dc 113 exit 1
b9668ba4
AK
114fi
115
0fbeb4dc
AK
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
b9668ba4
AK
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
47dc80f6
AK
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
b9668ba4 133
b9668ba4 134# CDPATH.
0fbeb4dc 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
b9668ba4 136
0044e680
AK
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
b9668ba4 162if test "x$CONFIG_SHELL" = x; then
0fbeb4dc
AK
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
b9668ba4 170else
0fbeb4dc
AK
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
b9668ba4 177fi
0fbeb4dc
AK
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
b9668ba4
AK
184
185exitcode=0
0fbeb4dc
AK
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
0044e680
AK
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
0fbeb4dc
AK
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
059850b5
AK
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
0fbeb4dc
AK
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
b9668ba4 212else
0fbeb4dc 213 as_have_required=no
b9668ba4 214fi
0fbeb4dc 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
b9668ba4 216
b9668ba4 217else
0fbeb4dc
AK
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
b9668ba4
AK
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
0fbeb4dc
AK
224 as_found=:
225 case $as_dir in #(
b9668ba4
AK
226 /*)
227 for as_base in sh bash ksh sh5; do
0fbeb4dc
AK
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
b9668ba4
AK
237 done;;
238 esac
0fbeb4dc 239 as_found=false
b9668ba4 240done
0fbeb4dc
AK
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
b9668ba4
AK
245IFS=$as_save_IFS
246
247
0fbeb4dc 248 if test "x$CONFIG_SHELL" != x; then :
0044e680
AK
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
b9668ba4
AK
268fi
269
0fbeb4dc
AK
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
c45550e5 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and https://github.com/yaml/libyaml/issues/new about
0fbeb4dc
AK
278$0: your system, including any error possibly output before
279$0: this message. Then install a modern shell, or manually
280$0: run the script under such a shell if you do have one."
281 fi
282 exit 1
b9668ba4 283fi
b9668ba4 284fi
b9668ba4 285fi
0fbeb4dc
AK
286SHELL=${CONFIG_SHELL-/bin/sh}
287export SHELL
288# Unset more variables known to interfere with behavior of common tools.
289CLICOLOR_FORCE= GREP_OPTIONS=
290unset CLICOLOR_FORCE GREP_OPTIONS
b9668ba4 291
0fbeb4dc
AK
292## --------------------- ##
293## M4sh Shell Functions. ##
294## --------------------- ##
295# as_fn_unset VAR
296# ---------------
297# Portably unset VAR.
298as_fn_unset ()
299{
300 { eval $1=; unset $1;}
301}
302as_unset=as_fn_unset
b9668ba4 303
0fbeb4dc
AK
304# as_fn_set_status STATUS
305# -----------------------
306# Set $? to STATUS, without forking.
307as_fn_set_status ()
308{
309 return $1
310} # as_fn_set_status
b9668ba4 311
0fbeb4dc
AK
312# as_fn_exit STATUS
313# -----------------
314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315as_fn_exit ()
316{
317 set +e
318 as_fn_set_status $1
319 exit $1
320} # as_fn_exit
321
322# as_fn_mkdir_p
323# -------------
324# Create "$as_dir" as a directory, including parents if necessary.
325as_fn_mkdir_p ()
326{
b9668ba4 327
0fbeb4dc
AK
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344$as_echo X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368} # as_fn_mkdir_p
0044e680
AK
369
370# as_fn_executable_p FILE
371# -----------------------
372# Test if FILE is an executable regular file.
373as_fn_executable_p ()
374{
375 test -f "$1" && test -x "$1"
376} # as_fn_executable_p
0fbeb4dc
AK
377# as_fn_append VAR VALUE
378# ----------------------
379# Append the text in VALUE to the end of the definition contained in VAR. Take
380# advantage of any shell optimizations that allow amortized linear growth over
381# repeated appends, instead of the typical quadratic growth present in naive
382# implementations.
383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
b9668ba4 388else
0fbeb4dc
AK
389 as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 }
393fi # as_fn_append
394
395# as_fn_arith ARG...
396# ------------------
397# Perform arithmetic evaluation on the ARGs, and store the result in the
398# global $as_val. Take advantage of shells that can avoid forks. The arguments
399# must be portable across $(()) and expr.
400if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 eval 'as_fn_arith ()
402 {
403 as_val=$(( $* ))
404 }'
405else
406 as_fn_arith ()
407 {
408 as_val=`expr "$@" || test $? -eq 1`
409 }
410fi # as_fn_arith
b9668ba4 411
b9668ba4 412
0fbeb4dc
AK
413# as_fn_error STATUS ERROR [LINENO LOG_FD]
414# ----------------------------------------
415# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417# script with STATUS, using 1 if that was 0.
418as_fn_error ()
419{
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424 fi
425 $as_echo "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427} # as_fn_error
428
429if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
b9668ba4 432else
0fbeb4dc 433 as_expr=false
b9668ba4
AK
434fi
435
0fbeb4dc
AK
436if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438else
439 as_basename=false
b9668ba4
AK
440fi
441
0fbeb4dc
AK
442if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
b9668ba4 444else
0fbeb4dc 445 as_dirname=false
b9668ba4
AK
446fi
447
0fbeb4dc
AK
448as_me=`$as_basename -- "$0" ||
449$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452$as_echo X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
b9668ba4 466
0fbeb4dc
AK
467# Avoid depending upon Character Ranges.
468as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471as_cr_digits='0123456789'
472as_cr_alnum=$as_cr_Letters$as_cr_digits
b9668ba4 473
b9668ba4 474
0fbeb4dc
AK
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
b9668ba4
AK
480 sed -n '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 s/[$]LINENO.*/&-/
486 t lineno
487 b
488 :lineno
489 N
490 :loop
491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492 t loop
493 s/-\n.*//
494 ' >$as_me.lineno &&
495 chmod +x "$as_me.lineno" ||
0fbeb4dc 496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b9668ba4 497
0044e680
AK
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
b9668ba4
AK
502 # Don't try to exec as it changes $[0], causing all sort of problems
503 # (the dirname of $[0] is not the place where we might find the
504 # original and so on. Autoconf is especially sensitive to this).
505 . "./$as_me.lineno"
506 # Exit status is that of the last command.
507 exit
508}
509
b9668ba4 510ECHO_C= ECHO_N= ECHO_T=
0fbeb4dc 511case `echo -n x` in #(((((
b9668ba4 512-n*)
0fbeb4dc 513 case `echo 'xy\c'` in
b9668ba4 514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
0fbeb4dc
AK
515 xy) ECHO_C='\c';;
516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
517 ECHO_T=' ';;
b9668ba4
AK
518 esac;;
519*)
520 ECHO_N='-n';;
521esac
b9668ba4
AK
522
523rm -f conf$$ conf$$.exe conf$$.file
524if test -d conf$$.dir; then
525 rm -f conf$$.dir/conf$$.file
526else
527 rm -f conf$$.dir
47dc80f6
AK
528 mkdir conf$$.dir 2>/dev/null
529fi
530if (echo >conf$$.file) 2>/dev/null; then
531 if ln -s conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s='ln -s'
533 # ... but there are two gotchas:
534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
0044e680 536 # In both cases, we have to default to `cp -pR'.
47dc80f6 537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
0044e680 538 as_ln_s='cp -pR'
47dc80f6
AK
539 elif ln conf$$.file conf$$ 2>/dev/null; then
540 as_ln_s=ln
541 else
0044e680 542 as_ln_s='cp -pR'
47dc80f6 543 fi
b9668ba4 544else
0044e680 545 as_ln_s='cp -pR'
b9668ba4
AK
546fi
547rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548rmdir conf$$.dir 2>/dev/null
549
550if mkdir -p . 2>/dev/null; then
0fbeb4dc 551 as_mkdir_p='mkdir -p "$as_dir"'
b9668ba4
AK
552else
553 test -d ./-p && rmdir ./-p
554 as_mkdir_p=false
555fi
556
0044e680
AK
557as_test_x='test -x'
558as_executable_p=as_fn_executable_p
b9668ba4
AK
559
560# Sed expression to map a string onto a valid CPP name.
561as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
562
563# Sed expression to map a string onto a valid variable name.
564as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
565
b9668ba4
AK
566SHELL=${CONFIG_SHELL-/bin/sh}
567
b9668ba4 568
0fbeb4dc
AK
569test -n "$DJDIR" || exec 7<&0 </dev/null
570exec 6>&1
b9668ba4
AK
571
572# Name of the host.
0fbeb4dc 573# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b9668ba4
AK
574# so uname gets run too.
575ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576
577#
578# Initializations.
579#
580ac_default_prefix=/usr/local
581ac_clean_files=
582ac_config_libobj_dir=.
583LIBOBJS=
584cross_compiling=no
585subdirs=
586MFLAGS=
587MAKEFLAGS=
b9668ba4
AK
588
589# Identity of this package.
590PACKAGE_NAME='yaml'
591PACKAGE_TARNAME='yaml'
c45550e5
AK
592PACKAGE_VERSION='0.2.1'
593PACKAGE_STRING='yaml 0.2.1'
594PACKAGE_BUGREPORT='https://github.com/yaml/libyaml/issues/new'
0fbeb4dc 595PACKAGE_URL=''
b9668ba4
AK
596
597# Factoring default headers for most tests.
598ac_includes_default="\
599#include <stdio.h>
600#ifdef HAVE_SYS_TYPES_H
601# include <sys/types.h>
602#endif
603#ifdef HAVE_SYS_STAT_H
604# include <sys/stat.h>
605#endif
606#ifdef STDC_HEADERS
607# include <stdlib.h>
608# include <stddef.h>
609#else
610# ifdef HAVE_STDLIB_H
611# include <stdlib.h>
612# endif
613#endif
614#ifdef HAVE_STRING_H
615# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616# include <memory.h>
617# endif
618# include <string.h>
619#endif
620#ifdef HAVE_STRINGS_H
621# include <strings.h>
622#endif
623#ifdef HAVE_INTTYPES_H
624# include <inttypes.h>
625#endif
626#ifdef HAVE_STDINT_H
627# include <stdint.h>
628#endif
629#ifdef HAVE_UNISTD_H
630# include <unistd.h>
631#endif"
632
0fbeb4dc
AK
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
b9668ba4 636LIBOBJS
47dc80f6
AK
637DOXYGEN_FALSE
638DOXYGEN_TRUE
639DOXYGEN
c45550e5 640LT_SYS_LIBRARY_PATH
47dc80f6
AK
641OTOOL64
642OTOOL
643LIPO
644NMEDIT
645DSYMUTIL
059850b5 646MANIFEST_TOOL
47dc80f6 647RANLIB
059850b5 648ac_ct_AR
47dc80f6 649AR
059850b5 650DLLTOOL
47dc80f6
AK
651OBJDUMP
652NM
653ac_ct_DUMPBIN
654DUMPBIN
655LD
656FGREP
657EGREP
658GREP
659SED
660host_os
661host_vendor
662host_cpu
663host
664build_os
665build_vendor
666build_cpu
667build
668LIBTOOL
669LN_S
670CPP
671am__fastdepCC_FALSE
672am__fastdepCC_TRUE
673CCDEPMODE
059850b5 674am__nodep
47dc80f6
AK
675AMDEPBACKSLASH
676AMDEP_FALSE
677AMDEP_TRUE
678am__quote
679am__include
680DEPDIR
681OBJEXT
682EXEEXT
683ac_ct_CC
684CPPFLAGS
685LDFLAGS
686CFLAGS
687CC
688YAML_LT_AGE
689YAML_LT_REVISION
690YAML_LT_CURRENT
691YAML_LT_RELEASE
0044e680
AK
692AM_BACKSLASH
693AM_DEFAULT_VERBOSITY
694AM_DEFAULT_V
695AM_V
47dc80f6
AK
696am__untar
697am__tar
698AMTAR
699am__leading_dot
700SET_MAKE
701AWK
702mkdir_p
703MKDIR_P
704INSTALL_STRIP_PROGRAM
705STRIP
706install_sh
707MAKEINFO
708AUTOHEADER
709AUTOMAKE
710AUTOCONF
711ACLOCAL
712VERSION
713PACKAGE
714CYGPATH_W
715am__isrc
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719target_alias
720host_alias
721build_alias
722LIBS
723ECHO_T
724ECHO_N
725ECHO_C
726DEFS
727mandir
728localedir
729libdir
730psdir
731pdfdir
732dvidir
733htmldir
734infodir
735docdir
736oldincludedir
737includedir
738localstatedir
739sharedstatedir
740sysconfdir
741datadir
742datarootdir
743libexecdir
744sbindir
745bindir
746program_transform_name
747prefix
748exec_prefix
0fbeb4dc 749PACKAGE_URL
47dc80f6
AK
750PACKAGE_BUGREPORT
751PACKAGE_STRING
752PACKAGE_VERSION
753PACKAGE_TARNAME
754PACKAGE_NAME
755PATH_SEPARATOR
756SHELL'
b9668ba4 757ac_subst_files=''
47dc80f6
AK
758ac_user_opts='
759enable_option_checking
0044e680 760enable_silent_rules
47dc80f6
AK
761enable_dependency_tracking
762enable_shared
763enable_static
764with_pic
765enable_fast_install
c45550e5 766with_aix_soname
47dc80f6 767with_gnu_ld
059850b5 768with_sysroot
47dc80f6
AK
769enable_libtool_lock
770'
b9668ba4
AK
771 ac_precious_vars='build_alias
772host_alias
773target_alias
774CC
775CFLAGS
776LDFLAGS
777LIBS
778CPPFLAGS
c45550e5
AK
779CPP
780LT_SYS_LIBRARY_PATH'
b9668ba4
AK
781
782
783# Initialize some variables set by options.
784ac_init_help=
785ac_init_version=false
47dc80f6
AK
786ac_unrecognized_opts=
787ac_unrecognized_sep=
b9668ba4
AK
788# The variables have the same names as the options, with
789# dashes changed to underlines.
790cache_file=/dev/null
791exec_prefix=NONE
792no_create=
793no_recursion=
794prefix=NONE
795program_prefix=NONE
796program_suffix=NONE
797program_transform_name=s,x,x,
798silent=
799site=
800srcdir=
801verbose=
802x_includes=NONE
803x_libraries=NONE
804
805# Installation directory options.
806# These are left unexpanded so users can "make install exec_prefix=/foo"
807# and all the variables that are supposed to be based on exec_prefix
808# by default will actually change.
809# Use braces instead of parens because sh, perl, etc. also accept them.
810# (The list follows the same order as the GNU Coding Standards.)
811bindir='${exec_prefix}/bin'
812sbindir='${exec_prefix}/sbin'
813libexecdir='${exec_prefix}/libexec'
814datarootdir='${prefix}/share'
815datadir='${datarootdir}'
816sysconfdir='${prefix}/etc'
817sharedstatedir='${prefix}/com'
818localstatedir='${prefix}/var'
819includedir='${prefix}/include'
820oldincludedir='/usr/include'
821docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822infodir='${datarootdir}/info'
823htmldir='${docdir}'
824dvidir='${docdir}'
825pdfdir='${docdir}'
826psdir='${docdir}'
827libdir='${exec_prefix}/lib'
828localedir='${datarootdir}/locale'
829mandir='${datarootdir}/man'
830
831ac_prev=
832ac_dashdash=
833for ac_option
834do
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
838 ac_prev=
839 continue
840 fi
841
842 case $ac_option in
0fbeb4dc
AK
843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *=) ac_optarg= ;;
845 *) ac_optarg=yes ;;
b9668ba4
AK
846 esac
847
848 # Accept the important Cygnus configure options, so we can diagnose typos.
849
850 case $ac_dashdash$ac_option in
851 --)
852 ac_dashdash=yes ;;
853
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 ac_prev=bindir ;;
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857 bindir=$ac_optarg ;;
858
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
863
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
870
871 --config-cache | -C)
872 cache_file=config.cache ;;
873
874 -datadir | --datadir | --datadi | --datad)
875 ac_prev=datadir ;;
876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
877 datadir=$ac_optarg ;;
878
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
885
886 -disable-* | --disable-*)
47dc80f6 887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
b9668ba4 888 # Reject names that are not valid shell variable names.
47dc80f6 889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0fbeb4dc 890 as_fn_error $? "invalid feature name: $ac_useropt"
47dc80f6
AK
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
894 *"
895"enable_$ac_useropt"
896"*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=no ;;
b9668ba4
AK
901
902 -docdir | --docdir | --docdi | --doc | --do)
903 ac_prev=docdir ;;
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 docdir=$ac_optarg ;;
906
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 ac_prev=dvidir ;;
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 dvidir=$ac_optarg ;;
911
912 -enable-* | --enable-*)
47dc80f6 913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
b9668ba4 914 # Reject names that are not valid shell variable names.
47dc80f6 915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0fbeb4dc 916 as_fn_error $? "invalid feature name: $ac_useropt"
47dc80f6
AK
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921"enable_$ac_useropt"
922"*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=\$ac_optarg ;;
b9668ba4
AK
927
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
935 exec_prefix=$ac_optarg ;;
936
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
939 with_gas=yes ;;
940
941 -help | --help | --hel | --he | -h)
942 ac_init_help=long ;;
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
947
948 -host | --host | --hos | --ho)
949 ac_prev=host_alias ;;
950 -host=* | --host=* | --hos=* | --ho=*)
951 host_alias=$ac_optarg ;;
952
953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954 ac_prev=htmldir ;;
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956 | --ht=*)
957 htmldir=$ac_optarg ;;
958
959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
964 includedir=$ac_optarg ;;
965
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
967 ac_prev=infodir ;;
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969 infodir=$ac_optarg ;;
970
971 -libdir | --libdir | --libdi | --libd)
972 ac_prev=libdir ;;
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
974 libdir=$ac_optarg ;;
975
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
981 libexecdir=$ac_optarg ;;
982
983 -localedir | --localedir | --localedi | --localed | --locale)
984 ac_prev=localedir ;;
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
987
988 -localstatedir | --localstatedir | --localstatedi | --localstated \
989 | --localstate | --localstat | --localsta | --localst | --locals)
990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993 localstatedir=$ac_optarg ;;
994
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996 ac_prev=mandir ;;
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998 mandir=$ac_optarg ;;
999
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1002 with_fp=no ;;
1003
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005 | --no-cr | --no-c | -n)
1006 no_create=yes ;;
1007
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 no_recursion=yes ;;
1011
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019 oldincludedir=$ac_optarg ;;
1020
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022 ac_prev=prefix ;;
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024 prefix=$ac_optarg ;;
1025
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031 program_prefix=$ac_optarg ;;
1032
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038 program_suffix=$ac_optarg ;;
1039
1040 -program-transform-name | --program-transform-name \
1041 | --program-transform-nam | --program-transform-na \
1042 | --program-transform-n | --program-transform- \
1043 | --program-transform | --program-transfor \
1044 | --program-transfo | --program-transf \
1045 | --program-trans | --program-tran \
1046 | --progr-tra | --program-tr | --program-t)
1047 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
1055 program_transform_name=$ac_optarg ;;
1056
1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058 ac_prev=pdfdir ;;
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1061
1062 -psdir | --psdir | --psdi | --psd | --ps)
1063 ac_prev=psdir ;;
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 psdir=$ac_optarg ;;
1066
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 silent=yes ;;
1070
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072 ac_prev=sbindir ;;
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074 | --sbi=* | --sb=*)
1075 sbindir=$ac_optarg ;;
1076
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1080 | --sha | --sh)
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085 | --sha=* | --sh=*)
1086 sharedstatedir=$ac_optarg ;;
1087
1088 -site | --site | --sit)
1089 ac_prev=site ;;
1090 -site=* | --site=* | --sit=*)
1091 site=$ac_optarg ;;
1092
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094 ac_prev=srcdir ;;
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1097
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1104
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1109
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 verbose=yes ;;
1112
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1115
1116 -with-* | --with-*)
47dc80f6 1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
b9668ba4 1118 # Reject names that are not valid shell variable names.
47dc80f6 1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0fbeb4dc 1120 as_fn_error $? "invalid package name: $ac_useropt"
47dc80f6
AK
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1124 *"
1125"with_$ac_useropt"
1126"*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=\$ac_optarg ;;
b9668ba4
AK
1131
1132 -without-* | --without-*)
47dc80f6 1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
b9668ba4 1134 # Reject names that are not valid shell variable names.
47dc80f6 1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0fbeb4dc 1136 as_fn_error $? "invalid package name: $ac_useropt"
47dc80f6
AK
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141"with_$ac_useropt"
1142"*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=no ;;
b9668ba4
AK
1147
1148 --x)
1149 # Obsolete; use --with-x.
1150 with_x=yes ;;
1151
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1158
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1165
0fbeb4dc
AK
1166 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167Try \`$0 --help' for more information"
b9668ba4
AK
1168 ;;
1169
1170 *=*)
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
0fbeb4dc
AK
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176 esac
b9668ba4
AK
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1179
1180 *)
1181 # FIXME: should be removed in autoconf 3.0.
47dc80f6 1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b9668ba4 1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
47dc80f6 1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
059850b5 1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
b9668ba4
AK
1186 ;;
1187
1188 esac
1189done
1190
1191if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
0fbeb4dc 1193 as_fn_error $? "missing argument to $ac_option"
b9668ba4
AK
1194fi
1195
47dc80f6
AK
1196if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1198 no) ;;
0fbeb4dc 1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
47dc80f6
AK
1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 esac
1202fi
1203
1204# Check all directory arguments for consistency.
b9668ba4
AK
1205for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1209do
1210 eval ac_val=\$$ac_var
47dc80f6
AK
1211 # Remove trailing slashes.
1212 case $ac_val in
1213 */ )
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1216 esac
1217 # Be sure to have absolute directory names.
b9668ba4
AK
1218 case $ac_val in
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 esac
0fbeb4dc 1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
b9668ba4
AK
1223done
1224
1225# There might be people who depend on the old broken behavior: `$host'
1226# used to hold the argument of --host etc.
1227# FIXME: To remove some day.
1228build=$build_alias
1229host=$host_alias
1230target=$target_alias
1231
1232# FIXME: To remove some day.
1233if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
b9668ba4
AK
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239fi
1240
1241ac_tool_prefix=
1242test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244test "$silent" = yes && exec 6>/dev/null
1245
1246
1247ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248ac_ls_di=`ls -di .` &&
1249ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
0fbeb4dc 1250 as_fn_error $? "working directory cannot be determined"
b9668ba4 1251test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
0fbeb4dc 1252 as_fn_error $? "pwd does not report name of working directory"
b9668ba4
AK
1253
1254
1255# Find the source files, if location was not specified.
1256if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
47dc80f6
AK
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264$as_echo X"$as_myself" |
b9668ba4
AK
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1285 fi
1286else
1287 ac_srcdir_defaulted=no
1288fi
1289if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
0fbeb4dc 1291 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
b9668ba4
AK
1292fi
1293ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294ac_abs_confdir=`(
0fbeb4dc 1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
b9668ba4
AK
1296 pwd)`
1297# When building in place, set srcdir=.
1298if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300fi
1301# Remove unnecessary trailing slashes from srcdir.
1302# Double slashes in file names in object file debugging info
1303# mess up M-x gdb in Emacs.
1304case $srcdir in
1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306esac
1307for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312done
1313
1314#
1315# Report the --help message.
1316#
1317if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
c45550e5 1321\`configure' configures yaml 0.2.1 to adapt to many kinds of systems.
b9668ba4
AK
1322
1323Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328Defaults for the options are specified in brackets.
1329
1330Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
0fbeb4dc 1335 -q, --quiet, --silent do not print \`checking ...' messages
b9668ba4
AK
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
1341Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
47dc80f6 1343 [$ac_default_prefix]
b9668ba4 1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
47dc80f6 1345 [PREFIX]
b9668ba4
AK
1346
1347By default, \`make install' will install all the files in
1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350for instance \`--prefix=\$HOME'.
1351
1352For better control, use the options below.
1353
1354Fine tuning of the installation directories:
47dc80f6
AK
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/yaml]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
b9668ba4
AK
1374_ACEOF
1375
1376 cat <<\_ACEOF
1377
1378Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1382
1383System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386_ACEOF
1387fi
1388
1389if test -n "$ac_init_help"; then
1390 case $ac_init_help in
c45550e5 1391 short | recursive ) echo "Configuration of yaml 0.2.1:";;
b9668ba4
AK
1392 esac
1393 cat <<\_ACEOF
1394
1395Optional Features:
47dc80f6 1396 --disable-option-checking ignore unrecognized --enable/--with options
b9668ba4
AK
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
0044e680
AK
1399 --enable-silent-rules less verbose build output (undo: "make V=1")
1400 --disable-silent-rules verbose build output (undo: "make V=0")
1401 --enable-dependency-tracking
1402 do not reject slow dependency extractors
1403 --disable-dependency-tracking
1404 speeds up one-time build
b9668ba4
AK
1405 --enable-shared[=PKGS] build shared libraries [default=yes]
1406 --enable-static[=PKGS] build static libraries [default=yes]
1407 --enable-fast-install[=PKGS]
1408 optimize for fast installation [default=yes]
1409 --disable-libtool-lock avoid locking (might break parallel builds)
1410
1411Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
059850b5 1414 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
b9668ba4 1415 both]
c45550e5
AK
1416 --with-aix-soname=aix|svr4|both
1417 shared library versioning (aka "SONAME") variant to
1418 provide on AIX, [default=aix].
5c706339 1419 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
c45550e5
AK
1420 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1421 compiler's sysroot if not specified).
b9668ba4
AK
1422
1423Some influential environment variables:
1424 CC C compiler command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1427 nonstandard directory <lib dir>
1428 LIBS libraries to pass to the linker, e.g. -l<library>
0fbeb4dc 1429 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
b9668ba4
AK
1430 you have headers in a nonstandard directory <include dir>
1431 CPP C preprocessor
c45550e5
AK
1432 LT_SYS_LIBRARY_PATH
1433 User-defined run-time library search path.
b9668ba4
AK
1434
1435Use these variables to override the choices made by `configure' or to help
1436it to find libraries and programs with nonstandard names/locations.
1437
c45550e5 1438Report bugs to <https://github.com/yaml/libyaml/issues/new>.
0fbeb4dc
AK
1439_ACEOF
1440ac_status=$?
1441fi
1442
1443if test "$ac_init_help" = "recursive"; then
1444 # If there are subdirs, report their specific --help.
1445 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446 test -d "$ac_dir" ||
1447 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448 continue
1449 ac_builddir=.
1450
1451case "$ac_dir" in
1452.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453*)
1454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455 # A ".." for each directory in $ac_dir_suffix.
1456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457 case $ac_top_builddir_sub in
1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460 esac ;;
1461esac
1462ac_abs_top_builddir=$ac_pwd
1463ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464# for backward compatibility:
1465ac_top_builddir=$ac_top_build_prefix
1466
1467case $srcdir in
1468 .) # We are building in place.
1469 ac_srcdir=.
1470 ac_top_srcdir=$ac_top_builddir_sub
1471 ac_abs_top_srcdir=$ac_pwd ;;
1472 [\\/]* | ?:[\\/]* ) # Absolute name.
1473 ac_srcdir=$srcdir$ac_dir_suffix;
1474 ac_top_srcdir=$srcdir
1475 ac_abs_top_srcdir=$srcdir ;;
1476 *) # Relative name.
1477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478 ac_top_srcdir=$ac_top_build_prefix$srcdir
1479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480esac
1481ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482
1483 cd "$ac_dir" || { ac_status=$?; continue; }
1484 # Check for guested configure.
1485 if test -f "$ac_srcdir/configure.gnu"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488 elif test -f "$ac_srcdir/configure"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure" --help=recursive
1491 else
1492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493 fi || ac_status=$?
1494 cd "$ac_pwd" || { ac_status=$?; break; }
1495 done
1496fi
1497
1498test -n "$ac_init_help" && exit $ac_status
1499if $ac_init_version; then
1500 cat <<\_ACEOF
c45550e5 1501yaml configure 0.2.1
0044e680 1502generated by GNU Autoconf 2.69
0fbeb4dc 1503
0044e680 1504Copyright (C) 2012 Free Software Foundation, Inc.
0fbeb4dc
AK
1505This configure script is free software; the Free Software Foundation
1506gives unlimited permission to copy, distribute and modify it.
1507_ACEOF
1508 exit
1509fi
1510
1511## ------------------------ ##
1512## Autoconf initialization. ##
1513## ------------------------ ##
1514
1515# ac_fn_c_try_compile LINENO
1516# --------------------------
1517# Try to compile conftest.$ac_ext, and return whether this succeeded.
1518ac_fn_c_try_compile ()
1519{
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext
1522 if { { ac_try="$ac_compile"
1523case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526esac
1527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528$as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_compile") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1535 fi
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest.$ac_objext; then :
1541 ac_retval=0
1542else
1543 $as_echo "$as_me: failed program was:" >&5
1544sed 's/^/| /' conftest.$ac_ext >&5
1545
1546 ac_retval=1
1547fi
059850b5 1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0fbeb4dc
AK
1549 as_fn_set_status $ac_retval
1550
1551} # ac_fn_c_try_compile
1552
1553# ac_fn_c_try_cpp LINENO
1554# ----------------------
1555# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1556ac_fn_c_try_cpp ()
1557{
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 if { { ac_try="$ac_cpp conftest.$ac_ext"
1560case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563esac
1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565$as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } > conftest.i && {
1575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 }; then :
1578 ac_retval=0
1579else
1580 $as_echo "$as_me: failed program was:" >&5
1581sed 's/^/| /' conftest.$ac_ext >&5
1582
1583 ac_retval=1
1584fi
059850b5 1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0fbeb4dc
AK
1586 as_fn_set_status $ac_retval
1587
1588} # ac_fn_c_try_cpp
1589
1590# ac_fn_c_try_link LINENO
1591# -----------------------
1592# Try to link conftest.$ac_ext, and return whether this succeeded.
1593ac_fn_c_try_link ()
1594{
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext conftest$ac_exeext
1597 if { { ac_try="$ac_link"
1598case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601esac
1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603$as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_link") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest$ac_exeext && {
1616 test "$cross_compiling" = yes ||
0044e680 1617 test -x conftest$ac_exeext
0fbeb4dc
AK
1618 }; then :
1619 ac_retval=0
1620else
1621 $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625fi
1626 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1627 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1628 # interfere with the next link command; also delete a directory that is
1629 # left behind by Apple's compiler. We do this before executing the actions.
1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
059850b5 1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0fbeb4dc
AK
1632 as_fn_set_status $ac_retval
1633
1634} # ac_fn_c_try_link
1635
1636# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1637# -------------------------------------------------------
1638# Tests whether HEADER exists and can be compiled using the include files in
1639# INCLUDES, setting the cache variable VAR accordingly.
1640ac_fn_c_check_header_compile ()
1641{
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644$as_echo_n "checking for $2... " >&6; }
059850b5 1645if eval \${$3+:} false; then :
0fbeb4dc
AK
1646 $as_echo_n "(cached) " >&6
1647else
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649/* end confdefs.h. */
1650$4
1651#include <$2>
1652_ACEOF
1653if ac_fn_c_try_compile "$LINENO"; then :
1654 eval "$3=yes"
1655else
1656 eval "$3=no"
1657fi
1658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659fi
1660eval ac_res=\$$3
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662$as_echo "$ac_res" >&6; }
059850b5 1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0fbeb4dc
AK
1664
1665} # ac_fn_c_check_header_compile
1666
1667# ac_fn_c_try_run LINENO
1668# ----------------------
1669# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1670# that executables *can* be run.
1671ac_fn_c_try_run ()
1672{
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 if { { ac_try="$ac_link"
1675case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678esac
1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680$as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>&5
1682 ac_status=$?
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1685 { { case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690$as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_try") 2>&5
1692 ac_status=$?
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; }; }; then :
1695 ac_retval=0
1696else
1697 $as_echo "$as_me: program exited with status $ac_status" >&5
1698 $as_echo "$as_me: failed program was:" >&5
1699sed 's/^/| /' conftest.$ac_ext >&5
1700
1701 ac_retval=$ac_status
1702fi
1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
059850b5 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0fbeb4dc
AK
1705 as_fn_set_status $ac_retval
1706
1707} # ac_fn_c_try_run
1708
1709# ac_fn_c_check_func LINENO FUNC VAR
1710# ----------------------------------
1711# Tests whether FUNC exists, setting the cache variable VAR accordingly
1712ac_fn_c_check_func ()
1713{
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716$as_echo_n "checking for $2... " >&6; }
059850b5 1717if eval \${$3+:} false; then :
0fbeb4dc
AK
1718 $as_echo_n "(cached) " >&6
1719else
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721/* end confdefs.h. */
1722/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1724#define $2 innocuous_$2
1725
1726/* System header to define __stub macros and hopefully few prototypes,
1727 which can conflict with char $2 (); below.
1728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1729 <limits.h> exists even on freestanding compilers. */
1730
1731#ifdef __STDC__
1732# include <limits.h>
1733#else
1734# include <assert.h>
1735#endif
1736
1737#undef $2
1738
1739/* Override any GCC internal prototype to avoid an error.
1740 Use char because int might match the return type of a GCC
1741 builtin and then its argument prototype would still apply. */
1742#ifdef __cplusplus
1743extern "C"
1744#endif
1745char $2 ();
1746/* The GNU C library defines this for functions which it implements
1747 to always fail with ENOSYS. Some functions are actually named
1748 something starting with __ and the normal name is an alias. */
1749#if defined __stub_$2 || defined __stub___$2
1750choke me
1751#endif
1752
1753int
1754main ()
1755{
1756return $2 ();
1757 ;
1758 return 0;
1759}
1760_ACEOF
1761if ac_fn_c_try_link "$LINENO"; then :
1762 eval "$3=yes"
1763else
1764 eval "$3=no"
1765fi
1766rm -f core conftest.err conftest.$ac_objext \
1767 conftest$ac_exeext conftest.$ac_ext
1768fi
1769eval ac_res=\$$3
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771$as_echo "$ac_res" >&6; }
059850b5 1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0fbeb4dc
AK
1773
1774} # ac_fn_c_check_func
1775
1776# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1777# -------------------------------------------------------
1778# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1779# the include files in INCLUDES and setting the cache variable VAR
1780# accordingly.
1781ac_fn_c_check_header_mongrel ()
1782{
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
059850b5 1784 if eval \${$3+:} false; then :
0fbeb4dc
AK
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786$as_echo_n "checking for $2... " >&6; }
059850b5 1787if eval \${$3+:} false; then :
0fbeb4dc
AK
1788 $as_echo_n "(cached) " >&6
1789fi
1790eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792$as_echo "$ac_res" >&6; }
1793else
1794 # Is the header compilable?
1795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1796$as_echo_n "checking $2 usability... " >&6; }
1797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h. */
1799$4
1800#include <$2>
1801_ACEOF
1802if ac_fn_c_try_compile "$LINENO"; then :
1803 ac_header_compiler=yes
1804else
1805 ac_header_compiler=no
1806fi
1807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1809$as_echo "$ac_header_compiler" >&6; }
1810
1811# Is the header present?
1812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1813$as_echo_n "checking $2 presence... " >&6; }
1814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815/* end confdefs.h. */
1816#include <$2>
b9668ba4 1817_ACEOF
0fbeb4dc
AK
1818if ac_fn_c_try_cpp "$LINENO"; then :
1819 ac_header_preproc=yes
1820else
1821 ac_header_preproc=no
b9668ba4 1822fi
0fbeb4dc
AK
1823rm -f conftest.err conftest.i conftest.$ac_ext
1824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1825$as_echo "$ac_header_preproc" >&6; }
b9668ba4 1826
0fbeb4dc
AK
1827# So? What about this header?
1828case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1829 yes:no: )
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1831$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1834 ;;
1835 no:yes:* )
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1837$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1839$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1841$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1843$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
c45550e5
AK
1846( $as_echo "## --------------------------------------------------------- ##
1847## Report this to https://github.com/yaml/libyaml/issues/new ##
1848## --------------------------------------------------------- ##"
0fbeb4dc
AK
1849 ) | sed "s/^/$as_me: WARNING: /" >&2
1850 ;;
b9668ba4 1851esac
0fbeb4dc
AK
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853$as_echo_n "checking for $2... " >&6; }
059850b5 1854if eval \${$3+:} false; then :
0fbeb4dc
AK
1855 $as_echo_n "(cached) " >&6
1856else
1857 eval "$3=\$ac_header_compiler"
b9668ba4 1858fi
0fbeb4dc
AK
1859eval ac_res=\$$3
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861$as_echo "$ac_res" >&6; }
1862fi
059850b5 1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b9668ba4 1864
0fbeb4dc 1865} # ac_fn_c_check_header_mongrel
b9668ba4 1866
0fbeb4dc
AK
1867# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1868# -------------------------------------------
1869# Tests whether TYPE exists after having included INCLUDES, setting cache
1870# variable VAR accordingly.
1871ac_fn_c_check_type ()
1872{
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875$as_echo_n "checking for $2... " >&6; }
059850b5 1876if eval \${$3+:} false; then :
0fbeb4dc
AK
1877 $as_echo_n "(cached) " >&6
1878else
1879 eval "$3=no"
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h. */
1882$4
1883int
1884main ()
1885{
1886if (sizeof ($2))
1887 return 0;
1888 ;
1889 return 0;
1890}
b9668ba4 1891_ACEOF
0fbeb4dc
AK
1892if ac_fn_c_try_compile "$LINENO"; then :
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h. */
1895$4
1896int
1897main ()
1898{
1899if (sizeof (($2)))
1900 return 0;
1901 ;
1902 return 0;
1903}
1904_ACEOF
1905if ac_fn_c_try_compile "$LINENO"; then :
1906
1907else
1908 eval "$3=yes"
1909fi
1910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911fi
1912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b9668ba4 1913fi
0fbeb4dc
AK
1914eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916$as_echo "$ac_res" >&6; }
059850b5 1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0fbeb4dc
AK
1918
1919} # ac_fn_c_check_type
b9668ba4
AK
1920cat >config.log <<_ACEOF
1921This file contains any messages produced by compilers while
1922running configure, to aid debugging if configure makes a mistake.
1923
c45550e5 1924It was created by yaml $as_me 0.2.1, which was
0044e680 1925generated by GNU Autoconf 2.69. Invocation command line was
b9668ba4
AK
1926
1927 $ $0 $@
1928
1929_ACEOF
1930exec 5>>config.log
1931{
1932cat <<_ASUNAME
1933## --------- ##
1934## Platform. ##
1935## --------- ##
1936
1937hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1938uname -m = `(uname -m) 2>/dev/null || echo unknown`
1939uname -r = `(uname -r) 2>/dev/null || echo unknown`
1940uname -s = `(uname -s) 2>/dev/null || echo unknown`
1941uname -v = `(uname -v) 2>/dev/null || echo unknown`
1942
1943/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1944/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1945
1946/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1947/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1948/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1949/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1950/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1951/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1952/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1953
1954_ASUNAME
1955
1956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957for as_dir in $PATH
1958do
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
0fbeb4dc
AK
1961 $as_echo "PATH: $as_dir"
1962 done
b9668ba4
AK
1963IFS=$as_save_IFS
1964
1965} >&5
1966
1967cat >&5 <<_ACEOF
1968
1969
1970## ----------- ##
1971## Core tests. ##
1972## ----------- ##
1973
1974_ACEOF
1975
1976
1977# Keep a trace of the command line.
1978# Strip out --no-create and --no-recursion so they do not pile up.
1979# Strip out --silent because we don't want to record it for future runs.
1980# Also quote any args containing shell meta-characters.
1981# Make two passes to allow for proper duplicate-argument suppression.
1982ac_configure_args=
1983ac_configure_args0=
1984ac_configure_args1=
1985ac_must_keep_next=false
1986for ac_pass in 1 2
1987do
1988 for ac_arg
1989 do
1990 case $ac_arg in
1991 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1993 | -silent | --silent | --silen | --sile | --sil)
1994 continue ;;
1995 *\'*)
47dc80f6 1996 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b9668ba4
AK
1997 esac
1998 case $ac_pass in
0fbeb4dc 1999 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b9668ba4 2000 2)
0fbeb4dc 2001 as_fn_append ac_configure_args1 " '$ac_arg'"
b9668ba4
AK
2002 if test $ac_must_keep_next = true; then
2003 ac_must_keep_next=false # Got value, back to normal.
2004 else
2005 case $ac_arg in
2006 *=* | --config-cache | -C | -disable-* | --disable-* \
2007 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2008 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2009 | -with-* | --with-* | -without-* | --without-* | --x)
2010 case "$ac_configure_args0 " in
2011 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2012 esac
2013 ;;
2014 -* ) ac_must_keep_next=true ;;
2015 esac
2016 fi
0fbeb4dc 2017 as_fn_append ac_configure_args " '$ac_arg'"
b9668ba4
AK
2018 ;;
2019 esac
2020 done
2021done
0fbeb4dc
AK
2022{ ac_configure_args0=; unset ac_configure_args0;}
2023{ ac_configure_args1=; unset ac_configure_args1;}
b9668ba4
AK
2024
2025# When interrupted or exit'd, cleanup temporary files, and complete
2026# config.log. We remove comments because anyway the quotes in there
2027# would cause problems or look ugly.
2028# WARNING: Use '\'' to represent an apostrophe within the trap.
2029# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2030trap 'exit_status=$?
2031 # Save into config.log some information that might help in debugging.
2032 {
2033 echo
2034
0fbeb4dc 2035 $as_echo "## ---------------- ##
b9668ba4 2036## Cache variables. ##
0fbeb4dc 2037## ---------------- ##"
b9668ba4
AK
2038 echo
2039 # The following way of writing the cache mishandles newlines in values,
2040(
2041 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2042 eval ac_val=\$$ac_var
2043 case $ac_val in #(
2044 *${as_nl}*)
2045 case $ac_var in #(
0fbeb4dc 2046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
47dc80f6 2047$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
b9668ba4
AK
2048 esac
2049 case $ac_var in #(
2050 _ | IFS | as_nl) ;; #(
47dc80f6 2051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
0fbeb4dc 2052 *) { eval $ac_var=; unset $ac_var;} ;;
b9668ba4
AK
2053 esac ;;
2054 esac
2055 done
2056 (set) 2>&1 |
2057 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2058 *${as_nl}ac_space=\ *)
2059 sed -n \
2060 "s/'\''/'\''\\\\'\'''\''/g;
2061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2062 ;; #(
2063 *)
2064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2065 ;;
2066 esac |
2067 sort
2068)
2069 echo
2070
0fbeb4dc 2071 $as_echo "## ----------------- ##
b9668ba4 2072## Output variables. ##
0fbeb4dc 2073## ----------------- ##"
b9668ba4
AK
2074 echo
2075 for ac_var in $ac_subst_vars
2076 do
2077 eval ac_val=\$$ac_var
2078 case $ac_val in
47dc80f6 2079 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
b9668ba4 2080 esac
47dc80f6 2081 $as_echo "$ac_var='\''$ac_val'\''"
b9668ba4
AK
2082 done | sort
2083 echo
2084
2085 if test -n "$ac_subst_files"; then
0fbeb4dc 2086 $as_echo "## ------------------- ##
b9668ba4 2087## File substitutions. ##
0fbeb4dc 2088## ------------------- ##"
b9668ba4
AK
2089 echo
2090 for ac_var in $ac_subst_files
2091 do
2092 eval ac_val=\$$ac_var
2093 case $ac_val in
47dc80f6 2094 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
b9668ba4 2095 esac
47dc80f6 2096 $as_echo "$ac_var='\''$ac_val'\''"
b9668ba4
AK
2097 done | sort
2098 echo
2099 fi
2100
2101 if test -s confdefs.h; then
0fbeb4dc 2102 $as_echo "## ----------- ##
b9668ba4 2103## confdefs.h. ##
0fbeb4dc 2104## ----------- ##"
b9668ba4
AK
2105 echo
2106 cat confdefs.h
2107 echo
2108 fi
2109 test "$ac_signal" != 0 &&
47dc80f6
AK
2110 $as_echo "$as_me: caught signal $ac_signal"
2111 $as_echo "$as_me: exit $exit_status"
b9668ba4
AK
2112 } >&5
2113 rm -f core *.core core.conftest.* &&
2114 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2115 exit $exit_status
2116' 0
2117for ac_signal in 1 2 13 15; do
0fbeb4dc 2118 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b9668ba4
AK
2119done
2120ac_signal=0
2121
2122# confdefs.h avoids OS command line length limits that DEFS can exceed.
2123rm -f -r conftest* confdefs.h
2124
0fbeb4dc
AK
2125$as_echo "/* confdefs.h */" > confdefs.h
2126
b9668ba4
AK
2127# Predefined preprocessor variables.
2128
2129cat >>confdefs.h <<_ACEOF
2130#define PACKAGE_NAME "$PACKAGE_NAME"
2131_ACEOF
2132
b9668ba4
AK
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2135_ACEOF
2136
b9668ba4
AK
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_VERSION "$PACKAGE_VERSION"
2139_ACEOF
2140
b9668ba4
AK
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_STRING "$PACKAGE_STRING"
2143_ACEOF
2144
b9668ba4
AK
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2147_ACEOF
2148
0fbeb4dc
AK
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_URL "$PACKAGE_URL"
2151_ACEOF
2152
b9668ba4
AK
2153
2154# Let the site file select an alternate cache file if it wants to.
47dc80f6
AK
2155# Prefer an explicitly selected file to automatically selected ones.
2156ac_site_file1=NONE
2157ac_site_file2=NONE
b9668ba4 2158if test -n "$CONFIG_SITE"; then
0fbeb4dc
AK
2159 # We do not want a PATH search for config.site.
2160 case $CONFIG_SITE in #((
2161 -*) ac_site_file1=./$CONFIG_SITE;;
2162 */*) ac_site_file1=$CONFIG_SITE;;
2163 *) ac_site_file1=./$CONFIG_SITE;;
2164 esac
b9668ba4 2165elif test "x$prefix" != xNONE; then
47dc80f6
AK
2166 ac_site_file1=$prefix/share/config.site
2167 ac_site_file2=$prefix/etc/config.site
b9668ba4 2168else
47dc80f6
AK
2169 ac_site_file1=$ac_default_prefix/share/config.site
2170 ac_site_file2=$ac_default_prefix/etc/config.site
b9668ba4 2171fi
47dc80f6 2172for ac_site_file in "$ac_site_file1" "$ac_site_file2"
b9668ba4 2173do
47dc80f6 2174 test "x$ac_site_file" = xNONE && continue
0fbeb4dc
AK
2175 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
47dc80f6 2177$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b9668ba4 2178 sed 's/^/| /' "$ac_site_file" >&5
0fbeb4dc
AK
2179 . "$ac_site_file" \
2180 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2182as_fn_error $? "failed to load site script $ac_site_file
059850b5 2183See \`config.log' for more details" "$LINENO" 5; }
b9668ba4
AK
2184 fi
2185done
2186
2187if test -r "$cache_file"; then
0fbeb4dc
AK
2188 # Some versions of bash will fail to source /dev/null (special files
2189 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2190 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
47dc80f6 2192$as_echo "$as_me: loading cache $cache_file" >&6;}
b9668ba4
AK
2193 case $cache_file in
2194 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2195 *) . "./$cache_file";;
2196 esac
2197 fi
2198else
0fbeb4dc 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
47dc80f6 2200$as_echo "$as_me: creating cache $cache_file" >&6;}
b9668ba4
AK
2201 >$cache_file
2202fi
2203
2204# Check that the precious variables saved in the cache have kept the same
2205# value.
2206ac_cache_corrupted=false
2207for ac_var in $ac_precious_vars; do
2208 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2209 eval ac_new_set=\$ac_env_${ac_var}_set
2210 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2211 eval ac_new_val=\$ac_env_${ac_var}_value
2212 case $ac_old_set,$ac_new_set in
2213 set,)
0fbeb4dc 2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
47dc80f6 2215$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b9668ba4
AK
2216 ac_cache_corrupted=: ;;
2217 ,set)
0fbeb4dc 2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
47dc80f6 2219$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b9668ba4
AK
2220 ac_cache_corrupted=: ;;
2221 ,);;
2222 *)
2223 if test "x$ac_old_val" != "x$ac_new_val"; then
47dc80f6
AK
2224 # differences in whitespace do not lead to failure.
2225 ac_old_val_w=`echo x $ac_old_val`
2226 ac_new_val_w=`echo x $ac_new_val`
2227 if test "$ac_old_val_w" != "$ac_new_val_w"; then
0fbeb4dc 2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
47dc80f6
AK
2229$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2230 ac_cache_corrupted=:
2231 else
0fbeb4dc 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
47dc80f6
AK
2233$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2234 eval $ac_var=\$ac_old_val
2235 fi
0fbeb4dc 2236 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
47dc80f6 2237$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
0fbeb4dc 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
47dc80f6 2239$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b9668ba4
AK
2240 fi;;
2241 esac
2242 # Pass precious variables to config.status.
2243 if test "$ac_new_set" = set; then
2244 case $ac_new_val in
47dc80f6 2245 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b9668ba4
AK
2246 *) ac_arg=$ac_var=$ac_new_val ;;
2247 esac
2248 case " $ac_configure_args " in
2249 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
0fbeb4dc 2250 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b9668ba4
AK
2251 esac
2252 fi
2253done
2254if $ac_cache_corrupted; then
0fbeb4dc 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47dc80f6 2256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0fbeb4dc 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
47dc80f6 2258$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
0fbeb4dc 2259 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b9668ba4 2260fi
0fbeb4dc
AK
2261## -------------------- ##
2262## Main body of script. ##
2263## -------------------- ##
b9668ba4
AK
2264
2265ac_ext=c
2266ac_cpp='$CPP $CPPFLAGS'
2267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2269ac_compiler_gnu=$ac_cv_c_compiler_gnu
2270
2271
2272ac_aux_dir=
2273for ac_dir in config "$srcdir"/config; do
2274 if test -f "$ac_dir/install-sh"; then
2275 ac_aux_dir=$ac_dir
2276 ac_install_sh="$ac_aux_dir/install-sh -c"
2277 break
2278 elif test -f "$ac_dir/install.sh"; then
2279 ac_aux_dir=$ac_dir
2280 ac_install_sh="$ac_aux_dir/install.sh -c"
2281 break
2282 elif test -f "$ac_dir/shtool"; then
2283 ac_aux_dir=$ac_dir
2284 ac_install_sh="$ac_aux_dir/shtool install -c"
2285 break
2286 fi
2287done
2288if test -z "$ac_aux_dir"; then
0fbeb4dc 2289 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
b9668ba4
AK
2290fi
2291
2292# These three variables are undocumented and unsupported,
2293# and are intended to be withdrawn in a future Autoconf release.
2294# They can cause serious problems if a builder's source tree is in a directory
2295# whose full name contains unusual characters.
2296ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2297ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2298ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2299
2300
2301ac_config_headers="$ac_config_headers config.h"
2302
c45550e5 2303am__api_version='1.15'
5c706339 2304
b9668ba4
AK
2305# Find a good install program. We prefer a C program (faster),
2306# so one script is as good as another. But avoid the broken or
2307# incompatible versions:
2308# SysV /etc/install, /usr/sbin/install
2309# SunOS /usr/etc/install
2310# IRIX /sbin/install
2311# AIX /bin/install
2312# AmigaOS /C/install, which installs bootblocks on floppy discs
2313# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2314# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2315# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2316# OS/2's system install, which has a completely different semantic
2317# ./install, which can be erroneously created by make from ./install.sh.
47dc80f6 2318# Reject install programs that cannot install multiple files.
0fbeb4dc 2319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
47dc80f6 2320$as_echo_n "checking for a BSD-compatible install... " >&6; }
b9668ba4 2321if test -z "$INSTALL"; then
059850b5 2322if ${ac_cv_path_install+:} false; then :
47dc80f6 2323 $as_echo_n "(cached) " >&6
b9668ba4
AK
2324else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326for as_dir in $PATH
2327do
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
0fbeb4dc
AK
2330 # Account for people who put trailing slashes in PATH elements.
2331case $as_dir/ in #((
2332 ./ | .// | /[cC]/* | \
b9668ba4 2333 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
0fbeb4dc 2334 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b9668ba4
AK
2335 /usr/ucb/* ) ;;
2336 *)
2337 # OSF1 and SCO ODT 3.0 have their own names for install.
2338 # Don't use installbsd from OSF since it installs stuff as root
2339 # by default.
2340 for ac_prog in ginstall scoinst install; do
2341 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 2342 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
b9668ba4
AK
2343 if test $ac_prog = install &&
2344 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2345 # AIX install. It has an incompatible calling convention.
2346 :
2347 elif test $ac_prog = install &&
2348 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2349 # program-specific install script used by HP pwplus--don't use.
2350 :
2351 else
47dc80f6
AK
2352 rm -rf conftest.one conftest.two conftest.dir
2353 echo one > conftest.one
2354 echo two > conftest.two
2355 mkdir conftest.dir
2356 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2357 test -s conftest.one && test -s conftest.two &&
2358 test -s conftest.dir/conftest.one &&
2359 test -s conftest.dir/conftest.two
2360 then
2361 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2362 break 3
2363 fi
b9668ba4
AK
2364 fi
2365 fi
2366 done
2367 done
2368 ;;
2369esac
47dc80f6 2370
0fbeb4dc 2371 done
b9668ba4
AK
2372IFS=$as_save_IFS
2373
47dc80f6 2374rm -rf conftest.one conftest.two conftest.dir
b9668ba4
AK
2375
2376fi
2377 if test "${ac_cv_path_install+set}" = set; then
2378 INSTALL=$ac_cv_path_install
2379 else
2380 # As a last resort, use the slow shell script. Don't cache a
2381 # value for INSTALL within a source directory, because that will
2382 # break other packages using the cache if that directory is
2383 # removed, or if the value is a relative name.
2384 INSTALL=$ac_install_sh
2385 fi
2386fi
0fbeb4dc 2387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
47dc80f6 2388$as_echo "$INSTALL" >&6; }
b9668ba4
AK
2389
2390# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2391# It thinks the first close brace ends the variable substitution.
2392test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2393
2394test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2395
2396test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2397
0fbeb4dc 2398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
47dc80f6 2399$as_echo_n "checking whether build environment is sane... " >&6; }
0fbeb4dc
AK
2400# Reject unsafe characters in $srcdir or the absolute working directory
2401# name. Accept space and tab only in the latter.
2402am_lf='
2403'
2404case `pwd` in
2405 *[\\\"\#\$\&\'\`$am_lf]*)
059850b5 2406 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
0fbeb4dc
AK
2407esac
2408case $srcdir in
2409 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
0044e680 2410 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
0fbeb4dc
AK
2411esac
2412
0044e680 2413# Do 'set' in a subshell so we don't clobber the current shell's
b9668ba4
AK
2414# arguments. Must try -L first in case configure is actually a
2415# symlink; some systems play weird games with the mod time of symlinks
2416# (eg FreeBSD returns the mod time of the symlink's containing
2417# directory).
2418if (
0044e680
AK
2419 am_has_slept=no
2420 for am_try in 1 2; do
2421 echo "timestamp, slept: $am_has_slept" > conftest.file
2422 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2423 if test "$*" = "X"; then
2424 # -L didn't work.
2425 set X `ls -t "$srcdir/configure" conftest.file`
2426 fi
2427 if test "$*" != "X $srcdir/configure conftest.file" \
2428 && test "$*" != "X conftest.file $srcdir/configure"; then
2429
2430 # If neither matched, then we have a broken ls. This can happen
2431 # if, for instance, CONFIG_SHELL is bash and it inherits a
2432 # broken ls alias from the environment. This has actually
2433 # happened. Such a system could not be considered "sane".
2434 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2435 alias in your environment" "$LINENO" 5
2436 fi
2437 if test "$2" = conftest.file || test $am_try -eq 2; then
2438 break
2439 fi
2440 # Just in case.
2441 sleep 1
2442 am_has_slept=yes
2443 done
b9668ba4
AK
2444 test "$2" = conftest.file
2445 )
2446then
2447 # Ok.
2448 :
2449else
0fbeb4dc
AK
2450 as_fn_error $? "newly created file is older than distributed files!
2451Check your system clock" "$LINENO" 5
2452fi
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2454$as_echo "yes" >&6; }
0044e680
AK
2455# If we didn't sleep, we still need to ensure time stamps of config.status and
2456# generated files are strictly newer.
2457am_sleep_pid=
2458if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2459 ( sleep 1 ) &
2460 am_sleep_pid=$!
2461fi
2462
2463rm -f conftest.file
2464
0fbeb4dc
AK
2465test "$program_prefix" != NONE &&
2466 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2467# Use a double $ so make ignores it.
2468test "$program_suffix" != NONE &&
2469 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2470# Double any \ or $.
2471# By default was `s,x,x', remove it if useless.
2472ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2473program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2474
c45550e5
AK
2475# Expand $ac_aux_dir to an absolute path.
2476am_aux_dir=`cd "$ac_aux_dir" && pwd`
0fbeb4dc
AK
2477
2478if test x"${MISSING+set}" != xset; then
2479 case $am_aux_dir in
2480 *\ * | *\ *)
2481 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2482 *)
2483 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2484 esac
2485fi
2486# Use eval to expand $SHELL
0044e680
AK
2487if eval "$MISSING --is-lightweight"; then
2488 am_missing_run="$MISSING "
0fbeb4dc
AK
2489else
2490 am_missing_run=
0044e680
AK
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2492$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
0fbeb4dc
AK
2493fi
2494
c45550e5 2495if test x"${install_sh+set}" != xset; then
0fbeb4dc
AK
2496 case $am_aux_dir in
2497 *\ * | *\ *)
2498 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2499 *)
2500 install_sh="\${SHELL} $am_aux_dir/install-sh"
2501 esac
2502fi
2503
0044e680
AK
2504# Installed binaries are usually stripped using 'strip' when the user
2505# run "make install-strip". However 'strip' might not be the right
0fbeb4dc 2506# tool to use in cross-compilation environments, therefore Automake
0044e680 2507# will honor the 'STRIP' environment variable to overrule this program.
0fbeb4dc
AK
2508if test "$cross_compiling" != no; then
2509 if test -n "$ac_tool_prefix"; then
2510 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2511set dummy ${ac_tool_prefix}strip; ac_word=$2
2512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2513$as_echo_n "checking for $ac_word... " >&6; }
059850b5 2514if ${ac_cv_prog_STRIP+:} false; then :
0fbeb4dc
AK
2515 $as_echo_n "(cached) " >&6
2516else
2517 if test -n "$STRIP"; then
2518 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2519else
2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521for as_dir in $PATH
2522do
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 2526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0fbeb4dc
AK
2527 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 break 2
2530 fi
2531done
2532 done
2533IFS=$as_save_IFS
2534
2535fi
2536fi
2537STRIP=$ac_cv_prog_STRIP
2538if test -n "$STRIP"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2540$as_echo "$STRIP" >&6; }
2541else
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543$as_echo "no" >&6; }
2544fi
2545
2546
2547fi
2548if test -z "$ac_cv_prog_STRIP"; then
2549 ac_ct_STRIP=$STRIP
2550 # Extract the first word of "strip", so it can be a program name with args.
2551set dummy strip; ac_word=$2
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2553$as_echo_n "checking for $ac_word... " >&6; }
059850b5 2554if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
0fbeb4dc
AK
2555 $as_echo_n "(cached) " >&6
2556else
2557 if test -n "$ac_ct_STRIP"; then
2558 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2559else
2560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561for as_dir in $PATH
2562do
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 2566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0fbeb4dc
AK
2567 ac_cv_prog_ac_ct_STRIP="strip"
2568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 break 2
2570 fi
2571done
2572 done
2573IFS=$as_save_IFS
2574
2575fi
2576fi
2577ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2578if test -n "$ac_ct_STRIP"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2580$as_echo "$ac_ct_STRIP" >&6; }
2581else
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583$as_echo "no" >&6; }
b9668ba4 2584fi
b9668ba4 2585
0fbeb4dc
AK
2586 if test "x$ac_ct_STRIP" = x; then
2587 STRIP=":"
2588 else
2589 case $cross_compiling:$ac_tool_warned in
2590yes:)
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2593ac_tool_warned=yes ;;
2594esac
2595 STRIP=$ac_ct_STRIP
2596 fi
b9668ba4 2597else
0fbeb4dc
AK
2598 STRIP="$ac_cv_prog_STRIP"
2599fi
2600
b9668ba4 2601fi
0fbeb4dc 2602INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
b9668ba4 2603
0fbeb4dc 2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
47dc80f6 2605$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5c706339 2606if test -z "$MKDIR_P"; then
059850b5 2607 if ${ac_cv_path_mkdir+:} false; then :
47dc80f6 2608 $as_echo_n "(cached) " >&6
5c706339
AK
2609else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2612do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
0fbeb4dc 2615 for ac_prog in mkdir gmkdir; do
5c706339 2616 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 2617 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5c706339
AK
2618 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2619 'mkdir (GNU coreutils) '* | \
2620 'mkdir (coreutils) '* | \
2621 'mkdir (fileutils) '4.1*)
2622 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2623 break 3;;
2624 esac
2625 done
2626 done
0fbeb4dc 2627 done
5c706339
AK
2628IFS=$as_save_IFS
2629
2630fi
2631
0fbeb4dc 2632 test -d ./--version && rmdir ./--version
5c706339
AK
2633 if test "${ac_cv_path_mkdir+set}" = set; then
2634 MKDIR_P="$ac_cv_path_mkdir -p"
b9668ba4 2635 else
5c706339
AK
2636 # As a last resort, use the slow shell script. Don't cache a
2637 # value for MKDIR_P within a source directory, because that will
2638 # break other packages using the cache if that directory is
2639 # removed, or if the value is a relative name.
5c706339 2640 MKDIR_P="$ac_install_sh -d"
b9668ba4
AK
2641 fi
2642fi
0fbeb4dc 2643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
47dc80f6 2644$as_echo "$MKDIR_P" >&6; }
5c706339 2645
b9668ba4
AK
2646for ac_prog in gawk mawk nawk awk
2647do
2648 # Extract the first word of "$ac_prog", so it can be a program name with args.
2649set dummy $ac_prog; ac_word=$2
0fbeb4dc 2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 2651$as_echo_n "checking for $ac_word... " >&6; }
059850b5 2652if ${ac_cv_prog_AWK+:} false; then :
47dc80f6 2653 $as_echo_n "(cached) " >&6
b9668ba4
AK
2654else
2655 if test -n "$AWK"; then
2656 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2657else
2658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659for as_dir in $PATH
2660do
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
0fbeb4dc 2663 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 2664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b9668ba4 2665 ac_cv_prog_AWK="$ac_prog"
0fbeb4dc 2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
2667 break 2
2668 fi
2669done
0fbeb4dc 2670 done
b9668ba4
AK
2671IFS=$as_save_IFS
2672
2673fi
2674fi
2675AWK=$ac_cv_prog_AWK
2676if test -n "$AWK"; then
0fbeb4dc 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
47dc80f6 2678$as_echo "$AWK" >&6; }
b9668ba4 2679else
0fbeb4dc 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 2681$as_echo "no" >&6; }
b9668ba4
AK
2682fi
2683
2684
2685 test -n "$AWK" && break
2686done
2687
0fbeb4dc 2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47dc80f6
AK
2689$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2690set x ${MAKE-make}
2691ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
059850b5 2692if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
47dc80f6 2693 $as_echo_n "(cached) " >&6
b9668ba4
AK
2694else
2695 cat >conftest.make <<\_ACEOF
2696SHELL = /bin/sh
2697all:
2698 @echo '@@@%%%=$(MAKE)=@@@%%%'
2699_ACEOF
0fbeb4dc 2700# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
b9668ba4
AK
2701case `${MAKE-make} -f conftest.make 2>/dev/null` in
2702 *@@@%%%=?*=@@@%%%*)
2703 eval ac_cv_prog_make_${ac_make}_set=yes;;
2704 *)
2705 eval ac_cv_prog_make_${ac_make}_set=no;;
2706esac
2707rm -f conftest.make
2708fi
2709if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
0fbeb4dc 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47dc80f6 2711$as_echo "yes" >&6; }
b9668ba4
AK
2712 SET_MAKE=
2713else
0fbeb4dc 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 2715$as_echo "no" >&6; }
b9668ba4
AK
2716 SET_MAKE="MAKE=${MAKE-make}"
2717fi
2718
2719rm -rf .tst 2>/dev/null
2720mkdir .tst 2>/dev/null
2721if test -d .tst; then
2722 am__leading_dot=.
2723else
2724 am__leading_dot=_
2725fi
2726rmdir .tst 2>/dev/null
2727
0044e680
AK
2728# Check whether --enable-silent-rules was given.
2729if test "${enable_silent_rules+set}" = set; then :
2730 enableval=$enable_silent_rules;
2731fi
2732
2733case $enable_silent_rules in # (((
2734 yes) AM_DEFAULT_VERBOSITY=0;;
2735 no) AM_DEFAULT_VERBOSITY=1;;
2736 *) AM_DEFAULT_VERBOSITY=1;;
2737esac
2738am_make=${MAKE-make}
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2740$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2741if ${am_cv_make_support_nested_variables+:} false; then :
2742 $as_echo_n "(cached) " >&6
2743else
2744 if $as_echo 'TRUE=$(BAR$(V))
2745BAR0=false
2746BAR1=true
2747V=1
2748am__doit:
2749 @$(TRUE)
2750.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2751 am_cv_make_support_nested_variables=yes
2752else
2753 am_cv_make_support_nested_variables=no
2754fi
2755fi
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2757$as_echo "$am_cv_make_support_nested_variables" >&6; }
2758if test $am_cv_make_support_nested_variables = yes; then
2759 AM_V='$(V)'
2760 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2761else
2762 AM_V=$AM_DEFAULT_VERBOSITY
2763 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2764fi
2765AM_BACKSLASH='\'
2766
5c706339
AK
2767if test "`cd $srcdir && pwd`" != "`pwd`"; then
2768 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2769 # is not polluted with repeated "-I."
2770 am__isrc=' -I$(srcdir)'
2771 # test to see if srcdir already configured
2772 if test -f $srcdir/config.status; then
0fbeb4dc 2773 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5c706339 2774 fi
b9668ba4
AK
2775fi
2776
2777# test whether we have cygpath
2778if test -z "$CYGPATH_W"; then
2779 if (cygpath --version) >/dev/null 2>/dev/null; then
2780 CYGPATH_W='cygpath -w'
2781 else
2782 CYGPATH_W=echo
2783 fi
2784fi
2785
2786
2787# Define the identity of the package.
2788 PACKAGE='yaml'
c45550e5 2789 VERSION='0.2.1'
b9668ba4
AK
2790
2791
2792cat >>confdefs.h <<_ACEOF
2793#define PACKAGE "$PACKAGE"
2794_ACEOF
2795
2796
2797cat >>confdefs.h <<_ACEOF
2798#define VERSION "$VERSION"
2799_ACEOF
2800
2801# Some tools Automake needs.
2802
2803ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2804
2805
2806AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2807
2808
2809AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2810
2811
2812AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2813
2814
2815MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2816
0044e680
AK
2817# For better backward compatibility. To be removed once Automake 1.9.x
2818# dies out for good. For more background, see:
2819# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2820# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2821mkdir_p='$(MKDIR_P)'
2822
c45550e5
AK
2823# We need awk for the "check" target (and possibly the TAP driver). The
2824# system "awk" is bad on some platforms.
059850b5
AK
2825# Always define AMTAR for backward compatibility. Yes, it's still used
2826# in the wild :-( We should find a proper way to deprecate it ...
2827AMTAR='$${TAR-tar}'
b9668ba4 2828
0044e680
AK
2829
2830# We'll loop over all known methods to create a tar archive until one works.
2831_am_tools='gnutar pax cpio none'
2832
059850b5 2833am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
b9668ba4
AK
2834
2835
2836
2837
2838
2839
0044e680
AK
2840# POSIX will say in a future version that running "rm -f" with no argument
2841# is OK; and we want to be able to make that assumption in our Makefile
2842# recipes. So use an aggressive probe to check that the usage we want is
2843# actually supported "in the wild" to an acceptable degree.
2844# See automake bug#10828.
2845# To make any issue more visible, cause the running configure to be aborted
2846# by default if the 'rm' program in use doesn't match our expectations; the
2847# user can still override this though.
2848if rm -f && rm -fr && rm -rf; then : OK; else
2849 cat >&2 <<'END'
2850Oops!
2851
2852Your 'rm' program seems unable to run without file operands specified
2853on the command line, even when the '-f' option is present. This is contrary
2854to the behaviour of most rm programs out there, and not conforming with
2855the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2856
2857Please tell bug-automake@gnu.org about your system, including the value
2858of your $PATH and any error possibly output before this message. This
2859can help us improve future automake versions.
2860
2861END
2862 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2863 echo 'Configuration will proceed anyway, since you have set the' >&2
2864 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2865 echo >&2
2866 else
2867 cat >&2 <<'END'
2868Aborting the configuration process, to ensure you take notice of the issue.
2869
2870You can download and install GNU coreutils to get an 'rm' implementation
2871that behaves properly: <http://www.gnu.org/software/coreutils/>.
2872
2873If you want to complete the configuration process using your problematic
2874'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2875to "yes", and re-run configure.
2876
2877END
2878 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2879 fi
2880fi
2881
c45550e5 2882
b9668ba4
AK
2883# Define macro variables for the package version numbers.
2884
0fbeb4dc 2885$as_echo "#define YAML_VERSION_MAJOR 0" >>confdefs.h
b9668ba4
AK
2886
2887
c45550e5 2888$as_echo "#define YAML_VERSION_MINOR 2" >>confdefs.h
b9668ba4
AK
2889
2890
c45550e5 2891$as_echo "#define YAML_VERSION_PATCH 1" >>confdefs.h
b9668ba4
AK
2892
2893
c45550e5 2894$as_echo "#define YAML_VERSION_STRING \"0.2.1\"" >>confdefs.h
b9668ba4
AK
2895
2896
2897# Define substitutions for the libtool version numbers.
2898YAML_LT_RELEASE=0
5c706339 2899YAML_LT_CURRENT=2
0044e680 2900YAML_LT_REVISION=5
47dc80f6 2901YAML_LT_AGE=0
b9668ba4
AK
2902
2903
2904
2905
2906
2907# Note: in order to update checks, run `autoscan` and look through "configure.scan".
2908
2909# Checks for programs.
2910ac_ext=c
2911ac_cpp='$CPP $CPPFLAGS'
2912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2914ac_compiler_gnu=$ac_cv_c_compiler_gnu
2915if test -n "$ac_tool_prefix"; then
2916 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2917set dummy ${ac_tool_prefix}gcc; ac_word=$2
0fbeb4dc 2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 2919$as_echo_n "checking for $ac_word... " >&6; }
059850b5 2920if ${ac_cv_prog_CC+:} false; then :
47dc80f6 2921 $as_echo_n "(cached) " >&6
b9668ba4
AK
2922else
2923 if test -n "$CC"; then
2924 ac_cv_prog_CC="$CC" # Let the user override the test.
2925else
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
0fbeb4dc 2931 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 2932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b9668ba4 2933 ac_cv_prog_CC="${ac_tool_prefix}gcc"
0fbeb4dc 2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
2935 break 2
2936 fi
2937done
0fbeb4dc 2938 done
b9668ba4
AK
2939IFS=$as_save_IFS
2940
2941fi
2942fi
2943CC=$ac_cv_prog_CC
2944if test -n "$CC"; then
0fbeb4dc 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
47dc80f6 2946$as_echo "$CC" >&6; }
b9668ba4 2947else
0fbeb4dc 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 2949$as_echo "no" >&6; }
b9668ba4
AK
2950fi
2951
2952
2953fi
2954if test -z "$ac_cv_prog_CC"; then
2955 ac_ct_CC=$CC
2956 # Extract the first word of "gcc", so it can be a program name with args.
2957set dummy gcc; ac_word=$2
0fbeb4dc 2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 2959$as_echo_n "checking for $ac_word... " >&6; }
059850b5 2960if ${ac_cv_prog_ac_ct_CC+:} false; then :
47dc80f6 2961 $as_echo_n "(cached) " >&6
b9668ba4
AK
2962else
2963 if test -n "$ac_ct_CC"; then
2964 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2965else
2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
0fbeb4dc 2971 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 2972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b9668ba4 2973 ac_cv_prog_ac_ct_CC="gcc"
0fbeb4dc 2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
2975 break 2
2976 fi
2977done
0fbeb4dc 2978 done
b9668ba4
AK
2979IFS=$as_save_IFS
2980
2981fi
2982fi
2983ac_ct_CC=$ac_cv_prog_ac_ct_CC
2984if test -n "$ac_ct_CC"; then
0fbeb4dc 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
47dc80f6 2986$as_echo "$ac_ct_CC" >&6; }
b9668ba4 2987else
0fbeb4dc 2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 2989$as_echo "no" >&6; }
b9668ba4
AK
2990fi
2991
2992 if test "x$ac_ct_CC" = x; then
2993 CC=""
2994 else
2995 case $cross_compiling:$ac_tool_warned in
2996yes:)
0fbeb4dc 2997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 2998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b9668ba4
AK
2999ac_tool_warned=yes ;;
3000esac
3001 CC=$ac_ct_CC
3002 fi
3003else
3004 CC="$ac_cv_prog_CC"
3005fi
3006
3007if test -z "$CC"; then
3008 if test -n "$ac_tool_prefix"; then
3009 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3010set dummy ${ac_tool_prefix}cc; ac_word=$2
0fbeb4dc 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 3012$as_echo_n "checking for $ac_word... " >&6; }
059850b5 3013if ${ac_cv_prog_CC+:} false; then :
47dc80f6 3014 $as_echo_n "(cached) " >&6
b9668ba4
AK
3015else
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC="$CC" # Let the user override the test.
3018else
3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020for as_dir in $PATH
3021do
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
0fbeb4dc 3024 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 3025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b9668ba4 3026 ac_cv_prog_CC="${ac_tool_prefix}cc"
0fbeb4dc 3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
3028 break 2
3029 fi
3030done
0fbeb4dc 3031 done
b9668ba4
AK
3032IFS=$as_save_IFS
3033
3034fi
3035fi
3036CC=$ac_cv_prog_CC
3037if test -n "$CC"; then
0fbeb4dc 3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
47dc80f6 3039$as_echo "$CC" >&6; }
b9668ba4 3040else
0fbeb4dc 3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 3042$as_echo "no" >&6; }
b9668ba4
AK
3043fi
3044
3045
3046 fi
3047fi
3048if test -z "$CC"; then
3049 # Extract the first word of "cc", so it can be a program name with args.
3050set dummy cc; ac_word=$2
0fbeb4dc 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 3052$as_echo_n "checking for $ac_word... " >&6; }
059850b5 3053if ${ac_cv_prog_CC+:} false; then :
47dc80f6 3054 $as_echo_n "(cached) " >&6
b9668ba4
AK
3055else
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC="$CC" # Let the user override the test.
3058else
3059 ac_prog_rejected=no
3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH
3062do
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
0fbeb4dc 3065 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 3066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b9668ba4
AK
3067 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3068 ac_prog_rejected=yes
3069 continue
3070 fi
3071 ac_cv_prog_CC="cc"
0fbeb4dc 3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
3073 break 2
3074 fi
3075done
0fbeb4dc 3076 done
b9668ba4
AK
3077IFS=$as_save_IFS
3078
3079if test $ac_prog_rejected = yes; then
3080 # We found a bogon in the path, so make sure we never use it.
3081 set dummy $ac_cv_prog_CC
3082 shift
3083 if test $# != 0; then
3084 # We chose a different compiler from the bogus one.
3085 # However, it has the same basename, so the bogon will be chosen
3086 # first if we set CC to just the basename; use the full file name.
3087 shift
3088 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3089 fi
3090fi
3091fi
3092fi
3093CC=$ac_cv_prog_CC
3094if test -n "$CC"; then
0fbeb4dc 3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
47dc80f6 3096$as_echo "$CC" >&6; }
b9668ba4 3097else
0fbeb4dc 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 3099$as_echo "no" >&6; }
b9668ba4
AK
3100fi
3101
3102
3103fi
3104if test -z "$CC"; then
3105 if test -n "$ac_tool_prefix"; then
3106 for ac_prog in cl.exe
3107 do
3108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3109set dummy $ac_tool_prefix$ac_prog; ac_word=$2
0fbeb4dc 3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 3111$as_echo_n "checking for $ac_word... " >&6; }
059850b5 3112if ${ac_cv_prog_CC+:} false; then :
47dc80f6 3113 $as_echo_n "(cached) " >&6
b9668ba4
AK
3114else
3115 if test -n "$CC"; then
3116 ac_cv_prog_CC="$CC" # Let the user override the test.
3117else
3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119for as_dir in $PATH
3120do
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
0fbeb4dc 3123 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 3124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b9668ba4 3125 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
0fbeb4dc 3126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
3127 break 2
3128 fi
3129done
0fbeb4dc 3130 done
b9668ba4
AK
3131IFS=$as_save_IFS
3132
3133fi
3134fi
3135CC=$ac_cv_prog_CC
3136if test -n "$CC"; then
0fbeb4dc 3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
47dc80f6 3138$as_echo "$CC" >&6; }
b9668ba4 3139else
0fbeb4dc 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 3141$as_echo "no" >&6; }
b9668ba4
AK
3142fi
3143
3144
3145 test -n "$CC" && break
3146 done
3147fi
3148if test -z "$CC"; then
3149 ac_ct_CC=$CC
3150 for ac_prog in cl.exe
3151do
3152 # Extract the first word of "$ac_prog", so it can be a program name with args.
3153set dummy $ac_prog; ac_word=$2
0fbeb4dc 3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 3155$as_echo_n "checking for $ac_word... " >&6; }
059850b5 3156if ${ac_cv_prog_ac_ct_CC+:} false; then :
47dc80f6 3157 $as_echo_n "(cached) " >&6
b9668ba4
AK
3158else
3159 if test -n "$ac_ct_CC"; then
3160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3161else
3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163for as_dir in $PATH
3164do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
0fbeb4dc 3167 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 3168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b9668ba4 3169 ac_cv_prog_ac_ct_CC="$ac_prog"
0fbeb4dc 3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
3171 break 2
3172 fi
3173done
0fbeb4dc 3174 done
b9668ba4
AK
3175IFS=$as_save_IFS
3176
3177fi
3178fi
3179ac_ct_CC=$ac_cv_prog_ac_ct_CC
3180if test -n "$ac_ct_CC"; then
0fbeb4dc 3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
47dc80f6 3182$as_echo "$ac_ct_CC" >&6; }
b9668ba4 3183else
0fbeb4dc 3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 3185$as_echo "no" >&6; }
b9668ba4
AK
3186fi
3187
3188
3189 test -n "$ac_ct_CC" && break
3190done
3191
3192 if test "x$ac_ct_CC" = x; then
3193 CC=""
3194 else
3195 case $cross_compiling:$ac_tool_warned in
3196yes:)
0fbeb4dc 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 3198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b9668ba4
AK
3199ac_tool_warned=yes ;;
3200esac
3201 CC=$ac_ct_CC
3202 fi
3203fi
3204
3205fi
3206
3207
0fbeb4dc 3208test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47dc80f6 3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0fbeb4dc 3210as_fn_error $? "no acceptable C compiler found in \$PATH
059850b5 3211See \`config.log' for more details" "$LINENO" 5; }
b9668ba4
AK
3212
3213# Provide some information about the compiler.
0fbeb4dc 3214$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
47dc80f6
AK
3215set X $ac_compile
3216ac_compiler=$2
0fbeb4dc
AK
3217for ac_option in --version -v -V -qversion; do
3218 { { ac_try="$ac_compiler $ac_option >&5"
b9668ba4
AK
3219case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222esac
0fbeb4dc
AK
3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224$as_echo "$ac_try_echo"; } >&5
3225 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b9668ba4 3226 ac_status=$?
0fbeb4dc
AK
3227 if test -s conftest.err; then
3228 sed '10a\
3229... rest of stderr output deleted ...
3230 10q' conftest.err >conftest.er1
3231 cat conftest.er1 >&5
3232 fi
3233 rm -f conftest.er1 conftest.err
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }
3236done
b9668ba4 3237
0fbeb4dc 3238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b9668ba4
AK
3239/* end confdefs.h. */
3240
3241int
3242main ()
3243{
3244
3245 ;
3246 return 0;
3247}
3248_ACEOF
3249ac_clean_files_save=$ac_clean_files
47dc80f6 3250ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b9668ba4
AK
3251# Try to create an executable without -o first, disregard a.out.
3252# It will help us diagnose broken compilers, and finding out an intuition
3253# of exeext.
0fbeb4dc
AK
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3255$as_echo_n "checking whether the C compiler works... " >&6; }
47dc80f6
AK
3256ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3257
3258# The possible output files:
3259ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3260
b9668ba4
AK
3261ac_rmfiles=
3262for ac_file in $ac_files
3263do
3264 case $ac_file in
47dc80f6 3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b9668ba4
AK
3266 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3267 esac
3268done
3269rm -f $ac_rmfiles
3270
0fbeb4dc 3271if { { ac_try="$ac_link_default"
b9668ba4
AK
3272case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275esac
0fbeb4dc
AK
3276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277$as_echo "$ac_try_echo"; } >&5
b9668ba4
AK
3278 (eval "$ac_link_default") 2>&5
3279 ac_status=$?
0fbeb4dc
AK
3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }; then :
b9668ba4
AK
3282 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3283# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3284# in a Makefile. We should not override ac_cv_exeext if it was cached,
3285# so that the user can short-circuit this test for compilers unknown to
3286# Autoconf.
3287for ac_file in $ac_files ''
3288do
3289 test -f "$ac_file" || continue
3290 case $ac_file in
47dc80f6 3291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b9668ba4
AK
3292 ;;
3293 [ab].out )
3294 # We found the default executable, but exeext='' is most
3295 # certainly right.
3296 break;;
3297 *.* )
0fbeb4dc 3298 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
b9668ba4
AK
3299 then :; else
3300 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3301 fi
3302 # We set ac_cv_exeext here because the later test for it is not
3303 # safe: cross compilers may not add the suffix if given an `-o'
3304 # argument, so we may need to know it at that point already.
3305 # Even if this section looks crufty: it has the advantage of
3306 # actually working.
3307 break;;
3308 * )
3309 break;;
3310 esac
3311done
3312test "$ac_cv_exeext" = no && ac_cv_exeext=
3313
3314else
3315 ac_file=''
3316fi
0fbeb4dc
AK
3317if test -z "$ac_file"; then :
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319$as_echo "no" >&6; }
3320$as_echo "$as_me: failed program was:" >&5
b9668ba4
AK
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
0fbeb4dc 3323{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47dc80f6 3324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0fbeb4dc 3325as_fn_error 77 "C compiler cannot create executables
059850b5 3326See \`config.log' for more details" "$LINENO" 5; }
0fbeb4dc
AK
3327else
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329$as_echo "yes" >&6; }
b9668ba4 3330fi
0fbeb4dc
AK
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3332$as_echo_n "checking for C compiler default output file name... " >&6; }
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3334$as_echo "$ac_file" >&6; }
b9668ba4
AK
3335ac_exeext=$ac_cv_exeext
3336
47dc80f6 3337rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b9668ba4 3338ac_clean_files=$ac_clean_files_save
0fbeb4dc 3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
47dc80f6 3340$as_echo_n "checking for suffix of executables... " >&6; }
0fbeb4dc 3341if { { ac_try="$ac_link"
b9668ba4
AK
3342case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345esac
0fbeb4dc
AK
3346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347$as_echo "$ac_try_echo"; } >&5
b9668ba4
AK
3348 (eval "$ac_link") 2>&5
3349 ac_status=$?
0fbeb4dc
AK
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }; then :
b9668ba4
AK
3352 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3353# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3354# work properly (i.e., refer to `conftest.exe'), while it won't with
3355# `rm'.
3356for ac_file in conftest.exe conftest conftest.*; do
3357 test -f "$ac_file" || continue
3358 case $ac_file in
47dc80f6 3359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b9668ba4
AK
3360 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3361 break;;
3362 * ) break;;
3363 esac
3364done
3365else
0fbeb4dc 3366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47dc80f6 3367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0fbeb4dc 3368as_fn_error $? "cannot compute suffix of executables: cannot compile and link
059850b5 3369See \`config.log' for more details" "$LINENO" 5; }
b9668ba4 3370fi
0fbeb4dc
AK
3371rm -f conftest conftest$ac_cv_exeext
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
47dc80f6 3373$as_echo "$ac_cv_exeext" >&6; }
b9668ba4
AK
3374
3375rm -f conftest.$ac_ext
3376EXEEXT=$ac_cv_exeext
3377ac_exeext=$EXEEXT
0fbeb4dc
AK
3378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379/* end confdefs.h. */
3380#include <stdio.h>
3381int
3382main ()
3383{
3384FILE *f = fopen ("conftest.out", "w");
3385 return ferror (f) || fclose (f) != 0;
3386
3387 ;
3388 return 0;
3389}
3390_ACEOF
3391ac_clean_files="$ac_clean_files conftest.out"
3392# Check that the compiler produces executables we can run. If not, either
3393# the compiler is broken, or we cross compile.
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3395$as_echo_n "checking whether we are cross compiling... " >&6; }
3396if test "$cross_compiling" != yes; then
3397 { { ac_try="$ac_link"
3398case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401esac
3402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403$as_echo "$ac_try_echo"; } >&5
3404 (eval "$ac_link") 2>&5
3405 ac_status=$?
3406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407 test $ac_status = 0; }
3408 if { ac_try='./conftest$ac_cv_exeext'
3409 { { case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412esac
3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414$as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_try") 2>&5
3416 ac_status=$?
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }; }; then
3419 cross_compiling=no
3420 else
3421 if test "$cross_compiling" = maybe; then
3422 cross_compiling=yes
3423 else
3424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426as_fn_error $? "cannot run C compiled programs.
3427If you meant to cross compile, use \`--host'.
059850b5 3428See \`config.log' for more details" "$LINENO" 5; }
0fbeb4dc
AK
3429 fi
3430 fi
3431fi
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3433$as_echo "$cross_compiling" >&6; }
3434
3435rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3436ac_clean_files=$ac_clean_files_save
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
47dc80f6 3438$as_echo_n "checking for suffix of object files... " >&6; }
059850b5 3439if ${ac_cv_objext+:} false; then :
47dc80f6 3440 $as_echo_n "(cached) " >&6
b9668ba4 3441else
0fbeb4dc 3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b9668ba4
AK
3443/* end confdefs.h. */
3444
3445int
3446main ()
3447{
3448
3449 ;
3450 return 0;
3451}
3452_ACEOF
3453rm -f conftest.o conftest.obj
0fbeb4dc 3454if { { ac_try="$ac_compile"
b9668ba4
AK
3455case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458esac
0fbeb4dc
AK
3459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460$as_echo "$ac_try_echo"; } >&5
b9668ba4
AK
3461 (eval "$ac_compile") 2>&5
3462 ac_status=$?
0fbeb4dc
AK
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }; then :
b9668ba4
AK
3465 for ac_file in conftest.o conftest.obj conftest.*; do
3466 test -f "$ac_file" || continue;
3467 case $ac_file in
47dc80f6 3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b9668ba4
AK
3469 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3470 break;;
3471 esac
3472done
3473else
47dc80f6 3474 $as_echo "$as_me: failed program was:" >&5
b9668ba4
AK
3475sed 's/^/| /' conftest.$ac_ext >&5
3476
0fbeb4dc 3477{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47dc80f6 3478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0fbeb4dc 3479as_fn_error $? "cannot compute suffix of object files: cannot compile
059850b5 3480See \`config.log' for more details" "$LINENO" 5; }
b9668ba4 3481fi
b9668ba4
AK
3482rm -f conftest.$ac_cv_objext conftest.$ac_ext
3483fi
0fbeb4dc 3484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
47dc80f6 3485$as_echo "$ac_cv_objext" >&6; }
b9668ba4
AK
3486OBJEXT=$ac_cv_objext
3487ac_objext=$OBJEXT
0fbeb4dc 3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
47dc80f6 3489$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
059850b5 3490if ${ac_cv_c_compiler_gnu+:} false; then :
47dc80f6 3491 $as_echo_n "(cached) " >&6
b9668ba4 3492else
0fbeb4dc 3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b9668ba4
AK
3494/* end confdefs.h. */
3495
3496int
3497main ()
3498{
3499#ifndef __GNUC__
3500 choke me
3501#endif
3502
3503 ;
3504 return 0;
3505}
3506_ACEOF
0fbeb4dc 3507if ac_fn_c_try_compile "$LINENO"; then :
b9668ba4 3508 ac_compiler_gnu=yes
0fbeb4dc
AK
3509else
3510 ac_compiler_gnu=no
b9668ba4 3511fi
b9668ba4
AK
3512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513ac_cv_c_compiler_gnu=$ac_compiler_gnu
3514
3515fi
0fbeb4dc 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
47dc80f6
AK
3517$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3518if test $ac_compiler_gnu = yes; then
3519 GCC=yes
3520else
3521 GCC=
3522fi
b9668ba4
AK
3523ac_test_CFLAGS=${CFLAGS+set}
3524ac_save_CFLAGS=$CFLAGS
0fbeb4dc 3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
47dc80f6 3526$as_echo_n "checking whether $CC accepts -g... " >&6; }
059850b5 3527if ${ac_cv_prog_cc_g+:} false; then :
47dc80f6 3528 $as_echo_n "(cached) " >&6
b9668ba4
AK
3529else
3530 ac_save_c_werror_flag=$ac_c_werror_flag
3531 ac_c_werror_flag=yes
3532 ac_cv_prog_cc_g=no
3533 CFLAGS="-g"
0fbeb4dc 3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b9668ba4
AK
3535/* end confdefs.h. */
3536
3537int
3538main ()
3539{
3540
3541 ;
3542 return 0;
3543}
3544_ACEOF
0fbeb4dc 3545if ac_fn_c_try_compile "$LINENO"; then :
b9668ba4
AK
3546 ac_cv_prog_cc_g=yes
3547else
0fbeb4dc
AK
3548 CFLAGS=""
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b9668ba4
AK
3550/* end confdefs.h. */
3551
3552int
3553main ()
3554{
3555
3556 ;
3557 return 0;
3558}
3559_ACEOF
0fbeb4dc 3560if ac_fn_c_try_compile "$LINENO"; then :
b9668ba4 3561
0fbeb4dc
AK
3562else
3563 ac_c_werror_flag=$ac_save_c_werror_flag
b9668ba4 3564 CFLAGS="-g"
0fbeb4dc 3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b9668ba4
AK
3566/* end confdefs.h. */
3567
3568int
3569main ()
3570{
3571
3572 ;
3573 return 0;
3574}
3575_ACEOF
0fbeb4dc 3576if ac_fn_c_try_compile "$LINENO"; then :
b9668ba4 3577 ac_cv_prog_cc_g=yes
b9668ba4 3578fi
b9668ba4
AK
3579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580fi
b9668ba4
AK
3581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582fi
b9668ba4
AK
3583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 ac_c_werror_flag=$ac_save_c_werror_flag
3585fi
0fbeb4dc 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
47dc80f6 3587$as_echo "$ac_cv_prog_cc_g" >&6; }
b9668ba4
AK
3588if test "$ac_test_CFLAGS" = set; then
3589 CFLAGS=$ac_save_CFLAGS
3590elif test $ac_cv_prog_cc_g = yes; then
3591 if test "$GCC" = yes; then
3592 CFLAGS="-g -O2"
3593 else
3594 CFLAGS="-g"
3595 fi
3596else
3597 if test "$GCC" = yes; then
3598 CFLAGS="-O2"
3599 else
3600 CFLAGS=
3601 fi
3602fi
0fbeb4dc 3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
47dc80f6 3604$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
059850b5 3605if ${ac_cv_prog_cc_c89+:} false; then :
47dc80f6 3606 $as_echo_n "(cached) " >&6
b9668ba4
AK
3607else
3608 ac_cv_prog_cc_c89=no
3609ac_save_CC=$CC
0fbeb4dc 3610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b9668ba4
AK
3611/* end confdefs.h. */
3612#include <stdarg.h>
3613#include <stdio.h>
0044e680 3614struct stat;
b9668ba4
AK
3615/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3616struct buf { int x; };
3617FILE * (*rcsopen) (struct buf *, struct stat *, int);
3618static char *e (p, i)
3619 char **p;
3620 int i;
3621{
3622 return p[i];
3623}
3624static char *f (char * (*g) (char **, int), char **p, ...)
3625{
3626 char *s;
3627 va_list v;
3628 va_start (v,p);
3629 s = g (p, va_arg (v,int));
3630 va_end (v);
3631 return s;
3632}
3633
3634/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3635 function prototypes and stuff, but not '\xHH' hex character constants.
3636 These don't provoke an error unfortunately, instead are silently treated
3637 as 'x'. The following induces an error, until -std is added to get
3638 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3639 array size at least. It's necessary to write '\x00'==0 to get something
3640 that's true only with -std. */
3641int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3642
3643/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3644 inside strings and character constants. */
3645#define FOO(x) 'x'
3646int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3647
3648int test (int i, double x);
3649struct s1 {int (*f) (int a);};
3650struct s2 {int (*f) (double a);};
3651int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3652int argc;
3653char **argv;
3654int
3655main ()
3656{
3657return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3658 ;
3659 return 0;
3660}
3661_ACEOF
3662for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3663 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3664do
3665 CC="$ac_save_CC $ac_arg"
0fbeb4dc 3666 if ac_fn_c_try_compile "$LINENO"; then :
b9668ba4 3667 ac_cv_prog_cc_c89=$ac_arg
b9668ba4 3668fi
b9668ba4
AK
3669rm -f core conftest.err conftest.$ac_objext
3670 test "x$ac_cv_prog_cc_c89" != "xno" && break
3671done
3672rm -f conftest.$ac_ext
3673CC=$ac_save_CC
3674
3675fi
3676# AC_CACHE_VAL
3677case "x$ac_cv_prog_cc_c89" in
3678 x)
0fbeb4dc 3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
47dc80f6 3680$as_echo "none needed" >&6; } ;;
b9668ba4 3681 xno)
0fbeb4dc 3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
47dc80f6 3683$as_echo "unsupported" >&6; } ;;
b9668ba4
AK
3684 *)
3685 CC="$CC $ac_cv_prog_cc_c89"
0fbeb4dc 3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
47dc80f6 3687$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b9668ba4 3688esac
0fbeb4dc 3689if test "x$ac_cv_prog_cc_c89" != xno; then :
b9668ba4 3690
0fbeb4dc 3691fi
b9668ba4
AK
3692
3693ac_ext=c
3694ac_cpp='$CPP $CPPFLAGS'
3695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697ac_compiler_gnu=$ac_cv_c_compiler_gnu
0044e680
AK
3698
3699ac_ext=c
3700ac_cpp='$CPP $CPPFLAGS'
3701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3705$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3706if ${am_cv_prog_cc_c_o+:} false; then :
3707 $as_echo_n "(cached) " >&6
3708else
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710/* end confdefs.h. */
3711
3712int
3713main ()
3714{
3715
3716 ;
3717 return 0;
3718}
3719_ACEOF
3720 # Make sure it works both with $CC and with simple cc.
3721 # Following AC_PROG_CC_C_O, we do the test twice because some
3722 # compilers refuse to overwrite an existing .o file with -o,
3723 # though they will create one.
3724 am_cv_prog_cc_c_o=yes
3725 for am_i in 1 2; do
3726 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3727 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } \
3731 && test -f conftest2.$ac_objext; then
3732 : OK
3733 else
3734 am_cv_prog_cc_c_o=no
3735 break
3736 fi
3737 done
3738 rm -f core conftest*
3739 unset am_i
3740fi
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3742$as_echo "$am_cv_prog_cc_c_o" >&6; }
3743if test "$am_cv_prog_cc_c_o" != yes; then
3744 # Losing compiler, so override with the script.
3745 # FIXME: It is wrong to rewrite CC.
3746 # But if we don't then we get into trouble of one sort or another.
3747 # A longer-term fix would be to have automake use am__CC in this case,
3748 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3749 CC="$am_aux_dir/compile $CC"
3750fi
3751ac_ext=c
3752ac_cpp='$CPP $CPPFLAGS'
3753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756
b9668ba4
AK
3757DEPDIR="${am__leading_dot}deps"
3758
3759ac_config_commands="$ac_config_commands depfiles"
3760
3761
3762am_make=${MAKE-make}
3763cat > confinc << 'END'
3764am__doit:
0fbeb4dc 3765 @echo this is the am__doit target
b9668ba4
AK
3766.PHONY: am__doit
3767END
3768# If we don't find an include directive, just comment out the code.
0fbeb4dc 3769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
47dc80f6 3770$as_echo_n "checking for style of include used by $am_make... " >&6; }
b9668ba4
AK
3771am__include="#"
3772am__quote=
3773_am_result=none
3774# First try GNU make style include.
3775echo "include confinc" > confmf
0044e680 3776# Ignore all kinds of additional output from 'make'.
0fbeb4dc
AK
3777case `$am_make -s -f confmf 2> /dev/null` in #(
3778*the\ am__doit\ target*)
3779 am__include=include
3780 am__quote=
3781 _am_result=GNU
3782 ;;
3783esac
b9668ba4
AK
3784# Now try BSD make style include.
3785if test "$am__include" = "#"; then
3786 echo '.include "confinc"' > confmf
0fbeb4dc
AK
3787 case `$am_make -s -f confmf 2> /dev/null` in #(
3788 *the\ am__doit\ target*)
3789 am__include=.include
3790 am__quote="\""
3791 _am_result=BSD
3792 ;;
3793 esac
b9668ba4
AK
3794fi
3795
3796
0fbeb4dc 3797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
47dc80f6 3798$as_echo "$_am_result" >&6; }
b9668ba4
AK
3799rm -f confinc confmf
3800
3801# Check whether --enable-dependency-tracking was given.
0fbeb4dc 3802if test "${enable_dependency_tracking+set}" = set; then :
b9668ba4
AK
3803 enableval=$enable_dependency_tracking;
3804fi
3805
3806if test "x$enable_dependency_tracking" != xno; then
3807 am_depcomp="$ac_aux_dir/depcomp"
3808 AMDEPBACKSLASH='\'
059850b5 3809 am__nodep='_no'
b9668ba4 3810fi
5c706339 3811 if test "x$enable_dependency_tracking" != xno; then
b9668ba4
AK
3812 AMDEP_TRUE=
3813 AMDEP_FALSE='#'
3814else
3815 AMDEP_TRUE='#'
3816 AMDEP_FALSE=
3817fi
3818
3819
3820
b9668ba4
AK
3821depcc="$CC" am_compiler_list=
3822
0fbeb4dc 3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
47dc80f6 3824$as_echo_n "checking dependency style of $depcc... " >&6; }
059850b5 3825if ${am_cv_CC_dependencies_compiler_type+:} false; then :
47dc80f6 3826 $as_echo_n "(cached) " >&6
b9668ba4
AK
3827else
3828 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3829 # We make a subdir and do the tests there. Otherwise we can end up
3830 # making bogus files that we don't know about and never remove. For
3831 # instance it was reported that on HP-UX the gcc test will end up
0044e680
AK
3832 # making a dummy file named 'D' -- because '-MD' means "put the output
3833 # in D".
059850b5 3834 rm -rf conftest.dir
b9668ba4
AK
3835 mkdir conftest.dir
3836 # Copy depcomp to subdir because otherwise we won't find it if we're
3837 # using a relative directory.
3838 cp "$am_depcomp" conftest.dir
3839 cd conftest.dir
3840 # We will build objects and dependencies in a subdirectory because
3841 # it helps to detect inapplicable dependency modes. For instance
3842 # both Tru64's cc and ICC support -MD to output dependencies as a
3843 # side effect of compilation, but ICC will put the dependencies in
3844 # the current directory while Tru64 will put them in the object
3845 # directory.
3846 mkdir sub
3847
3848 am_cv_CC_dependencies_compiler_type=none
3849 if test "$am_compiler_list" = ""; then
3850 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3851 fi
0fbeb4dc
AK
3852 am__universal=false
3853 case " $depcc " in #(
3854 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3855 esac
3856
b9668ba4
AK
3857 for depmode in $am_compiler_list; do
3858 # Setup a source with many dependencies, because some compilers
3859 # like to wrap large dependency lists on column 80 (with \), and
3860 # we should not choose a depcomp mode which is confused by this.
3861 #
3862 # We need to recreate these files for each test, as the compiler may
3863 # overwrite some of them when testing with obscure command lines.
3864 # This happens at least with the AIX C compiler.
3865 : > sub/conftest.c
3866 for i in 1 2 3 4 5 6; do
3867 echo '#include "conftst'$i'.h"' >> sub/conftest.c
0044e680
AK
3868 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3869 # Solaris 10 /bin/sh.
3870 echo '/* dummy */' > sub/conftst$i.h
b9668ba4
AK
3871 done
3872 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3873
0044e680 3874 # We check with '-c' and '-o' for the sake of the "dashmstdout"
0fbeb4dc 3875 # mode. It turns out that the SunPro C++ compiler does not properly
0044e680
AK
3876 # handle '-M -o', and we need to detect this. Also, some Intel
3877 # versions had trouble with output in subdirs.
0fbeb4dc
AK
3878 am__obj=sub/conftest.${OBJEXT-o}
3879 am__minus_obj="-o $am__obj"
b9668ba4 3880 case $depmode in
0fbeb4dc
AK
3881 gcc)
3882 # This depmode causes a compiler race in universal mode.
3883 test "$am__universal" = false || continue
3884 ;;
b9668ba4 3885 nosideeffect)
0044e680
AK
3886 # After this tag, mechanisms are not by side-effect, so they'll
3887 # only be used when explicitly requested.
b9668ba4
AK
3888 if test "x$enable_dependency_tracking" = xyes; then
3889 continue
3890 else
3891 break
3892 fi
3893 ;;
059850b5 3894 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
0044e680 3895 # This compiler won't grok '-c -o', but also, the minuso test has
0fbeb4dc
AK
3896 # not run yet. These depmodes are late enough in the game, and
3897 # so weak that their functioning should not be impacted.
3898 am__obj=conftest.${OBJEXT-o}
3899 am__minus_obj=
3900 ;;
b9668ba4
AK
3901 none) break ;;
3902 esac
b9668ba4 3903 if depmode=$depmode \
0fbeb4dc 3904 source=sub/conftest.c object=$am__obj \
b9668ba4 3905 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
0fbeb4dc 3906 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
b9668ba4 3907 >/dev/null 2>conftest.err &&
5c706339 3908 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
b9668ba4 3909 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
0fbeb4dc 3910 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
b9668ba4
AK
3911 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3912 # icc doesn't choke on unknown options, it will just issue warnings
3913 # or remarks (even with -Werror). So we grep stderr for any message
3914 # that says an option was ignored or not supported.
3915 # When given -MP, icc 7.0 and 7.1 complain thusly:
3916 # icc: Command line warning: ignoring option '-M'; no argument required
3917 # The diagnosis changed in icc 8.0:
3918 # icc: Command line remark: option '-MP' not supported
3919 if (grep 'ignoring option' conftest.err ||
3920 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3921 am_cv_CC_dependencies_compiler_type=$depmode
3922 break
3923 fi
3924 fi
3925 done
3926
3927 cd ..
3928 rm -rf conftest.dir
3929else
3930 am_cv_CC_dependencies_compiler_type=none
3931fi
3932
3933fi
0fbeb4dc 3934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
47dc80f6 3935$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
b9668ba4
AK
3936CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3937
5c706339 3938 if
b9668ba4
AK
3939 test "x$enable_dependency_tracking" != xno \
3940 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3941 am__fastdepCC_TRUE=
3942 am__fastdepCC_FALSE='#'
3943else
3944 am__fastdepCC_TRUE='#'
3945 am__fastdepCC_FALSE=
3946fi
3947
3948
3949ac_ext=c
3950ac_cpp='$CPP $CPPFLAGS'
3951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953ac_compiler_gnu=$ac_cv_c_compiler_gnu
0fbeb4dc 3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
47dc80f6 3955$as_echo_n "checking how to run the C preprocessor... " >&6; }
b9668ba4
AK
3956# On Suns, sometimes $CPP names a directory.
3957if test -n "$CPP" && test -d "$CPP"; then
3958 CPP=
3959fi
3960if test -z "$CPP"; then
059850b5 3961 if ${ac_cv_prog_CPP+:} false; then :
47dc80f6 3962 $as_echo_n "(cached) " >&6
b9668ba4
AK
3963else
3964 # Double quotes because CPP needs to be expanded
3965 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3966 do
3967 ac_preproc_ok=false
3968for ac_c_preproc_warn_flag in '' yes
3969do
3970 # Use a header file that comes with gcc, so configuring glibc
3971 # with a fresh cross-compiler works.
3972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3973 # <limits.h> exists even on freestanding compilers.
3974 # On the NeXT, cc -E runs the code through the compiler's parser,
3975 # not just through cpp. "Syntax error" is here to catch this case.
0fbeb4dc 3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b9668ba4
AK
3977/* end confdefs.h. */
3978#ifdef __STDC__
3979# include <limits.h>
3980#else
3981# include <assert.h>
3982#endif
3983 Syntax error
3984_ACEOF
0fbeb4dc 3985if ac_fn_c_try_cpp "$LINENO"; then :
b9668ba4 3986
b9668ba4 3987else
b9668ba4
AK
3988 # Broken: fails on valid input.
3989continue
3990fi
0fbeb4dc 3991rm -f conftest.err conftest.i conftest.$ac_ext
b9668ba4
AK
3992
3993 # OK, works on sane cases. Now check whether nonexistent headers
3994 # can be detected and how.
0fbeb4dc 3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b9668ba4
AK
3996/* end confdefs.h. */
3997#include <ac_nonexistent.h>
3998_ACEOF
0fbeb4dc 3999if ac_fn_c_try_cpp "$LINENO"; then :
b9668ba4
AK
4000 # Broken: success on invalid input.
4001continue
0fbeb4dc
AK
4002else
4003 # Passes both tests.
4004ac_preproc_ok=:
4005break
4006fi
4007rm -f conftest.err conftest.i conftest.$ac_ext
47dc80f6 4008
b9668ba4 4009done
0fbeb4dc
AK
4010# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4011rm -f conftest.i conftest.err conftest.$ac_ext
4012if $ac_preproc_ok; then :
4013 break
4014fi
b9668ba4 4015
0fbeb4dc
AK
4016 done
4017 ac_cv_prog_CPP=$CPP
b9668ba4
AK
4018
4019fi
0fbeb4dc
AK
4020 CPP=$ac_cv_prog_CPP
4021else
4022 ac_cv_prog_CPP=$CPP
b9668ba4 4023fi
0fbeb4dc
AK
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4025$as_echo "$CPP" >&6; }
4026ac_preproc_ok=false
4027for ac_c_preproc_warn_flag in '' yes
4028do
4029 # Use a header file that comes with gcc, so configuring glibc
4030 # with a fresh cross-compiler works.
4031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4032 # <limits.h> exists even on freestanding compilers.
4033 # On the NeXT, cc -E runs the code through the compiler's parser,
4034 # not just through cpp. "Syntax error" is here to catch this case.
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036/* end confdefs.h. */
4037#ifdef __STDC__
4038# include <limits.h>
4039#else
4040# include <assert.h>
4041#endif
4042 Syntax error
4043_ACEOF
4044if ac_fn_c_try_cpp "$LINENO"; then :
b9668ba4 4045
0fbeb4dc
AK
4046else
4047 # Broken: fails on valid input.
4048continue
4049fi
4050rm -f conftest.err conftest.i conftest.$ac_ext
b9668ba4 4051
0fbeb4dc
AK
4052 # OK, works on sane cases. Now check whether nonexistent headers
4053 # can be detected and how.
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055/* end confdefs.h. */
4056#include <ac_nonexistent.h>
4057_ACEOF
4058if ac_fn_c_try_cpp "$LINENO"; then :
4059 # Broken: success on invalid input.
4060continue
4061else
4062 # Passes both tests.
4063ac_preproc_ok=:
4064break
4065fi
4066rm -f conftest.err conftest.i conftest.$ac_ext
b9668ba4 4067
0fbeb4dc
AK
4068done
4069# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4070rm -f conftest.i conftest.err conftest.$ac_ext
4071if $ac_preproc_ok; then :
4072
4073else
4074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4076as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
059850b5 4077See \`config.log' for more details" "$LINENO" 5; }
0fbeb4dc
AK
4078fi
4079
4080ac_ext=c
4081ac_cpp='$CPP $CPPFLAGS'
4082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084ac_compiler_gnu=$ac_cv_c_compiler_gnu
b9668ba4 4085
0fbeb4dc
AK
4086
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
47dc80f6 4088$as_echo_n "checking whether ln -s works... " >&6; }
b9668ba4
AK
4089LN_S=$as_ln_s
4090if test "$LN_S" = "ln -s"; then
0fbeb4dc 4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47dc80f6 4092$as_echo "yes" >&6; }
b9668ba4 4093else
0fbeb4dc 4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
47dc80f6 4095$as_echo "no, using $LN_S" >&6; }
b9668ba4
AK
4096fi
4097
0fbeb4dc 4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47dc80f6
AK
4099$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4100set x ${MAKE-make}
4101ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
059850b5 4102if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
47dc80f6 4103 $as_echo_n "(cached) " >&6
b9668ba4
AK
4104else
4105 cat >conftest.make <<\_ACEOF
4106SHELL = /bin/sh
4107all:
4108 @echo '@@@%%%=$(MAKE)=@@@%%%'
4109_ACEOF
0fbeb4dc 4110# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
b9668ba4
AK
4111case `${MAKE-make} -f conftest.make 2>/dev/null` in
4112 *@@@%%%=?*=@@@%%%*)
4113 eval ac_cv_prog_make_${ac_make}_set=yes;;
4114 *)
4115 eval ac_cv_prog_make_${ac_make}_set=no;;
4116esac
4117rm -f conftest.make
4118fi
4119if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
0fbeb4dc 4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47dc80f6 4121$as_echo "yes" >&6; }
b9668ba4
AK
4122 SET_MAKE=
4123else
0fbeb4dc 4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 4125$as_echo "no" >&6; }
b9668ba4
AK
4126 SET_MAKE="MAKE=${MAKE-make}"
4127fi
4128
5c706339
AK
4129case `pwd` in
4130 *\ * | *\ *)
0fbeb4dc 4131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
47dc80f6 4132$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5c706339
AK
4133esac
4134
4135
4136
c45550e5
AK
4137macro_version='2.4.6'
4138macro_revision='2.4.6'
5c706339 4139
b9668ba4
AK
4140
4141
b9668ba4
AK
4142
4143
b9668ba4
AK
4144
4145
5c706339
AK
4146
4147
4148
4149
4150
4151
c45550e5 4152ltmain=$ac_aux_dir/ltmain.sh
5c706339 4153
b9668ba4
AK
4154# Make sure we can run config.sub.
4155$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
0fbeb4dc 4156 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
b9668ba4 4157
0fbeb4dc 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
47dc80f6 4159$as_echo_n "checking build system type... " >&6; }
059850b5 4160if ${ac_cv_build+:} false; then :
47dc80f6 4161 $as_echo_n "(cached) " >&6
b9668ba4
AK
4162else
4163 ac_build_alias=$build_alias
4164test "x$ac_build_alias" = x &&
4165 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4166test "x$ac_build_alias" = x &&
0fbeb4dc 4167 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
b9668ba4 4168ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
0fbeb4dc 4169 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
b9668ba4
AK
4170
4171fi
0fbeb4dc 4172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
47dc80f6 4173$as_echo "$ac_cv_build" >&6; }
b9668ba4
AK
4174case $ac_cv_build in
4175*-*-*) ;;
059850b5 4176*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
b9668ba4
AK
4177esac
4178build=$ac_cv_build
4179ac_save_IFS=$IFS; IFS='-'
4180set x $ac_cv_build
4181shift
4182build_cpu=$1
4183build_vendor=$2
4184shift; shift
4185# Remember, the first character of IFS is used to create $*,
4186# except with old shells:
4187build_os=$*
4188IFS=$ac_save_IFS
4189case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4190
4191
0fbeb4dc 4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
47dc80f6 4193$as_echo_n "checking host system type... " >&6; }
059850b5 4194if ${ac_cv_host+:} false; then :
47dc80f6 4195 $as_echo_n "(cached) " >&6
b9668ba4
AK
4196else
4197 if test "x$host_alias" = x; then
4198 ac_cv_host=$ac_cv_build
4199else
4200 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
0fbeb4dc 4201 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b9668ba4
AK
4202fi
4203
4204fi
0fbeb4dc 4205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
47dc80f6 4206$as_echo "$ac_cv_host" >&6; }
b9668ba4
AK
4207case $ac_cv_host in
4208*-*-*) ;;
059850b5 4209*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
b9668ba4
AK
4210esac
4211host=$ac_cv_host
4212ac_save_IFS=$IFS; IFS='-'
4213set x $ac_cv_host
4214shift
4215host_cpu=$1
4216host_vendor=$2
4217shift; shift
4218# Remember, the first character of IFS is used to create $*,
4219# except with old shells:
4220host_os=$*
4221IFS=$ac_save_IFS
4222case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4223
4224
059850b5
AK
4225# Backslashify metacharacters that are still active within
4226# double-quoted strings.
4227sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4228
4229# Same as above, but do not quote variable references.
4230double_quote_subst='s/\(["`\\]\)/\\\1/g'
4231
4232# Sed substitution to delay expansion of an escaped shell variable in a
4233# double_quote_subst'ed string.
4234delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4235
4236# Sed substitution to delay expansion of an escaped single quote.
4237delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4238
4239# Sed substitution to avoid accidental globbing in evaled expressions
4240no_glob_subst='s/\*/\\\*/g'
4241
4242ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4243ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4244ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4245
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4247$as_echo_n "checking how to print strings... " >&6; }
4248# Test print first, because it will be a builtin if present.
4249if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4250 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4251 ECHO='print -r --'
4252elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4253 ECHO='printf %s\n'
4254else
4255 # Use this function as a fallback that always works.
4256 func_fallback_echo ()
4257 {
4258 eval 'cat <<_LTECHO_EOF
4259$1
4260_LTECHO_EOF'
4261 }
4262 ECHO='func_fallback_echo'
4263fi
4264
4265# func_echo_all arg...
4266# Invoke $ECHO with all args, space-separated.
4267func_echo_all ()
4268{
4269 $ECHO ""
4270}
4271
c45550e5 4272case $ECHO in
059850b5
AK
4273 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4274$as_echo "printf" >&6; } ;;
4275 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4276$as_echo "print -r" >&6; } ;;
4277 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4278$as_echo "cat" >&6; } ;;
4279esac
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
0fbeb4dc 4294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
47dc80f6 4295$as_echo_n "checking for a sed that does not truncate output... " >&6; }
059850b5 4296if ${ac_cv_path_SED+:} false; then :
47dc80f6 4297 $as_echo_n "(cached) " >&6
b9668ba4 4298else
5c706339
AK
4299 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4300 for ac_i in 1 2 3 4 5 6 7; do
4301 ac_script="$ac_script$as_nl$ac_script"
4302 done
47dc80f6 4303 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
0fbeb4dc 4304 { ac_script=; unset ac_script;}
47dc80f6 4305 if test -z "$SED"; then
5c706339 4306 ac_path_SED_found=false
47dc80f6
AK
4307 # Loop through the user's path and test for each of PROGNAME-LIST
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b9668ba4
AK
4309for as_dir in $PATH
4310do
4311 IFS=$as_save_IFS
4312 test -z "$as_dir" && as_dir=.
0fbeb4dc 4313 for ac_prog in sed gsed; do
47dc80f6
AK
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
0044e680 4316 as_fn_executable_p "$ac_path_SED" || continue
47dc80f6 4317# Check for GNU ac_path_SED and select it if it is found.
5c706339
AK
4318 # Check for GNU $ac_path_SED
4319case `"$ac_path_SED" --version 2>&1` in
4320*GNU*)
4321 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4322*)
4323 ac_count=0
47dc80f6 4324 $as_echo_n 0123456789 >"conftest.in"
5c706339
AK
4325 while :
4326 do
4327 cat "conftest.in" "conftest.in" >"conftest.tmp"
4328 mv "conftest.tmp" "conftest.in"
4329 cp "conftest.in" "conftest.nl"
47dc80f6 4330 $as_echo '' >> "conftest.nl"
5c706339
AK
4331 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
0fbeb4dc 4333 as_fn_arith $ac_count + 1 && ac_count=$as_val
5c706339
AK
4334 if test $ac_count -gt ${ac_path_SED_max-0}; then
4335 # Best one so far, save it but keep looking for a better one
4336 ac_cv_path_SED="$ac_path_SED"
4337 ac_path_SED_max=$ac_count
b9668ba4 4338 fi
5c706339
AK
4339 # 10*(2^10) chars as input seems more than enough
4340 test $ac_count -gt 10 && break
b9668ba4 4341 done
5c706339
AK
4342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4343esac
4344
47dc80f6
AK
4345 $ac_path_SED_found && break 3
4346 done
5c706339 4347 done
0fbeb4dc 4348 done
5c706339 4349IFS=$as_save_IFS
47dc80f6 4350 if test -z "$ac_cv_path_SED"; then
0fbeb4dc 4351 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
47dc80f6 4352 fi
5c706339
AK
4353else
4354 ac_cv_path_SED=$SED
4355fi
b9668ba4
AK
4356
4357fi
0fbeb4dc 4358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
47dc80f6 4359$as_echo "$ac_cv_path_SED" >&6; }
5c706339
AK
4360 SED="$ac_cv_path_SED"
4361 rm -f conftest.sed
4362
4363test -z "$SED" && SED=sed
4364Xsed="$SED -e 1s/^X//"
4365
4366
4367
4368
4369
4370
4371
4372
4373
b9668ba4 4374
b9668ba4 4375
0fbeb4dc 4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
47dc80f6 4377$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
059850b5 4378if ${ac_cv_path_GREP+:} false; then :
47dc80f6 4379 $as_echo_n "(cached) " >&6
b9668ba4 4380else
47dc80f6 4381 if test -z "$GREP"; then
b9668ba4 4382 ac_path_GREP_found=false
47dc80f6
AK
4383 # Loop through the user's path and test for each of PROGNAME-LIST
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b9668ba4
AK
4385for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4386do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
0fbeb4dc 4389 for ac_prog in grep ggrep; do
47dc80f6
AK
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
0044e680 4392 as_fn_executable_p "$ac_path_GREP" || continue
47dc80f6 4393# Check for GNU ac_path_GREP and select it if it is found.
b9668ba4
AK
4394 # Check for GNU $ac_path_GREP
4395case `"$ac_path_GREP" --version 2>&1` in
4396*GNU*)
4397 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4398*)
4399 ac_count=0
47dc80f6 4400 $as_echo_n 0123456789 >"conftest.in"
b9668ba4
AK
4401 while :
4402 do
4403 cat "conftest.in" "conftest.in" >"conftest.tmp"
4404 mv "conftest.tmp" "conftest.in"
4405 cp "conftest.in" "conftest.nl"
47dc80f6 4406 $as_echo 'GREP' >> "conftest.nl"
b9668ba4
AK
4407 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
0fbeb4dc 4409 as_fn_arith $ac_count + 1 && ac_count=$as_val
b9668ba4
AK
4410 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4411 # Best one so far, save it but keep looking for a better one
4412 ac_cv_path_GREP="$ac_path_GREP"
4413 ac_path_GREP_max=$ac_count
4414 fi
4415 # 10*(2^10) chars as input seems more than enough
4416 test $ac_count -gt 10 && break
4417 done
4418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4419esac
4420
47dc80f6
AK
4421 $ac_path_GREP_found && break 3
4422 done
b9668ba4 4423 done
0fbeb4dc 4424 done
b9668ba4 4425IFS=$as_save_IFS
47dc80f6 4426 if test -z "$ac_cv_path_GREP"; then
0fbeb4dc 4427 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
47dc80f6 4428 fi
b9668ba4
AK
4429else
4430 ac_cv_path_GREP=$GREP
4431fi
4432
b9668ba4 4433fi
0fbeb4dc 4434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
47dc80f6 4435$as_echo "$ac_cv_path_GREP" >&6; }
b9668ba4
AK
4436 GREP="$ac_cv_path_GREP"
4437
4438
0fbeb4dc 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
47dc80f6 4440$as_echo_n "checking for egrep... " >&6; }
059850b5 4441if ${ac_cv_path_EGREP+:} false; then :
47dc80f6 4442 $as_echo_n "(cached) " >&6
b9668ba4
AK
4443else
4444 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4445 then ac_cv_path_EGREP="$GREP -E"
4446 else
47dc80f6 4447 if test -z "$EGREP"; then
b9668ba4 4448 ac_path_EGREP_found=false
47dc80f6
AK
4449 # Loop through the user's path and test for each of PROGNAME-LIST
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b9668ba4
AK
4451for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4452do
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
0fbeb4dc 4455 for ac_prog in egrep; do
47dc80f6
AK
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
0044e680 4458 as_fn_executable_p "$ac_path_EGREP" || continue
47dc80f6 4459# Check for GNU ac_path_EGREP and select it if it is found.
b9668ba4
AK
4460 # Check for GNU $ac_path_EGREP
4461case `"$ac_path_EGREP" --version 2>&1` in
4462*GNU*)
4463 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4464*)
4465 ac_count=0
47dc80f6 4466 $as_echo_n 0123456789 >"conftest.in"
b9668ba4
AK
4467 while :
4468 do
4469 cat "conftest.in" "conftest.in" >"conftest.tmp"
4470 mv "conftest.tmp" "conftest.in"
4471 cp "conftest.in" "conftest.nl"
47dc80f6 4472 $as_echo 'EGREP' >> "conftest.nl"
b9668ba4
AK
4473 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
0fbeb4dc 4475 as_fn_arith $ac_count + 1 && ac_count=$as_val
b9668ba4
AK
4476 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4477 # Best one so far, save it but keep looking for a better one
4478 ac_cv_path_EGREP="$ac_path_EGREP"
4479 ac_path_EGREP_max=$ac_count
4480 fi
4481 # 10*(2^10) chars as input seems more than enough
4482 test $ac_count -gt 10 && break
4483 done
4484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4485esac
4486
47dc80f6
AK
4487 $ac_path_EGREP_found && break 3
4488 done
b9668ba4 4489 done
0fbeb4dc 4490 done
b9668ba4 4491IFS=$as_save_IFS
47dc80f6 4492 if test -z "$ac_cv_path_EGREP"; then
0fbeb4dc 4493 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
47dc80f6 4494 fi
b9668ba4
AK
4495else
4496 ac_cv_path_EGREP=$EGREP
4497fi
4498
b9668ba4
AK
4499 fi
4500fi
0fbeb4dc 4501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
47dc80f6 4502$as_echo "$ac_cv_path_EGREP" >&6; }
b9668ba4
AK
4503 EGREP="$ac_cv_path_EGREP"
4504
4505
0fbeb4dc 4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
47dc80f6 4507$as_echo_n "checking for fgrep... " >&6; }
059850b5 4508if ${ac_cv_path_FGREP+:} false; then :
47dc80f6 4509 $as_echo_n "(cached) " >&6
5c706339
AK
4510else
4511 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4512 then ac_cv_path_FGREP="$GREP -F"
4513 else
47dc80f6 4514 if test -z "$FGREP"; then
5c706339 4515 ac_path_FGREP_found=false
47dc80f6
AK
4516 # Loop through the user's path and test for each of PROGNAME-LIST
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5c706339
AK
4518for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4519do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
0fbeb4dc 4522 for ac_prog in fgrep; do
47dc80f6
AK
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
0044e680 4525 as_fn_executable_p "$ac_path_FGREP" || continue
47dc80f6 4526# Check for GNU ac_path_FGREP and select it if it is found.
5c706339
AK
4527 # Check for GNU $ac_path_FGREP
4528case `"$ac_path_FGREP" --version 2>&1` in
4529*GNU*)
4530 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4531*)
4532 ac_count=0
47dc80f6 4533 $as_echo_n 0123456789 >"conftest.in"
5c706339
AK
4534 while :
4535 do
4536 cat "conftest.in" "conftest.in" >"conftest.tmp"
4537 mv "conftest.tmp" "conftest.in"
4538 cp "conftest.in" "conftest.nl"
47dc80f6 4539 $as_echo 'FGREP' >> "conftest.nl"
5c706339
AK
4540 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
0fbeb4dc 4542 as_fn_arith $ac_count + 1 && ac_count=$as_val
5c706339
AK
4543 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4544 # Best one so far, save it but keep looking for a better one
4545 ac_cv_path_FGREP="$ac_path_FGREP"
4546 ac_path_FGREP_max=$ac_count
4547 fi
4548 # 10*(2^10) chars as input seems more than enough
4549 test $ac_count -gt 10 && break
4550 done
4551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4552esac
4553
47dc80f6
AK
4554 $ac_path_FGREP_found && break 3
4555 done
5c706339 4556 done
0fbeb4dc 4557 done
5c706339 4558IFS=$as_save_IFS
47dc80f6 4559 if test -z "$ac_cv_path_FGREP"; then
0fbeb4dc 4560 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
47dc80f6 4561 fi
b9668ba4 4562else
5c706339 4563 ac_cv_path_FGREP=$FGREP
b9668ba4
AK
4564fi
4565
5c706339
AK
4566 fi
4567fi
0fbeb4dc 4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
47dc80f6 4569$as_echo "$ac_cv_path_FGREP" >&6; }
5c706339
AK
4570 FGREP="$ac_cv_path_FGREP"
4571
4572
4573test -z "$GREP" && GREP=grep
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593# Check whether --with-gnu-ld was given.
0fbeb4dc 4594if test "${with_gnu_ld+set}" = set; then :
c45550e5 4595 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5c706339
AK
4596else
4597 with_gnu_ld=no
4598fi
4599
4600ac_prog=ld
c45550e5 4601if test yes = "$GCC"; then
b9668ba4 4602 # Check if gcc -print-prog-name=ld gives a path.
0fbeb4dc 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
47dc80f6 4604$as_echo_n "checking for ld used by $CC... " >&6; }
b9668ba4
AK
4605 case $host in
4606 *-*-mingw*)
c45550e5 4607 # gcc leaves a trailing carriage return, which upsets mingw
b9668ba4
AK
4608 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4609 *)
4610 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4611 esac
4612 case $ac_prog in
4613 # Accept absolute paths.
4614 [\\/]* | ?:[\\/]*)
4615 re_direlt='/[^/][^/]*/\.\./'
4616 # Canonicalize the pathname of ld
5c706339
AK
4617 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4618 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4619 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
b9668ba4 4620 done
c45550e5 4621 test -z "$LD" && LD=$ac_prog
b9668ba4
AK
4622 ;;
4623 "")
4624 # If it fails, then pretend we aren't using GCC.
4625 ac_prog=ld
4626 ;;
4627 *)
4628 # If it is relative, then search for the first ld in PATH.
4629 with_gnu_ld=unknown
4630 ;;
4631 esac
c45550e5 4632elif test yes = "$with_gnu_ld"; then
0fbeb4dc 4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
47dc80f6 4634$as_echo_n "checking for GNU ld... " >&6; }
b9668ba4 4635else
0fbeb4dc 4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
47dc80f6 4637$as_echo_n "checking for non-GNU ld... " >&6; }
b9668ba4 4638fi
059850b5 4639if ${lt_cv_path_LD+:} false; then :
47dc80f6 4640 $as_echo_n "(cached) " >&6
b9668ba4
AK
4641else
4642 if test -z "$LD"; then
c45550e5 4643 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
b9668ba4 4644 for ac_dir in $PATH; do
c45550e5 4645 IFS=$lt_save_ifs
b9668ba4
AK
4646 test -z "$ac_dir" && ac_dir=.
4647 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
c45550e5 4648 lt_cv_path_LD=$ac_dir/$ac_prog
b9668ba4
AK
4649 # Check to see if the program is GNU ld. I'd rather use --version,
4650 # but apparently some variants of GNU ld only accept -v.
4651 # Break only if it was the GNU/non-GNU ld that we prefer.
4652 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4653 *GNU* | *'with BFD'*)
c45550e5 4654 test no != "$with_gnu_ld" && break
b9668ba4
AK
4655 ;;
4656 *)
c45550e5 4657 test yes != "$with_gnu_ld" && break
b9668ba4
AK
4658 ;;
4659 esac
4660 fi
4661 done
c45550e5 4662 IFS=$lt_save_ifs
b9668ba4 4663else
c45550e5 4664 lt_cv_path_LD=$LD # Let the user override the test with a path.
b9668ba4
AK
4665fi
4666fi
4667
c45550e5 4668LD=$lt_cv_path_LD
b9668ba4 4669if test -n "$LD"; then
0fbeb4dc 4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
47dc80f6 4671$as_echo "$LD" >&6; }
b9668ba4 4672else
0fbeb4dc 4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 4674$as_echo "no" >&6; }
b9668ba4 4675fi
0fbeb4dc
AK
4676test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
47dc80f6 4678$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
059850b5 4679if ${lt_cv_prog_gnu_ld+:} false; then :
47dc80f6 4680 $as_echo_n "(cached) " >&6
b9668ba4
AK
4681else
4682 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4683case `$LD -v 2>&1 </dev/null` in
4684*GNU* | *'with BFD'*)
4685 lt_cv_prog_gnu_ld=yes
4686 ;;
4687*)
4688 lt_cv_prog_gnu_ld=no
4689 ;;
4690esac
4691fi
0fbeb4dc 4692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
47dc80f6 4693$as_echo "$lt_cv_prog_gnu_ld" >&6; }
b9668ba4
AK
4694with_gnu_ld=$lt_cv_prog_gnu_ld
4695
4696
b9668ba4 4697
5c706339
AK
4698
4699
4700
4701
4702
4703
0fbeb4dc 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
47dc80f6 4705$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
059850b5 4706if ${lt_cv_path_NM+:} false; then :
47dc80f6 4707 $as_echo_n "(cached) " >&6
b9668ba4
AK
4708else
4709 if test -n "$NM"; then
4710 # Let the user override the test.
c45550e5 4711 lt_cv_path_NM=$NM
b9668ba4 4712else
c45550e5 4713 lt_nm_to_check=${ac_tool_prefix}nm
b9668ba4
AK
4714 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4715 lt_nm_to_check="$lt_nm_to_check nm"
4716 fi
4717 for lt_tmp_nm in $lt_nm_to_check; do
c45550e5 4718 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
b9668ba4 4719 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
c45550e5 4720 IFS=$lt_save_ifs
b9668ba4 4721 test -z "$ac_dir" && ac_dir=.
c45550e5
AK
4722 tmp_nm=$ac_dir/$lt_tmp_nm
4723 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
b9668ba4 4724 # Check to see if the nm accepts a BSD-compat flag.
c45550e5 4725 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
b9668ba4
AK
4726 # nm: unknown option "B" ignored
4727 # Tru64's nm complains that /dev/null is an invalid object file
c45550e5
AK
4728 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4729 case $build_os in
4730 mingw*) lt_bad_file=conftest.nm/nofile ;;
4731 *) lt_bad_file=/dev/null ;;
4732 esac
4733 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4734 *$lt_bad_file* | *'Invalid file or object type'*)
b9668ba4 4735 lt_cv_path_NM="$tmp_nm -B"
c45550e5 4736 break 2
b9668ba4
AK
4737 ;;
4738 *)
4739 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4740 */dev/null*)
4741 lt_cv_path_NM="$tmp_nm -p"
c45550e5 4742 break 2
b9668ba4
AK
4743 ;;
4744 *)
4745 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4746 continue # so that we can try to find one that supports BSD flags
4747 ;;
4748 esac
4749 ;;
4750 esac
4751 fi
4752 done
c45550e5 4753 IFS=$lt_save_ifs
b9668ba4 4754 done
5c706339 4755 : ${lt_cv_path_NM=no}
b9668ba4
AK
4756fi
4757fi
0fbeb4dc 4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
47dc80f6 4759$as_echo "$lt_cv_path_NM" >&6; }
c45550e5
AK
4760if test no != "$lt_cv_path_NM"; then
4761 NM=$lt_cv_path_NM
5c706339
AK
4762else
4763 # Didn't find any BSD compatible name lister, look for dumpbin.
059850b5
AK
4764 if test -n "$DUMPBIN"; then :
4765 # Let the user override the test.
4766 else
4767 if test -n "$ac_tool_prefix"; then
4768 for ac_prog in dumpbin "link -dump"
5c706339
AK
4769 do
4770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4771set dummy $ac_tool_prefix$ac_prog; ac_word=$2
0fbeb4dc 4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 4773$as_echo_n "checking for $ac_word... " >&6; }
059850b5 4774if ${ac_cv_prog_DUMPBIN+:} false; then :
47dc80f6 4775 $as_echo_n "(cached) " >&6
b9668ba4 4776else
5c706339
AK
4777 if test -n "$DUMPBIN"; then
4778 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4779else
4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
0fbeb4dc 4785 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 4786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 4787 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
0fbeb4dc 4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
4789 break 2
4790 fi
4791done
0fbeb4dc 4792 done
5c706339 4793IFS=$as_save_IFS
b9668ba4 4794
5c706339
AK
4795fi
4796fi
4797DUMPBIN=$ac_cv_prog_DUMPBIN
4798if test -n "$DUMPBIN"; then
0fbeb4dc 4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
47dc80f6 4800$as_echo "$DUMPBIN" >&6; }
5c706339 4801else
0fbeb4dc 4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 4803$as_echo "no" >&6; }
5c706339 4804fi
b9668ba4 4805
b9668ba4 4806
5c706339
AK
4807 test -n "$DUMPBIN" && break
4808 done
4809fi
4810if test -z "$DUMPBIN"; then
4811 ac_ct_DUMPBIN=$DUMPBIN
059850b5 4812 for ac_prog in dumpbin "link -dump"
5c706339
AK
4813do
4814 # Extract the first word of "$ac_prog", so it can be a program name with args.
4815set dummy $ac_prog; ac_word=$2
0fbeb4dc 4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 4817$as_echo_n "checking for $ac_word... " >&6; }
059850b5 4818if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
47dc80f6 4819 $as_echo_n "(cached) " >&6
5c706339
AK
4820else
4821 if test -n "$ac_ct_DUMPBIN"; then
4822 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4823else
4824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825for as_dir in $PATH
4826do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
0fbeb4dc 4829 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 4830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 4831 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
0fbeb4dc 4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
4833 break 2
4834 fi
4835done
0fbeb4dc 4836 done
5c706339 4837IFS=$as_save_IFS
b9668ba4 4838
5c706339
AK
4839fi
4840fi
4841ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4842if test -n "$ac_ct_DUMPBIN"; then
0fbeb4dc 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
47dc80f6 4844$as_echo "$ac_ct_DUMPBIN" >&6; }
5c706339 4845else
0fbeb4dc 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 4847$as_echo "no" >&6; }
5c706339 4848fi
b9668ba4 4849
b9668ba4 4850
5c706339
AK
4851 test -n "$ac_ct_DUMPBIN" && break
4852done
b9668ba4 4853
5c706339
AK
4854 if test "x$ac_ct_DUMPBIN" = x; then
4855 DUMPBIN=":"
b9668ba4 4856 else
5c706339
AK
4857 case $cross_compiling:$ac_tool_warned in
4858yes:)
0fbeb4dc 4859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 4860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5c706339
AK
4861ac_tool_warned=yes ;;
4862esac
4863 DUMPBIN=$ac_ct_DUMPBIN
b9668ba4 4864 fi
5c706339 4865fi
b9668ba4 4866
c45550e5 4867 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
059850b5 4868 *COFF*)
c45550e5 4869 DUMPBIN="$DUMPBIN -symbols -headers"
059850b5
AK
4870 ;;
4871 *)
4872 DUMPBIN=:
4873 ;;
4874 esac
4875 fi
b9668ba4 4876
c45550e5
AK
4877 if test : != "$DUMPBIN"; then
4878 NM=$DUMPBIN
5c706339
AK
4879 fi
4880fi
4881test -z "$NM" && NM=nm
b9668ba4 4882
b9668ba4 4883
b9668ba4 4884
b9668ba4 4885
b9668ba4 4886
b9668ba4 4887
0fbeb4dc 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
47dc80f6 4889$as_echo_n "checking the name lister ($NM) interface... " >&6; }
059850b5 4890if ${lt_cv_nm_interface+:} false; then :
47dc80f6 4891 $as_echo_n "(cached) " >&6
5c706339
AK
4892else
4893 lt_cv_nm_interface="BSD nm"
4894 echo "int some_variable = 0;" > conftest.$ac_ext
059850b5 4895 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5c706339
AK
4896 (eval "$ac_compile" 2>conftest.err)
4897 cat conftest.err >&5
059850b5 4898 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5c706339
AK
4899 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4900 cat conftest.err >&5
059850b5 4901 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5c706339
AK
4902 cat conftest.out >&5
4903 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4904 lt_cv_nm_interface="MS dumpbin"
b9668ba4 4905 fi
5c706339
AK
4906 rm -f conftest*
4907fi
0fbeb4dc 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
47dc80f6 4909$as_echo "$lt_cv_nm_interface" >&6; }
b9668ba4 4910
5c706339 4911# find the maximum length of command line arguments
0fbeb4dc 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
47dc80f6 4913$as_echo_n "checking the maximum length of command line arguments... " >&6; }
059850b5 4914if ${lt_cv_sys_max_cmd_len+:} false; then :
47dc80f6 4915 $as_echo_n "(cached) " >&6
5c706339
AK
4916else
4917 i=0
c45550e5 4918 teststring=ABCD
b9668ba4 4919
5c706339
AK
4920 case $build_os in
4921 msdosdjgpp*)
4922 # On DJGPP, this test can blow up pretty badly due to problems in libc
4923 # (any single argument exceeding 2000 bytes causes a buffer overrun
4924 # during glob expansion). Even if it were fixed, the result of this
4925 # check would be larger than it should be.
4926 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4927 ;;
b9668ba4 4928
5c706339
AK
4929 gnu*)
4930 # Under GNU Hurd, this test is not required because there is
4931 # no limit to the length of command line arguments.
4932 # Libtool will interpret -1 as no limit whatsoever
4933 lt_cv_sys_max_cmd_len=-1;
b9668ba4 4934 ;;
5c706339 4935
47dc80f6 4936 cygwin* | mingw* | cegcc*)
5c706339
AK
4937 # On Win9x/ME, this test blows up -- it succeeds, but takes
4938 # about 5 minutes as the teststring grows exponentially.
4939 # Worse, since 9x/ME are not pre-emptively multitasking,
4940 # you end up with a "frozen" computer, even though with patience
4941 # the test eventually succeeds (with a max line length of 256k).
4942 # Instead, let's just punt: use the minimum linelength reported by
4943 # all of the supported platforms: 8192 (on NT/2K/XP).
4944 lt_cv_sys_max_cmd_len=8192;
b9668ba4 4945 ;;
5c706339 4946
059850b5
AK
4947 mint*)
4948 # On MiNT this can take a long time and run out of memory.
4949 lt_cv_sys_max_cmd_len=8192;
4950 ;;
4951
5c706339
AK
4952 amigaos*)
4953 # On AmigaOS with pdksh, this test takes hours, literally.
4954 # So we just punt and use a minimum line length of 8192.
4955 lt_cv_sys_max_cmd_len=8192;
b9668ba4 4956 ;;
5c706339 4957
c45550e5 4958 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5c706339
AK
4959 # This has been around since 386BSD, at least. Likely further.
4960 if test -x /sbin/sysctl; then
4961 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4962 elif test -x /usr/sbin/sysctl; then
4963 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4964 else
4965 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4966 fi
4967 # And add a safety zone
4968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
b9668ba4 4970 ;;
5c706339
AK
4971
4972 interix*)
4973 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4974 lt_cv_sys_max_cmd_len=196608
b9668ba4 4975 ;;
5c706339 4976
059850b5
AK
4977 os2*)
4978 # The test takes a long time on OS/2.
4979 lt_cv_sys_max_cmd_len=8192
4980 ;;
4981
5c706339
AK
4982 osf*)
4983 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4984 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4985 # nice to cause kernel panics so lets avoid the loop below.
4986 # First set a reasonable default.
4987 lt_cv_sys_max_cmd_len=16384
4988 #
4989 if test -x /sbin/sysconfig; then
4990 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4991 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4992 esac
4993 fi
4994 ;;
4995 sco3.2v5*)
4996 lt_cv_sys_max_cmd_len=102400
4997 ;;
4998 sysv5* | sco5v6* | sysv4.2uw2*)
4999 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5000 if test -n "$kargmax"; then
5001 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5002 else
5003 lt_cv_sys_max_cmd_len=32768
5004 fi
5005 ;;
5006 *)
5007 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
0044e680 5008 if test -n "$lt_cv_sys_max_cmd_len" && \
c45550e5 5009 test undefined != "$lt_cv_sys_max_cmd_len"; then
5c706339
AK
5010 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5011 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5012 else
5013 # Make teststring a little bigger before we do anything with it.
5014 # a 1K string should be a reasonable start.
c45550e5 5015 for i in 1 2 3 4 5 6 7 8; do
5c706339
AK
5016 teststring=$teststring$teststring
5017 done
5018 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5019 # If test is not a shell built-in, we'll probably end up computing a
5020 # maximum length that is only half of the actual maximum length, but
5021 # we can't tell.
c45550e5 5022 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
059850b5 5023 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
c45550e5 5024 test 17 != "$i" # 1/2 MB should be enough
5c706339
AK
5025 do
5026 i=`expr $i + 1`
5027 teststring=$teststring$teststring
5028 done
5029 # Only check the string length outside the loop.
5030 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5031 teststring=
5032 # Add a significant safety factor because C++ compilers can tack on
5033 # massive amounts of additional arguments before passing them to the
5034 # linker. It appears as though 1/2 is a usable value.
5035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5036 fi
b9668ba4
AK
5037 ;;
5038 esac
b9668ba4 5039
5c706339 5040fi
b9668ba4 5041
c45550e5 5042if test -n "$lt_cv_sys_max_cmd_len"; then
0fbeb4dc 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
47dc80f6 5044$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5c706339 5045else
0fbeb4dc 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
47dc80f6 5047$as_echo "none" >&6; }
b9668ba4 5048fi
5c706339 5049max_cmd_len=$lt_cv_sys_max_cmd_len
b9668ba4
AK
5050
5051
5052
5053
b9668ba4 5054
b9668ba4 5055
5c706339
AK
5056: ${CP="cp -f"}
5057: ${MV="mv -f"}
5058: ${RM="rm -f"}
b9668ba4 5059
5c706339
AK
5060if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5061 lt_unset=unset
5062else
5063 lt_unset=false
b9668ba4
AK
5064fi
5065
b9668ba4 5066
5c706339
AK
5067
5068
5069
5070# test EBCDIC or ASCII
5071case `echo X|tr X '\101'` in
5072 A) # ASCII based system
5073 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5074 lt_SP2NL='tr \040 \012'
5075 lt_NL2SP='tr \015\012 \040\040'
b9668ba4 5076 ;;
5c706339
AK
5077 *) # EBCDIC based system
5078 lt_SP2NL='tr \100 \n'
5079 lt_NL2SP='tr \r\n \100\100'
b9668ba4 5080 ;;
5c706339 5081esac
b9668ba4 5082
b9668ba4 5083
b9668ba4 5084
b9668ba4 5085
b9668ba4 5086
b9668ba4 5087
b9668ba4 5088
b9668ba4 5089
5c706339 5090
059850b5
AK
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5092$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5093if ${lt_cv_to_host_file_cmd+:} false; then :
5094 $as_echo_n "(cached) " >&6
5095else
5096 case $host in
5097 *-*-mingw* )
5098 case $build in
5099 *-*-mingw* ) # actually msys
5100 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5101 ;;
5102 *-*-cygwin* )
5103 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5104 ;;
5105 * ) # otherwise, assume *nix
5106 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5107 ;;
5108 esac
5109 ;;
5110 *-*-cygwin* )
5111 case $build in
5112 *-*-mingw* ) # actually msys
5113 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5114 ;;
5115 *-*-cygwin* )
5116 lt_cv_to_host_file_cmd=func_convert_file_noop
5117 ;;
5118 * ) # otherwise, assume *nix
5119 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5120 ;;
5121 esac
5122 ;;
5123 * ) # unhandled hosts (and "normal" native builds)
5124 lt_cv_to_host_file_cmd=func_convert_file_noop
5125 ;;
5126esac
5127
5128fi
5129
5130to_host_file_cmd=$lt_cv_to_host_file_cmd
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5132$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5133
5134
5135
5136
5137
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5139$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5140if ${lt_cv_to_tool_file_cmd+:} false; then :
5141 $as_echo_n "(cached) " >&6
5142else
5143 #assume ordinary cross tools, or native build.
5144lt_cv_to_tool_file_cmd=func_convert_file_noop
5145case $host in
5146 *-*-mingw* )
5147 case $build in
5148 *-*-mingw* ) # actually msys
5149 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5150 ;;
5151 esac
5152 ;;
5153esac
5154
5155fi
5156
5157to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5159$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5160
5161
5162
5163
5164
0fbeb4dc 5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
47dc80f6 5166$as_echo_n "checking for $LD option to reload object files... " >&6; }
059850b5 5167if ${lt_cv_ld_reload_flag+:} false; then :
47dc80f6 5168 $as_echo_n "(cached) " >&6
5c706339
AK
5169else
5170 lt_cv_ld_reload_flag='-r'
b9668ba4 5171fi
0fbeb4dc 5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
47dc80f6 5173$as_echo "$lt_cv_ld_reload_flag" >&6; }
5c706339
AK
5174reload_flag=$lt_cv_ld_reload_flag
5175case $reload_flag in
5176"" | " "*) ;;
5177*) reload_flag=" $reload_flag" ;;
b9668ba4 5178esac
5c706339
AK
5179reload_cmds='$LD$reload_flag -o $output$reload_objs'
5180case $host_os in
059850b5 5181 cygwin* | mingw* | pw32* | cegcc*)
c45550e5 5182 if test yes != "$GCC"; then
059850b5
AK
5183 reload_cmds=false
5184 fi
5185 ;;
5c706339 5186 darwin*)
c45550e5
AK
5187 if test yes = "$GCC"; then
5188 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5c706339
AK
5189 else
5190 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5191 fi
5192 ;;
b9668ba4 5193esac
b9668ba4 5194
b9668ba4 5195
b9668ba4 5196
b9668ba4 5197
b9668ba4 5198
b9668ba4 5199
b9668ba4 5200
b9668ba4 5201
b9668ba4 5202
47dc80f6
AK
5203if test -n "$ac_tool_prefix"; then
5204 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5205set dummy ${ac_tool_prefix}objdump; ac_word=$2
0fbeb4dc 5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 5207$as_echo_n "checking for $ac_word... " >&6; }
059850b5 5208if ${ac_cv_prog_OBJDUMP+:} false; then :
47dc80f6
AK
5209 $as_echo_n "(cached) " >&6
5210else
5211 if test -n "$OBJDUMP"; then
5212 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5213else
5214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH
5216do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
0fbeb4dc 5219 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 5220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47dc80f6 5221 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
0fbeb4dc 5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47dc80f6
AK
5223 break 2
5224 fi
5225done
0fbeb4dc 5226 done
47dc80f6
AK
5227IFS=$as_save_IFS
5228
5229fi
5230fi
5231OBJDUMP=$ac_cv_prog_OBJDUMP
5232if test -n "$OBJDUMP"; then
0fbeb4dc 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
47dc80f6
AK
5234$as_echo "$OBJDUMP" >&6; }
5235else
0fbeb4dc 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6
AK
5237$as_echo "no" >&6; }
5238fi
5239
5240
5241fi
5242if test -z "$ac_cv_prog_OBJDUMP"; then
5243 ac_ct_OBJDUMP=$OBJDUMP
5244 # Extract the first word of "objdump", so it can be a program name with args.
5245set dummy objdump; ac_word=$2
0fbeb4dc 5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 5247$as_echo_n "checking for $ac_word... " >&6; }
059850b5 5248if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
47dc80f6
AK
5249 $as_echo_n "(cached) " >&6
5250else
5251 if test -n "$ac_ct_OBJDUMP"; then
5252 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5253else
5254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255for as_dir in $PATH
5256do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
0fbeb4dc 5259 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 5260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47dc80f6 5261 ac_cv_prog_ac_ct_OBJDUMP="objdump"
0fbeb4dc 5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47dc80f6
AK
5263 break 2
5264 fi
5265done
0fbeb4dc 5266 done
47dc80f6
AK
5267IFS=$as_save_IFS
5268
5269fi
5270fi
5271ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5272if test -n "$ac_ct_OBJDUMP"; then
0fbeb4dc 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
47dc80f6
AK
5274$as_echo "$ac_ct_OBJDUMP" >&6; }
5275else
0fbeb4dc 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6
AK
5277$as_echo "no" >&6; }
5278fi
5279
5280 if test "x$ac_ct_OBJDUMP" = x; then
5281 OBJDUMP="false"
5282 else
5283 case $cross_compiling:$ac_tool_warned in
5284yes:)
0fbeb4dc 5285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6
AK
5286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5287ac_tool_warned=yes ;;
5288esac
5289 OBJDUMP=$ac_ct_OBJDUMP
5290 fi
5291else
5292 OBJDUMP="$ac_cv_prog_OBJDUMP"
5293fi
5294
5295test -z "$OBJDUMP" && OBJDUMP=objdump
5296
5297
5298
5299
5300
5301
5302
5303
b9668ba4 5304
0fbeb4dc 5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
47dc80f6 5306$as_echo_n "checking how to recognize dependent libraries... " >&6; }
059850b5 5307if ${lt_cv_deplibs_check_method+:} false; then :
47dc80f6 5308 $as_echo_n "(cached) " >&6
b9668ba4 5309else
5c706339
AK
5310 lt_cv_file_magic_cmd='$MAGIC_CMD'
5311lt_cv_file_magic_test_file=
5312lt_cv_deplibs_check_method='unknown'
5313# Need to set the preceding variable on all platforms that support
5314# interlibrary dependencies.
5315# 'none' -- dependencies not supported.
c45550e5 5316# 'unknown' -- same as none, but documents that we really don't know.
5c706339
AK
5317# 'pass_all' -- all dependencies passed with no checks.
5318# 'test_compile' -- check by making test program.
5319# 'file_magic [[regex]]' -- check by looking for files in library path
c45550e5
AK
5320# that responds to the $file_magic_cmd with a given extended regex.
5321# If you have 'file' or equivalent on your system and you're not sure
5322# whether 'pass_all' will *always* work, you probably want this one.
b9668ba4 5323
5c706339
AK
5324case $host_os in
5325aix[4-9]*)
5326 lt_cv_deplibs_check_method=pass_all
5327 ;;
b9668ba4 5328
5c706339
AK
5329beos*)
5330 lt_cv_deplibs_check_method=pass_all
5331 ;;
b9668ba4 5332
5c706339
AK
5333bsdi[45]*)
5334 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5335 lt_cv_file_magic_cmd='/usr/bin/file -L'
5336 lt_cv_file_magic_test_file=/shlib/libc.so
5337 ;;
b9668ba4 5338
5c706339
AK
5339cygwin*)
5340 # func_win32_libid is a shell function defined in ltmain.sh
5341 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5342 lt_cv_file_magic_cmd='func_win32_libid'
5343 ;;
b9668ba4 5344
5c706339
AK
5345mingw* | pw32*)
5346 # Base MSYS/MinGW do not provide the 'file' command needed by
5347 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5348 # unless we find 'file', for example because we are cross-compiling.
c45550e5 5349 if ( file / ) >/dev/null 2>&1; then
5c706339
AK
5350 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5351 lt_cv_file_magic_cmd='func_win32_libid'
5352 else
059850b5
AK
5353 # Keep this pattern in sync with the one in func_win32_libid.
5354 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5c706339
AK
5355 lt_cv_file_magic_cmd='$OBJDUMP -f'
5356 fi
5357 ;;
b9668ba4 5358
059850b5 5359cegcc*)
47dc80f6
AK
5360 # use the weaker test based on 'objdump'. See mingw*.
5361 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5362 lt_cv_file_magic_cmd='$OBJDUMP -f'
5363 ;;
5364
5c706339
AK
5365darwin* | rhapsody*)
5366 lt_cv_deplibs_check_method=pass_all
5367 ;;
b9668ba4 5368
5c706339
AK
5369freebsd* | dragonfly*)
5370 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5371 case $host_cpu in
5372 i*86 )
5373 # Not sure whether the presence of OpenBSD here was a mistake.
5374 # Let's accept both of them until this is cleared up.
5375 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5376 lt_cv_file_magic_cmd=/usr/bin/file
5377 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5378 ;;
5379 esac
5380 else
5381 lt_cv_deplibs_check_method=pass_all
5382 fi
5383 ;;
b9668ba4 5384
059850b5
AK
5385haiku*)
5386 lt_cv_deplibs_check_method=pass_all
5387 ;;
5388
5c706339
AK
5389hpux10.20* | hpux11*)
5390 lt_cv_file_magic_cmd=/usr/bin/file
5391 case $host_cpu in
5392 ia64*)
5393 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5394 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5395 ;;
5396 hppa*64*)
059850b5 5397 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]'
5c706339
AK
5398 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5399 ;;
5400 *)
059850b5 5401 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5c706339
AK
5402 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5403 ;;
5404 esac
5405 ;;
b9668ba4 5406
5c706339
AK
5407interix[3-9]*)
5408 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5409 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5410 ;;
b9668ba4 5411
5c706339
AK
5412irix5* | irix6* | nonstopux*)
5413 case $LD in
5414 *-32|*"-32 ") libmagic=32-bit;;
5415 *-n32|*"-n32 ") libmagic=N32;;
5416 *-64|*"-64 ") libmagic=64-bit;;
5417 *) libmagic=never-match;;
5418 esac
5419 lt_cv_deplibs_check_method=pass_all
5420 ;;
b9668ba4 5421
059850b5 5422# This must be glibc/ELF.
0044e680 5423linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5c706339
AK
5424 lt_cv_deplibs_check_method=pass_all
5425 ;;
b9668ba4 5426
c45550e5 5427netbsd*)
5c706339
AK
5428 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5429 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5430 else
5431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5432 fi
5433 ;;
b9668ba4 5434
5c706339
AK
5435newos6*)
5436 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5437 lt_cv_file_magic_cmd=/usr/bin/file
5438 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5439 ;;
b9668ba4 5440
5c706339
AK
5441*nto* | *qnx*)
5442 lt_cv_deplibs_check_method=pass_all
5443 ;;
b9668ba4 5444
c45550e5
AK
5445openbsd* | bitrig*)
5446 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5c706339
AK
5447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5448 else
5449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5450 fi
5451 ;;
5452
5453osf3* | osf4* | osf5*)
5454 lt_cv_deplibs_check_method=pass_all
5455 ;;
5456
5457rdos*)
5458 lt_cv_deplibs_check_method=pass_all
5459 ;;
5460
5461solaris*)
5462 lt_cv_deplibs_check_method=pass_all
5463 ;;
5464
5465sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5466 lt_cv_deplibs_check_method=pass_all
5467 ;;
5468
5469sysv4 | sysv4.3*)
5470 case $host_vendor in
5471 motorola)
5472 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]'
5473 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5474 ;;
5475 ncr)
5476 lt_cv_deplibs_check_method=pass_all
5477 ;;
5478 sequent)
5479 lt_cv_file_magic_cmd='/bin/file'
5480 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5481 ;;
5482 sni)
5483 lt_cv_file_magic_cmd='/bin/file'
5484 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5485 lt_cv_file_magic_test_file=/lib/libc.so
5486 ;;
5487 siemens)
5488 lt_cv_deplibs_check_method=pass_all
5489 ;;
5490 pc)
5491 lt_cv_deplibs_check_method=pass_all
5492 ;;
5493 esac
5494 ;;
5495
5496tpf*)
5497 lt_cv_deplibs_check_method=pass_all
5498 ;;
c45550e5
AK
5499os2*)
5500 lt_cv_deplibs_check_method=pass_all
5501 ;;
b9668ba4 5502esac
b9668ba4 5503
b9668ba4 5504fi
0fbeb4dc 5505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
47dc80f6 5506$as_echo "$lt_cv_deplibs_check_method" >&6; }
059850b5
AK
5507
5508file_magic_glob=
5509want_nocaseglob=no
5510if test "$build" = "$host"; then
5511 case $host_os in
5512 mingw* | pw32*)
5513 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5514 want_nocaseglob=yes
5515 else
5516 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5517 fi
5518 ;;
5519 esac
5520fi
5521
5c706339
AK
5522file_magic_cmd=$lt_cv_file_magic_cmd
5523deplibs_check_method=$lt_cv_deplibs_check_method
5524test -z "$deplibs_check_method" && deplibs_check_method=unknown
b9668ba4 5525
b9668ba4 5526
b9668ba4 5527
b9668ba4
AK
5528
5529
5530
5c706339
AK
5531
5532
5533
5534
059850b5
AK
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5c706339
AK
5545
5546
5547if test -n "$ac_tool_prefix"; then
059850b5
AK
5548 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5549set dummy ${ac_tool_prefix}dlltool; ac_word=$2
0fbeb4dc 5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 5551$as_echo_n "checking for $ac_word... " >&6; }
059850b5 5552if ${ac_cv_prog_DLLTOOL+:} false; then :
47dc80f6 5553 $as_echo_n "(cached) " >&6
b9668ba4 5554else
059850b5
AK
5555 if test -n "$DLLTOOL"; then
5556 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
b9668ba4 5557else
5c706339
AK
5558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559for as_dir in $PATH
5560do
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
0fbeb4dc 5563 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 5564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
059850b5 5565 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
0fbeb4dc 5566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
5567 break 2
5568 fi
5569done
0fbeb4dc 5570 done
5c706339 5571IFS=$as_save_IFS
b9668ba4 5572
5c706339
AK
5573fi
5574fi
059850b5
AK
5575DLLTOOL=$ac_cv_prog_DLLTOOL
5576if test -n "$DLLTOOL"; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5578$as_echo "$DLLTOOL" >&6; }
5c706339 5579else
0fbeb4dc 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 5581$as_echo "no" >&6; }
b9668ba4
AK
5582fi
5583
b9668ba4 5584
5c706339 5585fi
059850b5
AK
5586if test -z "$ac_cv_prog_DLLTOOL"; then
5587 ac_ct_DLLTOOL=$DLLTOOL
5588 # Extract the first word of "dlltool", so it can be a program name with args.
5589set dummy dlltool; ac_word=$2
0fbeb4dc 5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 5591$as_echo_n "checking for $ac_word... " >&6; }
059850b5 5592if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
47dc80f6 5593 $as_echo_n "(cached) " >&6
b9668ba4 5594else
059850b5
AK
5595 if test -n "$ac_ct_DLLTOOL"; then
5596 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5c706339
AK
5597else
5598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599for as_dir in $PATH
5600do
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
0fbeb4dc 5603 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 5604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
059850b5 5605 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
0fbeb4dc 5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
5607 break 2
5608 fi
5609done
0fbeb4dc 5610 done
5c706339 5611IFS=$as_save_IFS
b9668ba4 5612
5c706339
AK
5613fi
5614fi
059850b5
AK
5615ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5616if test -n "$ac_ct_DLLTOOL"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5618$as_echo "$ac_ct_DLLTOOL" >&6; }
5c706339 5619else
0fbeb4dc 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 5621$as_echo "no" >&6; }
b9668ba4
AK
5622fi
5623
059850b5
AK
5624 if test "x$ac_ct_DLLTOOL" = x; then
5625 DLLTOOL="false"
5c706339
AK
5626 else
5627 case $cross_compiling:$ac_tool_warned in
5628yes:)
0fbeb4dc 5629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 5630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5c706339 5631ac_tool_warned=yes ;;
b9668ba4 5632esac
059850b5 5633 DLLTOOL=$ac_ct_DLLTOOL
5c706339 5634 fi
b9668ba4 5635else
059850b5 5636 DLLTOOL="$ac_cv_prog_DLLTOOL"
b9668ba4 5637fi
b9668ba4 5638
059850b5
AK
5639test -z "$DLLTOOL" && DLLTOOL=dlltool
5640
5641
5642
5643
5644
b9668ba4 5645
b9668ba4 5646
b9668ba4 5647
5c706339
AK
5648
5649
059850b5
AK
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5651$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5652if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5653 $as_echo_n "(cached) " >&6
5654else
5655 lt_cv_sharedlib_from_linklib_cmd='unknown'
5656
5657case $host_os in
5658cygwin* | mingw* | pw32* | cegcc*)
c45550e5
AK
5659 # two different shell functions defined in ltmain.sh;
5660 # decide which one to use based on capabilities of $DLLTOOL
059850b5
AK
5661 case `$DLLTOOL --help 2>&1` in
5662 *--identify-strict*)
5663 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5664 ;;
5665 *)
5666 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5667 ;;
5668 esac
5669 ;;
5670*)
5671 # fallback: assume linklib IS sharedlib
c45550e5 5672 lt_cv_sharedlib_from_linklib_cmd=$ECHO
059850b5
AK
5673 ;;
5674esac
5675
5676fi
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5678$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5679sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5680test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5681
5682
5c706339
AK
5683
5684
5685
5686
5687
5688
5689if test -n "$ac_tool_prefix"; then
059850b5
AK
5690 for ac_prog in ar
5691 do
5692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5693set dummy $ac_tool_prefix$ac_prog; ac_word=$2
0fbeb4dc 5694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 5695$as_echo_n "checking for $ac_word... " >&6; }
059850b5 5696if ${ac_cv_prog_AR+:} false; then :
47dc80f6 5697 $as_echo_n "(cached) " >&6
b9668ba4 5698else
059850b5
AK
5699 if test -n "$AR"; then
5700 ac_cv_prog_AR="$AR" # Let the user override the test.
b9668ba4
AK
5701else
5702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703for as_dir in $PATH
5704do
5705 IFS=$as_save_IFS
5706 test -z "$as_dir" && as_dir=.
0fbeb4dc 5707 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 5708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
059850b5 5709 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
0fbeb4dc 5710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
5711 break 2
5712 fi
5713done
0fbeb4dc 5714 done
b9668ba4
AK
5715IFS=$as_save_IFS
5716
5717fi
5718fi
059850b5
AK
5719AR=$ac_cv_prog_AR
5720if test -n "$AR"; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5722$as_echo "$AR" >&6; }
b9668ba4 5723else
0fbeb4dc 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 5725$as_echo "no" >&6; }
b9668ba4
AK
5726fi
5727
5728
059850b5
AK
5729 test -n "$AR" && break
5730 done
b9668ba4 5731fi
059850b5
AK
5732if test -z "$AR"; then
5733 ac_ct_AR=$AR
5734 for ac_prog in ar
5735do
5736 # Extract the first word of "$ac_prog", so it can be a program name with args.
5737set dummy $ac_prog; ac_word=$2
0fbeb4dc 5738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 5739$as_echo_n "checking for $ac_word... " >&6; }
059850b5 5740if ${ac_cv_prog_ac_ct_AR+:} false; then :
47dc80f6 5741 $as_echo_n "(cached) " >&6
b9668ba4 5742else
059850b5
AK
5743 if test -n "$ac_ct_AR"; then
5744 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b9668ba4
AK
5745else
5746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747for as_dir in $PATH
5748do
5749 IFS=$as_save_IFS
5750 test -z "$as_dir" && as_dir=.
0fbeb4dc 5751 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 5752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
059850b5 5753 ac_cv_prog_ac_ct_AR="$ac_prog"
0fbeb4dc 5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
5755 break 2
5756 fi
5757done
0fbeb4dc 5758 done
b9668ba4
AK
5759IFS=$as_save_IFS
5760
5761fi
5762fi
059850b5
AK
5763ac_ct_AR=$ac_cv_prog_ac_ct_AR
5764if test -n "$ac_ct_AR"; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5766$as_echo "$ac_ct_AR" >&6; }
b9668ba4 5767else
0fbeb4dc 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 5769$as_echo "no" >&6; }
b9668ba4
AK
5770fi
5771
059850b5
AK
5772
5773 test -n "$ac_ct_AR" && break
5774done
5775
5776 if test "x$ac_ct_AR" = x; then
5777 AR="false"
5778 else
5779 case $cross_compiling:$ac_tool_warned in
5780yes:)
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5783ac_tool_warned=yes ;;
5784esac
5785 AR=$ac_ct_AR
5786 fi
5787fi
5788
5789: ${AR=ar}
5790: ${AR_FLAGS=cru}
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5803$as_echo_n "checking for archiver @FILE support... " >&6; }
5804if ${lt_cv_ar_at_file+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806else
5807 lt_cv_ar_at_file=no
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809/* end confdefs.h. */
5810
5811int
5812main ()
5813{
5814
5815 ;
5816 return 0;
5817}
5818_ACEOF
5819if ac_fn_c_try_compile "$LINENO"; then :
5820 echo conftest.$ac_objext > conftest.lst
5821 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5823 (eval $lt_ar_try) 2>&5
5824 ac_status=$?
5825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5826 test $ac_status = 0; }
c45550e5 5827 if test 0 -eq "$ac_status"; then
059850b5
AK
5828 # Ensure the archiver fails upon bogus file names.
5829 rm -f conftest.$ac_objext libconftest.a
5830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5831 (eval $lt_ar_try) 2>&5
5832 ac_status=$?
5833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5834 test $ac_status = 0; }
c45550e5 5835 if test 0 -ne "$ac_status"; then
059850b5
AK
5836 lt_cv_ar_at_file=@
5837 fi
5838 fi
5839 rm -f conftest.* libconftest.a
5840
5841fi
5842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843
5844fi
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5846$as_echo "$lt_cv_ar_at_file" >&6; }
5847
c45550e5 5848if test no = "$lt_cv_ar_at_file"; then
059850b5
AK
5849 archiver_list_spec=
5850else
5851 archiver_list_spec=$lt_cv_ar_at_file
5852fi
5853
5854
5855
5856
5857
5858
5859
5860if test -n "$ac_tool_prefix"; then
5861 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5862set dummy ${ac_tool_prefix}strip; ac_word=$2
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864$as_echo_n "checking for $ac_word... " >&6; }
5865if ${ac_cv_prog_STRIP+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867else
5868 if test -n "$STRIP"; then
5869 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5870else
5871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872for as_dir in $PATH
5873do
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 5877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
059850b5
AK
5878 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 break 2
5881 fi
5882done
5883 done
5884IFS=$as_save_IFS
5885
5886fi
5887fi
5888STRIP=$ac_cv_prog_STRIP
5889if test -n "$STRIP"; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5891$as_echo "$STRIP" >&6; }
5892else
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894$as_echo "no" >&6; }
5895fi
5896
5897
5898fi
5899if test -z "$ac_cv_prog_STRIP"; then
5900 ac_ct_STRIP=$STRIP
5901 # Extract the first word of "strip", so it can be a program name with args.
5902set dummy strip; ac_word=$2
5903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904$as_echo_n "checking for $ac_word... " >&6; }
5905if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5906 $as_echo_n "(cached) " >&6
5907else
5908 if test -n "$ac_ct_STRIP"; then
5909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5910else
5911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912for as_dir in $PATH
5913do
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 5917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
059850b5
AK
5918 ac_cv_prog_ac_ct_STRIP="strip"
5919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 break 2
5921 fi
5922done
5923 done
5924IFS=$as_save_IFS
5925
5926fi
5927fi
5928ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5929if test -n "$ac_ct_STRIP"; then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5931$as_echo "$ac_ct_STRIP" >&6; }
5932else
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934$as_echo "no" >&6; }
5935fi
5936
5937 if test "x$ac_ct_STRIP" = x; then
5938 STRIP=":"
b9668ba4
AK
5939 else
5940 case $cross_compiling:$ac_tool_warned in
5941yes:)
0fbeb4dc 5942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 5943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b9668ba4
AK
5944ac_tool_warned=yes ;;
5945esac
5c706339 5946 STRIP=$ac_ct_STRIP
b9668ba4 5947 fi
5c706339
AK
5948else
5949 STRIP="$ac_cv_prog_STRIP"
b9668ba4
AK
5950fi
5951
5c706339 5952test -z "$STRIP" && STRIP=:
b9668ba4 5953
b9668ba4 5954
b9668ba4 5955
b9668ba4 5956
b9668ba4 5957
b9668ba4 5958
5c706339
AK
5959if test -n "$ac_tool_prefix"; then
5960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5961set dummy ${ac_tool_prefix}ranlib; ac_word=$2
0fbeb4dc 5962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 5963$as_echo_n "checking for $ac_word... " >&6; }
059850b5 5964if ${ac_cv_prog_RANLIB+:} false; then :
47dc80f6 5965 $as_echo_n "(cached) " >&6
b9668ba4 5966else
5c706339
AK
5967 if test -n "$RANLIB"; then
5968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
b9668ba4 5969else
5c706339
AK
5970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971for as_dir in $PATH
5972do
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
0fbeb4dc 5975 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 5976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 5977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
0fbeb4dc 5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
5979 break 2
5980 fi
5981done
0fbeb4dc 5982 done
5c706339 5983IFS=$as_save_IFS
b9668ba4 5984
5c706339
AK
5985fi
5986fi
5987RANLIB=$ac_cv_prog_RANLIB
5988if test -n "$RANLIB"; then
0fbeb4dc 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
47dc80f6 5990$as_echo "$RANLIB" >&6; }
b9668ba4 5991else
0fbeb4dc 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 5993$as_echo "no" >&6; }
5c706339 5994fi
b9668ba4 5995
b9668ba4 5996
5c706339
AK
5997fi
5998if test -z "$ac_cv_prog_RANLIB"; then
5999 ac_ct_RANLIB=$RANLIB
6000 # Extract the first word of "ranlib", so it can be a program name with args.
6001set dummy ranlib; ac_word=$2
0fbeb4dc 6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 6003$as_echo_n "checking for $ac_word... " >&6; }
059850b5 6004if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
47dc80f6 6005 $as_echo_n "(cached) " >&6
b9668ba4 6006else
5c706339
AK
6007 if test -n "$ac_ct_RANLIB"; then
6008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6009else
6010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011for as_dir in $PATH
6012do
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
0fbeb4dc 6015 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 6016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 6017 ac_cv_prog_ac_ct_RANLIB="ranlib"
0fbeb4dc 6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
6019 break 2
6020 fi
6021done
0fbeb4dc 6022 done
5c706339 6023IFS=$as_save_IFS
b9668ba4
AK
6024
6025fi
b9668ba4 6026fi
5c706339
AK
6027ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6028if test -n "$ac_ct_RANLIB"; then
0fbeb4dc 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
47dc80f6 6030$as_echo "$ac_ct_RANLIB" >&6; }
5c706339 6031else
0fbeb4dc 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 6033$as_echo "no" >&6; }
b9668ba4
AK
6034fi
6035
5c706339
AK
6036 if test "x$ac_ct_RANLIB" = x; then
6037 RANLIB=":"
b9668ba4 6038 else
5c706339
AK
6039 case $cross_compiling:$ac_tool_warned in
6040yes:)
0fbeb4dc 6041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 6042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5c706339
AK
6043ac_tool_warned=yes ;;
6044esac
6045 RANLIB=$ac_ct_RANLIB
b9668ba4
AK
6046 fi
6047else
5c706339 6048 RANLIB="$ac_cv_prog_RANLIB"
b9668ba4 6049fi
b9668ba4 6050
5c706339 6051test -z "$RANLIB" && RANLIB=:
b9668ba4 6052
b9668ba4 6053
b9668ba4 6054
b9668ba4 6055
b9668ba4
AK
6056
6057
5c706339
AK
6058# Determine commands to create old-style static archives.
6059old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6060old_postinstall_cmds='chmod 644 $oldlib'
6061old_postuninstall_cmds=
b9668ba4 6062
5c706339
AK
6063if test -n "$RANLIB"; then
6064 case $host_os in
c45550e5 6065 bitrig* | openbsd*)
059850b5 6066 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5c706339
AK
6067 ;;
6068 *)
059850b5 6069 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5c706339
AK
6070 ;;
6071 esac
059850b5 6072 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
b9668ba4
AK
6073fi
6074
059850b5
AK
6075case $host_os in
6076 darwin*)
6077 lock_old_archive_extraction=yes ;;
6078 *)
6079 lock_old_archive_extraction=no ;;
6080esac
6081
6082
6083
6084
6085
6086
b9668ba4
AK
6087
6088
6089
b9668ba4 6090
b9668ba4 6091
b9668ba4 6092
b9668ba4 6093
b9668ba4 6094
b9668ba4 6095
b9668ba4 6096
b9668ba4 6097
b9668ba4 6098
b9668ba4 6099
b9668ba4 6100
b9668ba4 6101
b9668ba4 6102
b9668ba4 6103
b9668ba4 6104
b9668ba4 6105
b9668ba4
AK
6106
6107
b9668ba4 6108
b9668ba4
AK
6109
6110
b9668ba4 6111
b9668ba4
AK
6112
6113
b9668ba4 6114
b9668ba4 6115
b9668ba4 6116
b9668ba4 6117
b9668ba4 6118
b9668ba4 6119
5c706339
AK
6120# If no C compiler was specified, use CC.
6121LTCC=${LTCC-"$CC"}
b9668ba4 6122
5c706339
AK
6123# If no C compiler flags were specified, use CFLAGS.
6124LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
b9668ba4 6125
5c706339
AK
6126# Allow CC to be a program name with arguments.
6127compiler=$CC
b9668ba4
AK
6128
6129
6130# Check for command to grab the raw symbol name followed by C symbol from nm.
0fbeb4dc 6131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
47dc80f6 6132$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
059850b5 6133if ${lt_cv_sys_global_symbol_pipe+:} false; then :
47dc80f6 6134 $as_echo_n "(cached) " >&6
b9668ba4
AK
6135else
6136
6137# These are sane defaults that work on at least a few old systems.
6138# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6139
6140# Character class describing NM global symbol codes.
6141symcode='[BCDEGRST]'
6142
6143# Regexp to match symbols that can be accessed directly from C.
6144sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6145
b9668ba4
AK
6146# Define system-specific variables.
6147case $host_os in
6148aix*)
6149 symcode='[BCDT]'
6150 ;;
47dc80f6 6151cygwin* | mingw* | pw32* | cegcc*)
b9668ba4
AK
6152 symcode='[ABCDGISTW]'
6153 ;;
5c706339 6154hpux*)
c45550e5 6155 if test ia64 = "$host_cpu"; then
b9668ba4
AK
6156 symcode='[ABCDEGRST]'
6157 fi
b9668ba4
AK
6158 ;;
6159irix* | nonstopux*)
6160 symcode='[BCDEGRST]'
6161 ;;
6162osf*)
6163 symcode='[BCDEGQRST]'
6164 ;;
6165solaris*)
6166 symcode='[BDRT]'
6167 ;;
6168sco3.2v5*)
6169 symcode='[DT]'
6170 ;;
6171sysv4.2uw2*)
6172 symcode='[DT]'
6173 ;;
6174sysv5* | sco5v6* | unixware* | OpenUNIX*)
6175 symcode='[ABDT]'
6176 ;;
6177sysv4)
6178 symcode='[DFNSTU]'
6179 ;;
6180esac
6181
5c706339
AK
6182# If we're using GNU nm, then use its standard symbol codes.
6183case `$NM -V 2>&1` in
6184*GNU* | *'with BFD'*)
6185 symcode='[ABCDGIRSTW]' ;;
6186esac
6187
c45550e5
AK
6188if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6189 # Gets list of data symbols to import.
6190 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6191 # Adjust the below global symbol transforms to fixup imported variables.
6192 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6193 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6194 lt_c_name_lib_hook="\
6195 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6196 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6197else
6198 # Disable hooks by default.
6199 lt_cv_sys_global_symbol_to_import=
6200 lt_cdecl_hook=
6201 lt_c_name_hook=
6202 lt_c_name_lib_hook=
6203fi
6204
5c706339
AK
6205# Transform an extracted symbol line into a proper C declaration.
6206# Some systems (esp. on ia64) link data and code symbols differently,
6207# so use this general approach.
c45550e5
AK
6208lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6209$lt_cdecl_hook\
6210" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6211" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5c706339
AK
6212
6213# Transform an extracted symbol line into symbol name and symbol address
c45550e5
AK
6214lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6215$lt_c_name_hook\
6216" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6217" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6218
6219# Transform an extracted symbol line into symbol name with lib prefix and
6220# symbol address.
6221lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6222$lt_c_name_lib_hook\
6223" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6224" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6225" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5c706339 6226
b9668ba4
AK
6227# Handle CRLF in mingw tool chain
6228opt_cr=
6229case $build_os in
6230mingw*)
5c706339 6231 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
b9668ba4
AK
6232 ;;
6233esac
6234
5c706339 6235# Try without a prefix underscore, then with it.
b9668ba4
AK
6236for ac_symprfx in "" "_"; do
6237
6238 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6239 symxfrm="\\1 $ac_symprfx\\2 \\2"
6240
6241 # Write the raw and C identifiers.
5c706339 6242 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
c45550e5
AK
6243 # Fake it for dumpbin and say T for any non-static function,
6244 # D for any global variable and I for any imported variable.
5c706339
AK
6245 # Also find C++ and __fastcall symbols from MSVC++,
6246 # which start with @ or ?.
6247 lt_cv_sys_global_symbol_pipe="$AWK '"\
6248" {last_section=section; section=\$ 3};"\
059850b5 6249" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5c706339 6250" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
c45550e5
AK
6251" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6252" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6253" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5c706339
AK
6254" \$ 0!~/External *\|/{next};"\
6255" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6256" {if(hide[section]) next};"\
c45550e5
AK
6257" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6258" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6259" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6260" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5c706339
AK
6261" ' prfx=^$ac_symprfx"
6262 else
6263 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6264 fi
059850b5 6265 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
b9668ba4
AK
6266
6267 # Check to see that the pipe works correctly.
6268 pipe_works=no
6269
6270 rm -f conftest*
5c706339 6271 cat > conftest.$ac_ext <<_LT_EOF
b9668ba4
AK
6272#ifdef __cplusplus
6273extern "C" {
6274#endif
6275char nm_test_var;
5c706339
AK
6276void nm_test_func(void);
6277void nm_test_func(void){}
b9668ba4
AK
6278#ifdef __cplusplus
6279}
6280#endif
6281int main(){nm_test_var='a';nm_test_func();return(0);}
5c706339 6282_LT_EOF
b9668ba4 6283
0fbeb4dc 6284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b9668ba4
AK
6285 (eval $ac_compile) 2>&5
6286 ac_status=$?
0fbeb4dc
AK
6287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6288 test $ac_status = 0; }; then
b9668ba4
AK
6289 # Now try to grab the symbols.
6290 nlist=conftest.nm
059850b5
AK
6291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6292 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
b9668ba4 6293 ac_status=$?
0fbeb4dc
AK
6294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6295 test $ac_status = 0; } && test -s "$nlist"; then
b9668ba4
AK
6296 # Try sorting and uniquifying the output.
6297 if sort "$nlist" | uniq > "$nlist"T; then
6298 mv -f "$nlist"T "$nlist"
6299 else
6300 rm -f "$nlist"T
6301 fi
6302
6303 # Make sure that we snagged all the symbols we need.
5c706339
AK
6304 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6305 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6306 cat <<_LT_EOF > conftest.$ac_ext
059850b5 6307/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
c45550e5
AK
6308#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6309/* DATA imports from DLLs on WIN32 can't be const, because runtime
059850b5
AK
6310 relocations are performed -- see ld's documentation on pseudo-relocs. */
6311# define LT_DLSYM_CONST
c45550e5 6312#elif defined __osf__
059850b5
AK
6313/* This system does not cope well with relocations in const data. */
6314# define LT_DLSYM_CONST
6315#else
6316# define LT_DLSYM_CONST const
6317#endif
6318
b9668ba4
AK
6319#ifdef __cplusplus
6320extern "C" {
6321#endif
6322
5c706339 6323_LT_EOF
b9668ba4 6324 # Now generate the symbol file.
5c706339 6325 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
b9668ba4 6326
5c706339 6327 cat <<_LT_EOF >> conftest.$ac_ext
b9668ba4 6328
5c706339 6329/* The mapping between symbol names and symbols. */
059850b5 6330LT_DLSYM_CONST struct {
b9668ba4 6331 const char *name;
5c706339 6332 void *address;
b9668ba4 6333}
5c706339 6334lt__PROGRAM__LTX_preloaded_symbols[] =
b9668ba4 6335{
5c706339
AK
6336 { "@PROGRAM@", (void *) 0 },
6337_LT_EOF
c45550e5 6338 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5c706339
AK
6339 cat <<\_LT_EOF >> conftest.$ac_ext
6340 {0, (void *) 0}
b9668ba4
AK
6341};
6342
5c706339
AK
6343/* This works around a problem in FreeBSD linker */
6344#ifdef FREEBSD_WORKAROUND
6345static const void *lt_preloaded_setup() {
6346 return lt__PROGRAM__LTX_preloaded_symbols;
6347}
6348#endif
6349
b9668ba4
AK
6350#ifdef __cplusplus
6351}
6352#endif
5c706339 6353_LT_EOF
b9668ba4
AK
6354 # Now try linking the two files.
6355 mv conftest.$ac_objext conftstm.$ac_objext
059850b5
AK
6356 lt_globsym_save_LIBS=$LIBS
6357 lt_globsym_save_CFLAGS=$CFLAGS
c45550e5 6358 LIBS=conftstm.$ac_objext
b9668ba4 6359 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
0fbeb4dc 6360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
b9668ba4
AK
6361 (eval $ac_link) 2>&5
6362 ac_status=$?
0fbeb4dc 6363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c45550e5 6364 test $ac_status = 0; } && test -s conftest$ac_exeext; then
b9668ba4
AK
6365 pipe_works=yes
6366 fi
059850b5
AK
6367 LIBS=$lt_globsym_save_LIBS
6368 CFLAGS=$lt_globsym_save_CFLAGS
b9668ba4
AK
6369 else
6370 echo "cannot find nm_test_func in $nlist" >&5
6371 fi
6372 else
6373 echo "cannot find nm_test_var in $nlist" >&5
6374 fi
6375 else
6376 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6377 fi
6378 else
6379 echo "$progname: failed program was:" >&5
6380 cat conftest.$ac_ext >&5
6381 fi
5c706339 6382 rm -rf conftest* conftst*
b9668ba4
AK
6383
6384 # Do not use the global_symbol_pipe unless it works.
c45550e5 6385 if test yes = "$pipe_works"; then
b9668ba4
AK
6386 break
6387 else
6388 lt_cv_sys_global_symbol_pipe=
6389 fi
6390done
6391
6392fi
6393
6394if test -z "$lt_cv_sys_global_symbol_pipe"; then
6395 lt_cv_sys_global_symbol_to_cdecl=
6396fi
6397if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
0fbeb4dc 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
47dc80f6 6399$as_echo "failed" >&6; }
b9668ba4 6400else
0fbeb4dc 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
47dc80f6 6402$as_echo "ok" >&6; }
b9668ba4
AK
6403fi
6404
059850b5
AK
6405# Response file support.
6406if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6407 nm_file_list_spec='@'
6408elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6409 nm_file_list_spec='@'
6410fi
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
b9668ba4
AK
6421
6422
6423
6424
6425
5c706339 6426
c45550e5
AK
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
5c706339
AK
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
059850b5
AK
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6449$as_echo_n "checking for sysroot... " >&6; }
6450
6451# Check whether --with-sysroot was given.
6452if test "${with_sysroot+set}" = set; then :
6453 withval=$with_sysroot;
6454else
6455 with_sysroot=no
6456fi
6457
6458
6459lt_sysroot=
c45550e5 6460case $with_sysroot in #(
059850b5 6461 yes)
c45550e5 6462 if test yes = "$GCC"; then
059850b5
AK
6463 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6464 fi
6465 ;; #(
6466 /*)
6467 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6468 ;; #(
6469 no|'')
6470 ;; #(
6471 *)
c45550e5
AK
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6473$as_echo "$with_sysroot" >&6; }
059850b5
AK
6474 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6475 ;;
6476esac
6477
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6479$as_echo "${lt_sysroot:-no}" >&6; }
5c706339
AK
6480
6481
6482
6483
6484
c45550e5
AK
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6486$as_echo_n "checking for a working dd... " >&6; }
6487if ${ac_cv_path_lt_DD+:} false; then :
6488 $as_echo_n "(cached) " >&6
6489else
6490 printf 0123456789abcdef0123456789abcdef >conftest.i
6491cat conftest.i conftest.i >conftest2.i
6492: ${lt_DD:=$DD}
6493if test -z "$lt_DD"; then
6494 ac_path_lt_DD_found=false
6495 # Loop through the user's path and test for each of PROGNAME-LIST
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497for as_dir in $PATH
6498do
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_prog in dd; do
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6504 as_fn_executable_p "$ac_path_lt_DD" || continue
6505if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6506 cmp -s conftest.i conftest.out \
6507 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6508fi
6509 $ac_path_lt_DD_found && break 3
6510 done
6511 done
6512 done
6513IFS=$as_save_IFS
6514 if test -z "$ac_cv_path_lt_DD"; then
6515 :
6516 fi
6517else
6518 ac_cv_path_lt_DD=$lt_DD
6519fi
6520
6521rm -f conftest.i conftest2.i conftest.out
6522fi
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6524$as_echo "$ac_cv_path_lt_DD" >&6; }
6525
6526
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6528$as_echo_n "checking how to truncate binary pipes... " >&6; }
6529if ${lt_cv_truncate_bin+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531else
6532 printf 0123456789abcdef0123456789abcdef >conftest.i
6533cat conftest.i conftest.i >conftest2.i
6534lt_cv_truncate_bin=
6535if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6536 cmp -s conftest.i conftest.out \
6537 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6538fi
6539rm -f conftest.i conftest2.i conftest.out
6540test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6541fi
6542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6543$as_echo "$lt_cv_truncate_bin" >&6; }
6544
6545
6546
6547
6548
6549
6550
6551# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6552func_cc_basename ()
6553{
6554 for cc_temp in $*""; do
6555 case $cc_temp in
6556 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6557 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6558 \-*) ;;
6559 *) break;;
6560 esac
6561 done
6562 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6563}
6564
5c706339 6565# Check whether --enable-libtool-lock was given.
0fbeb4dc 6566if test "${enable_libtool_lock+set}" = set; then :
5c706339
AK
6567 enableval=$enable_libtool_lock;
6568fi
6569
c45550e5 6570test no = "$enable_libtool_lock" || enable_libtool_lock=yes
5c706339
AK
6571
6572# Some flags need to be propagated to the compiler or linker for good
6573# libtool support.
6574case $host in
6575ia64-*-hpux*)
c45550e5
AK
6576 # Find out what ABI is being produced by ac_compile, and set mode
6577 # options accordingly.
5c706339 6578 echo 'int i;' > conftest.$ac_ext
0fbeb4dc 6579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5c706339
AK
6580 (eval $ac_compile) 2>&5
6581 ac_status=$?
0fbeb4dc
AK
6582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6583 test $ac_status = 0; }; then
5c706339
AK
6584 case `/usr/bin/file conftest.$ac_objext` in
6585 *ELF-32*)
c45550e5 6586 HPUX_IA64_MODE=32
5c706339
AK
6587 ;;
6588 *ELF-64*)
c45550e5 6589 HPUX_IA64_MODE=64
5c706339
AK
6590 ;;
6591 esac
6592 fi
6593 rm -rf conftest*
6594 ;;
6595*-*-irix6*)
c45550e5
AK
6596 # Find out what ABI is being produced by ac_compile, and set linker
6597 # options accordingly.
059850b5 6598 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
0fbeb4dc 6599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5c706339
AK
6600 (eval $ac_compile) 2>&5
6601 ac_status=$?
0fbeb4dc
AK
6602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603 test $ac_status = 0; }; then
c45550e5 6604 if test yes = "$lt_cv_prog_gnu_ld"; then
5c706339
AK
6605 case `/usr/bin/file conftest.$ac_objext` in
6606 *32-bit*)
6607 LD="${LD-ld} -melf32bsmip"
6608 ;;
6609 *N32*)
6610 LD="${LD-ld} -melf32bmipn32"
6611 ;;
6612 *64-bit*)
6613 LD="${LD-ld} -melf64bmip"
6614 ;;
6615 esac
6616 else
6617 case `/usr/bin/file conftest.$ac_objext` in
6618 *32-bit*)
6619 LD="${LD-ld} -32"
6620 ;;
6621 *N32*)
6622 LD="${LD-ld} -n32"
6623 ;;
6624 *64-bit*)
6625 LD="${LD-ld} -64"
6626 ;;
6627 esac
6628 fi
b9668ba4 6629 fi
5c706339 6630 rm -rf conftest*
b9668ba4 6631 ;;
b9668ba4 6632
c45550e5
AK
6633mips64*-*linux*)
6634 # Find out what ABI is being produced by ac_compile, and set linker
6635 # options accordingly.
6636 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6638 (eval $ac_compile) 2>&5
6639 ac_status=$?
6640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6641 test $ac_status = 0; }; then
6642 emul=elf
6643 case `/usr/bin/file conftest.$ac_objext` in
6644 *32-bit*)
6645 emul="${emul}32"
6646 ;;
6647 *64-bit*)
6648 emul="${emul}64"
6649 ;;
6650 esac
6651 case `/usr/bin/file conftest.$ac_objext` in
6652 *MSB*)
6653 emul="${emul}btsmip"
6654 ;;
6655 *LSB*)
6656 emul="${emul}ltsmip"
6657 ;;
6658 esac
6659 case `/usr/bin/file conftest.$ac_objext` in
6660 *N32*)
6661 emul="${emul}n32"
6662 ;;
6663 esac
6664 LD="${LD-ld} -m $emul"
6665 fi
6666 rm -rf conftest*
6667 ;;
6668
0044e680 6669x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5c706339 6670s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
c45550e5
AK
6671 # Find out what ABI is being produced by ac_compile, and set linker
6672 # options accordingly. Note that the listed cases only cover the
6673 # situations where additional linker options are needed (such as when
6674 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6675 # vice versa); the common cases where no linker options are needed do
6676 # not appear in the list.
5c706339 6677 echo 'int i;' > conftest.$ac_ext
0fbeb4dc 6678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5c706339
AK
6679 (eval $ac_compile) 2>&5
6680 ac_status=$?
0fbeb4dc
AK
6681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6682 test $ac_status = 0; }; then
5c706339
AK
6683 case `/usr/bin/file conftest.o` in
6684 *32-bit*)
6685 case $host in
6686 x86_64-*kfreebsd*-gnu)
6687 LD="${LD-ld} -m elf_i386_fbsd"
6688 ;;
6689 x86_64-*linux*)
0044e680
AK
6690 case `/usr/bin/file conftest.o` in
6691 *x86-64*)
6692 LD="${LD-ld} -m elf32_x86_64"
6693 ;;
6694 *)
6695 LD="${LD-ld} -m elf_i386"
6696 ;;
6697 esac
6698 ;;
c45550e5 6699 powerpc64le-*linux*)
0044e680 6700 LD="${LD-ld} -m elf32lppclinux"
5c706339 6701 ;;
c45550e5 6702 powerpc64-*linux*)
5c706339
AK
6703 LD="${LD-ld} -m elf32ppclinux"
6704 ;;
6705 s390x-*linux*)
6706 LD="${LD-ld} -m elf_s390"
6707 ;;
6708 sparc64-*linux*)
6709 LD="${LD-ld} -m elf32_sparc"
6710 ;;
6711 esac
6712 ;;
6713 *64-bit*)
6714 case $host in
6715 x86_64-*kfreebsd*-gnu)
6716 LD="${LD-ld} -m elf_x86_64_fbsd"
6717 ;;
6718 x86_64-*linux*)
6719 LD="${LD-ld} -m elf_x86_64"
6720 ;;
c45550e5 6721 powerpcle-*linux*)
0044e680
AK
6722 LD="${LD-ld} -m elf64lppc"
6723 ;;
c45550e5 6724 powerpc-*linux*)
5c706339
AK
6725 LD="${LD-ld} -m elf64ppc"
6726 ;;
6727 s390*-*linux*|s390*-*tpf*)
6728 LD="${LD-ld} -m elf64_s390"
6729 ;;
6730 sparc*-*linux*)
6731 LD="${LD-ld} -m elf64_sparc"
6732 ;;
6733 esac
6734 ;;
6735 esac
6736 fi
6737 rm -rf conftest*
6738 ;;
b9668ba4 6739
5c706339
AK
6740*-*-sco3.2v5*)
6741 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
c45550e5 6742 SAVE_CFLAGS=$CFLAGS
5c706339 6743 CFLAGS="$CFLAGS -belf"
0fbeb4dc 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
47dc80f6 6745$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
059850b5 6746if ${lt_cv_cc_needs_belf+:} false; then :
47dc80f6 6747 $as_echo_n "(cached) " >&6
5c706339
AK
6748else
6749 ac_ext=c
6750ac_cpp='$CPP $CPPFLAGS'
6751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6753ac_compiler_gnu=$ac_cv_c_compiler_gnu
b9668ba4 6754
0fbeb4dc 6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339 6756/* end confdefs.h. */
b9668ba4 6757
5c706339
AK
6758int
6759main ()
6760{
b9668ba4 6761
5c706339
AK
6762 ;
6763 return 0;
6764}
6765_ACEOF
0fbeb4dc 6766if ac_fn_c_try_link "$LINENO"; then :
5c706339
AK
6767 lt_cv_cc_needs_belf=yes
6768else
0fbeb4dc 6769 lt_cv_cc_needs_belf=no
5c706339 6770fi
0fbeb4dc
AK
6771rm -f core conftest.err conftest.$ac_objext \
6772 conftest$ac_exeext conftest.$ac_ext
5c706339
AK
6773 ac_ext=c
6774ac_cpp='$CPP $CPPFLAGS'
6775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777ac_compiler_gnu=$ac_cv_c_compiler_gnu
b9668ba4 6778
5c706339 6779fi
0fbeb4dc 6780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
47dc80f6 6781$as_echo "$lt_cv_cc_needs_belf" >&6; }
c45550e5 6782 if test yes != "$lt_cv_cc_needs_belf"; then
5c706339 6783 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
c45550e5 6784 CFLAGS=$SAVE_CFLAGS
5c706339
AK
6785 fi
6786 ;;
059850b5 6787*-*solaris*)
c45550e5
AK
6788 # Find out what ABI is being produced by ac_compile, and set linker
6789 # options accordingly.
5c706339 6790 echo 'int i;' > conftest.$ac_ext
0fbeb4dc 6791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5c706339
AK
6792 (eval $ac_compile) 2>&5
6793 ac_status=$?
0fbeb4dc
AK
6794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6795 test $ac_status = 0; }; then
5c706339
AK
6796 case `/usr/bin/file conftest.o` in
6797 *64-bit*)
6798 case $lt_cv_prog_gnu_ld in
059850b5
AK
6799 yes*)
6800 case $host in
c45550e5 6801 i?86-*-solaris*|x86_64-*-solaris*)
059850b5
AK
6802 LD="${LD-ld} -m elf_x86_64"
6803 ;;
6804 sparc*-*-solaris*)
6805 LD="${LD-ld} -m elf64_sparc"
6806 ;;
6807 esac
6808 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6809 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
c45550e5 6810 LD=${LD-ld}_sol2
059850b5
AK
6811 fi
6812 ;;
5c706339
AK
6813 *)
6814 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6815 LD="${LD-ld} -64"
6816 fi
6817 ;;
6818 esac
6819 ;;
6820 esac
6821 fi
6822 rm -rf conftest*
6823 ;;
6824esac
6825
c45550e5 6826need_locks=$enable_libtool_lock
5c706339 6827
059850b5
AK
6828if test -n "$ac_tool_prefix"; then
6829 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6830set dummy ${ac_tool_prefix}mt; ac_word=$2
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832$as_echo_n "checking for $ac_word... " >&6; }
6833if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6834 $as_echo_n "(cached) " >&6
6835else
6836 if test -n "$MANIFEST_TOOL"; then
6837 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6838else
6839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840for as_dir in $PATH
6841do
6842 IFS=$as_save_IFS
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 6845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
059850b5
AK
6846 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 break 2
6849 fi
6850done
6851 done
6852IFS=$as_save_IFS
6853
6854fi
6855fi
6856MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6857if test -n "$MANIFEST_TOOL"; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6859$as_echo "$MANIFEST_TOOL" >&6; }
6860else
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862$as_echo "no" >&6; }
6863fi
6864
6865
6866fi
6867if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6868 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6869 # Extract the first word of "mt", so it can be a program name with args.
6870set dummy mt; ac_word=$2
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872$as_echo_n "checking for $ac_word... " >&6; }
6873if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6874 $as_echo_n "(cached) " >&6
6875else
6876 if test -n "$ac_ct_MANIFEST_TOOL"; then
6877 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6878else
6879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880for as_dir in $PATH
6881do
6882 IFS=$as_save_IFS
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 6885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
059850b5
AK
6886 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 break 2
6889 fi
6890done
6891 done
6892IFS=$as_save_IFS
6893
6894fi
6895fi
6896ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6897if test -n "$ac_ct_MANIFEST_TOOL"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6899$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6900else
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902$as_echo "no" >&6; }
6903fi
6904
6905 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6906 MANIFEST_TOOL=":"
6907 else
6908 case $cross_compiling:$ac_tool_warned in
6909yes:)
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6912ac_tool_warned=yes ;;
6913esac
6914 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6915 fi
6916else
6917 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6918fi
6919
6920test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6922$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6923if ${lt_cv_path_mainfest_tool+:} false; then :
6924 $as_echo_n "(cached) " >&6
6925else
6926 lt_cv_path_mainfest_tool=no
6927 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6928 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6929 cat conftest.err >&5
6930 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6931 lt_cv_path_mainfest_tool=yes
6932 fi
6933 rm -f conftest*
6934fi
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6936$as_echo "$lt_cv_path_mainfest_tool" >&6; }
c45550e5 6937if test yes != "$lt_cv_path_mainfest_tool"; then
059850b5
AK
6938 MANIFEST_TOOL=:
6939fi
6940
6941
6942
6943
6944
5c706339
AK
6945
6946 case $host_os in
6947 rhapsody* | darwin*)
6948 if test -n "$ac_tool_prefix"; then
6949 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6950set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
0fbeb4dc 6951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 6952$as_echo_n "checking for $ac_word... " >&6; }
059850b5 6953if ${ac_cv_prog_DSYMUTIL+:} false; then :
47dc80f6 6954 $as_echo_n "(cached) " >&6
b9668ba4 6955else
5c706339
AK
6956 if test -n "$DSYMUTIL"; then
6957 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
b9668ba4
AK
6958else
6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
0fbeb4dc 6964 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 6965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 6966 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
0fbeb4dc 6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
6968 break 2
6969 fi
6970done
0fbeb4dc 6971 done
b9668ba4
AK
6972IFS=$as_save_IFS
6973
6974fi
6975fi
5c706339
AK
6976DSYMUTIL=$ac_cv_prog_DSYMUTIL
6977if test -n "$DSYMUTIL"; then
0fbeb4dc 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
47dc80f6 6979$as_echo "$DSYMUTIL" >&6; }
b9668ba4 6980else
0fbeb4dc 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 6982$as_echo "no" >&6; }
b9668ba4
AK
6983fi
6984
6985
6986fi
5c706339
AK
6987if test -z "$ac_cv_prog_DSYMUTIL"; then
6988 ac_ct_DSYMUTIL=$DSYMUTIL
6989 # Extract the first word of "dsymutil", so it can be a program name with args.
6990set dummy dsymutil; ac_word=$2
0fbeb4dc 6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 6992$as_echo_n "checking for $ac_word... " >&6; }
059850b5 6993if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
47dc80f6 6994 $as_echo_n "(cached) " >&6
b9668ba4 6995else
5c706339
AK
6996 if test -n "$ac_ct_DSYMUTIL"; then
6997 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
b9668ba4
AK
6998else
6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
0fbeb4dc 7004 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 7005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 7006 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
0fbeb4dc 7007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
7008 break 2
7009 fi
7010done
0fbeb4dc 7011 done
b9668ba4
AK
7012IFS=$as_save_IFS
7013
7014fi
7015fi
5c706339
AK
7016ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7017if test -n "$ac_ct_DSYMUTIL"; then
0fbeb4dc 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
47dc80f6 7019$as_echo "$ac_ct_DSYMUTIL" >&6; }
b9668ba4 7020else
0fbeb4dc 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 7022$as_echo "no" >&6; }
b9668ba4
AK
7023fi
7024
5c706339
AK
7025 if test "x$ac_ct_DSYMUTIL" = x; then
7026 DSYMUTIL=":"
b9668ba4
AK
7027 else
7028 case $cross_compiling:$ac_tool_warned in
7029yes:)
0fbeb4dc 7030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 7031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b9668ba4
AK
7032ac_tool_warned=yes ;;
7033esac
5c706339 7034 DSYMUTIL=$ac_ct_DSYMUTIL
b9668ba4
AK
7035 fi
7036else
5c706339 7037 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
b9668ba4
AK
7038fi
7039
5c706339
AK
7040 if test -n "$ac_tool_prefix"; then
7041 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7042set dummy ${ac_tool_prefix}nmedit; ac_word=$2
0fbeb4dc 7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 7044$as_echo_n "checking for $ac_word... " >&6; }
059850b5 7045if ${ac_cv_prog_NMEDIT+:} false; then :
47dc80f6 7046 $as_echo_n "(cached) " >&6
b9668ba4 7047else
5c706339
AK
7048 if test -n "$NMEDIT"; then
7049 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
b9668ba4
AK
7050else
7051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052for as_dir in $PATH
7053do
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
0fbeb4dc 7056 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 7057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 7058 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
0fbeb4dc 7059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
7060 break 2
7061 fi
7062done
0fbeb4dc 7063 done
b9668ba4
AK
7064IFS=$as_save_IFS
7065
7066fi
7067fi
5c706339
AK
7068NMEDIT=$ac_cv_prog_NMEDIT
7069if test -n "$NMEDIT"; then
0fbeb4dc 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
47dc80f6 7071$as_echo "$NMEDIT" >&6; }
b9668ba4 7072else
0fbeb4dc 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 7074$as_echo "no" >&6; }
b9668ba4
AK
7075fi
7076
7077
7078fi
5c706339
AK
7079if test -z "$ac_cv_prog_NMEDIT"; then
7080 ac_ct_NMEDIT=$NMEDIT
7081 # Extract the first word of "nmedit", so it can be a program name with args.
7082set dummy nmedit; ac_word=$2
0fbeb4dc 7083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 7084$as_echo_n "checking for $ac_word... " >&6; }
059850b5 7085if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
47dc80f6 7086 $as_echo_n "(cached) " >&6
b9668ba4 7087else
5c706339
AK
7088 if test -n "$ac_ct_NMEDIT"; then
7089 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
b9668ba4
AK
7090else
7091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092for as_dir in $PATH
7093do
7094 IFS=$as_save_IFS
7095 test -z "$as_dir" && as_dir=.
0fbeb4dc 7096 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 7097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 7098 ac_cv_prog_ac_ct_NMEDIT="nmedit"
0fbeb4dc 7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
7100 break 2
7101 fi
7102done
0fbeb4dc 7103 done
b9668ba4
AK
7104IFS=$as_save_IFS
7105
7106fi
7107fi
5c706339
AK
7108ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7109if test -n "$ac_ct_NMEDIT"; then
0fbeb4dc 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
47dc80f6 7111$as_echo "$ac_ct_NMEDIT" >&6; }
b9668ba4 7112else
0fbeb4dc 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 7114$as_echo "no" >&6; }
b9668ba4
AK
7115fi
7116
5c706339
AK
7117 if test "x$ac_ct_NMEDIT" = x; then
7118 NMEDIT=":"
b9668ba4
AK
7119 else
7120 case $cross_compiling:$ac_tool_warned in
7121yes:)
0fbeb4dc 7122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 7123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b9668ba4
AK
7124ac_tool_warned=yes ;;
7125esac
5c706339 7126 NMEDIT=$ac_ct_NMEDIT
b9668ba4
AK
7127 fi
7128else
5c706339 7129 NMEDIT="$ac_cv_prog_NMEDIT"
b9668ba4
AK
7130fi
7131
5c706339
AK
7132 if test -n "$ac_tool_prefix"; then
7133 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7134set dummy ${ac_tool_prefix}lipo; ac_word=$2
0fbeb4dc 7135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 7136$as_echo_n "checking for $ac_word... " >&6; }
059850b5 7137if ${ac_cv_prog_LIPO+:} false; then :
47dc80f6 7138 $as_echo_n "(cached) " >&6
b9668ba4 7139else
5c706339
AK
7140 if test -n "$LIPO"; then
7141 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
b9668ba4
AK
7142else
7143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH
7145do
7146 IFS=$as_save_IFS
7147 test -z "$as_dir" && as_dir=.
0fbeb4dc 7148 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 7149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 7150 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
0fbeb4dc 7151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
7152 break 2
7153 fi
7154done
0fbeb4dc 7155 done
b9668ba4
AK
7156IFS=$as_save_IFS
7157
7158fi
7159fi
5c706339
AK
7160LIPO=$ac_cv_prog_LIPO
7161if test -n "$LIPO"; then
0fbeb4dc 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
47dc80f6 7163$as_echo "$LIPO" >&6; }
b9668ba4 7164else
0fbeb4dc 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 7166$as_echo "no" >&6; }
b9668ba4
AK
7167fi
7168
7169
7170fi
5c706339
AK
7171if test -z "$ac_cv_prog_LIPO"; then
7172 ac_ct_LIPO=$LIPO
7173 # Extract the first word of "lipo", so it can be a program name with args.
7174set dummy lipo; ac_word=$2
0fbeb4dc 7175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 7176$as_echo_n "checking for $ac_word... " >&6; }
059850b5 7177if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
47dc80f6 7178 $as_echo_n "(cached) " >&6
b9668ba4 7179else
5c706339
AK
7180 if test -n "$ac_ct_LIPO"; then
7181 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
b9668ba4
AK
7182else
7183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184for as_dir in $PATH
7185do
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
0fbeb4dc 7188 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 7189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 7190 ac_cv_prog_ac_ct_LIPO="lipo"
0fbeb4dc 7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
7192 break 2
7193 fi
7194done
0fbeb4dc 7195 done
b9668ba4
AK
7196IFS=$as_save_IFS
7197
7198fi
7199fi
5c706339
AK
7200ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7201if test -n "$ac_ct_LIPO"; then
0fbeb4dc 7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
47dc80f6 7203$as_echo "$ac_ct_LIPO" >&6; }
b9668ba4 7204else
0fbeb4dc 7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 7206$as_echo "no" >&6; }
b9668ba4
AK
7207fi
7208
5c706339
AK
7209 if test "x$ac_ct_LIPO" = x; then
7210 LIPO=":"
b9668ba4
AK
7211 else
7212 case $cross_compiling:$ac_tool_warned in
7213yes:)
0fbeb4dc 7214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 7215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b9668ba4
AK
7216ac_tool_warned=yes ;;
7217esac
5c706339 7218 LIPO=$ac_ct_LIPO
b9668ba4
AK
7219 fi
7220else
5c706339 7221 LIPO="$ac_cv_prog_LIPO"
b9668ba4
AK
7222fi
7223
5c706339
AK
7224 if test -n "$ac_tool_prefix"; then
7225 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7226set dummy ${ac_tool_prefix}otool; ac_word=$2
0fbeb4dc 7227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 7228$as_echo_n "checking for $ac_word... " >&6; }
059850b5 7229if ${ac_cv_prog_OTOOL+:} false; then :
47dc80f6 7230 $as_echo_n "(cached) " >&6
b9668ba4 7231else
5c706339
AK
7232 if test -n "$OTOOL"; then
7233 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7234else
7235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236for as_dir in $PATH
7237do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
0fbeb4dc 7240 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 7241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 7242 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
0fbeb4dc 7243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
7244 break 2
7245 fi
7246done
0fbeb4dc 7247 done
5c706339 7248IFS=$as_save_IFS
b9668ba4 7249
b9668ba4 7250fi
5c706339
AK
7251fi
7252OTOOL=$ac_cv_prog_OTOOL
7253if test -n "$OTOOL"; then
0fbeb4dc 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
47dc80f6 7255$as_echo "$OTOOL" >&6; }
b9668ba4 7256else
0fbeb4dc 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 7258$as_echo "no" >&6; }
b9668ba4
AK
7259fi
7260
5c706339
AK
7261
7262fi
7263if test -z "$ac_cv_prog_OTOOL"; then
7264 ac_ct_OTOOL=$OTOOL
7265 # Extract the first word of "otool", so it can be a program name with args.
7266set dummy otool; ac_word=$2
0fbeb4dc 7267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 7268$as_echo_n "checking for $ac_word... " >&6; }
059850b5 7269if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
47dc80f6 7270 $as_echo_n "(cached) " >&6
b9668ba4 7271else
5c706339
AK
7272 if test -n "$ac_ct_OTOOL"; then
7273 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7274else
7275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276for as_dir in $PATH
7277do
7278 IFS=$as_save_IFS
7279 test -z "$as_dir" && as_dir=.
0fbeb4dc 7280 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 7281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 7282 ac_cv_prog_ac_ct_OTOOL="otool"
0fbeb4dc 7283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
7284 break 2
7285 fi
7286done
0fbeb4dc 7287 done
5c706339 7288IFS=$as_save_IFS
b9668ba4 7289
b9668ba4 7290fi
5c706339
AK
7291fi
7292ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7293if test -n "$ac_ct_OTOOL"; then
0fbeb4dc 7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
47dc80f6 7295$as_echo "$ac_ct_OTOOL" >&6; }
b9668ba4 7296else
0fbeb4dc 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 7298$as_echo "no" >&6; }
b9668ba4
AK
7299fi
7300
5c706339
AK
7301 if test "x$ac_ct_OTOOL" = x; then
7302 OTOOL=":"
b9668ba4 7303 else
5c706339
AK
7304 case $cross_compiling:$ac_tool_warned in
7305yes:)
0fbeb4dc 7306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 7307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5c706339 7308ac_tool_warned=yes ;;
b9668ba4 7309esac
5c706339
AK
7310 OTOOL=$ac_ct_OTOOL
7311 fi
7312else
7313 OTOOL="$ac_cv_prog_OTOOL"
b9668ba4
AK
7314fi
7315
5c706339
AK
7316 if test -n "$ac_tool_prefix"; then
7317 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7318set dummy ${ac_tool_prefix}otool64; ac_word=$2
0fbeb4dc 7319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 7320$as_echo_n "checking for $ac_word... " >&6; }
059850b5 7321if ${ac_cv_prog_OTOOL64+:} false; then :
47dc80f6 7322 $as_echo_n "(cached) " >&6
5c706339
AK
7323else
7324 if test -n "$OTOOL64"; then
7325 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7326else
7327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328for as_dir in $PATH
7329do
7330 IFS=$as_save_IFS
7331 test -z "$as_dir" && as_dir=.
0fbeb4dc 7332 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 7333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 7334 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
0fbeb4dc 7335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
7336 break 2
7337 fi
7338done
0fbeb4dc 7339 done
5c706339 7340IFS=$as_save_IFS
b9668ba4 7341
5c706339
AK
7342fi
7343fi
7344OTOOL64=$ac_cv_prog_OTOOL64
7345if test -n "$OTOOL64"; then
0fbeb4dc 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
47dc80f6 7347$as_echo "$OTOOL64" >&6; }
b9668ba4 7348else
0fbeb4dc 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 7350$as_echo "no" >&6; }
b9668ba4
AK
7351fi
7352
b9668ba4 7353
5c706339
AK
7354fi
7355if test -z "$ac_cv_prog_OTOOL64"; then
7356 ac_ct_OTOOL64=$OTOOL64
7357 # Extract the first word of "otool64", so it can be a program name with args.
7358set dummy otool64; ac_word=$2
0fbeb4dc 7359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 7360$as_echo_n "checking for $ac_word... " >&6; }
059850b5 7361if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
47dc80f6 7362 $as_echo_n "(cached) " >&6
5c706339
AK
7363else
7364 if test -n "$ac_ct_OTOOL64"; then
7365 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7366else
7367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368for as_dir in $PATH
7369do
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
0fbeb4dc 7372 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 7373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 7374 ac_cv_prog_ac_ct_OTOOL64="otool64"
0fbeb4dc 7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
7376 break 2
7377 fi
7378done
0fbeb4dc 7379 done
5c706339 7380IFS=$as_save_IFS
b9668ba4 7381
5c706339
AK
7382fi
7383fi
7384ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7385if test -n "$ac_ct_OTOOL64"; then
0fbeb4dc 7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
47dc80f6 7387$as_echo "$ac_ct_OTOOL64" >&6; }
5c706339 7388else
0fbeb4dc 7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 7390$as_echo "no" >&6; }
5c706339 7391fi
b9668ba4 7392
5c706339
AK
7393 if test "x$ac_ct_OTOOL64" = x; then
7394 OTOOL64=":"
7395 else
7396 case $cross_compiling:$ac_tool_warned in
7397yes:)
0fbeb4dc 7398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 7399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5c706339
AK
7400ac_tool_warned=yes ;;
7401esac
7402 OTOOL64=$ac_ct_OTOOL64
7403 fi
7404else
7405 OTOOL64="$ac_cv_prog_OTOOL64"
7406fi
b9668ba4 7407
b9668ba4 7408
b9668ba4 7409
b9668ba4
AK
7410
7411
b9668ba4 7412
b9668ba4 7413
b9668ba4
AK
7414
7415
b9668ba4 7416
b9668ba4
AK
7417
7418
7419
b9668ba4 7420
b9668ba4
AK
7421
7422
b9668ba4 7423
b9668ba4 7424
b9668ba4 7425
b9668ba4 7426
b9668ba4 7427
b9668ba4 7428
b9668ba4 7429
b9668ba4 7430
b9668ba4 7431
b9668ba4 7432
b9668ba4 7433
0fbeb4dc 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
47dc80f6 7435$as_echo_n "checking for -single_module linker flag... " >&6; }
059850b5 7436if ${lt_cv_apple_cc_single_mod+:} false; then :
47dc80f6 7437 $as_echo_n "(cached) " >&6
5c706339
AK
7438else
7439 lt_cv_apple_cc_single_mod=no
c45550e5 7440 if test -z "$LT_MULTI_MODULE"; then
5c706339
AK
7441 # By default we will add the -single_module flag. You can override
7442 # by either setting the environment variable LT_MULTI_MODULE
7443 # non-empty at configure time, or by adding -multi_module to the
7444 # link flags.
7445 rm -rf libconftest.dylib*
7446 echo "int foo(void){return 1;}" > conftest.c
7447 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7448-dynamiclib -Wl,-single_module conftest.c" >&5
7449 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7450 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7451 _lt_result=$?
059850b5
AK
7452 # If there is a non-empty error log, and "single_module"
7453 # appears in it, assume the flag caused a linker warning
7454 if test -s conftest.err && $GREP single_module conftest.err; then
7455 cat conftest.err >&5
7456 # Otherwise, if the output was created with a 0 exit code from
7457 # the compiler, it worked.
c45550e5 7458 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
5c706339
AK
7459 lt_cv_apple_cc_single_mod=yes
7460 else
7461 cat conftest.err >&5
7462 fi
7463 rm -rf libconftest.dylib*
7464 rm -f conftest.*
7465 fi
7466fi
0fbeb4dc 7467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
47dc80f6 7468$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
059850b5 7469
0fbeb4dc 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
47dc80f6 7471$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
059850b5 7472if ${lt_cv_ld_exported_symbols_list+:} false; then :
47dc80f6 7473 $as_echo_n "(cached) " >&6
5c706339
AK
7474else
7475 lt_cv_ld_exported_symbols_list=no
7476 save_LDFLAGS=$LDFLAGS
7477 echo "_main" > conftest.sym
7478 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
0fbeb4dc 7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339 7480/* end confdefs.h. */
b9668ba4 7481
5c706339
AK
7482int
7483main ()
7484{
b9668ba4 7485
5c706339
AK
7486 ;
7487 return 0;
7488}
7489_ACEOF
0fbeb4dc 7490if ac_fn_c_try_link "$LINENO"; then :
5c706339
AK
7491 lt_cv_ld_exported_symbols_list=yes
7492else
0fbeb4dc 7493 lt_cv_ld_exported_symbols_list=no
5c706339 7494fi
0fbeb4dc
AK
7495rm -f core conftest.err conftest.$ac_objext \
7496 conftest$ac_exeext conftest.$ac_ext
c45550e5 7497 LDFLAGS=$save_LDFLAGS
b9668ba4 7498
5c706339 7499fi
0fbeb4dc 7500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
47dc80f6 7501$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
059850b5
AK
7502
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7504$as_echo_n "checking for -force_load linker flag... " >&6; }
7505if ${lt_cv_ld_force_load+:} false; then :
7506 $as_echo_n "(cached) " >&6
7507else
7508 lt_cv_ld_force_load=no
7509 cat > conftest.c << _LT_EOF
7510int forced_loaded() { return 2;}
7511_LT_EOF
7512 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7513 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7514 echo "$AR cru libconftest.a conftest.o" >&5
7515 $AR cru libconftest.a conftest.o 2>&5
7516 echo "$RANLIB libconftest.a" >&5
7517 $RANLIB libconftest.a 2>&5
7518 cat > conftest.c << _LT_EOF
7519int main() { return 0;}
7520_LT_EOF
7521 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7522 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7523 _lt_result=$?
7524 if test -s conftest.err && $GREP force_load conftest.err; then
7525 cat conftest.err >&5
c45550e5 7526 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
059850b5
AK
7527 lt_cv_ld_force_load=yes
7528 else
7529 cat conftest.err >&5
7530 fi
7531 rm -f conftest.err libconftest.a conftest conftest.c
7532 rm -rf conftest.dSYM
7533
7534fi
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7536$as_echo "$lt_cv_ld_force_load" >&6; }
b9668ba4 7537 case $host_os in
5c706339 7538 rhapsody* | darwin1.[012])
c45550e5 7539 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
5c706339 7540 darwin1.*)
c45550e5 7541 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
5c706339
AK
7542 darwin*) # darwin 5.x on
7543 # if running on 10.5 or later, the deployment target defaults
7544 # to the OS version, if on x86, and 10.4, the deployment
7545 # target defaults to 10.4. Don't you love it?
7546 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7547 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
c45550e5
AK
7548 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7549 10.[012][,.]*)
7550 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
5c706339 7551 10.*)
c45550e5 7552 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
b9668ba4 7553 esac
5c706339
AK
7554 ;;
7555 esac
c45550e5 7556 if test yes = "$lt_cv_apple_cc_single_mod"; then
5c706339
AK
7557 _lt_dar_single_mod='$single_module'
7558 fi
c45550e5
AK
7559 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7560 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
5c706339 7561 else
c45550e5 7562 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
5c706339 7563 fi
c45550e5 7564 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
5c706339
AK
7565 _lt_dsymutil='~$DSYMUTIL $lib || :'
7566 else
7567 _lt_dsymutil=
7568 fi
7569 ;;
7570 esac
b9668ba4 7571
c45550e5
AK
7572# func_munge_path_list VARIABLE PATH
7573# -----------------------------------
7574# VARIABLE is name of variable containing _space_ separated list of
7575# directories to be munged by the contents of PATH, which is string
7576# having a format:
7577# "DIR[:DIR]:"
7578# string "DIR[ DIR]" will be prepended to VARIABLE
7579# ":DIR[:DIR]"
7580# string "DIR[ DIR]" will be appended to VARIABLE
7581# "DIRP[:DIRP]::[DIRA:]DIRA"
7582# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7583# "DIRA[ DIRA]" will be appended to VARIABLE
7584# "DIR[:DIR]"
7585# VARIABLE will be replaced by "DIR[ DIR]"
7586func_munge_path_list ()
7587{
7588 case x$2 in
7589 x)
7590 ;;
7591 *:)
7592 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7593 ;;
7594 x:*)
7595 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7596 ;;
7597 *::*)
7598 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7599 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7600 ;;
7601 *)
7602 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7603 ;;
7604 esac
7605}
7606
b9668ba4 7607
0fbeb4dc 7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
47dc80f6 7609$as_echo_n "checking for ANSI C header files... " >&6; }
059850b5 7610if ${ac_cv_header_stdc+:} false; then :
47dc80f6 7611 $as_echo_n "(cached) " >&6
5c706339 7612else
0fbeb4dc 7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339
AK
7614/* end confdefs.h. */
7615#include <stdlib.h>
7616#include <stdarg.h>
7617#include <string.h>
7618#include <float.h>
b9668ba4 7619
5c706339
AK
7620int
7621main ()
7622{
b9668ba4 7623
5c706339
AK
7624 ;
7625 return 0;
7626}
7627_ACEOF
0fbeb4dc 7628if ac_fn_c_try_compile "$LINENO"; then :
5c706339
AK
7629 ac_cv_header_stdc=yes
7630else
0fbeb4dc 7631 ac_cv_header_stdc=no
5c706339 7632fi
5c706339 7633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b9668ba4 7634
5c706339
AK
7635if test $ac_cv_header_stdc = yes; then
7636 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
0fbeb4dc 7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339
AK
7638/* end confdefs.h. */
7639#include <string.h>
b9668ba4 7640
5c706339
AK
7641_ACEOF
7642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0fbeb4dc
AK
7643 $EGREP "memchr" >/dev/null 2>&1; then :
7644
b9668ba4 7645else
5c706339 7646 ac_cv_header_stdc=no
b9668ba4 7647fi
5c706339 7648rm -f conftest*
b9668ba4 7649
b9668ba4
AK
7650fi
7651
5c706339
AK
7652if test $ac_cv_header_stdc = yes; then
7653 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
0fbeb4dc 7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339
AK
7655/* end confdefs.h. */
7656#include <stdlib.h>
b9668ba4 7657
5c706339
AK
7658_ACEOF
7659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0fbeb4dc
AK
7660 $EGREP "free" >/dev/null 2>&1; then :
7661
b9668ba4 7662else
5c706339 7663 ac_cv_header_stdc=no
b9668ba4 7664fi
5c706339 7665rm -f conftest*
b9668ba4 7666
b9668ba4
AK
7667fi
7668
5c706339
AK
7669if test $ac_cv_header_stdc = yes; then
7670 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
0fbeb4dc 7671 if test "$cross_compiling" = yes; then :
5c706339 7672 :
b9668ba4 7673else
0fbeb4dc 7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339
AK
7675/* end confdefs.h. */
7676#include <ctype.h>
7677#include <stdlib.h>
7678#if ((' ' & 0x0FF) == 0x020)
7679# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7680# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7681#else
7682# define ISLOWER(c) \
7683 (('a' <= (c) && (c) <= 'i') \
7684 || ('j' <= (c) && (c) <= 'r') \
7685 || ('s' <= (c) && (c) <= 'z'))
7686# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7687#endif
b9668ba4 7688
5c706339
AK
7689#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7690int
7691main ()
7692{
7693 int i;
7694 for (i = 0; i < 256; i++)
7695 if (XOR (islower (i), ISLOWER (i))
7696 || toupper (i) != TOUPPER (i))
7697 return 2;
7698 return 0;
7699}
7700_ACEOF
0fbeb4dc
AK
7701if ac_fn_c_try_run "$LINENO"; then :
7702
5c706339 7703else
0fbeb4dc
AK
7704 ac_cv_header_stdc=no
7705fi
7706rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7707 conftest.$ac_objext conftest.beam conftest.$ac_ext
7708fi
b9668ba4 7709
5c706339 7710fi
0fbeb4dc
AK
7711fi
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7713$as_echo "$ac_cv_header_stdc" >&6; }
7714if test $ac_cv_header_stdc = yes; then
7715
7716$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b9668ba4 7717
5c706339 7718fi
0fbeb4dc
AK
7719
7720# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7721for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7722 inttypes.h stdint.h unistd.h
7723do :
7724 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7725ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7726"
7727if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5c706339 7728 cat >>confdefs.h <<_ACEOF
47dc80f6 7729#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5c706339 7730_ACEOF
b9668ba4 7731
5c706339 7732fi
b9668ba4 7733
5c706339 7734done
b9668ba4 7735
b9668ba4 7736
5c706339 7737for ac_header in dlfcn.h
0fbeb4dc
AK
7738do :
7739 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7740"
059850b5 7741if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5c706339 7742 cat >>confdefs.h <<_ACEOF
0fbeb4dc 7743#define HAVE_DLFCN_H 1
5c706339 7744_ACEOF
b9668ba4 7745
5c706339 7746fi
b9668ba4 7747
5c706339 7748done
b9668ba4 7749
b9668ba4 7750
b9668ba4 7751
059850b5
AK
7752
7753
5c706339 7754# Set options
b9668ba4
AK
7755
7756
b9668ba4 7757
5c706339 7758 enable_dlopen=no
b9668ba4 7759
5c706339
AK
7760
7761 enable_win32_dll=no
7762
7763
7764 # Check whether --enable-shared was given.
0fbeb4dc 7765if test "${enable_shared+set}" = set; then :
5c706339
AK
7766 enableval=$enable_shared; p=${PACKAGE-default}
7767 case $enableval in
7768 yes) enable_shared=yes ;;
7769 no) enable_shared=no ;;
7770 *)
7771 enable_shared=no
7772 # Look at the argument we got. We use all the common list separators.
c45550e5 7773 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5c706339 7774 for pkg in $enableval; do
c45550e5 7775 IFS=$lt_save_ifs
5c706339
AK
7776 if test "X$pkg" = "X$p"; then
7777 enable_shared=yes
b9668ba4 7778 fi
5c706339 7779 done
c45550e5 7780 IFS=$lt_save_ifs
b9668ba4 7781 ;;
5c706339
AK
7782 esac
7783else
7784 enable_shared=yes
7785fi
b9668ba4 7786
b9668ba4 7787
b9668ba4 7788
b9668ba4 7789
b9668ba4 7790
b9668ba4 7791
b9668ba4 7792
b9668ba4 7793
b9668ba4 7794
5c706339 7795 # Check whether --enable-static was given.
0fbeb4dc 7796if test "${enable_static+set}" = set; then :
5c706339
AK
7797 enableval=$enable_static; p=${PACKAGE-default}
7798 case $enableval in
7799 yes) enable_static=yes ;;
7800 no) enable_static=no ;;
7801 *)
7802 enable_static=no
7803 # Look at the argument we got. We use all the common list separators.
c45550e5 7804 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5c706339 7805 for pkg in $enableval; do
c45550e5 7806 IFS=$lt_save_ifs
5c706339
AK
7807 if test "X$pkg" = "X$p"; then
7808 enable_static=yes
7809 fi
7810 done
c45550e5 7811 IFS=$lt_save_ifs
b9668ba4 7812 ;;
5c706339
AK
7813 esac
7814else
7815 enable_static=yes
7816fi
b9668ba4 7817
b9668ba4 7818
b9668ba4 7819
b9668ba4 7820
b9668ba4 7821
b9668ba4 7822
b9668ba4 7823
b9668ba4 7824
b9668ba4 7825
b9668ba4 7826
5c706339 7827# Check whether --with-pic was given.
0fbeb4dc 7828if test "${with_pic+set}" = set; then :
059850b5
AK
7829 withval=$with_pic; lt_p=${PACKAGE-default}
7830 case $withval in
7831 yes|no) pic_mode=$withval ;;
7832 *)
7833 pic_mode=default
7834 # Look at the argument we got. We use all the common list separators.
c45550e5 7835 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
059850b5 7836 for lt_pkg in $withval; do
c45550e5 7837 IFS=$lt_save_ifs
059850b5
AK
7838 if test "X$lt_pkg" = "X$lt_p"; then
7839 pic_mode=yes
7840 fi
7841 done
c45550e5 7842 IFS=$lt_save_ifs
059850b5
AK
7843 ;;
7844 esac
5c706339
AK
7845else
7846 pic_mode=default
7847fi
b9668ba4 7848
b9668ba4 7849
b9668ba4 7850
b9668ba4 7851
b9668ba4 7852
b9668ba4 7853
b9668ba4 7854
b9668ba4 7855
5c706339 7856 # Check whether --enable-fast-install was given.
0fbeb4dc 7857if test "${enable_fast_install+set}" = set; then :
5c706339
AK
7858 enableval=$enable_fast_install; p=${PACKAGE-default}
7859 case $enableval in
7860 yes) enable_fast_install=yes ;;
7861 no) enable_fast_install=no ;;
7862 *)
7863 enable_fast_install=no
7864 # Look at the argument we got. We use all the common list separators.
c45550e5 7865 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5c706339 7866 for pkg in $enableval; do
c45550e5 7867 IFS=$lt_save_ifs
5c706339
AK
7868 if test "X$pkg" = "X$p"; then
7869 enable_fast_install=yes
7870 fi
7871 done
c45550e5 7872 IFS=$lt_save_ifs
b9668ba4 7873 ;;
5c706339
AK
7874 esac
7875else
7876 enable_fast_install=yes
7877fi
b9668ba4 7878
b9668ba4 7879
b9668ba4 7880
b9668ba4 7881
b9668ba4 7882
b9668ba4 7883
b9668ba4 7884
b9668ba4 7885
c45550e5
AK
7886 shared_archive_member_spec=
7887case $host,$enable_shared in
7888power*-*-aix[5-9]*,yes)
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7890$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7891
7892# Check whether --with-aix-soname was given.
7893if test "${with_aix_soname+set}" = set; then :
7894 withval=$with_aix_soname; case $withval in
7895 aix|svr4|both)
7896 ;;
7897 *)
7898 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7899 ;;
7900 esac
7901 lt_cv_with_aix_soname=$with_aix_soname
7902else
7903 if ${lt_cv_with_aix_soname+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905else
7906 lt_cv_with_aix_soname=aix
7907fi
7908
7909 with_aix_soname=$lt_cv_with_aix_soname
7910fi
7911
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7913$as_echo "$with_aix_soname" >&6; }
7914 if test aix != "$with_aix_soname"; then
7915 # For the AIX way of multilib, we name the shared archive member
7916 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7917 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7918 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7919 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7920 if test 64 = "${OBJECT_MODE-32}"; then
7921 shared_archive_member_spec=shr_64
7922 else
7923 shared_archive_member_spec=shr
7924 fi
7925 fi
7926 ;;
7927*)
7928 with_aix_soname=aix
7929 ;;
7930esac
7931
7932
7933
7934
7935
7936
7937
b9668ba4 7938
b9668ba4 7939
b9668ba4 7940
5c706339 7941# This can be used to rebuild libtool when needed
c45550e5 7942LIBTOOL_DEPS=$ltmain
b9668ba4 7943
5c706339
AK
7944# Always use our own libtool.
7945LIBTOOL='$(SHELL) $(top_builddir)/libtool'
b9668ba4 7946
5c706339
AK
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
059850b5
AK
7965
7966
7967
7968
7969
5c706339
AK
7970
7971
7972
7973
7974
7975
7976test -z "$LN_S" && LN_S="ln -s"
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
c45550e5 7991if test -n "${ZSH_VERSION+set}"; then
5c706339
AK
7992 setopt NO_GLOB_SUBST
7993fi
7994
0fbeb4dc 7995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
47dc80f6 7996$as_echo_n "checking for objdir... " >&6; }
059850b5 7997if ${lt_cv_objdir+:} false; then :
47dc80f6 7998 $as_echo_n "(cached) " >&6
b9668ba4 7999else
5c706339
AK
8000 rm -f .libs 2>/dev/null
8001mkdir .libs 2>/dev/null
8002if test -d .libs; then
8003 lt_cv_objdir=.libs
8004else
8005 # MS-DOS does not allow filenames that begin with a dot.
8006 lt_cv_objdir=_libs
b9668ba4 8007fi
5c706339
AK
8008rmdir .libs 2>/dev/null
8009fi
0fbeb4dc 8010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
47dc80f6 8011$as_echo "$lt_cv_objdir" >&6; }
5c706339 8012objdir=$lt_cv_objdir
b9668ba4 8013
b9668ba4 8014
b9668ba4 8015
b9668ba4 8016
b9668ba4 8017
5c706339
AK
8018cat >>confdefs.h <<_ACEOF
8019#define LT_OBJDIR "$lt_cv_objdir/"
8020_ACEOF
b9668ba4 8021
b9668ba4 8022
b9668ba4 8023
b9668ba4 8024
5c706339
AK
8025case $host_os in
8026aix3*)
8027 # AIX sometimes has problems with the GCC collect2 program. For some
8028 # reason, if we set the COLLECT_NAMES environment variable, the problems
8029 # vanish in a puff of smoke.
c45550e5 8030 if test set != "${COLLECT_NAMES+set}"; then
5c706339
AK
8031 COLLECT_NAMES=
8032 export COLLECT_NAMES
b9668ba4 8033 fi
b9668ba4 8034 ;;
5c706339 8035esac
b9668ba4 8036
5c706339
AK
8037# Global variables:
8038ofile=libtool
8039can_build_shared=yes
b9668ba4 8040
c45550e5 8041# All known linkers require a '.a' archive for static linking (except MSVC,
5c706339
AK
8042# which needs '.lib').
8043libext=a
b9668ba4 8044
c45550e5 8045with_gnu_ld=$lt_cv_prog_gnu_ld
b9668ba4 8046
c45550e5
AK
8047old_CC=$CC
8048old_CFLAGS=$CFLAGS
b9668ba4 8049
5c706339
AK
8050# Set sane defaults for various variables
8051test -z "$CC" && CC=cc
8052test -z "$LTCC" && LTCC=$CC
8053test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8054test -z "$LD" && LD=ld
8055test -z "$ac_objext" && ac_objext=o
b9668ba4 8056
c45550e5
AK
8057func_cc_basename $compiler
8058cc_basename=$func_cc_basename_result
b9668ba4 8059
b9668ba4 8060
5c706339
AK
8061# Only perform the check for file, if the check method requires it
8062test -z "$MAGIC_CMD" && MAGIC_CMD=file
8063case $deplibs_check_method in
8064file_magic*)
8065 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
0fbeb4dc 8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
47dc80f6 8067$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
059850b5 8068if ${lt_cv_path_MAGIC_CMD+:} false; then :
47dc80f6 8069 $as_echo_n "(cached) " >&6
5c706339
AK
8070else
8071 case $MAGIC_CMD in
8072[\\/*] | ?:[\\/]*)
c45550e5 8073 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
b9668ba4 8074 ;;
5c706339 8075*)
c45550e5
AK
8076 lt_save_MAGIC_CMD=$MAGIC_CMD
8077 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5c706339
AK
8078 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8079 for ac_dir in $ac_dummy; do
c45550e5 8080 IFS=$lt_save_ifs
5c706339 8081 test -z "$ac_dir" && ac_dir=.
c45550e5
AK
8082 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8083 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
5c706339
AK
8084 if test -n "$file_magic_test_file"; then
8085 case $deplibs_check_method in
8086 "file_magic "*)
8087 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
c45550e5 8088 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
5c706339
AK
8089 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8090 $EGREP "$file_magic_regex" > /dev/null; then
8091 :
8092 else
8093 cat <<_LT_EOF 1>&2
b9668ba4 8094
5c706339
AK
8095*** Warning: the command libtool uses to detect shared libraries,
8096*** $file_magic_cmd, produces output that libtool cannot recognize.
8097*** The result is that libtool may fail to recognize shared libraries
8098*** as such. This will affect the creation of libtool libraries that
8099*** depend on shared libraries, but programs linked with such libtool
8100*** libraries will work regardless of this problem. Nevertheless, you
8101*** may want to report the problem to your system manager and/or to
8102*** bug-libtool@gnu.org
8103
8104_LT_EOF
8105 fi ;;
8106 esac
8107 fi
8108 break
8109 fi
8110 done
c45550e5
AK
8111 IFS=$lt_save_ifs
8112 MAGIC_CMD=$lt_save_MAGIC_CMD
b9668ba4 8113 ;;
5c706339
AK
8114esac
8115fi
b9668ba4 8116
c45550e5 8117MAGIC_CMD=$lt_cv_path_MAGIC_CMD
5c706339 8118if test -n "$MAGIC_CMD"; then
0fbeb4dc 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
47dc80f6 8120$as_echo "$MAGIC_CMD" >&6; }
5c706339 8121else
0fbeb4dc 8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 8123$as_echo "no" >&6; }
5c706339 8124fi
b9668ba4 8125
b9668ba4 8126
b9668ba4 8127
b9668ba4 8128
b9668ba4 8129
5c706339
AK
8130if test -z "$lt_cv_path_MAGIC_CMD"; then
8131 if test -n "$ac_tool_prefix"; then
0fbeb4dc 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
47dc80f6 8133$as_echo_n "checking for file... " >&6; }
059850b5 8134if ${lt_cv_path_MAGIC_CMD+:} false; then :
47dc80f6 8135 $as_echo_n "(cached) " >&6
5c706339
AK
8136else
8137 case $MAGIC_CMD in
8138[\\/*] | ?:[\\/]*)
c45550e5 8139 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
b9668ba4 8140 ;;
5c706339 8141*)
c45550e5
AK
8142 lt_save_MAGIC_CMD=$MAGIC_CMD
8143 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5c706339
AK
8144 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8145 for ac_dir in $ac_dummy; do
c45550e5 8146 IFS=$lt_save_ifs
5c706339 8147 test -z "$ac_dir" && ac_dir=.
c45550e5
AK
8148 if test -f "$ac_dir/file"; then
8149 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
5c706339
AK
8150 if test -n "$file_magic_test_file"; then
8151 case $deplibs_check_method in
8152 "file_magic "*)
8153 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
c45550e5 8154 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
5c706339
AK
8155 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8156 $EGREP "$file_magic_regex" > /dev/null; then
8157 :
8158 else
8159 cat <<_LT_EOF 1>&2
b9668ba4 8160
5c706339
AK
8161*** Warning: the command libtool uses to detect shared libraries,
8162*** $file_magic_cmd, produces output that libtool cannot recognize.
8163*** The result is that libtool may fail to recognize shared libraries
8164*** as such. This will affect the creation of libtool libraries that
8165*** depend on shared libraries, but programs linked with such libtool
8166*** libraries will work regardless of this problem. Nevertheless, you
8167*** may want to report the problem to your system manager and/or to
8168*** bug-libtool@gnu.org
b9668ba4 8169
5c706339
AK
8170_LT_EOF
8171 fi ;;
8172 esac
8173 fi
8174 break
8175 fi
8176 done
c45550e5
AK
8177 IFS=$lt_save_ifs
8178 MAGIC_CMD=$lt_save_MAGIC_CMD
b9668ba4
AK
8179 ;;
8180esac
5c706339 8181fi
b9668ba4 8182
c45550e5 8183MAGIC_CMD=$lt_cv_path_MAGIC_CMD
5c706339 8184if test -n "$MAGIC_CMD"; then
0fbeb4dc 8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
47dc80f6 8186$as_echo "$MAGIC_CMD" >&6; }
5c706339 8187else
0fbeb4dc 8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 8189$as_echo "no" >&6; }
b9668ba4
AK
8190fi
8191
b9668ba4 8192
b9668ba4 8193 else
5c706339 8194 MAGIC_CMD=:
b9668ba4 8195 fi
b9668ba4
AK
8196fi
8197
5c706339
AK
8198 fi
8199 ;;
8200esac
b9668ba4 8201
5c706339 8202# Use C for the default configuration in the libtool script
b9668ba4 8203
c45550e5 8204lt_save_CC=$CC
5c706339
AK
8205ac_ext=c
8206ac_cpp='$CPP $CPPFLAGS'
8207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8209ac_compiler_gnu=$ac_cv_c_compiler_gnu
b9668ba4 8210
b9668ba4 8211
5c706339
AK
8212# Source file extension for C test sources.
8213ac_ext=c
b9668ba4 8214
5c706339
AK
8215# Object file extension for compiled C test sources.
8216objext=o
8217objext=$objext
b9668ba4 8218
5c706339
AK
8219# Code to be used in simple compile tests
8220lt_simple_compile_test_code="int some_variable = 0;"
b9668ba4 8221
5c706339
AK
8222# Code to be used in simple link tests
8223lt_simple_link_test_code='int main(){return(0);}'
b9668ba4 8224
b9668ba4 8225
b9668ba4 8226
b9668ba4 8227
b9668ba4 8228
b9668ba4 8229
b9668ba4 8230
5c706339
AK
8231# If no C compiler was specified, use CC.
8232LTCC=${LTCC-"$CC"}
b9668ba4 8233
5c706339
AK
8234# If no C compiler flags were specified, use CFLAGS.
8235LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
b9668ba4 8236
5c706339
AK
8237# Allow CC to be a program name with arguments.
8238compiler=$CC
b9668ba4 8239
5c706339
AK
8240# Save the default compiler, since it gets overwritten when the other
8241# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8242compiler_DEFAULT=$CC
b9668ba4 8243
5c706339
AK
8244# save warnings/boilerplate of simple test code
8245ac_outfile=conftest.$ac_objext
8246echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8247eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8248_lt_compiler_boilerplate=`cat conftest.err`
8249$RM conftest*
b9668ba4 8250
5c706339
AK
8251ac_outfile=conftest.$ac_objext
8252echo "$lt_simple_link_test_code" >conftest.$ac_ext
8253eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8254_lt_linker_boilerplate=`cat conftest.err`
8255$RM -r conftest*
b9668ba4 8256
b9668ba4 8257
5c706339 8258if test -n "$compiler"; then
b9668ba4 8259
5c706339
AK
8260lt_prog_compiler_no_builtin_flag=
8261
c45550e5 8262if test yes = "$GCC"; then
059850b5
AK
8263 case $cc_basename in
8264 nvcc*)
8265 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8266 *)
8267 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8268 esac
5c706339 8269
0fbeb4dc 8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
47dc80f6 8271$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
059850b5 8272if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
47dc80f6 8273 $as_echo_n "(cached) " >&6
b9668ba4 8274else
5c706339
AK
8275 lt_cv_prog_compiler_rtti_exceptions=no
8276 ac_outfile=conftest.$ac_objext
8277 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
c45550e5 8278 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
5c706339
AK
8279 # Insert the option either (1) after the last *FLAGS variable, or
8280 # (2) before a word containing "conftest.", or (3) at the end.
8281 # Note that $ac_compile itself does not contain backslashes and begins
8282 # with a dollar sign (not a hyphen), so the echo should work correctly.
8283 # The option is referenced via a variable to avoid confusing sed.
8284 lt_compile=`echo "$ac_compile" | $SED \
8285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8287 -e 's:$: $lt_compiler_flag:'`
059850b5 8288 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
5c706339
AK
8289 (eval "$lt_compile" 2>conftest.err)
8290 ac_status=$?
8291 cat conftest.err >&5
059850b5 8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
8293 if (exit $ac_status) && test -s "$ac_outfile"; then
8294 # The compiler can only warn and ignore the option if not recognized
8295 # So say no if there are warnings other than the usual output.
059850b5 8296 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
5c706339
AK
8297 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8298 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8299 lt_cv_prog_compiler_rtti_exceptions=yes
8300 fi
8301 fi
8302 $RM conftest*
b9668ba4 8303
5c706339 8304fi
0fbeb4dc 8305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
47dc80f6 8306$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
b9668ba4 8307
c45550e5 8308if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
5c706339
AK
8309 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8310else
8311 :
8312fi
b9668ba4 8313
5c706339 8314fi
b9668ba4 8315
b9668ba4 8316
b9668ba4 8317
b9668ba4 8318
b9668ba4 8319
b9668ba4 8320
5c706339
AK
8321 lt_prog_compiler_wl=
8322lt_prog_compiler_pic=
8323lt_prog_compiler_static=
b9668ba4 8324
b9668ba4 8325
c45550e5 8326 if test yes = "$GCC"; then
5c706339
AK
8327 lt_prog_compiler_wl='-Wl,'
8328 lt_prog_compiler_static='-static'
b9668ba4 8329
5c706339
AK
8330 case $host_os in
8331 aix*)
8332 # All AIX code is PIC.
c45550e5 8333 if test ia64 = "$host_cpu"; then
5c706339
AK
8334 # AIX 5 now supports IA64 processor
8335 lt_prog_compiler_static='-Bstatic'
8336 fi
c45550e5 8337 lt_prog_compiler_pic='-fPIC'
5c706339 8338 ;;
b9668ba4 8339
5c706339
AK
8340 amigaos*)
8341 case $host_cpu in
8342 powerpc)
8343 # see comment about AmigaOS4 .so support
8344 lt_prog_compiler_pic='-fPIC'
8345 ;;
8346 m68k)
8347 # FIXME: we need at least 68020 code to build shared libraries, but
c45550e5
AK
8348 # adding the '-m68020' flag to GCC prevents building anything better,
8349 # like '-m68040'.
5c706339
AK
8350 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8351 ;;
8352 esac
8353 ;;
b9668ba4 8354
5c706339
AK
8355 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8356 # PIC is the default for these OSes.
8357 ;;
b9668ba4 8358
47dc80f6 8359 mingw* | cygwin* | pw32* | os2* | cegcc*)
5c706339
AK
8360 # This hack is so that the source file can tell whether it is being
8361 # built for inclusion in a dll (and should export symbols for example).
8362 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8363 # (--disable-auto-import) libraries
8364 lt_prog_compiler_pic='-DDLL_EXPORT'
c45550e5
AK
8365 case $host_os in
8366 os2*)
8367 lt_prog_compiler_static='$wl-static'
8368 ;;
8369 esac
5c706339 8370 ;;
b9668ba4 8371
5c706339
AK
8372 darwin* | rhapsody*)
8373 # PIC is the default on this platform
8374 # Common symbols not allowed in MH_DYLIB files
8375 lt_prog_compiler_pic='-fno-common'
8376 ;;
b9668ba4 8377
059850b5
AK
8378 haiku*)
8379 # PIC is the default for Haiku.
8380 # The "-static" flag exists, but is broken.
8381 lt_prog_compiler_static=
8382 ;;
8383
5c706339 8384 hpux*)
47dc80f6
AK
8385 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8386 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8387 # sets the default TLS model and affects inlining.
5c706339 8388 case $host_cpu in
47dc80f6 8389 hppa*64*)
5c706339
AK
8390 # +Z the default
8391 ;;
8392 *)
8393 lt_prog_compiler_pic='-fPIC'
8394 ;;
8395 esac
8396 ;;
b9668ba4 8397
5c706339
AK
8398 interix[3-9]*)
8399 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8400 # Instead, we relocate shared libraries at runtime.
8401 ;;
b9668ba4 8402
5c706339
AK
8403 msdosdjgpp*)
8404 # Just because we use GCC doesn't mean we suddenly get shared libraries
8405 # on systems that don't support them.
8406 lt_prog_compiler_can_build_shared=no
8407 enable_shared=no
8408 ;;
b9668ba4 8409
5c706339
AK
8410 *nto* | *qnx*)
8411 # QNX uses GNU C++, but need to define -shared option too, otherwise
8412 # it will coredump.
8413 lt_prog_compiler_pic='-fPIC -shared'
8414 ;;
b9668ba4 8415
5c706339
AK
8416 sysv4*MP*)
8417 if test -d /usr/nec; then
8418 lt_prog_compiler_pic=-Kconform_pic
8419 fi
8420 ;;
b9668ba4 8421
5c706339
AK
8422 *)
8423 lt_prog_compiler_pic='-fPIC'
8424 ;;
8425 esac
059850b5
AK
8426
8427 case $cc_basename in
8428 nvcc*) # Cuda Compiler Driver 2.2
8429 lt_prog_compiler_wl='-Xlinker '
8430 if test -n "$lt_prog_compiler_pic"; then
8431 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8432 fi
8433 ;;
8434 esac
5c706339
AK
8435 else
8436 # PORTME Check for flag to pass linker flags through the system compiler.
8437 case $host_os in
8438 aix*)
8439 lt_prog_compiler_wl='-Wl,'
c45550e5 8440 if test ia64 = "$host_cpu"; then
5c706339
AK
8441 # AIX 5 now supports IA64 processor
8442 lt_prog_compiler_static='-Bstatic'
8443 else
8444 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8445 fi
8446 ;;
b9668ba4 8447
c45550e5
AK
8448 darwin* | rhapsody*)
8449 # PIC is the default on this platform
8450 # Common symbols not allowed in MH_DYLIB files
8451 lt_prog_compiler_pic='-fno-common'
8452 case $cc_basename in
8453 nagfor*)
8454 # NAG Fortran compiler
8455 lt_prog_compiler_wl='-Wl,-Wl,,'
8456 lt_prog_compiler_pic='-PIC'
8457 lt_prog_compiler_static='-Bstatic'
8458 ;;
8459 esac
8460 ;;
8461
47dc80f6 8462 mingw* | cygwin* | pw32* | os2* | cegcc*)
5c706339
AK
8463 # This hack is so that the source file can tell whether it is being
8464 # built for inclusion in a dll (and should export symbols for example).
8465 lt_prog_compiler_pic='-DDLL_EXPORT'
c45550e5
AK
8466 case $host_os in
8467 os2*)
8468 lt_prog_compiler_static='$wl-static'
8469 ;;
8470 esac
5c706339 8471 ;;
b9668ba4 8472
5c706339
AK
8473 hpux9* | hpux10* | hpux11*)
8474 lt_prog_compiler_wl='-Wl,'
8475 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8476 # not for PA HP-UX.
8477 case $host_cpu in
8478 hppa*64*|ia64*)
8479 # +Z the default
8480 ;;
8481 *)
8482 lt_prog_compiler_pic='+Z'
8483 ;;
8484 esac
8485 # Is there a better lt_prog_compiler_static that works with the bundled CC?
c45550e5 8486 lt_prog_compiler_static='$wl-a ${wl}archive'
5c706339 8487 ;;
b9668ba4 8488
5c706339
AK
8489 irix5* | irix6* | nonstopux*)
8490 lt_prog_compiler_wl='-Wl,'
8491 # PIC (with -KPIC) is the default.
8492 lt_prog_compiler_static='-non_shared'
8493 ;;
b9668ba4 8494
0044e680 8495 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5c706339 8496 case $cc_basename in
c45550e5 8497 # old Intel for x86_64, which still supported -KPIC.
47dc80f6 8498 ecc*)
5c706339
AK
8499 lt_prog_compiler_wl='-Wl,'
8500 lt_prog_compiler_pic='-KPIC'
8501 lt_prog_compiler_static='-static'
8502 ;;
47dc80f6
AK
8503 # icc used to be incompatible with GCC.
8504 # ICC 10 doesn't accept -KPIC any more.
8505 icc* | ifort*)
8506 lt_prog_compiler_wl='-Wl,'
8507 lt_prog_compiler_pic='-fPIC'
8508 lt_prog_compiler_static='-static'
8509 ;;
8510 # Lahey Fortran 8.1.
8511 lf95*)
8512 lt_prog_compiler_wl='-Wl,'
8513 lt_prog_compiler_pic='--shared'
8514 lt_prog_compiler_static='--static'
8515 ;;
059850b5
AK
8516 nagfor*)
8517 # NAG Fortran compiler
8518 lt_prog_compiler_wl='-Wl,-Wl,,'
8519 lt_prog_compiler_pic='-PIC'
8520 lt_prog_compiler_static='-Bstatic'
8521 ;;
c45550e5
AK
8522 tcc*)
8523 # Fabrice Bellard et al's Tiny C Compiler
8524 lt_prog_compiler_wl='-Wl,'
8525 lt_prog_compiler_pic='-fPIC'
8526 lt_prog_compiler_static='-static'
8527 ;;
059850b5 8528 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
5c706339
AK
8529 # Portland Group compilers (*not* the Pentium gcc compiler,
8530 # which looks to be a dead project)
8531 lt_prog_compiler_wl='-Wl,'
8532 lt_prog_compiler_pic='-fpic'
8533 lt_prog_compiler_static='-Bstatic'
8534 ;;
8535 ccc*)
8536 lt_prog_compiler_wl='-Wl,'
8537 # All Alpha code is PIC.
8538 lt_prog_compiler_static='-non_shared'
8539 ;;
059850b5
AK
8540 xl* | bgxl* | bgf* | mpixl*)
8541 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
5c706339
AK
8542 lt_prog_compiler_wl='-Wl,'
8543 lt_prog_compiler_pic='-qpic'
8544 lt_prog_compiler_static='-qstaticlink'
8545 ;;
8546 *)
8547 case `$CC -V 2>&1 | sed 5q` in
059850b5
AK
8548 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8549 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8550 lt_prog_compiler_pic='-KPIC'
8551 lt_prog_compiler_static='-Bstatic'
8552 lt_prog_compiler_wl=''
8553 ;;
8554 *Sun\ F* | *Sun*Fortran*)
8555 lt_prog_compiler_pic='-KPIC'
8556 lt_prog_compiler_static='-Bstatic'
8557 lt_prog_compiler_wl='-Qoption ld '
8558 ;;
5c706339
AK
8559 *Sun\ C*)
8560 # Sun C 5.9
8561 lt_prog_compiler_pic='-KPIC'
8562 lt_prog_compiler_static='-Bstatic'
8563 lt_prog_compiler_wl='-Wl,'
8564 ;;
059850b5
AK
8565 *Intel*\ [CF]*Compiler*)
8566 lt_prog_compiler_wl='-Wl,'
8567 lt_prog_compiler_pic='-fPIC'
8568 lt_prog_compiler_static='-static'
8569 ;;
8570 *Portland\ Group*)
8571 lt_prog_compiler_wl='-Wl,'
8572 lt_prog_compiler_pic='-fpic'
5c706339 8573 lt_prog_compiler_static='-Bstatic'
5c706339
AK
8574 ;;
8575 esac
8576 ;;
8577 esac
8578 ;;
b9668ba4 8579
5c706339
AK
8580 newsos6)
8581 lt_prog_compiler_pic='-KPIC'
8582 lt_prog_compiler_static='-Bstatic'
8583 ;;
b9668ba4 8584
5c706339
AK
8585 *nto* | *qnx*)
8586 # QNX uses GNU C++, but need to define -shared option too, otherwise
8587 # it will coredump.
8588 lt_prog_compiler_pic='-fPIC -shared'
8589 ;;
b9668ba4 8590
5c706339
AK
8591 osf3* | osf4* | osf5*)
8592 lt_prog_compiler_wl='-Wl,'
8593 # All OSF/1 code is PIC.
8594 lt_prog_compiler_static='-non_shared'
8595 ;;
b9668ba4 8596
5c706339
AK
8597 rdos*)
8598 lt_prog_compiler_static='-non_shared'
8599 ;;
b9668ba4 8600
5c706339
AK
8601 solaris*)
8602 lt_prog_compiler_pic='-KPIC'
8603 lt_prog_compiler_static='-Bstatic'
8604 case $cc_basename in
059850b5 8605 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
5c706339
AK
8606 lt_prog_compiler_wl='-Qoption ld ';;
8607 *)
8608 lt_prog_compiler_wl='-Wl,';;
8609 esac
8610 ;;
b9668ba4 8611
5c706339
AK
8612 sunos4*)
8613 lt_prog_compiler_wl='-Qoption ld '
8614 lt_prog_compiler_pic='-PIC'
8615 lt_prog_compiler_static='-Bstatic'
8616 ;;
b9668ba4 8617
5c706339
AK
8618 sysv4 | sysv4.2uw2* | sysv4.3*)
8619 lt_prog_compiler_wl='-Wl,'
8620 lt_prog_compiler_pic='-KPIC'
8621 lt_prog_compiler_static='-Bstatic'
8622 ;;
b9668ba4 8623
5c706339 8624 sysv4*MP*)
c45550e5 8625 if test -d /usr/nec; then
5c706339
AK
8626 lt_prog_compiler_pic='-Kconform_pic'
8627 lt_prog_compiler_static='-Bstatic'
8628 fi
8629 ;;
b9668ba4 8630
5c706339
AK
8631 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8632 lt_prog_compiler_wl='-Wl,'
8633 lt_prog_compiler_pic='-KPIC'
8634 lt_prog_compiler_static='-Bstatic'
8635 ;;
b9668ba4 8636
5c706339
AK
8637 unicos*)
8638 lt_prog_compiler_wl='-Wl,'
8639 lt_prog_compiler_can_build_shared=no
8640 ;;
b9668ba4 8641
5c706339
AK
8642 uts4*)
8643 lt_prog_compiler_pic='-pic'
8644 lt_prog_compiler_static='-Bstatic'
8645 ;;
b9668ba4 8646
5c706339
AK
8647 *)
8648 lt_prog_compiler_can_build_shared=no
8649 ;;
b9668ba4 8650 esac
b9668ba4 8651 fi
b9668ba4 8652
5c706339 8653case $host_os in
c45550e5 8654 # For platforms that do not support PIC, -DPIC is meaningless:
5c706339
AK
8655 *djgpp*)
8656 lt_prog_compiler_pic=
8657 ;;
8658 *)
8659 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8660 ;;
8661esac
b9668ba4 8662
059850b5
AK
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8664$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8665if ${lt_cv_prog_compiler_pic+:} false; then :
8666 $as_echo_n "(cached) " >&6
8667else
8668 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8669fi
8670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8671$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8672lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
b9668ba4 8673
5c706339
AK
8674#
8675# Check to make sure the PIC flag actually works.
8676#
8677if test -n "$lt_prog_compiler_pic"; then
0fbeb4dc 8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
47dc80f6 8679$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
059850b5 8680if ${lt_cv_prog_compiler_pic_works+:} false; then :
47dc80f6 8681 $as_echo_n "(cached) " >&6
5c706339
AK
8682else
8683 lt_cv_prog_compiler_pic_works=no
8684 ac_outfile=conftest.$ac_objext
8685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
c45550e5 8686 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
5c706339
AK
8687 # Insert the option either (1) after the last *FLAGS variable, or
8688 # (2) before a word containing "conftest.", or (3) at the end.
8689 # Note that $ac_compile itself does not contain backslashes and begins
8690 # with a dollar sign (not a hyphen), so the echo should work correctly.
8691 # The option is referenced via a variable to avoid confusing sed.
8692 lt_compile=`echo "$ac_compile" | $SED \
8693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8695 -e 's:$: $lt_compiler_flag:'`
059850b5 8696 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
5c706339
AK
8697 (eval "$lt_compile" 2>conftest.err)
8698 ac_status=$?
8699 cat conftest.err >&5
059850b5 8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
8701 if (exit $ac_status) && test -s "$ac_outfile"; then
8702 # The compiler can only warn and ignore the option if not recognized
8703 # So say no if there are warnings other than the usual output.
059850b5 8704 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
5c706339
AK
8705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8707 lt_cv_prog_compiler_pic_works=yes
8708 fi
8709 fi
8710 $RM conftest*
b9668ba4 8711
b9668ba4 8712fi
0fbeb4dc 8713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
47dc80f6 8714$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
b9668ba4 8715
c45550e5 8716if test yes = "$lt_cv_prog_compiler_pic_works"; then
5c706339
AK
8717 case $lt_prog_compiler_pic in
8718 "" | " "*) ;;
8719 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8720 esac
8721else
8722 lt_prog_compiler_pic=
8723 lt_prog_compiler_can_build_shared=no
8724fi
b9668ba4
AK
8725
8726fi
b9668ba4 8727
b9668ba4 8728
b9668ba4 8729
b9668ba4
AK
8730
8731
b9668ba4 8732
059850b5
AK
8733
8734
8735
8736
8737
5c706339
AK
8738#
8739# Check to make sure the static flag actually works.
8740#
8741wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
0fbeb4dc 8742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
47dc80f6 8743$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
059850b5 8744if ${lt_cv_prog_compiler_static_works+:} false; then :
47dc80f6 8745 $as_echo_n "(cached) " >&6
5c706339
AK
8746else
8747 lt_cv_prog_compiler_static_works=no
c45550e5 8748 save_LDFLAGS=$LDFLAGS
5c706339
AK
8749 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8750 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8751 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8752 # The linker can only warn and ignore the option if not recognized
8753 # So say no if there are warnings
8754 if test -s conftest.err; then
8755 # Append any errors to the config.log.
8756 cat conftest.err 1>&5
059850b5 8757 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
5c706339
AK
8758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8759 if diff conftest.exp conftest.er2 >/dev/null; then
8760 lt_cv_prog_compiler_static_works=yes
8761 fi
8762 else
8763 lt_cv_prog_compiler_static_works=yes
8764 fi
8765 fi
8766 $RM -r conftest*
c45550e5 8767 LDFLAGS=$save_LDFLAGS
b9668ba4 8768
5c706339 8769fi
0fbeb4dc 8770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
47dc80f6 8771$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
b9668ba4 8772
c45550e5 8773if test yes = "$lt_cv_prog_compiler_static_works"; then
5c706339
AK
8774 :
8775else
8776 lt_prog_compiler_static=
8777fi
b9668ba4 8778
b9668ba4 8779
b9668ba4 8780
b9668ba4 8781
b9668ba4 8782
b9668ba4 8783
b9668ba4 8784
0fbeb4dc 8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
47dc80f6 8786$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
059850b5 8787if ${lt_cv_prog_compiler_c_o+:} false; then :
47dc80f6 8788 $as_echo_n "(cached) " >&6
5c706339
AK
8789else
8790 lt_cv_prog_compiler_c_o=no
8791 $RM -r conftest 2>/dev/null
8792 mkdir conftest
8793 cd conftest
8794 mkdir out
8795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
b9668ba4 8796
5c706339
AK
8797 lt_compiler_flag="-o out/conftest2.$ac_objext"
8798 # Insert the option either (1) after the last *FLAGS variable, or
8799 # (2) before a word containing "conftest.", or (3) at the end.
8800 # Note that $ac_compile itself does not contain backslashes and begins
8801 # with a dollar sign (not a hyphen), so the echo should work correctly.
8802 lt_compile=`echo "$ac_compile" | $SED \
8803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8805 -e 's:$: $lt_compiler_flag:'`
059850b5 8806 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
5c706339
AK
8807 (eval "$lt_compile" 2>out/conftest.err)
8808 ac_status=$?
8809 cat out/conftest.err >&5
059850b5 8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
8811 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8812 then
8813 # The compiler can only warn and ignore the option if not recognized
8814 # So say no if there are warnings
059850b5 8815 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
5c706339
AK
8816 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8817 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8818 lt_cv_prog_compiler_c_o=yes
8819 fi
8820 fi
8821 chmod u+w . 2>&5
8822 $RM conftest*
8823 # SGI C++ compiler will create directory out/ii_files/ for
8824 # template instantiation
8825 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8826 $RM out/* && rmdir out
8827 cd ..
8828 $RM -r conftest
8829 $RM conftest*
b9668ba4 8830
5c706339 8831fi
0fbeb4dc 8832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
47dc80f6 8833$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
b9668ba4 8834
b9668ba4 8835
b9668ba4 8836
b9668ba4 8837
b9668ba4 8838
b9668ba4 8839
0fbeb4dc 8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
47dc80f6 8841$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
059850b5 8842if ${lt_cv_prog_compiler_c_o+:} false; then :
47dc80f6 8843 $as_echo_n "(cached) " >&6
5c706339
AK
8844else
8845 lt_cv_prog_compiler_c_o=no
8846 $RM -r conftest 2>/dev/null
8847 mkdir conftest
8848 cd conftest
8849 mkdir out
8850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
b9668ba4 8851
5c706339
AK
8852 lt_compiler_flag="-o out/conftest2.$ac_objext"
8853 # Insert the option either (1) after the last *FLAGS variable, or
8854 # (2) before a word containing "conftest.", or (3) at the end.
8855 # Note that $ac_compile itself does not contain backslashes and begins
8856 # with a dollar sign (not a hyphen), so the echo should work correctly.
8857 lt_compile=`echo "$ac_compile" | $SED \
8858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8860 -e 's:$: $lt_compiler_flag:'`
059850b5 8861 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
5c706339
AK
8862 (eval "$lt_compile" 2>out/conftest.err)
8863 ac_status=$?
8864 cat out/conftest.err >&5
059850b5 8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
8866 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8867 then
8868 # The compiler can only warn and ignore the option if not recognized
8869 # So say no if there are warnings
059850b5 8870 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
5c706339
AK
8871 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8872 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8873 lt_cv_prog_compiler_c_o=yes
8874 fi
8875 fi
8876 chmod u+w . 2>&5
8877 $RM conftest*
8878 # SGI C++ compiler will create directory out/ii_files/ for
8879 # template instantiation
8880 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8881 $RM out/* && rmdir out
8882 cd ..
8883 $RM -r conftest
8884 $RM conftest*
b9668ba4 8885
5c706339 8886fi
0fbeb4dc 8887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
47dc80f6 8888$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
b9668ba4 8889
b9668ba4 8890
b9668ba4 8891
b9668ba4 8892
c45550e5
AK
8893hard_links=nottested
8894if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
5c706339 8895 # do not overwrite the value of need_locks provided by the user
0fbeb4dc 8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
47dc80f6 8897$as_echo_n "checking if we can lock with hard links... " >&6; }
5c706339
AK
8898 hard_links=yes
8899 $RM conftest*
8900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8901 touch conftest.a
8902 ln conftest.a conftest.b 2>&5 || hard_links=no
8903 ln conftest.a conftest.b 2>/dev/null && hard_links=no
0fbeb4dc 8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
47dc80f6 8905$as_echo "$hard_links" >&6; }
c45550e5
AK
8906 if test no = "$hard_links"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8908$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
5c706339
AK
8909 need_locks=warn
8910 fi
8911else
8912 need_locks=no
8913fi
b9668ba4 8914
b9668ba4 8915
b9668ba4 8916
b9668ba4 8917
b9668ba4 8918
b9668ba4 8919
0fbeb4dc 8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
47dc80f6 8921$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
b9668ba4 8922
5c706339
AK
8923 runpath_var=
8924 allow_undefined_flag=
8925 always_export_symbols=no
8926 archive_cmds=
8927 archive_expsym_cmds=
8928 compiler_needs_object=no
8929 enable_shared_with_static_runtimes=no
8930 export_dynamic_flag_spec=
8931 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8932 hardcode_automatic=no
8933 hardcode_direct=no
8934 hardcode_direct_absolute=no
8935 hardcode_libdir_flag_spec=
5c706339
AK
8936 hardcode_libdir_separator=
8937 hardcode_minus_L=no
8938 hardcode_shlibpath_var=unsupported
8939 inherit_rpath=no
8940 link_all_deplibs=unknown
8941 module_cmds=
8942 module_expsym_cmds=
8943 old_archive_from_new_cmds=
8944 old_archive_from_expsyms_cmds=
8945 thread_safe_flag_spec=
8946 whole_archive_flag_spec=
8947 # include_expsyms should be a list of space-separated symbols to be *always*
8948 # included in the symbol list
8949 include_expsyms=
8950 # exclude_expsyms can be an extended regexp of symbols to exclude
c45550e5
AK
8951 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8952 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8953 # as well as any symbol that contains 'd'.
5c706339
AK
8954 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8955 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8956 # platforms (ab)use it in PIC code, but their linkers get confused if
8957 # the symbol is explicitly referenced. Since portable code cannot
8958 # rely on this symbol name, it's probably fine to never include it in
8959 # preloaded symbol tables.
8960 # Exclude shared library initialization/finalization symbols.
8961 extract_expsyms_cmds=
b9668ba4 8962
5c706339 8963 case $host_os in
47dc80f6 8964 cygwin* | mingw* | pw32* | cegcc*)
5c706339
AK
8965 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8966 # When not using gcc, we currently assume that we are using
8967 # Microsoft Visual C++.
c45550e5 8968 if test yes != "$GCC"; then
5c706339
AK
8969 with_gnu_ld=no
8970 fi
8971 ;;
8972 interix*)
8973 # we just hope/assume this is gcc and not c89 (= MSVC++)
8974 with_gnu_ld=yes
8975 ;;
c45550e5 8976 openbsd* | bitrig*)
5c706339
AK
8977 with_gnu_ld=no
8978 ;;
8979 esac
b9668ba4 8980
5c706339 8981 ld_shlibs=yes
059850b5
AK
8982
8983 # On some targets, GNU ld is compatible enough with the native linker
8984 # that we're better off using the native interface for both.
8985 lt_use_gnu_ld_interface=no
c45550e5 8986 if test yes = "$with_gnu_ld"; then
059850b5
AK
8987 case $host_os in
8988 aix*)
8989 # The AIX port of GNU ld has always aspired to compatibility
8990 # with the native linker. However, as the warning in the GNU ld
8991 # block says, versions before 2.19.5* couldn't really create working
8992 # shared libraries, regardless of the interface used.
8993 case `$LD -v 2>&1` in
8994 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8995 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8996 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8997 *)
8998 lt_use_gnu_ld_interface=yes
8999 ;;
9000 esac
9001 ;;
9002 *)
9003 lt_use_gnu_ld_interface=yes
9004 ;;
9005 esac
9006 fi
9007
c45550e5 9008 if test yes = "$lt_use_gnu_ld_interface"; then
5c706339 9009 # If archive_cmds runs LD, not CC, wlarc should be empty
c45550e5 9010 wlarc='$wl'
b9668ba4 9011
5c706339
AK
9012 # Set some defaults for GNU ld with shared library support. These
9013 # are reset later if shared libraries are not supported. Putting them
9014 # here allows them to be overridden if necessary.
9015 runpath_var=LD_RUN_PATH
c45550e5
AK
9016 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9017 export_dynamic_flag_spec='$wl--export-dynamic'
5c706339
AK
9018 # ancient GNU ld didn't support --whole-archive et. al.
9019 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
c45550e5 9020 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
5c706339
AK
9021 else
9022 whole_archive_flag_spec=
9023 fi
9024 supports_anon_versioning=no
c45550e5 9025 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
0fbeb4dc 9026 *GNU\ gold*) supports_anon_versioning=yes ;;
5c706339
AK
9027 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9028 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9029 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9030 *\ 2.11.*) ;; # other 2.11 versions
9031 *) supports_anon_versioning=yes ;;
9032 esac
b9668ba4 9033
5c706339
AK
9034 # See if GNU ld supports shared libraries.
9035 case $host_os in
9036 aix[3-9]*)
9037 # On AIX/PPC, the GNU linker is very broken
c45550e5 9038 if test ia64 != "$host_cpu"; then
5c706339
AK
9039 ld_shlibs=no
9040 cat <<_LT_EOF 1>&2
b9668ba4 9041
059850b5 9042*** Warning: the GNU linker, at least up to release 2.19, is reported
5c706339
AK
9043*** to be unable to reliably create shared libraries on AIX.
9044*** Therefore, libtool is disabling shared libraries support. If you
059850b5
AK
9045*** really care for shared libraries, you may want to install binutils
9046*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9047*** You will then need to restart the configuration process.
b9668ba4 9048
5c706339
AK
9049_LT_EOF
9050 fi
9051 ;;
b9668ba4 9052
5c706339
AK
9053 amigaos*)
9054 case $host_cpu in
9055 powerpc)
9056 # see comment about AmigaOS4 .so support
c45550e5 9057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5c706339
AK
9058 archive_expsym_cmds=''
9059 ;;
9060 m68k)
9061 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)'
9062 hardcode_libdir_flag_spec='-L$libdir'
9063 hardcode_minus_L=yes
9064 ;;
9065 esac
9066 ;;
b9668ba4 9067
5c706339
AK
9068 beos*)
9069 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9070 allow_undefined_flag=unsupported
9071 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9072 # support --undefined. This deserves some investigation. FIXME
c45550e5 9073 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5c706339
AK
9074 else
9075 ld_shlibs=no
9076 fi
9077 ;;
b9668ba4 9078
47dc80f6 9079 cygwin* | mingw* | pw32* | cegcc*)
5c706339
AK
9080 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9081 # as there is no search path for DLLs.
9082 hardcode_libdir_flag_spec='-L$libdir'
c45550e5 9083 export_dynamic_flag_spec='$wl--export-all-symbols'
5c706339
AK
9084 allow_undefined_flag=unsupported
9085 always_export_symbols=no
9086 enable_shared_with_static_runtimes=yes
059850b5
AK
9087 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9088 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
b9668ba4 9089
5c706339 9090 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
c45550e5
AK
9091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9092 # If the export-symbols file already is a .def file, use it as
9093 # is; otherwise, prepend EXPORTS...
9094 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9095 cp $export_symbols $output_objdir/$soname.def;
9096 else
9097 echo EXPORTS > $output_objdir/$soname.def;
9098 cat $export_symbols >> $output_objdir/$soname.def;
9099 fi~
9100 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5c706339
AK
9101 else
9102 ld_shlibs=no
9103 fi
9104 ;;
b9668ba4 9105
059850b5 9106 haiku*)
c45550e5 9107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
059850b5
AK
9108 link_all_deplibs=yes
9109 ;;
9110
c45550e5
AK
9111 os2*)
9112 hardcode_libdir_flag_spec='-L$libdir'
9113 hardcode_minus_L=yes
9114 allow_undefined_flag=unsupported
9115 shrext_cmds=.dll
9116 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9117 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9118 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9119 $ECHO EXPORTS >> $output_objdir/$libname.def~
9120 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9121 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9122 emximp -o $lib $output_objdir/$libname.def'
9123 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9124 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9125 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9126 $ECHO EXPORTS >> $output_objdir/$libname.def~
9127 prefix_cmds="$SED"~
9128 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9129 prefix_cmds="$prefix_cmds -e 1d";
9130 fi~
9131 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9132 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9133 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9134 emximp -o $lib $output_objdir/$libname.def'
9135 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9136 enable_shared_with_static_runtimes=yes
9137 ;;
9138
5c706339
AK
9139 interix[3-9]*)
9140 hardcode_direct=no
9141 hardcode_shlibpath_var=no
c45550e5
AK
9142 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9143 export_dynamic_flag_spec='$wl-E'
5c706339
AK
9144 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9145 # Instead, shared libraries are loaded at an image base (0x10000000 by
9146 # default) and relocated if they conflict, which is a slow very memory
9147 # consuming and fragmenting process. To avoid this, we pick a random,
9148 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9149 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
c45550e5
AK
9150 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9151 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'
5c706339 9152 ;;
b9668ba4 9153
0fbeb4dc 9154 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5c706339 9155 tmp_diet=no
c45550e5 9156 if test linux-dietlibc = "$host_os"; then
5c706339
AK
9157 case $cc_basename in
9158 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9159 esac
9160 fi
9161 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
c45550e5 9162 && test no = "$tmp_diet"
5c706339 9163 then
059850b5 9164 tmp_addflag=' $pic_flag'
5c706339
AK
9165 tmp_sharedflag='-shared'
9166 case $cc_basename,$host_cpu in
9167 pgcc*) # Portland Group C compiler
c45550e5 9168 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'
5c706339
AK
9169 tmp_addflag=' $pic_flag'
9170 ;;
059850b5
AK
9171 pgf77* | pgf90* | pgf95* | pgfortran*)
9172 # Portland Group f77 and f90 compilers
c45550e5 9173 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'
5c706339
AK
9174 tmp_addflag=' $pic_flag -Mnomain' ;;
9175 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9176 tmp_addflag=' -i_dynamic' ;;
9177 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9178 tmp_addflag=' -i_dynamic -nofor_main' ;;
9179 ifc* | ifort*) # Intel Fortran compiler
9180 tmp_addflag=' -nofor_main' ;;
47dc80f6
AK
9181 lf95*) # Lahey Fortran 8.1
9182 whole_archive_flag_spec=
9183 tmp_sharedflag='--shared' ;;
c45550e5
AK
9184 nagfor*) # NAGFOR 5.3
9185 tmp_sharedflag='-Wl,-shared' ;;
059850b5 9186 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5c706339
AK
9187 tmp_sharedflag='-qmkshrobj'
9188 tmp_addflag= ;;
059850b5 9189 nvcc*) # Cuda Compiler Driver 2.2
c45550e5 9190 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'
059850b5
AK
9191 compiler_needs_object=yes
9192 ;;
5c706339
AK
9193 esac
9194 case `$CC -V 2>&1 | sed 5q` in
9195 *Sun\ C*) # Sun C 5.9
c45550e5 9196 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'
5c706339
AK
9197 compiler_needs_object=yes
9198 tmp_sharedflag='-G' ;;
9199 *Sun\ F*) # Sun Fortran 8.3
9200 tmp_sharedflag='-G' ;;
9201 esac
c45550e5 9202 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
b9668ba4 9203
c45550e5 9204 if test yes = "$supports_anon_versioning"; then
5c706339 9205 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
c45550e5
AK
9206 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9207 echo "local: *; };" >> $output_objdir/$libname.ver~
9208 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
5c706339 9209 fi
b9668ba4 9210
5c706339 9211 case $cc_basename in
c45550e5
AK
9212 tcc*)
9213 export_dynamic_flag_spec='-rdynamic'
9214 ;;
059850b5 9215 xlf* | bgf* | bgxlf* | mpixlf*)
5c706339
AK
9216 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9217 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
c45550e5 9218 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
059850b5 9219 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
c45550e5 9220 if test yes = "$supports_anon_versioning"; then
5c706339 9221 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
c45550e5
AK
9222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9223 echo "local: *; };" >> $output_objdir/$libname.ver~
9224 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5c706339
AK
9225 fi
9226 ;;
9227 esac
9228 else
9229 ld_shlibs=no
9230 fi
9231 ;;
b9668ba4 9232
c45550e5 9233 netbsd*)
5c706339
AK
9234 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9235 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9236 wlarc=
9237 else
c45550e5
AK
9238 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9239 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5c706339
AK
9240 fi
9241 ;;
b9668ba4 9242
5c706339
AK
9243 solaris*)
9244 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9245 ld_shlibs=no
9246 cat <<_LT_EOF 1>&2
b9668ba4 9247
5c706339
AK
9248*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9249*** create shared libraries on Solaris systems. Therefore, libtool
9250*** is disabling shared libraries support. We urge you to upgrade GNU
9251*** binutils to release 2.9.1 or newer. Another option is to modify
9252*** your PATH or compiler configuration so that the native linker is
9253*** used, and then restart.
b9668ba4 9254
5c706339
AK
9255_LT_EOF
9256 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
c45550e5
AK
9257 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9258 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5c706339
AK
9259 else
9260 ld_shlibs=no
9261 fi
9262 ;;
b9668ba4 9263
5c706339
AK
9264 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9265 case `$LD -v 2>&1` in
9266 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9267 ld_shlibs=no
9268 cat <<_LT_EOF 1>&2
b9668ba4 9269
c45550e5 9270*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
5c706339
AK
9271*** reliably create shared libraries on SCO systems. Therefore, libtool
9272*** is disabling shared libraries support. We urge you to upgrade GNU
9273*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9274*** your PATH or compiler configuration so that the native linker is
9275*** used, and then restart.
b9668ba4 9276
5c706339
AK
9277_LT_EOF
9278 ;;
9279 *)
9280 # For security reasons, it is highly recommended that you always
9281 # use absolute paths for naming shared libraries, and exclude the
9282 # DT_RUNPATH tag from executables and libraries. But doing so
9283 # requires that you compile everything twice, which is a pain.
9284 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
c45550e5
AK
9285 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9287 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5c706339
AK
9288 else
9289 ld_shlibs=no
9290 fi
9291 ;;
9292 esac
9293 ;;
b9668ba4 9294
5c706339
AK
9295 sunos4*)
9296 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9297 wlarc=
9298 hardcode_direct=yes
9299 hardcode_shlibpath_var=no
9300 ;;
b9668ba4 9301
5c706339
AK
9302 *)
9303 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
c45550e5
AK
9304 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9305 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5c706339
AK
9306 else
9307 ld_shlibs=no
9308 fi
9309 ;;
9310 esac
b9668ba4 9311
c45550e5 9312 if test no = "$ld_shlibs"; then
5c706339
AK
9313 runpath_var=
9314 hardcode_libdir_flag_spec=
9315 export_dynamic_flag_spec=
9316 whole_archive_flag_spec=
9317 fi
9318 else
9319 # PORTME fill in a description of your system's linker (not GNU ld)
9320 case $host_os in
9321 aix3*)
9322 allow_undefined_flag=unsupported
9323 always_export_symbols=yes
9324 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'
9325 # Note: this linker hardcodes the directories in LIBPATH if there
9326 # are no directories specified by -L.
9327 hardcode_minus_L=yes
c45550e5 9328 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
5c706339
AK
9329 # Neither direct hardcoding nor static linking is supported with a
9330 # broken collect2.
9331 hardcode_direct=unsupported
9332 fi
9333 ;;
b9668ba4 9334
5c706339 9335 aix[4-9]*)
c45550e5 9336 if test ia64 = "$host_cpu"; then
5c706339
AK
9337 # On IA64, the linker does run time linking by default, so we don't
9338 # have to do anything special.
9339 aix_use_runtimelinking=no
9340 exp_sym_flag='-Bexport'
c45550e5 9341 no_entry_flag=
5c706339
AK
9342 else
9343 # If we're using GNU nm, then we don't want the "-C" option.
c45550e5
AK
9344 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9345 # Without the "-l" option, or with the "-B" option, AIX nm treats
9346 # weak defined symbols like other global defined symbols, whereas
9347 # GNU nm marks them as "W".
9348 # While the 'weak' keyword is ignored in the Export File, we need
9349 # it in the Import File for the 'aix-soname' feature, so we have
9350 # to replace the "-B" option with "-P" for AIX nm.
5c706339 9351 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
c45550e5 9352 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
5c706339 9353 else
c45550e5 9354 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
5c706339
AK
9355 fi
9356 aix_use_runtimelinking=no
b9668ba4 9357
5c706339
AK
9358 # Test if we are trying to use run time linking or normal
9359 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
c45550e5
AK
9360 # have runtime linking enabled, and use it for executables.
9361 # For shared libraries, we enable/disable runtime linking
9362 # depending on the kind of the shared library created -
9363 # when "with_aix_soname,aix_use_runtimelinking" is:
9364 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9365 # "aix,yes" lib.so shared, rtl:yes, for executables
9366 # lib.a static archive
9367 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9368 # lib.a(lib.so.V) shared, rtl:no, for executables
9369 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9370 # lib.a(lib.so.V) shared, rtl:no
9371 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9372 # lib.a static archive
5c706339
AK
9373 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9374 for ld_flag in $LDFLAGS; do
c45550e5 9375 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
5c706339
AK
9376 aix_use_runtimelinking=yes
9377 break
9378 fi
9379 done
c45550e5
AK
9380 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9381 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9382 # so we don't have lib.a shared libs to link our executables.
9383 # We have to force runtime linking in this case.
9384 aix_use_runtimelinking=yes
9385 LDFLAGS="$LDFLAGS -Wl,-brtl"
9386 fi
5c706339
AK
9387 ;;
9388 esac
b9668ba4 9389
5c706339
AK
9390 exp_sym_flag='-bexport'
9391 no_entry_flag='-bnoentry'
9392 fi
b9668ba4 9393
5c706339
AK
9394 # When large executables or shared objects are built, AIX ld can
9395 # have problems creating the table of contents. If linking a library
9396 # or program results in "error TOC overflow" add -mminimal-toc to
9397 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9398 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
b9668ba4 9399
5c706339
AK
9400 archive_cmds=''
9401 hardcode_direct=yes
9402 hardcode_direct_absolute=yes
9403 hardcode_libdir_separator=':'
9404 link_all_deplibs=yes
c45550e5
AK
9405 file_list_spec='$wl-f,'
9406 case $with_aix_soname,$aix_use_runtimelinking in
9407 aix,*) ;; # traditional, no import file
9408 svr4,* | *,yes) # use import file
9409 # The Import File defines what to hardcode.
9410 hardcode_direct=no
9411 hardcode_direct_absolute=no
9412 ;;
9413 esac
b9668ba4 9414
c45550e5 9415 if test yes = "$GCC"; then
5c706339
AK
9416 case $host_os in aix4.[012]|aix4.[012].*)
9417 # We only want to do this on AIX 4.2 and lower, the check
9418 # below for broken collect2 doesn't work under 4.3+
c45550e5 9419 collect2name=`$CC -print-prog-name=collect2`
5c706339
AK
9420 if test -f "$collect2name" &&
9421 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9422 then
9423 # We have reworked collect2
9424 :
9425 else
9426 # We have old collect2
9427 hardcode_direct=unsupported
9428 # It fails to find uninstalled libraries when the uninstalled
9429 # path is not listed in the libpath. Setting hardcode_minus_L
9430 # to unsupported forces relinking
9431 hardcode_minus_L=yes
9432 hardcode_libdir_flag_spec='-L$libdir'
9433 hardcode_libdir_separator=
9434 fi
9435 ;;
9436 esac
9437 shared_flag='-shared'
c45550e5
AK
9438 if test yes = "$aix_use_runtimelinking"; then
9439 shared_flag="$shared_flag "'$wl-G'
5c706339 9440 fi
c45550e5
AK
9441 # Need to ensure runtime linking is disabled for the traditional
9442 # shared library, or the linker may eventually find shared libraries
9443 # /with/ Import File - we do not want to mix them.
9444 shared_flag_aix='-shared'
9445 shared_flag_svr4='-shared $wl-G'
5c706339
AK
9446 else
9447 # not using gcc
c45550e5 9448 if test ia64 = "$host_cpu"; then
5c706339
AK
9449 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9450 # chokes on -Wl,-G. The following line is correct:
9451 shared_flag='-G'
9452 else
c45550e5
AK
9453 if test yes = "$aix_use_runtimelinking"; then
9454 shared_flag='$wl-G'
5c706339 9455 else
c45550e5 9456 shared_flag='$wl-bM:SRE'
5c706339 9457 fi
c45550e5
AK
9458 shared_flag_aix='$wl-bM:SRE'
9459 shared_flag_svr4='$wl-G'
5c706339
AK
9460 fi
9461 fi
b9668ba4 9462
c45550e5 9463 export_dynamic_flag_spec='$wl-bexpall'
5c706339
AK
9464 # It seems that -bexpall does not export symbols beginning with
9465 # underscore (_), so it is better to generate a list of symbols to export.
9466 always_export_symbols=yes
c45550e5 9467 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
5c706339
AK
9468 # Warning - without using the other runtime loading flags (-brtl),
9469 # -berok will link without error, but may produce a broken library.
9470 allow_undefined_flag='-berok'
9471 # Determine the default libpath from the value encoded in an
9472 # empty executable.
c45550e5 9473 if test set = "${lt_cv_aix_libpath+set}"; then
059850b5
AK
9474 aix_libpath=$lt_cv_aix_libpath
9475else
9476 if ${lt_cv_aix_libpath_+:} false; then :
9477 $as_echo_n "(cached) " >&6
9478else
9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339 9480/* end confdefs.h. */
b9668ba4 9481
5c706339
AK
9482int
9483main ()
9484{
b9668ba4 9485
5c706339
AK
9486 ;
9487 return 0;
9488}
9489_ACEOF
0fbeb4dc 9490if ac_fn_c_try_link "$LINENO"; then :
b9668ba4 9491
059850b5
AK
9492 lt_aix_libpath_sed='
9493 /Import File Strings/,/^$/ {
9494 /^0/ {
9495 s/^0 *\([^ ]*\) *$/\1/
9496 p
9497 }
9498 }'
9499 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9500 # Check for a 64-bit object if we didn't find anything.
9501 if test -z "$lt_cv_aix_libpath_"; then
9502 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9503 fi
5c706339 9504fi
0fbeb4dc
AK
9505rm -f core conftest.err conftest.$ac_objext \
9506 conftest$ac_exeext conftest.$ac_ext
059850b5 9507 if test -z "$lt_cv_aix_libpath_"; then
c45550e5 9508 lt_cv_aix_libpath_=/usr/lib:/lib
059850b5
AK
9509 fi
9510
9511fi
9512
9513 aix_libpath=$lt_cv_aix_libpath_
9514fi
b9668ba4 9515
c45550e5
AK
9516 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9517 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
5c706339 9518 else
c45550e5
AK
9519 if test ia64 = "$host_cpu"; then
9520 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
5c706339 9521 allow_undefined_flag="-z nodefs"
c45550e5 9522 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"
5c706339
AK
9523 else
9524 # Determine the default libpath from the value encoded in an
9525 # empty executable.
c45550e5 9526 if test set = "${lt_cv_aix_libpath+set}"; then
059850b5
AK
9527 aix_libpath=$lt_cv_aix_libpath
9528else
9529 if ${lt_cv_aix_libpath_+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531else
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339 9533/* end confdefs.h. */
b9668ba4 9534
5c706339
AK
9535int
9536main ()
9537{
b9668ba4 9538
5c706339
AK
9539 ;
9540 return 0;
9541}
9542_ACEOF
0fbeb4dc 9543if ac_fn_c_try_link "$LINENO"; then :
b9668ba4 9544
059850b5
AK
9545 lt_aix_libpath_sed='
9546 /Import File Strings/,/^$/ {
9547 /^0/ {
9548 s/^0 *\([^ ]*\) *$/\1/
9549 p
9550 }
9551 }'
9552 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9553 # Check for a 64-bit object if we didn't find anything.
9554 if test -z "$lt_cv_aix_libpath_"; then
9555 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9556 fi
5c706339 9557fi
0fbeb4dc
AK
9558rm -f core conftest.err conftest.$ac_objext \
9559 conftest$ac_exeext conftest.$ac_ext
059850b5 9560 if test -z "$lt_cv_aix_libpath_"; then
c45550e5 9561 lt_cv_aix_libpath_=/usr/lib:/lib
059850b5
AK
9562 fi
9563
9564fi
9565
9566 aix_libpath=$lt_cv_aix_libpath_
9567fi
b9668ba4 9568
c45550e5 9569 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
5c706339
AK
9570 # Warning - without using the other run time loading flags,
9571 # -berok will link without error, but may produce a broken library.
c45550e5
AK
9572 no_undefined_flag=' $wl-bernotok'
9573 allow_undefined_flag=' $wl-berok'
9574 if test yes = "$with_gnu_ld"; then
059850b5 9575 # We only use this code for GNU lds that support --whole-archive.
c45550e5 9576 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
059850b5
AK
9577 else
9578 # Exported symbols can be pulled into shared objects from archives
9579 whole_archive_flag_spec='$convenience'
9580 fi
5c706339 9581 archive_cmds_need_lc=yes
c45550e5
AK
9582 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9583 # -brtl affects multiple linker settings, -berok does not and is overridden later
9584 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9585 if test svr4 != "$with_aix_soname"; then
9586 # This is similar to how AIX traditionally builds its shared libraries.
9587 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9588 fi
9589 if test aix != "$with_aix_soname"; then
9590 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9591 else
9592 # used by -dlpreopen to get the symbols
9593 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9594 fi
9595 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
5c706339
AK
9596 fi
9597 fi
9598 ;;
b9668ba4 9599
5c706339
AK
9600 amigaos*)
9601 case $host_cpu in
9602 powerpc)
9603 # see comment about AmigaOS4 .so support
c45550e5 9604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5c706339
AK
9605 archive_expsym_cmds=''
9606 ;;
9607 m68k)
9608 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)'
9609 hardcode_libdir_flag_spec='-L$libdir'
9610 hardcode_minus_L=yes
9611 ;;
9612 esac
9613 ;;
b9668ba4 9614
5c706339
AK
9615 bsdi[45]*)
9616 export_dynamic_flag_spec=-rdynamic
9617 ;;
b9668ba4 9618
47dc80f6 9619 cygwin* | mingw* | pw32* | cegcc*)
5c706339
AK
9620 # When not using gcc, we currently assume that we are using
9621 # Microsoft Visual C++.
9622 # hardcode_libdir_flag_spec is actually meaningless, as there is
9623 # no search path for DLLs.
059850b5
AK
9624 case $cc_basename in
9625 cl*)
9626 # Native MSVC
9627 hardcode_libdir_flag_spec=' '
9628 allow_undefined_flag=unsupported
9629 always_export_symbols=yes
9630 file_list_spec='@'
9631 # Tell ltmain to make .lib files, not .a files.
9632 libext=lib
9633 # Tell ltmain to make .dll files, not .so files.
c45550e5 9634 shrext_cmds=.dll
059850b5 9635 # FIXME: Setting linknames here is a bad hack.
c45550e5
AK
9636 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9637 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9638 cp "$export_symbols" "$output_objdir/$soname.def";
9639 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9640 else
9641 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9642 fi~
9643 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9644 linknames='
059850b5
AK
9645 # The linker will not automatically build a static lib if we build a DLL.
9646 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9647 enable_shared_with_static_runtimes=yes
9648 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9649 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9650 # Don't use ranlib
9651 old_postinstall_cmds='chmod 644 $oldlib'
9652 postlink_cmds='lt_outputfile="@OUTPUT@"~
c45550e5
AK
9653 lt_tool_outputfile="@TOOL_OUTPUT@"~
9654 case $lt_outputfile in
9655 *.exe|*.EXE) ;;
9656 *)
9657 lt_outputfile=$lt_outputfile.exe
9658 lt_tool_outputfile=$lt_tool_outputfile.exe
9659 ;;
9660 esac~
9661 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9662 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9663 $RM "$lt_outputfile.manifest";
9664 fi'
059850b5
AK
9665 ;;
9666 *)
9667 # Assume MSVC wrapper
9668 hardcode_libdir_flag_spec=' '
9669 allow_undefined_flag=unsupported
9670 # Tell ltmain to make .lib files, not .a files.
9671 libext=lib
9672 # Tell ltmain to make .dll files, not .so files.
c45550e5 9673 shrext_cmds=.dll
059850b5
AK
9674 # FIXME: Setting linknames here is a bad hack.
9675 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9676 # The linker will automatically build a .lib file if we build a DLL.
9677 old_archive_from_new_cmds='true'
9678 # FIXME: Should let the user specify the lib program.
9679 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9680 enable_shared_with_static_runtimes=yes
9681 ;;
9682 esac
5c706339 9683 ;;
b9668ba4 9684
5c706339 9685 darwin* | rhapsody*)
b9668ba4 9686
b9668ba4 9687
5c706339
AK
9688 archive_cmds_need_lc=no
9689 hardcode_direct=no
9690 hardcode_automatic=yes
9691 hardcode_shlibpath_var=unsupported
c45550e5
AK
9692 if test yes = "$lt_cv_ld_force_load"; then
9693 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\"`'
059850b5
AK
9694
9695 else
9696 whole_archive_flag_spec=''
9697 fi
5c706339 9698 link_all_deplibs=yes
c45550e5 9699 allow_undefined_flag=$_lt_dar_allow_undefined
47dc80f6 9700 case $cc_basename in
c45550e5 9701 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
47dc80f6
AK
9702 *) _lt_dar_can_shared=$GCC ;;
9703 esac
c45550e5 9704 if test yes = "$_lt_dar_can_shared"; then
059850b5 9705 output_verbose_link_cmd=func_echo_all
c45550e5
AK
9706 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9707 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9708 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"
9709 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"
b9668ba4 9710
5c706339
AK
9711 else
9712 ld_shlibs=no
9713 fi
b9668ba4 9714
5c706339 9715 ;;
b9668ba4 9716
5c706339
AK
9717 dgux*)
9718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9719 hardcode_libdir_flag_spec='-L$libdir'
9720 hardcode_shlibpath_var=no
9721 ;;
b9668ba4 9722
5c706339
AK
9723 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9724 # support. Future versions do this automatically, but an explicit c++rt0.o
9725 # does not break anything, and helps significantly (at the cost of a little
9726 # extra space).
9727 freebsd2.2*)
9728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9729 hardcode_libdir_flag_spec='-R$libdir'
9730 hardcode_direct=yes
9731 hardcode_shlibpath_var=no
9732 ;;
b9668ba4 9733
5c706339 9734 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
059850b5 9735 freebsd2.*)
5c706339
AK
9736 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9737 hardcode_direct=yes
9738 hardcode_minus_L=yes
9739 hardcode_shlibpath_var=no
9740 ;;
b9668ba4 9741
5c706339
AK
9742 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9743 freebsd* | dragonfly*)
059850b5 9744 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5c706339
AK
9745 hardcode_libdir_flag_spec='-R$libdir'
9746 hardcode_direct=yes
9747 hardcode_shlibpath_var=no
9748 ;;
b9668ba4 9749
5c706339 9750 hpux9*)
c45550e5
AK
9751 if test yes = "$GCC"; then
9752 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
5c706339 9753 else
c45550e5 9754 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
5c706339 9755 fi
c45550e5 9756 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
5c706339
AK
9757 hardcode_libdir_separator=:
9758 hardcode_direct=yes
b9668ba4 9759
5c706339
AK
9760 # hardcode_minus_L: Not really in the search PATH,
9761 # but as the default location of the library.
9762 hardcode_minus_L=yes
c45550e5 9763 export_dynamic_flag_spec='$wl-E'
5c706339 9764 ;;
b9668ba4 9765
5c706339 9766 hpux10*)
c45550e5
AK
9767 if test yes,no = "$GCC,$with_gnu_ld"; then
9768 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5c706339
AK
9769 else
9770 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9771 fi
c45550e5
AK
9772 if test no = "$with_gnu_ld"; then
9773 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
5c706339
AK
9774 hardcode_libdir_separator=:
9775 hardcode_direct=yes
9776 hardcode_direct_absolute=yes
c45550e5 9777 export_dynamic_flag_spec='$wl-E'
5c706339
AK
9778 # hardcode_minus_L: Not really in the search PATH,
9779 # but as the default location of the library.
9780 hardcode_minus_L=yes
9781 fi
9782 ;;
b9668ba4 9783
5c706339 9784 hpux11*)
c45550e5 9785 if test yes,no = "$GCC,$with_gnu_ld"; then
5c706339
AK
9786 case $host_cpu in
9787 hppa*64*)
c45550e5 9788 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5c706339
AK
9789 ;;
9790 ia64*)
c45550e5 9791 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5c706339
AK
9792 ;;
9793 *)
c45550e5 9794 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5c706339
AK
9795 ;;
9796 esac
9797 else
9798 case $host_cpu in
9799 hppa*64*)
c45550e5 9800 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5c706339
AK
9801 ;;
9802 ia64*)
c45550e5 9803 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5c706339
AK
9804 ;;
9805 *)
059850b5
AK
9806
9807 # Older versions of the 11.00 compiler do not understand -b yet
9808 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9810$as_echo_n "checking if $CC understands -b... " >&6; }
9811if ${lt_cv_prog_compiler__b+:} false; then :
9812 $as_echo_n "(cached) " >&6
9813else
9814 lt_cv_prog_compiler__b=no
c45550e5 9815 save_LDFLAGS=$LDFLAGS
059850b5
AK
9816 LDFLAGS="$LDFLAGS -b"
9817 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9818 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9819 # The linker can only warn and ignore the option if not recognized
9820 # So say no if there are warnings
9821 if test -s conftest.err; then
9822 # Append any errors to the config.log.
9823 cat conftest.err 1>&5
9824 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9826 if diff conftest.exp conftest.er2 >/dev/null; then
9827 lt_cv_prog_compiler__b=yes
9828 fi
9829 else
9830 lt_cv_prog_compiler__b=yes
9831 fi
9832 fi
9833 $RM -r conftest*
c45550e5 9834 LDFLAGS=$save_LDFLAGS
059850b5
AK
9835
9836fi
9837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9838$as_echo "$lt_cv_prog_compiler__b" >&6; }
9839
c45550e5
AK
9840if test yes = "$lt_cv_prog_compiler__b"; then
9841 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
059850b5
AK
9842else
9843 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9844fi
9845
5c706339
AK
9846 ;;
9847 esac
9848 fi
c45550e5
AK
9849 if test no = "$with_gnu_ld"; then
9850 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
5c706339 9851 hardcode_libdir_separator=:
b9668ba4 9852
5c706339
AK
9853 case $host_cpu in
9854 hppa*64*|ia64*)
9855 hardcode_direct=no
9856 hardcode_shlibpath_var=no
9857 ;;
9858 *)
9859 hardcode_direct=yes
9860 hardcode_direct_absolute=yes
c45550e5 9861 export_dynamic_flag_spec='$wl-E'
b9668ba4 9862
5c706339
AK
9863 # hardcode_minus_L: Not really in the search PATH,
9864 # but as the default location of the library.
9865 hardcode_minus_L=yes
9866 ;;
9867 esac
9868 fi
9869 ;;
b9668ba4 9870
5c706339 9871 irix5* | irix6* | nonstopux*)
c45550e5
AK
9872 if test yes = "$GCC"; then
9873 archive_cmds='$CC -shared $pic_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'
5c706339
AK
9874 # Try to use the -exported_symbol ld option, if it does not
9875 # work, assume that -exports_file does not work either and
9876 # implicitly export all symbols.
059850b5
AK
9877 # This should be the same for all languages, so no per-tag cache variable.
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9879$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9880if ${lt_cv_irix_exported_symbol+:} false; then :
9881 $as_echo_n "(cached) " >&6
9882else
c45550e5
AK
9883 save_LDFLAGS=$LDFLAGS
9884 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
059850b5 9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0fbeb4dc 9886/* end confdefs.h. */
059850b5 9887int foo (void) { return 0; }
5c706339 9888_ACEOF
0fbeb4dc 9889if ac_fn_c_try_link "$LINENO"; then :
059850b5
AK
9890 lt_cv_irix_exported_symbol=yes
9891else
9892 lt_cv_irix_exported_symbol=no
5c706339 9893fi
0fbeb4dc
AK
9894rm -f core conftest.err conftest.$ac_objext \
9895 conftest$ac_exeext conftest.$ac_ext
c45550e5 9896 LDFLAGS=$save_LDFLAGS
059850b5
AK
9897fi
9898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9899$as_echo "$lt_cv_irix_exported_symbol" >&6; }
c45550e5
AK
9900 if test yes = "$lt_cv_irix_exported_symbol"; then
9901 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
059850b5 9902 fi
5c706339 9903 else
c45550e5
AK
9904 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'
9905 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'
5c706339
AK
9906 fi
9907 archive_cmds_need_lc='no'
c45550e5 9908 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
5c706339
AK
9909 hardcode_libdir_separator=:
9910 inherit_rpath=yes
9911 link_all_deplibs=yes
9912 ;;
b9668ba4 9913
c45550e5
AK
9914 linux*)
9915 case $cc_basename in
9916 tcc*)
9917 # Fabrice Bellard et al's Tiny C Compiler
9918 ld_shlibs=yes
9919 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9920 ;;
9921 esac
9922 ;;
9923
9924 netbsd*)
5c706339
AK
9925 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9926 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9927 else
9928 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9929 fi
9930 hardcode_libdir_flag_spec='-R$libdir'
9931 hardcode_direct=yes
9932 hardcode_shlibpath_var=no
9933 ;;
b9668ba4 9934
5c706339
AK
9935 newsos6)
9936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9937 hardcode_direct=yes
c45550e5 9938 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
5c706339
AK
9939 hardcode_libdir_separator=:
9940 hardcode_shlibpath_var=no
9941 ;;
b9668ba4 9942
5c706339
AK
9943 *nto* | *qnx*)
9944 ;;
b9668ba4 9945
c45550e5 9946 openbsd* | bitrig*)
5c706339
AK
9947 if test -f /usr/libexec/ld.so; then
9948 hardcode_direct=yes
9949 hardcode_shlibpath_var=no
9950 hardcode_direct_absolute=yes
c45550e5 9951 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5c706339 9952 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
c45550e5
AK
9953 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9954 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9955 export_dynamic_flag_spec='$wl-E'
5c706339 9956 else
c45550e5
AK
9957 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9958 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
5c706339
AK
9959 fi
9960 else
9961 ld_shlibs=no
9962 fi
9963 ;;
b9668ba4 9964
5c706339
AK
9965 os2*)
9966 hardcode_libdir_flag_spec='-L$libdir'
9967 hardcode_minus_L=yes
9968 allow_undefined_flag=unsupported
c45550e5
AK
9969 shrext_cmds=.dll
9970 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9971 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9972 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9973 $ECHO EXPORTS >> $output_objdir/$libname.def~
9974 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9975 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9976 emximp -o $lib $output_objdir/$libname.def'
9977 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9978 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9979 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9980 $ECHO EXPORTS >> $output_objdir/$libname.def~
9981 prefix_cmds="$SED"~
9982 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9983 prefix_cmds="$prefix_cmds -e 1d";
9984 fi~
9985 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9986 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9987 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9988 emximp -o $lib $output_objdir/$libname.def'
9989 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9990 enable_shared_with_static_runtimes=yes
5c706339 9991 ;;
b9668ba4 9992
5c706339 9993 osf3*)
c45550e5
AK
9994 if test yes = "$GCC"; then
9995 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9996 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'
5c706339
AK
9997 else
9998 allow_undefined_flag=' -expect_unresolved \*'
c45550e5 9999 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'
5c706339
AK
10000 fi
10001 archive_cmds_need_lc='no'
c45550e5 10002 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
5c706339
AK
10003 hardcode_libdir_separator=:
10004 ;;
b9668ba4 10005
5c706339 10006 osf4* | osf5*) # as osf3* with the addition of -msym flag
c45550e5
AK
10007 if test yes = "$GCC"; then
10008 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10009 archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
10010 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
5c706339
AK
10011 else
10012 allow_undefined_flag=' -expect_unresolved \*'
c45550e5 10013 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'
5c706339 10014 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~
c45550e5 10015 $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'
b9668ba4 10016
5c706339
AK
10017 # Both c and cxx compiler support -rpath directly
10018 hardcode_libdir_flag_spec='-rpath $libdir'
10019 fi
10020 archive_cmds_need_lc='no'
10021 hardcode_libdir_separator=:
10022 ;;
b9668ba4 10023
5c706339
AK
10024 solaris*)
10025 no_undefined_flag=' -z defs'
c45550e5
AK
10026 if test yes = "$GCC"; then
10027 wlarc='$wl'
10028 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5c706339 10029 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
c45550e5 10030 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5c706339
AK
10031 else
10032 case `$CC -V 2>&1` in
10033 *"Compilers 5.0"*)
10034 wlarc=''
c45550e5 10035 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
5c706339 10036 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
c45550e5 10037 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5c706339
AK
10038 ;;
10039 *)
c45550e5
AK
10040 wlarc='$wl'
10041 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5c706339 10042 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
c45550e5 10043 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5c706339
AK
10044 ;;
10045 esac
10046 fi
10047 hardcode_libdir_flag_spec='-R$libdir'
10048 hardcode_shlibpath_var=no
10049 case $host_os in
10050 solaris2.[0-5] | solaris2.[0-5].*) ;;
10051 *)
10052 # The compiler driver will combine and reorder linker options,
c45550e5 10053 # but understands '-z linker_flag'. GCC discards it without '$wl',
5c706339
AK
10054 # but is careful enough not to reorder.
10055 # Supported since Solaris 2.6 (maybe 2.5.1?)
c45550e5
AK
10056 if test yes = "$GCC"; then
10057 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
5c706339
AK
10058 else
10059 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10060 fi
10061 ;;
10062 esac
10063 link_all_deplibs=yes
10064 ;;
b9668ba4 10065
5c706339 10066 sunos4*)
c45550e5 10067 if test sequent = "$host_vendor"; then
5c706339
AK
10068 # Use $CC to link under sequent, because it throws in some extra .o
10069 # files that make .init and .fini sections work.
c45550e5 10070 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5c706339
AK
10071 else
10072 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10073 fi
10074 hardcode_libdir_flag_spec='-L$libdir'
10075 hardcode_direct=yes
10076 hardcode_minus_L=yes
10077 hardcode_shlibpath_var=no
10078 ;;
b9668ba4 10079
5c706339
AK
10080 sysv4)
10081 case $host_vendor in
10082 sni)
10083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10084 hardcode_direct=yes # is this really true???
10085 ;;
10086 siemens)
10087 ## LD is ld it makes a PLAMLIB
10088 ## CC just makes a GrossModule.
10089 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10090 reload_cmds='$CC -r -o $output$reload_objs'
10091 hardcode_direct=no
10092 ;;
10093 motorola)
10094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10095 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10096 ;;
10097 esac
10098 runpath_var='LD_RUN_PATH'
10099 hardcode_shlibpath_var=no
10100 ;;
b9668ba4 10101
5c706339
AK
10102 sysv4.3*)
10103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10104 hardcode_shlibpath_var=no
10105 export_dynamic_flag_spec='-Bexport'
10106 ;;
b9668ba4 10107
5c706339
AK
10108 sysv4*MP*)
10109 if test -d /usr/nec; then
10110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10111 hardcode_shlibpath_var=no
10112 runpath_var=LD_RUN_PATH
10113 hardcode_runpath_var=yes
10114 ld_shlibs=yes
10115 fi
10116 ;;
b9668ba4 10117
5c706339 10118 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
c45550e5 10119 no_undefined_flag='$wl-z,text'
5c706339
AK
10120 archive_cmds_need_lc=no
10121 hardcode_shlibpath_var=no
10122 runpath_var='LD_RUN_PATH'
b9668ba4 10123
c45550e5
AK
10124 if test yes = "$GCC"; then
10125 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10126 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5c706339 10127 else
c45550e5
AK
10128 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10129 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5c706339
AK
10130 fi
10131 ;;
b9668ba4 10132
5c706339 10133 sysv5* | sco3.2v5* | sco5v6*)
c45550e5 10134 # Note: We CANNOT use -z defs as we might desire, because we do not
5c706339
AK
10135 # link with -lc, and that would cause any symbols used from libc to
10136 # always be unresolved, which means just about no library would
10137 # ever link correctly. If we're not using GNU ld we use -z text
10138 # though, which does catch some bad symbols but isn't as heavy-handed
10139 # as -z defs.
c45550e5
AK
10140 no_undefined_flag='$wl-z,text'
10141 allow_undefined_flag='$wl-z,nodefs'
5c706339
AK
10142 archive_cmds_need_lc=no
10143 hardcode_shlibpath_var=no
c45550e5 10144 hardcode_libdir_flag_spec='$wl-R,$libdir'
5c706339
AK
10145 hardcode_libdir_separator=':'
10146 link_all_deplibs=yes
c45550e5 10147 export_dynamic_flag_spec='$wl-Bexport'
5c706339 10148 runpath_var='LD_RUN_PATH'
b9668ba4 10149
c45550e5
AK
10150 if test yes = "$GCC"; then
10151 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5c706339 10153 else
c45550e5
AK
10154 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10155 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5c706339
AK
10156 fi
10157 ;;
b9668ba4 10158
5c706339
AK
10159 uts4*)
10160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10161 hardcode_libdir_flag_spec='-L$libdir'
10162 hardcode_shlibpath_var=no
10163 ;;
b9668ba4 10164
5c706339
AK
10165 *)
10166 ld_shlibs=no
10167 ;;
b9668ba4
AK
10168 esac
10169
c45550e5 10170 if test sni = "$host_vendor"; then
5c706339
AK
10171 case $host in
10172 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
c45550e5 10173 export_dynamic_flag_spec='$wl-Blargedynsym'
5c706339
AK
10174 ;;
10175 esac
b9668ba4 10176 fi
5c706339 10177 fi
b9668ba4 10178
0fbeb4dc 10179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
47dc80f6 10180$as_echo "$ld_shlibs" >&6; }
c45550e5 10181test no = "$ld_shlibs" && can_build_shared=no
b9668ba4 10182
5c706339 10183with_gnu_ld=$with_gnu_ld
b9668ba4 10184
b9668ba4 10185
b9668ba4 10186
b9668ba4 10187
b9668ba4 10188
b9668ba4
AK
10189
10190
b9668ba4 10191
b9668ba4
AK
10192
10193
b9668ba4
AK
10194
10195
b9668ba4 10196
b9668ba4
AK
10197
10198
5c706339
AK
10199#
10200# Do we need to explicitly link libc?
10201#
10202case "x$archive_cmds_need_lc" in
10203x|xyes)
10204 # Assume -lc should be added
10205 archive_cmds_need_lc=yes
b9668ba4 10206
c45550e5 10207 if test yes,yes = "$GCC,$enable_shared"; then
5c706339
AK
10208 case $archive_cmds in
10209 *'~'*)
10210 # FIXME: we may have to deal with multi-command sequences.
b9668ba4 10211 ;;
5c706339
AK
10212 '$CC '*)
10213 # Test whether the compiler implicitly links with -lc since on some
10214 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10215 # to ld, don't add -lc before -lgcc.
0fbeb4dc 10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
47dc80f6 10217$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
059850b5
AK
10218if ${lt_cv_archive_cmds_need_lc+:} false; then :
10219 $as_echo_n "(cached) " >&6
10220else
10221 $RM conftest*
10222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
b9668ba4 10223
059850b5 10224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5c706339
AK
10225 (eval $ac_compile) 2>&5
10226 ac_status=$?
0fbeb4dc
AK
10227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10228 test $ac_status = 0; } 2>conftest.err; then
059850b5
AK
10229 soname=conftest
10230 lib=conftest
10231 libobjs=conftest.$ac_objext
10232 deplibs=
10233 wl=$lt_prog_compiler_wl
10234 pic_flag=$lt_prog_compiler_pic
10235 compiler_flags=-v
10236 linker_flags=-v
10237 verstring=
10238 output_objdir=.
10239 libname=conftest
10240 lt_save_allow_undefined_flag=$allow_undefined_flag
10241 allow_undefined_flag=
10242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
5c706339
AK
10243 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10244 ac_status=$?
0fbeb4dc
AK
10245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10246 test $ac_status = 0; }
059850b5
AK
10247 then
10248 lt_cv_archive_cmds_need_lc=no
10249 else
10250 lt_cv_archive_cmds_need_lc=yes
10251 fi
10252 allow_undefined_flag=$lt_save_allow_undefined_flag
10253 else
10254 cat conftest.err 1>&5
10255 fi
10256 $RM conftest*
10257
10258fi
10259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10260$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10261 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
5c706339
AK
10262 ;;
10263 esac
10264 fi
b9668ba4
AK
10265 ;;
10266esac
b9668ba4
AK
10267
10268
10269
b9668ba4 10270
b9668ba4 10271
b9668ba4 10272
b9668ba4 10273
b9668ba4 10274
b9668ba4 10275
b9668ba4 10276
b9668ba4 10277
b9668ba4 10278
b9668ba4 10279
b9668ba4 10280
b9668ba4 10281
b9668ba4
AK
10282
10283
b9668ba4 10284
b9668ba4 10285
b9668ba4 10286
b9668ba4 10287
b9668ba4 10288
b9668ba4 10289
b9668ba4
AK
10290
10291
b9668ba4 10292
b9668ba4 10293
b9668ba4 10294
b9668ba4 10295
b9668ba4 10296
b9668ba4 10297
b9668ba4 10298
b9668ba4 10299
b9668ba4 10300
b9668ba4 10301
b9668ba4 10302
b9668ba4 10303
b9668ba4 10304
b9668ba4 10305
b9668ba4 10306
b9668ba4 10307
b9668ba4 10308
b9668ba4 10309
b9668ba4 10310
b9668ba4 10311
b9668ba4 10312
b9668ba4 10313
b9668ba4 10314
b9668ba4 10315
b9668ba4
AK
10316
10317
b9668ba4 10318
b9668ba4 10319
b9668ba4 10320
b9668ba4 10321
b9668ba4 10322
b9668ba4 10323
b9668ba4 10324
b9668ba4 10325
b9668ba4 10326
b9668ba4
AK
10327
10328
b9668ba4 10329
b9668ba4 10330
b9668ba4 10331
b9668ba4 10332
b9668ba4 10333
b9668ba4 10334
b9668ba4 10335
b9668ba4 10336
b9668ba4 10337
b9668ba4 10338
b9668ba4 10339
b9668ba4 10340
b9668ba4 10341
b9668ba4
AK
10342
10343
b9668ba4 10344
b9668ba4 10345
b9668ba4
AK
10346
10347
b9668ba4 10348
b9668ba4 10349
b9668ba4 10350
b9668ba4 10351
b9668ba4 10352
b9668ba4 10353
b9668ba4 10354
5c706339
AK
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
5c706339
AK
10413
10414
10415
10416
10417
10418
0fbeb4dc 10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
47dc80f6 10420$as_echo_n "checking dynamic linker characteristics... " >&6; }
5c706339 10421
c45550e5 10422if test yes = "$GCC"; then
5c706339 10423 case $host_os in
c45550e5
AK
10424 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10425 *) lt_awk_arg='/^libraries:/' ;;
5c706339 10426 esac
059850b5 10427 case $host_os in
c45550e5
AK
10428 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10429 *) lt_sed_strip_eq='s|=/|/|g' ;;
059850b5
AK
10430 esac
10431 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10432 case $lt_search_path_spec in
10433 *\;*)
5c706339
AK
10434 # if the path contains ";" then we assume it to be the separator
10435 # otherwise default to the standard path separator (i.e. ":") - it is
10436 # assumed that no part of a normal pathname contains ";" but that should
10437 # okay in the real world where ";" in dirpaths is itself problematic.
059850b5
AK
10438 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10439 ;;
10440 *)
10441 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10442 ;;
10443 esac
5c706339 10444 # Ok, now we have the path, separated by spaces, we can step through it
c45550e5 10445 # and add multilib dir if necessary...
5c706339 10446 lt_tmp_lt_search_path_spec=
c45550e5
AK
10447 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10448 # ...but if some path component already ends with the multilib dir we assume
10449 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10450 case "$lt_multi_os_dir; $lt_search_path_spec " in
10451 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10452 lt_multi_os_dir=
10453 ;;
10454 esac
5c706339 10455 for lt_sys_path in $lt_search_path_spec; do
c45550e5
AK
10456 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10457 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10458 elif test -n "$lt_multi_os_dir"; then
5c706339
AK
10459 test -d "$lt_sys_path" && \
10460 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10461 fi
10462 done
059850b5 10463 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
c45550e5
AK
10464BEGIN {RS = " "; FS = "/|\n";} {
10465 lt_foo = "";
10466 lt_count = 0;
5c706339
AK
10467 for (lt_i = NF; lt_i > 0; lt_i--) {
10468 if ($lt_i != "" && $lt_i != ".") {
10469 if ($lt_i == "..") {
10470 lt_count++;
10471 } else {
10472 if (lt_count == 0) {
c45550e5 10473 lt_foo = "/" $lt_i lt_foo;
5c706339
AK
10474 } else {
10475 lt_count--;
10476 }
10477 }
10478 }
10479 }
10480 if (lt_foo != "") { lt_freq[lt_foo]++; }
10481 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10482}'`
059850b5
AK
10483 # AWK program above erroneously prepends '/' to C:/dos/paths
10484 # for these hosts.
10485 case $host_os in
10486 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
c45550e5 10487 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
059850b5
AK
10488 esac
10489 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
5c706339
AK
10490else
10491 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10492fi
b9668ba4
AK
10493library_names_spec=
10494libname_spec='lib$name'
10495soname_spec=
c45550e5 10496shrext_cmds=.so
b9668ba4
AK
10497postinstall_cmds=
10498postuninstall_cmds=
10499finish_cmds=
10500finish_eval=
10501shlibpath_var=
10502shlibpath_overrides_runpath=unknown
10503version_type=none
10504dynamic_linker="$host_os ld.so"
10505sys_lib_dlsearch_path_spec="/lib /usr/lib"
b9668ba4
AK
10506need_lib_prefix=unknown
10507hardcode_into_libs=no
10508
10509# when you set need_version to no, make sure it does not cause -set_version
10510# flags to be left without arguments
10511need_version=unknown
10512
c45550e5
AK
10513
10514
b9668ba4
AK
10515case $host_os in
10516aix3*)
059850b5 10517 version_type=linux # correct to gnu/linux during the next big refactor
c45550e5 10518 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
b9668ba4
AK
10519 shlibpath_var=LIBPATH
10520
10521 # AIX 3 has no versioning support, so we append a major version to the name.
c45550e5 10522 soname_spec='$libname$release$shared_ext$major'
b9668ba4
AK
10523 ;;
10524
5c706339 10525aix[4-9]*)
059850b5 10526 version_type=linux # correct to gnu/linux during the next big refactor
b9668ba4
AK
10527 need_lib_prefix=no
10528 need_version=no
10529 hardcode_into_libs=yes
c45550e5 10530 if test ia64 = "$host_cpu"; then
b9668ba4 10531 # AIX 5 supports IA64
c45550e5 10532 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
b9668ba4
AK
10533 shlibpath_var=LD_LIBRARY_PATH
10534 else
10535 # With GCC up to 2.95.x, collect2 would create an import file
10536 # for dependence libraries. The import file would start with
c45550e5
AK
10537 # the line '#! .'. This would cause the generated library to
10538 # depend on '.', always an invalid library. This was fixed in
b9668ba4
AK
10539 # development snapshots of GCC prior to 3.0.
10540 case $host_os in
10541 aix4 | aix4.[01] | aix4.[01].*)
10542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10543 echo ' yes '
c45550e5 10544 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
b9668ba4
AK
10545 :
10546 else
10547 can_build_shared=no
10548 fi
10549 ;;
10550 esac
c45550e5
AK
10551 # Using Import Files as archive members, it is possible to support
10552 # filename-based versioning of shared library archives on AIX. While
10553 # this would work for both with and without runtime linking, it will
10554 # prevent static linking of such archives. So we do filename-based
10555 # shared library versioning with .so extension only, which is used
10556 # when both runtime linking and shared linking is enabled.
10557 # Unfortunately, runtime linking may impact performance, so we do
10558 # not want this to be the default eventually. Also, we use the
10559 # versioned .so libs for executables only if there is the -brtl
10560 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10561 # To allow for filename-based versioning support, we need to create
10562 # libNAME.so.V as an archive file, containing:
10563 # *) an Import File, referring to the versioned filename of the
10564 # archive as well as the shared archive member, telling the
10565 # bitwidth (32 or 64) of that shared object, and providing the
10566 # list of exported symbols of that shared object, eventually
10567 # decorated with the 'weak' keyword
10568 # *) the shared object with the F_LOADONLY flag set, to really avoid
10569 # it being seen by the linker.
10570 # At run time we better use the real file rather than another symlink,
10571 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10572
10573 case $with_aix_soname,$aix_use_runtimelinking in
10574 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
b9668ba4
AK
10575 # soname into executable. Probably we can add versioning support to
10576 # collect2, so additional links can be useful in future.
c45550e5
AK
10577 aix,yes) # traditional libtool
10578 dynamic_linker='AIX unversionable lib.so'
b9668ba4
AK
10579 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10580 # instead of lib<name>.a to let people know that these are not
10581 # typical AIX shared libraries.
c45550e5
AK
10582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10583 ;;
10584 aix,no) # traditional AIX only
10585 dynamic_linker='AIX lib.a(lib.so.V)'
b9668ba4
AK
10586 # We preserve .a as extension for shared libraries through AIX4.2
10587 # and later when we are not doing run time linking.
c45550e5
AK
10588 library_names_spec='$libname$release.a $libname.a'
10589 soname_spec='$libname$release$shared_ext$major'
10590 ;;
10591 svr4,*) # full svr4 only
10592 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10593 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10594 # We do not specify a path in Import Files, so LIBPATH fires.
10595 shlibpath_overrides_runpath=yes
10596 ;;
10597 *,yes) # both, prefer svr4
10598 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10599 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10600 # unpreferred sharedlib libNAME.a needs extra handling
10601 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10602 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10603 # We do not specify a path in Import Files, so LIBPATH fires.
10604 shlibpath_overrides_runpath=yes
10605 ;;
10606 *,no) # both, prefer aix
10607 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10608 library_names_spec='$libname$release.a $libname.a'
10609 soname_spec='$libname$release$shared_ext$major'
10610 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10611 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10612 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10613 ;;
10614 esac
b9668ba4
AK
10615 shlibpath_var=LIBPATH
10616 fi
10617 ;;
10618
10619amigaos*)
5c706339
AK
10620 case $host_cpu in
10621 powerpc)
10622 # Since July 2007 AmigaOS4 officially supports .so libraries.
10623 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
c45550e5 10624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5c706339
AK
10625 ;;
10626 m68k)
10627 library_names_spec='$libname.ixlibrary $libname.a'
10628 # Create ${libname}_ixlibrary.a entries in /sys/libs.
c45550e5 10629 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
5c706339
AK
10630 ;;
10631 esac
b9668ba4
AK
10632 ;;
10633
10634beos*)
c45550e5 10635 library_names_spec='$libname$shared_ext'
b9668ba4
AK
10636 dynamic_linker="$host_os ld.so"
10637 shlibpath_var=LIBRARY_PATH
10638 ;;
10639
10640bsdi[45]*)
059850b5 10641 version_type=linux # correct to gnu/linux during the next big refactor
b9668ba4 10642 need_version=no
c45550e5
AK
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'
b9668ba4
AK
10645 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10646 shlibpath_var=LD_LIBRARY_PATH
10647 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10648 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10649 # the default ld.so.conf also contains /usr/contrib/lib and
10650 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10651 # libtool to hard-code these into programs
10652 ;;
10653
47dc80f6 10654cygwin* | mingw* | pw32* | cegcc*)
b9668ba4 10655 version_type=windows
c45550e5 10656 shrext_cmds=.dll
b9668ba4
AK
10657 need_version=no
10658 need_lib_prefix=no
10659
059850b5
AK
10660 case $GCC,$cc_basename in
10661 yes,*)
10662 # gcc
b9668ba4
AK
10663 library_names_spec='$libname.dll.a'
10664 # DLL is installed to $(libdir)/../bin by postinstall_cmds
c45550e5
AK
10665 postinstall_cmds='base_file=`basename \$file`~
10666 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
b9668ba4
AK
10667 dldir=$destdir/`dirname \$dlpath`~
10668 test -d \$dldir || mkdir -p \$dldir~
10669 $install_prog $dir/$dlname \$dldir/$dlname~
5c706339
AK
10670 chmod a+x \$dldir/$dlname~
10671 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10672 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10673 fi'
b9668ba4
AK
10674 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10675 dlpath=$dir/\$dldll~
5c706339 10676 $RM \$dlpath'
b9668ba4
AK
10677 shlibpath_overrides_runpath=yes
10678
10679 case $host_os in
10680 cygwin*)
10681 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
c45550e5 10682 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
059850b5
AK
10683
10684 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
b9668ba4 10685 ;;
47dc80f6 10686 mingw* | cegcc*)
b9668ba4 10687 # MinGW DLLs use traditional 'lib' prefix
c45550e5 10688 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
b9668ba4
AK
10689 ;;
10690 pw32*)
10691 # pw32 DLLs use 'pw' prefix rather than 'lib'
c45550e5 10692 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
b9668ba4
AK
10693 ;;
10694 esac
059850b5
AK
10695 dynamic_linker='Win32 ld.exe'
10696 ;;
10697
10698 *,cl*)
10699 # Native MSVC
10700 libname_spec='$name'
c45550e5
AK
10701 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10702 library_names_spec='$libname.dll.lib'
059850b5
AK
10703
10704 case $build_os in
10705 mingw*)
10706 sys_lib_search_path_spec=
10707 lt_save_ifs=$IFS
10708 IFS=';'
10709 for lt_path in $LIB
10710 do
10711 IFS=$lt_save_ifs
10712 # Let DOS variable expansion print the short 8.3 style file name.
10713 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10714 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10715 done
10716 IFS=$lt_save_ifs
10717 # Convert to MSYS style.
10718 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10719 ;;
10720 cygwin*)
10721 # Convert to unix form, then to dos form, then back to unix form
10722 # but this time dos style (no spaces!) so that the unix form looks
10723 # like /cygdrive/c/PROGRA~1:/cygdr...
10724 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10725 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10726 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10727 ;;
10728 *)
c45550e5 10729 sys_lib_search_path_spec=$LIB
059850b5
AK
10730 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10731 # It is most probably a Windows format PATH.
10732 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10733 else
10734 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10735 fi
10736 # FIXME: find the short name or the path components, as spaces are
10737 # common. (e.g. "Program Files" -> "PROGRA~1")
10738 ;;
10739 esac
10740
10741 # DLL is installed to $(libdir)/../bin by postinstall_cmds
c45550e5
AK
10742 postinstall_cmds='base_file=`basename \$file`~
10743 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
059850b5
AK
10744 dldir=$destdir/`dirname \$dlpath`~
10745 test -d \$dldir || mkdir -p \$dldir~
10746 $install_prog $dir/$dlname \$dldir/$dlname'
10747 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10748 dlpath=$dir/\$dldll~
10749 $RM \$dlpath'
10750 shlibpath_overrides_runpath=yes
10751 dynamic_linker='Win32 link.exe'
b9668ba4
AK
10752 ;;
10753
10754 *)
059850b5 10755 # Assume MSVC wrapper
c45550e5 10756 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
059850b5 10757 dynamic_linker='Win32 ld.exe'
b9668ba4
AK
10758 ;;
10759 esac
b9668ba4
AK
10760 # FIXME: first we should search . and the directory the executable is in
10761 shlibpath_var=PATH
10762 ;;
10763
10764darwin* | rhapsody*)
10765 dynamic_linker="$host_os dyld"
10766 version_type=darwin
10767 need_lib_prefix=no
10768 need_version=no
c45550e5
AK
10769 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10770 soname_spec='$libname$release$major$shared_ext'
b9668ba4
AK
10771 shlibpath_overrides_runpath=yes
10772 shlibpath_var=DYLD_LIBRARY_PATH
10773 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
5c706339
AK
10774
10775 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
b9668ba4
AK
10776 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10777 ;;
10778
10779dgux*)
059850b5 10780 version_type=linux # correct to gnu/linux during the next big refactor
b9668ba4
AK
10781 need_lib_prefix=no
10782 need_version=no
c45550e5
AK
10783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10784 soname_spec='$libname$release$shared_ext$major'
b9668ba4
AK
10785 shlibpath_var=LD_LIBRARY_PATH
10786 ;;
10787
b9668ba4
AK
10788freebsd* | dragonfly*)
10789 # DragonFly does not have aout. When/if they implement a new
10790 # versioning mechanism, adjust this.
10791 if test -x /usr/bin/objformat; then
10792 objformat=`/usr/bin/objformat`
10793 else
10794 case $host_os in
059850b5 10795 freebsd[23].*) objformat=aout ;;
b9668ba4
AK
10796 *) objformat=elf ;;
10797 esac
10798 fi
10799 version_type=freebsd-$objformat
10800 case $version_type in
10801 freebsd-elf*)
c45550e5
AK
10802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10803 soname_spec='$libname$release$shared_ext$major'
b9668ba4
AK
10804 need_version=no
10805 need_lib_prefix=no
10806 ;;
10807 freebsd-*)
c45550e5 10808 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
b9668ba4
AK
10809 need_version=yes
10810 ;;
10811 esac
10812 shlibpath_var=LD_LIBRARY_PATH
10813 case $host_os in
059850b5 10814 freebsd2.*)
b9668ba4
AK
10815 shlibpath_overrides_runpath=yes
10816 ;;
10817 freebsd3.[01]* | freebsdelf3.[01]*)
10818 shlibpath_overrides_runpath=yes
10819 hardcode_into_libs=yes
10820 ;;
10821 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10822 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10823 shlibpath_overrides_runpath=no
10824 hardcode_into_libs=yes
10825 ;;
5c706339 10826 *) # from 4.6 on, and DragonFly
b9668ba4
AK
10827 shlibpath_overrides_runpath=yes
10828 hardcode_into_libs=yes
10829 ;;
10830 esac
10831 ;;
10832
059850b5
AK
10833haiku*)
10834 version_type=linux # correct to gnu/linux during the next big refactor
10835 need_lib_prefix=no
10836 need_version=no
10837 dynamic_linker="$host_os runtime_loader"
c45550e5
AK
10838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10839 soname_spec='$libname$release$shared_ext$major'
059850b5 10840 shlibpath_var=LIBRARY_PATH
c45550e5 10841 shlibpath_overrides_runpath=no
059850b5 10842 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
b9668ba4
AK
10843 hardcode_into_libs=yes
10844 ;;
10845
10846hpux9* | hpux10* | hpux11*)
10847 # Give a soname corresponding to the major version so that dld.sl refuses to
10848 # link against other versions.
10849 version_type=sunos
10850 need_lib_prefix=no
10851 need_version=no
10852 case $host_cpu in
10853 ia64*)
10854 shrext_cmds='.so'
10855 hardcode_into_libs=yes
10856 dynamic_linker="$host_os dld.so"
10857 shlibpath_var=LD_LIBRARY_PATH
10858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
c45550e5
AK
10859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10860 soname_spec='$libname$release$shared_ext$major'
10861 if test 32 = "$HPUX_IA64_MODE"; then
b9668ba4 10862 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
c45550e5 10863 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
b9668ba4
AK
10864 else
10865 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
c45550e5 10866 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
b9668ba4 10867 fi
b9668ba4 10868 ;;
5c706339
AK
10869 hppa*64*)
10870 shrext_cmds='.sl'
10871 hardcode_into_libs=yes
10872 dynamic_linker="$host_os dld.sl"
10873 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10874 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
c45550e5
AK
10875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10876 soname_spec='$libname$release$shared_ext$major'
5c706339
AK
10877 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10879 ;;
10880 *)
b9668ba4
AK
10881 shrext_cmds='.sl'
10882 dynamic_linker="$host_os dld.sl"
10883 shlibpath_var=SHLIB_PATH
10884 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
c45550e5
AK
10885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10886 soname_spec='$libname$release$shared_ext$major'
b9668ba4
AK
10887 ;;
10888 esac
059850b5 10889 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
b9668ba4 10890 postinstall_cmds='chmod 555 $lib'
059850b5
AK
10891 # or fails outright, so override atomically:
10892 install_override_mode=555
b9668ba4
AK
10893 ;;
10894
5c706339 10895interix[3-9]*)
059850b5 10896 version_type=linux # correct to gnu/linux during the next big refactor
b9668ba4
AK
10897 need_lib_prefix=no
10898 need_version=no
c45550e5
AK
10899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10900 soname_spec='$libname$release$shared_ext$major'
b9668ba4
AK
10901 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10902 shlibpath_var=LD_LIBRARY_PATH
10903 shlibpath_overrides_runpath=no
10904 hardcode_into_libs=yes
10905 ;;
10906
10907irix5* | irix6* | nonstopux*)
10908 case $host_os in
10909 nonstopux*) version_type=nonstopux ;;
10910 *)
c45550e5 10911 if test yes = "$lt_cv_prog_gnu_ld"; then
059850b5 10912 version_type=linux # correct to gnu/linux during the next big refactor
b9668ba4
AK
10913 else
10914 version_type=irix
10915 fi ;;
10916 esac
10917 need_lib_prefix=no
10918 need_version=no
c45550e5
AK
10919 soname_spec='$libname$release$shared_ext$major'
10920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
b9668ba4
AK
10921 case $host_os in
10922 irix5* | nonstopux*)
10923 libsuff= shlibsuff=
10924 ;;
10925 *)
10926 case $LD in # libtool.m4 will add one of these switches to LD
10927 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10928 libsuff= shlibsuff= libmagic=32-bit;;
10929 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10930 libsuff=32 shlibsuff=N32 libmagic=N32;;
10931 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10932 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10933 *) libsuff= shlibsuff= libmagic=never-match;;
10934 esac
10935 ;;
10936 esac
10937 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10938 shlibpath_overrides_runpath=no
c45550e5
AK
10939 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10940 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
b9668ba4
AK
10941 hardcode_into_libs=yes
10942 ;;
10943
10944# No shared lib support for Linux oldld, aout, or coff.
10945linux*oldld* | linux*aout* | linux*coff*)
10946 dynamic_linker=no
10947 ;;
10948
c45550e5
AK
10949linux*android*)
10950 version_type=none # Android doesn't support versioned libraries.
10951 need_lib_prefix=no
10952 need_version=no
10953 library_names_spec='$libname$release$shared_ext'
10954 soname_spec='$libname$release$shared_ext'
10955 finish_cmds=
10956 shlibpath_var=LD_LIBRARY_PATH
10957 shlibpath_overrides_runpath=yes
10958
10959 # This implies no fast_install, which is unacceptable.
10960 # Some rework will be needed to allow for fast_install
10961 # before this can be enabled.
10962 hardcode_into_libs=yes
10963
10964 dynamic_linker='Android linker'
10965 # Don't embed -rpath directories since the linker doesn't support them.
10966 hardcode_libdir_flag_spec='-L$libdir'
10967 ;;
10968
059850b5 10969# This must be glibc/ELF.
0044e680 10970linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
059850b5 10971 version_type=linux # correct to gnu/linux during the next big refactor
b9668ba4
AK
10972 need_lib_prefix=no
10973 need_version=no
c45550e5
AK
10974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10975 soname_spec='$libname$release$shared_ext$major'
b9668ba4
AK
10976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10977 shlibpath_var=LD_LIBRARY_PATH
10978 shlibpath_overrides_runpath=no
059850b5 10979
5c706339 10980 # Some binutils ld are patched to set DT_RUNPATH
059850b5
AK
10981 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10982 $as_echo_n "(cached) " >&6
10983else
10984 lt_cv_shlibpath_overrides_runpath=no
10985 save_LDFLAGS=$LDFLAGS
10986 save_libdir=$libdir
10987 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10988 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339
AK
10990/* end confdefs.h. */
10991
10992int
10993main ()
10994{
10995
10996 ;
10997 return 0;
10998}
10999_ACEOF
0fbeb4dc
AK
11000if ac_fn_c_try_link "$LINENO"; then :
11001 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
059850b5 11002 lt_cv_shlibpath_overrides_runpath=yes
5c706339 11003fi
5c706339 11004fi
0fbeb4dc
AK
11005rm -f core conftest.err conftest.$ac_objext \
11006 conftest$ac_exeext conftest.$ac_ext
059850b5
AK
11007 LDFLAGS=$save_LDFLAGS
11008 libdir=$save_libdir
11009
11010fi
11011
11012 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
5c706339 11013
b9668ba4
AK
11014 # This implies no fast_install, which is unacceptable.
11015 # Some rework will be needed to allow for fast_install
11016 # before this can be enabled.
11017 hardcode_into_libs=yes
11018
c45550e5
AK
11019 # Ideally, we could use ldconfig to report *all* directores which are
11020 # searched for libraries, however this is still not possible. Aside from not
11021 # being certain /sbin/ldconfig is available, command
11022 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11023 # even though it is searched at run-time. Try to do the best guess by
11024 # appending ld.so.conf contents (and includes) to the search path.
b9668ba4 11025 if test -f /etc/ld.so.conf; then
059850b5 11026 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' ' '`
b9668ba4
AK
11027 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11028 fi
11029
11030 # We used to test for /lib/ld.so.1 and disable shared libraries on
11031 # powerpc, because MkLinux only supported shared libraries with the
11032 # GNU dynamic linker. Since this was broken with cross compilers,
11033 # most powerpc-linux boxes support dynamic linking these days and
11034 # people can always --disable-shared, the test was removed, and we
11035 # assume the GNU/Linux dynamic linker is in use.
11036 dynamic_linker='GNU/Linux ld.so'
11037 ;;
11038
b9668ba4
AK
11039netbsd*)
11040 version_type=sunos
11041 need_lib_prefix=no
11042 need_version=no
5c706339 11043 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
c45550e5 11044 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
b9668ba4
AK
11045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11046 dynamic_linker='NetBSD (a.out) ld.so'
11047 else
c45550e5
AK
11048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11049 soname_spec='$libname$release$shared_ext$major'
b9668ba4
AK
11050 dynamic_linker='NetBSD ld.elf_so'
11051 fi
11052 shlibpath_var=LD_LIBRARY_PATH
11053 shlibpath_overrides_runpath=yes
11054 hardcode_into_libs=yes
11055 ;;
11056
11057newsos6)
059850b5 11058 version_type=linux # correct to gnu/linux during the next big refactor
c45550e5 11059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
b9668ba4
AK
11060 shlibpath_var=LD_LIBRARY_PATH
11061 shlibpath_overrides_runpath=yes
11062 ;;
11063
5c706339
AK
11064*nto* | *qnx*)
11065 version_type=qnx
b9668ba4
AK
11066 need_lib_prefix=no
11067 need_version=no
c45550e5
AK
11068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11069 soname_spec='$libname$release$shared_ext$major'
b9668ba4 11070 shlibpath_var=LD_LIBRARY_PATH
5c706339
AK
11071 shlibpath_overrides_runpath=no
11072 hardcode_into_libs=yes
11073 dynamic_linker='ldqnx.so'
b9668ba4
AK
11074 ;;
11075
c45550e5 11076openbsd* | bitrig*)
b9668ba4 11077 version_type=sunos
c45550e5 11078 sys_lib_dlsearch_path_spec=/usr/lib
b9668ba4 11079 need_lib_prefix=no
c45550e5
AK
11080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11081 need_version=no
b9668ba4 11082 else
c45550e5 11083 need_version=yes
b9668ba4 11084 fi
c45550e5
AK
11085 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11087 shlibpath_var=LD_LIBRARY_PATH
11088 shlibpath_overrides_runpath=yes
b9668ba4
AK
11089 ;;
11090
11091os2*)
11092 libname_spec='$name'
c45550e5
AK
11093 version_type=windows
11094 shrext_cmds=.dll
11095 need_version=no
b9668ba4 11096 need_lib_prefix=no
c45550e5
AK
11097 # OS/2 can only load a DLL with a base name of 8 characters or less.
11098 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11099 v=$($ECHO $release$versuffix | tr -d .-);
11100 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11101 $ECHO $n$v`$shared_ext'
11102 library_names_spec='${libname}_dll.$libext'
b9668ba4 11103 dynamic_linker='OS/2 ld.exe'
c45550e5
AK
11104 shlibpath_var=BEGINLIBPATH
11105 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11107 postinstall_cmds='base_file=`basename \$file`~
11108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11109 dldir=$destdir/`dirname \$dlpath`~
11110 test -d \$dldir || mkdir -p \$dldir~
11111 $install_prog $dir/$dlname \$dldir/$dlname~
11112 chmod a+x \$dldir/$dlname~
11113 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11114 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11115 fi'
11116 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11117 dlpath=$dir/\$dldll~
11118 $RM \$dlpath'
b9668ba4
AK
11119 ;;
11120
11121osf3* | osf4* | osf5*)
11122 version_type=osf
11123 need_lib_prefix=no
11124 need_version=no
c45550e5
AK
11125 soname_spec='$libname$release$shared_ext$major'
11126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
b9668ba4
AK
11127 shlibpath_var=LD_LIBRARY_PATH
11128 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
c45550e5 11129 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
b9668ba4
AK
11130 ;;
11131
5c706339
AK
11132rdos*)
11133 dynamic_linker=no
11134 ;;
11135
b9668ba4 11136solaris*)
059850b5 11137 version_type=linux # correct to gnu/linux during the next big refactor
b9668ba4
AK
11138 need_lib_prefix=no
11139 need_version=no
c45550e5
AK
11140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11141 soname_spec='$libname$release$shared_ext$major'
b9668ba4
AK
11142 shlibpath_var=LD_LIBRARY_PATH
11143 shlibpath_overrides_runpath=yes
11144 hardcode_into_libs=yes
11145 # ldd complains unless libraries are executable
11146 postinstall_cmds='chmod +x $lib'
11147 ;;
11148
11149sunos4*)
11150 version_type=sunos
c45550e5 11151 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
b9668ba4
AK
11152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11153 shlibpath_var=LD_LIBRARY_PATH
11154 shlibpath_overrides_runpath=yes
c45550e5 11155 if test yes = "$with_gnu_ld"; then
b9668ba4
AK
11156 need_lib_prefix=no
11157 fi
11158 need_version=yes
11159 ;;
11160
11161sysv4 | sysv4.3*)
059850b5 11162 version_type=linux # correct to gnu/linux during the next big refactor
c45550e5
AK
11163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11164 soname_spec='$libname$release$shared_ext$major'
b9668ba4
AK
11165 shlibpath_var=LD_LIBRARY_PATH
11166 case $host_vendor in
11167 sni)
11168 shlibpath_overrides_runpath=no
11169 need_lib_prefix=no
b9668ba4
AK
11170 runpath_var=LD_RUN_PATH
11171 ;;
11172 siemens)
11173 need_lib_prefix=no
11174 ;;
11175 motorola)
11176 need_lib_prefix=no
11177 need_version=no
11178 shlibpath_overrides_runpath=no
11179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11180 ;;
11181 esac
11182 ;;
11183
11184sysv4*MP*)
c45550e5 11185 if test -d /usr/nec; then
059850b5 11186 version_type=linux # correct to gnu/linux during the next big refactor
c45550e5
AK
11187 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11188 soname_spec='$libname$shared_ext.$major'
b9668ba4
AK
11189 shlibpath_var=LD_LIBRARY_PATH
11190 fi
11191 ;;
11192
11193sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
c45550e5 11194 version_type=sco
b9668ba4
AK
11195 need_lib_prefix=no
11196 need_version=no
c45550e5
AK
11197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11198 soname_spec='$libname$release$shared_ext$major'
b9668ba4 11199 shlibpath_var=LD_LIBRARY_PATH
5c706339 11200 shlibpath_overrides_runpath=yes
b9668ba4 11201 hardcode_into_libs=yes
c45550e5 11202 if test yes = "$with_gnu_ld"; then
b9668ba4 11203 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
b9668ba4
AK
11204 else
11205 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
b9668ba4
AK
11206 case $host_os in
11207 sco3.2v5*)
11208 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11209 ;;
11210 esac
11211 fi
11212 sys_lib_dlsearch_path_spec='/usr/lib'
11213 ;;
11214
5c706339
AK
11215tpf*)
11216 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
059850b5 11217 version_type=linux # correct to gnu/linux during the next big refactor
5c706339
AK
11218 need_lib_prefix=no
11219 need_version=no
c45550e5 11220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5c706339
AK
11221 shlibpath_var=LD_LIBRARY_PATH
11222 shlibpath_overrides_runpath=no
11223 hardcode_into_libs=yes
11224 ;;
11225
b9668ba4 11226uts4*)
059850b5 11227 version_type=linux # correct to gnu/linux during the next big refactor
c45550e5
AK
11228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11229 soname_spec='$libname$release$shared_ext$major'
b9668ba4
AK
11230 shlibpath_var=LD_LIBRARY_PATH
11231 ;;
11232
11233*)
11234 dynamic_linker=no
11235 ;;
11236esac
0fbeb4dc 11237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
47dc80f6 11238$as_echo "$dynamic_linker" >&6; }
c45550e5 11239test no = "$dynamic_linker" && can_build_shared=no
b9668ba4
AK
11240
11241variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
c45550e5 11242if test yes = "$GCC"; then
b9668ba4
AK
11243 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11244fi
11245
c45550e5
AK
11246if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11247 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
b9668ba4 11248fi
c45550e5
AK
11249
11250if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11251 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
b9668ba4
AK
11252fi
11253
c45550e5
AK
11254# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11255configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11256
11257# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11258func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11259
11260# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11261configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11262
11263
11264
11265
11266
11267
b9668ba4 11268
b9668ba4 11269
b9668ba4 11270
b9668ba4 11271
b9668ba4 11272
b9668ba4 11273
b9668ba4 11274
b9668ba4 11275
b9668ba4 11276
b9668ba4 11277
b9668ba4 11278
b9668ba4 11279
b9668ba4 11280
b9668ba4 11281
b9668ba4 11282
b9668ba4 11283
b9668ba4 11284
b9668ba4 11285
b9668ba4 11286
b9668ba4 11287
b9668ba4 11288
b9668ba4 11289
b9668ba4 11290
b9668ba4 11291
b9668ba4 11292
b9668ba4 11293
b9668ba4 11294
b9668ba4 11295
b9668ba4 11296
b9668ba4 11297
b9668ba4 11298
b9668ba4 11299
b9668ba4 11300
b9668ba4 11301
b9668ba4 11302
b9668ba4 11303
b9668ba4 11304
b9668ba4 11305
b9668ba4 11306
b9668ba4 11307
b9668ba4 11308
b9668ba4 11309
b9668ba4 11310
b9668ba4 11311
b9668ba4 11312
b9668ba4 11313
b9668ba4 11314
b9668ba4 11315
b9668ba4 11316
b9668ba4 11317
b9668ba4 11318
b9668ba4 11319
b9668ba4 11320
b9668ba4 11321
b9668ba4 11322
b9668ba4 11323
b9668ba4 11324
b9668ba4 11325
b9668ba4 11326
b9668ba4 11327
b9668ba4 11328
b9668ba4 11329
b9668ba4 11330
b9668ba4 11331
b9668ba4 11332
b9668ba4 11333
b9668ba4 11334
b9668ba4 11335
b9668ba4 11336
b9668ba4 11337
b9668ba4 11338
b9668ba4 11339
b9668ba4 11340
b9668ba4 11341
b9668ba4 11342
b9668ba4 11343
b9668ba4 11344
b9668ba4 11345
b9668ba4 11346
b9668ba4 11347
059850b5
AK
11348
11349
11350
11351
11352
b9668ba4 11353
b9668ba4 11354
b9668ba4 11355
b9668ba4 11356
b9668ba4 11357
b9668ba4 11358
0fbeb4dc 11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
47dc80f6 11360$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
5c706339
AK
11361hardcode_action=
11362if test -n "$hardcode_libdir_flag_spec" ||
11363 test -n "$runpath_var" ||
c45550e5 11364 test yes = "$hardcode_automatic"; then
b9668ba4 11365
5c706339 11366 # We can hardcode non-existent directories.
c45550e5 11367 if test no != "$hardcode_direct" &&
5c706339
AK
11368 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11369 # have to relink, otherwise we might link with an installed library
11370 # when we should be linking with a yet-to-be-installed one
c45550e5
AK
11371 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11372 test no != "$hardcode_minus_L"; then
5c706339
AK
11373 # Linking always hardcodes the temporary library directory.
11374 hardcode_action=relink
11375 else
11376 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11377 hardcode_action=immediate
11378 fi
11379else
11380 # We cannot hardcode anything, or else we can only hardcode existing
11381 # directories.
11382 hardcode_action=unsupported
11383fi
0fbeb4dc 11384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
47dc80f6 11385$as_echo "$hardcode_action" >&6; }
b9668ba4 11386
c45550e5
AK
11387if test relink = "$hardcode_action" ||
11388 test yes = "$inherit_rpath"; then
5c706339
AK
11389 # Fast installation is not supported
11390 enable_fast_install=no
c45550e5
AK
11391elif test yes = "$shlibpath_overrides_runpath" ||
11392 test no = "$enable_shared"; then
5c706339
AK
11393 # Fast installation is not necessary
11394 enable_fast_install=needless
11395fi
b9668ba4 11396
b9668ba4 11397
b9668ba4 11398
b9668ba4 11399
b9668ba4 11400
b9668ba4 11401
c45550e5 11402 if test yes != "$enable_dlopen"; then
5c706339
AK
11403 enable_dlopen=unknown
11404 enable_dlopen_self=unknown
11405 enable_dlopen_self_static=unknown
11406else
11407 lt_cv_dlopen=no
11408 lt_cv_dlopen_libs=
b9668ba4 11409
5c706339
AK
11410 case $host_os in
11411 beos*)
c45550e5 11412 lt_cv_dlopen=load_add_on
5c706339
AK
11413 lt_cv_dlopen_libs=
11414 lt_cv_dlopen_self=yes
11415 ;;
b9668ba4 11416
47dc80f6 11417 mingw* | pw32* | cegcc*)
c45550e5 11418 lt_cv_dlopen=LoadLibrary
5c706339
AK
11419 lt_cv_dlopen_libs=
11420 ;;
b9668ba4 11421
5c706339 11422 cygwin*)
c45550e5 11423 lt_cv_dlopen=dlopen
5c706339
AK
11424 lt_cv_dlopen_libs=
11425 ;;
b9668ba4 11426
5c706339 11427 darwin*)
c45550e5 11428 # if libdl is installed we need to link against it
0fbeb4dc 11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
47dc80f6 11430$as_echo_n "checking for dlopen in -ldl... " >&6; }
059850b5 11431if ${ac_cv_lib_dl_dlopen+:} false; then :
47dc80f6 11432 $as_echo_n "(cached) " >&6
5c706339
AK
11433else
11434 ac_check_lib_save_LIBS=$LIBS
11435LIBS="-ldl $LIBS"
0fbeb4dc 11436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339 11437/* end confdefs.h. */
b9668ba4 11438
5c706339
AK
11439/* Override any GCC internal prototype to avoid an error.
11440 Use char because int might match the return type of a GCC
11441 builtin and then its argument prototype would still apply. */
11442#ifdef __cplusplus
11443extern "C"
11444#endif
11445char dlopen ();
11446int
11447main ()
11448{
11449return dlopen ();
11450 ;
11451 return 0;
11452}
11453_ACEOF
0fbeb4dc 11454if ac_fn_c_try_link "$LINENO"; then :
5c706339 11455 ac_cv_lib_dl_dlopen=yes
b9668ba4 11456else
0fbeb4dc 11457 ac_cv_lib_dl_dlopen=no
b9668ba4 11458fi
0fbeb4dc
AK
11459rm -f core conftest.err conftest.$ac_objext \
11460 conftest$ac_exeext conftest.$ac_ext
5c706339
AK
11461LIBS=$ac_check_lib_save_LIBS
11462fi
0fbeb4dc 11463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
47dc80f6 11464$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
059850b5 11465if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
c45550e5 11466 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
5c706339 11467else
b9668ba4 11468
c45550e5 11469 lt_cv_dlopen=dyld
5c706339
AK
11470 lt_cv_dlopen_libs=
11471 lt_cv_dlopen_self=yes
b9668ba4 11472
5c706339 11473fi
b9668ba4 11474
0fbeb4dc 11475 ;;
b9668ba4 11476
c45550e5
AK
11477 tpf*)
11478 # Don't try to run any link tests for TPF. We know it's impossible
11479 # because TPF is a cross-compiler, and we know how we open DSOs.
11480 lt_cv_dlopen=dlopen
11481 lt_cv_dlopen_libs=
11482 lt_cv_dlopen_self=no
11483 ;;
11484
0fbeb4dc
AK
11485 *)
11486 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
059850b5 11487if test "x$ac_cv_func_shl_load" = xyes; then :
c45550e5 11488 lt_cv_dlopen=shl_load
0fbeb4dc
AK
11489else
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11491$as_echo_n "checking for shl_load in -ldld... " >&6; }
059850b5 11492if ${ac_cv_lib_dld_shl_load+:} false; then :
0fbeb4dc
AK
11493 $as_echo_n "(cached) " >&6
11494else
11495 ac_check_lib_save_LIBS=$LIBS
11496LIBS="-ldld $LIBS"
11497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498/* end confdefs.h. */
b9668ba4 11499
5c706339
AK
11500/* Override any GCC internal prototype to avoid an error.
11501 Use char because int might match the return type of a GCC
11502 builtin and then its argument prototype would still apply. */
11503#ifdef __cplusplus
11504extern "C"
11505#endif
0fbeb4dc 11506char shl_load ();
5c706339
AK
11507int
11508main ()
11509{
0fbeb4dc 11510return shl_load ();
5c706339
AK
11511 ;
11512 return 0;
11513}
11514_ACEOF
0fbeb4dc
AK
11515if ac_fn_c_try_link "$LINENO"; then :
11516 ac_cv_lib_dld_shl_load=yes
5c706339 11517else
0fbeb4dc 11518 ac_cv_lib_dld_shl_load=no
5c706339 11519fi
0fbeb4dc
AK
11520rm -f core conftest.err conftest.$ac_objext \
11521 conftest$ac_exeext conftest.$ac_ext
11522LIBS=$ac_check_lib_save_LIBS
5c706339 11523fi
0fbeb4dc
AK
11524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11525$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
059850b5 11526if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
c45550e5 11527 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
0fbeb4dc
AK
11528else
11529 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
059850b5 11530if test "x$ac_cv_func_dlopen" = xyes; then :
c45550e5 11531 lt_cv_dlopen=dlopen
5c706339 11532else
0fbeb4dc 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
47dc80f6 11534$as_echo_n "checking for dlopen in -ldl... " >&6; }
059850b5 11535if ${ac_cv_lib_dl_dlopen+:} false; then :
47dc80f6 11536 $as_echo_n "(cached) " >&6
5c706339
AK
11537else
11538 ac_check_lib_save_LIBS=$LIBS
11539LIBS="-ldl $LIBS"
0fbeb4dc 11540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339 11541/* end confdefs.h. */
b9668ba4 11542
5c706339
AK
11543/* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
11546#ifdef __cplusplus
11547extern "C"
11548#endif
11549char dlopen ();
11550int
11551main ()
11552{
11553return dlopen ();
11554 ;
11555 return 0;
11556}
11557_ACEOF
0fbeb4dc 11558if ac_fn_c_try_link "$LINENO"; then :
5c706339
AK
11559 ac_cv_lib_dl_dlopen=yes
11560else
0fbeb4dc 11561 ac_cv_lib_dl_dlopen=no
5c706339 11562fi
0fbeb4dc
AK
11563rm -f core conftest.err conftest.$ac_objext \
11564 conftest$ac_exeext conftest.$ac_ext
5c706339
AK
11565LIBS=$ac_check_lib_save_LIBS
11566fi
0fbeb4dc 11567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
47dc80f6 11568$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
059850b5 11569if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
c45550e5 11570 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
5c706339 11571else
0fbeb4dc 11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
47dc80f6 11573$as_echo_n "checking for dlopen in -lsvld... " >&6; }
059850b5 11574if ${ac_cv_lib_svld_dlopen+:} false; then :
47dc80f6 11575 $as_echo_n "(cached) " >&6
5c706339
AK
11576else
11577 ac_check_lib_save_LIBS=$LIBS
11578LIBS="-lsvld $LIBS"
0fbeb4dc 11579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339 11580/* end confdefs.h. */
b9668ba4 11581
5c706339
AK
11582/* Override any GCC internal prototype to avoid an error.
11583 Use char because int might match the return type of a GCC
11584 builtin and then its argument prototype would still apply. */
11585#ifdef __cplusplus
11586extern "C"
11587#endif
11588char dlopen ();
11589int
11590main ()
11591{
11592return dlopen ();
11593 ;
11594 return 0;
11595}
11596_ACEOF
0fbeb4dc 11597if ac_fn_c_try_link "$LINENO"; then :
5c706339
AK
11598 ac_cv_lib_svld_dlopen=yes
11599else
0fbeb4dc 11600 ac_cv_lib_svld_dlopen=no
5c706339 11601fi
0fbeb4dc
AK
11602rm -f core conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext conftest.$ac_ext
5c706339
AK
11604LIBS=$ac_check_lib_save_LIBS
11605fi
0fbeb4dc 11606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
47dc80f6 11607$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
059850b5 11608if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
c45550e5 11609 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
5c706339 11610else
0fbeb4dc 11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
47dc80f6 11612$as_echo_n "checking for dld_link in -ldld... " >&6; }
059850b5 11613if ${ac_cv_lib_dld_dld_link+:} false; then :
47dc80f6 11614 $as_echo_n "(cached) " >&6
5c706339
AK
11615else
11616 ac_check_lib_save_LIBS=$LIBS
11617LIBS="-ldld $LIBS"
0fbeb4dc 11618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339 11619/* end confdefs.h. */
b9668ba4 11620
5c706339
AK
11621/* Override any GCC internal prototype to avoid an error.
11622 Use char because int might match the return type of a GCC
11623 builtin and then its argument prototype would still apply. */
11624#ifdef __cplusplus
11625extern "C"
11626#endif
11627char dld_link ();
11628int
11629main ()
11630{
11631return dld_link ();
11632 ;
11633 return 0;
11634}
11635_ACEOF
0fbeb4dc 11636if ac_fn_c_try_link "$LINENO"; then :
5c706339
AK
11637 ac_cv_lib_dld_dld_link=yes
11638else
0fbeb4dc 11639 ac_cv_lib_dld_dld_link=no
5c706339 11640fi
0fbeb4dc
AK
11641rm -f core conftest.err conftest.$ac_objext \
11642 conftest$ac_exeext conftest.$ac_ext
5c706339
AK
11643LIBS=$ac_check_lib_save_LIBS
11644fi
0fbeb4dc 11645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
47dc80f6 11646$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
059850b5 11647if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
c45550e5 11648 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
5c706339 11649fi
b9668ba4 11650
b9668ba4 11651
5c706339 11652fi
b9668ba4 11653
b9668ba4 11654
5c706339 11655fi
b9668ba4 11656
b9668ba4 11657
5c706339 11658fi
b9668ba4 11659
b9668ba4 11660
5c706339 11661fi
b9668ba4 11662
b9668ba4 11663
5c706339 11664fi
b9668ba4 11665
5c706339
AK
11666 ;;
11667 esac
b9668ba4 11668
c45550e5 11669 if test no = "$lt_cv_dlopen"; then
5c706339 11670 enable_dlopen=no
c45550e5
AK
11671 else
11672 enable_dlopen=yes
b9668ba4
AK
11673 fi
11674
5c706339
AK
11675 case $lt_cv_dlopen in
11676 dlopen)
c45550e5
AK
11677 save_CPPFLAGS=$CPPFLAGS
11678 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5c706339 11679
c45550e5 11680 save_LDFLAGS=$LDFLAGS
5c706339 11681 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
b9668ba4 11682
c45550e5 11683 save_LIBS=$LIBS
5c706339 11684 LIBS="$lt_cv_dlopen_libs $LIBS"
b9668ba4 11685
0fbeb4dc 11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
47dc80f6 11687$as_echo_n "checking whether a program can dlopen itself... " >&6; }
059850b5 11688if ${lt_cv_dlopen_self+:} false; then :
47dc80f6 11689 $as_echo_n "(cached) " >&6
b9668ba4 11690else
c45550e5 11691 if test yes = "$cross_compiling"; then :
5c706339 11692 lt_cv_dlopen_self=cross
b9668ba4 11693else
5c706339
AK
11694 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11695 lt_status=$lt_dlunknown
11696 cat > conftest.$ac_ext <<_LT_EOF
059850b5 11697#line $LINENO "configure"
5c706339 11698#include "confdefs.h"
b9668ba4 11699
5c706339
AK
11700#if HAVE_DLFCN_H
11701#include <dlfcn.h>
11702#endif
b9668ba4 11703
5c706339 11704#include <stdio.h>
b9668ba4 11705
5c706339
AK
11706#ifdef RTLD_GLOBAL
11707# define LT_DLGLOBAL RTLD_GLOBAL
11708#else
11709# ifdef DL_GLOBAL
11710# define LT_DLGLOBAL DL_GLOBAL
11711# else
11712# define LT_DLGLOBAL 0
11713# endif
11714#endif
b9668ba4 11715
5c706339
AK
11716/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11717 find out it does not work in some platform. */
11718#ifndef LT_DLLAZY_OR_NOW
11719# ifdef RTLD_LAZY
11720# define LT_DLLAZY_OR_NOW RTLD_LAZY
11721# else
11722# ifdef DL_LAZY
11723# define LT_DLLAZY_OR_NOW DL_LAZY
11724# else
11725# ifdef RTLD_NOW
11726# define LT_DLLAZY_OR_NOW RTLD_NOW
11727# else
11728# ifdef DL_NOW
11729# define LT_DLLAZY_OR_NOW DL_NOW
11730# else
11731# define LT_DLLAZY_OR_NOW 0
11732# endif
11733# endif
11734# endif
11735# endif
11736#endif
b9668ba4 11737
c45550e5 11738/* When -fvisibility=hidden is used, assume the code has been annotated
059850b5 11739 correspondingly for the symbols needed. */
c45550e5 11740#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
059850b5
AK
11741int fnord () __attribute__((visibility("default")));
11742#endif
11743
11744int fnord () { return 42; }
5c706339
AK
11745int main ()
11746{
11747 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11748 int status = $lt_dlunknown;
b9668ba4 11749
5c706339
AK
11750 if (self)
11751 {
11752 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
059850b5
AK
11753 else
11754 {
11755 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11756 else puts (dlerror ());
11757 }
5c706339
AK
11758 /* dlclose (self); */
11759 }
11760 else
11761 puts (dlerror ());
b9668ba4 11762
47dc80f6 11763 return status;
5c706339
AK
11764}
11765_LT_EOF
0fbeb4dc 11766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5c706339
AK
11767 (eval $ac_link) 2>&5
11768 ac_status=$?
0fbeb4dc 11769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c45550e5 11770 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
5c706339
AK
11771 (./conftest; exit; ) >&5 2>/dev/null
11772 lt_status=$?
11773 case x$lt_status in
11774 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11775 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11776 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11777 esac
11778 else :
11779 # compilation failed
11780 lt_cv_dlopen_self=no
11781 fi
b9668ba4 11782fi
5c706339 11783rm -fr conftest*
b9668ba4
AK
11784
11785
b9668ba4 11786fi
0fbeb4dc 11787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
47dc80f6 11788$as_echo "$lt_cv_dlopen_self" >&6; }
b9668ba4 11789
c45550e5 11790 if test yes = "$lt_cv_dlopen_self"; then
5c706339 11791 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
0fbeb4dc 11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
47dc80f6 11793$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
059850b5 11794if ${lt_cv_dlopen_self_static+:} false; then :
47dc80f6 11795 $as_echo_n "(cached) " >&6
5c706339 11796else
c45550e5 11797 if test yes = "$cross_compiling"; then :
5c706339
AK
11798 lt_cv_dlopen_self_static=cross
11799else
11800 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11801 lt_status=$lt_dlunknown
11802 cat > conftest.$ac_ext <<_LT_EOF
059850b5 11803#line $LINENO "configure"
5c706339 11804#include "confdefs.h"
b9668ba4 11805
5c706339
AK
11806#if HAVE_DLFCN_H
11807#include <dlfcn.h>
11808#endif
b9668ba4 11809
5c706339 11810#include <stdio.h>
b9668ba4 11811
5c706339
AK
11812#ifdef RTLD_GLOBAL
11813# define LT_DLGLOBAL RTLD_GLOBAL
11814#else
11815# ifdef DL_GLOBAL
11816# define LT_DLGLOBAL DL_GLOBAL
11817# else
11818# define LT_DLGLOBAL 0
11819# endif
11820#endif
b9668ba4 11821
5c706339
AK
11822/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11823 find out it does not work in some platform. */
11824#ifndef LT_DLLAZY_OR_NOW
11825# ifdef RTLD_LAZY
11826# define LT_DLLAZY_OR_NOW RTLD_LAZY
11827# else
11828# ifdef DL_LAZY
11829# define LT_DLLAZY_OR_NOW DL_LAZY
11830# else
11831# ifdef RTLD_NOW
11832# define LT_DLLAZY_OR_NOW RTLD_NOW
11833# else
11834# ifdef DL_NOW
11835# define LT_DLLAZY_OR_NOW DL_NOW
11836# else
11837# define LT_DLLAZY_OR_NOW 0
11838# endif
11839# endif
11840# endif
11841# endif
11842#endif
11843
c45550e5 11844/* When -fvisibility=hidden is used, assume the code has been annotated
059850b5 11845 correspondingly for the symbols needed. */
c45550e5 11846#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
059850b5
AK
11847int fnord () __attribute__((visibility("default")));
11848#endif
11849
11850int fnord () { return 42; }
5c706339
AK
11851int main ()
11852{
11853 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11854 int status = $lt_dlunknown;
11855
11856 if (self)
11857 {
11858 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
059850b5
AK
11859 else
11860 {
11861 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11862 else puts (dlerror ());
11863 }
5c706339
AK
11864 /* dlclose (self); */
11865 }
11866 else
11867 puts (dlerror ());
11868
47dc80f6 11869 return status;
5c706339
AK
11870}
11871_LT_EOF
0fbeb4dc 11872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5c706339
AK
11873 (eval $ac_link) 2>&5
11874 ac_status=$?
0fbeb4dc 11875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c45550e5 11876 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
5c706339
AK
11877 (./conftest; exit; ) >&5 2>/dev/null
11878 lt_status=$?
11879 case x$lt_status in
11880 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11881 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11882 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
b9668ba4 11883 esac
5c706339
AK
11884 else :
11885 # compilation failed
11886 lt_cv_dlopen_self_static=no
11887 fi
11888fi
11889rm -fr conftest*
b9668ba4 11890
b9668ba4 11891
5c706339 11892fi
0fbeb4dc 11893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
47dc80f6 11894$as_echo "$lt_cv_dlopen_self_static" >&6; }
5c706339 11895 fi
b9668ba4 11896
c45550e5
AK
11897 CPPFLAGS=$save_CPPFLAGS
11898 LDFLAGS=$save_LDFLAGS
11899 LIBS=$save_LIBS
5c706339
AK
11900 ;;
11901 esac
b9668ba4 11902
5c706339
AK
11903 case $lt_cv_dlopen_self in
11904 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11905 *) enable_dlopen_self=unknown ;;
11906 esac
b9668ba4 11907
5c706339
AK
11908 case $lt_cv_dlopen_self_static in
11909 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11910 *) enable_dlopen_self_static=unknown ;;
11911 esac
11912fi
b9668ba4 11913
b9668ba4 11914
b9668ba4 11915
b9668ba4 11916
b9668ba4 11917
b9668ba4 11918
b9668ba4 11919
b9668ba4 11920
b9668ba4 11921
b9668ba4 11922
b9668ba4 11923
b9668ba4 11924
b9668ba4 11925
b9668ba4 11926
b9668ba4 11927
b9668ba4 11928
b9668ba4 11929
5c706339
AK
11930striplib=
11931old_striplib=
0fbeb4dc 11932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
47dc80f6 11933$as_echo_n "checking whether stripping libraries is possible... " >&6; }
5c706339
AK
11934if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11935 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11936 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
0fbeb4dc 11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47dc80f6 11938$as_echo "yes" >&6; }
5c706339
AK
11939else
11940# FIXME - insert some real tests, host_os isn't really good enough
11941 case $host_os in
11942 darwin*)
c45550e5 11943 if test -n "$STRIP"; then
5c706339
AK
11944 striplib="$STRIP -x"
11945 old_striplib="$STRIP -S"
0fbeb4dc 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47dc80f6 11947$as_echo "yes" >&6; }
5c706339 11948 else
0fbeb4dc 11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 11950$as_echo "no" >&6; }
5c706339
AK
11951 fi
11952 ;;
11953 *)
0fbeb4dc 11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 11955$as_echo "no" >&6; }
5c706339
AK
11956 ;;
11957 esac
11958fi
b9668ba4 11959
b9668ba4 11960
b9668ba4 11961
b9668ba4 11962
b9668ba4 11963
b9668ba4 11964
b9668ba4
AK
11965
11966
b9668ba4 11967
b9668ba4 11968
b9668ba4 11969
b9668ba4 11970
c45550e5 11971 # Report what library types will actually be built
0fbeb4dc 11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
47dc80f6 11973$as_echo_n "checking if libtool supports shared libraries... " >&6; }
0fbeb4dc 11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
47dc80f6 11975$as_echo "$can_build_shared" >&6; }
b9668ba4 11976
0fbeb4dc 11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
47dc80f6 11978$as_echo_n "checking whether to build shared libraries... " >&6; }
c45550e5 11979 test no = "$can_build_shared" && enable_shared=no
b9668ba4 11980
5c706339
AK
11981 # On AIX, shared libraries and static libraries use the same namespace, and
11982 # are all built from PIC.
11983 case $host_os in
11984 aix3*)
c45550e5 11985 test yes = "$enable_shared" && enable_static=no
5c706339
AK
11986 if test -n "$RANLIB"; then
11987 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11988 postinstall_cmds='$RANLIB $lib'
11989 fi
11990 ;;
b9668ba4 11991
5c706339 11992 aix[4-9]*)
c45550e5
AK
11993 if test ia64 != "$host_cpu"; then
11994 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11995 yes,aix,yes) ;; # shared object as lib.so file only
11996 yes,svr4,*) ;; # shared object as lib.so archive member only
11997 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11998 esac
5c706339
AK
11999 fi
12000 ;;
12001 esac
0fbeb4dc 12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
47dc80f6 12003$as_echo "$enable_shared" >&6; }
b9668ba4 12004
0fbeb4dc 12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
47dc80f6 12006$as_echo_n "checking whether to build static libraries... " >&6; }
5c706339 12007 # Make sure either enable_shared or enable_static is yes.
c45550e5 12008 test yes = "$enable_shared" || enable_static=yes
0fbeb4dc 12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
47dc80f6 12010$as_echo "$enable_static" >&6; }
b9668ba4 12011
b9668ba4 12012
b9668ba4 12013
b9668ba4 12014
5c706339
AK
12015fi
12016ac_ext=c
12017ac_cpp='$CPP $CPPFLAGS'
12018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12020ac_compiler_gnu=$ac_cv_c_compiler_gnu
b9668ba4 12021
c45550e5 12022CC=$lt_save_CC
b9668ba4 12023
b9668ba4 12024
b9668ba4 12025
b9668ba4 12026
b9668ba4 12027
b9668ba4 12028
b9668ba4 12029
b9668ba4 12030
b9668ba4 12031
b9668ba4 12032
b9668ba4 12033
b9668ba4 12034
b9668ba4 12035
059850b5
AK
12036
12037
5c706339 12038 ac_config_commands="$ac_config_commands libtool"
b9668ba4 12039
b9668ba4 12040
b9668ba4 12041
b9668ba4 12042
5c706339 12043# Only expand once:
b9668ba4 12044
b9668ba4 12045
b9668ba4 12046
5c706339
AK
12047# Extract the first word of "doxygen", so it can be a program name with args.
12048set dummy doxygen; ac_word=$2
0fbeb4dc 12049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 12050$as_echo_n "checking for $ac_word... " >&6; }
059850b5 12051if ${ac_cv_prog_DOXYGEN+:} false; then :
47dc80f6 12052 $as_echo_n "(cached) " >&6
5c706339
AK
12053else
12054 if test -n "$DOXYGEN"; then
12055 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
12056else
12057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058for as_dir in $PATH
12059do
12060 IFS=$as_save_IFS
12061 test -z "$as_dir" && as_dir=.
0fbeb4dc 12062 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 12063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 12064 ac_cv_prog_DOXYGEN="true"
0fbeb4dc 12065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
12066 break 2
12067 fi
12068done
0fbeb4dc 12069 done
5c706339 12070IFS=$as_save_IFS
b9668ba4 12071
5c706339
AK
12072 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="false"
12073fi
12074fi
12075DOXYGEN=$ac_cv_prog_DOXYGEN
12076if test -n "$DOXYGEN"; then
0fbeb4dc 12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
47dc80f6 12078$as_echo "$DOXYGEN" >&6; }
5c706339 12079else
0fbeb4dc 12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 12081$as_echo "no" >&6; }
5c706339 12082fi
b9668ba4 12083
b9668ba4 12084
5c706339
AK
12085 if test "$DOXYGEN" = true; then
12086 DOXYGEN_TRUE=
12087 DOXYGEN_FALSE='#'
12088else
12089 DOXYGEN_TRUE='#'
12090 DOXYGEN_FALSE=
12091fi
b9668ba4 12092
b9668ba4 12093
5c706339 12094# Checks for header files.
0fbeb4dc 12095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
47dc80f6 12096$as_echo_n "checking for ANSI C header files... " >&6; }
059850b5 12097if ${ac_cv_header_stdc+:} false; then :
47dc80f6 12098 $as_echo_n "(cached) " >&6
5c706339 12099else
0fbeb4dc 12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339
AK
12101/* end confdefs.h. */
12102#include <stdlib.h>
12103#include <stdarg.h>
12104#include <string.h>
12105#include <float.h>
b9668ba4 12106
5c706339
AK
12107int
12108main ()
12109{
b9668ba4 12110
5c706339
AK
12111 ;
12112 return 0;
12113}
12114_ACEOF
0fbeb4dc 12115if ac_fn_c_try_compile "$LINENO"; then :
5c706339
AK
12116 ac_cv_header_stdc=yes
12117else
0fbeb4dc 12118 ac_cv_header_stdc=no
5c706339 12119fi
5c706339 12120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b9668ba4 12121
5c706339
AK
12122if test $ac_cv_header_stdc = yes; then
12123 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
0fbeb4dc 12124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339
AK
12125/* end confdefs.h. */
12126#include <string.h>
b9668ba4 12127
5c706339
AK
12128_ACEOF
12129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0fbeb4dc
AK
12130 $EGREP "memchr" >/dev/null 2>&1; then :
12131
5c706339
AK
12132else
12133 ac_cv_header_stdc=no
12134fi
12135rm -f conftest*
b9668ba4 12136
5c706339 12137fi
b9668ba4 12138
5c706339
AK
12139if test $ac_cv_header_stdc = yes; then
12140 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
0fbeb4dc 12141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339
AK
12142/* end confdefs.h. */
12143#include <stdlib.h>
b9668ba4 12144
5c706339
AK
12145_ACEOF
12146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0fbeb4dc
AK
12147 $EGREP "free" >/dev/null 2>&1; then :
12148
5c706339
AK
12149else
12150 ac_cv_header_stdc=no
12151fi
12152rm -f conftest*
b9668ba4 12153
5c706339 12154fi
b9668ba4 12155
5c706339
AK
12156if test $ac_cv_header_stdc = yes; then
12157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
0fbeb4dc 12158 if test "$cross_compiling" = yes; then :
5c706339 12159 :
b9668ba4 12160else
0fbeb4dc 12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339
AK
12162/* end confdefs.h. */
12163#include <ctype.h>
12164#include <stdlib.h>
12165#if ((' ' & 0x0FF) == 0x020)
12166# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12167# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12168#else
12169# define ISLOWER(c) \
12170 (('a' <= (c) && (c) <= 'i') \
12171 || ('j' <= (c) && (c) <= 'r') \
12172 || ('s' <= (c) && (c) <= 'z'))
12173# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12174#endif
b9668ba4 12175
5c706339
AK
12176#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12177int
12178main ()
12179{
12180 int i;
12181 for (i = 0; i < 256; i++)
12182 if (XOR (islower (i), ISLOWER (i))
12183 || toupper (i) != TOUPPER (i))
12184 return 2;
12185 return 0;
12186}
12187_ACEOF
0fbeb4dc 12188if ac_fn_c_try_run "$LINENO"; then :
b9668ba4 12189
0fbeb4dc
AK
12190else
12191 ac_cv_header_stdc=no
5c706339 12192fi
0fbeb4dc
AK
12193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12194 conftest.$ac_objext conftest.beam conftest.$ac_ext
5c706339 12195fi
b9668ba4 12196
5c706339
AK
12197fi
12198fi
0fbeb4dc 12199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
47dc80f6 12200$as_echo "$ac_cv_header_stdc" >&6; }
5c706339 12201if test $ac_cv_header_stdc = yes; then
b9668ba4 12202
0fbeb4dc 12203$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b9668ba4 12204
5c706339 12205fi
b9668ba4 12206
5c706339 12207for ac_header in stdlib.h
0fbeb4dc
AK
12208do :
12209 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
059850b5 12210if test "x$ac_cv_header_stdlib_h" = xyes; then :
5c706339 12211 cat >>confdefs.h <<_ACEOF
0fbeb4dc 12212#define HAVE_STDLIB_H 1
5c706339 12213_ACEOF
b9668ba4 12214
5c706339 12215fi
b9668ba4 12216
5c706339 12217done
b9668ba4 12218
b9668ba4 12219
5c706339 12220# Checks for typedefs, structures, and compiler characteristics.
0fbeb4dc 12221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
47dc80f6 12222$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
059850b5 12223if ${ac_cv_c_const+:} false; then :
47dc80f6 12224 $as_echo_n "(cached) " >&6
5c706339 12225else
0fbeb4dc 12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339 12227/* end confdefs.h. */
b9668ba4 12228
5c706339
AK
12229int
12230main ()
12231{
0044e680 12232
5c706339 12233#ifndef __cplusplus
0044e680 12234 /* Ultrix mips cc rejects this sort of thing. */
5c706339 12235 typedef int charset[2];
0044e680 12236 const charset cs = { 0, 0 };
5c706339
AK
12237 /* SunOS 4.1.1 cc rejects this. */
12238 char const *const *pcpcc;
12239 char **ppc;
12240 /* NEC SVR4.0.2 mips cc rejects this. */
12241 struct point {int x, y;};
12242 static struct point const zero = {0,0};
12243 /* AIX XL C 1.02.0.0 rejects this.
12244 It does not let you subtract one const X* pointer from another in
12245 an arm of an if-expression whose if-part is not a constant
12246 expression */
12247 const char *g = "string";
12248 pcpcc = &g + (g ? g-g : 0);
12249 /* HPUX 7.0 cc rejects these. */
12250 ++pcpcc;
12251 ppc = (char**) pcpcc;
12252 pcpcc = (char const *const *) ppc;
0044e680
AK
12253 { /* SCO 3.2v4 cc rejects this sort of thing. */
12254 char tx;
12255 char *t = &tx;
5c706339 12256 char const *s = 0 ? (char *) 0 : (char const *) 0;
b9668ba4 12257
5c706339
AK
12258 *t++ = 0;
12259 if (s) return 0;
12260 }
12261 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12262 int x[] = {25, 17};
12263 const int *foo = &x[0];
12264 ++foo;
12265 }
12266 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12267 typedef const int *iptr;
12268 iptr p = 0;
12269 ++p;
12270 }
0044e680 12271 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5c706339 12272 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
0044e680
AK
12273 struct s { int j; const int *ap[3]; } bx;
12274 struct s *b = &bx; b->j = 5;
5c706339
AK
12275 }
12276 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12277 const int foo = 10;
0fbeb4dc
AK
12278 if (!foo) return 0;
12279 }
12280 return !cs[0] && !zero.x;
12281#endif
12282
5c706339
AK
12283 ;
12284 return 0;
12285}
12286_ACEOF
0fbeb4dc
AK
12287if ac_fn_c_try_compile "$LINENO"; then :
12288 ac_cv_c_const=yes
47dc80f6 12289else
0fbeb4dc 12290 ac_cv_c_const=no
47dc80f6 12291fi
47dc80f6 12292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0fbeb4dc
AK
12293fi
12294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12295$as_echo "$ac_cv_c_const" >&6; }
12296if test $ac_cv_c_const = no; then
b9668ba4 12297
0fbeb4dc 12298$as_echo "#define const /**/" >>confdefs.h
47dc80f6 12299
5c706339 12300fi
b9668ba4 12301
0fbeb4dc 12302ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
059850b5 12303if test "x$ac_cv_type_size_t" = xyes; then :
0fbeb4dc 12304
5c706339 12305else
b9668ba4 12306
5c706339
AK
12307cat >>confdefs.h <<_ACEOF
12308#define size_t unsigned int
12309_ACEOF
b9668ba4 12310
5c706339 12311fi
b9668ba4 12312
b9668ba4 12313
5c706339 12314# Define Makefiles.
c45550e5 12315ac_config_files="$ac_config_files yaml-0.1.pc include/Makefile src/Makefile Makefile tests/Makefile"
b9668ba4 12316
b9668ba4 12317
5c706339
AK
12318# Generate the "configure" script.
12319cat >confcache <<\_ACEOF
12320# This file is a shell script that caches the results of configure
12321# tests run on this system so they can be shared between configure
12322# scripts and configure runs, see configure's option --config-cache.
12323# It is not useful on other systems. If it contains results you don't
12324# want to keep, you may remove or edit it.
12325#
12326# config.status only pays attention to the cache file if you give it
12327# the --recheck option to rerun configure.
12328#
12329# `ac_cv_env_foo' variables (set or unset) will be overridden when
12330# loading this file, other *unset* `ac_cv_foo' will be assigned the
12331# following values.
b9668ba4 12332
5c706339 12333_ACEOF
b9668ba4 12334
5c706339
AK
12335# The following way of writing the cache mishandles newlines in values,
12336# but we know of no workaround that is simple, portable, and efficient.
12337# So, we kill variables containing newlines.
12338# Ultrix sh set writes to stderr and can't be redirected directly,
12339# and sets the high bit in the cache file unless we assign to the vars.
12340(
12341 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12342 eval ac_val=\$$ac_var
12343 case $ac_val in #(
12344 *${as_nl}*)
12345 case $ac_var in #(
0fbeb4dc 12346 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
47dc80f6 12347$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5c706339
AK
12348 esac
12349 case $ac_var in #(
12350 _ | IFS | as_nl) ;; #(
47dc80f6 12351 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
0fbeb4dc 12352 *) { eval $ac_var=; unset $ac_var;} ;;
5c706339
AK
12353 esac ;;
12354 esac
12355 done
b9668ba4 12356
5c706339
AK
12357 (set) 2>&1 |
12358 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12359 *${as_nl}ac_space=\ *)
0fbeb4dc
AK
12360 # `set' does not quote correctly, so add quotes: double-quote
12361 # substitution turns \\\\ into \\, and sed turns \\ into \.
5c706339
AK
12362 sed -n \
12363 "s/'/'\\\\''/g;
12364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12365 ;; #(
12366 *)
12367 # `set' quotes correctly as required by POSIX, so do not add quotes.
12368 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12369 ;;
12370 esac |
12371 sort
12372) |
12373 sed '
12374 /^ac_cv_env_/b end
12375 t clear
12376 :clear
12377 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12378 t end
12379 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12380 :end' >>confcache
12381if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12382 if test -w "$cache_file"; then
059850b5 12383 if test "x$cache_file" != "x/dev/null"; then
0fbeb4dc 12384 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
47dc80f6 12385$as_echo "$as_me: updating cache $cache_file" >&6;}
059850b5
AK
12386 if test ! -f "$cache_file" || test -h "$cache_file"; then
12387 cat confcache >"$cache_file"
12388 else
12389 case $cache_file in #(
12390 */* | ?:*)
12391 mv -f confcache "$cache_file"$$ &&
12392 mv -f "$cache_file"$$ "$cache_file" ;; #(
12393 *)
12394 mv -f confcache "$cache_file" ;;
12395 esac
12396 fi
12397 fi
5c706339 12398 else
0fbeb4dc 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
47dc80f6 12400$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5c706339
AK
12401 fi
12402fi
12403rm -f confcache
b9668ba4 12404
5c706339
AK
12405test "x$prefix" = xNONE && prefix=$ac_default_prefix
12406# Let make expand exec_prefix.
12407test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
b9668ba4 12408
5c706339 12409DEFS=-DHAVE_CONFIG_H
b9668ba4 12410
5c706339
AK
12411ac_libobjs=
12412ac_ltlibobjs=
0fbeb4dc 12413U=
5c706339
AK
12414for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12415 # 1. Remove the extension, and $U if already installed.
12416 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
47dc80f6 12417 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5c706339
AK
12418 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12419 # will be set to the directory where LIBOBJS objects are built.
0fbeb4dc
AK
12420 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12421 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5c706339
AK
12422done
12423LIBOBJS=$ac_libobjs
b9668ba4 12424
5c706339 12425LTLIBOBJS=$ac_ltlibobjs
b9668ba4 12426
b9668ba4 12427
0044e680
AK
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12429$as_echo_n "checking that generated files are newer than configure... " >&6; }
12430 if test -n "$am_sleep_pid"; then
12431 # Hide warnings about reused PIDs.
12432 wait $am_sleep_pid 2>/dev/null
12433 fi
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12435$as_echo "done" >&6; }
0fbeb4dc
AK
12436 if test -n "$EXEEXT"; then
12437 am__EXEEXT_TRUE=
12438 am__EXEEXT_FALSE='#'
12439else
12440 am__EXEEXT_TRUE='#'
12441 am__EXEEXT_FALSE=
12442fi
12443
5c706339 12444if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
0fbeb4dc
AK
12445 as_fn_error $? "conditional \"AMDEP\" was never defined.
12446Usually this means the macro was only invoked conditionally." "$LINENO" 5
5c706339
AK
12447fi
12448if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
0fbeb4dc
AK
12449 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12450Usually this means the macro was only invoked conditionally." "$LINENO" 5
5c706339
AK
12451fi
12452if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
0fbeb4dc
AK
12453 as_fn_error $? "conditional \"DOXYGEN\" was never defined.
12454Usually this means the macro was only invoked conditionally." "$LINENO" 5
5c706339 12455fi
b9668ba4 12456
059850b5 12457: "${CONFIG_STATUS=./config.status}"
47dc80f6 12458ac_write_fail=0
5c706339
AK
12459ac_clean_files_save=$ac_clean_files
12460ac_clean_files="$ac_clean_files $CONFIG_STATUS"
0fbeb4dc 12461{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
47dc80f6 12462$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
0fbeb4dc
AK
12463as_write_fail=0
12464cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5c706339
AK
12465#! $SHELL
12466# Generated by $as_me.
12467# Run this file to recreate the current configuration.
12468# Compiler output produced by configure, useful for debugging
12469# configure, is in config.log if it exists.
b9668ba4 12470
5c706339
AK
12471debug=false
12472ac_cs_recheck=false
12473ac_cs_silent=false
b9668ba4 12474
0fbeb4dc
AK
12475SHELL=\${CONFIG_SHELL-$SHELL}
12476export SHELL
12477_ASEOF
12478cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12479## -------------------- ##
12480## M4sh Initialization. ##
12481## -------------------- ##
b9668ba4 12482
5c706339
AK
12483# Be more Bourne compatible
12484DUALCASE=1; export DUALCASE # for MKS sh
0fbeb4dc 12485if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5c706339
AK
12486 emulate sh
12487 NULLCMD=:
47dc80f6 12488 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5c706339
AK
12489 # is contrary to our usage. Disable this feature.
12490 alias -g '${1+"$@"}'='"$@"'
12491 setopt NO_GLOB_SUBST
12492else
0fbeb4dc
AK
12493 case `(set -o) 2>/dev/null` in #(
12494 *posix*) :
12495 set -o posix ;; #(
12496 *) :
12497 ;;
5c706339 12498esac
5c706339 12499fi
b9668ba4 12500
b9668ba4 12501
47dc80f6
AK
12502as_nl='
12503'
12504export as_nl
12505# Printing a long string crashes Solaris 7 /usr/bin/printf.
12506as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12507as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12508as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
0fbeb4dc
AK
12509# Prefer a ksh shell builtin over an external printf program on Solaris,
12510# but without wasting forks for bash or zsh.
12511if test -z "$BASH_VERSION$ZSH_VERSION" \
12512 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12513 as_echo='print -r --'
12514 as_echo_n='print -rn --'
12515elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47dc80f6
AK
12516 as_echo='printf %s\n'
12517 as_echo_n='printf %s'
12518else
12519 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12520 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12521 as_echo_n='/usr/ucb/echo -n'
5c706339 12522 else
47dc80f6
AK
12523 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12524 as_echo_n_body='eval
12525 arg=$1;
0fbeb4dc 12526 case $arg in #(
47dc80f6
AK
12527 *"$as_nl"*)
12528 expr "X$arg" : "X\\(.*\\)$as_nl";
12529 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12530 esac;
12531 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12532 '
12533 export as_echo_n_body
12534 as_echo_n='sh -c $as_echo_n_body as_echo'
5c706339 12535 fi
47dc80f6
AK
12536 export as_echo_body
12537 as_echo='sh -c $as_echo_body as_echo'
12538fi
12539
12540# The user is always right.
12541if test "${PATH_SEPARATOR+set}" != set; then
12542 PATH_SEPARATOR=:
12543 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12544 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12545 PATH_SEPARATOR=';'
12546 }
5c706339 12547fi
b9668ba4 12548
b9668ba4 12549
5c706339
AK
12550# IFS
12551# We need space, tab and new line, in precisely that order. Quoting is
12552# there to prevent editors from complaining about space-tab.
12553# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12554# splitting by setting IFS to empty value.)
5c706339 12555IFS=" "" $as_nl"
b9668ba4 12556
5c706339 12557# Find who we are. Look in the path if we contain no directory separator.
059850b5 12558as_myself=
0fbeb4dc 12559case $0 in #((
5c706339
AK
12560 *[\\/]* ) as_myself=$0 ;;
12561 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12562for as_dir in $PATH
12563do
12564 IFS=$as_save_IFS
12565 test -z "$as_dir" && as_dir=.
0fbeb4dc
AK
12566 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12567 done
5c706339 12568IFS=$as_save_IFS
b9668ba4 12569
5c706339
AK
12570 ;;
12571esac
12572# We did not find ourselves, most probably we were run as `sh COMMAND'
12573# in which case we are not to be found in the path.
12574if test "x$as_myself" = x; then
12575 as_myself=$0
12576fi
12577if test ! -f "$as_myself"; then
47dc80f6 12578 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
0fbeb4dc 12579 exit 1
5c706339 12580fi
b9668ba4 12581
0fbeb4dc
AK
12582# Unset variables that we do not need and which cause bugs (e.g. in
12583# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12584# suppresses any "Segmentation fault" message there. '((' could
12585# trigger a bug in pdksh 5.2.14.
12586for as_var in BASH_ENV ENV MAIL MAILPATH
12587do eval test x\${$as_var+set} = xset \
12588 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5c706339
AK
12589done
12590PS1='$ '
12591PS2='> '
12592PS4='+ '
b9668ba4 12593
5c706339 12594# NLS nuisances.
47dc80f6
AK
12595LC_ALL=C
12596export LC_ALL
12597LANGUAGE=C
12598export LANGUAGE
b9668ba4 12599
0fbeb4dc
AK
12600# CDPATH.
12601(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12602
12603
12604# as_fn_error STATUS ERROR [LINENO LOG_FD]
12605# ----------------------------------------
12606# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12607# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12608# script with STATUS, using 1 if that was 0.
12609as_fn_error ()
12610{
12611 as_status=$1; test $as_status -eq 0 && as_status=1
12612 if test "$4"; then
12613 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12614 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12615 fi
12616 $as_echo "$as_me: error: $2" >&2
12617 as_fn_exit $as_status
12618} # as_fn_error
12619
12620
12621# as_fn_set_status STATUS
12622# -----------------------
12623# Set $? to STATUS, without forking.
12624as_fn_set_status ()
12625{
12626 return $1
12627} # as_fn_set_status
12628
12629# as_fn_exit STATUS
12630# -----------------
12631# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12632as_fn_exit ()
12633{
12634 set +e
12635 as_fn_set_status $1
12636 exit $1
12637} # as_fn_exit
12638
12639# as_fn_unset VAR
12640# ---------------
12641# Portably unset VAR.
12642as_fn_unset ()
12643{
12644 { eval $1=; unset $1;}
12645}
12646as_unset=as_fn_unset
12647# as_fn_append VAR VALUE
12648# ----------------------
12649# Append the text in VALUE to the end of the definition contained in VAR. Take
12650# advantage of any shell optimizations that allow amortized linear growth over
12651# repeated appends, instead of the typical quadratic growth present in naive
12652# implementations.
12653if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12654 eval 'as_fn_append ()
12655 {
12656 eval $1+=\$2
12657 }'
12658else
12659 as_fn_append ()
12660 {
12661 eval $1=\$$1\$2
12662 }
12663fi # as_fn_append
12664
12665# as_fn_arith ARG...
12666# ------------------
12667# Perform arithmetic evaluation on the ARGs, and store the result in the
12668# global $as_val. Take advantage of shells that can avoid forks. The arguments
12669# must be portable across $(()) and expr.
12670if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12671 eval 'as_fn_arith ()
12672 {
12673 as_val=$(( $* ))
12674 }'
12675else
12676 as_fn_arith ()
12677 {
12678 as_val=`expr "$@" || test $? -eq 1`
12679 }
12680fi # as_fn_arith
12681
12682
5c706339
AK
12683if expr a : '\(a\)' >/dev/null 2>&1 &&
12684 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12685 as_expr=expr
12686else
12687 as_expr=false
12688fi
b9668ba4 12689
5c706339
AK
12690if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12691 as_basename=basename
12692else
12693 as_basename=false
12694fi
b9668ba4 12695
0fbeb4dc
AK
12696if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12697 as_dirname=dirname
12698else
12699 as_dirname=false
12700fi
b9668ba4 12701
5c706339
AK
12702as_me=`$as_basename -- "$0" ||
12703$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12704 X"$0" : 'X\(//\)$' \| \
12705 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
47dc80f6 12706$as_echo X/"$0" |
5c706339
AK
12707 sed '/^.*\/\([^/][^/]*\)\/*$/{
12708 s//\1/
12709 q
12710 }
12711 /^X\/\(\/\/\)$/{
12712 s//\1/
12713 q
12714 }
12715 /^X\/\(\/\).*/{
12716 s//\1/
12717 q
12718 }
12719 s/.*/./; q'`
b9668ba4 12720
0fbeb4dc
AK
12721# Avoid depending upon Character Ranges.
12722as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12723as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12724as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12725as_cr_digits='0123456789'
12726as_cr_alnum=$as_cr_Letters$as_cr_digits
b9668ba4 12727
5c706339 12728ECHO_C= ECHO_N= ECHO_T=
0fbeb4dc 12729case `echo -n x` in #(((((
5c706339 12730-n*)
0fbeb4dc 12731 case `echo 'xy\c'` in
5c706339 12732 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
0fbeb4dc
AK
12733 xy) ECHO_C='\c';;
12734 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12735 ECHO_T=' ';;
5c706339
AK
12736 esac;;
12737*)
12738 ECHO_N='-n';;
12739esac
b9668ba4 12740
5c706339
AK
12741rm -f conf$$ conf$$.exe conf$$.file
12742if test -d conf$$.dir; then
12743 rm -f conf$$.dir/conf$$.file
12744else
12745 rm -f conf$$.dir
47dc80f6
AK
12746 mkdir conf$$.dir 2>/dev/null
12747fi
12748if (echo >conf$$.file) 2>/dev/null; then
12749 if ln -s conf$$.file conf$$ 2>/dev/null; then
12750 as_ln_s='ln -s'
12751 # ... but there are two gotchas:
12752 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12753 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
0044e680 12754 # In both cases, we have to default to `cp -pR'.
47dc80f6 12755 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
0044e680 12756 as_ln_s='cp -pR'
47dc80f6
AK
12757 elif ln conf$$.file conf$$ 2>/dev/null; then
12758 as_ln_s=ln
12759 else
0044e680 12760 as_ln_s='cp -pR'
47dc80f6 12761 fi
5c706339 12762else
0044e680 12763 as_ln_s='cp -pR'
5c706339
AK
12764fi
12765rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12766rmdir conf$$.dir 2>/dev/null
b9668ba4 12767
0fbeb4dc
AK
12768
12769# as_fn_mkdir_p
12770# -------------
12771# Create "$as_dir" as a directory, including parents if necessary.
12772as_fn_mkdir_p ()
12773{
12774
12775 case $as_dir in #(
12776 -*) as_dir=./$as_dir;;
12777 esac
12778 test -d "$as_dir" || eval $as_mkdir_p || {
12779 as_dirs=
12780 while :; do
12781 case $as_dir in #(
12782 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12783 *) as_qdir=$as_dir;;
12784 esac
12785 as_dirs="'$as_qdir' $as_dirs"
12786 as_dir=`$as_dirname -- "$as_dir" ||
12787$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12788 X"$as_dir" : 'X\(//\)[^/]' \| \
12789 X"$as_dir" : 'X\(//\)$' \| \
12790 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12791$as_echo X"$as_dir" |
12792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12793 s//\1/
12794 q
12795 }
12796 /^X\(\/\/\)[^/].*/{
12797 s//\1/
12798 q
12799 }
12800 /^X\(\/\/\)$/{
12801 s//\1/
12802 q
12803 }
12804 /^X\(\/\).*/{
12805 s//\1/
12806 q
12807 }
12808 s/.*/./; q'`
12809 test -d "$as_dir" && break
12810 done
12811 test -z "$as_dirs" || eval "mkdir $as_dirs"
12812 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12813
12814
12815} # as_fn_mkdir_p
5c706339 12816if mkdir -p . 2>/dev/null; then
0fbeb4dc 12817 as_mkdir_p='mkdir -p "$as_dir"'
5c706339
AK
12818else
12819 test -d ./-p && rmdir ./-p
12820 as_mkdir_p=false
12821fi
b9668ba4 12822
0044e680
AK
12823
12824# as_fn_executable_p FILE
12825# -----------------------
12826# Test if FILE is an executable regular file.
12827as_fn_executable_p ()
12828{
12829 test -f "$1" && test -x "$1"
12830} # as_fn_executable_p
12831as_test_x='test -x'
12832as_executable_p=as_fn_executable_p
b9668ba4 12833
5c706339
AK
12834# Sed expression to map a string onto a valid CPP name.
12835as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
b9668ba4 12836
5c706339
AK
12837# Sed expression to map a string onto a valid variable name.
12838as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
b9668ba4 12839
b9668ba4 12840
5c706339 12841exec 6>&1
0fbeb4dc
AK
12842## ----------------------------------- ##
12843## Main body of $CONFIG_STATUS script. ##
12844## ----------------------------------- ##
12845_ASEOF
12846test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
b9668ba4 12847
0fbeb4dc
AK
12848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12849# Save the log message, to keep $0 and so on meaningful, and to
5c706339
AK
12850# report actual input values of CONFIG_FILES etc. instead of their
12851# values after options handling.
12852ac_log="
c45550e5 12853This file was extended by yaml $as_me 0.2.1, which was
0044e680 12854generated by GNU Autoconf 2.69. Invocation command line was
b9668ba4 12855
5c706339
AK
12856 CONFIG_FILES = $CONFIG_FILES
12857 CONFIG_HEADERS = $CONFIG_HEADERS
12858 CONFIG_LINKS = $CONFIG_LINKS
12859 CONFIG_COMMANDS = $CONFIG_COMMANDS
12860 $ $0 $@
b9668ba4 12861
5c706339
AK
12862on `(hostname || uname -n) 2>/dev/null | sed 1q`
12863"
b9668ba4 12864
5c706339 12865_ACEOF
b9668ba4 12866
47dc80f6
AK
12867case $ac_config_files in *"
12868"*) set x $ac_config_files; shift; ac_config_files=$*;;
12869esac
12870
12871case $ac_config_headers in *"
12872"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12873esac
12874
12875
12876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5c706339
AK
12877# Files that config.status was made for.
12878config_files="$ac_config_files"
12879config_headers="$ac_config_headers"
12880config_commands="$ac_config_commands"
b9668ba4 12881
5c706339 12882_ACEOF
b9668ba4 12883
47dc80f6 12884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5c706339 12885ac_cs_usage="\
0fbeb4dc
AK
12886\`$as_me' instantiates files and other configuration actions
12887from templates according to the current configuration. Unless the files
12888and actions are specified as TAGs, all are instantiated by default.
b9668ba4 12889
0fbeb4dc 12890Usage: $0 [OPTION]... [TAG]...
b9668ba4 12891
5c706339
AK
12892 -h, --help print this help, then exit
12893 -V, --version print version number and configuration settings, then exit
0fbeb4dc 12894 --config print configuration, then exit
47dc80f6
AK
12895 -q, --quiet, --silent
12896 do not print progress messages
5c706339
AK
12897 -d, --debug don't remove temporary files
12898 --recheck update $as_me by reconfiguring in the same conditions
47dc80f6
AK
12899 --file=FILE[:TEMPLATE]
12900 instantiate the configuration file FILE
12901 --header=FILE[:TEMPLATE]
12902 instantiate the configuration header FILE
b9668ba4 12903
5c706339
AK
12904Configuration files:
12905$config_files
b9668ba4 12906
5c706339
AK
12907Configuration headers:
12908$config_headers
b9668ba4 12909
5c706339
AK
12910Configuration commands:
12911$config_commands
b9668ba4 12912
c45550e5 12913Report bugs to <https://github.com/yaml/libyaml/issues/new>."
b9668ba4 12914
5c706339 12915_ACEOF
47dc80f6 12916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
0fbeb4dc 12917ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5c706339 12918ac_cs_version="\\
c45550e5 12919yaml config.status 0.2.1
0044e680 12920configured by $0, generated by GNU Autoconf 2.69,
0fbeb4dc 12921 with options \\"\$ac_cs_config\\"
b9668ba4 12922
0044e680 12923Copyright (C) 2012 Free Software Foundation, Inc.
5c706339
AK
12924This config.status script is free software; the Free Software Foundation
12925gives unlimited permission to copy, distribute and modify it."
b9668ba4 12926
5c706339
AK
12927ac_pwd='$ac_pwd'
12928srcdir='$srcdir'
12929INSTALL='$INSTALL'
12930MKDIR_P='$MKDIR_P'
47dc80f6
AK
12931AWK='$AWK'
12932test -n "\$AWK" || AWK=awk
5c706339 12933_ACEOF
b9668ba4 12934
47dc80f6
AK
12935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12936# The default lists apply if the user does not specify any file.
5c706339
AK
12937ac_need_defaults=:
12938while test $# != 0
12939do
12940 case $1 in
0fbeb4dc 12941 --*=?*)
5c706339
AK
12942 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12943 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12944 ac_shift=:
12945 ;;
0fbeb4dc
AK
12946 --*=)
12947 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12948 ac_optarg=
12949 ac_shift=:
12950 ;;
5c706339
AK
12951 *)
12952 ac_option=$1
12953 ac_optarg=$2
12954 ac_shift=shift
12955 ;;
12956 esac
b9668ba4 12957
5c706339
AK
12958 case $ac_option in
12959 # Handling of the options.
12960 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12961 ac_cs_recheck=: ;;
12962 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
47dc80f6 12963 $as_echo "$ac_cs_version"; exit ;;
0fbeb4dc
AK
12964 --config | --confi | --conf | --con | --co | --c )
12965 $as_echo "$ac_cs_config"; exit ;;
5c706339
AK
12966 --debug | --debu | --deb | --de | --d | -d )
12967 debug=: ;;
12968 --file | --fil | --fi | --f )
12969 $ac_shift
47dc80f6
AK
12970 case $ac_optarg in
12971 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
0fbeb4dc 12972 '') as_fn_error $? "missing file argument" ;;
47dc80f6 12973 esac
0fbeb4dc 12974 as_fn_append CONFIG_FILES " '$ac_optarg'"
5c706339
AK
12975 ac_need_defaults=false;;
12976 --header | --heade | --head | --hea )
12977 $ac_shift
47dc80f6
AK
12978 case $ac_optarg in
12979 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12980 esac
0fbeb4dc 12981 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5c706339
AK
12982 ac_need_defaults=false;;
12983 --he | --h)
12984 # Conflict between --help and --header
0fbeb4dc
AK
12985 as_fn_error $? "ambiguous option: \`$1'
12986Try \`$0 --help' for more information.";;
5c706339 12987 --help | --hel | -h )
47dc80f6 12988 $as_echo "$ac_cs_usage"; exit ;;
5c706339
AK
12989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12990 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12991 ac_cs_silent=: ;;
b9668ba4 12992
5c706339 12993 # This is an error.
0fbeb4dc
AK
12994 -*) as_fn_error $? "unrecognized option: \`$1'
12995Try \`$0 --help' for more information." ;;
b9668ba4 12996
0fbeb4dc 12997 *) as_fn_append ac_config_targets " $1"
5c706339 12998 ac_need_defaults=false ;;
b9668ba4 12999
5c706339
AK
13000 esac
13001 shift
b9668ba4 13002done
b9668ba4 13003
5c706339 13004ac_configure_extra_args=
b9668ba4 13005
5c706339
AK
13006if $ac_cs_silent; then
13007 exec 6>/dev/null
13008 ac_configure_extra_args="$ac_configure_extra_args --silent"
b9668ba4
AK
13009fi
13010
b9668ba4 13011_ACEOF
47dc80f6 13012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5c706339 13013if \$ac_cs_recheck; then
0044e680 13014 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47dc80f6
AK
13015 shift
13016 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13017 CONFIG_SHELL='$SHELL'
5c706339 13018 export CONFIG_SHELL
47dc80f6 13019 exec "\$@"
5c706339 13020fi
b9668ba4 13021
5c706339 13022_ACEOF
47dc80f6 13023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5c706339 13024exec 5>>config.log
b9668ba4 13025{
5c706339
AK
13026 echo
13027 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13028## Running $as_me. ##
13029_ASBOX
47dc80f6 13030 $as_echo "$ac_log"
5c706339 13031} >&5
b9668ba4 13032
b9668ba4 13033_ACEOF
47dc80f6 13034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5c706339
AK
13035#
13036# INIT-COMMANDS
13037#
13038AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
b9668ba4 13039
b9668ba4 13040
5c706339
AK
13041# The HP-UX ksh and POSIX shell print the target directory to stdout
13042# if CDPATH is set.
13043(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
b9668ba4 13044
5c706339
AK
13045sed_quote_subst='$sed_quote_subst'
13046double_quote_subst='$double_quote_subst'
13047delay_variable_subst='$delay_variable_subst'
059850b5
AK
13048macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13049macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13050enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13051enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13052pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13053enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
c45550e5 13054shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
059850b5
AK
13055SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13056ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13057PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13058host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13059host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13060host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13061build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13062build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13063build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13064SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13065Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13066GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13067EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13068FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13069LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13070NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13071LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13072max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13073ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13074exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13075lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13076lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13077lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13078lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13079lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13080reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13081reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13082OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13083deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13084file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13085file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13086want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13087DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13088sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13089AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13090AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13091archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13092STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13093RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13094old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13095old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13096old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13097lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13098CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13099CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13100compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13101GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13102lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13103lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
c45550e5 13104lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
059850b5
AK
13105lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13106lt_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"`'
c45550e5 13107lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
059850b5
AK
13108nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13109lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
c45550e5 13110lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
059850b5
AK
13111objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13112MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13113lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13114lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13115lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13116lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13117lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13118need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13119MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13120DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13121NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13122LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13123OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13124OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13125libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13126shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13127extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13128archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13129enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13130export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13131whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13132compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13133old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13134old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13135archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13136archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13137module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13138module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13139with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13140allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13141no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13142hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13143hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13144hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13145hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13146hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13147hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13148hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13149inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13150link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13151always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13152export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13153exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13154include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13155prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13156postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13157file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13158variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13159need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13160need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13161version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13162runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13163shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13164shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13165libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13166library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13167soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13168install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13169postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13170postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13171finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13172finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13173hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13174sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
c45550e5
AK
13175configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13176configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
059850b5
AK
13177hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13178enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13179enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13180enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13181old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13182striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
5c706339
AK
13183
13184LTCC='$LTCC'
13185LTCFLAGS='$LTCFLAGS'
13186compiler='$compiler_DEFAULT'
13187
059850b5
AK
13188# A function that is used when there is no print builtin or printf.
13189func_fallback_echo ()
13190{
13191 eval 'cat <<_LTECHO_EOF
13192\$1
13193_LTECHO_EOF'
13194}
13195
5c706339 13196# Quote evaled strings.
059850b5
AK
13197for var in SHELL \
13198ECHO \
13199PATH_SEPARATOR \
13200SED \
5c706339
AK
13201GREP \
13202EGREP \
13203FGREP \
13204LD \
13205NM \
13206LN_S \
13207lt_SP2NL \
13208lt_NL2SP \
13209reload_flag \
47dc80f6 13210OBJDUMP \
5c706339
AK
13211deplibs_check_method \
13212file_magic_cmd \
059850b5
AK
13213file_magic_glob \
13214want_nocaseglob \
13215DLLTOOL \
13216sharedlib_from_linklib_cmd \
5c706339
AK
13217AR \
13218AR_FLAGS \
059850b5 13219archiver_list_spec \
5c706339
AK
13220STRIP \
13221RANLIB \
13222CC \
13223CFLAGS \
13224compiler \
13225lt_cv_sys_global_symbol_pipe \
13226lt_cv_sys_global_symbol_to_cdecl \
c45550e5 13227lt_cv_sys_global_symbol_to_import \
5c706339
AK
13228lt_cv_sys_global_symbol_to_c_name_address \
13229lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
c45550e5 13230lt_cv_nm_interface \
059850b5 13231nm_file_list_spec \
c45550e5 13232lt_cv_truncate_bin \
5c706339 13233lt_prog_compiler_no_builtin_flag \
5c706339 13234lt_prog_compiler_pic \
059850b5 13235lt_prog_compiler_wl \
5c706339
AK
13236lt_prog_compiler_static \
13237lt_cv_prog_compiler_c_o \
13238need_locks \
059850b5 13239MANIFEST_TOOL \
5c706339
AK
13240DSYMUTIL \
13241NMEDIT \
13242LIPO \
13243OTOOL \
13244OTOOL64 \
13245shrext_cmds \
13246export_dynamic_flag_spec \
13247whole_archive_flag_spec \
13248compiler_needs_object \
13249with_gnu_ld \
13250allow_undefined_flag \
13251no_undefined_flag \
13252hardcode_libdir_flag_spec \
5c706339 13253hardcode_libdir_separator \
5c706339
AK
13254exclude_expsyms \
13255include_expsyms \
13256file_list_spec \
13257variables_saved_for_relink \
13258libname_spec \
13259library_names_spec \
13260soname_spec \
059850b5 13261install_override_mode \
5c706339
AK
13262finish_eval \
13263old_striplib \
13264striplib; do
059850b5 13265 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
5c706339 13266 *[\\\\\\\`\\"\\\$]*)
c45550e5 13267 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
5c706339
AK
13268 ;;
13269 *)
13270 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13271 ;;
13272 esac
13273done
13274
13275# Double-quote double-evaled strings.
13276for var in reload_cmds \
13277old_postinstall_cmds \
13278old_postuninstall_cmds \
13279old_archive_cmds \
13280extract_expsyms_cmds \
13281old_archive_from_new_cmds \
13282old_archive_from_expsyms_cmds \
13283archive_cmds \
13284archive_expsym_cmds \
13285module_cmds \
13286module_expsym_cmds \
13287export_symbols_cmds \
13288prelink_cmds \
059850b5 13289postlink_cmds \
5c706339
AK
13290postinstall_cmds \
13291postuninstall_cmds \
13292finish_cmds \
13293sys_lib_search_path_spec \
c45550e5
AK
13294configure_time_dlsearch_path \
13295configure_time_lt_sys_library_path; do
059850b5 13296 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
5c706339 13297 *[\\\\\\\`\\"\\\$]*)
c45550e5 13298 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
5c706339
AK
13299 ;;
13300 *)
13301 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13302 ;;
13303 esac
13304done
13305
5c706339 13306ac_aux_dir='$ac_aux_dir'
b9668ba4 13307
c45550e5 13308# See if we are running on zsh, and set the options that allow our
5c706339 13309# commands through without removal of \ escapes INIT.
c45550e5 13310if test -n "\${ZSH_VERSION+set}"; then
5c706339 13311 setopt NO_GLOB_SUBST
b9668ba4
AK
13312fi
13313
5c706339
AK
13314
13315 PACKAGE='$PACKAGE'
13316 VERSION='$VERSION'
5c706339
AK
13317 RM='$RM'
13318 ofile='$ofile'
13319
13320
13321
b9668ba4
AK
13322
13323_ACEOF
b9668ba4 13324
47dc80f6 13325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5c706339
AK
13326
13327# Handling of arguments.
13328for ac_config_target in $ac_config_targets
13329do
13330 case $ac_config_target in
13331 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13332 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13333 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
0fbeb4dc 13334 "yaml-0.1.pc") CONFIG_FILES="$CONFIG_FILES yaml-0.1.pc" ;;
5c706339
AK
13335 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13336 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13337 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13338 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
5c706339 13339
059850b5 13340 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5c706339
AK
13341 esac
13342done
13343
13344
13345# If the user did not use the arguments to specify the items to instantiate,
13346# then the envvar interface is used. Set only those that are not.
13347# We use the long form for the default assignment because of an extremely
13348# bizarre bug on SunOS 4.1.3.
13349if $ac_need_defaults; then
13350 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13351 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13352 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b9668ba4
AK
13353fi
13354
5c706339
AK
13355# Have a temporary directory for convenience. Make it in the build tree
13356# simply because there is no reason against having it here, and in addition,
13357# creating and moving files from /tmp can sometimes cause problems.
13358# Hook for its removal unless debugging.
13359# Note that there is a small window in which the directory will not be cleaned:
13360# after its creation but before its name has been assigned to `$tmp'.
13361$debug ||
13362{
059850b5 13363 tmp= ac_tmp=
5c706339 13364 trap 'exit_status=$?
059850b5
AK
13365 : "${ac_tmp:=$tmp}"
13366 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5c706339 13367' 0
0fbeb4dc 13368 trap 'as_fn_exit 1' 1 2 13 15
5c706339
AK
13369}
13370# Create a (secure) tmp directory for tmp files.
b9668ba4 13371
b9668ba4 13372{
5c706339 13373 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
059850b5 13374 test -d "$tmp"
5c706339
AK
13375} ||
13376{
13377 tmp=./conf$$-$RANDOM
13378 (umask 077 && mkdir "$tmp")
0fbeb4dc 13379} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
059850b5 13380ac_tmp=$tmp
5c706339 13381
47dc80f6
AK
13382# Set up the scripts for CONFIG_FILES section.
13383# No need to generate them if there are no CONFIG_FILES.
13384# This happens for instance with `./config.status config.h'.
5c706339
AK
13385if test -n "$CONFIG_FILES"; then
13386
5c706339 13387
0fbeb4dc
AK
13388ac_cr=`echo X | tr X '\015'`
13389# On cygwin, bash can eat \r inside `` if the user requested igncr.
13390# But we know of no other shell where ac_cr would be empty at this
13391# point, so we can use a bashism as a fallback.
13392if test "x$ac_cr" = x; then
13393 eval ac_cr=\$\'\\r\'
13394fi
47dc80f6
AK
13395ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13396if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13397 ac_cs_awk_cr='\\r'
13398else
13399 ac_cs_awk_cr=$ac_cr
b9668ba4
AK
13400fi
13401
059850b5 13402echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5c706339 13403_ACEOF
b9668ba4 13404
b9668ba4 13405
47dc80f6
AK
13406{
13407 echo "cat >conf$$subs.awk <<_ACEOF" &&
13408 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13409 echo "_ACEOF"
13410} >conf$$subs.sh ||
0fbeb4dc
AK
13411 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13412ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5c706339
AK
13413ac_delim='%!_!# '
13414for ac_last_try in false false false false false :; do
47dc80f6 13415 . ./conf$$subs.sh ||
0fbeb4dc 13416 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
b9668ba4 13417
47dc80f6
AK
13418 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13419 if test $ac_delim_n = $ac_delim_num; then
5c706339
AK
13420 break
13421 elif $ac_last_try; then
0fbeb4dc 13422 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5c706339
AK
13423 else
13424 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13425 fi
13426done
47dc80f6 13427rm -f conf$$subs.sh
b9668ba4 13428
47dc80f6 13429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
059850b5 13430cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
47dc80f6
AK
13431_ACEOF
13432sed -n '
13433h
13434s/^/S["/; s/!.*/"]=/
13435p
13436g
13437s/^[^!]*!//
13438:repl
13439t repl
13440s/'"$ac_delim"'$//
13441t delim
13442:nl
13443h
0fbeb4dc 13444s/\(.\{148\}\)..*/\1/
47dc80f6
AK
13445t more1
13446s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13447p
13448n
13449b repl
13450:more1
13451s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13452p
13453g
13454s/.\{148\}//
13455t nl
13456:delim
13457h
0fbeb4dc 13458s/\(.\{148\}\)..*/\1/
47dc80f6
AK
13459t more2
13460s/["\\]/\\&/g; s/^/"/; s/$/"/
13461p
13462b
13463:more2
13464s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13465p
13466g
13467s/.\{148\}//
13468t delim
13469' <conf$$subs.awk | sed '
13470/^[^""]/{
13471 N
13472 s/\n//
13473}
13474' >>$CONFIG_STATUS || ac_write_fail=1
13475rm -f conf$$subs.awk
13476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13477_ACAWK
059850b5 13478cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
47dc80f6
AK
13479 for (key in S) S_is_set[key] = 1
13480 FS = "\a"
13481
13482}
13483{
13484 line = $ 0
13485 nfields = split(line, field, "@")
13486 substed = 0
13487 len = length(field[1])
13488 for (i = 2; i < nfields; i++) {
13489 key = field[i]
13490 keylen = length(key)
13491 if (S_is_set[key]) {
13492 value = S[key]
13493 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13494 len += length(value) + length(field[++i])
13495 substed = 1
13496 } else
13497 len += 1 + keylen
13498 }
5c706339 13499
47dc80f6
AK
13500 print line
13501}
13502
13503_ACAWK
b9668ba4 13504_ACEOF
47dc80f6
AK
13505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13506if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13507 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13508else
13509 cat
059850b5 13510fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
0fbeb4dc 13511 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
b9668ba4 13512_ACEOF
b9668ba4 13513
0fbeb4dc
AK
13514# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13515# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5c706339
AK
13516# trailing colons and then remove the whole line if VPATH becomes empty
13517# (actually we leave an empty line to preserve line numbers).
13518if test "x$srcdir" = x.; then
0fbeb4dc
AK
13519 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13520h
13521s///
13522s/^/:/
13523s/[ ]*$/:/
13524s/:\$(srcdir):/:/g
13525s/:\${srcdir}:/:/g
13526s/:@srcdir@:/:/g
13527s/^:*//
5c706339 13528s/:*$//
0fbeb4dc
AK
13529x
13530s/\(=[ ]*\).*/\1/
13531G
13532s/\n//
5c706339
AK
13533s/^[^=]*=[ ]*$//
13534}'
b9668ba4
AK
13535fi
13536
47dc80f6 13537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5c706339
AK
13538fi # test -n "$CONFIG_FILES"
13539
47dc80f6
AK
13540# Set up the scripts for CONFIG_HEADERS section.
13541# No need to generate them if there are no CONFIG_HEADERS.
13542# This happens for instance with `./config.status Makefile'.
13543if test -n "$CONFIG_HEADERS"; then
059850b5 13544cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
47dc80f6
AK
13545BEGIN {
13546_ACEOF
13547
13548# Transform confdefs.h into an awk script `defines.awk', embedded as
13549# here-document in config.status, that substitutes the proper values into
13550# config.h.in to produce config.h.
13551
13552# Create a delimiter string that does not exist in confdefs.h, to ease
13553# handling of long lines.
13554ac_delim='%!_!# '
13555for ac_last_try in false false :; do
059850b5
AK
13556 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13557 if test -z "$ac_tt"; then
47dc80f6
AK
13558 break
13559 elif $ac_last_try; then
0fbeb4dc 13560 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
47dc80f6
AK
13561 else
13562 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13563 fi
13564done
13565
13566# For the awk script, D is an array of macro values keyed by name,
13567# likewise P contains macro parameters if any. Preserve backslash
13568# newline sequences.
5c706339 13569
47dc80f6
AK
13570ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13571sed -n '
13572s/.\{148\}/&'"$ac_delim"'/g
13573t rset
13574:rset
13575s/^[ ]*#[ ]*define[ ][ ]*/ /
13576t def
13577d
13578:def
13579s/\\$//
13580t bsnl
13581s/["\\]/\\&/g
13582s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13583D["\1"]=" \3"/p
13584s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13585d
13586:bsnl
13587s/["\\]/\\&/g
13588s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13589D["\1"]=" \3\\\\\\n"\\/p
13590t cont
13591s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13592t cont
13593d
13594:cont
13595n
13596s/.\{148\}/&'"$ac_delim"'/g
13597t clear
13598:clear
13599s/\\$//
13600t bsnlc
13601s/["\\]/\\&/g; s/^/"/; s/$/"/p
13602d
13603:bsnlc
13604s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13605b cont
13606' <confdefs.h | sed '
13607s/'"$ac_delim"'/"\\\
13608"/g' >>$CONFIG_STATUS || ac_write_fail=1
13609
13610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13611 for (key in D) D_is_set[key] = 1
13612 FS = "\a"
13613}
13614/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13615 line = \$ 0
13616 split(line, arg, " ")
13617 if (arg[1] == "#") {
13618 defundef = arg[2]
13619 mac1 = arg[3]
13620 } else {
13621 defundef = substr(arg[1], 2)
13622 mac1 = arg[2]
13623 }
13624 split(mac1, mac2, "(") #)
13625 macro = mac2[1]
13626 prefix = substr(line, 1, index(line, defundef) - 1)
13627 if (D_is_set[macro]) {
13628 # Preserve the white space surrounding the "#".
13629 print prefix "define", macro P[macro] D[macro]
13630 next
13631 } else {
13632 # Replace #undef with comments. This is necessary, for example,
13633 # in the case of _POSIX_SOURCE, which is predefined and required
13634 # on some systems where configure will not decide to define it.
13635 if (defundef == "undef") {
13636 print "/*", prefix defundef, macro, "*/"
13637 next
13638 }
13639 }
13640}
13641{ print }
13642_ACAWK
13643_ACEOF
13644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
0fbeb4dc 13645 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
47dc80f6
AK
13646fi # test -n "$CONFIG_HEADERS"
13647
13648
13649eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13650shift
13651for ac_tag
5c706339
AK
13652do
13653 case $ac_tag in
13654 :[FHLC]) ac_mode=$ac_tag; continue;;
13655 esac
13656 case $ac_mode$ac_tag in
13657 :[FHL]*:*);;
059850b5 13658 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5c706339
AK
13659 :[FH]-) ac_tag=-:-;;
13660 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13661 esac
13662 ac_save_IFS=$IFS
13663 IFS=:
13664 set x $ac_tag
13665 IFS=$ac_save_IFS
13666 shift
13667 ac_file=$1
13668 shift
13669
13670 case $ac_mode in
13671 :L) ac_source=$1;;
13672 :[FH])
13673 ac_file_inputs=
13674 for ac_f
13675 do
13676 case $ac_f in
059850b5 13677 -) ac_f="$ac_tmp/stdin";;
5c706339
AK
13678 *) # Look for the file first in the build tree, then in the source tree
13679 # (if the path is not absolute). The absolute path cannot be DOS-style,
13680 # because $ac_f cannot contain `:'.
13681 test -f "$ac_f" ||
13682 case $ac_f in
13683 [\\/$]*) false;;
13684 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13685 esac ||
059850b5 13686 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5c706339 13687 esac
47dc80f6 13688 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
0fbeb4dc 13689 as_fn_append ac_file_inputs " '$ac_f'"
5c706339
AK
13690 done
13691
13692 # Let's still pretend it is `configure' which instantiates (i.e., don't
13693 # use $as_me), people would be surprised to read:
13694 # /* config.h. Generated by config.status. */
47dc80f6
AK
13695 configure_input='Generated from '`
13696 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13697 `' by configure.'
5c706339
AK
13698 if test x"$ac_file" != x-; then
13699 configure_input="$ac_file. $configure_input"
0fbeb4dc 13700 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
47dc80f6 13701$as_echo "$as_me: creating $ac_file" >&6;}
5c706339 13702 fi
47dc80f6
AK
13703 # Neutralize special characters interpreted by sed in replacement strings.
13704 case $configure_input in #(
13705 *\&* | *\|* | *\\* )
13706 ac_sed_conf_input=`$as_echo "$configure_input" |
13707 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13708 *) ac_sed_conf_input=$configure_input;;
13709 esac
5c706339
AK
13710
13711 case $ac_tag in
059850b5
AK
13712 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13713 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5c706339
AK
13714 esac
13715 ;;
13716 esac
13717
13718 ac_dir=`$as_dirname -- "$ac_file" ||
13719$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13720 X"$ac_file" : 'X\(//\)[^/]' \| \
13721 X"$ac_file" : 'X\(//\)$' \| \
13722 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
47dc80f6 13723$as_echo X"$ac_file" |
5c706339
AK
13724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13725 s//\1/
13726 q
13727 }
13728 /^X\(\/\/\)[^/].*/{
13729 s//\1/
13730 q
13731 }
13732 /^X\(\/\/\)$/{
13733 s//\1/
13734 q
13735 }
13736 /^X\(\/\).*/{
13737 s//\1/
13738 q
13739 }
13740 s/.*/./; q'`
0fbeb4dc 13741 as_dir="$ac_dir"; as_fn_mkdir_p
5c706339 13742 ac_builddir=.
b9668ba4 13743
5c706339
AK
13744case "$ac_dir" in
13745.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13746*)
47dc80f6 13747 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5c706339 13748 # A ".." for each directory in $ac_dir_suffix.
47dc80f6 13749 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5c706339
AK
13750 case $ac_top_builddir_sub in
13751 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13752 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13753 esac ;;
b9668ba4 13754esac
5c706339
AK
13755ac_abs_top_builddir=$ac_pwd
13756ac_abs_builddir=$ac_pwd$ac_dir_suffix
13757# for backward compatibility:
13758ac_top_builddir=$ac_top_build_prefix
b9668ba4 13759
5c706339
AK
13760case $srcdir in
13761 .) # We are building in place.
13762 ac_srcdir=.
13763 ac_top_srcdir=$ac_top_builddir_sub
13764 ac_abs_top_srcdir=$ac_pwd ;;
13765 [\\/]* | ?:[\\/]* ) # Absolute name.
13766 ac_srcdir=$srcdir$ac_dir_suffix;
13767 ac_top_srcdir=$srcdir
13768 ac_abs_top_srcdir=$srcdir ;;
13769 *) # Relative name.
13770 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13771 ac_top_srcdir=$ac_top_build_prefix$srcdir
13772 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b9668ba4 13773esac
5c706339 13774ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b9668ba4 13775
b9668ba4 13776
5c706339
AK
13777 case $ac_mode in
13778 :F)
13779 #
13780 # CONFIG_FILE
13781 #
b9668ba4 13782
5c706339
AK
13783 case $INSTALL in
13784 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13785 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13786 esac
13787 ac_MKDIR_P=$MKDIR_P
13788 case $MKDIR_P in
13789 [\\/$]* | ?:[\\/]* ) ;;
13790 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13791 esac
13792_ACEOF
b9668ba4 13793
47dc80f6 13794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5c706339
AK
13795# If the template does not know about datarootdir, expand it.
13796# FIXME: This hack should be removed a few years after 2.60.
13797ac_datarootdir_hack=; ac_datarootdir_seen=
47dc80f6
AK
13798ac_sed_dataroot='
13799/datarootdir/ {
5c706339
AK
13800 p
13801 q
13802}
13803/@datadir@/p
13804/@docdir@/p
13805/@infodir@/p
13806/@localedir@/p
0fbeb4dc 13807/@mandir@/p'
47dc80f6 13808case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5c706339
AK
13809*datarootdir*) ac_datarootdir_seen=yes;;
13810*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
0fbeb4dc 13811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47dc80f6 13812$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5c706339 13813_ACEOF
47dc80f6 13814cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5c706339
AK
13815 ac_datarootdir_hack='
13816 s&@datadir@&$datadir&g
13817 s&@docdir@&$docdir&g
13818 s&@infodir@&$infodir&g
13819 s&@localedir@&$localedir&g
13820 s&@mandir@&$mandir&g
0fbeb4dc 13821 s&\\\${datarootdir}&$datarootdir&g' ;;
5c706339 13822esac
b9668ba4 13823_ACEOF
b9668ba4 13824
5c706339
AK
13825# Neutralize VPATH when `$srcdir' = `.'.
13826# Shell code in configure.ac might set extrasub.
13827# FIXME: do we really want to maintain this feature?
47dc80f6
AK
13828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13829ac_sed_extra="$ac_vpsub
5c706339
AK
13830$extrasub
13831_ACEOF
47dc80f6 13832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5c706339
AK
13833:t
13834/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47dc80f6 13835s|@configure_input@|$ac_sed_conf_input|;t t
5c706339 13836s&@top_builddir@&$ac_top_builddir_sub&;t t
47dc80f6 13837s&@top_build_prefix@&$ac_top_build_prefix&;t t
5c706339
AK
13838s&@srcdir@&$ac_srcdir&;t t
13839s&@abs_srcdir@&$ac_abs_srcdir&;t t
13840s&@top_srcdir@&$ac_top_srcdir&;t t
13841s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13842s&@builddir@&$ac_builddir&;t t
13843s&@abs_builddir@&$ac_abs_builddir&;t t
13844s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13845s&@INSTALL@&$ac_INSTALL&;t t
13846s&@MKDIR_P@&$ac_MKDIR_P&;t t
13847$ac_datarootdir_hack
47dc80f6 13848"
059850b5
AK
13849eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13850 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b9668ba4 13851
5c706339 13852test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
059850b5
AK
13853 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13854 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13855 "$ac_tmp/out"`; test -z "$ac_out"; } &&
0fbeb4dc
AK
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13857which seems to be undefined. Please make sure it is defined" >&5
47dc80f6 13858$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
0fbeb4dc 13859which seems to be undefined. Please make sure it is defined" >&2;}
b9668ba4 13860
059850b5 13861 rm -f "$ac_tmp/stdin"
5c706339 13862 case $ac_file in
059850b5
AK
13863 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13864 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
47dc80f6 13865 esac \
0fbeb4dc 13866 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5c706339
AK
13867 ;;
13868 :H)
13869 #
13870 # CONFIG_HEADER
13871 #
5c706339 13872 if test x"$ac_file" != x-; then
47dc80f6
AK
13873 {
13874 $as_echo "/* $configure_input */" \
059850b5
AK
13875 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13876 } >"$ac_tmp/config.h" \
0fbeb4dc 13877 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
059850b5 13878 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
0fbeb4dc 13879 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
47dc80f6 13880$as_echo "$as_me: $ac_file is unchanged" >&6;}
5c706339 13881 else
47dc80f6 13882 rm -f "$ac_file"
059850b5 13883 mv "$ac_tmp/config.h" "$ac_file" \
0fbeb4dc 13884 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5c706339
AK
13885 fi
13886 else
47dc80f6 13887 $as_echo "/* $configure_input */" \
059850b5 13888 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
0fbeb4dc 13889 || as_fn_error $? "could not create -" "$LINENO" 5
5c706339 13890 fi
47dc80f6
AK
13891# Compute "$ac_file"'s index in $config_headers.
13892_am_arg="$ac_file"
5c706339
AK
13893_am_stamp_count=1
13894for _am_header in $config_headers :; do
13895 case $_am_header in
13896 $_am_arg | $_am_arg:* )
13897 break ;;
13898 * )
13899 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13900 esac
13901done
13902echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13903$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13904 X"$_am_arg" : 'X\(//\)[^/]' \| \
13905 X"$_am_arg" : 'X\(//\)$' \| \
13906 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
47dc80f6 13907$as_echo X"$_am_arg" |
5c706339
AK
13908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13909 s//\1/
13910 q
13911 }
13912 /^X\(\/\/\)[^/].*/{
13913 s//\1/
13914 q
13915 }
13916 /^X\(\/\/\)$/{
13917 s//\1/
13918 q
13919 }
13920 /^X\(\/\).*/{
13921 s//\1/
13922 q
13923 }
13924 s/.*/./; q'`/stamp-h$_am_stamp_count
13925 ;;
b9668ba4 13926
0fbeb4dc 13927 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
47dc80f6 13928$as_echo "$as_me: executing $ac_file commands" >&6;}
5c706339
AK
13929 ;;
13930 esac
b9668ba4 13931
b9668ba4 13932
5c706339 13933 case $ac_file$ac_mode in
47dc80f6 13934 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
0044e680 13935 # Older Autoconf quotes --file arguments for eval, but not when files
47dc80f6
AK
13936 # are listed without --file. Let's play safe and only enable the eval
13937 # if we detect the quoting.
13938 case $CONFIG_FILES in
13939 *\'*) eval set x "$CONFIG_FILES" ;;
13940 *) set x $CONFIG_FILES ;;
13941 esac
13942 shift
13943 for mf
13944 do
13945 # Strip MF so we end up with the name of the file.
13946 mf=`echo "$mf" | sed -e 's/:.*$//'`
13947 # Check whether this is an Automake generated Makefile or not.
0044e680 13948 # We used to match only the files named 'Makefile.in', but
47dc80f6
AK
13949 # some people rename them; so instead we look at the file content.
13950 # Grep'ing the first line is not enough: some people post-process
13951 # each Makefile.in and add a new line on top of each file to say so.
13952 # Grep'ing the whole file is not good either: AIX grep has a line
13953 # limit of 2048, but all sed's we know have understand at least 4000.
13954 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13955 dirpart=`$as_dirname -- "$mf" ||
5c706339
AK
13956$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13957 X"$mf" : 'X\(//\)[^/]' \| \
13958 X"$mf" : 'X\(//\)$' \| \
13959 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
47dc80f6 13960$as_echo X"$mf" |
5c706339
AK
13961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13962 s//\1/
13963 q
13964 }
13965 /^X\(\/\/\)[^/].*/{
13966 s//\1/
13967 q
13968 }
13969 /^X\(\/\/\)$/{
13970 s//\1/
13971 q
13972 }
13973 /^X\(\/\).*/{
13974 s//\1/
13975 q
13976 }
13977 s/.*/./; q'`
47dc80f6
AK
13978 else
13979 continue
13980 fi
13981 # Extract the definition of DEPDIR, am__include, and am__quote
0044e680 13982 # from the Makefile without running 'make'.
47dc80f6
AK
13983 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13984 test -z "$DEPDIR" && continue
13985 am__include=`sed -n 's/^am__include = //p' < "$mf"`
0044e680 13986 test -z "$am__include" && continue
47dc80f6 13987 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
47dc80f6
AK
13988 # Find all dependency output files, they are included files with
13989 # $(DEPDIR) in their names. We invoke sed twice because it is the
13990 # simplest approach to changing $(DEPDIR) to its actual value in the
13991 # expansion.
13992 for file in `sed -n "
13993 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
0044e680 13994 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
47dc80f6
AK
13995 # Make sure the directory exists.
13996 test -f "$dirpart/$file" && continue
13997 fdir=`$as_dirname -- "$file" ||
5c706339
AK
13998$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13999 X"$file" : 'X\(//\)[^/]' \| \
14000 X"$file" : 'X\(//\)$' \| \
14001 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
47dc80f6 14002$as_echo X"$file" |
5c706339
AK
14003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14004 s//\1/
14005 q
14006 }
14007 /^X\(\/\/\)[^/].*/{
14008 s//\1/
14009 q
14010 }
14011 /^X\(\/\/\)$/{
14012 s//\1/
14013 q
14014 }
14015 /^X\(\/\).*/{
14016 s//\1/
14017 q
14018 }
14019 s/.*/./; q'`
0fbeb4dc 14020 as_dir=$dirpart/$fdir; as_fn_mkdir_p
47dc80f6
AK
14021 # echo "creating $dirpart/$file"
14022 echo '# dummy' > "$dirpart/$file"
14023 done
5c706339 14024 done
47dc80f6 14025}
5c706339
AK
14026 ;;
14027 "libtool":C)
b9668ba4 14028
c45550e5 14029 # See if we are running on zsh, and set the options that allow our
5c706339 14030 # commands through without removal of \ escapes.
c45550e5 14031 if test -n "${ZSH_VERSION+set}"; then
5c706339
AK
14032 setopt NO_GLOB_SUBST
14033 fi
b9668ba4 14034
c45550e5 14035 cfgfile=${ofile}T
5c706339
AK
14036 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14037 $RM "$cfgfile"
b9668ba4 14038
5c706339
AK
14039 cat <<_LT_EOF >> "$cfgfile"
14040#! $SHELL
c45550e5 14041# Generated automatically by $as_me ($PACKAGE) $VERSION
5c706339
AK
14042# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14043# NOTE: Changes made to this file will be lost: look at ltmain.sh.
c45550e5
AK
14044
14045# Provide generalized library-building support services.
14046# Written by Gordon Matzigkeit, 1996
14047
14048# Copyright (C) 2014 Free Software Foundation, Inc.
14049# This is free software; see the source for copying conditions. There is NO
14050# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14051
14052# GNU Libtool is free software; you can redistribute it and/or modify
14053# it under the terms of the GNU General Public License as published by
14054# the Free Software Foundation; either version 2 of of the License, or
14055# (at your option) any later version.
b9668ba4 14056#
c45550e5
AK
14057# As a special exception to the GNU General Public License, if you
14058# distribute this file as part of a program or library that is built
14059# using GNU Libtool, you may include this file under the same
14060# distribution terms that you use for the rest of that program.
5c706339 14061#
c45550e5
AK
14062# GNU Libtool is distributed in the hope that it will be useful, but
14063# WITHOUT ANY WARRANTY; without even the implied warranty of
5c706339
AK
14064# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14065# GNU General Public License for more details.
14066#
14067# You should have received a copy of the GNU General Public License
c45550e5 14068# along with this program. If not, see <http://www.gnu.org/licenses/>.
b9668ba4 14069
b9668ba4 14070
5c706339 14071# The names of the tagged configurations supported by this script.
c45550e5
AK
14072available_tags=''
14073
14074# Configured defaults for sys_lib_dlsearch_path munging.
14075: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
b9668ba4 14076
5c706339 14077# ### BEGIN LIBTOOL CONFIG
b9668ba4 14078
5c706339
AK
14079# Which release of libtool.m4 was used?
14080macro_version=$macro_version
14081macro_revision=$macro_revision
b9668ba4 14082
5c706339
AK
14083# Whether or not to build shared libraries.
14084build_libtool_libs=$enable_shared
b9668ba4 14085
5c706339
AK
14086# Whether or not to build static libraries.
14087build_old_libs=$enable_static
b9668ba4 14088
5c706339
AK
14089# What type of objects to build.
14090pic_mode=$pic_mode
b9668ba4 14091
5c706339
AK
14092# Whether or not to optimize for fast installation.
14093fast_install=$enable_fast_install
b9668ba4 14094
c45550e5
AK
14095# Shared archive member basename,for filename based shared library versioning on AIX.
14096shared_archive_member_spec=$shared_archive_member_spec
14097
059850b5
AK
14098# Shell to use when invoking shell scripts.
14099SHELL=$lt_SHELL
14100
14101# An echo program that protects backslashes.
14102ECHO=$lt_ECHO
14103
14104# The PATH separator for the build system.
14105PATH_SEPARATOR=$lt_PATH_SEPARATOR
14106
5c706339
AK
14107# The host system.
14108host_alias=$host_alias
14109host=$host
14110host_os=$host_os
b9668ba4 14111
5c706339
AK
14112# The build system.
14113build_alias=$build_alias
14114build=$build
14115build_os=$build_os
b9668ba4 14116
5c706339
AK
14117# A sed program that does not truncate output.
14118SED=$lt_SED
b9668ba4 14119
5c706339
AK
14120# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14121Xsed="\$SED -e 1s/^X//"
b9668ba4 14122
5c706339
AK
14123# A grep program that handles long lines.
14124GREP=$lt_GREP
14125
14126# An ERE matcher.
14127EGREP=$lt_EGREP
b9668ba4 14128
5c706339
AK
14129# A literal string matcher.
14130FGREP=$lt_FGREP
b9668ba4 14131
5c706339
AK
14132# A BSD- or MS-compatible name lister.
14133NM=$lt_NM
b9668ba4 14134
5c706339
AK
14135# Whether we need soft or hard links.
14136LN_S=$lt_LN_S
b9668ba4 14137
5c706339
AK
14138# What is the maximum length of a command?
14139max_cmd_len=$max_cmd_len
b9668ba4 14140
5c706339
AK
14141# Object file suffix (normally "o").
14142objext=$ac_objext
b9668ba4 14143
5c706339
AK
14144# Executable file suffix (normally "").
14145exeext=$exeext
b9668ba4 14146
5c706339
AK
14147# whether the shell understands "unset".
14148lt_unset=$lt_unset
b9668ba4 14149
5c706339
AK
14150# turn spaces into newlines.
14151SP2NL=$lt_lt_SP2NL
b9668ba4 14152
5c706339
AK
14153# turn newlines into spaces.
14154NL2SP=$lt_lt_NL2SP
b9668ba4 14155
059850b5
AK
14156# convert \$build file names to \$host format.
14157to_host_file_cmd=$lt_cv_to_host_file_cmd
14158
14159# convert \$build files to toolchain format.
14160to_tool_file_cmd=$lt_cv_to_tool_file_cmd
b9668ba4 14161
47dc80f6
AK
14162# An object symbol dumper.
14163OBJDUMP=$lt_OBJDUMP
14164
5c706339
AK
14165# Method to check whether dependent libraries are shared objects.
14166deplibs_check_method=$lt_deplibs_check_method
b9668ba4 14167
059850b5 14168# Command to use when deplibs_check_method = "file_magic".
5c706339 14169file_magic_cmd=$lt_file_magic_cmd
b9668ba4 14170
059850b5
AK
14171# How to find potential files when deplibs_check_method = "file_magic".
14172file_magic_glob=$lt_file_magic_glob
14173
14174# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14175want_nocaseglob=$lt_want_nocaseglob
14176
14177# DLL creation program.
14178DLLTOOL=$lt_DLLTOOL
14179
14180# Command to associate shared and link libraries.
14181sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14182
5c706339
AK
14183# The archiver.
14184AR=$lt_AR
059850b5
AK
14185
14186# Flags to create an archive.
5c706339 14187AR_FLAGS=$lt_AR_FLAGS
b9668ba4 14188
059850b5
AK
14189# How to feed a file listing to the archiver.
14190archiver_list_spec=$lt_archiver_list_spec
14191
5c706339
AK
14192# A symbol stripping program.
14193STRIP=$lt_STRIP
b9668ba4 14194
5c706339
AK
14195# Commands used to install an old-style archive.
14196RANLIB=$lt_RANLIB
14197old_postinstall_cmds=$lt_old_postinstall_cmds
14198old_postuninstall_cmds=$lt_old_postuninstall_cmds
b9668ba4 14199
059850b5
AK
14200# Whether to use a lock for old archive extraction.
14201lock_old_archive_extraction=$lock_old_archive_extraction
14202
5c706339
AK
14203# A C compiler.
14204LTCC=$lt_CC
b9668ba4 14205
5c706339
AK
14206# LTCC compiler flags.
14207LTCFLAGS=$lt_CFLAGS
b9668ba4 14208
5c706339
AK
14209# Take the output of nm and produce a listing of raw symbols and C names.
14210global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
b9668ba4 14211
5c706339
AK
14212# Transform the output of nm in a proper C declaration.
14213global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
b9668ba4 14214
c45550e5
AK
14215# Transform the output of nm into a list of symbols to manually relocate.
14216global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14217
5c706339
AK
14218# Transform the output of nm in a C name address pair.
14219global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
b9668ba4 14220
5c706339
AK
14221# Transform the output of nm in a C name address pair when lib prefix is needed.
14222global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
b9668ba4 14223
c45550e5
AK
14224# The name lister interface.
14225nm_interface=$lt_lt_cv_nm_interface
14226
059850b5
AK
14227# Specify filename containing input files for \$NM.
14228nm_file_list_spec=$lt_nm_file_list_spec
b9668ba4 14229
c45550e5 14230# The root where to search for dependent libraries,and where our libraries should be installed.
059850b5 14231lt_sysroot=$lt_sysroot
b9668ba4 14232
c45550e5
AK
14233# Command to truncate a binary pipe.
14234lt_truncate_bin=$lt_lt_cv_truncate_bin
14235
059850b5
AK
14236# The name of the directory that contains temporary libtool files.
14237objdir=$objdir
b9668ba4 14238
5c706339
AK
14239# Used to examine libraries when file_magic_cmd begins with "file".
14240MAGIC_CMD=$MAGIC_CMD
b9668ba4 14241
5c706339
AK
14242# Must we lock files when doing compilation?
14243need_locks=$lt_need_locks
b9668ba4 14244
059850b5
AK
14245# Manifest tool.
14246MANIFEST_TOOL=$lt_MANIFEST_TOOL
14247
5c706339
AK
14248# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14249DSYMUTIL=$lt_DSYMUTIL
b9668ba4 14250
5c706339
AK
14251# Tool to change global to local symbols on Mac OS X.
14252NMEDIT=$lt_NMEDIT
b9668ba4 14253
5c706339
AK
14254# Tool to manipulate fat objects and archives on Mac OS X.
14255LIPO=$lt_LIPO
b9668ba4 14256
5c706339
AK
14257# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14258OTOOL=$lt_OTOOL
14259
14260# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14261OTOOL64=$lt_OTOOL64
14262
14263# Old archive suffix (normally "a").
14264libext=$libext
14265
14266# Shared library suffix (normally ".so").
14267shrext_cmds=$lt_shrext_cmds
b9668ba4 14268
5c706339
AK
14269# The commands to extract the exported symbol list from a shared archive.
14270extract_expsyms_cmds=$lt_extract_expsyms_cmds
b9668ba4 14271
5c706339
AK
14272# Variables whose values should be saved in libtool wrapper scripts and
14273# restored at link time.
14274variables_saved_for_relink=$lt_variables_saved_for_relink
b9668ba4 14275
5c706339
AK
14276# Do we need the "lib" prefix for modules?
14277need_lib_prefix=$need_lib_prefix
b9668ba4 14278
5c706339
AK
14279# Do we need a version for libraries?
14280need_version=$need_version
b9668ba4 14281
5c706339
AK
14282# Library versioning type.
14283version_type=$version_type
b9668ba4 14284
5c706339
AK
14285# Shared library runtime path variable.
14286runpath_var=$runpath_var
b9668ba4 14287
5c706339
AK
14288# Shared library path variable.
14289shlibpath_var=$shlibpath_var
b9668ba4 14290
5c706339
AK
14291# Is shlibpath searched before the hard-coded library search path?
14292shlibpath_overrides_runpath=$shlibpath_overrides_runpath
b9668ba4 14293
5c706339
AK
14294# Format of library name prefix.
14295libname_spec=$lt_libname_spec
b9668ba4 14296
5c706339
AK
14297# List of archive names. First name is the real one, the rest are links.
14298# The last name is the one that the linker finds with -lNAME
14299library_names_spec=$lt_library_names_spec
b9668ba4 14300
5c706339
AK
14301# The coded name of the library, if different from the real name.
14302soname_spec=$lt_soname_spec
b9668ba4 14303
059850b5
AK
14304# Permission mode override for installation of shared libraries.
14305install_override_mode=$lt_install_override_mode
14306
5c706339
AK
14307# Command to use after installation of a shared archive.
14308postinstall_cmds=$lt_postinstall_cmds
b9668ba4 14309
5c706339
AK
14310# Command to use after uninstallation of a shared archive.
14311postuninstall_cmds=$lt_postuninstall_cmds
b9668ba4 14312
5c706339
AK
14313# Commands used to finish a libtool library installation in a directory.
14314finish_cmds=$lt_finish_cmds
b9668ba4 14315
5c706339
AK
14316# As "finish_cmds", except a single script fragment to be evaled but
14317# not shown.
14318finish_eval=$lt_finish_eval
b9668ba4 14319
5c706339
AK
14320# Whether we should hardcode library paths into libraries.
14321hardcode_into_libs=$hardcode_into_libs
b9668ba4 14322
5c706339
AK
14323# Compile-time system search path for libraries.
14324sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
b9668ba4 14325
c45550e5
AK
14326# Detected run-time system search path for libraries.
14327sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14328
14329# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14330configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
b9668ba4 14331
5c706339
AK
14332# Whether dlopen is supported.
14333dlopen_support=$enable_dlopen
b9668ba4 14334
5c706339
AK
14335# Whether dlopen of programs is supported.
14336dlopen_self=$enable_dlopen_self
b9668ba4 14337
5c706339
AK
14338# Whether dlopen of statically linked programs is supported.
14339dlopen_self_static=$enable_dlopen_self_static
b9668ba4 14340
5c706339
AK
14341# Commands to strip libraries.
14342old_striplib=$lt_old_striplib
14343striplib=$lt_striplib
b9668ba4 14344
b9668ba4 14345
5c706339
AK
14346# The linker used to build libraries.
14347LD=$lt_LD
b9668ba4 14348
059850b5
AK
14349# How to create reloadable object files.
14350reload_flag=$lt_reload_flag
14351reload_cmds=$lt_reload_cmds
14352
5c706339
AK
14353# Commands used to build an old-style archive.
14354old_archive_cmds=$lt_old_archive_cmds
b9668ba4 14355
5c706339
AK
14356# A language specific compiler.
14357CC=$lt_compiler
b9668ba4 14358
5c706339
AK
14359# Is the compiler the GNU compiler?
14360with_gcc=$GCC
b9668ba4 14361
5c706339
AK
14362# Compiler flag to turn off builtin functions.
14363no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
b9668ba4 14364
5c706339
AK
14365# Additional compiler flags for building library objects.
14366pic_flag=$lt_lt_prog_compiler_pic
b9668ba4 14367
059850b5
AK
14368# How to pass a linker flag through the compiler.
14369wl=$lt_lt_prog_compiler_wl
14370
5c706339
AK
14371# Compiler flag to prevent dynamic linking.
14372link_static_flag=$lt_lt_prog_compiler_static
b9668ba4 14373
5c706339
AK
14374# Does compiler simultaneously support -c and -o options?
14375compiler_c_o=$lt_lt_cv_prog_compiler_c_o
b9668ba4 14376
5c706339
AK
14377# Whether or not to add -lc for building shared libraries.
14378build_libtool_need_lc=$archive_cmds_need_lc
b9668ba4 14379
5c706339
AK
14380# Whether or not to disallow shared libs when runtime libs are static.
14381allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
b9668ba4 14382
5c706339
AK
14383# Compiler flag to allow reflexive dlopens.
14384export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
b9668ba4 14385
5c706339
AK
14386# Compiler flag to generate shared objects directly from archives.
14387whole_archive_flag_spec=$lt_whole_archive_flag_spec
b9668ba4 14388
5c706339
AK
14389# Whether the compiler copes with passing no objects directly.
14390compiler_needs_object=$lt_compiler_needs_object
b9668ba4 14391
5c706339
AK
14392# Create an old-style archive from a shared archive.
14393old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
b9668ba4 14394
5c706339
AK
14395# Create a temporary old-style archive to link instead of a shared archive.
14396old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
b9668ba4 14397
5c706339
AK
14398# Commands used to build a shared archive.
14399archive_cmds=$lt_archive_cmds
14400archive_expsym_cmds=$lt_archive_expsym_cmds
b9668ba4 14401
5c706339
AK
14402# Commands used to build a loadable module if different from building
14403# a shared archive.
14404module_cmds=$lt_module_cmds
14405module_expsym_cmds=$lt_module_expsym_cmds
b9668ba4 14406
5c706339
AK
14407# Whether we are building with GNU ld or not.
14408with_gnu_ld=$lt_with_gnu_ld
b9668ba4 14409
5c706339
AK
14410# Flag that allows shared libraries with undefined symbols to be built.
14411allow_undefined_flag=$lt_allow_undefined_flag
b9668ba4 14412
5c706339
AK
14413# Flag that enforces no undefined symbols.
14414no_undefined_flag=$lt_no_undefined_flag
b9668ba4 14415
5c706339
AK
14416# Flag to hardcode \$libdir into a binary during linking.
14417# This must work even if \$libdir does not exist
14418hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
b9668ba4 14419
5c706339
AK
14420# Whether we need a single "-rpath" flag with a separated argument.
14421hardcode_libdir_separator=$lt_hardcode_libdir_separator
b9668ba4 14422
c45550e5 14423# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
5c706339
AK
14424# DIR into the resulting binary.
14425hardcode_direct=$hardcode_direct
b9668ba4 14426
c45550e5 14427# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
5c706339 14428# DIR into the resulting binary and the resulting library dependency is
c45550e5 14429# "absolute",i.e impossible to change by setting \$shlibpath_var if the
5c706339
AK
14430# library is relocated.
14431hardcode_direct_absolute=$hardcode_direct_absolute
b9668ba4 14432
5c706339
AK
14433# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14434# into the resulting binary.
14435hardcode_minus_L=$hardcode_minus_L
b9668ba4 14436
5c706339
AK
14437# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14438# into the resulting binary.
14439hardcode_shlibpath_var=$hardcode_shlibpath_var
b9668ba4 14440
5c706339
AK
14441# Set to "yes" if building a shared library automatically hardcodes DIR
14442# into the library and all subsequent libraries and executables linked
14443# against it.
14444hardcode_automatic=$hardcode_automatic
b9668ba4 14445
5c706339
AK
14446# Set to yes if linker adds runtime paths of dependent libraries
14447# to runtime path list.
14448inherit_rpath=$inherit_rpath
b9668ba4 14449
5c706339
AK
14450# Whether libtool must link a program against all its dependency libraries.
14451link_all_deplibs=$link_all_deplibs
b9668ba4 14452
5c706339
AK
14453# Set to "yes" if exported symbols are required.
14454always_export_symbols=$always_export_symbols
b9668ba4 14455
5c706339
AK
14456# The commands to list exported symbols.
14457export_symbols_cmds=$lt_export_symbols_cmds
b9668ba4 14458
5c706339
AK
14459# Symbols that should not be listed in the preloaded symbols.
14460exclude_expsyms=$lt_exclude_expsyms
b9668ba4 14461
5c706339
AK
14462# Symbols that must always be exported.
14463include_expsyms=$lt_include_expsyms
b9668ba4 14464
5c706339
AK
14465# Commands necessary for linking programs (against libraries) with templates.
14466prelink_cmds=$lt_prelink_cmds
14467
059850b5
AK
14468# Commands necessary for finishing linking programs.
14469postlink_cmds=$lt_postlink_cmds
14470
5c706339
AK
14471# Specify filename containing input files.
14472file_list_spec=$lt_file_list_spec
14473
14474# How to hardcode a shared library path into an executable.
14475hardcode_action=$hardcode_action
14476
14477# ### END LIBTOOL CONFIG
14478
c45550e5
AK
14479_LT_EOF
14480
14481 cat <<'_LT_EOF' >> "$cfgfile"
14482
14483# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14484
14485# func_munge_path_list VARIABLE PATH
14486# -----------------------------------
14487# VARIABLE is name of variable containing _space_ separated list of
14488# directories to be munged by the contents of PATH, which is string
14489# having a format:
14490# "DIR[:DIR]:"
14491# string "DIR[ DIR]" will be prepended to VARIABLE
14492# ":DIR[:DIR]"
14493# string "DIR[ DIR]" will be appended to VARIABLE
14494# "DIRP[:DIRP]::[DIRA:]DIRA"
14495# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14496# "DIRA[ DIRA]" will be appended to VARIABLE
14497# "DIR[:DIR]"
14498# VARIABLE will be replaced by "DIR[ DIR]"
14499func_munge_path_list ()
14500{
14501 case x$2 in
14502 x)
14503 ;;
14504 *:)
14505 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14506 ;;
14507 x:*)
14508 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14509 ;;
14510 *::*)
14511 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14512 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14513 ;;
14514 *)
14515 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14516 ;;
14517 esac
14518}
14519
14520
14521# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14522func_cc_basename ()
14523{
14524 for cc_temp in $*""; do
14525 case $cc_temp in
14526 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14527 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14528 \-*) ;;
14529 *) break;;
14530 esac
14531 done
14532 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14533}
14534
14535
14536# ### END FUNCTIONS SHARED WITH CONFIGURE
14537
5c706339
AK
14538_LT_EOF
14539
14540 case $host_os in
14541 aix3*)
14542 cat <<\_LT_EOF >> "$cfgfile"
14543# AIX sometimes has problems with the GCC collect2 program. For some
14544# reason, if we set the COLLECT_NAMES environment variable, the problems
14545# vanish in a puff of smoke.
c45550e5 14546if test set != "${COLLECT_NAMES+set}"; then
5c706339
AK
14547 COLLECT_NAMES=
14548 export COLLECT_NAMES
14549fi
14550_LT_EOF
b9668ba4
AK
14551 ;;
14552 esac
14553
b9668ba4 14554
c45550e5 14555ltmain=$ac_aux_dir/ltmain.sh
b9668ba4 14556
b9668ba4 14557
5c706339
AK
14558 # We use sed instead of cat because bash on DJGPP gets confused if
14559 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14560 # text mode, it properly converts lines to CR/LF. This bash problem
14561 # is reportedly fixed, but why not run on old versions too?
059850b5
AK
14562 sed '$q' "$ltmain" >> "$cfgfile" \
14563 || (rm -f "$cfgfile"; exit 1)
14564
059850b5 14565 mv -f "$cfgfile" "$ofile" ||
5c706339
AK
14566 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14567 chmod +x "$ofile"
14568
b9668ba4
AK
14569 ;;
14570
14571 esac
14572done # for ac_tag
14573
14574
0fbeb4dc 14575as_fn_exit 0
b9668ba4 14576_ACEOF
b9668ba4
AK
14577ac_clean_files=$ac_clean_files_save
14578
47dc80f6 14579test $ac_write_fail = 0 ||
0fbeb4dc 14580 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
47dc80f6 14581
b9668ba4
AK
14582
14583# configure is writing to config.log, and then calls config.status.
14584# config.status does its own redirection, appending to config.log.
14585# Unfortunately, on DOS this fails, as config.log is still kept open
14586# by configure, so config.status won't be able to write to it; its
14587# output is simply discarded. So we exec the FD to /dev/null,
14588# effectively closing config.log, so it can be properly (re)opened and
14589# appended to by config.status. When coming back to configure, we
14590# need to make the FD available again.
14591if test "$no_create" != yes; then
14592 ac_cs_success=:
14593 ac_config_status_args=
14594 test "$silent" = yes &&
14595 ac_config_status_args="$ac_config_status_args --quiet"
14596 exec 5>/dev/null
14597 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14598 exec 5>>config.log
14599 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14600 # would make configure fail if this is the last instruction.
0fbeb4dc 14601 $ac_cs_success || as_fn_exit 1
b9668ba4 14602fi
47dc80f6 14603if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
0fbeb4dc 14604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
47dc80f6
AK
14605$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14606fi
b9668ba4 14607
This page took 2.739156 seconds and 5 git commands to generate.